Skip to main content

kreuzberg_paddle_ocr/
lib.rs

1//! # kreuzberg-paddle-ocr
2//!
3//! PaddleOCR via ONNX Runtime for Kreuzberg - high-performance text detection and recognition.
4//!
5//! This crate is vendored from [paddle-ocr-rs](https://github.com/mg-chao/paddle-ocr-rs)
6//! by mg-chao, with modifications for Kreuzberg integration.
7//!
8//! ## ONNX Runtime Requirement
9//!
10//! Requires **ONNX Runtime 1.24+** at runtime.
11//!
12//! ## Original License
13//!
14//! The original paddle-ocr-rs is licensed under Apache-2.0.
15//! This vendored version is relicensed to MIT with the original author's copyright retained.
16
17#![allow(clippy::too_many_arguments)]
18
19pub mod angle_net;
20pub mod base_net;
21pub(crate) mod constants;
22pub mod crnn_net;
23pub mod db_net;
24pub mod ocr_error;
25pub mod ocr_lite;
26pub mod ocr_result;
27pub mod ocr_utils;
28pub mod scale_param;
29
30pub use ocr_error::OcrError;
31pub use ocr_lite::OcrLite;
32pub use ocr_result::{Angle, OcrResult, Point, TextBlock, TextBox, TextLine};