如何修复leadtools中无效的高度/宽度错误OCR格式识别? [英] How to fix invalid height/width error in leadtools OCR form recognise?

查看:159
本文介绍了如何修复leadtools中无效的高度/宽度错误OCR格式识别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究OMR Result软件。我在vb.net中使用Leadtools 19。当我加载扫描文档时,Leadtools ocr引擎成功识别某些文档但在某些文档中抛出异常无效的高度/宽度。我正在使用deskew和highquality rotate命令来解决这个问题。此命令会删除此异常一段时间,但不会每次都删除。我在下面使用以下代码



注意:所有图像都是相同的dpi(300)和分辨率。



我尝试过:



I am working on OMR Result software. I am using Leadtools 19 in vb.net. when I load scanned documents, Leadtools ocr engine recognize some documents successfully but in some documents its throw exception "Invalid height/width". I am using deskew and highquality rotate command to fix this. This commands remove this exception some time but not every time. I am using this code below

Note: All Images are same dpi(300) and resolution.

What I have tried:

Dim command As ImageProcessing.Core.DeskewCommand = New         
ImageProcessing.Core.DeskewCommand
Command.Flags = DeskewCommandFlags.UseCheckDeskew Or
DeskewCommandFlags.UseLineDetectionCheckDeskew
Dim rcmd As HighQualityRotateCommand = New HighQualityRotateCommand
rcmd.Angle = command.Angle * 100

推荐答案

看起来您已经通过电子邮件联系了LEADTOOLS支持并发送了您正在测试的文件。



您正在使用的图像并不常见,因为您正在OCRing几乎没有文本的OMR表单字段,并且优势引擎会从计算中排除OMR字段。我们已将此转发给我们的开发人员,他们添加了一项功能,在这种情况下不会返回错误。



我们将通过电子邮件与您联系以及更多信息。决议。
It looks like you already contacted LEADTOOLS Support via email and sent over the files that you are testing.

The image that you are using is not common since you are OCRing an OMR form field with almost no text and the advantage engine excludes OMR fields from its calculations. We have forwarded this to our developers and they added a feature to not return an error in this situation.

We will be contacting you via email as well with more information on the resolution.


这篇关于如何修复leadtools中无效的高度/宽度错误OCR格式识别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆