Commit Graph

5 Commits

Author SHA1 Message Date
黄仁欢 a9a04cd651 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>
2026-03-05 09:54:49 +08:00
黄仁欢 771eae0ce4 chore(project): conservative cleanup - archive temp scripts and old docs
Major cleanup to improve project organization and maintainability.

Changes:
- Moved 34 temp/debug/test scripts to archive/temp_scripts/
- Moved 9 auxiliary tools to archive/tools/
- Moved 3 CRT test scripts to archive/crt_tests/
- Moved 4 OCR test scripts to archive/ocr_tests/
- Moved 14 old documentation files to archive/docs/
- Deleted 4 useless files (duplicates, temp files)

Root directory:
- Before: 67 files (cluttered)
- After: 10 core files (clean and organized)

Core files retained:
- test_accuracy_batch_full.py (main script)
- cma_extraction_template_primary.py (CMA extraction)
- cma_extraction_final.py (backup CMA extraction)
- CLAUDE.md (project guide)
- TEST_ACCURACY_BATCH_README.md (usage guide)
- TEST_ACCURACY_BATCH_DEPENDENCIES.md (dependency docs)
- CLEANUP_PLAN.md (cleanup plan)
- CLEANUP_SUMMARY.md (this file)
- IMPLEMENTATION_SUMMARY.md (implementation summary)
- requirements.txt (dependencies)

Archive structure:
archive/
├── temp_scripts/ (34 files: test_, debug_, analyze_, etc.)
├── tools/ (9 files: find_, show_, visualize_, etc.)
├── crt_tests/ (3 files: CRT extraction tests)
├── ocr_tests/ (4 files: OCR timeout tests)
└── docs/ (14 files: old reports and guides)

Benefits:
✓ Cleaner root directory - easier navigation
✓ Better organization - clear separation of concerns
✓ Preserved history - all files archived, not deleted
✓ Improved maintainability - easier to find active files
✓ Better git history - removed 198 deleted files from tracking

No functional changes - all core functionality preserved.

Related:
- TEST_ACCURACY_BATCH_DEPENDENCIES.md - dependency analysis
- CLEANUP_PLAN.md - detailed cleanup plan

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-03 14:35:06 +08:00
黄仁欢 bc34b209b9 Checkpoint before ONNX migration 2026-02-09 09:43:28 +08:00
黄仁欢 2c8ab7379c 暂存 2026-02-05 13:57:22 +08:00
黄仁欢 68b6881c5a feat: implement RBAC with Sa-Token, institution switch, and backend integration tests 2026-01-28 16:15:09 +08:00