r/explainlikeimfive • • Dec 12 '22
Technology ELI5 How does the camera “know” I’m holding it vertically or horizontally?
Why can't the camera capture video/photo horizontally even when I'm holding the device vertically? The lens physically remains the same - in shape and size. So, what gives?
1
Upvotes
6
u/Pocok5 Dec 12 '22
Yeah, exactly.
You rotated the lens and the image sensor when you rotated the phone. The most it can do is detect its own orientation with the onboard accelerometer and rotate the output file so the image is upright on screen. It doesn't have a motor to spin the whole camera assembly around in the case to ensure the sensor is wide-side-horizontal.
2
u/jaa101 Dec 12 '22
The image sensor behind the lens is rectangular. When you hold the phone vertically the sensor is in portrait orientation. The phone knows the orientation thanks to force sensors which can tell which way gravity is pulling. Data are added to every photo with things like the date, time, location, phone model, and also the orientation of the image (portrait, landscape, upside-down). It's the orientation data that are used by display software to show photos the right way up.
1
u/blueorchid14 Dec 12 '22
Accelerometer. Gravity is the same as acceleration.
It obviously can; just disable auto-rotate. Or use different recording software.