appleOrientationFromRotation function
Maps a camera sensor orientation in degrees to an Apple Vision orientation.
Implementation
ImageOrientation appleOrientationFromRotation(int degrees) {
switch (degrees) {
case 180:
return ImageOrientation.down;
case 270:
return ImageOrientation.downMirrored;
default:
return ImageOrientation.up;
}
}