#!/usr/bin/env python3 """ Direct OCR processor test """ from simple_ocr_processor import get_simple_ocr_processor import os print('🧪 DIRECT OCR PROCESSOR TEST') print('=' * 40) processor = get_simple_ocr_processor() print(f'Processor available: {processor.available}') print(f'OCR Engine: {processor.ocr_engine}') test_image = 'extracted_images/test_ocr.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}')