JPH05236340A - Method and device for image processing - Google Patents

Method and device for image processing

Info

Publication number
JPH05236340A
JPH05236340A JP3230684A JP23068491A JPH05236340A JP H05236340 A JPH05236340 A JP H05236340A JP 3230684 A JP3230684 A JP 3230684A JP 23068491 A JP23068491 A JP 23068491A JP H05236340 A JPH05236340 A JP H05236340A
Authority
JP
Japan
Prior art keywords
hue
image data
threshold value
difference
luminance
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
JP3230684A
Other languages
Japanese (ja)
Inventor
Hiroshi Okabe
啓 岡部
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.)
C S K SOGO KENKYUSHO KK
Original Assignee
C S K SOGO KENKYUSHO KK
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 C S K SOGO KENKYUSHO KK filed Critical C S K SOGO KENKYUSHO KK
Priority to JP3230684A priority Critical patent/JPH05236340A/en
Publication of JPH05236340A publication Critical patent/JPH05236340A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide an image processing method to accurately detect the presence or absence and the position of a desired object included in a background image. CONSTITUTION:Hue calculators 5 and 6 calculate the hue Hv of the pixel (x, y) of a video memory 3 designated by a CPU 10 and the hue Hb of the pixel (x, y) of the corresponding background image memory 4 respectively, and inputs these hues Hv and Hb to a decider 9. At the same time, the threshold value TH which is read out of a threshold table memory 11 with the hue Hv defined as an address is inputted to the decider 9. The decider 9 outputs the object detection signal S (x, y) when the absolute value of difference between both hues Hv and Hb exceeds the threshold value TH.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、画像処理技術に関し、
特に、ビデオ信号中の被写体の動作と連携した操作に基
づく特殊効果処理などに適用して有効な技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to image processing technology,
In particular, the present invention relates to a technique effectively applied to a special effect process based on an operation in cooperation with a motion of a subject in a video signal.

【0002】[0002]

【従来の技術】たとえば、ビデオカメラなどから得られ
るビデオ信号中の物体の有無や動きを、当該物体画像と
背景画像との明るさの差異に基づいて検出し、ビデオ画
面中における他の特定画像の動きを制御したり、当該物
体の動きに連携した外部システムの制御を行うなどの種
々の特殊効果を実現することが考えられる。
2. Description of the Related Art For example, the presence or absence of an object in a video signal obtained from a video camera or the like or the motion of the object is detected based on the difference in brightness between the object image and the background image, and another specific image on the video screen is detected. It is conceivable to realize various special effects such as controlling the movement of the object or controlling the external system in cooperation with the movement of the object.

【0003】[0003]

【発明が解決しようとする課題】ところが、単に明るさ
の差異による判定では、背景と類似した明るさで色の異
なる物体の検出や、類似した明るさで色の異なる物体同
士の弁別ができないという問題がある。たとえば背景中
の人物画像の肌色に着目して、画面中の人物の動きを抽
出するなどの操作は困難である。
However, it is not possible to detect objects having similar brightness to the background and different colors, or to distinguish between objects having similar brightness and different colors, simply by determining the difference in brightness. There's a problem. For example, it is difficult to perform operations such as extracting the movement of a person on the screen by paying attention to the skin color of the person image in the background.

【0004】本発明の目的は、背景画像中の目的の物体
の位置や有無を的確に検出することが可能な画像処理技
術を提供することにある。
An object of the present invention is to provide an image processing technique capable of accurately detecting the position and presence / absence of a target object in a background image.

【0005】本発明の他の目的は、背景画像中の特定色
の物体の位置の検出感度を任意に制御することが可能な
画像処理技術を提供することにある。
Another object of the present invention is to provide an image processing technique capable of arbitrarily controlling the detection sensitivity of the position of an object of a specific color in a background image.

【0006】本発明のさらに他の目的は、背景画像中の
物体画像の多様な検出処理を行うことが可能な画像処理
技術を提供することにある。
Still another object of the present invention is to provide an image processing technique capable of performing various detection processes of an object image in a background image.

【0007】[0007]

【課題を解決するための手段】本願において開示される
発明のうち、代表的なものの概要を簡単に説明すれば、
下記の通りである。
Among the inventions disclosed in the present application, a brief description will be given to the outline of typical ones.
It is as follows.

【0008】すなわち、本発明の画像処理方法は、背景
画像データと、この背景画像データ中に混在する物体画
像データとの差異を検出して、背景中における物体の位
置や有無を検出する画像処理方法であって、物体画像デ
ータが混在しない状態の背景画像データを取り込んで保
存する第1の段階と、背景画像を含む任意の対象画像デ
ータを取り込む第2の段階と、この対象画像データにお
ける任意のピクセル位置での色相Hvと、背景画像デー
タにおいて対応するピクセル位置での色相Hbをそれぞ
れ計算する第3の段階と、色相Hvと色相Hbの差の絶
対値と所定の閾値THとを比較し、差の絶対値が閾値T
Hを超えた場合に、当該ピクセル位置における物体検出
信号を出力する第4の段階とからなるものである。
That is, the image processing method of the present invention detects the difference between the background image data and the object image data mixed in the background image data, and detects the position and presence / absence of the object in the background. A first step of capturing and storing background image data in a state in which object image data is not mixed, a second step of capturing arbitrary target image data including a background image, and an arbitrary step in the target image data The third step of calculating the hue Hv at each pixel position and the hue Hb at the corresponding pixel position in the background image data, and comparing the absolute value of the difference between the hue Hv and the hue Hb with a predetermined threshold value TH. , The absolute value of the difference is the threshold value T
And a fourth step of outputting an object detection signal at the pixel position when H is exceeded.

【0009】また、本発明の画像処理方法は、請求項1
記載の画像処理方法において、閾値THの値を、対象画
像データにおける色相Hvの値に応じて変化させ、特定
の色相Hvの物体の検出感度を随意に制御するようにし
たものである。
Further, the image processing method of the present invention is described in claim 1.
In the image processing method described above, the value of the threshold value TH is changed according to the value of the hue Hv in the target image data, and the detection sensitivity of the object of the specific hue Hv is arbitrarily controlled.

【0010】また、本発明の画像処理方法は、請求項1
または2記載の画像処理方法における第3の段階におい
て、背景画像データと対象画像データの対応するピクセ
ル位置における輝度Ybと輝度Yvを、色相Hvおよび
色相Hbと同時に調べ、第4の段階においては、当該輝
度Yvおよび輝度Ybの差と所定の閾値TYとの大小関
係を判定し、他の閾値THによる色相Hvおよび色相H
bの差の判定結果と併せて、物体検出信号の出力の有無
を決定するようにしたものである。
Further, the image processing method of the present invention is described in claim 1.
Alternatively, in the third step of the image processing method described in 2, the luminance Yb and the luminance Yv at the corresponding pixel positions of the background image data and the target image data are examined at the same time as the hue Hv and the hue Hb, and in the fourth step, The magnitude relationship between the difference between the brightness Yv and the brightness Yb and a predetermined threshold value TY is determined, and the hue Hv and the hue H based on other threshold values TH are determined.
The presence or absence of the output of the object detection signal is determined together with the determination result of the difference b.

【0011】また、本発明の画像処理装置は、任意の画
像データをディジタル化して取り込む撮像手段と、画像
データを独立に保持することが可能な第1および第2の
画像メモリと、第2の画像メモリに保持される背景画像
データにおける任意のピクセル位置での色相Hbを計算
する第2の色相計算手段と、第1の画像メモリに保持さ
れる対象画像データにおける任意のピクセル位置での色
相Hvを計算する第1の色相計算手段と、第1および第
2の画像メモリの対応するピクセル位置における色相H
vと色相Hbの差の絶対値と所定の閾値THとを比較
し、差の絶対値が閾値THを超えた場合に当該ピクセル
位置における物体検出信号を出力する判定手段と、各手
段を制御する制御手段とを備えたものである。
Further, the image processing apparatus of the present invention comprises an image pickup means for digitizing and fetching arbitrary image data, first and second image memories capable of holding the image data independently, and a second image memory. Second hue calculating means for calculating a hue Hb at an arbitrary pixel position in the background image data held in the image memory, and a hue Hv at an arbitrary pixel position in the target image data held in the first image memory. And a hue H at corresponding pixel positions in the first and second image memories.
The control unit compares the absolute value of the difference between v and the hue Hb with a predetermined threshold value TH, and outputs an object detection signal at the pixel position when the absolute value of the difference exceeds the threshold value TH, and each unit. And a control means.

【0012】また、本発明の画像処理装置は、請求項4
記載の画像処理装置において、対象画像データの色相H
vの値をアドレスとして、各アドレスに同一または異な
る閾値THが設定された閾値テーブルメモリを設け、判
定手段は、色相Hvと色相Hbとの差の絶対値と、この
閾値テーブルメモリから当該色相Hvをアドレスとして
その都度読み出される閾値THとを比較する動作を行う
ようにしたものである。
Further, the image processing apparatus of the present invention comprises:
In the described image processing apparatus, the hue H of the target image data
A threshold value table memory in which the same or different threshold value TH is set at each address using the value of v as an address is provided, and the determining means determines the absolute value of the difference between the hue Hv and the hue Hb and the hue value Hv from the threshold value table memory. Is used as an address and an operation of comparing with a threshold value TH that is read out each time is performed.

【0013】また、本発明の画像処理装置は、請求項4
または5記載の画像処理装置において、第1および第2
の画像メモリに格納された背景画像データおよび対象画
像データにおける任意のピクセル位置での輝度Yvおよ
び輝度Ybを計算する第1および第2の輝度計算手段を
設け、判定手段は、この輝度Yvおよび輝度Ybの差と
所定の閾値TYとの大小関係の判定結果と、色相Hvお
よび色相Hbの閾値THによる判定結果とを併せて、物
体検出信号の出力の有無を決定するようにしたものであ
る。
Further, the image processing apparatus of the present invention comprises:
Alternatively, in the image processing device according to the fifth aspect, the first and second
The first and second brightness calculation means for calculating the brightness Yv and the brightness Yb at arbitrary pixel positions in the background image data and the target image data stored in the image memory are provided, and the determining means determines the brightness Yv and the brightness Yb. The presence or absence of the output of the object detection signal is determined by combining the determination result of the magnitude relationship between the difference of Yb and the predetermined threshold value TY and the determination result of the threshold value TH of the hue Hv and the hue Hb.

【0014】[0014]

【作用】上記した本発明の画像処理方法および画像処理
装置によれば、背景と物体との色相の差異の大小に基づ
いて、背景中における物体の位置検出を行うので、たと
えば背景と物体の明るさが類似している場合や、背景中
に明るさが類似した異なる色の複数種の物体が存在する
場合でも、背景中の目的の物体の位置や有無、さらに
は、複数の物体の識別などの処理を的確に遂行すること
ができる。
According to the above-described image processing method and image processing apparatus of the present invention, the position of an object in the background is detected based on the difference in hue between the background and the object. Even if the backgrounds are similar, or if there are multiple types of objects of different colors with similar brightness in the background, the position and presence of the target object in the background, as well as the identification of multiple objects, etc. Can be accurately performed.

【0015】また、対象画像データにおける色相Hvに
応じて、判定処理の基準となる閾値THの値を適宜変化
させることができるので、特定の色の物体の検出感度を
随意に制御することができる。
Further, since the value of the threshold value TH, which is the reference of the determination process, can be appropriately changed according to the hue Hv in the target image data, it is possible to arbitrarily control the detection sensitivity of an object of a specific color. ..

【0016】また、背景と物体とにおける色相の差異と
輝度の差異の双方の測定結果を併用することにより、背
景画像中に混在する物体の多様な検出処理を行うことが
できる。
Further, by combining the measurement results of both the difference in hue and the difference in luminance between the background and the object, it is possible to perform various detection processing of the objects mixed in the background image.

【0017】[0017]

【実施例1】以下、図面を参照しながら本発明の一実施
例である画像処理方法および画像処理装置について詳細
に説明する。
Embodiment 1 An image processing method and an image processing apparatus according to an embodiment of the present invention will be described in detail below with reference to the drawings.

【0018】図1は、本発明の一実施例である画像処理
装置の構成の一例を示すブロック図であり、図2は、当
該画像処理装置および画像処理方法の作用の一例を示す
フローチャートである。
FIG. 1 is a block diagram showing an example of the configuration of an image processing apparatus according to an embodiment of the present invention, and FIG. 2 is a flow chart showing an example of the operation of the image processing apparatus and the image processing method. ..

【0019】まず、図1を参照しながら、本実施例の画
像処理装置の構成の概略を説明する。
First, an outline of the configuration of the image processing apparatus of this embodiment will be described with reference to FIG.

【0020】たとえば、カラービデオカメラなどからな
るカメラ1には、A/Dコンバータ2を介して、ビデオ
メモリ3が接続されている。このビデオメモリ3は、
R,G,Bの各プレーンを備えており、各プレーンは、
1画面を構成する各ピクセルにおける赤,緑,青の各原
色の輝度を所定のビット幅の多値情報として保持する構
成となっている。
For example, a video memory 3 is connected to a camera 1 such as a color video camera via an A / D converter 2. This video memory 3 is
Each plane of R, G, B is provided, and each plane is
The luminance of each of the primary colors of red, green, and blue in each pixel forming one screen is held as multivalued information having a predetermined bit width.

【0021】また、特に図示しないが、A/Dコンバー
タ2は、R,G,Bの各原色に対応した3系統のA/D
変換回路を備えており、各色のデータがビデオメモリ3
の該当色のプレーンに書き込まれるようになっている。
Although not particularly shown, the A / D converter 2 has three systems of A / D corresponding to the respective primary colors of R, G and B.
Equipped with a conversion circuit, each color data is stored in the video memory 3
It is designed to be written on the plane of the relevant color.

【0022】ビデオメモリ3には、当該ビデオメモリ3
と同容量の背景画像メモリ4が接続されており、ビデオ
メモリ3に一旦取り込まれたR,G,Bの各プレーンの
画像データを複写して保存することが可能になってい
る。
The video memory 3 includes the video memory 3
The background image memory 4 having the same capacity as the above is connected, and it is possible to copy and save the image data of each plane of R, G, and B which is once taken in the video memory 3.

【0023】ビデオメモリ3および背景画像メモリ4の
後段には、色相計算器5および色相計算器6がそれぞれ
接続されており、この色相計算器5および色相計算器6
の出力は、判定器9への入力となっている。
A hue calculator 5 and a hue calculator 6 are connected to the succeeding stages of the video memory 3 and the background image memory 4, respectively. The hue calculator 5 and the hue calculator 6 are connected to the hue calculator 5 and the hue calculator 6.
The output of is the input to the determiner 9.

【0024】上述の各部は、たとえばマイクロプロセッ
サなどからなる中央処理装置10(CPU)によって統
轄して制御されている。
Each of the above-mentioned units is controlled by a central processing unit 10 (CPU) including a microprocessor, for example.

【0025】ビデオメモリ3に属する色相計算器5は、
中央処理装置10から指定されたビデオメモリ3中の任
意のピクセル(x,y)について、R,G,Bの各プレ
ーンのデータを読み出し、色相Hv(x,y)を計算し
て判定器9に入力する動作を行うように構成されてい
る。
The hue calculator 5 belonging to the video memory 3 is
For the arbitrary pixel (x, y) in the video memory 3 designated by the central processing unit 10, the data of each plane of R, G, B is read out, the hue Hv (x, y) is calculated, and the determination unit 9 is executed. It is configured to perform an input operation.

【0026】同様に背景画像メモリ4に属する色相計算
器6は、中央処理装置10から指定された背景画像メモ
リ4中の任意のピクセル(x,y)について、R,G,
Bの各プレーンのデータを読み出し、色相Hb(x,
y)を計算して判定器9に入力する動作を行うように構
成されている。
Similarly, the hue calculator 6 belonging to the background image memory 4 performs R, G, and R for the arbitrary pixel (x, y) in the background image memory 4 designated by the central processing unit 10.
The data of each plane of B is read and the hue Hb (x,
It is configured to perform the operation of calculating y) and inputting it to the determiner 9.

【0027】この場合、色相計算器5および色相計算器
6は、たとえば、図4に示されるような色相環におい
て、赤を0°,緑を120°,青を240°とした時の
各色の当該色相環中における角度を、色相Hvおよび色
相Hbとして計算する動作を行う。
In this case, the hue calculator 5 and the hue calculator 6 are arranged, for example, in the hue circle as shown in FIG. 4 for each color when red is 0 °, green is 120 ° and blue is 240 °. An operation of calculating the angle in the hue circle as the hue Hv and the hue Hb is performed.

【0028】判定器9には、閾値テーブルメモリ11が
接続されている。この閾値テーブルメモリ11は、ビデ
オメモリ3から色相計算器5によって計算された色相H
vをアドレスとして種々の閾値THが予め設定されたメ
モリであり、色相計算器5から判定器9に色相Hvが入
力される際に、当該色相Hvをアドレスとして読み出さ
れた閾値THが同時に判定器9に入力されるものであ
る。
A threshold table memory 11 is connected to the judging device 9. This threshold table memory 11 is used for the hue H calculated from the video memory 3 by the hue calculator 5.
This is a memory in which various thresholds TH are preset with v as an address, and when the hue Hv is input from the hue calculator 5 to the determiner 9, the threshold TH read with the hue Hv as an address is determined at the same time. It is input to the container 9.

【0029】判定器9は、色相計算器5および色相計算
器6から到来するビデオメモリ3側の任意のピクセル
(x,y)の色相Hvと、背景画像メモリ4側の対応す
るピクセル(x,y)の色相Hbとの差の絶対値を計算
し、当該絶対値が、閾値テーブルメモリ11から入力さ
れた、その時の閾値THを超えた場合に、当該ピクセル
(x,y)における物体検出信号S(x,y)を外部に
出力する、という動作を行うように構成されている。
The judging device 9 determines the hue Hv of an arbitrary pixel (x, y) on the video memory 3 side coming from the hue calculator 5 and the hue calculator 6 and the corresponding pixel (x, y) on the background image memory 4 side. y) the absolute value of the difference from the hue Hb is calculated, and when the absolute value exceeds the threshold TH at that time, which is input from the threshold table memory 11, the object detection signal at the pixel (x, y). It is configured to perform an operation of outputting S (x, y) to the outside.

【0030】以下、本実施例における画像処理方法およ
び装置の作用の一例を説明する。
An example of the operation of the image processing method and apparatus according to this embodiment will be described below.

【0031】まず、中央処理装置10は、閾値テーブル
メモリ11の各アドレスに、所望の閾値THをそれぞれ
設定する(ステップ20)。
First, the central processing unit 10 sets a desired threshold value TH at each address of the threshold value table memory 11 (step 20).

【0032】その後、まず物体が存在しない背景のみの
背景画像データをビデオメモリ3に取り込み(ステップ
21)、さらに当該背景画像データを背景画像メモリ4
に転送して複写する(ステップ22)。
After that, first, the background image data of only the background in which no object exists is taken into the video memory 3 (step 21), and the background image data is further taken into the background image memory 4.
And copy (step 22).

【0033】その後、まず判定対象となる対象画像デー
タをビデオメモリ3に取り込み(ステップ23)、さら
に中央処理装置10は、ピクセル(x,y)を指定し
て、色相計算器5および色相計算器6を起動し、ビデオ
メモリ3と背景画像メモリ4における対応ピクセル
(x,y)の色相Hvおよび色相Hbを同時に計算さ
せ、判定器9に入力させる(ステップ24)。
Thereafter, first, the target image data to be judged is loaded into the video memory 3 (step 23), and the central processing unit 10 further designates the pixel (x, y) to specify the hue calculator 5 and the hue calculator. 6 is started, and the hue Hv and the hue Hb of the corresponding pixel (x, y) in the video memory 3 and the background image memory 4 are calculated at the same time, and are input to the determiner 9 (step 24).

【0034】この時、ビデオメモリ3側の色相Hvは、
同時に閾値テーブルメモリ11にアドレスとして入力さ
れ、当該アドレスから読み出された閾値THが、判定器
9に入力される(ステップ25)。
At this time, the hue Hv on the video memory 3 side is
At the same time, the threshold value TH is input to the threshold value table memory 11 as an address, and the threshold value TH read from the address is input to the determiner 9 (step 25).

【0035】さらに、中央処理装置10は、判定器9を
起動し、当該判定器9は、色相Hvと色相Hbとの差の
絶対値と、閾値テーブルメモリ11から入力された閾値
THとの大小関係を調べる(ステップ26)。
Further, the central processing unit 10 activates the judging device 9, and the judging device 9 compares the absolute value of the difference between the hue Hv and the hue Hb with the threshold value TH input from the threshold value table memory 11. Check the relationship (step 26).

【0036】そして、当該絶対値が当該閾値THを超え
ていた場合には物体検出信号S(x,y)を出力する
(ステップ27)。
If the absolute value exceeds the threshold TH, the object detection signal S (x, y) is output (step 27).

【0037】そして、上述のような一つのピクセル
(x,y)に関する判定処理が完了した後、中央処理装
置10は、ビデオメモリ3に取り込んだ対象画像データ
の全ピクセルについて判定が完了したか否かを調べ(ス
テップ28)、未だ完了していない場合には、次のピク
セル(x,y)を指定して前記ステップ24以降の動作
を繰り返す(ステップ29)。
Then, after the determination processing for one pixel (x, y) as described above is completed, the central processing unit 10 determines whether or not the determination is completed for all the pixels of the target image data taken into the video memory 3. It is checked (step 28), and if not completed, the next pixel (x, y) is designated and the operations after step 24 are repeated (step 29).

【0038】一方、ステップ28において、現在のビデ
オメモリ3における1画面分の全ピクセルに関する判定
処理が完了したと判明した場合には、前記ステップ23
に戻って、次の対象画像データをビデオメモリ3に読み
込み、以降の各ステップの処理を繰り返す。
On the other hand, if it is determined in step 28 that the determination process for all pixels for one screen in the current video memory 3 is completed, the above step 23 is performed.
Then, the next target image data is read into the video memory 3, and the processing of each subsequent step is repeated.

【0039】このように、本実施例の画像処理方法およ
び装置の場合には、所望の対象画像データと、物体の存
在しない背景画像データの対応するピクセル(x,y)
の各々における色相Hbおよび色相Hvの差の絶対値の
大小に応じて、当該対象画像データにおける物体の有無
や位置を検出するので、たとえば、背景と物体との輝度
の差異が小さい場合や、輝度の類似した複数の物体が背
景中に混在する場合でも、色の相違によって目的の物体
を正確に背景や他の物体から弁別して検出することがで
きる。
As described above, in the case of the image processing method and apparatus of the present embodiment, the desired pixel image data and the corresponding pixel (x, y) of the background image data in which no object exists.
Since the presence or absence and the position of an object in the target image data are detected according to the magnitude of the absolute value of the difference between the hue Hb and the hue Hv in each of the above, for example, when the difference in brightness between the background and the object is small, Even if a plurality of similar objects are mixed in the background, the target object can be accurately discriminated from the background and other objects by the color difference and detected.

【0040】また、閾値テーブルメモリ11の各アドレ
スに対する閾値THの設定に際して、たとえば、肌色に
対応する色相Hvのアドレスに設定される閾値THを、
他の色の色相Hvのアドレスに設定される値よりも選択
的に小さく設定しておくことにより、当該肌色の物体の
検出感度が他の色の物体の検出感度よりも高くなり、背
景中の人物の位置や有無を高感度に検出することができ
る。
When setting the threshold TH for each address of the threshold table memory 11, for example, the threshold TH set for the address of the hue Hv corresponding to the skin color is
By selectively setting the value smaller than the value set in the address of the hue Hv of another color, the detection sensitivity of the flesh-colored object becomes higher than the detection sensitivity of the other-colored object, and the background The position and presence of a person can be detected with high sensitivity.

【0041】[0041]

【実施例2】次に、図3を参照しながら、本発明の他の
実施例である画像処理方法および装置について説明す
る。
Second Embodiment Next, an image processing method and apparatus according to another embodiment of the present invention will be described with reference to FIG.

【0042】この実施例の場合には、ビデオメモリ3お
よび背景画像メモリ4の各々と判定器9aとの間に、色
相計算器5および色相計算器6とともに、輝度計算器7
および輝度計算器8をそれぞれ配置したところが前記実
施例1の場合と異なる。
In the case of this embodiment, between the video memory 3 and the background image memory 4 and the determiner 9a, the hue calculator 5 and the hue calculator 6 as well as the luminance calculator 7 are provided.
The difference from the first embodiment is that the brightness calculator 8 and the brightness calculator 8 are respectively arranged.

【0043】この輝度計算器7および輝度計算器8は、
中央処理装置10から指定されたビデオメモリ3および
背景画像メモリ4の対応するピクセル(x,y)におけ
る輝度Yvおよび輝度Ybを計算し、判定器9aに入力
する動作を行うように構成されている。
The brightness calculator 7 and the brightness calculator 8 are
The brightness Yv and the brightness Yb at the corresponding pixel (x, y) of the video memory 3 and the background image memory 4 designated by the central processing unit 10 are calculated, and the brightness Yv and the brightness Yb are input to the determiner 9a. ..

【0044】また、本実施例における判定器9aは、色
相Hvと色相Hbの差の絶対値と、閾値THとの大小関
係を判定する動作とともに、輝度Yvと輝度Ybの差
と、外部から設定される所望の閾値TYとの大小関係を
判定する動作を行うように構成されている。
Further, the determining device 9a in this embodiment determines the magnitude relationship between the absolute value of the difference between the hue Hv and the hue Hb and the threshold value TH, and sets the difference between the luminance Yv and the luminance Yb from the outside. It is configured to perform the operation of determining the magnitude relationship with the desired threshold value TY.

【0045】そして、当該判定器9aは、たとえば、色
相の差の絶対値が閾値THよりも大きい場合(条件A)
と、輝度の差が閾値TYよりも大きい場合(条件B)、
の各条件の成立不成立を調べ、条件Aおよび条件Bが同
時に成立した場合、または、条件Aおよび条件Bの少な
くとも一方が成立した場合に、物体検出信号S(x,
y)を出力するなどの判定動作を行う。
Then, for example, when the absolute value of the hue difference is larger than the threshold value TH, the judging device 9a concerned (condition A).
And the difference in luminance is larger than the threshold value TY (condition B),
If the conditions A and B are satisfied at the same time, or if at least one of the conditions A and B is satisfied, the object detection signal S (x,
The determination operation such as outputting y) is performed.

【0046】このように、本実施例2の場合には、背景
中における物体の有無や位置の検出操作を、色相と輝度
の差異の双方に基づいて行うので、より多様な物体の検
出処理を行うことができる。
As described above, in the case of the second embodiment, since the presence / absence of an object in the background and the position detection operation are performed based on both the difference in hue and brightness, it is possible to detect a wider variety of objects. It can be carried out.

【0047】[0047]

【発明の効果】本願において開示される発明のうち、代
表的なものによって得られる効果を簡単に説明すれば、
以下のとおりである。
The effects obtained by the typical ones of the inventions disclosed in the present application will be briefly described as follows.
It is as follows.

【0048】すなわち、本発明の画像処理方法によれ
ば、背景画像中の目的の物体の位置や有無を的確に検出
することができるという効果が得られる。
That is, according to the image processing method of the present invention, it is possible to accurately detect the position and presence / absence of a target object in the background image.

【0049】また、本発明の画像処理方法によれば、背
景画像中の特定色の物体の位置の検出感度を任意に制御
することができるという効果が得られる。
Further, according to the image processing method of the present invention, there is an effect that the detection sensitivity of the position of the object of the specific color in the background image can be arbitrarily controlled.

【0050】また、本発明の画像処理方法によれば、背
景画像中の物体画像の多様な検出処理を行うことができ
るという効果が得られる。
Further, according to the image processing method of the present invention, there is an effect that various detection processing of the object image in the background image can be performed.

【0051】また、本発明の画像処理装置によれば、背
景画像中の目的の物体の位置や有無を的確に検出するこ
とができるという効果が得られる。
Further, according to the image processing apparatus of the present invention, there is an effect that the position and presence / absence of the target object in the background image can be accurately detected.

【0052】また、本発明の画像処理装置によれば、背
景画像中の特定色の物体の位置の検出感度を任意に制御
することができるという効果が得られる。
Further, according to the image processing apparatus of the present invention, it is possible to arbitrarily control the detection sensitivity of the position of the object of the specific color in the background image.

【0053】また、本発明の画像処理装置によれば、背
景画像中の物体画像の多様な検出処理を行うことができ
るという効果が得られる。
Further, according to the image processing apparatus of the present invention, there is an effect that various detection processing of the object image in the background image can be performed.

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

【図1】本発明の一実施例である画像処理装置の構成の
一例を示すブロック図である。
FIG. 1 is a block diagram showing an example of the configuration of an image processing apparatus that is an embodiment of the present invention.

【図2】本発明の一実施例である画像処理装置および画
像処理方法の作用の一例を示すフローチャートである。
FIG. 2 is a flowchart showing an example of the operation of the image processing apparatus and the image processing method according to the embodiment of the present invention.

【図3】本発明の他の実施例である画像処理装置の構成
の一例を示すブロック図である。
FIG. 3 is a block diagram showing an example of the configuration of an image processing apparatus that is another embodiment of the present invention.

【図4】本発明の画像処理方法および装置における色相
の大小関係を表す色相環の一例を示す説明図である。
FIG. 4 is an explanatory diagram showing an example of a hue circle showing the magnitude relationship of hues in the image processing method and apparatus of the present invention.

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

1 カメラ(撮像手段) 2 A/Dコンバータ(撮像手段) 3 ビデオメモリ(第1の画像メモリ) 4 背景画像メモリ(第2の画像メモリ) 5 色相計算器(第1の色相計算手段) 6 色相計算器(第2の色相計算手段) 7 輝度計算器(第1の輝度計算手段) 8 輝度計算器(第2の輝度計算手段) 9 判定器(判定手段) 9a 判定器(判定手段) 10 中央処理装置(制御手段) 11 閾値テーブルメモリ Hb 背景画像データの色相 Hv 対象画像データの色相 Yb 背景画像データの輝度 Yv 対象画像データの輝度 TH 色相の差異の判定における閾値 TY 輝度の差異の判定における閾値 S 物体検出信号 1 camera (imaging means) 2 A / D converter (imaging means) 3 video memory (first image memory) 4 background image memory (second image memory) 5 hue calculator (first hue calculation means) 6 hue Calculator (second hue calculation means) 7 Luminance calculator (first luminance calculation means) 8 Luminance calculator (second luminance calculation means) 9 Judgment device (judgment means) 9a Judgment device (judgment means) 10 Central Processing device (control means) 11 Threshold table memory Hb Hue of background image data Hv Hue of target image data Yb Luminance of background image data Yv Luminance of target image data TH Threshold for hue difference determination TY Threshold for luminance difference determination S Object detection signal

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 背景画像データと、この背景画像データ
中に混在する物体画像データとの差異を検出して、背景
中における物体の有無や位置を検出する画像処理方法で
あって、前記物体画像データが混在しない状態の前記背
景画像データを取り込んで保存する第1の段階と、前記
背景画像を含む任意の対象画像データを取り込む第2の
段階と、この対象画像データにおける任意のピクセル位
置での色相Hvと、前記背景画像データにおいて対応す
るピクセル位置での色相Hbをそれぞれ計算する第3の
段階と、前記色相Hvと前記色相Hbの差の絶対値と所
定の閾値THとを比較し、前記差の絶対値が前記閾値T
Hを超えた場合に、当該ピクセル位置における物体検出
信号を出力する第4の段階とからなることを特徴とする
画像処理方法。
1. An image processing method for detecting the difference between background image data and object image data mixed in the background image data to detect the presence or absence and the position of an object in the background. A first step of capturing and storing the background image data in a state in which no data is mixed, a second step of capturing any target image data including the background image, and a second step of capturing any target image data in the target image data. The third step of calculating the hue Hv and the hue Hb at the corresponding pixel position in the background image data, and comparing the absolute value of the difference between the hue Hv and the hue Hb with a predetermined threshold value TH, The absolute value of the difference is the threshold value T
And a fourth step of outputting an object detection signal at the pixel position when H is exceeded.
【請求項2】 前記閾値THの値を、前記対象画像デー
タにおける前記色相Hvの値に応じて変化させ、特定の
色相Hvの物体の検出感度を随意に制御することを特徴
とする請求項1記載の画像処理方法。
2. The value of the threshold value TH is changed according to the value of the hue Hv in the target image data, and the detection sensitivity of an object of a specific hue Hv is arbitrarily controlled. The described image processing method.
【請求項3】 前記第3の段階において、前記背景画像
データと前記対象画像データの対応するピクセル位置に
おける輝度Ybと輝度Yvを、前記色相Hvおよび色相
Hbと同時に調べ、前記第4の段階においては、当該輝
度Yvおよび輝度Ybの差と所定の閾値TYとの大小関
係を判定し、前記閾値THによる前記色相Hvおよび色
相Hbの差の判定結果と併せて、前記物体検出信号の出
力の有無を決定することを特徴とする請求項1または2
記載の画像処理方法。
3. In the third step, the luminance Yb and the luminance Yv at corresponding pixel positions of the background image data and the target image data are checked at the same time as the hue Hv and the hue Hb, and in the fourth step. Is the presence or absence of the output of the object detection signal together with the determination result of the difference between the luminance Yv and the luminance Yb and a predetermined threshold value TY, and the determination result of the difference between the hue Hv and the hue Hb by the threshold value TH. 3. The method according to claim 1 or 2, wherein
The described image processing method.
【請求項4】 任意の画像データをディジタル化して取
り込む撮像手段と、前記画像データを独立に保持するこ
とが可能な第1および第2の画像メモリと、前記第2の
画像メモリに保持される背景画像データにおける任意の
ピクセル位置での色相Hbを計算する第2の色相計算手
段と、前記第1の画像メモリに保持される対象画像デー
タにおける任意のピクセル位置での色相Hvを計算する
第1の色相計算手段と、前記第1および第2の画像メモ
リの対応するピクセル位置における前記色相Hvと前記
色相Hbの差の絶対値と所定の閾値THとを比較し、前
記差の絶対値が前記閾値THを超えた場合に当該ピクセ
ル位置における物体検出信号を出力する判定手段と、前
記各手段を制御する制御手段とを備えたことを特徴とす
る画像処理装置。
4. An image pickup unit for digitizing and capturing arbitrary image data, first and second image memories capable of independently retaining the image data, and the second image memory. Second hue calculating means for calculating a hue Hb at an arbitrary pixel position in the background image data, and first for calculating a hue Hv at an arbitrary pixel position in the target image data held in the first image memory. Comparing the absolute value of the difference between the hue Hv and the hue Hb at a corresponding pixel position in the first and second image memories with a predetermined threshold value TH, and the absolute value of the difference is calculated as follows. An image processing apparatus comprising: a determination unit that outputs an object detection signal at the pixel position when the threshold value TH is exceeded; and a control unit that controls each unit.
【請求項5】 前記対象画像データの前記色相Hvの値
をアドレスとして、各アドレスに同一または異なる前記
閾値THが設定された閾値テーブルメモリを備え、前記
判定手段は、前記色相Hvと前記色相Hbとの差の絶対
値と、この閾値テーブルメモリから当該色相Hvをアド
レスとしてその都度読み出される前記閾値THとを比較
する動作を行うことを特徴とする請求項4記載の画像処
理装置。
5. A threshold value table memory in which the same or different threshold value TH is set at each address using the value of the hue Hv of the target image data as an address, and the determining means includes the hue Hv and the hue Hb. 5. The image processing apparatus according to claim 4, further comprising an operation of comparing an absolute value of a difference between the threshold value TH and the threshold value TH read from the threshold value table memory with the hue Hv as an address.
【請求項6】 前記第1および第2の画像メモリに格納
された前記背景画像データおよび前記対象画像データに
おける任意のピクセル位置での輝度Yvおよび輝度Yb
を計算する第1および第2の輝度計算手段を備え、前記
判定手段は、この輝度Yvおよび輝度Ybの差と所定の
閾値TYとの大小関係の判定結果と、前記色相Hvおよ
び前記色相Hbの前記閾値THによる判定結果とを併せ
て、前記物体検出信号の出力の有無を決定することを特
徴とする請求項4または5記載の画像処理装置。
6. A luminance Yv and a luminance Yb at arbitrary pixel positions in the background image data and the target image data stored in the first and second image memories.
The first and second luminance calculating means for calculating the above are provided, and the determining means determines the magnitude relationship between the difference between the luminance Yv and the luminance Yb and a predetermined threshold value TY, and the hue Hv and the hue Hb. The image processing apparatus according to claim 4, wherein the presence or absence of the output of the object detection signal is determined together with the determination result based on the threshold value TH.
JP3230684A 1991-09-11 1991-09-11 Method and device for image processing Pending JPH05236340A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3230684A JPH05236340A (en) 1991-09-11 1991-09-11 Method and device for image processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3230684A JPH05236340A (en) 1991-09-11 1991-09-11 Method and device for image processing

Publications (1)

Publication Number Publication Date
JPH05236340A true JPH05236340A (en) 1993-09-10

Family

ID=16911693

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3230684A Pending JPH05236340A (en) 1991-09-11 1991-09-11 Method and device for image processing

Country Status (1)

Country Link
JP (1) JPH05236340A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7251056B2 (en) 2001-06-11 2007-07-31 Ricoh Company, Ltd. Image processing apparatus, image processing method and information recording medium
JP2007300531A (en) * 2006-05-02 2007-11-15 Megachips System Solutions Inc Object detector
JP2018157321A (en) * 2017-03-16 2018-10-04 日本電気株式会社 Video conference apparatus, video conference system, video conference method, and video conference program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7251056B2 (en) 2001-06-11 2007-07-31 Ricoh Company, Ltd. Image processing apparatus, image processing method and information recording medium
US7525688B2 (en) 2001-06-11 2009-04-28 Ricoh Company, Ltd. Image processing apparatus, image processing method and information recording medium
JP2007300531A (en) * 2006-05-02 2007-11-15 Megachips System Solutions Inc Object detector
JP2018157321A (en) * 2017-03-16 2018-10-04 日本電気株式会社 Video conference apparatus, video conference system, video conference method, and video conference program

Similar Documents

Publication Publication Date Title
Martinkauppi et al. Behavior of skin color under varying illumination seen by different cameras at different color spaces
WO2022108061A1 (en) Method and device for joint denoising and demosaicing using neural network
JP3741672B2 (en) Image feature learning type defect detection method, defect detection apparatus, and defect detection program
CN108198189B (en) Picture definition obtaining method and device, storage medium and electronic equipment
CA2420020A1 (en) Image processing apparatus and method, and image pickup apparatus
JPH05236340A (en) Method and device for image processing
US20200372620A1 (en) Method and apparatus for image preprocessing
US9239947B2 (en) Face detection method
US7623179B2 (en) Storage medium and method to control auto exposure by the same
CN114125280A (en) Camera exposure control method, device, equipment, storage medium and program product
JPH05252437A (en) Method and device for image processing
CN113168683A (en) Image processing device, processor chip, and electronic apparatus
JP4163651B2 (en) Red-eye correction work support apparatus and program
JP2005184307A (en) Circuit and method for correcting flawed pixel
Akita Real-time color detection system using custom lsi for high-speed machine vision
CN112470165B (en) Image processing apparatus and image processing method
JP3943678B2 (en) Image color extraction method and image processing apparatus using the method
JP2000268180A (en) Image processing device and method and provided medium
JP2004280697A (en) Image processor and program
JPH06162180A (en) Area extraction system
JPH01158879A (en) Binary picture forming device
JPH05298443A (en) Color picture area extracting device
KR20030025026A (en) Method and apparatus for detecting the motion of a subject from compressed data using a wavelet algorithm
JPH08212346A (en) Template matching method
JPH02140886A (en) Picture preprocessing device