Spaces:
Running
Running
| """ | |
| Core OCR Benchmarking, Visualization & Region Classification Modules. | |
| """ | |
| from core.models import Region, RegionType, OCRModelOutput, ALL_REGION_TYPES, REGION_COLORS | |
| from core.region_classifier import classify_region, compute_region_summary | |
| from core.visualizer import render_annotated_image, save_visualization, image_to_base64_jpeg | |
| from core.layout_engine import layout_engine, LayoutEngine | |
| __all__ = [ | |
| "Region", | |
| "RegionType", | |
| "OCRModelOutput", | |
| "ALL_REGION_TYPES", | |
| "REGION_COLORS", | |
| "classify_region", | |
| "compute_region_summary", | |
| "render_annotated_image", | |
| "save_visualization", | |
| "image_to_base64_jpeg", | |
| "layout_engine", | |
| "LayoutEngine" | |
| ] | |