This repository was archived by the owner on Mar 27, 2026. It is now read-only.
How to get a image in portrait mode #475
|
I use arFragment.getArSceneView().getArFrame() to get a frame and save the image. |
Answered by
Mehequanna
Jun 25, 2024
Replies: 1 comment
|
If I remember correctly, the frame/image will match whatever the hardware camera sensor orientation is. On Android devices, this could be portrait or landscape depending. So it's up to the developer to figure out which way is up and rotate it or not. Someone suggested using a different method here: https://stackoverflow.com/questions/52873233/arcore-image-from-arfragment-is-different-from-the-fragments-display |
0 replies
Answer selected by
ThomasGorisse
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I remember correctly, the frame/image will match whatever the hardware camera sensor orientation is. On Android devices, this could be portrait or landscape depending. So it's up to the developer to figure out which way is up and rotate it or not.
Someone suggested using a different method here: https://stackoverflow.com/questions/52873233/arcore-image-from-arfragment-is-different-from-the-fragments-display
So that might be worth looking at.