Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 13-Oct-16 15:40pm
Comments
Member 12785595 13-Oct-16 5:13am    
Hi , I am new to Leadtools 19. I am trying to perform OMR on survey questionnaire. You seem to have working experience with Leadtools for OMR . Please, can you help me with the basics of OMR just to be able to scan and recognize documents, how master form is created, etc .
Md Jamaluddin Saiyed 14-Oct-16 1:45am    
does you download leadtools sdk ? They have provided full examples with codes you can use these code, they also provide videos about how to create master form and how to use it.
Member 12785595 14-Oct-16 3:48am    
Thanks for your quick reply.
Yes, I have downloaded the trial SDK and tried using OMR demo and it works with the images supplied with the SDK. But when I try to use my own survey image it wont work.
I get a " Invalid width/height " exception.
Can you just give me working demo project or code for OMR , Please ?
Member 12785595 14-Oct-16 4:04am    
As a beginner, I have few questions in mind. They are:
To start with, for my survey questionnaire,
1. Do I need to create master form and if yes, how can I create master form?
2. Is it done programmatically ?
3. Do I need to scan or take picture of filled up form?
Md Jamaluddin Saiyed 14-Oct-16 6:56am    
hi
first you need to take a blank survey form image. Image should be clear and high resolution(300dpi).Now goto master form editor. which you can find at C:\LEADTOOLS 19\Shortcuts\Forms Recognition & Processing\.NET Class Libraries\Forms (Structured & Unstructured)\Forms Recognition & Processing\Master Forms Editor

now make bounding rectangle on every fields and name it as you like.follow this link https://www.youtube.com/watch?v=wo6TGcdrtb4 , you will understand whole thing.

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900