google-research / CVD-paper-mobile-camera-example

Apache License 2.0
6 stars 4 forks source link

Source Image rotation issue #41

Closed khyativyasargus closed 6 months ago

khyativyasargus commented 7 months ago

While Capturing image , it is being stored with some rotation (probably 90 degree).

Participant3e24c6d9-a2dc-4fff-8983-270824d8711a_FingernailsOpen_0_1700641076933_v2s1

@MJ1998

MJ1998 commented 7 months ago

Does the app have unlocked orientation?

By default camerax stores image in the orientation it was captured.

Is it possibel that while capturing the orientation of the app was changed ?

Can you try by locking app's orientation ? Just to check. android:screenOrientation="portrait" in AndroidManifest.

MJ1998 commented 7 months ago

I can replicate it and its not really an issue.

Android stores every image, no matter if it is taken in landscape or in portrait, in landscape mode. It also stores metadata that tells you if the image should be displayed in portrait or landscape.

khyativyasargus commented 7 months ago

okay @MJ1998 I will give it a look again and let you know.

MJ1998 commented 7 months ago

Having locked orientation will not save Exif properties for the captured files .

May wanna check that.

MJ1998 commented 6 months ago

@khyativyasargus is this still open ?