oar_ocr/pipeline/
mod.rs

1//! The OCR pipeline module.
2//!
3//! This module provides the main OCR pipeline implementation that combines
4//! multiple components to perform document orientation classification, text
5//! detection, text recognition, and text line classification.
6
7mod config;
8pub mod oarocr;
9pub mod stages;
10pub mod stats;
11
12// Re-export the main OCR pipeline components for easier access
13pub use config::{ConfigFormat, ConfigLoader};
14pub use oarocr::{
15    ErrorMetrics, ExtensibleOAROCR, ExtensibleOAROCRBuilder, ImageProcessor, OAROCR, OAROCRBuilder,
16    OAROCRConfig, OAROCRResult, TextRegion, configure_thread_pool_once,
17};
18pub use stages::{
19    CroppingStageProcessor, OrientationStageProcessor, RecognitionStageProcessor, StageMetrics,
20    StageResult,
21};
22pub use stats::{PipelineStats, StatsManager};