Flicker detecting method for image capturing device
A flicker detecting method for an image capturing device includes acquiring a first image, wherein pixel values of each row in the first image are acquired during a first period; acquiring a second image, wherein pixel values of each row in the second image are acquired during a second period; generating a third image according to the first image and the second image; and detecting flickers according to the third image; wherein the first period is different from the second period.
1. A flicker detecting method for an image capturing device, the flicker detecting method comprising:
acquiring, by a processing module of the image capturing device, a first image, wherein pixel values of each row in the first image are acquired during a first period;
acquiring, by the processing module of the image capturing device, a second image, wherein pixel values of each row in the second image are acquired during a second period;
acquiring, by the processing module of the image capturing device, a fourth image after sequentially acquiring the first image and the second image, wherein pixel values of each row in the fourth image is acquired during the first period;
generating, by the processing module of the image capturing device, a third image according to the first image, the second image and the fourth image;
detecting, by the processing module of the image capturing device, flickers according to the third image; and
compensating, by the processing module of the image capturing device, flickers in a fifth image when capturing the fifth image if the flickers of the third image is detected;
wherein the first period is different from the second period;
wherein the step of generating the third image according to the first image, the second image and the fourth image comprises:
calculating sums of each pixel value in the first image and pixel value at the corresponded position in the fourth image; and
dividing each pixel value in the second image by the corresponded sum, to generate the third image.
2. The flicker detecting method of claim 1 , wherein the first period is a multiple of half of an alternating current period, the second period is not the multiple of half of the alternating current period and the alternating current period is one of
1
50
seconds and
1
60
seconds.