Patent ID: 8494352

Claim:
An imaging device, comprising: an acceleration detector configured to detect acceleration of the imaging device on three axes; an inclination calculator configured to calculate an amount of inclination of the imaging device on the basis of an output value of the acceleration detector; a determining element configured to determine whether or not the imaging device is dropping or receiving an impact on the basis of the output value of the acceleration detector; a mode switching element configured to set the acceleration detector to be in either an electronic level mode or an impact detection mode by changing at least one of a measuring range and a sampling rate of the acceleration detector, the electronic level mode in which an operator is notified of an inclination level of the imaging device, and the impact detection mode in which the determining element makes the determination; and a storing element configured to store detected acceleration data in time series, wherein when the determining element determines that the imaging device has dropped or received an impact in the impact detection mode, the storing element stores acceleration data detected at a time when the drop or impact has occurred; the mode switching element is configured to set the measuring range to be larger and the sampling rate to be faster in the impact detection mode than in the electronic level mode; and the output value of the acceleration detector is averaged in the electronic level mode and not averaged in the impact detection mode.