Skip to content

v5.0.0a10

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 17 Oct 13:56
· 65 commits to main since this release

RapidOCRLite 5.0.0a10

新增 / 变更

  • 新模型类型 lite(基于 datalab-to/indra):纯原生 C/C++ 实现,不依赖 ONNX Runtime / OpenCV / Python;针对 AVX2、AVX-512、NEON、Accelerate、Metal 优化,运行时自动选择 ISA。
  • Windows MSVC 支持:Windows x64 / x86 的 wheel 与 SDK 现已包含 lite 引擎(移除原占位实现)。
  • 库重命名:libppocr → librapidocrlite(Windows: rapidocrlite.dll)。
  • ⚠️ C/C++ 破坏性变更:C API ppocr_* → rpocr_*(类型、枚举、宏 RPOCR_*、C++ 命名空间同步改名),头文件迁移到 include/rapidocrlite/;保留 find_package(ppocr) 兼容 shim。Python API 与环境变量不变。
  • README 新增示例与 logo。

已知限制

  • Windows scalar(强制标量)路径在 OmniDocBench 第 00 页存在阅读顺序近似并列(near-tie),一行顺序与参考不同;AVX2/自动路径与 Linux 一致。
  • Windows x64 AVX-512 在个别样例上分数有 1e-4 差异(文本与框一致)。
  • Windows 上的 lite AVX-512 路径仅经模拟器(SDE)测试,CI runner 自动选择 AVX2。
  • Android / iOS 仅编译验证。
  • lite 权重遵循修改版 OpenRAIL-M 许可证,随附于 models/lite;商用等授权需由最终用户自行与权利方协商。

English summary

  • New lite model type (indra-based), native C/C++ with no ORT/OpenCV; AVX2/AVX-512/NEON/Accelerate/Metal.
  • Windows MSVC (x64/x86) builds now ship the lite engine.
  • Library renamed to librapidocrlite; BREAKING for C/C++: C API ppocr_* → rpocr_*, headers under include/rapidocrlite/ (find_package(ppocr) shim kept). Python API unchanged.
  • Known limits: Windows scalar page-order near-tie on one page; x64 AVX-512 score diff ≤1e-4; Windows lite AVX-512 emulator-tested only; Android/iOS compile-only; lite weights under a modified OpenRAIL-M license (models/lite), licensing to be arranged by end users.

Full Changelog: v5.0.0a9...v5.0.0a10