Skip to content

Add Python-binding #50

@t41372

Description

@t41372

概述

用 PyO3 和 maturin 做个 python binding,让 Python 开发者也能轻松用这个项目调用这些 ocr,不用去头疼环境配置的问题。

优点

  • 让 python 开发者也爽,直接 pip install 就能开始用,而且有 type annotation 开发起来会很舒适。

缺点

  • 添加维护成本
  • python 开发者其实用 openai 格式的 api 也能调用

poc (晚点细看+测试)

我让 codex 在我自己的 fork 里面尝试实现了一下,看看方案是否可行。

t41372#1

我晚点会再检查一下 AI 的实现。如果合适,可能可以在原项目这边开一个 pr。

相关讨论

https://linux.do/t/topic/1152112/31

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions