hannesa2 / CVScanner

Library for Android to crop/scan Documents. Implemented using OpenCV 4.6.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image is rotated 90º to the left

AlejandroImbox opened this issue · comments

Hello,

I am integrating the library and I am facing the following problem:

When I take a picture with the mobile camera and call startManualCropper I get back the image rotated 90º to the left. Also in some occasions it happens to me with photos loaded from the gallery.

I have noticed that when I ask for the orientation of the image it returns ORIENTATION_UNDEFINED
I have tried to rotate it manually but I can't get it.

I attach two images to show the behavior, the first one is before scanning and the second one is the result.

Would you know how to fix it?

Thank you very much.

before_scan
after_scan

At the first look, sorry I don't know.
I would have to debug too, but the cool thing it's open source. That's why, I'm not the only one, who can do this.

I will continue with it, thank you very much.