Results 1 to 4 of 4

Thread: OCR Scanned Image Rotation problem.

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2008
    Posts
    3

    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.

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,422

    Re: OCR Scanned Image Rotation problem.

    try this:

    vb Code:
    1. Dim gr As Graphics = Graphics.FromImage(your image)
    2. gr.TranslateTransform(your image.Width, your image.Height)
    3. gr.RotateTransform(degrees)
    4. dim newImage as new bitmap(Width,Height)
    5. Dim gr2 As Graphics = Graphics.FromImage(newImage)
    6. gr2.DrawImage(your image,x,y)

  3. #3
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,422

    Re: OCR Scanned Image Rotation problem.

    i'm guessing you don't know how to work out how many degrees to rotate it either?

  4. #4

    Thread Starter
    New Member
    Join Date
    Jun 2008
    Posts
    3

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width