layoutparser_ort/lib.rs
1//! # Overview
2//!
3//! A simplified port of [LayoutParser](https://github.com/Layout-Parser/layout-parser) for detecting layout elements on documents.
4//! Runs Detectron2 and YOLOX layout models from [unstructured-inference](https://github.com/Unstructured-IO/unstructured-inference/)
5//! in ONNX format through onnxruntime (bindings via [ort](https://github.com/pykeio/ort)).
6
7mod error;
8mod layout_element;
9#[cfg(feature = "ocr")]
10pub mod ocr;
11mod utils;
12
13pub use error::{Error, Result};
14
15// re-exports
16pub use geo_types;
17pub use image;
18pub use ort;
19
20pub mod models;
21#[cfg(feature = "save")]
22pub use utils::save;
23
24pub use layout_element::LayoutElement;