xberg 1.1.2

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
17
/// DPI detection and normalization for scanned images.
pub mod dpi;
// Both need the `ocr-pipeline` dependency set (`fast_image_resize` in particular, which
// `layout-detection` does not pull); only `dpi` is dependency-free enough to build under
// `layout-detection` alone. ~keep
/// Image preprocessing pipeline: denoising, deskew, binarization, rotation.
#[cfg(feature = "ocr-pipeline")]
pub mod preprocessing;
/// Image resize helpers used before OCR to normalize resolution.
#[cfg(feature = "ocr-pipeline")]
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;