跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[Python] MyLittleOCR:简单的热门 ocr 库包装

发表于

项目介绍

MyLittleOCR 是一个简单而强大的 OCR 包装器,提供了多种 OCR 引擎的一致 API ,开发者可以轻松集成并在不同 OCR 库之间切换,而无需更改代码。

支持的 OCR 库包括:Tesseract ( Apache 2.0 许可证)、EasyOCR ( Apache 2.0 许可证)、WeChat OCR (未知许可证,仅支持 Windows )、Surya ( GPL 3.0 许可证)以及 RapidOCR ( Apache 2.0 许可证)。

使用示例

from my_little_ocr import get_engine_instance

engine = get_engine_instance("rapidocr")
result = engine.ocr("img1.png")

print(result.to_list())

切换引擎只需更改 get_engine_instance() 中的引擎名称。欢迎大家来贡献——快来看看吧!

GitHub 项目地址: https://github.com/X-T-E-R/my-little-ocr

安装命令:pip install my_little_ocr

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.