Detecting iPhone camera orientation

后端 未结 3 1011
情书的邮戳
情书的邮戳 2021-02-11 07:42

I\'m getting inconsistent results depending on whether I get the image directly from the camera in the callback or choosing it from the camera roll.

In the UIImag

3条回答
  •  猫巷女王i
    2021-02-11 08:32

    I posted this to the Apple forums, and got the explanation:

    "The camera is actually landscape native, so you get up or down when you take a picture in landscape and left or right when you take a picture in portrait (depending on how you hold the device)."

    See:

    https://devforums.apple.com/message/301160#301160
    

    Thanks:

    https://devforums.apple.com/people/Rincewind

提交回复
热议问题