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
✨ Implement Orientation ($8,000) #1891
Comments
This issue is causing problems with Google MLKit Face detection. Technically MLKit needs the correct orientation to be able to detect the face, so when I manually set it to 90 deg, it works in portrait mode |
Hi, all!
|
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
Having the same issue as @matheusqfql. I'm a bit confused; is there no way to ensure the preview output of the camera on the screen is not rotated (I would need to rotate the preview by 90 degrees clockwise for it to be correct on the iPad in landscape) ? I'm migrating from 2.13.2 where the preview output was in the correct orientation, so I'm just wondering whether I'm just missing something new or some change was introduced. I don't need it to be able to respond to orientation changes, just want it to be always displayed in landscape on the iPad. EDIT: Tried using I am also seeing this presumably related warning in the console:
I have only tried iOS 16 so far, so I wonder if it would behave better on iOS 17. |
Does anyone have a good solution for this when applying to video? Rotating an image is no big deal; I'm unsure of any reasonable solution for video... |
Facing something somewhat similar where we are recording a video in standard portrait mode, but the frame.orientation always prints landscape-left. When attempting to overlay things onto the video with coordinates from frame processor, it's always off presumably due to some frame difference. Worked fine in V2 for us. |
btw., I wrote an explanation on why rotation/orientation isn't as straight forward as it sounds here: #2807 (comment) |
After reverting back to CameraX in 4.x, this doesn't seem to be an issue anymore. |
This still is an issue - Frame Processors don't pass you a transformation matrix, and the preview view orientation cannot be frozen while outputs should rotate - that's how most Camera apps work. Also, on iOS this still isn't implemented. For now, only portrait works perfectly. |
What feature or enhancement are you suggesting?
Currently, there is no direct orientation support for VisionCamera.
This feature request contains of multiple parts:
orientation
prop: When this is passed, the Camera will rotate itself to the target orientationorientation
prop)orientation
prop)Frame
in Frame Processor (relative to sensor and relative to device/orientation
prop)This comes with a ton of research, development and testing on both iOS and Android so it's quite complex to handle properly.
Also, fun fact: On Android this is even more annoying. Check out this blog post - Samsung exposes orientation wrong, meaning I have to add special handling for such devices. Insane.
The Android documentation is quite okay though.
$8,000
I'll implement Orientation for $8,000. Donate to the polar pool to support the feature.
The text was updated successfully, but these errors were encountered: