Patent ID: 8150249

Claim:
A method for detecting horizontal orientation of the picture in a camera device, the method comprises the following steps: inputting an angle threshold value in the camera device using an input module of the camera device; detecting orientation changes in the camera device and converting the orientation changes to voltage signals by a gravity sensor module of the camera device; calculating an angle value, α, which the camera device has deviated from a defined horizontal orientation by a data processing module; and indicating how to adjust the camera device to properly align the camera device along the defined horizontal orientation when the angle value, α, exceeds the angle threshold value; wherein when the camera device is on the true horizontal orientation, an output voltage of the gravity sensor module is V 1 ; when the camera device is at the angle value, α, an output voltage of the gravity sensor module is V 2 ; when the camera device is under an influence of gravity acceleration, an output voltage of the gravity sensor module is V, the angle value, α, is calculated in accordance with: α=arcsine [(V 2 -V 1 )/V].