jhansireddy / AndroidScannerDemo

ScanLibrary is an android document scanning library built on top of OpenCV, using the app you will be able to select the exact edges and crop the document accordingly from the selected 4 edges and change the perspective transformation of the cropped image.
MIT License
1.07k stars 472 forks source link

Image automatically rotate to landscape #123

Open vsk-21 opened 4 years ago

nazeera8 commented 4 years ago

I am also facing the same issue.

vamsee9 commented 4 years ago

here is the fix already https://github.com/jhansireddy/AndroidScannerDemo/pull/62

jhansireddy commented 3 years ago

@vsk-21 Could you give me steps to reproduce, I don't see this issue.

PratikSheth commented 3 years ago

Image rotation bug.zip

@jhansireddy I am also facing the same issue. whenever I scan passport photos especially image is getting auto-rotated.

I have attached a recording of the issue.

PratikSheth commented 3 years ago

How to reproduce: If u click image by holding a phone in landscape, issue is not occuring. but if u click the image in portrait mode (the way normally we hold the phone), clicked image will get 90 degree rotated view in the preview screen.

UjjwalDeep commented 3 years ago

@jhansireddy I am also facing this auto landscape rotation issue, please help

UjjwalDeep commented 3 years ago

Image rotation bug.zip

@jhansireddy I am also facing the same issue. whenever I scan passport photos especially image is getting auto-rotated.

I have attached a recording of the issue.

Did you fixed the issue??

ashwinjawale24 commented 3 years ago

@vsk-21 here is the fix already #62 , replace the code in it, and it will work

nedushny commented 2 years ago

@vsk-21 @nazeera8 Comment out the line matrix.postRotate(90); in the getBitmap() function in the ScanFragment class or replace 90 to 0 degree