Giter VIP home page Giter VIP logo

Comments (3)

hiroi-sora avatar hiroi-sora commented on July 17, 2024

(Update:此问题已在 v1.2.6 解决。)

v1.2.5 的原回复:

您例图的上下边缘太窄,这会阻碍OCR文本检测算法的解析。这是本项目采用的识别库PaddleOCR中 文本检测(det)目前的一个缺陷,它需要一定的额外空间来确定文字范围框。

只要加大图片的高度,就能让识别准确率恢复正常:

👇原图识别结果:由于没有选择(CWS)方式
窄.png

👇增加高度之后:由于没有选择俯仰或倾斜方式,飞行方式指示器显示A/P处于驾驶盘操纵(CWS)方式。
宽.png

因此,这个问题的临时解决方法:

  1. 截取上下边缘更多的素材图片用于识别。据我测试,只要上下边缘 >= 一个字符的高度,就不会影响识别准确度。

可能的程序优化方式:(我暂时没计划实现这些优化)

  1. 针对性地训练文本检测det模型用于该场景。
  2. 在OCR前预处理,为高度过窄的图片自动添加空白边缘。

关于其他家API:

  • 我测试了腾讯OCR在线接口,似乎没有这个问题。你有大量需求的话,也许可以寻找使用 腾讯在线api(收费) 的同类项目。

from umi-ocr.

ksom11 avatar ksom11 commented on July 17, 2024

感谢答复

from umi-ocr.

hiroi-sora avatar hiroi-sora commented on July 17, 2024

新版本 v1.2.6 已经彻底解决这个问题了。随着识别引擎的更新,窄边图片不会降低准确度

image29d8fcdbb38e8b73.png

from umi-ocr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.