issue-67-vin-ocr-pipeline
main
Implements VIN-specific OCR extraction in the OCR service with optimized preprocessing and validation.
POST /extract/vin
ocr/app/validators/vin_validator.py
ocr/app/preprocessors/vin_preprocessor.py
ocr/app/extractors/vin_extractor.py
ocr/app/routers/extract.py
/extract/vin
ocr/app/models/schemas.py
Closes #67
Generated with Claude Code
Implement VIN-specific OCR extraction with optimized preprocessing: - Add POST /extract/vin endpoint for VIN extraction - VIN preprocessor: CLAHE, deskew, denoise, adaptive threshold - VIN validator: check digit validation, OCR error correction (I->1, O->0) - VIN extractor: PSM modes 6/7/8, character whitelist, alternatives - Response includes confidence, bounding box, and alternatives - Unit tests for validator and preprocessor - Integration tests for VIN extraction endpoint Co-Authored-By: Claude Opus 4.5 <[email protected]>
No dependencies set.
The note is not visible to the blocked user.
Summary
Implements VIN-specific OCR extraction in the OCR service with optimized preprocessing and validation.
POST /extract/vinendpoint for VIN extraction from photosFiles Changed
ocr/app/validators/vin_validator.py- VIN validation with check digit and OCR error correctionocr/app/preprocessors/vin_preprocessor.py- VIN-optimized image preprocessingocr/app/extractors/vin_extractor.py- VIN extraction with pattern matchingocr/app/routers/extract.py- Added/extract/vinendpointocr/app/models/schemas.py- Added VinExtractionResponse modelCloses #67
Test plan
Generated with Claude Code