Commit Graph

1 Commits

Author SHA1 Message Date
黄仁欢 9562cf1ac7 feat(cma): add CMA extraction module fallback implementation
Add cma_extraction_final.py as backup CMA extraction module.

This module provides fallback CMA code extraction when the primary
template-based method (cma_extraction_template_primary.py) fails.

Features:
- Full-page OCR extraction as fallback
- CMA pattern matching (11-12 digit codes)
- Integration with main batch testing script
- Supports both template matching and OCR-only approaches

Usage:
The main script (test_accuracy_batch_full.py) automatically falls back
to this module if template matching fails:
1. Primary: cma_extraction_template_primary.py (template matching)
2. Fallback: cma_extraction_final.py (full-page OCR)

Related files:
- cma_extraction_template_primary.py (primary module)
- test_accuracy_batch_full.py (main script that uses both)
- TEST_ACCURACY_BATCH_DEPENDENCIES.md (dependency documentation)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-03 14:51:58 +08:00