ocr-rs 2.2.1

A lightweight and efficient OCR library based on PaddleOCR models, using the MNN inference framework for high-performance text detection and recognition
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "ocr-rs"
version = "2.2.1"
authors = ["ChenZibo <qw.54@163.com>"]
build = "build.rs"
exclude = [
    "assets/*",
    "tests/*",
    "benches/*",
    "*.png",
    "*.jpg",
    "res/*",
    "3rd_party/*",
    "models/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A lightweight and efficient OCR library based on PaddleOCR models, using the MNN inference framework for high-performance text detection and recognition"
documentation = "https://docs.rs/ocr-rs"
readme = "README.md"
keywords = [
    "ocr",
    "paddleocr",
    "text-recognition",
    "machine-learning",
    "computer-vision",
]
categories = [
    "computer-vision",
    "text-processing",
    "multimedia",
]
license = "Apache-2.0"
repository = "https://github.com/zibo-chen/rust-paddle-ocr"

[package.metadata.docs.rs]
features = ["docsrs"]
default-features = false
targets = ["x86_64-unknown-linux-gnu"]

[features]
async = [
    "tokio",
    "futures",
]
build-mnn-from-source = []
coreml = []
cuda = []
default = []
docsrs = []
metal = []
mnn-dynamic = []
mnn-static = []
opencl = []
opengl = []
vulkan = []

[lib]
name = "ocr_rs"
crate-type = [
    "lib",
    "cdylib",
]
path = "src/lib.rs"

[[example]]
name = "advanced"
path = "examples/advanced.rs"

[[example]]
name = "benchmark_backends"
path = "examples/benchmark_backends.rs"

[[example]]
name = "debug_det"
path = "examples/debug_det.rs"

[[example]]
name = "debug_ocr"
path = "examples/debug_ocr.rs"

[[example]]
name = "debug_rec"
path = "examples/debug_rec.rs"

[[example]]
name = "gpu_inference"
path = "examples/gpu_inference.rs"

[[example]]
name = "optimized_batch"
path = "examples/optimized_batch.rs"

[[example]]
name = "visualize_det"
path = "examples/visualize_det.rs"

[dependencies.env_logger]
version = "0.10"

[dependencies.fast_image_resize]
version = "5"
features = ["image"]

[dependencies.futures]
version = "0.3"
optional = true

[dependencies.image]
version = "0.25"

[dependencies.imageproc]
version = "0.25"

[dependencies.log]
version = "0.4"

[dependencies.ndarray]
version = "0.16"
features = ["rayon"]

[dependencies.rayon]
version = "1.8"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "rt",
]
optional = true

[dev-dependencies.criterion]
version = "0.5"

[build-dependencies.bindgen]
version = "0.69"

[build-dependencies.cc]
version = "1.0"

[build-dependencies.cmake]
version = "0.1"

[profile.dev]
opt-level = 3