oar-ocr 0.6.1

An Optical Character Recognition (OCR) and Document Layout Analysis library written in Rust.
Documentation
# 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 = "2024"
name = "oar-ocr"
version = "0.6.1"
authors = ["Wang Xin <xinwang614@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An Optical Character Recognition (OCR) and Document Layout Analysis library written in Rust."
homepage = "https://github.com/greatv/oar-ocr"
readme = "README.md"
keywords = [
    "ocr",
    "onnx",
    "computer-vision",
    "text-recognition",
    "machine-learning",
]
categories = [
    "computer-vision",
    "science",
]
license = "Apache-2.0"
repository = "https://github.com/greatv/oar-ocr"
resolver = "2"

[features]
coreml = ["oar-ocr-core/coreml"]
cuda = ["oar-ocr-core/cuda"]
default = ["download-binaries"]
directml = ["oar-ocr-core/directml"]
download-binaries = ["oar-ocr-core/download-binaries"]
openvino = ["oar-ocr-core/openvino"]
tensorrt = ["oar-ocr-core/tensorrt"]
webgpu = ["oar-ocr-core/webgpu"]

[lib]
name = "oar_ocr"
path = "src/lib.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.image]
version = "0.25.6"

[dependencies.imageproc]
version = "0.26.0"

[dependencies.oar-ocr-core]
version = "0.6.1"

[dependencies.oar-ocr-derive]
version = "0.6.1"

[dependencies.rayon]
version = "1.8"

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "rc",
]

[dependencies.serde_json]
version = "1.0"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dev-dependencies.ab_glyph]
version = "0.2"

[dev-dependencies.clap]
version = "4.5.42"
features = ["derive"]

[dev-dependencies.hayro]
version = "0.4"

[dev-dependencies.regex]
version = "1"

[dev-dependencies.tempfile]
version = "3.19"