JP2003163942A - Image-processing program - Google Patents

Image-processing program

Info

Publication number
JP2003163942A
JP2003163942A JP2001360857A JP2001360857A JP2003163942A JP 2003163942 A JP2003163942 A JP 2003163942A JP 2001360857 A JP2001360857 A JP 2001360857A JP 2001360857 A JP2001360857 A JP 2001360857A JP 2003163942 A JP2003163942 A JP 2003163942A
Authority
JP
Japan
Prior art keywords
flicker
moving image
power supply
color attribute
image
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP2001360857A
Other languages
Japanese (ja)
Inventor
Katsuhiko Matsuzaka
勝彦 松坂
Motohiro Asano
基広 浅野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Minolta Co Ltd
Original Assignee
Minolta Co Ltd
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 Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP2001360857A priority Critical patent/JP2003163942A/en
Publication of JP2003163942A publication Critical patent/JP2003163942A/en
Pending legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To provide a means for quickly judging whether flicker occurs on a moving picture or not. <P>SOLUTION: In the image-processing program for allowing a computer to execute flicker judgment processing, a moving image is inputted to the computer, a change cycle in a specific color attribute included in the inputted moving picture is predicted based on the power supply frequency of lighting in a moving picture photography environment and the imaging frame rate of the moving picture, the change cycle in the color attribute is actually calculated according to the inputted moving image, it is confirmed whether change in the color attribute is generated corresponding to the predicted change cycle in the color attribute, and the presence or absence of the flicker is determined based on the confirmed result. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、入力動画にフリッ
カが発生しているかどうかを判定するための画像処理プ
ログラムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing program for determining whether or not flicker has occurred in an input moving image.

【0002】[0002]

【従来の技術】動画には、その撮影環境における照明の
周波数と動画の撮像フレームレートとが同期しない場合
に、明度,彩度等の色属性の周期的な変化(いわゆるフ
リッカ)が発生するという問題があることが知られてい
る。
2. Description of the Related Art In a moving image, when the frequency of the illumination in the shooting environment and the image capturing frame rate of the moving image are not synchronized, a periodic change of color attributes such as brightness and saturation (so-called flicker) occurs. Known to have problems.

【0003】フリッカが発生する原理を説明する。電源
周波数がfHzであるとき、1秒間あたりの電源位相の
変化量は2πfであるから、撮像フレームレートがrf
psであると、1フレームあたりの電源位相の変化量は
2πf/rとなる。そこで、n番フレーム(nは0以上
の整数)の位相(phase)は、初期電源位相ρ(0
≦ρ<2π)を考慮すると、次の数式(1)のように表
現することができる。ここで、%は剰余演算子である。 連続するフレーム中において位相に変化がなければ、同
一発光強度の光源下で連続撮影していることになるが、
位相に変化があれば発光強度が変化する光源下で連続撮
影していることになり、動画に明暗変化が確認されるよ
うになる。これがフリッカの原理である。
The principle of occurrence of flicker will be described. When the power supply frequency is fHz, the amount of change in the power supply phase per second is 2πf, so the imaging frame rate is rf.
With ps, the amount of change in the power supply phase per frame is 2πf / r. Therefore, the phase (phase) of the n-th frame (n is an integer of 0 or more) is the initial power supply phase ρ (0
Considering ≦ ρ <2π), it can be expressed as the following formula (1). Here,% is a remainder operator. If there is no change in the phase in consecutive frames, it means that continuous shooting was performed under a light source with the same emission intensity.
If there is a change in the phase, it means that continuous shooting is performed under a light source in which the emission intensity changes, and a change in brightness and darkness can be confirmed in the moving image. This is the flicker principle.

【0004】光源として交流電源に接続された電灯が用
いられる場合には、時間とともに発光強度は変化する
が、数式(1)を見ると、f/rが整数値であるとき
に、nの値にかかわらず、位相は一定値ρをとることが
わかる。すなわち、この場合、電灯の明滅が動画に影響
しないため、フリッカは発生しない。
When an electric lamp connected to an AC power source is used as a light source, the light emission intensity changes with time. Looking at equation (1), when f / r is an integer value, the value of n is It can be seen that the phase takes a constant value ρ regardless of. That is, in this case, flickering does not occur because the blinking of the electric light does not affect the moving image.

【0005】[0005]

【発明が解決しようとする課題】従来では、このような
フリッカが動画中に発生しているか否かを判定するため
に、動画の全てのフレームを対象として明度や彩度等の
色属性が周期的に変化しているか否かを判定することが
知られている。しかしながら、この場合には、動画の全
てのフレームを判定対象とするので、フリッカ判定処理
の所要時間が長くなるという問題がある。
Conventionally, in order to determine whether or not such a flicker occurs in a moving image, the color attributes such as lightness and saturation are cyclically determined for all frames of the moving image. It is known to determine whether or not a change has occurred. However, in this case, since all the frames of the moving image are targeted for determination, there is a problem that the time required for the flicker determination processing becomes long.

【0006】また、例えば特開平8−172569号公
報には、フリッカが発生するという問題点を解消するた
めに、電源周波数取得手段により得られた電源周波数に
応じてビデオカメラの映像取込周波数を設定し、それに
よりフリッカ発生を未然に防止する方法が開示されてい
る。ここで、電源周波数取得手段は、ISDN等に接続
し電話番号を取得し、電話番号の局番に対応した交流電
源周波数テーブルを参照することにより、電源周波数を
抽出するものである。しかしながら、この方法は、フリ
ッカの発生がない動画を作成するためのものであり、他
の方法で作成された動画にフリッカがあるか否かを判定
することはできない。
Further, for example, in Japanese Unexamined Patent Publication No. 8-172569, in order to solve the problem that flicker occurs, the image capturing frequency of the video camera is set in accordance with the power source frequency obtained by the power source frequency acquiring means. There is disclosed a method of setting and thereby preventing the occurrence of flicker. Here, the power supply frequency acquisition means extracts the power supply frequency by connecting to an ISDN or the like, acquiring a telephone number, and referring to the AC power supply frequency table corresponding to the telephone number of the telephone number. However, this method is for creating a moving image without flicker, and it is not possible to determine whether or not a moving image created by another method has flicker.

【0007】本発明は、上記技術的課題に鑑みてなされ
たもので、動画にフリッカがあるか否かを高速に判定す
ることができるフリッカ判定方法を提供することを目的
とする。
The present invention has been made in view of the above technical problems, and an object of the present invention is to provide a flicker determination method capable of quickly determining whether or not a moving image has flicker.

【0008】[0008]

【課題を解決するための手段】本願の請求項1に係る発
明は、コンピュータにフリッカ判定処理を実行させる画
像処理プログラムにおいて、上記コンピュータに動画を
入力するステップと、動画撮影環境における照明の電源
周波数と動画の撮像フレームレートとに基づき、上記入
力された動画に含まれる所定の色属性の変化周期を予測
するステップと、上記入力された動画から実際に色属性
の変化周期を算出するステップと、上記予測された色属
性の変化周期どおりに色属性の変化が生じているかを確
認するステップと、上記確認結果に基づき、フリッカの
有無を判定するステップと、を有していることを特徴と
したものである。
According to a first aspect of the present invention, in an image processing program for causing a computer to execute a flicker determination process, a step of inputting a moving image to the computer, and a power supply frequency of illumination in a moving image shooting environment. And a step of predicting a change cycle of a predetermined color attribute included in the input moving picture based on the image capturing frame rate of the moving picture, and a step of actually calculating a change cycle of the color attribute from the input moving picture, It is characterized by including a step of confirming whether the color attribute changes according to the predicted change cycle of the color attribute, and a step of determining the presence or absence of flicker based on the confirmation result. It is a thing.

【0009】また、本願の請求項2に係る発明は、請求
項1に係る発明において、上記入力された動画を一定フ
レーム数毎に分割し、分割されてなる各フレーム群単位
で、予測ステップ以降の処理を実行することを特徴とし
たものである。
According to a second aspect of the present invention, in the invention according to the first aspect, the input moving image is divided into a certain number of frames, and each divided frame group is a unit after the prediction step. It is characterized by executing the processing of.

【0010】更に、本願の請求項3に係る発明は、請求
項1又は2に係る発明において、上記動画に含まれる色
属性の変化周期を予測する上で、フリッカの発生に関連
して可能性の高い値を設定することを特徴としたもので
ある。
Further, the invention according to claim 3 of the present application is, in the invention according to claim 1 or 2, a possibility related to occurrence of flicker in predicting a change cycle of a color attribute included in the moving image. It is characterized by setting a high value of.

【0011】また、更に、本願の請求項4に係る発明
は、請求項1〜3のいずれか一の発明において、上記コ
ンピュータにフリッカ判定処理を実行させるアプリケー
ションプログラムのインストール時又は初回立上げ時
に、動画撮影環境における照明の電源周波数を特定する
情報をユーザに入力させ、動画に含まれる色属性の変化
周期を予測する上で、その電源周波数を採用することを
特徴としたものである。
Further, the invention according to claim 4 of the present application is the invention according to any one of claims 1 to 3, wherein when the application program for causing the computer to execute a flicker determination process is installed or first started up, The power supply frequency is adopted in order to allow the user to input the information for specifying the power supply frequency of the illumination in the moving image shooting environment and to predict the change cycle of the color attribute included in the moving image.

【0012】また、更に、本願の請求項5に係る発明
は、請求項1〜4のいずれか一の発明において、上記コ
ンピュータを管理するオペレーションシステムのもつ国
/地域情報に基づいて、動画撮影環境における照明の電
源周波数を推定し、動画に含まれる色属性の変化周期を
予測する上で、その電源周波数を採用することを特徴と
したものである。
Further, the invention according to claim 5 of the present application is the moving image shooting environment according to any one of claims 1 to 4, based on the country / region information of the operation system for managing the computer. In estimating the power supply frequency of the illumination in and predicting the change cycle of the color attribute included in the moving image, the power supply frequency is adopted.

【0013】本発明のフリッカ判定方法によれば、フリ
ッカ明暗周期を予測し、予測したとおりの周期で明度変
化があるか否かを判定するだけでよく、全てのフレーム
に対する処理を行う必要がないのであるから、動画にフ
リッカがあるか否かを高速に判定することができる。
According to the flicker determination method of the present invention, it is only necessary to predict the flicker light / dark cycle and determine whether or not there is a lightness change in the predicted cycle, and it is not necessary to perform processing for all frames. Therefore, it is possible to quickly determine whether or not the moving image has flicker.

【0014】[0014]

【発明の実施の形態】以下、添付図面を参照して、本発
明の実施の形態を詳細に説明する。 実施の形態1.図1は、本発明のフリッカ判定方法が適
用される装置の構成を示すブロック図である。この装置
10は、ホストコンピュータ1を有し、このホストコン
ピュータ1に対して外部記憶装置2、モニタ3、マウス
4、およびキーボード5を接続している。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Embodiment 1. FIG. 1 is a block diagram showing the configuration of an apparatus to which the flicker determination method of the present invention is applied. The device 10 has a host computer 1, and an external storage device 2, a monitor 3, a mouse 4, and a keyboard 5 are connected to the host computer 1.

【0015】図2は、ホストコンピュータ1の内部構成
を示す図である。ホストコンピュータ1は、相互にデー
タ授受を行う処理演算部14およびOS15を含む記憶
装置11と、OS15との間でデータ授受を行う入出力
インターフェース12と、OS15との間でデータ授受
を行うCPU/メモリ13とを有している。なお、記憶
装置11は一部が外部記憶装置にあってもよい。
FIG. 2 is a diagram showing the internal configuration of the host computer 1. The host computer 1 includes a storage device 11 including a processing operation unit 14 and an OS 15 for exchanging data with each other, an input / output interface 12 for exchanging data with the OS 15, and a CPU / CPU for exchanging data with the OS 15. It has a memory 13. A part of the storage device 11 may be included in the external storage device.

【0016】そして、キーボード/マウス4、5からの
ユーザ指示を入出力インターフェース12に供給し、モ
ニタ3、および画像データ入出力16と入出力インター
フェース12との間でデータ授受を行うようにしてい
る。
Then, user instructions from the keyboard / mouse 4, 5 are supplied to the input / output interface 12 to exchange data between the monitor 3 and the image data input / output 16 and the input / output interface 12. .

【0017】次に、この装置に基づくフリッカ判定方法
を説明する。先ず、撮像フレームレートとして、例えば
15fpsで撮像されたことが既知である動画に対し
て、どのようにフリッカを計算機で認識し、フリッカ判
定を下すのかを説明する。
Next, a flicker determination method based on this device will be described. First, a method of recognizing flicker by a computer and making a flicker determination with respect to a moving image whose image pickup frame rate is known to be, for example, 15 fps will be described.

【0018】図3は、判定処理の概要を示すフローチャ
ートである。ここでは、判定処理に2つのステージを設
ける。1つは入力する動画の撮像フレームレートから、
フリッカが発生する可能性がある場合に予測される明暗
周期を決定する処理(以下、ステージA)、もう1つは
算出された予測明暗周期でフリッカが発生しているかど
うか、動画像の各フレームに実際にアクセスし、判定を
下す処理(以下、ステージB)である。
FIG. 3 is a flow chart showing an outline of the determination process. Here, two stages are provided for the determination process. One is from the image capture frame rate of the input video,
A process of determining a light / dark cycle predicted when flicker may occur (hereinafter referred to as stage A), and another is whether or not flicker occurs in the calculated predicted light / dark cycle, and each frame of a moving image. Is a process of actually accessing and making a determination (hereinafter, stage B).

【0019】明暗周期を予測するには撮像フレームレー
トのほかに、撮像された環境に存在する照明の電源周波
数が必要になる。電源周波数は世界的に50Hzか60
Hzなので、この2つの場合を試す。
In order to predict the light-dark cycle, the power supply frequency of the illumination existing in the imaged environment is required in addition to the image capture frame rate. Power supply frequency is 50Hz or 60 worldwide
Since it is Hz, try these two cases.

【0020】すなわち、電源周波数が50Hzであった
場合のステージA,B(ステップS11,13),電源
周波数が60Hzであった場合のステージA、B(ステ
ップS15,17)の計4ステージを処理し、ステージ
Aの処理後に予測された明暗周期が1フレームがどうか
を判定し(ステップS12,16)、ステージBの処理
後にフリッカが発生しているかどうかを判定する(ステ
ップS14、18)。そして、ステージAにおいて明暗
周期が1と予測された場合はステージBの処理をスキッ
プする。
That is, a total of four stages including stages A and B (steps S11 and 13) when the power supply frequency is 50 Hz and stages A and B (steps S15 and 17) when the power supply frequency is 60 Hz are processed. Then, it is determined whether or not the bright / dark cycle predicted after the processing of stage A is one frame (steps S12 and 16), and whether flicker has occurred after the processing of stage B (steps S14 and 18). When the light / dark cycle is predicted to be 1 in stage A, the process in stage B is skipped.

【0021】実際の処理の流れを以下に示す。計算機は
撮影された環境が電源周波数50Hzの場合に、この撮
像フレームレートでフリッカが発生するのかどうかを判
定する。図4に明暗周期を決定する処理のフローチャー
トを示す。ここでは50(電源周波数)と15(撮像フ
レームレート)の最大公約数を計算し(ステップS2
1)、その結果5を得て、これで撮像フレームレート1
5を割ることで3を得る(ステップS22)。ここで得
られた値はフリッカが生じる場合に予測される明暗周期
(単位はフレーム)である。上記の計算により50Hz
の照明下では15fpsの動画に3フレーム周期のフリ
ッカが生じる可能性があることがわかる。
The flow of actual processing is shown below. The computer determines whether flicker occurs at this imaging frame rate when the shooting environment has a power supply frequency of 50 Hz. FIG. 4 shows a flowchart of processing for determining the light-dark cycle. Here, the greatest common divisor of 50 (power supply frequency) and 15 (imaging frame rate) is calculated (step S2
1), the result 5 is obtained, and with this, the imaging frame rate 1
3 is obtained by dividing 5 (step S22). The value obtained here is a light-dark cycle (unit is frame) predicted when flicker occurs. 50Hz according to the above calculation
It is understood that under the illumination of, the flickers of 3 frame cycle may occur in the moving image of 15 fps.

【0022】フリッカ明暗周期の算出処理は、次のとお
りである。フリッカの明暗周期は電源周波数及び撮像フ
レームレートから予測することができる。Tフレーム周
期で明暗が繰り返されているとすると、次の数式(2)
が成り立つ(Tは自然数)。
The calculation process of the flicker light / dark cycle is as follows. The flicker light-dark cycle can be predicted from the power supply frequency and the imaging frame rate. Assuming that the light and dark are repeated in the T frame period, the following formula (2)
Holds (T is a natural number).

【0023】すなわち、(T・f)/rが整数となるT
のうち、最も小さいものがフリッカの予測明暗周期とな
る。rとfの最大公約数をGとすると数式(3)が成り
立つ。 T=r/G ・・・ (3) したがって、上述のように、50Hzの照明下では15
fpsの動画に3フレーム周期のフリッカが生じること
が予測される。
That is, T where (T · f) / r is an integer
Of these, the smallest one is the predicted flicker light / dark cycle. If the greatest common divisor of r and f is G, then equation (3) holds. T = r / G (3) Therefore, as described above, under illumination of 50 Hz, 15
It is predicted that a flicker with a 3-frame period will occur in an fps moving image.

【0024】予測された明暗周期が3フレームであるか
ら、処理はステージB(図3のステップS13)に進
む。
Since the predicted light / dark cycle is 3 frames, the process proceeds to stage B (step S13 in FIG. 3).

【0025】図5に、ステージBの処理のフローを示
す。まず、入力動画に含まれるフレームそれぞれの明度
平均値を求める(ステップS31)。各画素はRGBデ
ータであるが、HSLデータに変換し、そのLデータを
明度として利用する。そして、明度平均値を保存するグ
ループを予測明暗周期のフレーム数だけ作成し、明度平
均値を順次振り分ける(ステップS32)。ここでは3
個のグループG1,G2,G3を作成し、先頭フレーム
から順に明度平均値をG1→G2→G3→G1のように
振り分けていく。全フレームの振り分けが終了すれば、
それぞれのグループに対し、属する全フレームの明度平
均値の平均値を算出する(ステップS33)。図6に示
すように、ステージAで予測したとおりの周期でフリッ
カが発生していれば、それぞれのグループの平均値にば
らつきが生じる。逆に、図7に示すように、フリッカが
生じていない動画であれば、それぞれのグループは同じ
ような平均値をもつ。この点に着目して、全グループを
比較し、最大値と最小値の差があらかじめ設定しておい
た閾値を越える場合にフリッカ判定を下す(ステップS
34,36)。
FIG. 5 shows a flow of processing in stage B. First, the average brightness value of each frame included in the input moving image is obtained (step S31). Although each pixel is RGB data, it is converted to HSL data and the L data is used as the brightness. Then, groups for storing the brightness average value are created by the number of frames of the predicted brightness cycle, and the brightness average values are sequentially allocated (step S32). 3 here
Individual groups G1, G2, and G3 are created, and the lightness average value is sequentially assigned from the first frame as G1 → G2 → G3 → G1. Once all the frames have been sorted,
For each group, the average value of the average brightness values of all the belonging frames is calculated (step S33). As shown in FIG. 6, if flicker occurs in the cycle as predicted in stage A, the average value of each group varies. On the contrary, as shown in FIG. 7, in the case of a moving image in which no flicker occurs, each group has the same average value. Paying attention to this point, all the groups are compared, and if the difference between the maximum value and the minimum value exceeds a preset threshold value, flicker determination is made (step S
34, 36).

【0026】電源周波数50Hzの照明下にて、上市さ
れているデジタルカメラで撮影した、画像サイズ320
×240ピクセル、撮像フレームレート15fps、フ
ォトJPEG圧縮の動画像に対し実験を行った。フレー
ムの各画素はRGB256階調で構成されており、これ
をHSLデータに変換すると256階調のLデータが得
られる。そこで上記処理を施し、閾値を1.0に設定す
ると、96%の正常判定率を得た。
Image size 320 taken by a digital camera on the market under illumination with a power supply frequency of 50 Hz
An experiment was conducted on a moving image with a photo JPEG compression of × 240 pixels, an imaging frame rate of 15 fps. Each pixel of the frame is composed of 256 gradations of RGB, and when this is converted into HSL data, L data of 256 gradations is obtained. Therefore, when the above process was performed and the threshold value was set to 1.0, a normality determination rate of 96% was obtained.

【0027】なお、ホストコンピュータ1に以上のフリ
ッカ判定処理を実行させる画像処理プログラムは、OS
15とともに、CD−ROM41,フロッピー(登録商
標)ディスク42(図1参照)等の記録媒体を用いて、
ホストコンピュータ1内の記憶装置11にインストール
され得る。
The image processing program for causing the host computer 1 to execute the above flicker determination processing is an OS.
15 together with a recording medium such as a CD-ROM 41 and a floppy (registered trademark) disk 42 (see FIG. 1),
It can be installed in the storage device 11 in the host computer 1.

【0028】実施の形態2.本発明の実施の形態2に係
るフリッカ判定方法が、上記実施の形態1に係るフリッ
カ判定方法と異なる点は、ステージBの処理のみであ
る。この場合にも、例えば、15fpsの動画が入力さ
れ、ステージAにおいて予測明暗周期が3であると出力
された場合について考える。
Embodiment 2. The flicker determination method according to the second embodiment of the present invention is different from the flicker determination method according to the first embodiment only in the processing of stage B. Also in this case, for example, consider a case where a moving image of 15 fps is input and the predicted light / dark cycle is output at stage A as 3.

【0029】図8に、ステージBの処理のフローを示
す。入力動画に含まれるフレームそれぞれの明度平均値
を求め(ステップS41)、同時に、時間軸方向前後数
フレームをまとめた明度移行平均値を求める(ステップ
S42)。たとえば前後nフレームで移行平均をとるに
当たって、i番目のフレームの明度平均値をLとする
と移行平均値L’は、次の数式(4)で求められる。 L’=(Li−n+Li−n+1+・・・+Li−1+L+Li+1 +・・・+Li+n−1+Li+n)/(2n+1) ・・・ (4) ただし、(3)式で実際にフレームが存在しない場合
(最初や最後あたりのフレームに対する移行平均をとる
場合)には、平均の対象に含まずに計算する。
FIG. 8 shows a flow of processing in stage B. The brightness average value of each frame included in the input moving image is calculated (step S41), and at the same time, the brightness transition average value of several frames before and after the time axis direction is calculated (step S42). For example, when taking the moving average in the n frames before and after, if the lightness average value of the i-th frame is L i , the moving average value L i ′ is obtained by the following mathematical expression (4). L i '= (L i-n + L i-n + 1 + ... + L i-1 + L i + L i + 1 + ... + L i + n-1 + L i + n ) / (2n + 1) (4) However, (3) When there is no actual frame in the formula) (when the moving average for the first and last frames is taken), the calculation is performed without including it in the target of the average.

【0030】図9に示すように、移行平均をとると変化
が緩やかになる。これを利用すれば、フリッカ画像の場
合、明度平均値と明度移行平均値の差分はフリッカ明暗
周期で正負を繰り返すという性質が得られる。そこで差
分データDを、次の数式(5)のように得る(ステッ
プSP3)。 D=L−L’ ・・・ (5) そして、得られた差分データDの符号の変化をチェッ
クし、3フレーム周期で正負変化している区間が全体に
占める割合を計算し、その割合があらかじめ設定してお
いた閾値を超える場合にフリッカ判定を下す(ステップ
SP4、SP5)。
As shown in FIG. 9, the change becomes gentle when the moving average is taken. If this is used, in the case of a flicker image, the difference between the brightness average value and the brightness transition average value has the property of repeating positive and negative in the flicker light-dark cycle. Therefore, the difference data D i is obtained as in the following mathematical expression (5) (step SP3). D i = L i −L i ′ (5) Then, the change in the sign of the obtained difference data D i is checked, and the ratio of the section in which the positive / negative changes in the three frame period occupy the whole is calculated. If the ratio exceeds a preset threshold value, flicker determination is made (steps SP4 and SP5).

【0031】実施の形態3.図10に、本発明の実施の
形態3に係る処理のフローを示す。この実施形態はあら
かじめ予測明暗周期を算出しておく必要がなく、ステー
ジAはスキップする。まず、入力動画に含まれるフレー
ムそれぞれの明度平均値を求める(ステップS51)。
i番目のフレームの明度平均値をLとする。そして、
前後のフレームと値を比較し、L≧Li−1かつL
≧Li+1であればLを明度極大フレームとし(ステ
ップS52)、L≦LかつL≦Li+1であ
ればL を明度極小フレームとする(ステップS5
4)。また、この方法を用いれば、図13に示すよう
に、極値が同じ値で連続する場合も考えられるが、この
場合には、例えば後者を無視するようにする。
Embodiment 3. FIG. 10 shows the implementation of the present invention.
The flow of the process which concerns on the form 3 is shown. This embodiment is
It is not necessary to calculate the forecasted light and dark cycle,
The A is skipped. First, the frame included in the input video
The brightness average value of each of the colors is calculated (step S51).
L is the average brightness value of the i-th frameiAnd And
Compare the values with the frames before and after, and Li≧ Li-1And Li
≧ Li + 1Then LiIs the maximum brightness frame (
Up S52), Li≤Li1And Li≤Li + 1And
If L iIs the minimum brightness frame (step S5)
4). In addition, using this method, as shown in FIG.
It is also possible that the extreme values are continuous with the same value.
In this case, the latter is ignored, for example.

【0032】明度極大フレームが見つかる毎に、1つ前
の明度極大フレームからの経過フレーム数を配列に記憶
する(ステップS52)。予測明暗周期でフリッカが生
じていれば、図11に示すようにその間隔はある値に集
中するので、最頻値の全体に占める割合があらかじめ設
定した閾値よりも大きくなる場合はフリッカと判定する
(ステップS53,57)。また、逆に、予測明暗周期
でフリッカが生じていなければ、図12に示すように、
その間隔がばらつき、最頻度の全体に占める割合には、
図11の場合よりも大きく下回る。
Each time a maximum brightness frame is found, the number of frames elapsed from the immediately previous maximum brightness frame is stored in the array (step S52). If flicker occurs in the predicted light / dark cycle, the interval is concentrated at a certain value as shown in FIG. 11. Therefore, if the ratio of the most frequent value to the whole is larger than a preset threshold value, it is determined as flicker. (Steps S53, 57). On the contrary, if no flicker occurs in the predicted light / dark cycle, as shown in FIG.
The interval varies, and the ratio of the most frequent to the whole is,
It is much lower than in the case of FIG.

【0033】判定精度を上げるために、ここでフリッカ
と判定されなくても、極小値についても同様の判定を行
い(ステップS55)、そこでもフリッカと判定されな
かった場合にフリッカではないと判定することもでき
る。
In order to improve the determination accuracy, even if the flicker is not determined here, the same determination is performed on the local minimum value (step S55). If the flicker is not determined there, it is determined that the flicker is not detected. You can also

【0034】実施の形態4.動画によっては内部情報で
撮像フレームレートを15fpsとされていても、実際
の撮像フレームレートは正確に15fpsではない場合
もある。このような場合には、判定精度を上げるため
に、入力する動画を一定フレーム数毎に分割し、各フレ
ーム群に対し実施の形態4を適用することが好ましい。
また、NTSCの規格のように、フレームレートが2
9.97のような場合にも、「フレームレート30」+
「長周期の位相ずれ」と考えることで、一定フレーム数
毎に分割する判定処理を適用することができる。
Fourth Embodiment Depending on the moving image, even if the imaging frame rate is set to 15 fps in the internal information, the actual imaging frame rate may not be exactly 15 fps. In such a case, in order to improve the determination accuracy, it is preferable to divide the input moving image into a certain number of frames and apply the fourth embodiment to each frame group.
Also, the frame rate is 2 as in the NTSC standard.
Even in the case of 9.97, "frame rate 30" +
By considering “a phase shift of a long period”, it is possible to apply the determination process of dividing the image into a certain number of frames.

【0035】この処理を施さず、全フレームを対象にし
て判定した場合の正常判定率が83.3%であったのに
対し、15フレーム毎に分割した場合の正常判定率は9
1.8%であり、フリッカ判定精度を向上することがで
きた。また、一部のフレーム群に対し、フリッカと判定
されれば、残りのフレーム群のフリッカ判定のステップ
を省略することで、処理の高速化を行なうことも可能と
なる。
The normality determination rate was 83.3% when all frames were determined without this process, whereas the normality determination rate when dividing every 15 frames was 9%.
It was 1.8%, and the flicker determination accuracy could be improved. Further, if flicker is determined for some of the frame groups, the step of flicker determination for the remaining frame groups can be omitted to speed up the processing.

【0036】実施の形態5.動画によっては撮像フレー
ムレートですら取得できない場合がある。このような場
合には、フリッカ明暗周期として可能性の高い値を予測
値として仮定して、ステージBの処理を行えばよい。
Embodiment 5. Depending on the video, it may not be possible to acquire even the image capture frame rate. In such a case, the process of stage B may be performed by assuming a value having a high possibility as the flicker light / dark cycle as a predicted value.

【0037】照明の電源周波数は世界的に50Hzか6
0Hzであり、デジタルカメラで撮像した動画の多くは
10fpsか15fpsか30fpsである。これ以外
ではPAL規格の25fpsやNTSC規格の29.9
7fpsがある。NTSC規格については、上記実施の
形態4で述べたように処理すると30fpsと同様に扱
える。29.97fps以外でのフリッカが発生する組
み合わせは、50Hz、15fpsと50Hz、30f
psと60Hz、25fpsの3つであり、50Hz、
15fpsと50Hz、30fpsについてはフリッカ
明暗周期が3フレーム、60Hz、25fpsの場合に
は5フレームとなる。フリッカ明暗周期の予測方法につ
いての詳細は後述する。
The power supply frequency of lighting is 50 Hz or 6 worldwide.
It is 0 Hz, and most of the moving images captured by the digital camera are 10 fps, 15 fps, or 30 fps. Other than this, PAL standard 25 fps and NTSC standard 29.9.
There is 7 fps. The NTSC standard can be handled in the same manner as 30 fps when processed as described in the fourth embodiment. The combinations that generate flicker other than 29.97 fps are 50 Hz, 15 fps and 50 Hz, 30 f.
ps, 60Hz, and 25fps, 50Hz,
For 15 fps, 50 Hz and 30 fps, the flicker light / dark cycle is 3 frames, and for 60 Hz and 25 fps, it is 5 frames. Details of the method for predicting the flicker light / dark cycle will be described later.

【0038】以上のように、動画にフリッカが発生する
場合、3フレーム周期である可能性が最も高く、次に5
フレーム周期である可能性が高い。さらに、それ以外の
明暗周期でフリッカが発生することはほとんど考えられ
ないことがわかる。そこで、3フレーム周期をフリッカ
予測明暗周期として仮定し、ステージBの処理を行う。
この仮定でフリッカでないと判定された場合には、5フ
レーム周期を仮定するとPAL規格にも対応できるの
で、たとえ撮像フレームレートが不明な場合でも計算機
はほとんどのフリッカを判定できる。
As described above, when flicker occurs in a moving image, it is most likely that the frame period is 3 frames, and then 5 frames.
It is likely to be the frame period. Furthermore, it can be understood that flicker is unlikely to occur in other light-dark cycles. Therefore, assuming that the three-frame cycle is the flicker prediction light-dark cycle, the process of stage B is performed.
If it is determined that the flicker is not generated under this assumption, the PAL standard can be supported by assuming a 5-frame period, and therefore even if the imaging frame rate is unknown, the computer can determine most flicker.

【0039】50Hz、15fps/30fpsでのフ
リッカ明暗周期予測を説明する。動画が撮影できる主な
デジタルカメラの撮像フレームレートは10、15、3
0fpsのものが多い。電源周波数が60Hzの地域で
は、数式(1)のf/rがいずれも整数値となるためフ
リッカは発生しない。しかし、電源周波数が50Hzの
地域では撮像フレームレートが10fpsの時にしか整
数値にならず、撮像フレームレートが15fps/30
fpsの場合にはフリッカが発生する。数式(3)式に
代入するといずれの場合もT=3が得られ、フリッカが
発生していれば3フレーム周期で明暗変化が起こってい
ることが予測される。
The flicker light / dark cycle prediction at 50 Hz and 15 fps / 30 fps will be described. Most digital cameras that can shoot movies have image capture frame rates of 10, 15, and 3.
Most of them are 0 fps. In an area where the power supply frequency is 60 Hz, f / r in the mathematical expression (1) is an integer value, so flicker does not occur. However, in an area where the power supply frequency is 50 Hz, the value becomes an integer only when the imaging frame rate is 10 fps, and the imaging frame rate is 15 fps / 30.
In the case of fps, flicker occurs. By substituting into the formula (3), T = 3 is obtained in any case, and if flicker occurs, it is predicted that light-dark change occurs in three frame cycles.

【0040】実際に数式(1)にf=50,r=15の
場合とf=50,r=30の場合を代入して得られた、
n番フレーム撮影時の電源位相phaseを表1に示
す。なお、kは非負の整数である。
Actually obtained by substituting the case of f = 50, r = 15 and the case of f = 50, r = 30 into the equation (1),
Table 1 shows the power supply phase phase at the time of shooting the nth frame. Note that k is a non-negative integer.

【0041】[0041]

【表1】 いずれの場合も電源位相は3フレーム周期で周期性をも
って変化していることが分かる。
[Table 1] In any case, it can be seen that the power supply phase changes with a periodicity in a 3-frame cycle.

【0042】以上のように、数式(3)を用いること
で、電源周波数と撮像フレームレートの組み合わせか
ら、フリッカ予測明暗周期を計算することができる。
As described above, by using the equation (3), it is possible to calculate the flicker prediction light / dark cycle from the combination of the power supply frequency and the image pickup frame rate.

【0043】実施の形態6.上記の各実施形態におい
て、フリッカ判定処理を高速化するため、判定に用いる
フレームを一部省略することができる。ここではフレー
ムの省略の仕方について2つの例を示す。
Sixth Embodiment In each of the above-described embodiments, since the flicker determination process is speeded up, some frames used for the determination can be omitted. Here, two examples of how to omit the frame are shown.

【0044】一つ目の例は、図14に示すように、ステ
ージAにおいて算出された予測明暗周期の一周期に含ま
れるフレーム群を一単位として、等間隔に数単位ずつ省
略する方法である。
As a first example, as shown in FIG. 14, a frame group included in one cycle of the predicted light-dark cycle calculated in stage A is set as one unit, and several units are omitted at equal intervals. .

【0045】二つ目の例は、図15に示すように、予測
明暗周期に1を加えたフレーム間隔でフレームを抜粋
し、これらを対象に判定処理を行う方法である。
As a second example, as shown in FIG. 15, there is a method of extracting frames at a frame interval obtained by adding 1 to the predicted light / dark cycle and performing a determination process on them.

【0046】いずれの場合も、フリッカの影響ではない
大きな明度変化が動画に存在する場合には、やや判定精
度が落ちる。しかし、動画にフリッカが発生している場
合は、予測明暗周期で明暗を繰り返すので、判定処理に
用いることができる。そして、これらの省略方法によ
り、処理に用いるフレーム数を大幅に削減できるため、
高速なフリッカ判定処理を達成することができる。たと
えば、予測明暗周期が3であった場合、4フレーム間隔
で抜粋したフレーム群に対しフリッカ判定処理を行う
と、全フレームを判定処理対象にした場合に比べて処理
時間は約1/4になることが容易に推測できる。
In either case, if there is a large change in lightness that is not the influence of flicker in the moving image, the determination accuracy will be slightly degraded. However, when flicker occurs in the moving image, the bright and dark are repeated in the predicted light and dark cycle, and therefore, it can be used for the determination process. And by these omitting methods, the number of frames used for processing can be significantly reduced,
High-speed flicker determination processing can be achieved. For example, when the predicted light / dark cycle is 3, when flicker determination processing is performed on a frame group extracted at intervals of 4 frames, the processing time becomes about 1/4 as compared with the case where all the frames are subject to determination processing. It is easy to guess.

【0047】実施の形態7.上記実施の形態6で述べた
判定処理例の二つ目の例において、抜粋フレームの間隔
Iとして、予測明暗周期Tと自然数kとを用いて以下の
数式(6)で得られたものを用いることも可能である。 I=kT±1 ・・・ (6) ただし、Iが大きくなるほど判定精度が落ちる。
Embodiment 7. In the second example of the determination processing example described in the sixth embodiment, as the interval I of the extracted frame, the one obtained by the following mathematical expression (6) using the predicted light / dark cycle T and the natural number k is used. It is also possible. I = kT ± 1 (6) However, the determination accuracy decreases as I increases.

【0048】さらに、実施の形態1及び3に係るフリッ
カ判定方法に適用する場合には、抜粋フレームの間隔I
は予測明暗周期Tと互いに素であるだけでよい。
Furthermore, when the method is applied to the flicker determination method according to the first and third embodiments, the interval I between the extracted frames is
Need only be coprime to the predicted light / dark cycle T.

【0049】抜粋フレームの間隔Iと予測明暗周期Tと
が互いに素であれば、フリッカ画像の抜粋フレーム群は
Tフレーム周期で明暗変化が起こる。ただし、その変化
は移行平均との差分の正負変化が一周期に4回以上起こ
る可能性があるので、実施の形態2に係るフリッカ判定
方法には適用できない。その点、数式(6)で得られた
抜粋フレーム間隔Iでは、一周期に含まれる正負変化の
回数が抜粋前と基本的に等しくなる(Iが大きくなる
と、オリジナルの明暗変化が激しくなり、等しくならな
い可能性が高くなる。判定精度が落ちるのはこのためで
ある。)ので、実施の形態2に係るフリッカ判定方法に
も適用することができる。
If the interval I between the extracted frames and the predicted light-dark cycle T are relatively prime, the light-dark change occurs in the extracted frame group of the flicker image at the T-frame cycle. However, the change may not be applied to the flicker determination method according to the second embodiment because the positive / negative change of the difference from the moving average may occur four times or more in one cycle. On the other hand, in the excerpt frame interval I obtained by the equation (6), the number of positive and negative changes included in one cycle is basically equal to that before the excerpt (when I becomes large, the original light and dark changes become severe and equal. This is the reason why the determination accuracy is lowered.) Therefore, it can be applied to the flicker determination method according to the second embodiment.

【0050】実施の形態8.本発明の実施の形態8で
は、ホストコンピュータ1にフリッカ判定処理を実行さ
せるアプリケーションプログラムのインストールに際し
て、動画撮影環境における照明の電源周波数を特定する
情報をユーザに入力させ、動画に含まれる色属性の変化
周期を予測する上で、その電源周波数を採用する。図1
6は、アプリケーションプログラムインストールに際し
て、ユーザによる電源周波数の入力を可能とするための
フローチャートである。アプリケーションプログラムの
インストール時に、図17に示すようなダイアログをあ
げ、ユーザに電源周波数の入力を促す(ステップS6
1)。そして、アプリケーションプログラムで動画をフ
リッカ判定する際に、ユーザが入力した電源周波数と動
画の撮像フレームレートとに基づいて、フリッカ判定処
理を行なう。このフリッカ判定処理では、電源周波数と
して、ユーザが入力した周波数のみが試される。なお、
電源周波数の入力は、アプリケーションプログラムのイ
ンストール時のみならず、その初回立上げ時にユーザに
促すようにしてもよい。
Embodiment 8. In the eighth embodiment of the present invention, when installing the application program that causes the host computer 1 to execute the flicker determination processing, the user is prompted to input information that specifies the power supply frequency of the illumination in the moving image shooting environment, and the color attribute included in the moving image is displayed. The power supply frequency is used to predict the change cycle. Figure 1
6 is a flowchart for enabling the user to input the power supply frequency when installing the application program. When installing the application program, a dialog as shown in FIG. 17 is displayed to prompt the user to input the power supply frequency (step S6).
1). Then, when flicker determination is performed on the moving image by the application program, flicker determination processing is performed based on the power supply frequency input by the user and the image capturing frame rate of the moving image. In this flicker determination process, only the frequency input by the user is tried as the power supply frequency. In addition,
The input of the power supply frequency may be prompted not only when the application program is installed but also when the application program is first started up.

【0051】実施の形態9.本発明の実施の形態9で
は、OS15(図1参照)のもつ国/地域情報に基づい
て、動画撮影環境における照明の電源周波数を推定し、
動画に含まれる明暗周期を予測する上で、その電源周波
数を採用する。図18に、オペレーションシステムがも
つ国/地域情報に基づき電源周波数を取得するためのフ
ローチャートである。まず、インストールされているO
S15の言語に応じて、電源周波数を推測する(ステッ
プS71)。例えば、Windows(登録商標)にお
いて、VerLanguageName()というAPI
により、0x0409English(United
States)が返された場合、オペレーションシステ
ムの国情報は米国であり、その電源周波数を60Hzと
推測できる。
Ninth Embodiment In the ninth embodiment of the present invention, the power supply frequency of the illumination in the moving image shooting environment is estimated based on the country / region information that the OS 15 (see FIG. 1) has,
The power frequency is used to predict the light-dark cycle included in the video. FIG. 18 is a flowchart for acquiring the power supply frequency based on the country / region information of the operation system. First, the installed O
The power supply frequency is estimated according to the language of S15 (step S71). For example, in Windows (registered trademark), an API called VerLanguageName ()
By 0x0409English (United
State), the country information of the operating system is the United States, and its power supply frequency can be estimated to be 60 Hz.

【0052】そして、その電源周波数と動画の撮像フレ
ームレートとに基づいて、フリッカ判定処理を行なう
(S72)。このフリッカ判定処理では、電源周波数と
して、国/地域情報から推測された電源周波数のみが試
される。但し、例えば日本のように複数の電源周波数
(50/60Hz)が採用される国/地域の情報が取得
された場合には、それら複数の周波数について試され
る。
Then, flicker determination processing is performed based on the power supply frequency and the moving image capturing frame rate (S72). In this flicker determination process, only the power frequency estimated from the country / region information is tried as the power frequency. However, when the information of the country / region in which a plurality of power source frequencies (50/60 Hz) is adopted, such as Japan, is acquired, the plurality of frequencies are tried.

【0053】また、国/地域情報の取得は、図19に示
すようなダイアログをあげ、ユーザによる入力を促すよ
うにして行なわれてもよい。また、Windowsにお
いて、GetTimeZoneInformation
()によりタイムゾーン情報を取り出し、それがOS1
5の言語に基づき推測した国情報と矛盾しない場合につ
いてのみ、国情報に基づく電源周波数を採用することに
より、電源周波数の推測精度を向上させることができ
る。
Further, the country / region information may be obtained by prompting the user to input a dialog as shown in FIG. Also, in Windows, GetTimeZoneInformation
() Retrieves time zone information, which is OS1
Only when there is no contradiction with the country information estimated based on the 5 languages, by adopting the power frequency based on the country information, it is possible to improve the estimation accuracy of the power frequency.

【0054】なお、本発明は、例示された実施の形態に
限定されるものでなく、本発明の要旨を逸脱しない範囲
において、種々の改良及び設計上の変更が可能であるこ
とは言うまでもない。例えば、上記の各フリッカ判定方
法における明度を全て彩度に読み替えて、適応すること
もできる。この場合には、彩度データとして、明度と同
じく、RGBデータをHSLデータに変換したSデータ
を用いればよい。
Needless to say, the present invention is not limited to the illustrated embodiments, and various improvements and design changes can be made without departing from the gist of the present invention. For example, it is also possible to read the lightness in each of the above flicker determination methods as saturation and adapt it. In this case, S data obtained by converting RGB data into HSL data may be used as the saturation data, as with the lightness.

【0055】また、前述した実施の形態には、以下の構
成を有する発明が含まれている。コンピュータにフリッ
カ判定処理を実行させる画像処理プログラムを記録した
コンピュータ読取り可能な記録媒体において、上記画像
処理プログラムが、上記コンピュータに動画を入力する
ステップと、動画撮影環境における照明の電源周波数と
動画の撮像フレームレートとに基づき、上記入力された
動画に含まれる所定の色属性の変化周期を予測するステ
ップと、上記入力された動画から実際に色属性の変化周
期を算出するステップと、上記予測された色属性の変化
周期どおりに色属性の変化が生じているかを確認するス
テップと、上記確認結果に基づき、フリッカの有無を判
定するステップと、を有していることを特徴とする記録
媒体。
Further, the above-described embodiments include inventions having the following configurations. In a computer-readable recording medium recording an image processing program for causing a computer to execute a flicker determination process, the image processing program inputs a moving image to the computer, a power supply frequency of illumination in a moving image capturing environment, and an image capturing of the moving image. A step of predicting a change cycle of a predetermined color attribute included in the input moving image based on a frame rate; a step of actually calculating a change cycle of the color attribute from the input moving image; A recording medium comprising: a step of confirming whether a color attribute change occurs in accordance with a color attribute change cycle; and a step of determining the presence or absence of flicker based on the confirmation result.

【0056】フリッカ判定処理を実行する画像処理装置
において、動画を入力する入力手段と、動画撮影環境に
おける照明の電源周波数と動画の撮像フレームレートと
に基づき、上記入力された動画に含まれる所定の色属性
の変化周期を予測する予測手段と、上記入力された動画
から実際に色属性の変化周期を算出する算出手段と、上
記予測された色属性の変化周期どおりに色属性の変化が
生じているかを確認する確認手段と、上記確認手段によ
る確認結果に基づき、フリッカの有無を判定する判定手
段と、を有していることを特徴とする画像処理装置。
In the image processing apparatus for executing the flicker determination processing, the input means for inputting the moving image, the predetermined power supply frequency of the illumination in the moving image capturing environment and the image capturing frame rate of the moving image are included in the input moving image. A predicting unit that predicts a color attribute change cycle, a calculating unit that actually calculates a color attribute change cycle from the input moving image, and a color attribute change occurs in accordance with the predicted color attribute change cycle. An image processing apparatus comprising: a confirmation unit for confirming whether or not there is a flicker based on a confirmation result by the confirmation unit.

【0057】フリッカ判定方法において、コンピュータ
に動画を入力するステップと、動画撮影環境における照
明の電源周波数と動画の撮像フレームレートとに基づ
き、上記入力された動画に含まれる所定の色属性の変化
周期を予測するステップと、上記入力された動画から実
際に色属性の変化周期を算出するステップと、上記予測
された色属性の変化周期どおりに色属性の変化が生じて
いるかを確認するステップと、上記確認結果に基づき、
フリッカの有無を判定するステップと、を有しているこ
とを特徴とするフリッカ判定方法。
In the flicker determination method, a step of inputting a moving image to a computer, a change cycle of a predetermined color attribute included in the input moving image based on a power supply frequency of illumination in a moving image capturing environment and an image pickup frame rate of the moving image. A step of predicting, a step of actually calculating a color attribute change cycle from the input moving image, and a step of confirming whether a color attribute change occurs according to the predicted color attribute change cycle, Based on the above confirmation results,
And a step of determining the presence or absence of flicker, the method of determining flicker.

【0058】[0058]

【発明の効果】以上の説明から明らかなように、本発明
の請求項1によれば、色属性が変化する周期を電源周波
数と撮像フレームレートとの組み合わせからあらかじめ
予測しておくことで、フリッカ判定処理を高速化するこ
とができる。
As is apparent from the above description, according to claim 1 of the present invention, the flicker can be obtained by predicting the cycle in which the color attribute changes in advance from the combination of the power supply frequency and the imaging frame rate. The determination process can be speeded up.

【0059】また、本発明の請求項2によれば、上記入
力された動画を一定フレーム数毎に分割し、分割されて
なる各フレーム群単位で、予測ステップ以降の処理を実
行して、フリッカ判定精度を向上させることができる。
According to a second aspect of the present invention, the input moving image is divided into a certain number of frames, and the processing after the prediction step is executed for each divided frame group unit to perform flicker. The determination accuracy can be improved.

【0060】更に、本発明の請求項3によれば、電源周
波数や撮像フレームレートが不明な場合であっても、フ
リッカが発生する電源周波数と撮像フレームレートとの
組のうち、実際に多く見られる組を採用することで、フ
リッカ判定処理を高速化することができる。
Further, according to claim 3 of the present invention, even if the power supply frequency or the image pickup frame rate is unknown, it is actually found that there are many combinations of the power supply frequency and the image pickup frame rate at which flicker occurs. The flicker determination processing can be speeded up by adopting the set that is set.

【0061】また、更に、本発明の請求項4によれば、
アプリケーションプログラムのインストール時に若しく
は初回立上げ時に、ユーザに電源周波数を入力させて、
フリッカ判定処理を高速化することができる。
Further, according to claim 4 of the present invention,
When installing the application program or at the first startup, let the user input the power frequency,
The flicker determination process can be speeded up.

【0062】また、更に、本発明の請求項5によれば、
オペレーションシステムのもつ国/地域情報に基づき電
源周波数を推測して、フリッカ判定処理を高速化するこ
とができる。
Further, according to claim 5 of the present invention,
The power supply frequency can be estimated based on the country / region information of the operation system to speed up the flicker determination process.

【図面の簡単な説明】[Brief description of drawings]

【図1】 本発明のフリッカ判定処理が適用される装置
の一例を概略的に示すブロック図である。
FIG. 1 is a block diagram schematically showing an example of an apparatus to which a flicker determination process of the present invention is applied.

【図2】 図1の装置の一部を詳細に示すブロック図で
ある。
FIG. 2 is a block diagram showing in detail a part of the apparatus of FIG.

【図3】 本発明のフリッカ判定方法の一実施形態を説
明するフローチャートである。
FIG. 3 is a flowchart illustrating an embodiment of a flicker determination method of the present invention.

【図4】 ステージAの処理を説明するフローチャート
である。
FIG. 4 is a flowchart illustrating processing of stage A.

【図5】 ステージBの処理の一例を説明するフローチ
ャートである。
FIG. 5 is a flowchart illustrating an example of processing of stage B.

【図6】 グループ化した後の明度変化の一例を示す図
である。
FIG. 6 is a diagram showing an example of change in brightness after grouping.

【図7】 グループ化した後の明度変化の他の例を示す
図である。
FIG. 7 is a diagram showing another example of brightness change after grouping.

【図8】 ステージBの処理の他の例を説明するフロー
チャートである。
FIG. 8 is a flowchart illustrating another example of the process of stage B.

【図9】 明度平均,明度移行平均および両者の差分の
変化の一例を示す図である。
FIG. 9 is a diagram showing an example of changes in brightness average, brightness transition average, and difference between the two.

【図10】 ステージBの処理のさらに他の例を説明す
るフローチャートである。
FIG. 10 is a flowchart illustrating still another example of processing in stage B.

【図11】 明度極大フレームと明度極小フレームの一
例を示す図である。
FIG. 11 is a diagram showing an example of a maximum brightness frame and a minimum brightness frame.

【図12】 明度極大フレームと明度極小フレームの他
の例を示す図である。
FIG. 12 is a diagram showing another example of a maximum brightness frame and a minimum brightness frame.

【図13】 明度極大値が連続する場合の一例を示す図
である。
FIG. 13 is a diagram showing an example of a case where brightness maximum values are continuous.

【図14】 フリッカ判定処理の高速化の一例を示す図
である。
FIG. 14 is a diagram illustrating an example of speeding up flicker determination processing.

【図15】 フリッカ判定処理の高速化の他の例を示す
図である。
FIG. 15 is a diagram showing another example of speeding up of flicker determination processing.

【図16】 フリッカ判定処理用のアプリケーションプ
ログラムインストールに際して、ユーザによる電源周波
数の入力を可能とするためのフローチャートである。
FIG. 16 is a flowchart for enabling a user to input a power supply frequency when installing an application program for flicker determination processing.

【図17】 ユーザが電源周波数を入力するダイアログ
の一例を示す図である。
FIG. 17 is a diagram showing an example of a dialog in which a user inputs a power supply frequency.

【図18】 オペレーションシステムがもつ国/地域情
報を取得するためのフローチャートである。
FIG. 18 is a flowchart for acquiring country / region information that the operation system has.

【図19】 ユーザが国/地域情報を入力するダイアロ
グの一例を示す図である。
FIG. 19 is a diagram showing an example of a dialog in which a user inputs country / region information.

【符号の説明】[Explanation of symbols]

1…ホストコンピュータ 2…外部記憶装置 3…モニタ 4…マウス 5…キーボード 10…フリッカ判定装置 11…記憶装置 12…入出力インターフェース 13…CPU/メモリ 14…処理演算部 15…OS 16…画像データ入出力 41…CD−ROM 42…フロッピーディスク 1 ... Host computer 2 ... External storage device 3 ... Monitor 4 ... mouse 5 ... Keyboard 10: Flicker determination device 11 ... Storage device 12 ... I / O interface 13 ... CPU / memory 14 ... Processing operation unit 15 ... OS 16 ... Image data input / output 41 ... CD-ROM 42 ... Floppy disk

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C061 BB05 5C065 BB02 BB21 BB41 CC01 5C066 AA01 AA13 CA19 EA14 KH01 KM10    ─────────────────────────────────────────────────── ─── Continued front page    F term (reference) 5C061 BB05                 5C065 BB02 BB21 BB41 CC01                 5C066 AA01 AA13 CA19 EA14 KH01                       KM10

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 コンピュータにフリッカ判定処理を実行
させる画像処理プログラムにおいて、 上記コンピュータに動画を入力するステップと、 動画撮影環境における照明の電源周波数と動画の撮像フ
レームレートとに基づき、上記入力された動画に含まれ
る所定の色属性の変化周期を予測するステップと、 上記入力された動画から実際に色属性の変化周期を算出
するステップと、 上記予測された色属性の変化周期どおりに色属性の変化
が生じているかを確認するステップと、 上記確認結果に基づき、フリッカの有無を判定するステ
ップと、を有していることを特徴とする画像処理プログ
ラム。
1. An image processing program for causing a computer to execute a flicker determination process, wherein the step of inputting a moving image to the computer, the power supply frequency of illumination in a moving image capturing environment, and the image capturing frame rate of the moving image are input. A step of predicting a change cycle of a predetermined color attribute included in the moving image; a step of actually calculating the change cycle of the color attribute from the input moving image; and a step of calculating the color attribute according to the predicted change cycle of the color attribute. An image processing program, comprising: a step of confirming whether a change has occurred, and a step of determining the presence or absence of flicker based on the confirmation result.
【請求項2】 上記入力された動画を一定フレーム数毎
に分割し、分割されてなる各フレーム群単位で、予測ス
テップ以降の処理を実行することを特徴とする請求項1
に記載の画像処理プログラム。
2. The input moving image is divided into a predetermined number of frames, and the processing after the prediction step is executed in each divided frame group unit.
The image processing program described in.
【請求項3】 上記動画に含まれる色属性の変化周期を
予測する上で、フリッカの発生に関連して可能性の高い
値を設定することを特徴とする請求項1又は2に記載の
画像処理プログラム。
3. The image according to claim 1, wherein in predicting a change cycle of a color attribute included in the moving image, a value having a high possibility in relation to occurrence of flicker is set. Processing program.
【請求項4】 上記コンピュータにフリッカ判定処理を
実行させるアプリケーションプログラムのインストール
時又は初回立上時に、動画撮影環境における照明の電源
周波数を特定する情報をユーザに入力させ、動画に含ま
れる色属性の変化周期を予測する上で、その電源周波数
を採用することを特徴とする請求項1〜3のいずれか一
に記載の画像処理プログラム。
4. When installing an application program that causes the computer to execute a flicker determination process or at the time of initial startup, the user is prompted to input information that specifies the power supply frequency of the illumination in the moving image shooting environment, and the The image processing program according to any one of claims 1 to 3, wherein the power supply frequency is used to predict the change cycle.
【請求項5】 上記コンピュータを管理するオペレーシ
ョンシステムのもつ国/地域情報に基づいて、動画撮影
環境における照明の電源周波数を推定し、動画に含まれ
る色属性の変化周期を予測する上で、その電源周波数を
採用することを特徴とする請求項1〜4のいずれか一に
記載の画像処理プログラム。
5. The power supply frequency of the illumination in a moving image shooting environment is estimated based on the country / region information of the operation system for managing the computer, and the change cycle of the color attribute included in the moving image is predicted. The image processing program according to claim 1, wherein a power supply frequency is used.
JP2001360857A 2001-11-27 2001-11-27 Image-processing program Pending JP2003163942A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001360857A JP2003163942A (en) 2001-11-27 2001-11-27 Image-processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001360857A JP2003163942A (en) 2001-11-27 2001-11-27 Image-processing program

Publications (1)

Publication Number Publication Date
JP2003163942A true JP2003163942A (en) 2003-06-06

Family

ID=19171606

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001360857A Pending JP2003163942A (en) 2001-11-27 2001-11-27 Image-processing program

Country Status (1)

Country Link
JP (1) JP2003163942A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007174678A (en) * 2005-12-22 2007-07-05 Magnachip Semiconductor Ltd Flicker detecting circuit and method in image sensor
JP2013046325A (en) * 2011-08-26 2013-03-04 Nikon Corp Imaging apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007174678A (en) * 2005-12-22 2007-07-05 Magnachip Semiconductor Ltd Flicker detecting circuit and method in image sensor
US8520094B2 (en) 2005-12-22 2013-08-27 Intellectual Ventures Ii Llc Flicker detecting circuit and method in image sensor
JP2013046325A (en) * 2011-08-26 2013-03-04 Nikon Corp Imaging apparatus

Similar Documents

Publication Publication Date Title
US8072507B2 (en) Method and system of generating high dynamic range image corresponding to specific scene
KR100515225B1 (en) Flicker correction apparatus and flicker correction method, and recording medium storing flicker correction program
US8890975B2 (en) Image processing apparatus, signal processing method and computer-readable medium for image flicker correction
JP5589548B2 (en) Imaging apparatus, image processing method, and program storage medium
WO2017090300A1 (en) Image processing apparatus and image processing method, and program
JP2003110880A (en) Method for removing flicker from image
JP2007028573A (en) Image processing apparatus and image-pickup device
KR20150019985A (en) Method and apparatus for dynamic range enhancement of an image
JP6579868B2 (en) Image processing apparatus, imaging apparatus, image processing method, and program
KR20080098864A (en) Method and apparatus for reducing flicker noise in image sensor
JP2011166728A (en) Image processor and method of processing image
JP2017076969A (en) Flicker detection apparatus and method
JP2010263423A (en) Method and device for processing image
CN110958361A (en) Image pickup apparatus capable of HDR composition, control method therefor, and storage medium
JP2010086270A (en) Image correction apparatus, image correction method, and image correction program
KR20100091845A (en) Digital photographing apparatus, method for controlling the same and medium for recording the method
JP2003163942A (en) Image-processing program
JP4784175B2 (en) Backlight image determination and dark area correction
JP2004200808A (en) Image processing method
JP2001197358A (en) Image pickup device
JP2010213105A (en) Imaging apparatus
JP2005175933A (en) Image processing method
JP7145651B2 (en) Image processing device and program
JP5147912B2 (en) Image processing method, image processing apparatus, program, and recording medium
JP5165611B2 (en) High-speed camera image processing apparatus, image processing method, and high-speed camera apparatus

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20050614

A072 Dismissal of procedure [no reply to invitation to correct request for examination]

Free format text: JAPANESE INTERMEDIATE CODE: A072

Effective date: 20051018