-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathCargo.toml
More file actions
43 lines (40 loc) · 1.52 KB
/
Cargo.toml
File metadata and controls
43 lines (40 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[package]
name = "paddle-ocr-rs"
version = "0.7.0"
edition = "2024"
readme = "README.md"
keywords = ["paddle", "ocr", "onnx"]
license = "Apache-2.0"
description = "Use Rust to call Paddle OCR models via ONNX Runtime for image text recognition."
repository = "https://github.com/mg-chao/paddle-ocr-rs"
authors = ["mg-chao <chao@mgchao.top>"]
[dependencies]
geo-clipper = "0.9.0"
geo-types = "0.7"
image = { version = "0.25", default-features = true, features = ["png", "jpeg"] }
imageproc = "0.25"
kamadak-exif = "0.6"
nalgebra = "0.33"
ndarray = "0.16"
num_cpus = "1.16"
opencv = { version = "0.94", optional = true, default-features = false, features = ["clang-runtime", "imgproc"] }
ort = { version = "2.0.0-rc.10", default-features = false, features = ["ndarray", "std"] }
reqwest = { version = "0.12", default-features = false, features = ["blocking", "rustls-tls"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_yaml = "0.9"
sha2 = "0.10"
thiserror = "2"
unicode-bidi = "0.3"
turbojpeg = { version = "1.4.0", default-features = false, features = ["cmake"] }
rayon = "1.10"
clap = { version = "4.5", features = ["derive"] }
[target.'cfg(target_os = "windows")'.dependencies]
ort = { version = "2.0.0-rc.10", default-features = false, features = ["ndarray", "std", "directml"] }
[features]
default = ["download-binaries", "copy-dylibs", "ort/default"]
download-binaries = ["ort/download-binaries"]
copy-dylibs = ["ort/copy-dylibs"]
opencv-backend = ["dep:opencv"]
cuda-provider = ["ort/cuda"]
cann-provider = ["ort/cann"]