图像文件中存在条形码时未读取数字

发布于 2025-02-13 14:31:32 字数 562 浏览 2 评论 0原文

我一直在尝试从包含条形码的图像文件中读取数字,然后读取数字。如果我单独裁剪数字并在代码下运行,它将将我的数字作为文本返回(确切的结果)。

tesseract.doocr(新文件(“ C:\\ xxxxx \\ teess.jpg”));

,但我不能单独输入。我的图像文件输入包含条形码,后面是数字。(这本身本身是另一个主图像文件的子图像()再次解析到确切数字的点可能很困难可能会丢失很少的字符)。但是,如果我使用条形码(IE)给出图像,我的实际输入始终将低于价值。一些随机字符而不是数字。有人有任何想法会有所帮助。

文本是::样本#38 '!

“ ! /3muz9.jpg“ rel =“ nofollow noreferrer”> “在此处输入图像描述”

以及日志中找到的警告:

警告:找不到参数:enable_new_segsearch警告:无效 决议0 DPI。而是使用70。

I have been trying to read numbers from an image file which contains barcode followed by numbers. If I crop numbers alone and run below code it returns me the numbers as text (exact result).

tesseract.doOCR(new File("C:\\XXXXX\\teess.jpg"));

But I could not input numbers alone. My image file input contains barcode followed by numbers.(This itself a subimage() of another main image file again parsing to the point of exact numbers would be difficult may be missing out few characters). But if I give image with barcode (i.e) my actual input always I am getting below value. Some random characters instead of numbers. Has anyone got any idea would be helpful.

Text is ::Sample # 38
“'!'JJ'J'L'1'L!“L"‘|

My input image file is a barcode which followed by actual value. enter image description here

And warnings found in the log :

Warning: Parameter not found: enable_new_segsearch Warning: Invalid
resolution 0 dpi. Using 70 instead.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文