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
Owner

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.

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.
Ichitux added 1 commit 2026-07-06 13:12:39 +00:00
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
c91bffe5ea
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.
Ichitux merged commit f8d8a3832c into main 2026-07-06 13:23:11 +00:00
Ichitux deleted branch fix/ocr-barcode-extraction 2026-07-06 13:23:11 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Ichitux/FarmaFinder#10