Dear Aspose Team,
I am working on an application that will automatically perform OCR on documents. The goal of this application is to minimize, as much as possible, the need for human inspection. Sometimes the documents are sent in upside down.
Since the part of the document that needs to be scanned is marked off by a text block, and because when flipped, that text block covers an area that is mostly white space, the output of the OcrEngine makes an upside down document easy to spot.
I am searching for a way to reorient upside down images inside the program. Below is a description of two methods I tried using. I experimented with these methods using documents that had already been successfully scanned right side up, and copies of the same documents rotated 180 degrees.
I first experimented with a variable under OCREngine.config called AdjustUpsideDownRotation. I set this variable to “Flip”. According to the API, this should rotate the images 180 degrees. However when I sent through my test images, it failed to read either the upside down or upright images.
Next, I tried to set the OCREngine’s AdjustRotation property to UserDefined, and then the AdjustRotationAngle to 180. However, when I tried this setting with my upside down images, I was unsuccessful.
How do these two parameters work?
Is there a way for me to rotate an image inside the OCREngine? I can easily determine when to ask for a rotation, I just don’t know how to do it.
Thank you,
Corey