TWI438595B - Light source flicker detection circuit and method - Google Patents

Light source flicker detection circuit and method Download PDF

Info

Publication number
TWI438595B
TWI438595B TW100109058A TW100109058A TWI438595B TW I438595 B TWI438595 B TW I438595B TW 100109058 A TW100109058 A TW 100109058A TW 100109058 A TW100109058 A TW 100109058A TW I438595 B TWI438595 B TW I438595B
Authority
TW
Taiwan
Prior art keywords
frequency
flicker
ambient light
sampling frequency
chopping
Prior art date
Application number
TW100109058A
Other languages
Chinese (zh)
Other versions
TW201142565A (en
Original Assignee
Sitronix Technology Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sitronix Technology Corp filed Critical Sitronix Technology Corp
Publication of TW201142565A publication Critical patent/TW201142565A/en
Application granted granted Critical
Publication of TWI438595B publication Critical patent/TWI438595B/en

Links

Landscapes

  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Studio Devices (AREA)

Description

光源閃爍偵測電路與方法 Light source flicker detection circuit and method

本發明係有關於一種偵測電路與偵測方法,其係尤指一種光源閃爍偵測電路與方法。 The invention relates to a detection circuit and a detection method, and more particularly to a light source flicker detection circuit and method.

按,當環境光非為自然光而為電燈所提供之室內光時,室內光會因提供給電燈之電源的供應頻率而產生閃爍(flicker),一般常見之閃爍頻率為50Hz或60Hz。現在很多電子裝置會受光源之閃爍而影響其功能,例如光源之閃爍會影響影像擷取裝置擷取景象所產生之畫面的明亮程度。因此在部分電子裝置中,需要進行消除閃爍(de-flicker)的處理,例如在影像擷取裝置之影像感測器中進行消除閃爍處理。影像擷取裝置消除閃爍的一般作法是調整曝光時間,在電源供應頻率為50Hz時,調整曝光時間為1/100秒的整數倍,在電源供應頻率為60Hz時,調整曝光時間為1/120秒的整數倍。 Press, when the ambient light is not the natural light and the indoor light provided by the electric light, the indoor light will generate flicker due to the supply frequency of the power supply to the electric lamp, and the common flashing frequency is 50 Hz or 60 Hz. Many electronic devices are now affected by the flicker of the light source, such as the flicker of the light source, which affects the brightness of the image produced by the image capturing device. Therefore, in some electronic devices, de-flicker processing is required, for example, the flicker-removing process is performed in the image sensor of the image capturing device. The general method of eliminating the flicker by the image capturing device is to adjust the exposure time. When the power supply frequency is 50 Hz, the exposure time is adjusted to an integral multiple of 1/100 second. When the power supply frequency is 60 Hz, the exposure time is adjusted to 1/120 second. Integer multiple.

在進行消除閃爍處理之前必須先得知光源之閃爍頻率為多少。現今得知光源之閃爍頻率有幾種方式。第一種方式是根據電子裝置之販售地區來決定光源之閃爍頻率,例如依據裝設影像擷取裝置的電子裝置(數位相機、數位攝影機、監視器等)的販售地區預設一頻率於電子裝置,例如50Hz或60Hz,以針對預設之頻率消除閃爍,其是因為固定地區之電源的供應頻率為固定而不會變動。然而,使用者可能會攜帶電子裝置跨區出國旅行,所以此種 方式無法確實得知光源之閃爍頻率。 It is necessary to know the flicker frequency of the light source before performing the flicker removal process. There are several ways to know the flashing frequency of a light source. The first method is to determine the blinking frequency of the light source according to the sold area of the electronic device, for example, according to the selling area of the electronic device (digital camera, digital camera, monitor, etc.) equipped with the image capturing device. The electronic device, for example 50 Hz or 60 Hz, eliminates flicker for a preset frequency because the supply frequency of the power source in the fixed area is fixed and does not change. However, users may carry electronic devices to travel abroad across regions, so this type of The way you can't really know the flashing frequency of the light source.

另一種方式是在電子裝置內設置一電源頻率偵測電路,電源頻率偵測電路偵測電源之供應頻率為50Hz或60Hz,並根據此偵測結果而針對50Hz或60Hz消除閃爍。此方式的限制條件是電子裝置必須使用當地電源。然而,若是攜帶式的電子裝置,例如數位相機、數位攝影機與筆記型電腦等,使用電池所提供之電源而非自當地電源取電,如此便無法取得當地電源的頻率資訊,而無法確實得知光源的閃爍頻率,進而無法對應地消除閃爍。 Another method is to set a power frequency detecting circuit in the electronic device. The power frequency detecting circuit detects that the power supply frequency is 50 Hz or 60 Hz, and eliminates flicker for 50 Hz or 60 Hz according to the detection result. The limitation of this method is that the electronic device must use a local power source. However, if portable electronic devices, such as digital cameras, digital cameras, and notebook computers, use the power provided by the battery instead of the local power source, the frequency information of the local power source cannot be obtained, and it is impossible to know. The flicker frequency of the light source, in turn, does not correspondingly eliminate flicker.

因此,如何針對上述問題而提出一種新穎光源閃爍偵測電路,其可確實得知光源之閃爍頻率,以可解決上述之問題。 Therefore, how to solve the above problem is to propose a novel light source flicker detecting circuit, which can surely know the flicker frequency of the light source, so as to solve the above problem.

本發明之目的之一,在於提供一種光源閃爍偵測電路與方法,其藉由判斷一取樣頻率與環境光之一閃爍頻率是否相對應,而得知環境光之閃爍頻率。 One of the objectives of the present invention is to provide a light source flicker detecting circuit and method for knowing the flicker frequency of ambient light by determining whether a sampling frequency corresponds to one of the ambient light flicker frequencies.

本發明之目的之一,在於提供一種光源閃爍偵測電路與方法,其藉由判斷取樣頻率與環境光的閃爍頻率是否同步,而得知環境光之閃爍頻率。 One of the objectives of the present invention is to provide a light source flicker detecting circuit and method for knowing the flicker frequency of ambient light by judging whether the sampling frequency is synchronized with the flicker frequency of the ambient light.

本發明之目的之一,在於提供一種光源閃爍偵測電路與方法,其藉由計數漣波個數而決定取樣頻率是否對應於環境光的閃爍頻率,而得知環境光之閃爍頻率。 One of the objectives of the present invention is to provide a light source flicker detecting circuit and method for determining whether the sampling frequency corresponds to the flicker frequency of ambient light by counting the number of chopping waves, and knowing the flicker frequency of the ambient light.

本發明之目的之一,在於提供一種光源閃爍偵測電路與方法,其依據一第一取樣頻率對應之一第一差異總和值與一第二取樣頻率對應之一第二差異總和值而決定取樣頻率是否對應於環境光之閃爍頻率,而得知環境光之閃爍頻率。 An object of the present invention is to provide a light source flicker detecting circuit and method for determining sampling according to a first difference sum value corresponding to a first sampling frequency and a second difference sum value corresponding to a second sampling frequency. Whether the frequency corresponds to the flicker frequency of the ambient light, and the flicker frequency of the ambient light is known.

本發明之目的之一,在於提供一種光源閃爍偵測電路與方法,其依據一第一取樣頻率對應之一第一漣波差異總和值與一第二取樣頻率對應之一第二漣波差異總和值而決定取樣頻率是否對應於環境光之閃爍頻率,而得知環境光之閃爍頻率。 An object of the present invention is to provide a light source flicker detecting circuit and method, which is based on a first sampling frequency corresponding to a first chopping difference sum value and a second sampling frequency corresponding to a second chopping difference sum The value determines whether the sampling frequency corresponds to the flicker frequency of the ambient light, and the flicker frequency of the ambient light is known.

本發明之光源閃爍偵測電路包含一光偵測單元與一訊號處理單元。光偵測單元用以偵測一環境光而產生一偵測訊號;以及訊號處理單元耦接光偵測單元,並依據一取樣頻率轉換偵測訊號而產生至少一偵測資料以得知環境光之一閃爍頻率,其依據偵測資料判斷取樣頻率是否對應於環境光之閃爍頻率而得知。如此,本發明藉由判斷訊號處理單元之取樣頻率與環境光之閃爍頻率是否相對應,而得知環境光之閃爍頻率。再者,本發明之光源閃爍偵測電路的訊號處理單元係依據偵測資料判斷取樣頻率是否同步於閃爍頻率而得知環境光之閃爍頻率,進而可達到消除閃爍現象。 The light source flicker detecting circuit of the present invention comprises a light detecting unit and a signal processing unit. The light detecting unit is configured to detect an ambient light to generate a detecting signal; and the signal processing unit is coupled to the light detecting unit, and converts the detecting signal according to a sampling frequency to generate at least one detecting data to obtain the ambient light. One of the flicker frequencies is known according to the detected data to determine whether the sampling frequency corresponds to the flicker frequency of the ambient light. Thus, the present invention knows the blinking frequency of the ambient light by determining whether the sampling frequency of the signal processing unit corresponds to the flicker frequency of the ambient light. Furthermore, the signal processing unit of the light source flicker detecting circuit of the present invention determines whether the sampling frequency is synchronized with the flicker frequency according to the detected data to know the flicker frequency of the ambient light, thereby eliminating the flicker phenomenon.

此外,本發明之光源閃爍偵測電路更包含一控制電路。控制單元耦接訊號處理單元,並依據偵測資料控制訊號處理單元的取樣頻率,使取樣頻率對應環境光之閃爍頻率。其中控制單元係可計數該些偵測資料的一漣波(Ripple)之個數,當漣波之個數大於一門檻值,控制單元切換訊號處理單元的取樣頻率。 In addition, the light source flicker detecting circuit of the present invention further includes a control circuit. The control unit is coupled to the signal processing unit, and controls the sampling frequency of the signal processing unit according to the detection data, so that the sampling frequency corresponds to the blinking frequency of the ambient light. The control unit can count the number of Ripples of the detected data. When the number of chopping waves is greater than a threshold, the control unit switches the sampling frequency of the signal processing unit.

又,訊號處理單元更包含一計數單元。計數單元計數該些偵測資料的一漣波(Ripple)之個數而產生一計數結果,並將計數結果傳送至控制單元,控制單元依據計數結果判斷漣波之個數大於一門檻值時,則切換訊號處理單元的取樣頻率。 Moreover, the signal processing unit further includes a counting unit. The counting unit counts the number of Ripples of the detected data to generate a counting result, and transmits the counting result to the control unit, and the control unit determines, according to the counting result, that the number of the chopping waves is greater than a threshold value. Then, the sampling frequency of the signal processing unit is switched.

本發明: this invention:

1‧‧‧光源閃爍偵測電路 1‧‧‧Light source flicker detection circuit

10‧‧‧光偵測單元 10‧‧‧Light detection unit

20‧‧‧訊號處理單元 20‧‧‧Signal Processing Unit

22‧‧‧類比數位轉換單元 22‧‧‧ analog digital conversion unit

24‧‧‧計數單元 24‧‧‧counting unit

30‧‧‧控制單元 30‧‧‧Control unit

40‧‧‧影像擷取單元 40‧‧‧Image capture unit

50‧‧‧第一波形 50‧‧‧First waveform

60‧‧‧第二波形 60‧‧‧second waveform

第一圖係為本發明之一較佳實施例之方塊圖; 第二A圖係為本發明之取樣頻率對應閃爍頻率的示意圖;第二B圖係為本發明之取樣頻率不對應閃爍頻率的示意圖;第三圖係為本發明之另一較佳實施例之方塊圖;第四圖係為本發明之另一較佳實施例之方塊圖;第五圖係為本發明之一較佳實施例之偵測資料的表格;第六圖係為第四圖之一較佳實施例之偵測資料的波形圖;第七A圖係為本發明之一較佳實施例之第一取樣頻率之偵測資料的波形圖;以及第七B圖係為本發明之另一較佳實施例之第二取樣頻率之偵測資料的波形圖。 The first figure is a block diagram of a preferred embodiment of the present invention; The second diagram is a schematic diagram of the sampling frequency corresponding to the blinking frequency of the present invention; the second diagram B is a schematic diagram of the sampling frequency of the present invention not corresponding to the blinking frequency; and the third figure is another preferred embodiment of the present invention. 4 is a block diagram of another preferred embodiment of the present invention; a fifth diagram is a table for detecting data according to a preferred embodiment of the present invention; and a sixth diagram is a fourth diagram; A waveform diagram of the detected data of a preferred embodiment; FIG. 7A is a waveform diagram of the detected data of the first sampling frequency according to a preferred embodiment of the present invention; and FIG. 7B is a waveform of the present invention A waveform diagram of the detected data of the second sampling frequency of another preferred embodiment.

茲為使 貴審查委員對本發明之結構特徵及所達成之功效有更進一步之瞭解與認識,謹佐以較佳之實施例及配合詳細之說明,說明如後:請參閱第一圖,係為本發明之一較佳實施例之方塊圖。如圖所示,本發明之光源閃爍偵測電路1包含一光偵測單元10與一訊號處理單元20。光偵測單元10用以偵測一環境光而產生一偵測訊號,於本實施例中,光偵測單元10為一光二極體(Photo diode),光二極體可偵測環境的光源,而將環境光轉換為電訊號(即偵測訊號)。訊號處理單元20係耦接光偵測單元10以接收光偵測單元10所輸出之偵測訊號,訊號處理單元20係依據至少一取樣頻率fs而轉換偵測訊號而產生至少一偵測資料以得知環境光之一閃爍頻率,其中本發明係藉由依據偵測資料判斷取樣頻率fs是否對應於閃爍頻率而確認環境光的閃爍頻率,於本發明中係處理偵測資 料而得知取樣頻率fs是否對應於環境光之閃爍頻率。 In order to provide a better understanding and understanding of the structural features and the efficacies of the present invention, please refer to the preferred embodiment and the detailed description, as explained below: please refer to the first figure. A block diagram of a preferred embodiment of the invention. As shown in the figure, the light source flicker detecting circuit 1 of the present invention comprises a light detecting unit 10 and a signal processing unit 20. The light detecting unit 10 is configured to detect an ambient light to generate a detecting signal. In this embodiment, the light detecting unit 10 is a photo diode, and the light diode can detect the ambient light source. The ambient light is converted into a telecommunication signal (ie, a detection signal). The signal processing unit 20 is coupled to the light detecting unit 10 to receive the detection signal output by the light detecting unit 10. The signal processing unit 20 converts the detecting signal according to the at least one sampling frequency fs to generate at least one detected data. Knowing one of the ambient light flickering frequencies, wherein the present invention determines the flicker frequency of the ambient light by determining whether the sampling frequency fs corresponds to the flicker frequency according to the detected data, and in the present invention, processing the detecting capital It is known whether the sampling frequency fs corresponds to the flicker frequency of the ambient light.

請一併參閱第二A圖與第二B圖,係為本發明之取樣頻率對應閃爍頻率的示意圖與取樣頻率不對應閃爍頻率的示意圖。如圖所示,當取樣頻率fs對應環境光的閃爍頻率時,訊號處理單元20依據取樣頻率fs產生的偵測資料理論上並不會有漣波(Ripple),即取樣頻率fs同步於環境光的閃爍頻率時,偵測資料並不會產生漣波(如第二A圖所示)或是不會產生很多漣波;反之,當取樣頻率fs不對應環境光的閃爍頻率時,訊號處理單元20依據取樣頻率產生的偵測資料所包含的漣波之個數必定很多(如第二B圖所示)。如此,本發明藉由判斷訊號處理單元20之取樣頻率fs與環境光之閃爍頻率是否相對應,而得知環境光之閃爍頻率,進而供後續進行消除閃爍現象。 Please refer to the second A picture and the second B picture together, which is a schematic diagram of the sampling frequency corresponding to the blinking frequency and the sampling frequency does not correspond to the blinking frequency. As shown in the figure, when the sampling frequency fs corresponds to the blinking frequency of the ambient light, the detection data generated by the signal processing unit 20 according to the sampling frequency fs theoretically does not have a chopping (Ripple), that is, the sampling frequency fs is synchronized with the ambient light. When the flicker frequency is detected, the detected data does not generate chopping (as shown in Figure 2A) or does not generate a lot of chopping. Conversely, when the sampling frequency fs does not correspond to the flickering frequency of the ambient light, the signal processing unit 20 The detection data generated based on the sampling frequency must contain a large number of chopping waves (as shown in Figure B). In this way, the present invention knows whether the sampling frequency fs of the signal processing unit 20 corresponds to the flicker frequency of the ambient light, and knows the flicker frequency of the ambient light, thereby further eliminating the flicker phenomenon.

此外,本發明之訊號處理單元20包含一類比數位轉換單元22(Analog-to-Digital Converter,ADC)。類比數位轉換單元22可依據取樣頻率fs取樣偵測訊號以產生偵測資料,即轉換偵測訊號而產生偵測資料,以依據偵測資料而得知環境光的閃爍頻率,進而達到消除閃爍現象。 In addition, the signal processing unit 20 of the present invention includes an analog-to-digital converter (ADC). The analog digital conversion unit 22 can sample the detection signal according to the sampling frequency fs to generate the detection data, that is, convert the detection signal to generate the detection data, and learn the flicker frequency of the ambient light according to the detection data, thereby eliminating the flicker phenomenon. .

請一併參閱第三圖,係為本發明之另一較佳實施例之方塊圖。如圖所示,本實施例與第一圖之實施例不同之處,在於本實施例之光源閃爍偵測電路1更包含一控制單元30。控制單元30耦接訊號處理單元20,並依據偵測資料控制訊號處理單元20的取樣頻率fs,使取樣頻率fs對應環境光的閃爍頻率,即控制單元30藉由運算偵測資料而可以得知取樣頻率fs是否對應於環境光的閃爍頻率,若取樣頻率fs不對應環境光的閃爍頻率,則可以控制取樣頻率fs,使取樣頻率fs對應於環境光的閃爍頻率,以可確認環境光 的閃爍頻率。 Please refer to the third figure, which is a block diagram of another preferred embodiment of the present invention. As shown in the figure, the embodiment is different from the embodiment of the first embodiment in that the light source flicker detecting circuit 1 of the embodiment further includes a control unit 30. The control unit 30 is coupled to the signal processing unit 20, and controls the sampling frequency fs of the signal processing unit 20 according to the detection data, so that the sampling frequency fs corresponds to the blinking frequency of the ambient light, that is, the control unit 30 can learn by detecting the detected data. Whether the sampling frequency fs corresponds to the flicker frequency of the ambient light, if the sampling frequency fs does not correspond to the flicker frequency of the ambient light, the sampling frequency fs can be controlled such that the sampling frequency fs corresponds to the flicker frequency of the ambient light to confirm the ambient light The frequency of flashing.

另外,控制單元30依據環境光的閃爍頻率產生一控制訊號,並傳送控制訊號至電子裝置,以控制電子裝置消除閃爍現象。於本實施例中電子裝置為一影像擷取單元40,控制單元30傳送控制訊號至影像擷取單元40,以控制影像擷取單元40之一擷取頻率對應環境光之閃爍頻率。如此,本發明藉由控制單元30控制影像擷取單元40之擷取頻率對應環境光的閃爍頻率,而使影像擷取單元40所擷取景象而產生的畫面不會發生閃爍的現象。 In addition, the control unit 30 generates a control signal according to the blinking frequency of the ambient light, and transmits a control signal to the electronic device to control the electronic device to eliminate the flicker phenomenon. In the embodiment, the electronic device is an image capturing unit 40, and the control unit 30 transmits a control signal to the image capturing unit 40 to control one of the image capturing units 40 to capture the frequency corresponding to the ambient light. In this way, the control unit 30 controls the frequency of the capture of the image capturing unit 40 to correspond to the blinking frequency of the ambient light, so that the image generated by the image capturing unit 40 does not flicker.

換言之,控制單元30於取樣頻率fs相對應閃爍頻率後,產生控制訊號,並傳送控制訊號至影像擷取單元40,以控制影像擷取單元40之擷取頻率,即取樣頻率fs對應於環境光之閃爍頻率時,表示訊號處理單元20的取樣頻率相似於環境光的閃爍頻率,而取樣頻率fs亦對應於擷取頻率,如此,本發明可藉由控制單元控制影像擷取單元40之擷取頻率對應於環境光之閃爍頻率,而達到消除閃爍的現象。 In other words, after the sampling frequency fs corresponds to the blinking frequency, the control unit 30 generates a control signal and transmits a control signal to the image capturing unit 40 to control the capturing frequency of the image capturing unit 40, that is, the sampling frequency fs corresponds to the ambient light. The sampling frequency of the signal processing unit 20 is similar to the blinking frequency of the ambient light, and the sampling frequency fs also corresponds to the capturing frequency. Thus, the present invention can control the image capturing unit 40 to be captured by the control unit. The frequency corresponds to the flicker frequency of the ambient light, and the phenomenon of eliminating flicker is achieved.

承上所述,本發明判斷取樣頻率fs是否對應環境光之閃爍頻率之一實施方式,係本發明之控制單元30係用以計數訊號處理單元20輸出之該些偵測資料的一漣波(Ripple)的個數,以判斷訊號處理單元20的類比數位轉換單元22之取樣頻率fs是否對應於環境光的閃爍頻率,其當漣波的個數大於一門檻值,控制單元30則切換訊號處理單元20之類比數位轉換單元22的取樣頻率fs,即漣波的個數大於門檻值時,表示取樣頻率fs不對應於閃爍頻率,而控制單元30需要切換類比數位轉換單元22之取樣頻率fs為另一個新的取樣頻率fs,以重新轉換光偵測單元10偵測環境光所產生之偵測訊號而產生新的偵測資料,以接續判斷取樣頻率fs是否對應於 閃爍頻率。 As described above, the present invention determines whether the sampling frequency fs corresponds to one of the flicker frequencies of the ambient light. The control unit 30 of the present invention is configured to count a chopping of the detected data output by the signal processing unit 20 ( The number of Ripples is used to determine whether the sampling frequency fs of the analog-to-digital conversion unit 22 of the signal processing unit 20 corresponds to the flicker frequency of the ambient light. When the number of chopping waves is greater than a threshold value, the control unit 30 switches the signal processing. When the sampling frequency fs of the analog-to-digital conversion unit 22 of the unit 20, that is, the number of chopping waves is greater than the threshold value, it indicates that the sampling frequency fs does not correspond to the flicker frequency, and the control unit 30 needs to switch the sampling frequency fs of the analog-digital conversion unit 22 to Another new sampling frequency fs is used to re-convert the detection signal generated by the light detecting unit 10 to detect ambient light to generate new detection data, so as to determine whether the sampling frequency fs corresponds to Flashing frequency.

例如:當目前環境光源的閃爍頻率為60Hz,而訊號處理單元20之類比數位轉換單元22的取樣頻率fs為50Hz時,類比數位轉換單元22對光偵測單元10所產生之偵測訊號進行取樣而產生偵測資料,控制單元30則計數該些偵測資料之漣波的個數,由於取樣頻率fs為50Hz並不對應於環境光的閃爍頻率60Hz,所以,漣波的個數必定大於門檻值,此時,控制單元30則切換類比數位轉換單元22的取樣頻率fs為60Hz,並重新轉換光偵測單元10偵測環境光所產生之偵測訊號而產生新的偵測資料,以重新計數新的偵測資料之漣波的個數,此時,由於取樣頻率fs為60Hz對應於環境光的閃爍頻率60Hz,所以,漣波的個數小於門檻值,之後控制單元30則產生控制訊號並傳送至影像擷取單元40,以控制影像擷取單元40的擷取頻率對應於閃爍頻率,進而達到消除閃爍現象。 For example, when the blinking frequency of the ambient light source is 60 Hz, and the sampling frequency fs of the analog converting unit 22 of the signal processing unit 20 is 50 Hz, the analog digital converting unit 22 samples the detecting signal generated by the light detecting unit 10. The detection unit 30 generates the number of chopping waves of the detected data. Since the sampling frequency fs is 50 Hz and does not correspond to the ambient light flicker frequency of 60 Hz, the number of chopping waves must be greater than the threshold. In this case, the control unit 30 switches the sampling frequency fs of the analog digital conversion unit 22 to 60 Hz, and re-converts the detection signal generated by the light detecting unit 10 to detect ambient light to generate new detection data to re Counting the number of chopping waves of the new detected data. At this time, since the sampling frequency fs is 60 Hz corresponding to the blinking frequency of ambient light 60 Hz, the number of chopping waves is less than the threshold value, and then the control unit 30 generates a control signal. And the image capturing unit 40 is controlled to control the capturing frequency of the image capturing unit 40 to correspond to the blinking frequency, thereby achieving the phenomenon of eliminating flicker.

請一併參閱第四圖,係為本發明之另一較佳實施例之方塊圖。如圖所示,本實施例與第三圖之實施例不同之處,在於本實施例之光源閃爍偵測電路1另包含一計數單元24。計數單元24係耦接訊號處理單元20之類比數位轉換單元22,並計數該些偵測資料之漣波的個數而產生一計數結果,並將計數結果傳送至控制單元30,控制單元30判斷漣波的個數大於門檻值時,則切換類比數位轉換單元22的取樣頻率,其餘處理方式同於上一實施例所描述之方式,所以於此不再詳述。 Please refer to the fourth figure, which is a block diagram of another preferred embodiment of the present invention. As shown in the figure, the embodiment of the present embodiment is different from the embodiment of the third embodiment in that the light source flicker detecting circuit 1 of the present embodiment further includes a counting unit 24. The counting unit 24 is coupled to the analog digital converting unit 22 of the signal processing unit 20, and counts the number of chopping waves of the detected data to generate a counting result, and transmits the counting result to the control unit 30, and the control unit 30 determines When the number of chopping waves is greater than the threshold value, the sampling frequency of the analog-to-digital conversion unit 22 is switched, and the rest of the processing manner is the same as that described in the previous embodiment, and therefore will not be described in detail herein.

請一併參閱第五圖、第六圖,係分別為本發明之一較佳實施例之偵測資料的表格與波形圖。如圖所示,本實施例係舉例說明控制單元30或計數單元24如何計數偵測資料之漣波的個數而判斷取樣頻率fs是否相對應於閃爍頻率,以得知環境光之閃爍頻率, 進而達到消除閃爍現象的目的。首先,如第五圖所示,訊號處理單元20所產生之偵測資料包含複數偵測值,該些偵測值分別為431、439、436、424、417、438、440、432、412、431、438、436、424、420、438與440。其將該些偵測值繪製成第六圖之波形,由於本實施例之漣波的定義為三個偵測值中,第一個偵測值與第二偵測值為直線上升,而第二個偵測值至第三個偵測值為直線下降時,或是第一個偵測值與第二偵測值為直線下降,而第二個偵測值至第三個偵測值為直線上升時,並且在第二個偵測值至第三個偵測值的差值大於一參考值時,即可認定為漣波,以本實施前三個偵測值為例,即第一個偵測值為431,第二個偵測值為439,第三個偵測值為417,並且參考值設定為20,第一個偵測值至第二個偵測值係由431上升至439,而第二個偵測值至第三個偵測值係由439下降至417,並且第二個偵測值與第三個偵測值間的差值為22,即差值為22大於參考值為20,就可以認定前三個偵測值有一個漣波。同理,第六圖之波形的該些偵測值內有5個漣波。 Please refer to FIG. 5 and FIG. 6 together, which are respectively a table and a waveform diagram of the detection data according to a preferred embodiment of the present invention. As shown in the figure, this embodiment illustrates how the control unit 30 or the counting unit 24 counts the number of chopping waves of the detected data to determine whether the sampling frequency fs corresponds to the flicker frequency, so as to know the flicker frequency of the ambient light. In order to achieve the purpose of eliminating flicker. First, as shown in FIG. 5, the detection data generated by the signal processing unit 20 includes a plurality of detection values, which are 431, 439, 436, 424, 417, 438, 440, 432, and 412, respectively. 431, 438, 436, 424, 420, 438, and 440. The detected value is drawn into the waveform of the sixth figure. Since the chopping of the embodiment is defined as three detected values, the first detected value and the second detected value rise linearly, and the first The two detection values until the third detection value is linearly decreased, or the first detection value and the second detection value are linearly decreased, and the second detection value to the third detection value is When the line rises linearly, and the difference between the second detected value and the third detected value is greater than a reference value, it can be regarded as chopping, and the first three detection values of the present embodiment are the first The detection value is 431, the second detection value is 439, the third detection value is 417, and the reference value is set to 20, and the first detection value to the second detection value is raised from 431 to 439, and the second detected value to the third detected value is decreased from 439 to 417, and the difference between the second detected value and the third detected value is 22, that is, the difference is 22 is greater than The reference value is 20, and it can be determined that there is a chopping of the first three detected values. Similarly, there are 5 chops in the detected values of the waveform in the sixth graph.

接著,本實施可設定一門檻值以依據偵測資料判斷取樣頻率fs是否對應環境光之閃爍頻率,以得知環境光之閃爍頻率,於本實施例中,當門檻值設定為3時,偵測資料包含5個漣波大於門檻值,即可判斷此取樣頻率fs對應於環境光的閃爍頻率,而得知環境光的閃爍頻率。當門檻值設定為6時,偵測資料所包含的漣波小於門檻值,即可判定取樣頻率fs並不對應環境光的閃爍頻率,而必須重新切換不同的取樣頻率fs,再判斷新的取樣頻率fs是否對應於閃爍頻率。 Then, the implementation may set a threshold to determine whether the sampling frequency fs corresponds to the blinking frequency of the ambient light according to the detected data, so as to know the blinking frequency of the ambient light. In this embodiment, when the threshold is set to 3, the detection is performed. The measured data contains 5 chops larger than the threshold value, and it can be judged that the sampling frequency fs corresponds to the flicker frequency of the ambient light, and the flicker frequency of the ambient light is known. When the threshold value is set to 6, the detection data contains less than the threshold value, and it can be determined that the sampling frequency fs does not correspond to the blinking frequency of the ambient light, and the different sampling frequency fs must be switched again, and then the new sampling is determined. Whether the frequency fs corresponds to the flicker frequency.

本發明判斷取樣頻率fs是否相對應於環境光之閃爍頻率的方 式,除了上述比較漣波個數與門檻值之方式外,更有其他判斷方式,以下將會舉例說明。本發明之訊號處理單元20會依據一第一取樣頻率與第二取樣頻率轉換光偵測單元10偵測環境光所產生之偵測訊號而產生一第一偵測資料與一第二偵測資料,以依據第一偵測資料與第二偵測資料判斷第一取樣頻率或第二取樣頻率對應於環境光之閃爍頻率。 The invention determines whether the sampling frequency fs corresponds to the flicker frequency of the ambient light. In addition to the above method of comparing the number of chopping and the threshold value, there are other ways of judging, which will be exemplified below. The signal processing unit 20 of the present invention generates a first detection data and a second detection data according to a detection signal generated by the first sampling frequency and the second sampling frequency conversion light detecting unit 10 detecting the ambient light. And determining, according to the first detection data and the second detection data, that the first sampling frequency or the second sampling frequency corresponds to a blinking frequency of the ambient light.

請一併參閱第七A圖與第七B圖,係分別為本發明之一較佳實施例之依據第一取樣頻率與第二取樣頻率所產生的偵測資料的波形圖。此實施例係訊號處理單元20依據第一取樣頻率與第二取樣頻率產生第一偵測資料與第二偵測資料。其中,第一取樣頻率對應一第一參考閃爍頻率,第二取樣頻率對應一第二參考閃爍頻率。當第一取樣頻率對應環境光之閃爍頻率時,即確認第一參考閃爍頻率為環境光之閃爍頻率;同理,當第二取樣頻率對應環境光之閃爍頻率時,即確認第二參考閃爍頻率為環境光之閃爍頻率。於此實施例中,訊號處理單元20依據第一取樣頻率與第二取樣頻率而分別產生第一偵測資料與第二偵測資料,以形成一第一波形50與一第二波形60。 Please refer to FIG. 7A and FIG. 7B respectively, which are waveform diagrams of detection data generated according to the first sampling frequency and the second sampling frequency, respectively, according to a preferred embodiment of the present invention. In this embodiment, the signal processing unit 20 generates the first detection data and the second detection data according to the first sampling frequency and the second sampling frequency. The first sampling frequency corresponds to a first reference blinking frequency, and the second sampling frequency corresponds to a second reference blinking frequency. When the first sampling frequency corresponds to the flicker frequency of the ambient light, the first reference flicker frequency is confirmed as the flicker frequency of the ambient light; similarly, when the second sampling frequency corresponds to the flicker frequency of the ambient light, the second reference flicker frequency is confirmed The flashing frequency of ambient light. In this embodiment, the signal processing unit 20 generates the first detection data and the second detection data according to the first sampling frequency and the second sampling frequency to form a first waveform 50 and a second waveform 60.

承上所述,本發明之判斷取樣頻率fs與閃爍頻率是否相對應的方式有四種。首先,本發明係利用第一偵測資料與第二偵測資料之漣波的個數進行判斷。第一偵測資料之漣波的個數為一第一漣波個數;第二偵測資料之漣波的個數為一第二漣波個數。控制單元30依據第一漣波個數與第二漣波個數判斷第一取樣頻率對應於環境光之閃爍頻率或者第二取樣頻率對應於環境光之閃爍頻率,進而判斷第一參考閃爍頻率為環境光之閃爍頻率或第二參考閃爍頻率為環境光之閃爍頻率。即本實施例判斷漣波的個數是否超 過門檻值而決定,若設定門檻值為5時,第二波形60之漣波的個數為5個大於門檻值,所以第二波形60的取樣頻率不對應於環境光的閃爍頻率,而第一參考閃爍頻率為閃爍頻率,此實施例中,第一取樣頻率為100Hz,而第一取樣頻率所對應之第一參考閃爍頻率則為100Hz;第二取樣頻率為120Hz,而第二取樣頻率所對應之第二參考閃爍頻率則為120Hz,也就是第一參考閃爍頻率100Hz為環境光之閃爍頻率。並且,第一波形50之漣波的個數為0個小於門檻值,即控制單元30就會控制訊號處理單元20之類比數位轉換單元22的取樣頻率設定為100Hz,並設定第一參考閃爍頻率100Hz為閃爍頻率,以達到消除閃爍的現象。 As described above, there are four ways in which the judgment sampling frequency fs of the present invention corresponds to the flicker frequency. First, the present invention determines the number of chopping waves of the first detected data and the second detected data. The number of chopping waves of the first detecting data is a first chopping number; the number of chopping waves of the second detecting data is a second chopping number. The control unit 30 determines, according to the first chopping number and the second chopping number, that the first sampling frequency corresponds to the flicker frequency of the ambient light or the second sampling frequency corresponds to the flicker frequency of the ambient light, thereby determining that the first reference flicker frequency is The ambient light flicker frequency or the second reference flicker frequency is the flicker frequency of the ambient light. That is, whether the number of chopping waves is exceeded in this embodiment It is determined by the threshold value that if the threshold value is set to 5, the number of chopping waves of the second waveform 60 is greater than the threshold value, so the sampling frequency of the second waveform 60 does not correspond to the blinking frequency of the ambient light, and the A reference flicker frequency is a flicker frequency. In this embodiment, the first sampling frequency is 100 Hz, and the first reference flicker frequency corresponding to the first sampling frequency is 100 Hz; the second sampling frequency is 120 Hz, and the second sampling frequency is The corresponding second reference flicker frequency is 120 Hz, that is, the first reference flicker frequency 100 Hz is the flicker frequency of the ambient light. Moreover, the number of chopping waves of the first waveform 50 is less than the threshold value, that is, the control unit 30 controls the sampling frequency of the analog-to-digital conversion unit 22 of the signal processing unit 20 to be set to 100 Hz, and sets the first reference flicker frequency. 100Hz is the flicker frequency to eliminate the flicker.

第二種判定的方法係當第一漣波的個數大於第二漣波的個數與一偏移值THdiff的一第一總和值時,則第二參考閃爍頻率為閃爍頻率,即利用第一漣波的個數大於第二漣波的個數加上一偏移值THdiff時,則第二參考閃爍頻率為閃爍頻率;當第二漣波的個數大於第一漣波的個數與偏移值THdiff的一第二總和值時,則第一參考閃爍頻率為閃爍頻率,即第二漣波的個數大於第一漣波的個數加上偏移值THdiff時,則第一參考閃爍頻率為閃爍頻率。其中,偏移值THdiff係用以避免第一波形50與第二波形60太相似而分辨不出來第一參考閃爍頻率或第二參考閃爍頻率為閃爍頻率而設計的。例如當偏移值THdiff為3,而第一波形50之漣波的個數為0個,第二波形60之漣波的個數為5個,由於第二波形60之漣波的個數為5大於第一波形50之漣波的個數為0加上偏移值3,所以,設定第一波形50之第一取樣頻率所對應之第一參考閃爍頻率100Hz為閃爍頻率。 The second method of determining is that when the number of first chopping waves is greater than a first sum of the number of second chopping waves and an offset value TH diff , the second reference flicker frequency is a flicker frequency, that is, utilizing When the number of first chopping waves is greater than the number of second chopping waves plus an offset value TH diff , the second reference flicker frequency is a flicker frequency; when the number of second chopping waves is greater than the first chopping wave When the number and the offset value TH diff are a second sum value, the first reference flicker frequency is a flicker frequency, that is, when the number of the second chopping waves is greater than the number of the first chopping waves plus the offset value TH diff Then the first reference flicker frequency is the flicker frequency. The offset value TH diff is designed to prevent the first waveform 50 from being too similar to the second waveform 60 to resolve the first reference flicker frequency or the second reference flicker frequency as the flicker frequency. For example, when the offset value TH diff is 3, the number of chopping waves of the first waveform 50 is 0, and the number of chopping waves of the second waveform 60 is 5, because the number of chopping waves of the second waveform 60 is The number of chopping waves 5 is greater than the first waveform 50 is 0 plus the offset value 3. Therefore, the first reference flicker frequency 100 Hz corresponding to the first sampling frequency of the first waveform 50 is set to be the flicker frequency.

第三種判定的方法係先利用第一偵測資料與第二偵測資料的 偵測值進行判斷。第一偵測資料包含複數第一偵測值,該些第一偵測值間之差值的總和為一第一差異總和值;第二偵測資料包含複數第二偵測值,該些第二偵測值間之差值的總和為一第二差異總和值。之後,當第一差異總和值與一第一平均值的一商值大於該第二差異總和值與一第二平均值的一商值和一偏移值之一第一總和值時,則第二參考閃爍頻率為閃爍頻率;當第一差異總和值與一第一平均值的一商值小於第二差異總和值與一第二平均值的一商值和一偏移值之一第一總和值時,則第一參考閃爍頻率為閃爍頻率。如第五圖所示,第一波形50之第一偵測資料差異總和值為| 439-431 |+| 436-439 |+| 424-436 |+| 417-424 |+| 438-417 |+| 440-438 |+| 432-440 |+| 412-432 |+| 431-412 |+| 438-431 |+| 436-438 |+| 424-436 |+| 420-424 |+| 438-420 |+| 440-438 |=8+3+12+7+21+2+8+20+19+7+2+12+4+18+2=145,而第一平均值為431+439+436+424+417+438+440+432+412+431+438+436+424+424+420+438+440/16=431,同理,第二波形60之第二偵測資料差異總和值係| 430-428 |+| 435-430 |+| 436-435 |+| 433-436 |+| 433-433 |+| 434-433 |+| 426-434 |+| 426-426 |+| 429-426 |+| 433-429 |+| 435-433 |+| 434-435 |+| 432-434 |+| 428-432 |+| 425-428 |=2+5+1+3+1+8+3+4+2+1+2+4+3+18+2為39與第二平均值為431,並且第一偵測資料差異總和值與第一平均值對應第一參考閃爍頻率,而第二偵測資料差異總和值與第二平均值對應第二參考閃爍頻率。若第一參考閃爍頻率為100Hz,而第二參考閃爍頻率為120Hz,並第一平均值為431,第二平均值為431,偏移值THdiff為0.2時,當第一波形50之第一偵測資料差異總和值為145與第一平 均值431之商值為0.336426914大於第二波形60之第二偵測資料差異總和值39與第二平均值431的商值為0.090487239和偏移值0.2的總和值,即第一偵測資料差異總和值為145除以第一平均值431的商值為0.336426914,其大於第二偵測資料差異總和值39除以第二平均值431的商值0.090487239加上偏移值0.2的總和值為0.290487239,所以,設定第二參考閃爍頻率120Hz為閃爍頻率。 The third method of determining is to first use the detected values of the first detected data and the second detected data to determine. The first detection data includes a plurality of first detection values, and the sum of the difference values between the first detection values is a first difference sum value; the second detection data includes a plurality of second detection values, the The sum of the differences between the two detected values is a second difference sum value. Then, when a quotient value of the first difference sum value and a first average value is greater than a first sum value of the second difference sum value and a second average value, and a first sum value of one of the offset values, then The second reference flicker frequency is a flicker frequency; when the first difference sum value and a first average value are smaller than the second difference sum value and a second average value, a first sum of one of the quotient value and an offset value When the value is, the first reference blinking frequency is the blinking frequency. As shown in the fifth figure, the sum of the first detected data differences of the first waveform 50 is | 439-431 |+| 436-439 |+| 424-436 |+| 417-424 |+| 438-417 | +| 440-438 |+| 432-440 |+| 412-432 |+| 431-412 |+| 438-431 |+| 436-438 |+| 424-436 |+| 420-424 |+| 438-420 |+| 440-438 |=8+3+12+7+21+2+8+20+19+7+2+12+4+18+2=145, while the first average is 431 +439+436+424+417+438+440+432+412+431+438+436+424+424+420+438+440/16=431, similarly, the second detection data of the second waveform 60 Difference sum value system | 430-428 |+| 435-430 |+| 436-435 |+| 433-436 |+| 433-433 |+| 434-433 |+| 426-434 |+| 426-426 |+| 429-426 |+| 433-429 |+| 435-433 |+| 434-435 |+| 432-434 |+| 428-432 |+| 425-428 |=2+5+1+ 3+1+8+3+4+2+1+2+4+3+18+2 is 39 and the second average is 431, and the sum of the first detected data differences corresponds to the first average. Referring to the blinking frequency, the second detected data difference sum value corresponds to the second average corresponding to the second reference blinking frequency. If the first reference flicker frequency is 100 Hz, and the second reference flicker frequency is 120 Hz, and the first average value is 431, the second average value is 431, and the offset value TH diff is 0.2, when the first waveform 50 is the first The sum of the detected data difference value 145 and the first average value 431 is 0.336426914 is greater than the second detected data difference sum value 39 of the second waveform 60 and the second average value 431 has a quotient of 0.090487239 and an offset value of 0.2. The sum value, that is, the sum of the first detected data difference value 145 divided by the first average value 431 is 0.336426914, which is greater than the second detected data difference sum value 39 divided by the second average value 431 quotient value 0.090487239 The sum of the offset values of 0.2 is 0.290487239, so the second reference flicker frequency of 120 Hz is set as the flicker frequency.

第四種判定的方法係加總第一偵測資料之複數漣波間的差異而得知一第一漣波差異總和值,以及加總第二偵測資料之複數漣波間的差異而得知一第二漣波差異總和值,以判斷第一取樣頻率或第二取樣頻率對應於環境光之閃爍頻率。當第一漣波差異總和值大於第二漣波差異總和值和一偏移值之一第一總合值時,則第二參考閃爍頻率為環境光之閃爍頻率;當第二漣波差異總和值大於第一漣波差異總和值與偏移值之一第二總合值時,則第一參考閃爍頻率為環境光之閃爍頻率。 The fourth method of determining is to add a difference between the complex choppings of the first detected data to obtain a sum of the first chopping differences, and to add a difference between the complex chopping waves of the second detecting data to obtain a difference. The second chop difference sum value is used to determine whether the first sampling frequency or the second sampling frequency corresponds to the flicker frequency of the ambient light. When the first chop difference sum value is greater than the second chop difference sum value and one of the offset values, the second reference flicker frequency is the flicker frequency of the ambient light; when the second chop difference is summed When the value is greater than the second sum of the first chop difference sum value and the offset value, the first reference flicker frequency is the flicker frequency of the ambient light.

綜上所述,本發明之光源閃爍偵測電路與方法係使用一光偵測單元偵測一環境光而產生一偵測訊號,之後,使用一訊號處理單元依據至少一取樣頻率轉換偵測訊號而產生至少一偵測資料,並依據偵測資料判斷閃爍頻率是否對應於取樣頻率,以得知環境光之一閃爍頻率。如此,本發明係藉由判斷訊號處理單元之取樣頻率與環境光之閃爍頻率是否相對應,而得知環境光之閃爍頻率。 In summary, the light source blink detection circuit and method of the present invention uses a light detecting unit to detect an ambient light to generate a detection signal, and then uses a signal processing unit to convert the detection signal according to at least one sampling frequency. And generating at least one detection data, and determining, according to the detection data, whether the flicker frequency corresponds to the sampling frequency, so as to know the flicker frequency of one of the ambient lights. Thus, the present invention knows the flicker frequency of the ambient light by determining whether the sampling frequency of the signal processing unit corresponds to the flicker frequency of the ambient light.

本發明係實為一具有新穎性、進步性及可供產業利用者,應符合我國專利法所規定之專利申請要件無疑,爰依法提出發明專利申請,祈 鈞局早日賜准專利,至感為禱。 The invention is a novelty, progressive and available for industrial use, and should meet the requirements of the patent application stipulated in the Patent Law of China, and the invention patent application is filed according to law, and the prayer bureau will grant the patent as soon as possible. prayer.

惟以上所述者,僅為本發明之一較佳實施例而已,並非用來 限定本發明實施之範圍,舉凡依本發明申請專利範圍所述之形狀、構造、特徵及精神所為之均等變化與修飾,均應包括於本發明之申請專利範圍內。 However, the above description is only a preferred embodiment of the present invention, and is not intended to be used. The scope of the present invention is defined by the scope of the invention, and the equivalents and modifications of the shapes, structures, features and spirits of the present invention are intended to be included in the scope of the present invention.

10‧‧‧光偵測單元 10‧‧‧Light detection unit

20‧‧‧訊號處理單元 20‧‧‧Signal Processing Unit

22‧‧‧類比數位轉換單元 22‧‧‧ analog digital conversion unit

Claims (12)

一種光源閃爍偵測電路,其包含:一光偵測單元,用以偵測一環境光而產生一偵測訊號;一訊號處理單元,耦接該光偵測單元,並依據至少一取樣頻率轉換該偵測訊號而產生至少一偵測資料;以及一控制單元,耦接該訊號處理單元,並計數該偵測資料的一漣波(Ripple)之個數,以判斷該取樣頻率是否對應於該環境光之一閃爍頻率,當該漣波之個數大於一門檻值,該控制單元切換該訊號處理單元的該取樣頻率,使該取樣頻率對應該閃爍頻率,而得知該環境光之該閃爍頻率;其中,該偵測資料包含複數偵測值,當該些偵測值之一同時大於或同時小於其前後兩個該偵測值時,則判斷此三個該偵測值為該漣波。 A light source flicker detecting circuit includes: a light detecting unit for detecting an ambient light to generate a detecting signal; a signal processing unit coupled to the light detecting unit and converting according to at least one sampling frequency The detection signal generates at least one detection data; and a control unit is coupled to the signal processing unit, and counts a number of Ripples of the detected data to determine whether the sampling frequency corresponds to the One of the ambient light blinking frequencies. When the number of the chopping waves is greater than a threshold value, the control unit switches the sampling frequency of the signal processing unit so that the sampling frequency corresponds to the blinking frequency, and the blinking of the ambient light is known. The detection data includes a plurality of detection values. When one of the detection values is greater than or equal to two detection values before and after, the three detection values are determined to be the chopping . 如申請專利範圍第1項所述之光源閃爍偵測電路,其中該控制單元依據該偵測資料的該漣波之個數判斷該取樣頻率是否同步於該閃爍頻率而確認該閃爍頻率。 The light source flicker detecting circuit of claim 1, wherein the control unit determines whether the sampling frequency is synchronized with the flicker frequency according to the number of the chopping of the detected data to confirm the flicker frequency. 如申請專利範圍第1項所述之光源閃爍偵測電路,其中該取樣頻率對應於該閃爍頻率後,該控制單元產生一控制訊號,並傳送該控制訊號至一影像擷取單元,以控制該影像擷取單元之一擷取頻率對應該閃爍頻率。 The light source flicker detecting circuit of claim 1, wherein the sampling unit generates a control signal and transmits the control signal to an image capturing unit to control the sampling frequency. One of the image capturing units captures the frequency corresponding to the blinking frequency. 如申請專利範圍第1項所述之光源閃爍偵測電路,更包含:一計數單元,耦接該訊號處理單元,並計數該偵測資料的該漣波 之個數而產生一計數結果,並將該計數結果傳送至該控制單元,該控制單元依據該計數結果判斷該漣波之個數大於該門檻值時,則切換該訊號處理單元的該取樣頻率,使該取樣頻率對應該閃爍頻率。 The light source flicker detecting circuit of claim 1, further comprising: a counting unit coupled to the signal processing unit and counting the chopping of the detecting data a counting result is generated, and the counting result is transmitted to the control unit, and the control unit switches the sampling frequency of the signal processing unit when the number of the chopping waves is greater than the threshold according to the counting result So that the sampling frequency corresponds to the blinking frequency. 如申請專利範圍第1項所述之光源閃爍偵測電路,其中該訊號處理單元包含一類比數位轉換單元。 The light source flicker detecting circuit of claim 1, wherein the signal processing unit comprises an analog digital conversion unit. 一種光源閃爍偵測方法,其步驟包含:偵測一環境光而產生一偵測訊號;依據至少一取樣頻率轉換該偵測訊號而產生至少一偵測資料,並依據該偵測資料判斷該取樣頻率是否對應於該環境光之一閃爍頻率,而得知該環境光之該閃爍頻率;以及計數該偵測資料的一漣波(Ripple)之個數,以判斷該取樣頻率是否對應於該環境光之一閃爍頻率,當該漣波之個數大於一門檻值,切換該取樣頻率,使該取樣頻率對應該閃爍頻率,而得知該環境光之該閃爍頻率;其中,該偵測資料包含複數偵測值,當該些偵測值之一同時大於或同時小於其前後兩個該偵測值時,則判斷此三個該偵測值為該漣波。 A light source flicker detection method includes: detecting an ambient light to generate a detection signal; converting the detection signal according to at least one sampling frequency to generate at least one detection data, and determining the sampling according to the detection data Whether the frequency corresponds to one of the ambient light blinking frequencies, and the blinking frequency of the ambient light is known; and counting the number of Ripples of the detected data to determine whether the sampling frequency corresponds to the environment One of the light flickering frequencies, when the number of the chopping waves is greater than a threshold value, the sampling frequency is switched such that the sampling frequency corresponds to the flicker frequency, and the flicker frequency of the ambient light is known; wherein the detection data includes The plurality of detection values are determined to be the chopping waves when one of the detection values is greater than or equal to both of the detection values. 如申請專利範圍第6項所述之光源閃爍偵測方法,其中該至少一取樣頻率包含一第一取樣頻率與一第二取樣頻率,該偵測資料包含一第一偵測資料與一第二偵測資料,該第一取樣頻率對應一第一參考閃爍頻率,該第二取樣頻率對應一第二參考閃爍頻率,依據該第一取樣頻率與該第二取樣頻率分別產生該第一偵測資料與該第二偵測資料。 The light source flicker detecting method of claim 6, wherein the at least one sampling frequency comprises a first sampling frequency and a second sampling frequency, and the detection data comprises a first detection data and a second Detecting data, the first sampling frequency corresponding to a first reference blinking frequency, the second sampling frequency corresponding to a second reference blinking frequency, respectively generating the first detecting data according to the first sampling frequency and the second sampling frequency And the second detection data. 如申請專利範圍第7項所述之光源閃爍偵測方法,其中於計數該偵 測資料的一漣波(Ripple)之個數,以判斷該取樣頻率是否對應於該環境光之一閃爍頻率,當該漣波之個數大於一門檻值,切換該取樣頻率,使該取樣頻率對應該閃爍頻率,而得知該環境光之該閃爍頻率的步驟中,係計數該第一偵測資料的該漣波之個數,以判斷該第一取樣頻率是否對應於該環境光之該閃爍頻率,若該第一取樣頻率對應於該環境光之該閃爍頻率則得知該第一參考閃爍頻率為該環境光之該閃爍頻率。 The method for detecting a light source flicker as described in claim 7 of the patent application, wherein the Detecting Measuring a number of Ripples of the data to determine whether the sampling frequency corresponds to one of the ambient light blinking frequencies, and when the number of the chopping waves is greater than a threshold value, switching the sampling frequency to make the sampling frequency Corresponding to the blinking frequency, and in the step of learning the blinking frequency of the ambient light, counting the number of the chopping waves of the first detecting data to determine whether the first sampling frequency corresponds to the ambient light a blinking frequency, if the first sampling frequency corresponds to the blinking frequency of the ambient light, the first reference blinking frequency is known to be the blinking frequency of the ambient light. 如申請專利範圍第7項所述之光源閃爍偵測方法,其中於依據該偵測資料判斷該取樣頻率是否對應於該環境光之一閃爍頻率,而得知該環境光之該閃爍頻率的步驟中,係分別計數該第一偵測資料與第二偵測資料之該漣波的個數,而得知一第一漣波個數與一第二漣波個數,並依據該第一漣波個數與該第二漣波個數判斷該第一參考閃爍頻率或該第二參考閃爍頻率為該環境光之該閃爍頻率。 The light source flicker detecting method according to claim 7, wherein the step of determining whether the sampling frequency corresponds to one of the ambient light flicker frequencies according to the detected data, and determining the blinking frequency of the ambient light The number of the chopping waves of the first detection data and the second detection data is respectively counted, and the number of the first chopping wave and the second chopping wave number are obtained, and according to the first The number of waves and the second number of choppings determine that the first reference flicker frequency or the second reference flicker frequency is the flicker frequency of the ambient light. 如申請專利範圍第9項所述之光源閃爍偵測方法,其中當該第一漣波個數大於該第二漣波個數與一偏移值之一第一總和值時,則該第二參考閃爍頻率為該環境光之該閃爍頻率;當該第二漣波個數大於該第一漣波個數與該偏移值之一第二總和值時,則該第一參考閃爍頻率為該環境光之該閃爍頻率。 The light source flicker detecting method according to claim 9, wherein when the first chopping number is greater than the first sum of the second chopping number and an offset value, the second The reference flicker frequency is the flicker frequency of the ambient light; when the second chopping number is greater than the second sum of the first chopping number and the offset value, the first reference flicker frequency is the The flashing frequency of ambient light. 如申請專利範圍第7項所述之光源閃爍偵測方法,其中該第一偵測資料包含複數第一偵測值,該些第一偵測值間之差值的總和值為一第一差異總和值,該第二偵測資料包含複數第二偵測值,該些第二偵測值間之差值的總和值為一第二差異總和值,當該第一差異總和值與一第一平均值的一商值大於該第二差異總和值與一第二平均值的一商值和一偏移值之一第一總和值時,則該第二參考 閃爍頻率為該環境光之該閃爍頻率;當該第二差異總和值與該第二平均值的該商值大於該第一差異總和值與該第一平均值的該商值和該偏移值之一第二總和值時,則該第一參考閃爍頻率為該環境光之該閃爍頻率。 The light source flicker detection method of claim 7, wherein the first detection data includes a plurality of first detection values, and the sum of the difference values between the first detection values is a first difference. a sum of values, the second detection data includes a plurality of second detection values, and a sum of the difference values between the second detection values is a second difference sum value, when the first difference sum value is a first When the quotient value of the average value is greater than a quotient value of the second difference sum value and a second average value and a first sum value of one of the offset values, then the second reference The blinking frequency is the blinking frequency of the ambient light; when the quotient value of the second difference sum value and the second average value is greater than the first difference sum value and the quotient value of the first average value and the offset value In a second sum value, the first reference flicker frequency is the blinking frequency of the ambient light. 如申請專利範圍第7項所述之光源閃爍偵測方法,其中於計數該偵測資料的一漣波(Ripple)之個數,以判斷該取樣頻率是否對應於該環境光之一閃爍頻率,當該漣波之個數大於一門檻值,切換該取樣頻率,使該取樣頻率對應該閃爍頻率,而得知該環境光之該閃爍頻率的步驟中,係加總該第一偵測資料之複數漣波間的差異而得知一第一漣波差異總和值,以及加總該第二偵測資料之複數漣波間的差異而得知一第二漣波差異總和值,當該第一漣波差異總和值大於該第二漣波差異總和值和一偏移值之一第一總合值時,則該第二參考閃爍頻率為該環境光之該閃爍頻率;當該第二漣波差異總和值大於該第一漣波差異總和值與該偏移值之一第二總合值時,則該第一參考閃爍頻率為該環境光之該閃爍頻率。 The light source flicker detecting method of claim 7, wherein counting the number of Ripples of the detected data to determine whether the sampling frequency corresponds to one of the ambient light blinking frequencies, When the number of the chopping waves is greater than a threshold value, the sampling frequency is switched such that the sampling frequency corresponds to the blinking frequency, and in the step of learning the blinking frequency of the ambient light, the first detecting data is added Knowing the difference between the complex chopping waves and the sum of the first chopping differences, and summing the difference between the complex chopping waves of the second detecting data to obtain a sum of the second chopping differences, when the first chopping wave When the difference sum value is greater than the second sum of the second chop difference and the first sum of the offset values, the second reference flicker frequency is the flicker frequency of the ambient light; when the second chop difference is summed When the value is greater than the second sum of the first chop difference and the second sum of the offset values, the first reference flicker frequency is the blinking frequency of the ambient light.
TW100109058A 2010-05-28 2011-03-17 Light source flicker detection circuit and method TWI438595B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US34934610P 2010-05-28 2010-05-28

Publications (2)

Publication Number Publication Date
TW201142565A TW201142565A (en) 2011-12-01
TWI438595B true TWI438595B (en) 2014-05-21

Family

ID=46765070

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100109058A TWI438595B (en) 2010-05-28 2011-03-17 Light source flicker detection circuit and method

Country Status (1)

Country Link
TW (1) TWI438595B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI465701B (en) * 2013-01-28 2014-12-21 Lextar Electronics Corp Method and system of detecitng flash frequency of ambient light source
TWI726593B (en) * 2020-01-30 2021-05-01 宏碁股份有限公司 Color temperature box and control method thereof
CN114845060B (en) * 2021-02-02 2024-05-10 光宝科技新加坡私人有限公司 System and method for detecting flicker frequency and electronic device comprising same

Also Published As

Publication number Publication date
TW201142565A (en) 2011-12-01

Similar Documents

Publication Publication Date Title
JP5786254B2 (en) Method and apparatus for controlling light emitting devices in a terminal device, and terminal device
JP2014066742A5 (en)
TWI438595B (en) Light source flicker detection circuit and method
CN108174117B (en) Method and system for eliminating flicker, mobile terminal and medium product
EP2179581A4 (en) Image-pickup apparatus and control method therof
US9182276B2 (en) Semiconductor integrated circuit for optical sensor
RU2012110596A (en) HEATED GLASS CONTROL
EP3910354B1 (en) Power supply on-off detection circuit, method, apparatus and storage medium
CN103312948A (en) Camera device and vibration dust removal method thereof
TW201340687A (en) Method for checking camera and camera
CN103576416B (en) Image capturing device with automatic focusing function and automatic focusing method
TW201412112A (en) Controlling apparatus and controlling method thereof
TWI399559B (en) Automated test equipment
US20100289946A1 (en) Adaptive de-flicker device and method for adaptive de-flicker
JP2015046742A (en) Information processing apparatus, imaging apparatus, information processing method, and program
US9374568B2 (en) Image processing apparatus, imaging apparatus, and image processing method
JP2007135310A5 (en)
EP1944967A2 (en) System and method for flicker DC offset detection and correction
TW201138286A (en) Sample frequency adjusting system and method thereof
JP2010112874A (en) Acceleration detection circuit
US20140160013A1 (en) Switching device
CN102237875A (en) Sampling frequency regulating system and method
CN205864591U (en) A kind of imageing sensor
JP2006003428A5 (en)
TW201443636A (en) Power consumption monitoring system and method