android front and back camera captured picture orientation issue, rotated in a wrong way

后端 未结 5 1352
一整个雨季
一整个雨季 2021-02-05 10:12

I have a camera app in portrait mode which takes pictures from both front and back end cameras.The issue is like the captured images are rotated in a wrong way...

For pr

5条回答
  •  甜味超标
    2021-02-05 10:52

    You can refer below code.

    ExifInterface exif = new ExifInterface(SourceFileName);     //Since API Level 5
    
    String exifOrientation = exif.getAttribute(ExifInterface.TAG_ORIENTATION);
    

    And also refer this link https://stackoverflow.com/a/6124375/1441666

提交回复
热议问题