图像文件中存在条形码时未读取数字
我一直在尝试从包含条形码的图像文件中读取数字,然后读取数字。如果我单独裁剪数字并在代码下运行,它将将我的数字作为文本返回(确切的结果)。
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.
And warnings found in the log :
Warning: Parameter not found: enable_new_segsearch Warning: Invalid
resolution 0 dpi. Using 70 instead.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论