- 实现基础 OCR 流水线:图片读取 -> 灰度化 -> 张量转换 -> 推理 -> CTC 解码 - 集成 `tract-onnx` 推理引擎,实现纯 Rust 运行环境 - 完善图片预处理逻辑(基于 Lanczos3 缩放与标准化处理) - 添加 MIT 和 Apache-2.0 双重开源协议 - 完成初步的项目结构搭建与字符集(Charset)映射
20 lines
1.1 KiB
Plaintext
20 lines
1.1 KiB
Plaintext
MIT License
|
|
|
|
Copyright (c) 2026 CNWei
|
|
Portions of this software are based on ddddocr, Copyright (c) 2021 sml2h3.
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
|
associated documentation files (the "Software"), to deal in the Software without restriction, including
|
|
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
|
|
following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
|
|
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
USE OR OTHER DEALINGS IN THE SOFTWARE.
|