-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
48 lines (44 loc) · 1.31 KB
/
Cargo.toml
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
44
45
46
47
48
[package]
name = "surya"
version = "0.4.0"
edition = "2021"
description = "Surya is a multilingual document OCR toolkit, original implementation in Python and PyTorch"
license = "Apache-2.0"
authors = ["Jiayu Liu <[email protected]>"]
repository = "https://github.com/jimexist/surya-rs"
default-run = "surya"
[dependencies]
anyhow = { version = "1.0.79", optional = true }
candle-core = { version = "0.6.0" }
candle-nn = { version = "0.6.0" }
clap = { version = "4.5.11", features = ["derive"], optional = true }
env_logger = { version = "0.11.0" }
hf-hub = { version = "0.3.2" }
log = { version = "0.4.20" }
opencv = { version = "0.93.1", default-features = false, features = [
'imgproc',
'imgcodecs',
] }
serde = { version = "1.0.196" }
serde_json = { version = "1.0.112" }
accelerate-src = { version = "0.3.2", optional = true }
intel-mkl-src = { version = "0.8.1", features = [
"mkl-static-lp64-iomp",
], optional = true }
thiserror = { version = "1.0.56" }
[features]
default = ["cli"]
metal = ["candle-core/metal", "candle-nn/metal"]
accelerate = [
"accelerate-src",
"candle-core/accelerate",
"candle-nn/accelerate",
]
mkl = ["intel-mkl-src", "candle-core/mkl", "candle-nn/mkl"]
cli = ["clap", "anyhow"]
[[bin]]
name = "surya"
path = "src/bin/main.rs"
required-features = ["cli"]
[dev-dependencies]
float-cmp = "0.10.0"