Android camera resulted image should be rotated after the capture?

后端 未结 4 1883
攒了一身酷
攒了一身酷 2020-12-15 17:29

I\'m writing an Android application that uses the camera. I\'m setting camera display orientation to 90, my activity is in a portrait orientation:

camera.se         


        
4条回答
  •  孤街浪徒
    2020-12-15 17:56

    Problem is the camera orientation is a complete disaster (as is capturing an image) because OEMs do not adhere to the standard. HTC phones do things one way, Samsung phones do it a different way, the Nexus line seems to adhere no matter which vendor, CM7 based ROMs I think follow the standard no matter which hardware, but you get the idea. You sort of have to determine what to do based on the phone/ROM. See discussion here: Android camera unexplainable rotation on capture for some devices (not in EXIF)

提交回复
热议问题