[package]
name = "ocr-rs"
version = "2.2.2"
edition = "2021"
authors = ["ChenZibo <qw.54@163.com>"]
readme = "README.md"
repository = "https://github.com/zibo-chen/rust-paddle-ocr"
license = "Apache-2.0"
description = "A lightweight and efficient OCR library based on PaddleOCR models, using the MNN inference framework for high-performance text detection and recognition"
keywords = [
"ocr",
"paddleocr",
"text-recognition",
"machine-learning",
"computer-vision",
]
categories = ["computer-vision", "text-processing", "multimedia"]
documentation = "https://docs.rs/ocr-rs"
exclude = [
"assets/*",
"tests/*",
"benches/*",
"*.png",
"*.jpg",
"res/*",
"3rd_party/*",
"models/*",
]
[features]
default = []
metal = []
opencl = []
opengl = []
vulkan = []
cuda = []
coreml = []
build-mnn-from-source = []
mnn-dynamic = []
mnn-static = []
async = ["tokio", "futures"]
docsrs = []
[package.metadata.docs.rs]
features = ["docsrs"]
default-features = false
targets = ["x86_64-unknown-linux-gnu"]
[lib]
crate-type = ["lib", "cdylib"]
[build-dependencies]
cmake = "0.1"
cc = "1.0"
bindgen = "0.69"
[dependencies]
image = "0.25"
imageproc = "0.25"
ndarray = { version = "0.16", features = ["rayon"] }
thiserror = "2"
log = "0.4"
rayon = "1.8"
env_logger = "0.10"
fast_image_resize = { version = "5", features = ["image"] }
tokio = { version = "1", features = ["sync", "rt"], optional = true }
futures = { version = "0.3", optional = true }
[dev-dependencies]
criterion = "0.5"
[[example]]
name = "advanced"
path = "examples/advanced.rs"
[[example]]
name = "gpu_inference"
path = "examples/gpu_inference.rs"
[profile.dev]
opt-level = 3