sensorOrientation property
Clockwise angle through which the output image needs to be rotated to be upright on the device screen in its native orientation.
Range of valid values: 0, 90, 180, 270
On Android, also defines the direction of rolling shutter readout, which is from top to bottom in the sensor's coordinate system.
Implementation
final int sensorOrientation;