OCR-Demo / core /__init__.py
thangvckeygen's picture
Deploy 7-Model OCR Benchmark Space with Bounding Box Visualizer
b611f38
Raw
History Blame Contribute Delete
689 Bytes
"""
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"
]