fix: improve OCR CIP extraction to filter common TSI card text #10

Merged
Ichitux merged 1 commits from fix/ocr-barcode-extraction into main 2026-07-06 13:23:11 +00:00

1 Commits

Author SHA1 Message Date
Antoni Nuñez Romeu c91bffe5ea fix: improve OCR CIP extraction to filter common TSI card text
Run Tests on Branches / Backend Tests (push) Successful in 3m32s
Run Tests on Branches / Frontend Tests (push) Successful in 3m27s
The extractCip function was incorrectly matching 'TARJETASANITARIA'
instead of the actual barcode/CIP number because it's 16 alphanumeric
characters that matched the regex.

Added filtering for common Spanish text on TSI cards and prioritized
numeric-heavy patterns typical of barcode codes.
2026-07-06 15:10:58 +02:00