1pub mod capabilities;
28pub mod config;
29pub mod ctc;
30pub mod detection;
31pub mod engine;
32pub mod geom;
33pub mod host_resize;
34pub mod layout;
35pub mod model;
36pub mod preprocess;
37pub mod recognition;
38pub mod runner;
39pub mod text;
40pub mod weights;
41
42#[cfg(feature = "rlx")]
43pub mod rlx;
44
45#[cfg(feature = "rten-inference")]
46pub mod inference;
47
48pub mod cli;
49
50pub use capabilities::{STANDARD_DEVICE_NAMES, STANDARD_DEVICES, validate_device};
51pub use config::{DEFAULT_ALPHABET, DecodeMethod, DetectionParams, OcrConfig};
52pub use ctc::{CtcHypothesis, CtcStep, decode};
53pub use engine::{OcrEngine, OcrEngineParams, OcrInput, input_image, ocr_rgb_bytes};
54pub use preprocess::{BLACK_VALUE, DimOrder, ImageSource, ImageSourceError, prepare_image};
55pub use runner::{OcrOutput, OcrRunner, OcrRunnerBuilder};
56pub use text::{TextChar, TextItem, TextLine, TextWord};
57pub use weights::{
58 HF_DETECTION_RTEN, HF_DETECTION_ST, HF_DETECTION_ST_FULL, HF_RECOGNITION_RTEN,
59 HF_RECOGNITION_ST, HF_RECOGNITION_ST_FULL, SafetensorsFile, is_rten_checkpoint,
60 load_rlx_weights, load_safetensors, load_safetensors_weights, resolve_model_dir,
61};
62
63pub use model::{DetectionGraphConfig, RecognitionGraphConfig};
64#[cfg(feature = "rlx")]
65pub use rlx::{RlxTextDetector, RlxTextRecognizer};
66
67#[cfg(feature = "rten-inference")]
68pub use inference::{RtenTextDetector, RtenTextRecognizer};
69
70#[cfg(feature = "convert-rten")]
71pub use weights::{export_rten_to_safetensors, weight_map_from_rten};
72
73pub use rten_imageproc::RotatedRect;