JP3075936B2 - Motion vector detection circuit and subject tracking camera device using the same - Google Patents

Motion vector detection circuit and subject tracking camera device using the same

Info

Publication number
JP3075936B2
JP3075936B2 JP06267347A JP26734794A JP3075936B2 JP 3075936 B2 JP3075936 B2 JP 3075936B2 JP 06267347 A JP06267347 A JP 06267347A JP 26734794 A JP26734794 A JP 26734794A JP 3075936 B2 JP3075936 B2 JP 3075936B2
Authority
JP
Japan
Prior art keywords
motion vector
detection
color
block
detection block
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.)
Expired - Fee Related
Application number
JP06267347A
Other languages
Japanese (ja)
Other versions
JPH08130674A (en
Inventor
秀樹 松村
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP06267347A priority Critical patent/JP3075936B2/en
Priority to US08/546,219 priority patent/US6002428A/en
Publication of JPH08130674A publication Critical patent/JPH08130674A/en
Application granted granted Critical
Publication of JP3075936B2 publication Critical patent/JP3075936B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】この発明は動きベクトル検出回路
およびそれを用いた被写体追尾カメラ装置に関し、特に
たとえば被写体を自動的に追尾するビデオカメラなどに
用いられる動きベクトル検出回路およびそれを用いた被
写体追尾カメラ装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a motion vector detecting circuit and a subject tracking camera apparatus using the same, and more particularly, to a motion vector detecting circuit used for a video camera for automatically tracking a subject and a subject using the same. The present invention relates to a tracking camera device.

【0002】[0002]

【従来の技術】画面内を移動する被写体をカメラで撮影
する場合の被写体追尾技術として、色情報を利用する技
術がある。たとえば、特開平4−354490号公報で
は、被写体のターゲットとして特定の色を指定しておく
ことによって、映像信号からその特定の色を検出し、被
写体を追尾する。
2. Description of the Related Art As a subject tracking technique when a subject moving in a screen is photographed by a camera, there is a technique using color information. For example, in Japanese Unexamined Patent Publication No. 4-354490, a specific color is designated as a target of a subject, the specific color is detected from a video signal, and the subject is tracked.

【0003】[0003]

【発明が解決しようとする課題】この従来技術では、タ
ーゲットと同色の物体が画面内に複数存在しないことが
前提条件となっており、複数存在するような場面では被
写体を特定できず、被写体を良好に追尾できないという
問題点があった。それゆえに、この発明の主たる目的
は、新規な動きベクトル検出回路を提供することであ
る。
In this prior art, it is a prerequisite that a plurality of objects of the same color as the target do not exist in the screen. There was a problem that tracking could not be performed well. Therefore, a main object of the present invention is to provide a novel motion vector detecting circuit.

【0004】この発明の他の目的は、被写体を良好に追
尾できる、被写体追尾カメラ装置を提供することであ
る。
It is another object of the present invention to provide a subject tracking camera device which can favorably track a subject.

【0005】[0005]

【課題を解決するための手段】第1の発明は、動きベク
トル検出領域内に複数の検出ブロックを設定し、検出ブ
ロックの色情報を利用して被写体の動きベクトルを検出
する動きベクトル検出回路であって、特定の検出ブロッ
クの色情報に基づいて第1色情報データを得る第1の演
算手段、各検出ブロック毎の色情報に基づいて検出ブロ
ック毎に第2色情報を得る第2の演算手段、第1色情報
データと第2色情報データとに基づいて特定の検出ブロ
ックと同色とみなせる同色検出ブロックを検出する同色
ブロック検出手段、同色検出ブロックによって構成され
る小ブロックを検出する小ブロック検出手段、小ブロッ
クの重心を検出する重心検出手段、および重心に基づい
て被写体の動きベクトルを検出する手段を備える、動き
ベクトル検出回路である。
According to a first aspect of the present invention, there is provided a motion vector detecting circuit for setting a plurality of detection blocks in a motion vector detection area and detecting a motion vector of a subject using color information of the detection blocks. A first calculating means for obtaining first color information data based on color information of a specific detection block; a second calculation for obtaining second color information for each detection block based on color information of each detection block Means, a same-color block detection means for detecting a same-color detection block that can be regarded as the same color as a specific detection block based on the first color information data and the second color information data, and a small block for detecting a small block constituted by the same color detection block A motion vector detection circuit comprising: a detection unit; a center of gravity detection unit that detects a center of gravity of a small block; and a unit that detects a motion vector of a subject based on the center of gravity. A.

【0006】第2の発明は、上述の動きベクトル検出回
路を用いた、被写体追尾カメラ装置である。
A second invention is a subject tracking camera device using the above-described motion vector detection circuit.

【0007】[0007]

【作用】第1の演算手段によって、特定の検出ブロック
の色情報に基づいて第1色情報データが計算され、第2
の演算手段によって、各検出ブロック毎の色情報に基づ
いて検出ブロック毎に第2色情報データが計算される。
色情報としては、たとえばY,R−Y,B−Y信号や
Y,Cr,Cb信号などの異なる3種類の色要素が含ま
れる。
The first operation means calculates first color information data based on the color information of a specific detection block,
The calculation means calculates the second color information data for each detection block based on the color information for each detection block.
The color information includes three different types of color elements such as Y, RY, BY signals and Y, Cr, Cb signals.

【0008】そして、同色ブロック検出手段によって、
第1色情報データと第2色情報データとに基づいて特定
の検出ブロックと同色とみなせる同色検出ブロックが検
出される。たとえば、第1色情報データと第2色情報デ
ータとの相関値を求め、その相関値が所定の閾値より小
さければ同色検出ブロックとされる。次いで、同色検出
ブロックの連結に応じて、小ブロック検出手段で小ブロ
ックが検出される。複数の小ブロックが存在する場合に
は、選択手段によって最大の小ブロックが選択される。
したがって、ターゲットと同色の物体が複数存在する場
合でも、目標とする被写体が選択される。そして、重心
検出手段によって最大の小ブロックの重心が検出され、
その小ブロックの重心に基づいて被写体の動きベクトル
が検出される。
Then, the same color block detecting means
Based on the first color information data and the second color information data, the same color detection block that can be regarded as the same color as the specific detection block is detected. For example, a correlation value between the first color information data and the second color information data is obtained, and if the correlation value is smaller than a predetermined threshold, the block is determined to be the same color detection block. Next, a small block is detected by the small block detecting means in accordance with the connection of the same color detection blocks. If there are a plurality of small blocks, the selecting means selects the largest small block.
Therefore, even when there are a plurality of objects of the same color as the target, the target subject is selected. Then, the center of gravity of the largest small block is detected by the center of gravity detection means,
A motion vector of the subject is detected based on the center of gravity of the small block.

【0009】この動きベクトルに基づいて被写体を追尾
する。なお、検出ブロックは重なるように配置されても
よい。
The subject is tracked based on the motion vector. Note that the detection blocks may be arranged to overlap.

【0010】[0010]

【発明の効果】この発明によれば、画面内にターゲット
と同色の物体が複数存在するような場合でも目標とする
被写体を選択することができるので、被写体だけを良好
に追尾することができる。また、検出ブロックを重ねて
配置する場合には特定の検出ブロックの第1色情報デー
タと比較されるその他の検出ブロックの第2色情報デー
タの数が増加するので、被写体の追尾をより高精度に行
える。
According to the present invention, a target subject can be selected even when a plurality of objects of the same color as the target exist on the screen, so that only the subject can be tracked well. Further, when the detection blocks are arranged in an overlapping manner, the number of the second color information data of the other detection blocks to be compared with the first color information data of the specific detection block increases, so that the tracking of the subject can be performed with higher accuracy. Can be done.

【0011】この発明の上述の目的,その他の目的,特
徴および利点は、図面を参照して行う以下の実施例の詳
細な説明から一層明らかとなろう。
The above and other objects, features and advantages of the present invention will become more apparent from the following detailed description of embodiments with reference to the drawings.

【0012】[0012]

【実施例】図1に、動きベクトル検出回路14を用いて
構成した被写体追尾カメラ装置10を示す。被写体追尾
カメラ装置10は、被写体を撮像して映像信号に変換す
るカメラ12を含む。カメラ12からの映像信号は動き
ベクトル検出回路14に与えられる。動きベクトル検出
回路14は、たとえば図2に示すように構成される。
FIG. 1 shows an object tracking camera device 10 constructed using a motion vector detecting circuit 14. As shown in FIG. The subject tracking camera device 10 includes a camera 12 that images a subject and converts the image into a video signal. The video signal from the camera 12 is provided to the motion vector detection circuit 14. The motion vector detection circuit 14 is configured, for example, as shown in FIG.

【0013】図2に示す動きベクトル検出回路14は、
A/D変換器16を含む。A/D変換器16では、与え
られた映像信号が画素毎のディジタルデータに変換され
る。このディジタルデータは、たとえばY,R−Y,B
−Y信号をディジタル化したデータである。また、映像
信号は、H−SYNC分離回路18および水平アドレス
カウンタ20に与えられる。水平アドレスカウンタ20
では、映像信号に応じて横方向の画素数がカウントさ
れ、H−SYNC分離回路18からの水平同期信号に基
づいて1ライン毎にリセットされる。水平アドレスカウ
ンタ20からの出力は水平デコーダ22に与えられ、水
平デコーダ22からは4種類の水平信号H0ないしH3
が出力される。
The motion vector detecting circuit 14 shown in FIG.
An A / D converter 16 is included. The A / D converter 16 converts the given video signal into digital data for each pixel. This digital data is, for example, Y, RY, B
-Data obtained by digitizing the Y signal. The video signal is supplied to the H-SYNC separation circuit 18 and the horizontal address counter 20. Horizontal address counter 20
In, the number of pixels in the horizontal direction is counted according to the video signal, and is reset for each line based on the horizontal synchronization signal from the H-SYNC separation circuit. The output from the horizontal address counter 20 is applied to a horizontal decoder 22, which outputs four types of horizontal signals H0 to H3.
Is output.

【0014】また、映像信号は、V−SYNC分離回路
24および垂直アドレスカウンタ26に与えられる。垂
直アドレスカウンタ26では、映像信号に応じて縦方向
の画素数がカウントされ、1フィールド毎にV−SYN
C分離回路24からの垂直同期信号に基づいてリセット
される。垂直アドレスカウンタ26からの出力は垂直デ
コーダ28に与えられ、垂直デコーダ28からは3種類
の垂直信号V0ないしV2が出力される。
The video signal is applied to a V-SYNC separation circuit 24 and a vertical address counter 26. In the vertical address counter 26, the number of pixels in the vertical direction is counted according to the video signal, and V-SYN
It is reset based on the vertical synchronization signal from the C separation circuit 24. The output from the vertical address counter 26 is applied to a vertical decoder 28, which outputs three types of vertical signals V0 to V2.

【0015】水平信号H0ないしH3および垂直信号V
0ないしV2は、たとえば図3(A)ないし(C)に示
すような信号である。また、図3には、カメラ12のビ
ューファインダ12aの画面30が示され、この画面3
0に表示される動きベクトル検出領域32は、この実施
例ではたとえば25個の検出ブロック34に分割され
る。
The horizontal signals H0 to H3 and the vertical signal V
0 to V2 are signals as shown in FIGS. 3A to 3C, for example. FIG. 3 shows a screen 30 of the viewfinder 12 a of the camera 12.
The motion vector detection area 32 displayed at 0 is divided into, for example, 25 detection blocks 34 in this embodiment.

【0016】また、動きベクトル検出回路14は、CP
U36を含む。CPU36には、被写体追尾モードに設
定するための追尾モードスイッチ38が接続される。追
尾モードスイッチ38がオンされると、CPU36から
は被写体の追尾動作開始直後のフィールドすなわち初期
フィールドにおいて初期フィールド信号aが出力され
る。
Further, the motion vector detecting circuit 14 uses the CP
U36. A tracking mode switch 38 for setting the subject tracking mode is connected to the CPU 36. When the tracking mode switch 38 is turned on, the CPU 36 outputs the initial field signal a in the field immediately after the start of the tracking operation of the subject, that is, in the initial field.

【0017】さらに、CPU36にはROM40および
RAM42が接続される。ROM40には、動きベクト
ル検出回路14の動作を制御するためのプログラムが格
納され、RAM42には、各検出ブロック34が同色検
出ブロックであるか否かの情報,検出ブロック34が検
出ブロックであれば小ブロック番号,および変更フラグ
などが格納される。
Further, a ROM 40 and a RAM 42 are connected to the CPU 36. The ROM 40 stores a program for controlling the operation of the motion vector detection circuit 14. The RAM 42 stores information indicating whether each detection block 34 is the same color detection block. If the detection block 34 is a detection block, A small block number, a change flag, and the like are stored.

【0018】そして、映像信号のディジタルデータは、
水平信号H0およびH1,垂直信号V0およびV1,な
らびに初期フィールド信号aに基づいて、ラッチ回路4
4にラッチされる。すなわち、追尾モードスイッチ38
がオンされると、初期フィールド期間中初期フィールド
信号aがANDゲート46へ出力される。この初期フィ
ールドにおいて、水平信号H0および垂直信号V0が出
力されると、ANDゲート48および46を介してイネ
ーブル信号がラッチ回路44に出力される。
The digital data of the video signal is
Based on the horizontal signals H0 and H1, the vertical signals V0 and V1, and the initial field signal a, the latch circuit 4
4 latched. That is, the tracking mode switch 38
Is turned on, an initial field signal a is output to the AND gate 46 during the initial field period. When the horizontal signal H0 and the vertical signal V0 are output in this initial field, an enable signal is output to the latch circuit 44 via AND gates 48 and 46.

【0019】すると、ラッチ回路44では、ANDゲー
ト46からのイネーブル信号に基づいて、図4(A)に
示す特定の検出ブロック34aの各画素のデータがラッ
チされる。特定の検出ブロック34aとしては、この実
施例では動きベクトル検出領域32の中央の検出ブロッ
ク34が選択される。また、初期フィールド以降のフィ
ールドでは、初期フィールド信号aは出力されない。し
たがって、初期フィールド以降のフィールドにおいて、
水平信号H1および垂直信号V1が出力されると、AN
Dゲート50および52を介して、ラッチ回路44にイ
ネーブル信号が出力される。
The latch circuit 44 latches the data of each pixel of the specific detection block 34a shown in FIG. 4A based on the enable signal from the AND gate 46. In this embodiment, the central detection block 34 of the motion vector detection area 32 is selected as the specific detection block 34a. In the fields subsequent to the initial field, the initial field signal a is not output. Therefore, in the fields after the initial field,
When the horizontal signal H1 and the vertical signal V1 are output, AN
An enable signal is output to latch circuit 44 via D gates 50 and 52.

【0020】すると、ラッチ回路44では、ANDゲー
ト52からのイネーブル信号に基づいて、図4(B)に
示す25個の各検出ブロック34の各画素のデータがラ
ッチされる。そして、ラッチ回路44からは、イネーブ
ル信号に応じた検出ブロック(図4(A)の検出ブロッ
ク34aおよび図4(B)の25個の全検出ブロック3
4のいずれか)のデータが検出ブロック積算回路54に
与えられる。
The latch circuit 44 latches the data of each pixel of each of the 25 detection blocks 34 shown in FIG. 4B based on the enable signal from the AND gate 52. Then, the latch circuit 44 outputs a detection block (the detection block 34a in FIG. 4A and the 25 detection blocks 3 in FIG. 4B) corresponding to the enable signal.
4) is supplied to the detection block integration circuit 54.

【0021】検出ブロック積算回路54の動作を、図5
を参照して説明する。図5に示す検出ブロック34に
は、たとえば8×8=64個の画素が含まれる。各画素
の色情報を構成する3つの色要素のそれぞれの値を、図
5に示すようにyij,(r−y)ij,(b−y)ijとす
る。すると、特定の検出ブロック34aに含まれる画素
の色情報の積算色データは数1によって求められる。
The operation of the detection block integration circuit 54 is shown in FIG.
This will be described with reference to FIG. The detection block 34 shown in FIG. 5 includes, for example, 8 × 8 = 64 pixels. As shown in FIG. 5, let the respective values of the three color elements constituting the color information of each pixel be y ij , (ry) ij , and (by) ij . Then, the integrated color data of the color information of the pixels included in the specific detection block 34a is obtained by Expression 1.

【0022】[0022]

【数1】 (Equation 1)

【0023】この積算色データは、初期フィールドにお
いて得られる。セレクタ56は、初期フィールド信号a
によって制御され、初期フィールド信号aが出力されて
いるときには、検出ブロック積算回路54からの積算色
データがセレクタ56を介して代表色メモリ58に代表
色データとして格納される。また、初期フィールド以降
のフィールドでは、ANDゲート52を介して与えられ
るイネーブル信号に基づいて、ラッチ回路44から図4
(B)に示す25個の全ての検出ブロック34の画素の
データが検出ブロック積算回路54に与えられる。検出
ブロック積算回路54では、25個の検出ブロック34
のそれぞれについて、色情報が積算され、積算色データ
が得られる。各検出ブロック34毎に画素の色情報を積
算した積算色データは数2によって求められる。
This integrated color data is obtained in the initial field. The selector 56 receives the initial field signal a
When the initial field signal a is output, the integrated color data from the detection block integration circuit 54 is stored in the representative color memory 58 via the selector 56 as representative color data. Further, in the fields subsequent to the initial field, the latch circuit 44 outputs signals from the latch circuit 44 based on an enable signal given through the AND gate 52 as shown in FIG.
The data of the pixels of all the 25 detection blocks 34 shown in FIG. In the detection block integrating circuit 54, 25 detection blocks 34
, Color information is integrated, and integrated color data is obtained. The integrated color data obtained by integrating the color information of the pixels for each of the detection blocks 34 is obtained by Expression 2.

【0024】[0024]

【数2】 (Equation 2)

【0025】初期フィールド以降のフィールドでは、セ
レクタ56には初期フィールド信号aが出力されていな
いので、検出ブロック34の個数分(この実施例では2
5個分)の積算色データは、セレクタ56を介して積算
色メモリ60に格納される。なお、検出ブロック積算回
路54は、たとえばラッチ回路44から与えられる画素
の個数をカウントするカウンタ(図示せず)を含む。そ
して、この実施例では、初期フィールドにおいてカウン
タが8×8=64をカウントすれば検出ブロック積算回
路54から代表色メモリ58へ積算色データが出力され
る。同様に、初期フィールド以降のフィールドにおい
て、カウンタが8×8×25=1600をカウントすれ
ば、検出ブロック積算回路54から積算色メモリ60へ
積算色データが出力される。
In the fields subsequent to the initial field, since the initial field signal a is not output to the selector 56, the number of detection blocks 34 (2 in this embodiment) is used.
The five integrated color data are stored in the integrated color memory 60 via the selector 56. The detection block integration circuit 54 includes, for example, a counter (not shown) that counts the number of pixels provided from the latch circuit 44. In this embodiment, if the counter counts 8 × 8 = 64 in the initial field, the integrated color data is output from the detection block integration circuit 54 to the representative color memory 58. Similarly, if the counter counts 8 × 8 × 25 = 1600 in the fields after the initial field, the integrated color data is output from the detection block integrating circuit 54 to the integrated color memory 60.

【0026】そして、ラッチ回路62に接続されるAN
Dゲート64に、図3(B)に示すような水平信号H2
および垂直信号V2が与えられると、代表色メモリ58
内の積算色データがラッチされ、相関器66に与えられ
る。また、ラッチ回路68に接続されるANDゲート7
0に、図3(C)に示すような水平信号H3および垂直
信号V2が与えられると、積算色メモリ60内の積算色
データがラッチされ、相関器66に与えられる。水平信
号H3は、検出ブロック数分出力される。したがって、
この実施例では25個出力される。
The AN connected to the latch circuit 62
A horizontal signal H2 as shown in FIG.
And the vertical signal V2, the representative color memory 58
Are integrated and supplied to the correlator 66. The AND gate 7 connected to the latch circuit 68
When the horizontal signal H3 and the vertical signal V2 as shown in FIG. 3C are applied to 0, the integrated color data in the integrated color memory 60 is latched and applied to the correlator 66. The horizontal signal H3 is output for the number of detected blocks. Therefore,
In this embodiment, 25 are output.

【0027】相関器66では、ラッチ回路62からの積
算色データとラッチ回路68からの積算色データとにつ
いて演算が行われる。すなわち、数3によって、それぞ
れの色要素の積算色データについて差分絶対値が計算さ
れ、さらにその和Dxyが計算される。
The correlator 66 performs an operation on the integrated color data from the latch circuit 62 and the integrated color data from the latch circuit 68. That is, the absolute value of the difference is calculated for the integrated color data of each color element according to Equation 3, and the sum D xy is calculated.

【0028】[0028]

【数3】Dxy=|Yxy−Y0|+|(R−Y)xy−(R
−Y)0|+|(B−Y)xy−(B−Y)0| 各検出ブロック34毎にこの演算が行われ、Dxyすなわ
ち相関値が得られる。この相関値は、CPU36に与え
られる。
Equation 3] D xy = | Y xy -Y0 | + | (R-Y) xy - (R
−Y) 0 | + | (B−Y) xy− (B−Y) 0 | This calculation is performed for each detection block 34, and Dxy, that is, a correlation value is obtained. This correlation value is provided to the CPU 36.

【0029】CPU36での動作は、後で詳細に説明す
るが、CPU36では、各検出ブロック34毎に得られ
た相関値が所定の閾値と比較される。相関値<閾値を満
足する検出ブロック34は、特定の検出ブロック34a
と同色とみなせる同色検出ブロックと判定される。図6
(A)に斜線で同色検出ブロックを示す。この同色検出
ブロックを検出し、そして同色検出ブロックの連結に応
じて構成される小ブロックを検出していく。動きベクト
ル検出領域32内に複数の小ブロックが検出されれば、
その中で最大の面積を有する小ブロックが選択される。
さらに、最大面積を有する小ブロックの重心が求められ
る。そして、最大面積を有する小ブロックの重心の位置
データが、動きベクトル発生回路72に与えられる。
The operation of the CPU 36 will be described later in detail, but the CPU 36 compares the correlation value obtained for each detection block 34 with a predetermined threshold. The detection block 34 that satisfies the correlation value <the threshold value is a specific detection block 34a
Is determined to be the same color detection block that can be regarded as the same color. FIG.
(A) shows the same color detection block with diagonal lines. The same-color detection blocks are detected, and small blocks configured according to the concatenation of the same-color detection blocks are detected. If a plurality of small blocks are detected in the motion vector detection area 32,
The small block having the largest area is selected among them.
Further, the center of gravity of the small block having the largest area is determined. Then, the position data of the center of gravity of the small block having the largest area is given to the motion vector generation circuit 72.

【0030】動きベクトル発生回路72では、与えられ
た位置データに基づいて、図6(B)に示すように動き
ベクトルを発生させ、次のフィールドでは、図6(C)
に示すように、動きベクトル分だけ動きベクトル検出領
域32が移動される。また、その動きベクトルは、図1
に示す雲台制御回路74に出力される。そして、雲台制
御回路74は、与えられた動きベクトルに基づいて駆動
装置76を駆動する。駆動装置76によって雲台78の
動きが水平方向,垂直方向等に制御され、それに伴って
カメラ12の追尾動作が制御される。すなわち、動きベ
クトルが零になる(図6(C)の破線部分32aが動き
ベクトル検出領域32に重なる)ようにカメラ12が制
御される。
The motion vector generating circuit 72 generates a motion vector as shown in FIG. 6B based on the given position data. In the next field, the motion vector is generated as shown in FIG.
As shown in (2), the motion vector detection area 32 is moved by the motion vector. The motion vector is shown in FIG.
Is output to the pan head control circuit 74 shown in FIG. Then, the camera platform control circuit 74 drives the driving device 76 based on the given motion vector. The movement of the camera platform 78 is controlled in the horizontal direction, the vertical direction, and the like by the driving device 76, and accordingly, the tracking operation of the camera 12 is controlled. That is, the camera 12 is controlled such that the motion vector becomes zero (the broken line portion 32a in FIG. 6C overlaps the motion vector detection area 32).

【0031】このように、特定の色を検出する検出ブロ
ック34aを設定しておき、その色を追従することによ
って、被写体の移動を検出する。次いで、図7ないし図
9を参照して、動きベクトル検出回路14を用いた被写
体追尾カメラ装置10の主要な動作を説明する。まず、
図7に示すステップS1において、映像信号が入力さ
れ、ステップS3に進む。ステップS3において、初期
フィールドか否かが判断される。追尾モードスイッチ3
8がオンされ被写体の追尾動作開始直後のフィールドで
あれば初期フィールドと判断され、それ以降のフィール
ドであれば初期フィールドではないと判断される。
As described above, the detection block 34a for detecting a specific color is set, and the movement of the subject is detected by following the color. Next, with reference to FIGS. 7 to 9, main operations of the subject tracking camera device 10 using the motion vector detection circuit 14 will be described. First,
In step S1 shown in FIG. 7, a video signal is input, and the process proceeds to step S3. In step S3, it is determined whether or not the field is an initial field. Tracking mode switch 3
When the field 8 is turned on and the field is immediately after the start of the tracking operation of the subject, it is determined that the field is the initial field.

【0032】ステップS3が“YES”であれば、ステ
ップS5において垂直信号V0が出力されかつステップ
S7において水平信号H0が出力されると、ステップS
9に進む。ステップS9において、検出ブロック積算回
路54で検出ブロック34aの色情報の積算色データが
計算され、ステップS11において、検出ブロック積算
回路54内のカウンタが所定のカウント値になったか否
かが判断される。この実施例では、カウント値が64に
なったか否かが判断される。“YES”であればステッ
プS13に進み、色情報の積算色データが代表色メモリ
58に格納され、ステップS15に進む。ステップS
5,S7およびS11が“NO”のときは、それぞれス
テップS15に進む。
If "YES" is determined in the step S3, the vertical signal V0 is output in the step S5 and the horizontal signal H0 is output in the step S7.
Go to 9. In step S9, the detection block integration circuit 54 calculates the integration color data of the color information of the detection block 34a. In step S11, it is determined whether the counter in the detection block integration circuit 54 has reached a predetermined count value. . In this embodiment, it is determined whether or not the count value has reached 64. If “YES”, the flow proceeds to step S13, the integrated color data of the color information is stored in the representative color memory 58, and the flow proceeds to step S15. Step S
When 5, 5, and S11 are "NO", the process proceeds to step S15.

【0033】ステップS15において垂直信号V2が出
力されかつステップS17において水平信号H2が出力
されると、ステップS19に進む。ステップS19にお
いて、代表色メモリ58に格納された積算色データがラ
ッチ回路62を介して相関器66に与えられ、ステップ
S1に戻る。ステップS15およびS17が“NO”の
ときは、それぞれステップS1に戻る。
When the vertical signal V2 is output in step S15 and the horizontal signal H2 is output in step S17, the process proceeds to step S19. In step S19, the integrated color data stored in the representative color memory 58 is provided to the correlator 66 via the latch circuit 62, and the process returns to step S1. When steps S15 and S17 are "NO", the process returns to step S1.

【0034】そして、ステップS1において映像信号が
入力され、ステップS3が“NO”であれば、ステップ
S21に進む。ステップS21において垂直信号V1が
出力されかつステップS23において水平信号H1が出
力されると、ステップS25に進む。ステップS25に
おいて、検出ブロック積算回路54で25個の各検出ブ
ロック34の積算色データが計算され、ステップS27
に進む。ステップS27において、検出ブロック積算回
路54内のカウンタが所定のカウント値になったか否か
が判断される。この実施例では、64×25=1600
になったか否かが判断される。“YES”であればステ
ップS29において、積算色メモリ60に積算色データ
が格納され、ステップS31に進む。ステップS21,
S23およびS27が“NO”のときは、それぞれステ
ップS31に進む。
Then, in step S1, a video signal is input, and if step S3 is "NO", the flow proceeds to step S21. When the vertical signal V1 is output in step S21 and the horizontal signal H1 is output in step S23, the process proceeds to step S25. In step S25, the detection block integration circuit 54 calculates the integrated color data of each of the 25 detection blocks 34, and then proceeds to step S27.
Proceed to. In step S27, it is determined whether the counter in the detection block integrating circuit 54 has reached a predetermined count value. In this embodiment, 64 × 25 = 1600
Is determined. If "YES", in step S29, the integrated color data is stored in the integrated color memory 60, and the process proceeds to step S31. Step S21,
When S23 and S27 are "NO", the process proceeds to step S31.

【0035】ステップS31において垂直信号V2が出
力されかつステップS33において水平信号H3が出力
されると、ステップS35に進む。ステップS35にお
いて、積算色メモリ60に格納された積算色データがラ
ッチ回路68を介して相関器66に与えられ、ステップ
S37に進む。ステップS31およびS33が“NO”
のときは、それぞれステップS1に戻る。
When the vertical signal V2 is output in step S31 and the horizontal signal H3 is output in step S33, the process proceeds to step S35. In step S35, the integrated color data stored in the integrated color memory 60 is provided to the correlator 66 via the latch circuit 68, and the process proceeds to step S37. Steps S31 and S33 are "NO"
In this case, the process returns to step S1.

【0036】ステップS37では、たとえば図8および
図9に示すような相関演算が行われる。すなわち、ま
ず、図8に示すステップS39において、相関器66で
数3を用いて各検出ブロック34について相関値すなわ
ちDxyが計算される。そして、ステップS41におい
て、検出ブロック個数分ループしたか否かが判断され
る。この実施例では25回ループしたか否かが判断され
る。“NO”であればステップS43において、CPU
36で検出ブロック34毎に相関値<閾値か否かが判断
される。“YES”であれば同色検出ブロックと判定さ
れ、ステップS45において、その検出ブロック34に
ラベル1が設定され、ステップS41に戻る。ステップ
S43が“NO”であれば同色検出ブロックでないと判
定され、その検出ブロック34にラベル0が設定され、
ステップS41に戻る。この処理は全ての検出ブロック
34について行われ、たとえば図10(A)に示すよう
な結果が得られる。全ての検出ブロック34について上
述の処理が終了すると、ステップS41が“YES”と
なり、以下のような小ブロック毎のラベル分けすなわち
小ブロックの分類が行われる。
In step S37, a correlation operation is performed as shown in FIGS. 8 and 9, for example. That is, first, in step S39 shown in FIG. 8, the correlator 66 calculates the correlation value, that is, Dxy for each detection block 34 using Expression 3. Then, in step S41, it is determined whether or not the loop has been performed for the number of detected blocks. In this embodiment, it is determined whether the loop has been performed 25 times. If “NO”, the CPU proceeds to step S43.
At 36, it is determined for each detection block 34 whether or not the correlation value <the threshold value. If "YES", it is determined that the block is the same color detection block, and in step S45, the label 1 is set to the detection block 34, and the process returns to step S41. If “NO” in the step S43, it is determined that the block is not the same color detection block, and the detection block 34 is set to the label 0,
It returns to step S41. This processing is performed for all the detection blocks 34, and for example, a result as shown in FIG. When the above processing is completed for all the detection blocks 34, step S41 becomes "YES", and labeling for each small block, that is, classification of small blocks as described below is performed.

【0037】まず、ステップS49において、i=co
nst(一定の値なら任意でよい)が設定され、この実
施例ではi=5に設定される。次いで、ステップS51
において、検出ブロック個数分ループしたか否かが判断
される。ステップS41と同様、この実施例では25回
ループしたか否かが判断される。“NO”であれば、ス
テップS53において、検出ブロック34のラベルは
「1」か否かすなわちその検出ブロック34は同色検出
ブロックか否かが判断される。“NO”であればステッ
プS51に戻り、“YES”であればステップS55に
進む。ステップS55において、ラベル1の検出ブロッ
ク34にラベルiが設定される。この実施例では、図1
0(B)に示すようにまずラベル5が設定される。そし
て、ステップS57において、変更フラグがオフされ、
図9に示すステップS59に進む。以下、ラベル5の小
ブロックが検出される。
First, in step S49, i = co
nst (a given value may be arbitrarily set) is set, and in this embodiment, i = 5. Next, step S51
In, it is determined whether or not the loop has been performed for the number of detected blocks. As in step S41, in this embodiment, it is determined whether the loop has been performed 25 times. If “NO”, it is determined in step S53 whether or not the label of the detection block 34 is “1”, that is, whether or not the detection block 34 is the same color detection block. If “NO”, the process returns to the step S51, and if “YES”, the process proceeds to a step S55. In step S55, the label i is set in the detection block 34 of the label 1. In this embodiment, FIG.
First, a label 5 is set as shown in FIG. Then, in step S57, the change flag is turned off,
The process proceeds to step S59 shown in FIG. Hereinafter, the small block of the label 5 is detected.

【0038】ステップS59において、検出ブロック個
数分ループしたか否かが判断される。ステップS41と
同様、この実施例では25回ループしたか否かが判断さ
れる。“NO”であればステップS61において、検出
ブロック34のラベルがiか否かが判断される。この実
施例では、まずラベル5か否かが判断される。“YE
S”であればステップS63において、ラベルi周辺
(上下左右斜め)のラベルが「1」か否かが判断され
る。“YES”であればステップS65において、周辺
の検出ブロック34にラベルiが設定される。この実施
例では、図10(C)に示すように、周辺の検出ブロッ
ク34にラベル5が設定される。そして、ステップS6
7において変更フラグがオンされ、ステップS59に戻
る。なお、ステップS61およびS63が“NO”のと
きは、それぞれステップS59に戻る。ステップS59
が“YES”になるまでステップS61ないしS67の
処理が繰り返され、周辺の検出ブロック34にラベルi
が設定されていく。そして、ステップS59が“YE
S”になれば、ステップS69に進む。
In step S59, it is determined whether or not looping has been performed by the number of detected blocks. As in step S41, in this embodiment, it is determined whether the loop has been performed 25 times. If “NO”, it is determined in step S61 whether or not the label of the detection block 34 is i. In this embodiment, it is first determined whether or not the label is 5. “YE
If S ", it is determined in step S63 whether or not the label around the label i (up, down, left, right, diagonal) is" 1 ". If "YES", the label i is set in the peripheral detection block 34 in step S65. In this embodiment, as shown in FIG. 10C, the label 5 is set in the peripheral detection block 34. Then, step S6
At 7, the change flag is turned on, and the process returns to step S59. When steps S61 and S63 are "NO", the process returns to step S59. Step S59
Are repeated until the answer is "YES", the label i is added to the peripheral detection block 34.
Is set. Then, step S59 returns "YE
If S ”is reached, the process proceeds to step S69.

【0039】ステップS69において変更フラグがオン
されているか否かが判断され、“YES”であればステ
ップS71において変更フラグがオフされ、ステップS
59に戻る。すると再び各検出ブロック34についてラ
ベルが「i」か否か、この実施例ではラベルが「5」か
否かが判断されていく。2巡目のラベル検索において、
ラベル5の検出ブロック34の周辺にラベル1の検出ブ
ロック34が1つもなければ、変更フラグがオフされた
ままステップS69に進む。一方、2巡目のラベル検索
において、ラベル5の検出ブロックの周辺にラベル1の
検出ブロック34が1つでもあれば、変更フラグがオン
されたままステップS69に進むので、3巡目のラベル
検索に入る。そして、変更フラグがオフされたままステ
ップS69に進むまで、上述のステップS59ないしS
71の処理が繰り返される。このようにして、図10
(D)および(E)に示すようにラベル5の小ブロック
が形成される。
In step S69, it is determined whether or not the change flag is turned on. If "YES", the change flag is turned off in step S71, and step S71 is executed.
Return to 59. Then, it is determined again whether or not the label is "i" for each detection block 34, and in this embodiment, whether or not the label is "5". In the second label search,
If there is no detection block 34 of label 1 around the detection block 34 of label 5, the process proceeds to step S69 with the change flag turned off. On the other hand, in the second cycle of the label search, if there is at least one detection block 34 of the label 1 around the detection block of the label 5, the process proceeds to step S69 with the change flag turned on. to go into. Then, the above-described steps S59 to S59 are performed until the process proceeds to step S69 with the change flag turned off.
Step 71 is repeated. Thus, FIG.
As shown in (D) and (E), a small block of the label 5 is formed.

【0040】そして、変更フラグがオフされたままステ
ップS69に進むと、ステップS69は“NO”にな
り、ステップS73に進む。ステップS73において、
iを1インクリメントし(i=i+1)、ステップS5
1に戻る。そして上述と同様の処理が繰り返される。す
なわち、ラベル6について小ブロックが形成され、さら
にその後ラベル7について小ブロックが形成される(図
10(F)ないし(H))。そして、ラベル8について
も小ブロックが検索されるが、ラベル1の検出ブロック
34は既になくなっているので、ステップS51とS5
3とをループするだけで、ラベル8の小ブロックを検出
することなく、ステップS75に進む。ステップS75
において、複数の小ブロックのうち最大の面積を有する
小ブロックが選択される。このとき、同じラベルの検出
ブロック34の個数を数えることによって最大の面積の
小ブロックがわかる。次いで、ステップS77におい
て、最大の小ブロックの重心が求められる。このとき、
最大面積の小ブロックに含まれる各検出ブロック34の
X座標の合計およびY座標の合計をそれぞれ検出ブロッ
ク数で割ることによって重心が求められる。
When the process proceeds to step S69 with the change flag turned off, step S69 becomes "NO" and the process proceeds to step S73. In step S73,
i is incremented by 1 (i = i + 1), and step S5
Return to 1. Then, the same processing as described above is repeated. That is, a small block is formed for the label 6, and then a small block is formed for the label 7 (FIGS. 10F to 10H). Then, a small block is searched for the label 8, but since the detection block 34 for the label 1 has already been deleted, steps S51 and S5 are performed.
The process proceeds to step S75 only by looping through step 3 without detecting the small block of label 8. Step S75
In, the small block having the largest area among the plurality of small blocks is selected. At this time, by counting the number of detection blocks 34 having the same label, a small block having the largest area can be found. Next, in step S77, the center of gravity of the largest small block is obtained. At this time,
The center of gravity is obtained by dividing the sum of the X coordinate and the sum of the Y coordinate of each detection block 34 included in the small block having the maximum area by the number of detection blocks.

【0041】そしてステップS79において、最大面積
の小ブロックの重心の位置データが動きベクトル発生回
路72に出力される。図7に戻って、ステップS81に
おいて、動きベクトル発生回路72によって検出ブロッ
ク34aの中心と最大面積の小ブロックの重心との距離
を移動量とする動きベクトルが発生され、ステップS8
3において動きベクトルが雲台制御回路74に出力され
る。
In step S 79, the position data of the center of gravity of the small block having the largest area is output to the motion vector generation circuit 72. Returning to FIG. 7, in step S81, a motion vector is generated by the motion vector generation circuit 72 using the distance between the center of the detection block 34a and the center of gravity of the small block having the largest area as the movement amount.
At 3, the motion vector is output to the camera platform control circuit 74.

【0042】すなわち、被写体の面積が画面30に対し
て小さく、同色検出ブロックが動きベクトル検出領域3
2に対して1つしかない場合には、同色検出ブロックの
重心に検出ブロック34aすなわち動きベクトル検出領
域32の中心が移動したと判断される。また、被写体の
面積が画面30に対して大きく、同色検出ブロックが動
きベクトル検出領域32に対して大きな面積を占める場
合には、その小ブロックの重心に検出ブロック34aの
中心が移動したと判断される。さらに、同色検出ブロッ
クが動きベクトル検出領域32に対して複数の小ブロッ
クに分かれている場合には、最大面積の小ブロックの重
心に検出ブロック14aの中心が移動したと判断され
る。このようにして検出ブロック34aの移動量が検出
され、動きベクトルが出力される。
That is, the area of the subject is smaller than the screen 30 and the same color detection block is
If there is only one for two, it is determined that the detection block 34a, that is, the center of the motion vector detection area 32 has moved to the center of gravity of the same color detection block. When the area of the subject is large with respect to the screen 30 and the same color detection block occupies a large area with respect to the motion vector detection area 32, it is determined that the center of the detection block 34a has moved to the center of gravity of the small block. You. Further, when the same color detection block is divided into a plurality of small blocks with respect to the motion vector detection area 32, it is determined that the center of the detection block 14a has moved to the center of gravity of the small block having the largest area. In this way, the movement amount of the detection block 34a is detected, and a motion vector is output.

【0043】その動きベクトルに基づいて、上述したよ
うにカメラ12の被写体追尾動作が制御され、終了す
る。このように、被写体の移動を動きベクトル検出領域
32内の検出ブロック34aの移動として検出し、その
検出ブロック34aを追尾するようにカメラ12の方向
を制御する。
Based on the motion vector, the object tracking operation of the camera 12 is controlled as described above, and the operation ends. In this way, the movement of the subject is detected as the movement of the detection block 34a in the motion vector detection area 32, and the direction of the camera 12 is controlled so as to track the detection block 34a.

【0044】また、被写体追尾カメラ装置10に、図1
1に示すような動きベクトル検出回路14′を用いても
よい。この動きベクトル検出回路14′は、検出ブロッ
クを重ねる方式を採用している。ここでは、図12に示
すように、図1実施例と同様の検出ブロック34に重ね
て、破線で示す検出ブロック80が配置されている。検
出ブロック34は25個あり、検出ブロック80は16
個ある。各検出ブロック34および80の面積はそれぞ
れ等しく、検出ブロック34と80との重なりの程度
は、ここでは、検出ブロック34(検出ブロック80)
の面積の1/4程度とされる。図12に示すように検出
ブロックを重ねると、中心の検出ブロック34aと上下
左右の各検出ブロック80との距離が均一になり、かつ
検出ブロック34aと左斜め上,右斜め上,左斜め下,
右斜め下の各検出ブロック80との距離が均一になる。
すなわち、検出ブロック34aを中心として、上下左右
斜め対称に検出ブロック80を配置できるので、動きベ
クトルをいずれの方向においても同じ精度で検出でき
る。
Further, the subject tracking camera device 10 is
A motion vector detection circuit 14 'as shown in FIG. The motion vector detection circuit 14 'employs a method of overlapping detection blocks. Here, as shown in FIG. 12, a detection block 80 indicated by a broken line is arranged so as to overlap the detection block 34 similar to the embodiment of FIG. There are 25 detection blocks 34 and 16 detection blocks 80
There are pieces. Each of the detection blocks 34 and 80 has the same area, and the degree of overlap between the detection blocks 34 and 80 is, here, the detection block 34 (detection block 80).
Is about 1/4 of the area. When the detection blocks are overlapped as shown in FIG. 12, the distance between the center detection block 34a and the upper, lower, left and right detection blocks 80 becomes uniform, and the detection block 34a and the upper left, lower right, upper left, lower left,
The distance from each detection block 80 at the lower right becomes uniform.
That is, since the detection blocks 80 can be arranged obliquely vertically, horizontally, and symmetrically around the detection block 34a, the motion vector can be detected with the same accuracy in any direction.

【0045】この動きベクトル検出回路14′は、図2
に示す動きベクトル検出回路14にラッチ回路82,検
出ブロック積算回路84,ANDゲート86および88
を付加して構成される。他の構成については動きベクト
ル検出回路14と同様であるので、その重複する説明は
省略する。この動きベクトル検出回路14′では、ラッ
チ回路88に初期フィールド信号aが出力されないフィ
ールドすなわち初期フィールド以降のフィールドにおい
て、水平信号H2および垂直信号V2が出力されると、
ANDゲート86および88を介してイネーブル信号が
ラッチ回路82に与えられる。このようにして、ラッチ
回路82がイネーブル状態にされると、A/D変換器1
6からの各検出ブロック80のディジタルデータがラッ
チされ、検出ブロック積算回路84で、上述した検出ブ
ロック積算回路54と同様の演算が行われる。検出ブロ
ック積算回路84での演算結果である積算色データは積
算色メモリ60に格納される。したがって、積算色メモ
リ60には、検出ブロック34および80の2系統の積
算色データが格納される。
This motion vector detecting circuit 14 'is provided with the configuration shown in FIG.
A latch circuit 82, a detection block integrating circuit 84, AND gates 86 and 88 are added to the motion vector detection circuit 14 shown in FIG.
Is added. The other configuration is the same as that of the motion vector detection circuit 14, and the description thereof will not be repeated. In the motion vector detecting circuit 14 ', when the horizontal signal H2 and the vertical signal V2 are output in a field where the initial field signal a is not output to the latch circuit 88, that is, in a field after the initial field,
An enable signal is applied to latch circuit 82 via AND gates 86 and 88. Thus, when the latch circuit 82 is enabled, the A / D converter 1
The digital data of each detection block 80 from No. 6 is latched, and the same calculation as that of the above-described detection block integration circuit 54 is performed in the detection block integration circuit 84. The integrated color data, which is the calculation result of the detection block integrating circuit 84, is stored in the integrated color memory 60. Therefore, the integrated color memory 60 stores the integrated color data of two systems of the detection blocks 34 and 80.

【0046】なお、図13(A)ないし(C)に示すよ
うに、水平デコーダ22からは水平信号H0ないしH4
が出力され、垂直デコーダ28からは垂直信号V0ない
しV3が出力される。また、ラッチ回路62に接続され
るANDゲート64には、図13(B)に示すように水
平信号H3および垂直信号V3がそれぞれ与えられ、ラ
ッチ回路68に接続されるANDゲート70には、図1
3(C)に示すように水平信号H4および垂直信号V3
がそれぞれ与えられる。水平信号H4は、検出ブロック
の数だけ(この実施例では25+16=41個)出力さ
れる。また、検出ブロック積算回路84は、検出ブロッ
ク積算回路54と同様カウンタを含み、このカウンタの
カウント値が8×8×16=1024になると、検出ブ
ロック積算回路84から積算色データが積算色メモリ6
0に与えられる。
As shown in FIGS. 13A to 13C, the horizontal decoder 22 outputs horizontal signals H0 to H4.
And vertical decoders 28 output vertical signals V0 to V3. Further, a horizontal signal H3 and a vertical signal V3 are supplied to the AND gate 64 connected to the latch circuit 62, respectively, as shown in FIG. 1
3C, the horizontal signal H4 and the vertical signal V3
Are given. The horizontal signal H4 is output by the number of detection blocks (25 + 16 = 41 in this embodiment). The detection block integration circuit 84 includes a counter similar to the detection block integration circuit 54. When the count value of this counter becomes 8 × 8 × 16 = 1024, the detection block integration circuit 84 stores the integrated color data from the integrated color memory 6
0 is given.

【0047】この動きベクトル検出回路14′を用いた
被写体追尾カメラ装置10の主要な動作を、図14を参
照して説明する。図14に示すステップS101では、
まず、映像信号が入力され、ステップS103において
初期フィールドか否かが判断される。“YES”であれ
ば、ステップS105で垂直信号V0が出力されかつス
テップS107において水平信号H0が出力されれば、
ステップS109に進む。ステップS109において、
検出ブロック積算回路54で積算色データが計算され、
ステップS111に進む。ステップS111において、
検出ブロック積算回路54内のカウンタが所定のカウン
ト値になったか否かが判断される。この実施例では64
になったか否かが判断される。“YES”であればステ
ップS113において、代表色メモリ58に検出ブロッ
ク積算回路54からの積算色データが格納され、ステッ
プS115に進む。ステップS105,S107および
S111が“NO”のときは、それぞれステップS11
5に進む。
The main operation of the subject tracking camera device 10 using the motion vector detecting circuit 14 'will be described with reference to FIG. In step S101 shown in FIG.
First, a video signal is input, and it is determined in step S103 whether or not the current field is an initial field. If “YES”, if the vertical signal V0 is output in step S105 and the horizontal signal H0 is output in step S107,
Proceed to step S109. In step S109,
The detection block integrating circuit 54 calculates integrated color data,
Proceed to step S111. In step S111,
It is determined whether the counter in the detection block integrating circuit 54 has reached a predetermined count value. In this embodiment, 64
Is determined. If “YES”, in step S113, the integrated color data from the detection block integrating circuit 54 is stored in the representative color memory 58, and the process proceeds to step S115. If steps S105, S107 and S111 are "NO", then step S11
Go to 5.

【0048】ステップS115において垂直信号V3が
出力されかつステップS117において水平信号H3が
出力されると、ステップS119において、代表色メモ
リ58に格納された積算色データがラッチ回路62を介
して相関器66に出力され、ステップS101に戻る。
ステップS115およびS117が“NO”のときは、
それぞれステップS101に戻る。
When the vertical signal V3 is output in step S115 and the horizontal signal H3 is output in step S117, the accumulated color data stored in the representative color memory 58 is passed through the latch circuit 62 to the correlator 66 in step S119. And the process returns to step S101.
When steps S115 and S117 are "NO",
The process returns to step S101.

【0049】一方、ステップS103が“NO”すなわ
ち初期フィールド以降のフィールドであれば、ステップ
S121に進む。ステップS121において垂直信号V
1が出力されかつステップS123において水平信号H
1が出力されると、ステップS125に進む。ステップ
S125において、25個の各検出ブロック34につい
て積算色データが計算されてステップS127に進む。
ステップS127において、積算ブロック検出回路54
内のカウンタが所定のカウント値になったか否かが判断
される。この実施例では、8×8×25=1600にな
ったか否かが判断される。“YES”であればステップ
S129において積算色メモリ60に各検出ブロック3
4の積算色データが格納され、ステップS131に進
む。ステップS127が“NO”のときはステップS1
31に進む。
On the other hand, if step S103 is "NO", that is, if it is a field after the initial field, the process proceeds to step S121. In step S121, the vertical signal V
1 is output and the horizontal signal H is output in step S123.
When 1 is output, the process proceeds to step S125. In step S125, integrated color data is calculated for each of the 25 detection blocks 34, and the flow advances to step S127.
In step S127, the integration block detection circuit 54
It is determined whether or not the counter in the inside has reached a predetermined count value. In this embodiment, it is determined whether or not 8 × 8 × 25 = 1600. If "YES", each detection block 3 is stored in the integrated color memory 60 in step S129.
4 is stored, and the flow advances to step S131. If step S127 is "NO", step S1
Go to 31.

【0050】ステップS131において垂直信号V2が
出力されかつステップS133において水平信号H2が
出力されると、ステップS135に進む。ステップS1
35において、検出ブロック積算回路84で16個の各
検出ブロック80の積算色データが計算され、ステップ
S137に進む。ステップS137において、検出ブロ
ック積算回路84内のカウンタが所定のカウント値にな
ったか否かが判断される。この実施例では、8×8×1
6=1024になったか否かが判断される。“YES”
であればステップS139において、積算色メモリ60
に検出ブロック積算回路84からの各検出ブロック80
の積算色データが格納される。そしてステップS141
に進む。ステップS121,S123,S131,S1
33およびS137が“NO”のときは、それぞれステ
ップS141に進む。
When the vertical signal V2 is output in step S131 and the horizontal signal H2 is output in step S133, the process proceeds to step S135. Step S1
At 35, the integrated color data of each of the 16 detection blocks 80 is calculated by the detection block integration circuit 84, and the process proceeds to step S137. In step S137, it is determined whether the counter in the detection block integrating circuit 84 has reached a predetermined count value. In this embodiment, 8 × 8 × 1
It is determined whether 6 = 1024. “YES”
If so, in step S139, the integrated color memory 60
Each detection block 80 from the detection block integration circuit 84
Is stored. And step S141
Proceed to. Steps S121, S123, S131, S1
When “33” is selected for S33 and S137, the process proceeds to step S141.

【0051】ステップS141において垂直信号V3が
出力されかつステップS143において水平信号H4が
出力されると、ステップS145に進む。なお、ステッ
プS141およびS143が“NO”のときは、それぞ
れステップS101に戻る。ステップS145におい
て、積算色メモリ60に格納された積算色データがラッ
チ回路68を介して相関器66へ出力される。ステップ
S147において、相関演算が行われるが、この演算は
先の実施例と同様に、図8および図9に示す処理が行わ
れる。そして、ステップS149において、動きベクト
ル発生回路72で動きベクトルが発生され、ステップS
151において動きベクトルが出力される。その動きベ
クトルに基づいて、カメラ12の被写体追尾動作が制御
され、終了する。
When the vertical signal V3 is output in step S141 and the horizontal signal H4 is output in step S143, the process proceeds to step S145. When steps S141 and S143 are “NO”, the process returns to step S101. In step S145, the integrated color data stored in the integrated color memory 60 is output to the correlator 66 via the latch circuit 68. In step S147, a correlation operation is performed. In this operation, the processing shown in FIGS. 8 and 9 is performed as in the previous embodiment. Then, in step S149, a motion vector is generated by the motion vector generation circuit 72.
At 151, a motion vector is output. The subject tracking operation of the camera 12 is controlled based on the motion vector, and ends.

【0052】このように、検出ブロック34に検出ブロ
ック80を重なることによって、検出ブロックの間隔が
狭くなって移動量の検出精度が上がるので、より正確な
動きベクトルを算出することができる。なお、上述の実
施例では、色情報として、Y,R−Y,B−Y信号の3
つの色要素を用いた。これはビデオ信号などを処理する
場合に有効である。それ以外に、原色系CCDなどの信
号を処理する場合には、R,G,B信号の3つの色要素
を用い、補色系モザイクフィルタを配したCCDなどを
処理する場合には、Y,Cr(=R−2G),Cb(=
B−2G)信号の3つの色要素を用いるのが好ましい。
As described above, by overlapping the detection block 80 with the detection block 34, the interval between the detection blocks is narrowed, and the detection accuracy of the movement amount is increased, so that a more accurate motion vector can be calculated. In the above-described embodiment, the three color information of the Y, RY, and BY signals are used as the color information.
One color element was used. This is effective when processing a video signal or the like. In addition, when processing signals of a primary color CCD or the like, three color elements of R, G, and B signals are used, and when processing a CCD or the like having a complementary color mosaic filter, Y, Cr is used. (= R-2G), Cb (=
B-2G) It is preferable to use three color components of the signal.

【0053】また、R,G,B信号をそれぞれY信号で
割った、R/Y,G/Y,B/Y信号の3つの色要素を
用いてもよい。このようにY信号で割って正規化するこ
とによって、照明の差などによる明度の影響を取り除
き、色相と彩度が同じであれば同色とみなすようにする
ことができる。さらに、閾値は、要求される相関の程度
や色情報を構成する色要素の種類に応じて、任意に設定
される。
Further, three color elements of R / Y, G / Y, and B / Y signals obtained by dividing the R, G, and B signals by the Y signal may be used. In this way, by dividing by the Y signal and normalizing, it is possible to remove the influence of lightness due to a difference in illumination or the like, and assume that if the hue and the saturation are the same, they are regarded as the same color. Further, the threshold is arbitrarily set according to the required degree of correlation and the type of the color element constituting the color information.

【0054】また、上述の実施例では、動きベクトル検
出回路を被写体追尾カメラ装置10に適用した場合につ
いて述べたが、この発明の動きベクトル検出回路は、手
振れ補正装置を有するビデオカメラにも適用できること
はいうまでもない。
In the above embodiment, the case where the motion vector detecting circuit is applied to the object tracking camera device 10 has been described. However, the motion vector detecting circuit of the present invention can be applied to a video camera having a camera shake correcting device. Needless to say.

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

【図1】この発明の一実施例の被写体追尾カメラ装置の
一例を示すブロック図である。
FIG. 1 is a block diagram illustrating an example of a subject tracking camera device according to an embodiment of the present invention.

【図2】動きベクトル検出回路の一例を示すブロック図
である。
FIG. 2 is a block diagram illustrating an example of a motion vector detection circuit.

【図3】(A)はラッチ回路44のイネーブル信号を生
成するための水平信号および垂直信号を示す図解図であ
り、(B)はラッチ回路62のイネーブル信号を生成す
るための水平信号および垂直信号を示す図解図であり、
(C)はラッチ回路68のイネーブル信号を生成するた
めの水平信号および垂直信号を示す図解図である。
3A is an illustrative view showing a horizontal signal and a vertical signal for generating an enable signal of a latch circuit 44, and FIG. 3B is a schematic diagram showing a horizontal signal and a vertical signal for generating an enable signal of a latch circuit 62; FIG. 4 is an illustrative view showing a signal,
FIG. 3C is an illustrative view showing a horizontal signal and a vertical signal for generating an enable signal of the latch circuit 68;

【図4】(A)は特定の検出ブロックを示す図解図であ
り、(B)は全ての検出ブロックを示す図解図である。
FIG. 4A is an illustrative view showing a specific detection block, and FIG. 4B is an illustrative view showing all detection blocks.

【図5】検出ブロックおよび画素を示す図解図である。FIG. 5 is an illustrative view showing a detection block and pixels;

【図6】(A)ないし(C)は動きベクトルの発生およ
び被写体追尾動作を説明するための図解図である。
FIGS. 6A to 6C are illustrative views for explaining generation of a motion vector and an object tracking operation.

【図7】この実施例の主要な動作を示すフロー図であ
る。
FIG. 7 is a flowchart showing main operations of this embodiment.

【図8】相関演算の動作を示すフロー図である。FIG. 8 is a flowchart showing an operation of a correlation operation.

【図9】図8の続きを示すフロー図である。FIG. 9 is a flowchart showing a continuation of FIG. 8;

【図10】(A)ないし(H)は相関演算を説明するた
めの図解図である。
FIGS. 10A to 10H are illustrative views for explaining a correlation operation.

【図11】動きベクトル検出回路の他の例を示すブロッ
ク図である。
FIG. 11 is a block diagram showing another example of the motion vector detection circuit.

【図12】図11の動きベクトル検出回路に用いられる
検出ブロックを示す図解図である。
FIG. 12 is an illustrative view showing a detection block used in the motion vector detection circuit in FIG. 11;

【図13】(A)はラッチ回路44および82のイネー
ブル信号を生成するための水平信号および垂直信号を示
す図解図であり、(B)はラッチ回路62のイネーブル
信号を生成するための水平信号および垂直信号を示す図
解図であり、(C)はラッチ回路68のイネーブル信号
を生成するための水平信号および垂直信号を示す図解図
である。
13A is an illustrative view showing a horizontal signal and a vertical signal for generating an enable signal of the latch circuits 44 and 82, and FIG. 13B is a schematic diagram showing a horizontal signal for generating an enable signal of the latch circuit 62; FIG. 9C is an illustrative view showing a horizontal signal and a vertical signal for generating an enable signal of the latch circuit 68; FIG.

【図14】図11実施例の主要な動作を示すフロー図で
ある。
FIG. 14 is a flowchart showing main operations of the embodiment in FIG. 11;

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

10 …被写体追尾カメラ装置 12 …カメラ 14,14′ …動きベクトル検出回路 22 …水平デコーダ 28 …垂直デコーダ 32 …動きベクトル検出領域 34,80 …検出ブロック 34a …特定の検出ブロック 36 …CPU 44,62,68,82 …ラッチ回路 54,84 …検出ブロック積算回路 56 …セレクタ 58 …代表色メモリ 60 …積算色メモリ 66 …相関器 72 …動きベクトル発生回路 74 …雲台制御回路 76 …駆動装置 78 …雲台 DESCRIPTION OF SYMBOLS 10 ... Camera tracking camera device 12 ... Camera 14, 14 '... Motion vector detection circuit 22 ... Horizontal decoder 28 ... Vertical decoder 32 ... Motion vector detection area 34,80 ... Detection block 34a ... Specific detection block 36 ... CPU 44,62 , 68, 82 ... Latch circuits 54, 84 ... Detection block integration circuit 56 ... Selector 58 ... Representative color memory 60 ... Integration color memory 66 ... Correlator 72 ... Motion vector generation circuit 74 ... Pan head control circuit 76 ... Driving device 78 ... Head

Claims (7)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】動きベクトル検出領域内に複数の検出ブロ
ックを設定し、前記検出ブロックの色情報を利用して被
写体の動きベクトルを検出する動きベクトル検出回路で
あって、 特定の検出ブロックの色情報に基づいて第1色情報デー
タを得る第1の演算手段、 前記各検出ブロック毎の色情報に基づいて前記検出ブロ
ック毎に第2色情報を得る第2の演算手段、 前記第1色情報データと前記第2色情報データとに基づ
いて前記特定の検出ブロックと同色とみなせる同色検出
ブロックを検出する同色ブロック検出手段、 前記同色検出ブロックによって構成される小ブロックを
検出する小ブロック検出手段、 前記小ブロックの重心を検出する重心検出手段、および
前記重心に基づいて前記被写体の動きベクトルを検出す
る手段を備える、動きベクトル検出回路。
1. A motion vector detection circuit for setting a plurality of detection blocks in a motion vector detection area and detecting a motion vector of a subject using color information of the detection blocks, wherein a color of a specific detection block is First calculating means for obtaining first color information data based on information; second calculating means for obtaining second color information for each detection block based on color information for each detection block; first color information A same-color block detection unit that detects a same-color detection block that can be regarded as the same color as the specific detection block based on data and the second color information data; a small-block detection unit that detects a small block configured by the same-color detection block; A motion center comprising: a center of gravity detecting means for detecting a center of gravity of the small block; and means for detecting a motion vector of the subject based on the center of gravity. Torque detection circuit.
【請求項2】前記動きベクトル検出領域内に前記小ブロ
ックが複数存在するとき最大の小ブロックを選択する選
択手段を含み、 前記重心検出手段で前記最大の小ブロックの重心を検出
する、請求項1記載の動きベクトル検出回路。
2. The method according to claim 1, further comprising: selecting means for selecting a largest small block when there are a plurality of said small blocks in said motion vector detection area, wherein said center of gravity detecting means detects a center of gravity of said largest small block. 2. The motion vector detection circuit according to 1.
【請求項3】前記色情報は異なる3種類の色要素を含
む、請求項1または2記載の動きベクトル検出回路。
3. The motion vector detection circuit according to claim 1, wherein said color information includes three different types of color elements.
【請求項4】前記3種類の色要素は、Y,R−Y,B−
Y信号である、請求項3記載の動きベクトル検出回路。
4. The three color elements are Y, RY, B-
4. The motion vector detection circuit according to claim 3, wherein the motion vector detection circuit is a Y signal.
【請求項5】前記3種類の色要素は、Y,Cr,Cb信
号である、請求項3記載の動きベクトル検出回路。
5. The motion vector detecting circuit according to claim 3, wherein said three kinds of color elements are Y, Cr, Cb signals.
【請求項6】前記動きベクトル検出領域内の前記複数の
検出ブロックを重ねて配置する、請求項1ないし5のい
ずれかに記載の動きベクトル検出回路。
6. The motion vector detection circuit according to claim 1, wherein the plurality of detection blocks in the motion vector detection area are arranged in an overlapping manner.
【請求項7】請求項1ないし6のいずれかに記載の動き
ベクトル検出回路を用いた、被写体追尾カメラ装置。
7. An object tracking camera device using the motion vector detection circuit according to claim 1.
JP06267347A 1994-10-21 1994-10-31 Motion vector detection circuit and subject tracking camera device using the same Expired - Fee Related JP3075936B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP06267347A JP3075936B2 (en) 1994-10-31 1994-10-31 Motion vector detection circuit and subject tracking camera device using the same
US08/546,219 US6002428A (en) 1994-10-21 1995-10-20 Motion vector detection circuit and object tracking camera device utilizing the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP06267347A JP3075936B2 (en) 1994-10-31 1994-10-31 Motion vector detection circuit and subject tracking camera device using the same

Publications (2)

Publication Number Publication Date
JPH08130674A JPH08130674A (en) 1996-05-21
JP3075936B2 true JP3075936B2 (en) 2000-08-14

Family

ID=17443555

Family Applications (1)

Application Number Title Priority Date Filing Date
JP06267347A Expired - Fee Related JP3075936B2 (en) 1994-10-21 1994-10-31 Motion vector detection circuit and subject tracking camera device using the same

Country Status (1)

Country Link
JP (1) JP3075936B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102492027B1 (en) * 2021-04-20 2023-01-26 한일엔지니어링공업(주) Device for auto managing residue of belt conveyor for collecting residue remained on belt

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000078564A (en) * 1998-08-28 2000-03-14 Aiphone Co Ltd System for tracing person on television camera monitor
JP5383366B2 (en) * 2009-07-28 2014-01-08 キヤノン株式会社 Image processing apparatus, image processing method, and program thereof
JP5930792B2 (en) * 2012-03-26 2016-06-08 キヤノン株式会社 Imaging apparatus and control method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102492027B1 (en) * 2021-04-20 2023-01-26 한일엔지니어링공업(주) Device for auto managing residue of belt conveyor for collecting residue remained on belt

Also Published As

Publication number Publication date
JPH08130674A (en) 1996-05-21

Similar Documents

Publication Publication Date Title
US5475428A (en) Method for processing color image records subject to misregistration
JP3268953B2 (en) Tracking area setting device, motion vector detection circuit, and subject tracking device using the same
US5184216A (en) Image sensing apparatus having camera-shake detection function
US5471535A (en) Method for detecting a contour of a given subject to be separated from images and apparatus for separating a given subject from images
US7082209B2 (en) Object detecting method and object detecting apparatus and intruding object monitoring apparatus employing the object detecting method
JP3035920B2 (en) Moving object extraction device and moving object extraction method
CN101827215B (en) Image capturing apparatus capable of extracting subject region from captured image
JPH09102910A (en) Device and method for processing moving image
JP7092615B2 (en) Shadow detector, shadow detection method, shadow detection program, learning device, learning method, and learning program
CN107079098B (en) Image playing method and device based on PTZ camera
JP3075936B2 (en) Motion vector detection circuit and subject tracking camera device using the same
JP2001243478A (en) Target body tracing device
JP3034101B2 (en) Method and apparatus for identification using motion vector
JP2003123074A (en) Moving object detector, moving object detection method and moving object detection program
JP3296675B2 (en) Subject tracking apparatus and subject tracking method
JP3192872B2 (en) Motion vector detection circuit and subject tracking camera device using the same
JP2001043458A (en) System for generating background picture
JP3075937B2 (en) Motion vector detection circuit and subject tracking camera device using the same
JP3075934B2 (en) Motion vector detection circuit and subject tracking camera device using the same
JPH09265538A (en) Automatic tracking device
JPH10336506A (en) Image-processing system, system and method for tracking and storage medium
JPH05288982A (en) Gazimg point selection device
JPH1075453A (en) Device and method for detecting motion vector
JPH05292377A (en) Motion vector detector for moving body
JP7221360B2 (en) Electro-optic equipment frame rate improvement method using color wheel and hue information extrapolation algorithm for each channel

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000516

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080609

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090609

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees