- 在 load 模块中精简 Error 与 Result 别名定义 - 增加 ParseError 子类型区分路径与字节流加载失败 - 支持通过 #[from] 自动转换 Tract 引擎底层错误 - 移出 core 中的 serde 依赖,保持核心库纯洁 - 在 tract 中实现 TractModelMetadata 扩展 trait 加载解析配置
16 lines
516 B
TOML
16 lines
516 B
TOML
[package]
|
|
name = "ddddocr-core"
|
|
version = { workspace = true }
|
|
edition = { workspace = true }
|
|
license = { workspace = true }
|
|
|
|
[dependencies]
|
|
image = "0.25.10"
|
|
base64 = "0.22.1"
|
|
imageproc = { version = "0.26.2", default-features = true }
|
|
serde = { workspace = true }
|
|
serde_json = "1.0.150"
|
|
ndarray = { workspace = true } # 继承自工作空间
|
|
thiserror = { workspace = true } # 刚好可以开始接入你需要的标准库错误处理
|
|
tracing={workspace = true}
|
|
#serde = { workspace = true, features = ["derive"] } |