#!/usr/bin/env python3 """ Test OCR on image1.png from extracted_images """ from simple_ocr_processor import get_simple_ocr_processor import os print('🧪 TESTING OCR ON IMAGE1.PNG') print('=' * 40) processor = get_simple_ocr_processor() test_image = 'extracted_images/image1.png' if os.path.exists(test_image): print(f'Testing OCR on {test_image}...') result = processor.extract_text_from_image(test_image) print(f'OCR Result: {len(result["text"])} chars, confidence: {result["confidence"]:.3f}') print(f'Text: {result["text"]}') else: print(f'Test image not found: {test_image}')