xberg 1.1.0

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
/// DPI detection and normalization for scanned images.
pub mod dpi;
/// Image preprocessing pipeline: denoising, deskew, binarization, rotation.
pub mod preprocessing;
/// Image resize helpers used before OCR to normalize resolution.
pub mod resize;

// Re-exported only for the Tesseract processor (`ocr::processor::execution`); the
// standalone-image path calls `preprocessing::normalize_image_dpi_owned` by full path,
// so under `ocr-pipeline` alone this alias has no consumer.
#[cfg(feature = "ocr")]
pub(crate) use preprocessing::normalize_image_dpi_owned;