Automatically rotate scanned documents using java

I am developing a Java application that has document reading using OCR .
The result seems incorrect sometimes due to the incorrect orientation of the scanned document. So I need to authorize the scanned document. Can I find out if the OCR engine itself has an auto-rotate function or does any other SDK have this function.

Thanks for any suggestion.

+4
source share
2 answers

I recommend that you use FineReader OCR Software . This is a very useful tool, and it has the PageProcessingParams::DetectOrientation , which - if set to true - automatically rotates your image.

Hope this helps you. :)

0
source

If you are processing photos using the Camera API, then you can check the sensors the moment the user takes the photo (clicks the button).

Using this information, you can determine the orientation of the device at the moment the photo was taken, and then take a few turns.

0
source

Source: https://habr.com/ru/post/1502564/


All Articles