-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathCargo.toml
More file actions
40 lines (35 loc) · 1.07 KB
/
Cargo.toml
File metadata and controls
40 lines (35 loc) · 1.07 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
[package]
name = "ocrs-cli"
version = "0.12.0"
edition = "2021"
authors = ["Robert Knight"]
description = "OCR CLI tool for extracting text from images"
license = "MIT OR Apache-2.0"
homepage = "https://github.com/robertknight/ocrs"
repository = "https://github.com/robertknight/ocrs"
[dependencies]
image = { version = "0.25.9", default-features = false, features = ["png", "jpeg", "webp"] }
png = "0.18.0"
serde_json = "1.0.148"
rten = { workspace = true }
rten-imageproc = { workspace = true }
rten-tensor = { workspace = true }
ocrs = { path = "../ocrs", version = "0.12.0" }
lexopt = "0.3.1"
url = "2.5.4"
anyhow = "1.0.100"
[features]
# Support loading custom models in ONNX format
onnx = ["ocrs/onnx"]
# Support reading images from system clipboard
clipboard = ["arboard"]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
ureq = "3.1.4"
home = "0.5.12"
arboard = { version = "3", optional = true }
[[bin]]
name = "ocrs"
path = "src/main.rs"
# Disable documentation for ocrs binary to avoid a filename conflict in
# `target/doc/` with docs for the ocrs library crate.
doc = false