Spaces:
Running
Running
Comparison of ocr_utils.py between main and reconcile-improvements branches | |
================================================================== | |
Key improvements in reconcile-improvements branch: | |
1. Enhanced illustration/etching detection: | |
- Added detection based on filename keywords (e.g., 'magician', 'illustration') | |
- Implemented image-based detection using edge density analysis | |
2. Specialized processing for illustrations: | |
- Gentler scaling to preserve fine details | |
- Mild contrast enhancement (1.3 vs. higher values for other documents) | |
- Specialized sharpening for fine lines in etchings | |
- Higher quality settings (95 vs. 85) to prevent detail loss | |
3. Performance optimizations: | |
- More efficient processing paths for different image types | |
- Better memory management for large images | |
Test results for magician-or-bottle-cungerer.jpg demonstrate these improvements. | |