Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
IMAGING APPARATUS AND FLICKER DETECTION METHOD
Document Type and Number:
WIPO Patent Application WO/2008/108025
Kind Code:
A1
Abstract:
An exposure control unit 15 controls a charge accumulation time for a CMOS sensor 10. The CMOS sensor 10 captures an image P1 with a charge accumulation time T1 and an image P2 with a charge accumulation time T2. The charge accumulation time T1 does not cause a flicker in an image under a light source blinking at a first blink cycle. The charge accumulation time T2 is different from the charge accumulation time T1. A difference image generation unit 17 generates a difference image DP that emphasizes to show a difference in luminance of the images P1 and P2. A flicker detection unit 18 detects a flicker occurrence in the image P2 based on a difference in luminance between P1 and P2 appearing in the difference image DP.

Inventors:
NIIKURA KENTAROU (JP)
Application Number:
PCT/JP2007/069425
Publication Date:
September 12, 2008
Filing Date:
September 27, 2007
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
NEC ELECTRONICS CORP (JP)
NIIKURA KENTAROU (JP)
International Classes:
H04N3/15; H04N5/235
Foreign References:
EP1253780A22002-10-30
US20040001153A12004-01-01
EP1091571A22001-04-11
US20060290797A12006-12-28
Attorney, Agent or Firm:
IEIRI, Takeshi (Asahi Bldg. 10th Floor3-33-8, Tsuruya-cho,Kanagawa-ku, Yokohama-shi, Kanagawa 35, JP)
Download PDF:
Claims:

CLAIMS

1. An imaging apparatus comprising: an imaging sensor; a control unit configured to control capturing first image by the imaging sensor adjusted to first charge accumulation time and capturing second image by the imaging sensor adjusted to second charge accumulation time, the first charge accumulation time not causing a flicker in an image captured by the imaging sensor under a light source blinking at a first blink cycle, the second charge accumulation time being different from the first charge accumulation time; and a flicker detection unit configured to detect a flicker occurrence in the second image based on a difference in luminance between the first image and the second image.

2. The imaging apparatus according to claim 1, wherein the control unit controls the imaging sensor repeatedly executes capturing by the first charge accumulation time and capturing by the second charge accumulation time alternately.

3. The imaging apparatus according to claim 1 further comprising : a difference image generation unit configured to generate a difference image between the first image and the second image,

wherein the flicker detection unit detects a flicker occurrence in the second image based on a fluctuation of pixel values of the difference image in a vertical direction to a scanning direction of the first and the second images.

4. The imaging apparatus according to claim 3, wherein the difference image is generated by calculating a difference in pixel values between each corresponding pixel for the first and the second images.

5. The imaging apparatus according to claim 2 further comprising : a difference image generation unit configured to generate a difference image between the first image and the second image, wherein the flicker detection unit detects a flicker occurrence in the second image based on a fluctuation of pixel values of the difference image in a vertical direction to a scanning direction of the first and the second images.

6. The imaging apparatus according to claim 5, wherein the difference image is generated by calculating a difference in pixel values between each corresponding pixel for the first and the second images .

7. The imaging apparatus according to claim 1, wherein the second charge accumulation time causes a flicker in a captured image under the light source blinking at the first blink cycle, and the second charge accumulation time is synchronized with a second blink cycle of the light source and does not cause a flicker in a captured image under the light source blinking at the second blink cycle.

8. The imaging apparatus according to claim 7, further comprising: a difference image generation unit configured to generate a difference image between the first and the second images, wherein the flicker detection unit detects which of the first and the second image a flicker is generated in according to at least one of both a fluctuation period and a fluctuation frequency of pixel values of the difference image in a vertical direction to a scanning direction of the first and the second images.

9. A method to detect a flicker occurrence, comprising : executing capturing a first image by a imaging sensor adjusted to first charge accumulation time, the first charge accumulation time not causing a flicker in an image captured

by the imaging sensor under a light source blinking at a first blink cycle; executing capturing second image by the imaging sensor adjusted to second charge accumulation time, the second charge accumulation time being different from the first charge accumulation time; and detecting a flicker occurrence in the second image based on a difference in luminance between the first image and the second image.

Description:

DESCRIPTION

IMAGING APPARATUS AND FLICKER DETECTION METHOD

Technical Field [0001]

The present invention relates to an imaging apparatus incorporated to a digital still camera or the like, and particularly to an imaging apparatus having a detection function for a flicker generated in a captured image due to an illuminance fluctuation of light source such as fluorescent light.

Background Art [0002]

A CMOS (Complementary Metal Oxide Semiconductor) sensor, which is one of solid-state image sensors, performs so-called line exposure. Therefore, there is a deviation in the timing for charge accumulation of each pixel (photodiode) making up the capturing surface of the CMOS sensor by each line (scanning line) according to a scan timing of each pixel. Thus, when capturing an image using a CMOS sensor in an environment where the brightness of a subject periodically changes such as indoor having a non-inverter type fluorescent light, bright and dark horizontal stripes

may be generated in a captured image. The phenomenon that horizontal stripes are generated in a captured mage is referred to as a flicker. [0003] As one of the methods to suppress an occurrence of a flicker in a captured image, there is a method to configure charge accumulation time (shutter speed) of a CMOS sensor to an integral multiple of a blink cycle of a light source (for example see patent citation 1) . In an imaging apparatus with adjusted charge accumulation time, light intensity fluctuation of a light source within the charge accumulation time for each pixel is uniformized even if the timing for charge accumulation differs depending on each pixel. Thus the occurrence of a flicker can be suppressed. [0004]

For example, a blink frequency of the abovementioned non-inverter type fluorescent light is twice more than a power supply frequency of commercial alternating current power supply. That is, the blink cycle of fluorescent light is 1/100 second in the region with power supply frequency of 50Hz and 1/120 second in the region with power supply frequency of 60Hz. Accordingly, in the region with power supply frequency of 50Hz, the charge accumulation time may be N/100 second and in the region with power supply frequency of 60Hz, the charge accumulation time may be M/120 second.

Here, N and M are positive integers. However in patent citation 1, there are no methods disclosed such as the method to detect a flicker itself and the method to optimize charge accumulation time of a CMOS sensor in response to a detection of a flicker. [0005]

In patent citation 2, there is an imaging apparatus disclosed that detects a flicker occurrence using a flicker index value calculated based on an image obtained by a CMOS sensor and switches charge accumulation time according to the detected result. [0006]

To be more specific, the imaging apparatus disclosed in patent citation 2 is able to switch the charge accumulation time for the CMOS sensor between first charge accumulation time (for example N/100 second) corresponding to a first power supply frequency (for example 50Hz) and second charge accumulation time (for example M/120 second) corresponding to a second power supply frequency (for example 60Hz) . Furthermore, the imaging apparatus of patent citation 2 calculates a projection value D which is an accumulation of pixel values for a plurality of pixels included in a predetermined line in a captured image by a CMOS sensor and computes a flicker index value I that indicates an amount of change in the projection output value D between a plurality

frames. For example the flicker index value I calculated using images for 4 frames is computed from the following formula (1). Note that in the formula (1), D(n) is a projection output value of a predetermined line in nth frame. [0007]

[0008]

Switching the charge accumulation time by the imaging apparatus disclosed in patent citation 2 is performed by comparing a flicker index value Il with a flicker index value 12. The flicker index value Il is obtained from an image captured with the first charge accumulation time. The flicker index value 12 is obtained from an image captured with the second charge accumulation time. The imaging apparatus disclosed in patent citation 2 selects the charge accumulation time with a smaller flicker index value. Furthermore, for example, if the flicker index value Il has increased more than a predetermined threshold when configured to the first charge accumulation time, switching from the first charge accumulation time to the second charge accumulation time is performed. [Patent Citation 1]

Japanese Unexamined Patent Application Publication No. 2003-189172

[Patent Citation 2]

Japanese Unexamined Patent Application Publication No. 2002-84466

Disclosure of the Invention Technical Problem [0009]

As described above, the imaging apparatus disclosed in patent citation 2 computes an accumulated value (projection value) of pixel values concerning a predetermined line for a plurality of images consecutively captured. Furthermore, the imaging apparatus disclosed in patent citation 2 obtains a flicker index value by measuring differences in the projection output values in 2 images across a predetermined number of frames. Furthermore, the imaging apparatus disclosed in patent citation 2 detects a flicker using the obtained flicker index value. However, in the flicker detection method by the imaging apparatus disclosed in patent citation 2, there is a problem that dependency to a frame rate is large, as described in the following. [0010]

The flicker evaluation method disclosed in patent citation 2 detects a flicker in a captured image using that a timing for photoelectric conversion of each pixel in the predetermined line of the captured image is not synchronized

with a blink cycle of a light source (for example, see the paragraphs 43 to 46 in patent citation 2) . Accordingly, for example, if 1 frame period is synchronized with a blink cycle of a light source, that is, if 1 frame period is an integral multiple of the blink cycle of the light source, an accumulated charge amount of each pixel in the predetermined line of the image does not fluctuate between a plurality of images consecutively captured. That is, in such case, it is difficult to detect a flicker by the method disclosed in patent citation 2. As stated above, the flicker detection method by the imaging apparatus disclosed in patent citation 2 has a problem that dependency to a frame rate is large.

Technical Solution [0011]

In one embodiment of the present invention, an imaging apparatus includes an imaging sensor, a control unit and a flicker detection unit. The control unit controls capturing a first image by the imaging sensor adjusted to first charge accumulation time and capturing a second image by the imaging sensor adjusted to second charge accumulation time. The first charge accumulation time does not cause a flicker in a captured image under a light source blinking at a first blink cycle. The second charge accumulation time is different from the first charge accumulation time. The

flicker detection unit detects a flicker occurrence in the second image based on a difference in luminance between a first image captured by the imaging sensor adjusted to the first charge accumulation time and the second image captured by the imaging sensor adjusted to the second charge accumulation time. [0012]

When performing a capture using the imaging apparatus configured as above under a light source that blinks at the first blink cycle, there is no flicker appeared in the first image obtained in the first charge accumulation time. On the other hand, in the second image obtained in the second charge accumulation time, regardless of whether 1 frame period of the second image is an integral multiple of the first blink cycle of a light source or not, horizontal stripes by a flicker appears if the second charge accumulation time is not synchronized with the first blink cycle. Therefore, by using the difference in luminance of the first and second images, regardless of whether 1 frame period of the first and second images is an integral multiple of the blink cycle of the light source or not, flicker detection is possible. Thus, with the imaging apparatus according to the one embodiment of the present invention, it is possible to reduce dependency of flicker detection accuracy to a frame rate and improve the flicker detection accuracy.

[ 0 013 ]

In another embodiment of the present invention, a flicker detection method is provided. More specifically, charge accumulation time for an imaging sensor is switched between first charge accumulation time and second charge accumulation time so as to execute capturing first image by the imaging sensor adjusted to the first charge accumulation time and capturing second image by the imaging sensor adjusted to the second charge accumulation time. The first charge accumulation time is synchronized with a first blink cycle of a light source and not generating a flicker in a captured image under the light source blinking at the first blink cycle. The second charge accumulation time is different from the first charge accumulation time. Furthermore, a flicker occurrence in the second image is detected based on a difference in luminance between the first image and the second image. [0014]

With the flicker detection method according to the another embodiment of the present invention, by using the difference in luminance of the first and second images, regardless of whether 1 frame period of the first and second images is an integral multiple of the blink cycle of the light source or not, a flicker detection is possible. Thus, it is possible to reduce dependency of flicker detection

accuracy to a frame rate and improve the flicker detection accuracy .

[0015]

The present invention enables to provide an imaging apparatus with reduced dependency of flicker detection accuracy to a frame rate and improved flicker detection accuracy .

Brief Description of the Drawings [0016]

[Fig. 1] A block diagram of an imaging apparatus 1 according to a first embodiment of the present invention.

[Fig. 2] A diagram for explaining an illustrative example of a difference image generation in the imaging apparatus 1 according to the first embodiment.

[Fig. 3A] A conceptual diagram for explaining a difference image generated by the imaging apparatus 1 according to the first embodiment.

[Fig. 3B] A conceptual diagram for explaining a difference image generated by the imaging apparatus 1 according to the first embodiment.

[Fig.4] A flowchart showing an example of a flicker detection procedure by the imaging apparatus 1 according to the first embodiment . [Fig. 5] A flowchart showing a flicker detection procedure

by the imaging apparatus 1 according to a second embodiment of the present invention.

[Fig. 6] A flowchart showing a flicker detection procedure by the imaging apparatus 1 according to the second embodiment .

[Fig. 7] A block diagram of an imaging apparatus 2 according to a third embodiment of the present invention.

[Fig. 8A] A diagram for explaining a detection of a flicker and a detection of a flicker frequency using a difference image by the imaging apparatus 2 according to a third embodiment .

[Fig. 8B] A diagram for explaining a detection of a flicker and a detection of a flicker frequency using a difference image by the imaging apparatus 2 according to the third embodiment.

[Fig. 8C] A diagram for explaining a detection of a flicker and a detection of a flicker frequency using a difference image by the imaging apparatus 2 according to the third embodiment . [Fig. 9] A flowchart showing a flicker detection procedure by the imaging apparatus 2 according to the third embodiment.

Explanation of Reference Numerals [0017] 1, 2 IMAGING APPARATUS

10 CMOS SENSOR

11 CDS (Correlated double sampling) CIRCUIT

12 AMPLIFIER

13 A/D CONVERTER 14 PIXEL VALUE ACCUMULATION UNIT

15 EXPOSURE CONTROL UNIT

16 TIMING GENERATOR

17 DIFFERENCE IMAGE GENERATION UNIT 18, 28 FLICKER DETECTION UNIT

Description of the Preferred Embodiments [0018]

The invention will be now described herein with reference to illustrative embodiments. Those skilled in the art will recognize that many alternative embodiments can be accomplished using the teachings of the present invention and that the invention is not limited to the embodiments illustrated for explanatory purposes. [0019] Hereinafter, specific embodiments incorporating the present invention are described in detail with reference to the drawings. In each of the drawings, components identical are denoted by reference numerals identical to those therein with repeating description omitted as appropriate for the clarity of explanation.

[ 002 0 ]

First Embodiment

Fig. 1 is a block diagram of an imaging apparatus 1 according to this embodiment. In Fig. 1, a CMOS sensor 10 is a solid-state image sensor that is manufactured by diverting the manufacturing process of CMOS integrated circuits. The CMOS sensor 10 has a capturing surface formed by photodiodes corresponding to each pixel in matrix. Moreover, to each pixel of the CMOS sensor 10, a transistor for selectively reading out a signal charge accumulated in each pixel and a transistor for resetting the signal charge accumulated in each pixel are disposed. In the CMOS sensor 10 formed as above, as contrasted with a CCD image sensor, a charge accumulation timing of each pixel forming the capturing surface differs according to a scan timing of each pixel and a charge accumulation is performed at a different timing for each pixel to generate an image signal. [0021]

A CDS (Correlated double sampling) circuit 11 removes noise of the image signal generated by the CMOS sensor 10 by performing a correlated double sampling. An amplifier 12 amplifies the image signal with noise removed by the CDS circuit 11. A gain of the amplifier 12 is controlled by an exposure control unit 15 described later together with charge accumulation time for the CMOS sensor 10 in order for an image

by the CMOS sensor to have a desired luminance. [0022]

An A/D converter 13 samples the image signal amplified by the amplifier 12 to convert into a digital signal. The digital image signal output from the A/D converter 13 is input to an image processing unit not shown and a color signal interpolation, a color correction and a white balance adjustment or the like are performed by the image processing unit (not shown) . [0023]

A pixel value accumulation unit 14 inputs an output signal from the A/D converter 13, accumulates pixel values of pixels included in the entire image plane or a part of the image plane by each image frame and supplies the obtained accumulated value to the exposure control unit 15. The pixel value accumulation unit 14 may compute an average value of the pixel values in the image frame using the accumulated value of the pixel values and may supply the obtained average value to the exposure control unit 15. [0024]

The exposure control unit 15 determines the charge accumulation time (shutter speed) for the CMOS sensor 10 and the gain for the amplifier 12 based on the accumulated value or average value of the pixel values for the image, which is supplied from the pixel value accumulation unit 14. The

exposure control unit 15 outputs a setting signal to a timing generator 16 in order to control the CMOS sensor 10 so that the charge accumulation time for the CMOS sensor 10 is to be the determined value. Moreover, the exposure control unit 15 outputs a setting signal to the amplifier 12 in order to configure the gain for the amplifier 12. [0025]

Furthermore, the exposure control unit 15 controls the charge accumulation time for the CMOS sensor 10 so as to obtain images pi and P2 that are to be bases of a difference image DP that is generated by a difference image generation unit 17 described later in order to execute a flicker detection of this embodiment. [0026] To be more specific, the exposure control unit 15 executes image capturing by alternately switching the charge accumulation time for the CMOS sensor 10 between two charge accumulation times Tl and T2. One of the charge accumulation time Tl is synchronized with a first blink cycle of a light source such as fluorescent light and is first charge accumulation time that does not generate a flicker in a captured image of the CMOS sensor 10 under a light source that blinks at the first blink cycle. Another charge accumulation time T2 is second charge accumulation time different from the first charge accumulation time. There

are a plurality of examples for illustrative examples of the second charge accumulation time, which are described later. [0027]

For example if the first blink cycle of a light source is 1/100 second (blink frequency 100Hz), the first charge accumulation time Tl is to be an integral multiple of the first blink cycle of the light source, which is N/100 second, and the second charge accumulation time T2 is to be a value except integral multiples of the first blink cycle of the light source. Moreover, for example, if the first blink cycle of a light source is 1/120 (blink frequency 120Hz), the first charge accumulation time Tl is to be an integral multiple of the first blink cycle of the light source, which is N/120 second, and the second charge accumulation time T2 is to be a value except N/120 second. Here, N is a positive integer. Hereinafter, in the embodiment, the explanation assumes that the first blink cycle of a light source is 1/100 second. [0028] The timing generator 16 outputs to the CMOS sensor 10 a pulse signal for defining a reset timing of charge accumulated in each pixel and a pulse signal for defining a vertical selection for reading out signal charge accumulated in each pixel so that charge accumulation time for each pixel in the CMOS sensor 10 is to be the value

indicated by the exposure control unit 15. [0029]

The difference image generation unit 17 inputs a image signal regarding the images Pl and P2 for 2 frames captured in the 2 different charge accumulation time Tl and T2 according to the control by the exposure control unit 15. The difference image generation unit 17 generates a difference image DP between these 2 frames of images Pl and P2. Here, the difference image DP is a image obtained by calculating differences in pixel values of pixels corresponding in horizontal and vertical positions of the capturing surface between the 2 frames of images. [0030]

An illustrative example of the process by the difference image generation unit 17 is described with reference to Fig. 2. The example of Fig. 2 divides 1 frame image 21 into 24 in vertical direction and into 8 in horizontal direction to divide into total of 192 blocks and accumulates pixel values for each block. Moreover, average values of pixel values for total of 24 blocks (a reference numeral 22 in Fig. 2) that are obtained by aggregating the accumulated values of each block in the horizontal direction. After calculating the average values shown in Fig. 2 for each of the 2 frames images Pl and P2, the difference image generation unit 17 generates the difference image DP for

flicker detection by calculating differences of the average values for each block between the 2 frames. That is, by performing a calculation in the example of Fig. 2, the difference image DP in which the horizontal direction is aggregated in 1 block and vertical direction is aggregated in 24 blocks is generated. [0031]

Note that it is needless to say that the example of Fig. 2 is only an example of a generation process of the difference image DP. That is, the difference image DP may be generated for the entire image plane of 1 frame image or a part of the image plane. To generate a difference image for a part of the image plane of the image, the number of lines including at least 1 cycle of bright and dark stripes corresponding to a cycle of the bright and dark stripes by a flicker in

1 image may be used. The cycle of bright and dark stripes by a flicker in 1 image can be computed using a blink cycle

(or blink frequency) of the light source and 1 frame period

(or frame rate) of the imaging apparatus 1. [0032]

Furthermore, as described using Fig. 2, instead of direct differences between pixel values, the difference image DP may be generated by differences between accumulated values obtained by accumulating pixel values or differences between average values of the pixel values with a

predetermined partial region as a unit. Moreover, for example the difference image DP may be generated from differences of luminance values for the images Pl and P2. The luminance value for each pixel is generated from an image signal having color information of Bayer arrangement.

Moreover, based on a G signal, which is the closest to the luminance signal among RGB signal, the difference image DP may be generated from differences of G signal values for the images Pl and P2. [0033]

Turning now to Fig. 1 to continue the explanation. In Fig. 1, a flicker detection unit 18 inputs the difference image DP generated by the difference image generation unit 17. The flicker detection unit 18 detects a flicker occurrence in the second image P2 according to a fluctuation of pixel value (luminance fluctuation) for the difference image DP in a vertical direction to scanning direction of the images Pl and P2, which is a vertical direction of the image plane of the difference image DP. Accordingly, the flicker detection unit 18 can be said to include a luminance fluctuation detection unit in the vertical direction of the image plane of the difference image DP. In other words, the flicker detection unit 18 can be said to include a bright and dark stripe detection unit for the difference image DP. [0034]

Here, the principle of the flicker detection using the difference image DP is described with reference to Figs. 3A and 3B. Fig. 3A shows a difference image DP for the image Pl captured in the charge accumulation time Tl and the image P2 captured in the charge accumulation time T2 when the capturing environment of the imaging apparatus 1 is not under a blinking light source, such as outside daylight. In the case of Fig. 3A, as a flicker does not occur in the images Pl and P2, the images Pl and P2 are the same images excluding a movement of a photographic subject and noise. Therefore, pixel values or luminance values of the difference image DP is ideally zero across the entire image plane and a luminance fluctuation in the vertical direction of the image plane of the difference image DP is not detected. [0035]

On the other hand, Fig. 3B shows a difference image DP for the image Pl and image P2 captured under a blinking light source that blinks at the first blink cycle. In the case of Fig. 3B, as the charge accumulation time Tl of the image Pl is synchronized with the blink cycle of the light source, there is no flicker generated in the image Pl. However, if the charge accumulation time T2 of the image P2 is not synchronized with the first blink cycle of the light source, a flicker occurs in the image P2. Therefore, bright and dark horizontal stripes by a flicker included in the image P2 are

emphasized and appear in the difference image DP. That is, in the difference image DP, a luminance fluctuation appears along with the vertical direction. Accordingly, by the flicker detection unit 18 to detect the luminance fluctuation in the vertical direction of the difference image DP, an occurrence of a flicker in the second image P2 can be detected. [0036]

The detection of a luminance fluctuation in the vertical direction of the difference image DP can be possible by various methods. For example, the flicker detection unit 18 may detects a luminance fluctuation using a statistical analysis result of luminance value of the difference image DP. More specifically, the flicker detection unit 18 may compute average values and standard deviation or variance of luminance values in the vertical direction of the difference image DP, and may evaluates that the computed average values and standard deviation is closer to either average values and standard deviation of luminance value for the difference image DP without flicker or average values and standard deviation of luminance value for the difference image DP with flicker. [0037]

Moreover, the detection of a luminance fluctuation in the vertical direction of the difference image DP can be possible using a digital matched filter. Based on a blink

cycle (or blink frequency) of a light source and 1 frame period (or frame rate) of the imaging apparatus 1, the number of horizontal stripes by a flicker included in 1 image frame can be theoretically computed. For example, if a blink frequency of a light source is 100Hz and a capturing frame rate of the imaging apparatus 1 is 20 frames/second, the number of flicker stripes included in 1 image frame is theoretically 5. In this way, a reference waveform indicating the luminance fluctuation of the difference image DP caused by flicker stripes is theoretically calculated and a cross-correlation between the reference waveform and observed luminance fluctuation waveform of the difference image DP can be computed using a digital matched filter. Likewise, a cross-correlation between a reference waveform with no luminance fluctuation by a flicker (which is direct current waveform) and observed luminance fluctuation waveform of the difference image DP can be computed using a digital matched filter. This enables to determine whether the observed luminance fluctuation of the difference image DP is closer to the case with flicker or without flicker. [0038]

Moreover, alternatively, a Fourier transform may be executed to the difference image DP so as to detect a luminance fluctuation of the difference image DP based on a spatial frequency spectrum of the difference image DP.

[ 003 9 ]

Hereinafter, a flicker detection procedure by the imaging apparatus 1 is described with reference to the flowchart of Fig. 4. In the step SlOl, by the control of the exposure control unit 15, the CMOS sensor 10 executes image capturing with the charge accumulation time Tl to obtain the first image Pl. Next, in the step S102, the exposure control unit 15 switches the charge accumulation time for the CMOS sensor 10 to the charge accumulation time T2, the CMOS sensor 10 executes image capturing with the charge accumulation time T2 to obtain the second image P2. In the step S103, the difference image generation unit 17 generates the difference image DP between the images Pl and P2. In the step S104, the flicker detection unit 18 detects a luminance fluctuation in the vertical direction of the difference image DP. [0040]

If the luminance fluctuation in the vertical direction is not detected in the step S104, it is detected that there is no flicker in the images Pl and P2, in other words, it is not the capturing environment that generates a flicker caused by a blink of a light source (step S105) . On the other hand, if the luminance fluctuation of the difference image DP is detected in the step S104, it is detected that a flicker caused by a blink of a light source occurs in the image P2,

in other words, it is the capturing environment that generates a flicker caused by a blink of a light source (step S106) . [0041] In the flowchart of Fig. 4, there is no limitation in the obtaining order of the images Pl and P2. That is, the image capture with the second charge accumulation time T2 may be performed before the image capture with the first charge accumulation time Tl. [0042]

As described above, the imaging apparatus 1 according to this embodiment obtains 2 images Pl and P2 that are captured in different charge accumulation time, generates the difference image DP between the images Pl and P2 so as to extract differences in luminance between the 2 images Pl and P2 and detects a flicker by a luminance fluctuation in the vertical direction of the image DP (vertical direction to the scanning direction of the images Pl and P2) . [0043] In the image P2 obtained in the second charge accumulation time T2, horizontal stripes by a flicker appear even when 1 frame period of the image P2 is an integral multiple of a blink cycle of a light source. Accordingly, with the imaging apparatus 1 of this embodiment, by using the difference in luminance between the images Pl and P2,

a flicker can be detected regardless of whether 1 frame period of images Pl and P2 is an integral multiple of a blink cycle of a light source. Therefore, the imaging apparatus 1 is able to reduce dependency of flicker detection accuracy to a frame rate, and improve the flicker detection accuracy. [0044]

Note that the imaging apparatus disclosed in patent citation 2 has another problem that as there are a large number of image frames required to detect a flicker, the time required to detect the flicker is long. As indicated in the formula (1), the imaging apparatus disclosed in patent citation 2 accumulates the amount of change in pixel values between image frames and a threshold evaluation to the flicker index value is performed with the accumulated value of the amount of change as a flicker index value. Thus the imaging apparatus disclosed in patent citation 2 requires at least 3 image frames to detect a flicker. Furthermore, it is considered that the method of patent citation 2 that requires many image frames to detect a flicker is likely to generate a false detection due to a change in the pixel values by a movement of a photographic subject. Moreover, in order to determine whether the fluctuation of the flicker index value is caused by a flicker or a photographic subject movement, patent citation 2 describes that the flicker index value must be measured across more number of frames (for

example the paragraphs 63 to 79 in patent citation 2) . Improving the evaluation accuracy in this way tends to worsen the abovementioned problem regarding the length of flicker detection time. [0045]

As compared with this, the imaging apparatus 1 of this embodiment is able to detect a flicker based on at least 2 image frames captured in different charge accumulation time. That is, as the number of image frames required to detect a flicker is small, the time required to detect a flicker can be reduced and there is an advantage that it is hard to generate a false detection caused by a change in pixel values due to a movement of a photographic subject. [0046] Note that in a digital still camera or the like having the imaging apparatus 1 mounted thereto, the flicker detection by the imaging apparatus 1 is better to be performed at a power-on, when luminance of captured image by the CMOS sensor 10 largely changes and when capture mode such as an exposure adjustment that is preset to the digital still camera is changed by an operation of a user. Moreover, while the digital still camera or the like having the imaging apparatus 1 mounted thereto is operating, the images Pl and P2 may be repeatedly obtained with alternately switching the charge accumulation time to repeat to detect a flicker by

the imaging apparatus 1. With such configuration, it is possible to quickly respond to a change in the capturing environment . [0047] Moreover, the imaging apparatus 1 may obtain the images Pl and P2 for a plurality of times to generate a plurality of difference images DP so as to detect an occurrence of a flicker based on the plurality of difference images DP. For example, the difference images DP may be generated 4 times and if luminance fluctuations in the vertical direction of the difference images DP are detected consecutively 4 times, the imaging apparatus 1 may detect an occurrence of a flicker. With such configuration, the detection accuracy of an existence of a flicker can be improved. [0048]

Second Embodiment

If a digital still camera or the like having the imaging apparatus 1 according to the first embodiment is used only in an environment and a region where a blink cycle of a light source is the first blink cycle (1/100 second in this embodiment) , by the flicker detection procedure shown in Fig. 4, it is possible to detect a occurrence of a 100Hz flicker. However, considering the case when the digital still camera or the like having the imaging apparatus 1 is used in several environment and regions with different blink cycles of a

light source, a flicker occurrence can be detected by the procedure of Fig. 4 but it is not possible to detect which blink frequency of the light source the flicker is generated from. Therefore, only by the procedure of Fig. 4, the configuration such as the charge accumulation time for the CMOS sensor 10 and the gain for the amplifier 12 cannot be changed in order to prevent an occurrence of a flicker. Thus, variation examples of the flicker detection procedure shown, in Fig. 4 are described with reference to Figs. 5 and 6. [0049]

The flowcharts of Figs. 5 and 6 show an example of a flicker detection procedure that enables to change configuration of the CMOS sensor 10 and amplifier 12 for avoiding an occurrence of a flicker by identifying a blink frequency of a light source. In the example of Figs. 5 and 6, an environment where the blink cycle of a light source is either the first blink cycle (1/100 second) or the second blink cycle (1/120 second) is described as an example. [0050] In the step S201, the CMOS sensor 10 executes image capturing with the charge accumulation time Tl which is a common multiple of the first blink cycle (1/100 second) and the second blink cycle (1/120 second) to obtain the first image Pl. That is, the first charge accumulation time Tl is a time that does not generate a flicker in a captured image

of the CMOS sensor 10 in an environment under either of the light sources that blinks at the first blink cycle and that blinks at the second blink cycle. More specifically, the first charge accumulation time Tl is set to ION/100 second, for example 10/100 second. [0051]

In the step S202, the CMOS sensor 10 executes image capturing with the charge accumulation time T2, which is a multiple of the first blink cycle (1/100 second) and not a multiple of the second blink cycle (1/120 second) to obtain the second image P2. That is, the second charge accumulation time T2 does not generate a flicker in a captured image under a light source that blinks at the first blink cycle, but the second charge accumulation time T2 generates a flicker in a captured image under a light source that blinks at the second blink cycle. For example, the second charge accumulation time T2 is set to 12/100 second. [0052]

In the step S203, the difference image generation unit 17 generates a difference image DPI between the images Pl and P2. In the step S204, the flicker detection unit 18 detects an existence of luminance fluctuation in the vertical direction of the difference image DPI. [0053] Here, as a first case, the case is considered when the

capture of the images Pl and P2 is performed under the light source that blinks at the first blink cycle (1/100 second) . In the first case, a flicker does not occur in both of the images Pl and P2. Therefore, the images Pl and P2 are the same images excluding a movement of a photographic subject and noise, thus a luminance fluctuation in the vertical direction of the difference image DPI is not detected. Accordingly, in the first case, no flicker is detected (step S205) . This enables to determine that the current capturing environment is an environment that does not generate a flicker in the captured image with the charge accumulation time as at least N/100 second (under the light source that blinks at the first blink cycle or an environment such as outdoor without a flicker) . [0054]

Next, as a second case, the case is considered when the capture of the images Pl and P2 is performed under the light source that blinks at the second blink cycle (1/120 second) . In the second case, a flicker does not occur in the image Pl but a flicker occurs in the image P2. Thus the luminance fluctuation in the vertical direction of the difference image DPI is detected in the step S104. Accordingly, a flicker occurrence is detected in the second case (step S206) . It is apparent from the principle of occurrence of a flicker that the flicker in this case is not caused by the light source

that blinks at the first blink cycle (1/100 second) . Therefore, if options of a blink cycle of a light source is only 2 ways, which are the first blink cycle (1/100 second) and second blink cycle (1/120 second), it can be determined that the capturing environment of the images Pl and P2 is under the light source of the second blink cycle (1/120 second) . [0055]

Therefore, if a flicker occurrence is not detected in the abovementioned steps S201 to S206, the charge accumulation time for the CMOS sensor 10 when performing a normal capture by an instruction from a user may be set to N/100 second. Moreover, if the charge accumulation time for the CMOS sensor 10 at a normal capture is already set to N/100 second, this configuration can be continued. In the meantime, if a flicker occurrence is detected in the abovementioned steps S201 to 206, the charge accumulation time for the CMOS sensor 10 at a normal capture may be set to M/120 second. Here, N and M are positive integers. [0056]

As described above, if the options of a blink cycle of a light source is only 2 ways, which are the first blink cycle (1/100 second) and second blink cycle (1/120 second), by a detection of a flicker occurrence (step S206), it can be determined that the capturing environment of the images Pl

and P2 is under the light source of the second blink cycle (1/120 second). Thus in the step S207, the charge accumulation time for the CMOS sensor 10 at a normal capture is configured to M/120 second. After that, if determined that the confirmation process after the step S208 is unnecessary, the flicker detection process may be ended here. [0057]

On the other hand, in the step S208, if determined that an additional confirmation process is necessary, the process proceeds to the confirmation process shown in Fig. 6. In the steps S209 and S210, the CMOS sensor 10 executes image capturing with the charge accumulation time as M/120 second and W/120 second to obtain images P3 and P4. Here, M and W are positive integers. Moreover, as described with Fig. 5, it is preferable to select that either of M/120 second or W/120 second is a common multiple of 1/100 second and 1/120 second and another is not a common multiple of 1/100 second and 1/120 second. [0058] In the step S211, a difference image DP2 between the images P3 and P4 is generated. In the step S212, a luminance fluctuation in the vertical direction of the generated difference image DP2 is detected. In this case, if there is no failure or the like in the imaging apparatus 1, the luminance fluctuation in the vertical direction of the

difference image DP2 is not detected and the flicker detection process is ended (step S213) . On the other hand, in an exceptional case that the luminance fluctuation in the vertical direction of the difference image DP2 is detected, return to the step S201 again and the flicker detection process is executed again (step S214) . As a result of the re-execution of the flicker detection process, if the luminance fluctuation is detected again in the step S213, some kind of abnormal event such as a failure of the imaging apparatus 1 is considered to occur. Thus some sort of a notification signal is output to outside of the imaging apparatus 1. The notification signal here may be an electric signal for notifying an occurrence of the abnormal event to an external processor or may be a signal for display or audio output to notify to a user. [0059]

Figs. 5 and 6 are explained assuming the case that the blink cycle of a light source is 2 ways, which are assumed to be a cause of an occurrence of a flicker. Therefore, if he blink cycle of a light source to be a cause of an occurrence of a flicker is 3 ways or more, in the step S212 of Fig. 6, the luminance fluctuation in the vertical direction of the difference image DP2 may be detected. In this case, the charge accumulation time for the CMOS sensor 10 is configured to the time corresponding to a third blink cycle and a further

confirmation process that a flicker is not generated in the charge accumulation time corresponding to the third blink cycle may be performed in the same way as the procedure of Fig. 6. [0060]

After performing the flicker detection process by the procedure explained above to obtain charge accumulation time that is not a cause of a flicker occurrence, by the exposure control unit 15 configuring a pulse transmission timing for the timing generator 16 and the gain for the amplifier 12 in order to perform a normal capture by the charge accumulation time that does not make a flicker, it is possible to obtain a image without flicker. This enables to improve the convenience for users of a digital still camera or the like having the imaging apparatus 1 mounted thereto. Note that the timing to perform the detection process of a flicker may be various timings described in the first embodiment of the present invention such as at a power-on. [0061] Moreover, in Fig. 5, an example is illustrated in which an existence of a flicker is detected by detecting the luminance fluctuation of the difference image DPI of the images Pl and P2 obtained in 2 times of captures. However, as with the abovementioned first embodiment of the present invention, the images Pl and P2 may be repeatedly obtained

to repeat flicker detection. With such configuration, it is possible to quickly respond to a change in the capturing environment. Alternatively, as with the abovementioned first embodiment of the present invention, the images Pl and P2 may be obtained for a plurality of times to generate a plurality of difference images DPI so as to detect an occurrence of a flicker based on the plurality of difference images DPI. With such configuration, the detection accuracy of an occurrence of a flicker can be improved. Note that it is needless to say that this is not limited to Fig. 5 but also applies to Fig. 6. [0062] Third Embodiment

The imaging apparatus 1 according to the abovementioned first or the second embodiment of the present invention is explained with the configuration that detects a flicker by existence of a luminance fluctuation of the difference image DP generated using 2 images Pl and P2 captured in different charge accumulation time. An imaging apparatus 2 of this embodiment is configured to further detect a blink frequency of a light source, which is a flicker frequency, based on a cycle of a luminance fluctuation in the vertical direction of the image plane of the difference image DP (fluctuation cycle of pixel value) . Such configuration is especially effective when a digital still camera or the like having the

imaging apparatus 2 is used in the region where the blink frequency of a light source that generates a flicker in the image of the CMOS sensor 10 is in 2 ways as in Japan. The commercial power supply has a frequency of 50 or 60 Hz in Japan. Hereinafter, the configuration of the imaging apparatus 2 and a flicker detection procedure according to this embodiment are described in detail.

[0063]

The block diagram of the imaging apparatus 2 is shown in Fig. 7. In Fig. 7, components except a flicker detection unit 28 are identical to those included in the abovementioned imaging apparatus 1, thus the components are denoted by the reference numerals in Fig. 1 and detailed explanation for the components are omitted. Note that the exposure control unit 15 included in the imaging apparatus 2 is similar to the imaging apparatus 1 in the point that a capture is performed by alternately switching the charge accumulation time for the CMOS sensor 10 between 2 charge accumulation time of Tl and T2. However, the charge accumulation times Tl and T2 at this time are configured corresponding respectively to the first blink cycle (for example 1/100 second) and second blink cycle (for example 1/120 second) of a light source. Hereinafter, in this embodiment, it is explained that the first blink cycle of a light source is 1/100 second and the first charge accumulation time Tl

corresponding to this is N/100 second. Moreover, it is explained that the second blink cycle of a light source is 1/120 second and the second charge accumulation time T2 corresponding to this is M/120 second. Here, N and M are positive integers. However the second charge accumulation time T2 is determined to be a value except integral multiples of the first blink cycle of the light source "1/100 second". [0064]

The flicker detection unit 28 inputs the difference image DP generated by the difference image generation unit 17 to detect a flicker occurrence in the first image Pl or second image P2 according to a fluctuation of pixel value (luminance fluctuation) in the vertical direction of the image plane of the difference image DP. Furthermore, by analyzing a period of the luminance fluctuation in the vertical direction of the image plane of the difference image DP, the flicker detection unit 28 detects which of the image Pl and P2 a flicker is generated in, in other words, detects that the capturing environment is either under a light source of the first blink cycle (1/100 second) or second blink cycle (1/120 second) . That is, the flicker detection unit 28 can be said to include a flicker frequency detection unit for detecting a frequency of the luminance fluctuation of the difference image DP (which is flicker frequency) . Therefore, in Fig. 7, to clarify the difference from Fig. 1, there is

a description saying flicker frequency detection unit embedded in the block of the flicker detection unit 28. [0065]

When generating the difference image DP with the first charge accumulation time Tl as N/100 second and second charge accumulation time T2 as M/120 second, as described in the first embodiment of the present invention, by detecting an existence of a luminance fluctuation in the vertical direction of the image plane of the difference image DP, it is possible to detect whether a flicker is generated or not. However, by detecting only an existence of a luminance fluctuation of the difference image DP, it is not possible to determine whether the capturing environment of the imaging apparatus 2 is under a light source of 100Hz flicker or a light source of 120Hz flicker. Thus in this embodiment, by analyzing a period or a frequency of the luminance fluctuation of the difference image DP in the following way, the flicker frequency of the capturing environment is determined. [0066]

Figs. 8A to 8C are conceptual diagrams showing waveforms of a luminance fluctuation in the screen vertical direction of the difference image DP. Fig. 8A shows a luminance ^ fluctuation of the difference image DP when a flicker is not generated in either of the images Pl and P2.

In this case, the images Pl and P2 are the same images excluding a movement of a photographic subject and noise. Therefore, pixel values (luminance) of the difference image DP represent a direct current waveform as in Fig. 8A. [0067]

Fig. 8B shows a luminance fluctuation of the difference image DP when a blink frequency of a light source is 100Hz and a flicker is generated in the image P2. A fluctuation frequency of pixel values (luminance) of the difference image DP in this case is determined according to the blink frequency (100Hz) of the light source and a frame rate when capturing the images Pl and P2. [0068]

Furthermore, Fig. 8C shows a luminance fluctuation of the difference image DP when a blink frequency of a light source is 120Hz and a flicker is generated in the image Pl. The fluctuation frequency of pixel values (luminance) of the difference image DP in this case is determined according to the blink frequency (120Hz) of the light source and a frame rate when capturing the images Pl and P2. [0069]

As shown in Figs. 8B and 8C, the frequency of the luminance fluctuation of the difference image DP is proportional to the blink frequency of light source. Therefore, by analyzing the period or frequency of the

luminance fluctuation of the difference image DP, it can be determined which of the 100Hz flicker and 120Hz flicker is generated . [0070] The analysis of the luminance fluctuation frequency in the vertical direction of the difference image DP by the flicker detection unit 28 can be performed using a digital matched filter. More specially, a reference waveform A indicating a luminance fluctuation of the difference image DP when a blink frequency of a light source is 100Hz (100Hz flicker) and a reference waveform B indicating a luminance fluctuation of the difference image DP when the blink frequency of the light source is 120Hz (120Hz flicker) are prepared in advance. Next, a cross-correlation between the observed luminance fluctuation of the difference image DP and the reference waveforms A and B is computed by a digital matched filter. Then, it may be evaluated which of the reference waveforms A and B is closer to the observed luminance fluctuation waveform of the difference image DP according to the computed cross-correlation value. [0071]

Furthermore, alternatively, the flicker detection unit 28 may be configured to execute a Fourier transform to the difference image DP and detect the luminance fluctuation of the difference image DP based on a spatial frequency

spectrum of the difference image DP. Moreover, if the frame rate of the CMOS sensor 10 is large, the number of horizontal stripes caused by a flicker included in the image Pl or P2 relatively becomes small. In such case, the flicker detection unit 28 may measure a number of pixels in the vertical direction of the horizontal stripe included in the difference image DP and may evaluate a flicker frequency by which of the horizontal stripes by 100Hz flicker and 120Hz flicker the number corresponds to. [0072]

Hereinafter, a flicker detection procedure by the imaging apparatus 2 is described with reference to the flowchart of Fig. 9. In the step S301, by the control of the exposure control unit 15, the CMOS sensor 10 executes image capturing with the charge accumulation time Tl (N/100 second) to obtain the first image Pl. Next, in the step S302, the exposure control unit 15 switches the charge accumulation time for the CMOS sensor 10 to the second charge accumulation time T2 (M/120 second), the CMOS sensor 10 executes an image capture with the charge accumulation time T2 to obtain the second image P2. In the step S303, the difference image generation unit 17 generates the difference image DP between the images Pl and P2. In the step S304, the flicker detection 28 measures luminance fluctuation frequency fs in the vertical direction of the difference image DP.

[ 007 3 ]

The flicker detection unit 28 detects "no flicker" if the measured luminance fluctuation frequency is almost zero, that is, the luminance fluctuation waveform of the difference image DP is close to a direct current waveform (steps S305 and S306) . Furthermore, if the measured luminance fluctuation frequency fs is a frequency corresponding to 100Hz flicker of a light source, the flicker detection unit 28 detects that the 100Hz flicker caused by a blink of a light source is generated in the image P2, in other words, it is the capturing environment that generates the 100Hz flicker caused by the blink of the light source (steps S305 and 307) . Moreover, if the measured luminance fluctuation frequency fs is a frequency corresponding to 120Hz flicker of a light source, the flicker detection unit 28 detects that the 120Hz flicker caused by a blink of a light source is generated in the image Pl, in other words, it is the capturing environment that generates the 120Hz flicker caused by the blink of the light source (steps S305 and 308). [0074]

As described above, the imaging apparatus 2 of this embodiment obtains the images Pl and P2 by 2 charge accumulation times of Tl and T2 that each is synchronized with 2 ways of blink frequencies of a light source, and generates the difference image DP between the image Pl and

P2. Furthermore, the imaging apparatus 2 is configured to detect which of the 2 ways of blink frequencies (for example 100Hz and 120Hz) the flicker is caused by, by analyzing a period or a frequency of a luminance fluctuation in the vertical direction of the image plane of the difference image DP, which is a direction vertical to scanning direction of the images Pl and P2. Note that the configuration change and the response to a normal capture in the exposure control unit 15 or the like after detecting a flicker are almost same as the content described in the abovementioned first and the second embodiments, thus a new explanation is omitted here. [0075]

With such configuration, not only the detection of a flicker but also the detection of a flicker frequency can be performed. Moreover, with such configuration, not only in the region such as in Japan where 2 ways of power frequencies 50Hz and 60Hz are used, but in the region such as Europe where power supply frequency is only 50Hz and North America where power supply frequency is only 60Hz, a flicker detection is possible. Therefore, the imaging apparatus 2 can be used generally regardless of usage region. [0076]

Note that the timing to perform the detection process of a flicker in a digital still camera or the like having the imaging apparatus 2 mounted thereto may be various

timings described in the first embodiment of the present invention such as at a power-on.

[0077]

Moreover, the imaging apparatus 2 may obtain the images Pl and P2 for a plurality of times to generate a plurality of difference images DP so as to detect an occurrence of a flicker based on the plurality of difference images DP. For example, the difference images DP may be generated 4 times and if a luminance fluctuation in the vertical direction of the difference images DP are detected consecutively 4 times and the flicker frequency is constant, the imaging apparatus 2 may detect an occurrence of a flicker. With such configuration, it is possible to suppress an erroneous decision for an existence of a flicker and a flicker frequency and improve the detection accuracy of an existence of a flicker and a flicker frequency. [0078]

It is apparent that the present invention is not limited to the above embodiments, but may be modified and changed without departing from the scope and spirit of the invention. [0079]

Note that in the scope of the present invention supported by the abovementioned embodiments of the present invention, the apparatuses and method listed in the following are included.

[ 008 0 ]

Other embodiment of the present invention 1

An imaging apparatus comprising: an imaging sensor; a control unit configured to control capturing first image by the imaging sensor adjusted to first charge accumulation time and control capturing second image by the imaging sensor adjusted to second charge accumulation time, the first charge accumulation time not causing a flicker in an image captured by the imaging sensor under a light source blinking at a first blink cycle, the second charge accumulation time being different from the first charge accumulation time; a difference image generation unit configured to generate a difference image between the first image and the second image; and a flicker detection unit configured to detect a flicker occurrence in the second image based on a fluctuation of pixel values of the difference image in a vertical direction to a scanning direction of the first and the second images, wherein the difference image is generated by calculating a difference in an accumulated value of pixel values in a horizontal direction of the first image and an accumulated value of pixel values in the horizontal direction of the second image.

[0081] Other embodiment of the present invention 2

The imaging apparatus according to other embodiment of the present invention 1, wherein the generation of the difference image by the difference image generation unit is performed for a part of the first and the second images. [0082] Other embodiment of the present invention 3

An imaging apparatus comprising: an imaging sensor; a control unit configured to control capturing first image by the imaging sensor adjusted to first charge accumulation time and control capturing second image by the imaging sensor adjusted to second charge accumulation time, the first charge accumulation time not causing a flicker in an image captured by the imaging sensor under a light source blinking at a first blink cycle, the second charge accumulation time being a cause of a flicker in an image captured by the imaging sensor under the light source blinking at the first blink cycle; and a flicker detection unit configured to detect a flicker occurrence in the second image based on a difference in luminance between the first image and the second image, wherein the first charge accumulation time is an integral multiple of 1/100 second and the second charge

accumulation time is an integral multiple of 1/120 second. [0083] Other embodiment of the present invention 4

A method of detecting a flicker comprising: switching charge accumulation time for an imaging sensor between first charge accumulation time and second charge accumulation time so as to execute capturing first image by the imaging sensor adjusted to the first charge accumulation time and capturing second image by the imaging sensor adjusted to the second charge accumulation time, the first charge accumulation time being synchronized with a first blink cycle of a light source and not causing a flicker in a captured image under the light source blinking at the first blink cycle, the second charge accumulation time being different from the first charge accumulation time; and detecting a flicker occurrence in the second image based on a difference in luminance between the first image and the second image, wherein the capturing by the first charge accumulation time and the capturing by the second charge accumulation time are repeated alternately, and the detection of the flicker occurrence in the second image is repeated using the first and the second images repeatedly captured alternately. [0084]

Other embodiment of the present invention 5

A method of detecting a flicker comprising: switching charge accumulation time for an imaging sensor between first charge accumulation time and second charge accumulation time so as to execute capturing first image by the imaging sensor adjusted to the first charge accumulation time and capturing second image by the imaging sensor adjusted to the second charge accumulation time, the first charge accumulation time being synchronized with a first blink cycle of a light source and not causing a flicker in a captured image under the light source blinking at the first blink cycle, the second charge accumulation time being different from the first charge accumulation time; generating a difference image between the first and the second images; and detecting a flicker occurrence in the second image based on a fluctuation of pixel values of the difference image in a vertical direction to a scanning direction of the first and the second images. [0085]

Other embodiment of the present invention 6

The method according to other embodiment of the present invention 5, wherein the difference image is generated by calculating a difference in pixel values between each corresponding pixel for the first and the second images.

[ 008 6 ]

Other embodiment of the present invention 7

The method according to other embodiment of the present invention 5, wherein the difference image is generated by calculating a difference in an accumulated value of pixel values in a horizontal direction of the first image and an accumulated value of pixel values in the horizontal direction of the second image.

[0087] Other embodiment of the present invention 8

The method according to other embodiment of the present invention 6 or 7, wherein the difference image is generated for a part of the first and the second images.

[0088] Other embodiment of the present invention 9

The method according to other embodiment of the present invention 5, wherein the second charge accumulation time causes a flicker in a captured image under the light source blinking at the first blink cycle, and the second charge accumulation time is synchronized with a second blink cycle of the light source and does not cause a flicker in a captured image under the light source blinking at the second blink cycle . [0089] Other embodiment of the present invention 10

The method according to other embodiment of the present invention 9, wherein the first charge accumulation time is an integral multiple of 1/100 second and the second charge accumulation time is an integral multiple of 1/120 second. [0090]

Other embodiment of the present invention 11

The method according to other embodiment of the present invention 9, wherein the detecting the flicker occurrence includes detecting which of the first or the second image a flicker is generated in according to a fluctuation period or a fluctuation frequency of pixel values of the difference image in a vertical direction to a scanning direction of the first and the second images. [0091] Other embodiment of the present invention 12

An imaging apparatus comprising: an imaging sensor; means for controlling capturing first image by the imaging sensor adjusted to first charge accumulation time and capturing second image by the imaging sensor adjusted to second charge accumulation time, the first charge accumulation time not causing a flicker in an image captured by the imaging sensor under a light source blinking at a first blink cycle, the second charge accumulation time being not synchronized with the first blink cycle and being a cause

of a flicker in an image captured by the imaging sensor under the light source blinking at the first blink cycle; means for generating a difference image between the first image and the second image; and means for detecting a flicker occurrence in the second image based on the difference image.