OCR Scanned Image Rotation problem.
I am Trying to develop an optical character recognition system.
I have a problem regarding the scanned data.
Whenever i can a document the scanned image seems to be a little slanted/rotated.
I am not able to figure out a way to rotate the image/scanned document.
Please help.
Re: OCR Scanned Image Rotation problem.
try this:
vb Code:
Dim gr As Graphics = Graphics.FromImage(your image)
gr.TranslateTransform(your image.Width, your image.Height)
gr.RotateTransform(degrees)
dim newImage as new bitmap(Width,Height)
Dim gr2 As Graphics = Graphics.FromImage(newImage)
gr2.DrawImage(your image,x,y)
Re: OCR Scanned Image Rotation problem.
i'm guessing you don't know how to work out how many degrees to rotate it either?
Re: OCR Scanned Image Rotation problem.
My system is more or less complete, works pretty fine in recognizing latin alphabets. I have used a three layered perceptron model with Delta learning rule and Hyperbolic activation function. But during development I used a basic screen capture as the input image. Now that I have tried to use the scanned image as input I find that the skew is hampering the recgnitaion that is what I want help with.
It would be more help ful if rotation could be done in co-ordinates or some thing like that rather than in Degrees.