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