OpenCV-AndroidSamples icon indicating copy to clipboard operation
OpenCV-AndroidSamples copied to clipboard

camera orientation problem

Open alphapersian opened this issue 7 years ago • 2 comments

hello i have a problem with camera orientation . i saw your application , it looks you have the same problem in your app ; i was wondering if there is a solution for that ??

alphapersian avatar Feb 15 '18 06:02 alphapersian

I just cloned the application myself. The orientation problem is due to the camera sensor being rotated I guess. I have found only 1 solution so far: you gotta set the activity to be in landscape mode, so you can have a frame that has the right rotation. This doesnt solve the whole problem, but if portrait mode is needed, that is the quickest solution. Btw on my brother's Nexus 5X the camera frame wasn't rotated at all, it worked like it should.

tamas-jaray avatar Feb 15 '18 06:02 tamas-jaray

thanks for your quick reply , i have nexus 5X too , i have the problem , i tried your solution too , it is not working as it should be .

alphapersian avatar Feb 15 '18 06:02 alphapersian