Relates to #115
Add optional Google Vision API cloud fallback for when PaddleOCR confidence is below threshold. Disabled by default.
ocr/app/engines/cloud_engine.py
ocr/app/engines/hybrid_engine.py
ocr/app/config.py
OCR_FALLBACK_ENGINE
OCR_FALLBACK_THRESHOLD
GOOGLE_VISION_KEY_PATH
ocr/requirements.txt
google-cloud-vision
/run/secrets/google-vision-key.json
No dependencies set.
The note is not visible to the blocked user.
Relates to #115
Add optional Google Vision API cloud fallback for when PaddleOCR confidence is below threshold. Disabled by default.
Changes
ocr/app/engines/cloud_engine.py- Google Vision TEXT_DETECTION wrapperocr/app/engines/hybrid_engine.py- Primary + fallback with confidence thresholdocr/app/config.py- AddOCR_FALLBACK_ENGINE,OCR_FALLBACK_THRESHOLD,GOOGLE_VISION_KEY_PATHenv varsocr/requirements.txt- Addgoogle-cloud-visiondependencyDesign Notes
/run/secrets/google-vision-key.jsonAcceptance Criteria