-
Notifications
You must be signed in to change notification settings - Fork 534
Issues with Nexus 5x - Camera is upside down #91
Comments
We have not done any work on this issue, as this is the first report we've had. We do handle rotation in much the same way as specified in your references, but not exactly. Please see the rotation-related code here. Are you able to tell if any of the logic is different that the references you posted? |
Hi. I had to navigate through the source code a bit to understand - I don't think you guys use the rotation code to apply to the "Camera.setDisplayOrientation", but rather to do something else with your display The only place in the code that utilizes the method mentioned in the first comment is in CardScanner.java in the prepareScanner() method: mCamera.setDisplayOrientation(90); It is hardcoded to 90. |
Confirmed on a 5X in our app as well. |
Confirmed on Nexus 5X in our app as well Here's a good clear description of the issue and solution: http://9to5google.com/2015/11/07/why-are-images-nexus-5x-upside-down/ |
Can confirm, happens on Nexus 5X with our app. |
We have noticed this issue on Nexus 5x as well. @Cardio Team: Could you please let us know when will you release a patch for it? |
Hey Guys, experiencing same problem, any news on a fix? |
I resolved this issue by calling below function in startPreview() function defined in CameraManager.java file in the Manatee SDK.
So the startPreview looks like this:
With these changes, Camera preview is not upside down while scanning the documents. Hope this helps. |
Sorry. Forgot to provide the function below:
|
Sorry for the delay. @MitekDev-ASingal, any chance you could submit a PR with your change? We'd be happy to release an update if it works. |
@braebot Thanks for your comment. What is the procedure to submit a PR? Could you please share a link for that? |
Any update on this issue? |
Sorry, no update. |
May I inquire the update on this issue? |
Please see card-io/card.io-Android-source#49. |
There's an issue specifically with the Nexus 5x - images are upside down. It seems to be related to the way the camera orientation is being set.
Supposedly the correct way to set it is here:
http://developer.android.com/reference/android/hardware/Camera.html#setDisplayOrientation(int)
For reference:
https://code.google.com/p/android/issues/detail?id=191210 (See comment #4)
Any chance you guys are working on a solution? Thanks in advance.
The text was updated successfully, but these errors were encountered: