feat: 初始化 ddddocr-rs 核心推理流程

- 实现基础 OCR 流水线:图片读取 -> 灰度化 -> 张量转换 -> 推理 -> CTC 解码
- 集成 `tract-onnx` 推理引擎,实现纯 Rust 运行环境
- 完善图片预处理逻辑(基于 Lanczos3 缩放与标准化处理)
- 添加 MIT 和 Apache-2.0 双重开源协议
- 完成初步的项目结构搭建与字符集(Charset)映射
This commit is contained in:
2026-04-29 17:37:51 +08:00
parent 17544e2fc0
commit 84e3b6d6b3
11 changed files with 684 additions and 1 deletions

6
.gitignore vendored
View File

@@ -16,3 +16,9 @@ target/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
# Added by cargo
/target
Cargo.lock