xberg 1.1.4

High-performance document intelligence library for Rust. Extract text, metadata, and structured data from PDFs, Office documents, images, and 107 formats and 371 programming languages via tree-sitter code intelligence with async/sync APIs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Document orientation detection using PP-LCNet_x1_0_doc_ori.
//!
//! The `types` submodule is always available under the `auto-rotate-types` feature
//! (pure-Rust, no ORT dependency). The full detection implementation requires the
//! document-orientation capability (`auto_rotate` cfg) — provided by the ORT-backed
//! `auto-rotate` feature or the pure-Rust `auto-rotate-tract` variant.

pub mod types;
pub use types::OrientationResult;

#[cfg(auto_rotate)]
pub(crate) mod detector;
#[cfg(all(auto_rotate, not(target_arch = "wasm32"), any(feature = "ocr", sceptre_ocr)))]
pub(crate) use detector::resolve_cache_dir;
#[cfg(auto_rotate)]
pub use detector::{DocOrientationDetector, MIN_CONFIDENCE};