fix: improve OCR CIP extraction to filter common TSI card text #10
Reference in New Issue
Block a user
Delete Branch "fix/ocr-barcode-extraction"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.