feat(resources): add critical CMA logo template file

CRITICAL FIX:
- CMA template (template/CMA_Logo.png) was not tracked in git
- .gitignore had '*.png' rule that blocked all PNG files
- This template is essential for CMA number extraction via template matching

CHANGES:
- Modified .gitignore: Removed '*.png' rule
- Added template/CMA_Logo.png (25KB CMA logo template)
- Added specific ignores for debug/visualization PNGs only

WHY THIS MATTERS:
- CMA template matching is PRIMARY method for CMA extraction
- Without this file, template matching fallback fails
- File used in: test_accuracy_batch_full.py line 138
- Path: CMA_LOGO_PATH = Path("template/CMA_Logo.png")

USAGE:
- Used by match_cma_template() function
- OpenCV template matching with cv2.TM_CCORR_NORMED
- Fallback when primary CMA extraction fails

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
黄仁欢 2026-03-05 09:54:49 +08:00
parent 0d760ee656
commit a9a04cd651
2 changed files with 7 additions and 2 deletions

9
.gitignore vendored
View File

@ -51,8 +51,13 @@ error*.txt
debug*.txt debug*.txt
interactive*.txt interactive*.txt
latest_error*.txt latest_error*.txt
*.png # *.png # REMOVED: Need to commit CMA template and other critical PNG files
# Exception: Visualizations and debug outputs can be ignored
test_reports_full/*.png
debug*/*.png
*.jpg
*.jpeg
CLAUDE.md CLAUDE.md
.claude .claude
test_reports_full/
debug* debug*

BIN
template/CMA_Logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB