Then, the CPU 23 makes the image processing section 15 generate still image data other than moving image data when having detected an accident.The CPU 23 carries out other control functions described in the following (1) to (4).(1) The CPU 23 carries out an AE calculation or the like based on an image signal from the image pickup device 12.