-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Orientation have different values on front and back camera #3049
Comments
Guten Tag, Hans here. Note New features, bugfixes, updates and other improvements are all handled mostly by |
+1 here. Also opened an issue here: #3051 |
I think this is intended.
So if output orientation is portrait (aka you want portrait photos), |
@mrousavy I think this issue should be reopened because values are not consitent. As I said before, IOS always return One is wrong:
This inconsitence is the real issue. |
What's happening?
I am not sure if it's supposed to work this way or if it's actually a bug, but I noticed an orientation inconsistency between Android and iOS when switching cameras.
Both devices were tested in portrait mode, with screen orientation locked, and only switching between the front and back cameras.
On iOS, for both cameras, frame.orientation returned UIImage.Orientation.right. The device didn't change its orientation, so the frame orientation stayed the same.
However, on Android, the front camera returns Orientation.LANDSCAPE_LEFT and the back camera returns Orientation.LANDSCAPE_RIGHT.
I believe one of the systems is returning the wrong orientation value for one of the cameras.
Reproduceable Code
Relevant log output
Camera Device
Device
Iphone 11 (IOS 17.5.1) - Galaxy J5 (Android 8.0)
VisionCamera Version
4.4.1
Can you reproduce this issue in the VisionCamera Example app?
Yes, I can reproduce the same issue in the Example app here
Additional information
The text was updated successfully, but these errors were encountered: