JP2853219B2 - Vehicle detection device - Google Patents

Vehicle detection device

Info

Publication number
JP2853219B2
JP2853219B2 JP30710189A JP30710189A JP2853219B2 JP 2853219 B2 JP2853219 B2 JP 2853219B2 JP 30710189 A JP30710189 A JP 30710189A JP 30710189 A JP30710189 A JP 30710189A JP 2853219 B2 JP2853219 B2 JP 2853219B2
Authority
JP
Japan
Prior art keywords
image
detection
edge
main edge
mask
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
JP30710189A
Other languages
Japanese (ja)
Other versions
JPH03166662A (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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works 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 Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP30710189A priority Critical patent/JP2853219B2/en
Publication of JPH03166662A publication Critical patent/JPH03166662A/en
Application granted granted Critical
Publication of JP2853219B2 publication Critical patent/JP2853219B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、画像処理の技術を応用することにより、監
視領域中に車両が停止しているかどうかを自動的に検出
する車両検出装置に関するものである。
Description: TECHNICAL FIELD The present invention relates to a vehicle detection device that automatically detects whether a vehicle is stopped in a monitoring area by applying image processing technology. It is.

〔従来の技術〕 従来、この種の画像処理を応用した車両検出装置を用
いて車両の停止を判定するには、以下に示す方法により
行っていた。つまり、画像の記憶フレーム毎に、空間微
分処理を行い、車両のエッジを抽出し、連続する2つの
フレーム間のエッジの重なり度(D)を以下に示す式に
より計算する。D=(エッジのフレーム間の重なり部の
画素数)/(前フレームのエッジの全画素数) この重なりDが一定値以上になったとき車両が停止し
ていると判定していた。
[Prior Art] Conventionally, the following method has been used to determine the stop of a vehicle using a vehicle detection device to which this type of image processing is applied. That is, for each storage frame of the image, a spatial differentiation process is performed to extract the edge of the vehicle, and the degree of overlap (D) of the edge between two consecutive frames is calculated by the following equation. D = (the number of pixels of the overlap portion between the frames of the edge) / (the total number of pixels of the edge of the previous frame) When the overlap D becomes a certain value or more, it is determined that the vehicle is stopped.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

しかし、この方式によれば、2つの連続するフレーム
中に停止した車両のエッジが略重なるように存在してい
れば確実に判定できるが、例えば、車両の手前に乗降す
る人が存在して、車両のエッジの一部が消えてしまう場
合、重なり度Dの値は小さくなり、車両の停止の判定が
なされなくなってしまうことがあった。
However, according to this method, it is possible to reliably determine if the edges of the stopped vehicle exist in two consecutive frames so as to substantially overlap, for example, there is a person who gets on and off in front of the vehicle, When a part of the edge of the vehicle disappears, the value of the overlap degree D becomes small, and the stop of the vehicle may not be determined.

本発明は、上記の点に鑑みてなしたものであり、り、
その目的とするところは、車両の前に障害物等が存在す
ることにより、車両のエッジの一部が消えることがあっ
ても、車両の停止を確実に検知することのできる車両検
出装置を提供することにある。
The present invention has been made in view of the above points,
It is an object of the present invention to provide a vehicle detection device that can reliably detect a stop of a vehicle even when a part of an edge of the vehicle disappears due to an obstacle or the like in front of the vehicle. Is to do.

〔課題を解決するための手段〕[Means for solving the problem]

本発明の車両検出装置は、監視領域を撮影して画像信
号を得る撮像手段と、前記撮像手段により得られた画像
信号をデジタル化するA/D手段と、デジタル化された画
像データに対して空間1次微分処理を施して微分絶対値
を出力する空間微分手段と、前記微分絶対値と予め設定
された設定値とを比較することによりエッジ画像を抽出
する比較手段と、前記エッジ画像のヒストグラムを求
め、水平方向、垂直方向の各々の方向に対して閾値処理
をすることにより主要なエッジを求めるヒストグラム計
測手段と、前画像の主要エッジを記憶する前画像メモリ
と、前記主要エッジを用いて検知マスクを作成する検知
マスク作成手段と、前記検知マスク毎に現画像の主要エ
ッジと前画像の主要エッジの排他的論理和を計算し、そ
の結果により車両の停止を判定する判定手段とからなる
ことを特徴とし、さらに、前記検知マスク作成手段が、
前記主要エッジをラベリングし、各ラベリング毎に所定
画素だけ膨張させたものを検知マスクとするようにした
ものであることを特徴とし、さらに、前記検知マスク作
成手段が、前記主要エッジを垂直方向および水平方向に
投影することにより求められる両方向の長さを隣あう2
片とする4角形を検知マスクとするようにしたものであ
ることを特徴とするものである。
The vehicle detection device according to the present invention includes: an imaging unit that captures an image of a monitoring area to obtain an image signal; an A / D unit that digitizes an image signal obtained by the imaging unit; Spatial differential means for performing a spatial primary differentiation process to output a differential absolute value, comparing means for extracting an edge image by comparing the differential absolute value with a preset value, and a histogram of the edge image Histogram measurement means for obtaining a main edge by performing a threshold process for each of the horizontal direction and the vertical direction, a previous image memory for storing the main edge of the previous image, and using the main edge Detection mask generating means for generating a detection mask; calculating an exclusive OR of a main edge of a current image and a main edge of a previous image for each of the detection masks; Characterized by comprising a determination means, further, said detecting mask making means,
The main edge is labeled, and a mask obtained by expanding a predetermined pixel for each labeling is used as a detection mask. Neighboring the lengths in both directions obtained by projecting in the horizontal direction
It is characterized in that a square as a piece is used as a detection mask.

〔作用〕[Action]

本発明の車両検出装置は、エッジ画像のヒストグラム
を求め、水平方向、垂直方向の各々の方向に対して閾値
処理をすることにより得られた主要なエッジに対して、
この主要エッジ毎に検知マスクを作成し、検知マスク毎
に、前画像と現画像とを比較し、複数の検知マスクの
内、所定数だけ一致したときに、車両が停止していると
判定するのである。
The vehicle detection device of the present invention obtains a histogram of an edge image, and performs horizontal and vertical threshold processing for each of the main directions.
A detection mask is created for each of the main edges, the previous image and the current image are compared for each detection mask, and when a predetermined number of the plurality of detection masks match, it is determined that the vehicle has stopped. It is.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面に基づき説明する。第
1図は、本発明の一実施例の概略構成を示すブロック図
である。1は撮像手段であり、例えば、CCD撮像素子や
ビジコン等を用いたテレビカメラよりなる。2はA/D手
段であり、撮像手段1により得られた画像信号をデジタ
ル化して、各画素毎に1ビット又は複数ビットのデジタ
ル信号を得るものである。3は空間微分手段であり、デ
ジタル化された画像データに空間1次微分処理を施し
て、微分絶対値を出力する。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a schematic configuration of one embodiment of the present invention. Reference numeral 1 denotes an imaging unit, which is, for example, a television camera using a CCD imaging device or a vidicon. Reference numeral 2 denotes an A / D unit that digitizes an image signal obtained by the imaging unit 1 to obtain a digital signal of one bit or a plurality of bits for each pixel. Numeral 3 denotes a spatial differentiating means for performing a spatial primary differentiation process on the digitized image data and outputting a differential absolute value.

第2図は空間微分手段3の動作説明図である。同図に
示すように、画像中の局所ブロックSの画素の輝度の値
をそれぞれA〜Iで表すと、縦方向についての輝度変化
は、 ΔV=(A+B+C)−(G+H+I) と表され、横方向の輝度変化は、 ΔH=(A+D+G)−(C+F+I) と表される。これにより、微分絶対値|e|は、 |e|=(ΔH2+ΔV20.5 となる。この微分絶対値|e|により輝度変化の大きさ、
つまりエッジ強度を判る。
FIG. 2 is an explanatory diagram of the operation of the spatial differentiating means 3. As shown in the figure, when the luminance values of the pixels of the local block S in the image are represented by A to I, the luminance change in the vertical direction is represented by ΔV = (A + B + C)-(G + H + I) The luminance change in the direction is represented by ΔH = (A + D + G) − (C + F + I). Thus, the differential absolute value | e | becomes | e | = (ΔH 2 + ΔV 2 ) 0.5 . The magnitude of the luminance change is calculated by the differential absolute value | e |
That is, the edge strength is determined.

このようにして求められた微分絶対値|e|は、局所ブ
ロックSの中央の画素Eに対するものである。この局所
ブロックSを走査していけば、全画素の微分絶対値|e|
が求まるのである。
The differential absolute value | e | obtained in this manner is for the central pixel E of the local block S. By scanning this local block S, the differential absolute value | e |
Is required.

4は比較手段であり、空間微分手段3から各画素毎に
出力される微分絶対値を予め設定した設定値と比較し、
第3図(a)に示すような2値画像(エッジ画像)に変
換する。
Reference numeral 4 denotes a comparing unit that compares a differential absolute value output for each pixel from the spatial differentiating unit 3 with a preset setting value,
The image is converted into a binary image (edge image) as shown in FIG.

5は現画像メモリであり、比較手段4から出力される
エッジ画像を一時記憶するものである。
Reference numeral 5 denotes a current image memory for temporarily storing an edge image output from the comparing means 4.

6はヒストグラム計測手段であり、現画像メモリ5か
ら出力されるエッジ画像を、第3図(b)に示すよう
に、水平方向および垂直方向に各々投影し、さらに閾値
処理をすることにより、第3図(c)に示すように、主
要なエッジを抽出する。
Reference numeral 6 denotes a histogram measuring means which projects the edge image output from the current image memory 5 in the horizontal direction and the vertical direction as shown in FIG. 3. As shown in FIG. 3 (c), a main edge is extracted.

7は検知マスク作成手段であり、前記エッジ画像を主
要なエッジを含む複数のブロックを作成し、このブロッ
クを検知マスクとして使用するのである。
Reference numeral 7 denotes a detection mask creating means for creating a plurality of blocks including a main edge from the edge image and using the blocks as a detection mask.

検知マスクの作成手段の一例を第4図に示す。第3図
(c)に示した主要エッジ画像に対して、第4図(a)
のように、連続したエッジの画素毎に固有の番号を与え
るラベリング処理を行う。次に、各ラベル〜につい
て、所定画像だけ膨張させたブロックを検知マスクとす
る。例えば、ラベルの場合は、第4図(b)の太線で
示した範囲がラベル(斜線部分)に対する検知マスク
Mとなる。同様にして、各ラベルに対して、検知マスク
を作成する。
FIG. 4 shows an example of a detection mask creating means. FIG. 4 (a) corresponds to the main edge image shown in FIG. 3 (c).
, A labeling process for giving a unique number to each pixel of a continuous edge is performed. Next, for each of the labels 〜, a block expanded by a predetermined image is used as a detection mask. For example, in the case of a label, the range shown by the bold line in FIG. 4B is the detection mask M for the label (shaded portion). Similarly, a detection mask is created for each label.

次に、検知マスクの作成手段の他の例を第5図に示
す。第3図(c)に示した主要エッジ画像に対して、例
えば、まず左端の主要エッジEd(第3図(b)における
垂直方向ヒストグラムの左端に存在する閾値を超える部
分)を抽出し、X方向の長さX1(画素数に対応する
値)を求める。次に、この主要エッジEdに対して、水平
方向のヒストグラムを計測することにより、Y方向の長
さY1(画素数に対応する値)を求める。このようにし
て、主要エッジEdに対して、X方向の長さX1、Y方向の
長さY1を隣あう2片とする4角形を主要エッジEdの検知
マスクM′とするのである。この処理を他の主要エッジ
の全てに対して行うのである。この検知マスクの作成手
段は、前記の作成手段に対して、ラベリング処理が不要
なので処理としては簡単になる。
Next, another example of the detection mask creating means is shown in FIG. For the main edge image shown in FIG. 3 (c), for example, first, the leftmost main edge E d (the portion exceeding the threshold existing at the left end of the vertical histogram in FIG. 3 (b)) is extracted, The length X 1 in the X direction (a value corresponding to the number of pixels) is obtained. Then, to this major edge E d, by measuring the histogram in the horizontal direction, obtaining the Y direction length Y 1 (value corresponding to the number of pixels). In this way, the main the edge E d, since the X-direction length X 1, Y-direction of the detection mask M of the main edge E d a square of the length Y 1 and adjacent meet two pieces' is there. This process is performed for all the other main edges. This detection mask creating means does not require labeling processing as compared with the above-described creating means, so that the processing becomes simple.

8は前記画像メモリで、1フレーム前の主要エッジ画
像および検知マスクを記憶しておくものである。
Reference numeral 8 denotes the image memory for storing a main edge image one frame before and a detection mask.

9は車両の停止を判定する判定手段で、前画像と現画
像に対して、検知マスク毎に、全画素を排他的論理和を
演算し、その一致度を求める。つまり、第4図(b)の
検知マスクMにおいて、ラベルに対応する斜線部分は
“1"とし、他の部分は“0"として演算するのである。検
知マスクM内で同形状のエッジが同じ位置に存在すれ
ば、演算結果は0となる画素が多くなる。検知マスク内
Mで、演算結果が0となる画素の検知マスクMの全画素
数に内で占める割合により一致度を判定する。
Reference numeral 9 denotes determination means for determining whether the vehicle has stopped. The exclusive OR is calculated for all pixels of the previous image and the current image for each detection mask, and the degree of coincidence is calculated. That is, in the detection mask M of FIG. 4B, the calculation is performed by setting the hatched portion corresponding to the label to “1” and the other portions to “0”. If edges of the same shape exist at the same position in the detection mask M, the number of pixels for which the calculation result is 0 increases. In the detection mask M, the degree of coincidence is determined based on the ratio of the pixel whose operation result is 0 to the total number of pixels of the detection mask M.

以上の処理を全検知マスクについて行うのである。そ
して、一致と判定された検知マスクの個数が所定数以上
になったとき、車両が停止していると判定するのであ
る。
The above processing is performed for all the detection masks. Then, when the number of detection masks determined to be equal to or more than a predetermined number, it is determined that the vehicle is stopped.

以上の実施例によれば、エッジ画像が完全に一致して
いなくても、一致した検知マスクの数により判定してい
るので、車両の前面に、入等の障害物が存在することに
より、検知エリアの一部での不一致があっても、車両の
停止を確実検出できるのである。
According to the above embodiment, even if the edge images do not completely match, the determination is made based on the number of matching detection masks. Even if there is a mismatch in a part of the area, the stop of the vehicle can be reliably detected.

〔発明の効果〕〔The invention's effect〕

以上のように、本発明の車両検出装置によれば、エッ
ジ画像のヒストグラムを求め、水平方向、垂直方向の各
々の方向に対して閾値処理をすることにより得られた主
要なエッジに対して、この主要エッジ毎に検知マスクを
作成し、検知マスク毎に、前画像と現画像とを比較し、
複数の検知マスクの内、所定数だけ一致したときに、車
両が停止していると判定するようにしたので、車両の前
に障害物等が存在することにより、車両のエッジの一部
が消えることがあっても、車両の停止を確実に検知する
ことのできる車両検出装置が提供できた。
As described above, according to the vehicle detection device of the present invention, the histogram of the edge image is obtained, and the main edge obtained by performing the threshold processing on each of the horizontal direction and the vertical direction is obtained. Create a detection mask for each main edge, compare the previous image and the current image for each detection mask,
When a predetermined number of the detection masks match, it is determined that the vehicle is stopped. Therefore, a part of the edge of the vehicle disappears due to the presence of an obstacle or the like in front of the vehicle. Even if this happens, a vehicle detection device capable of reliably detecting the stop of the vehicle can be provided.

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

第1図は、本発明の一実施例を示すブロック図、 第2図は、同上に係る空間微分手段を示す模式図 第3図は、同上に係る主要エッジ抽出の説明図、 第4図は、同上の実施例に係る検知マスク作成の一実施
例を示す説明図である。 第5図は、検知マスク作成の他の実施例を示す説明図で
ある。 1……撮像手段、2……A/D手段 3……空間微分手段、4……比較手段 5……現画像メモリ、6……ヒストグラム計測手段 7……検知マスク作成手段 8……前画像メモリ、9……判定手段
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a schematic diagram showing a spatial differentiating means according to the above, FIG. 3 is an explanatory diagram of main edge extraction according to the above, and FIG. FIG. 4 is an explanatory view showing one embodiment of creating a detection mask according to the embodiment. FIG. 5 is an explanatory view showing another embodiment of the production of a detection mask. DESCRIPTION OF SYMBOLS 1 ... Image pick-up means, 2 ... A / D means 3 ... Spatial differentiation means 4, ... Comparison means 5 ... Current image memory, 6 ... Histogram measurement means 7 ... Detection mask creation means 8 ... Previous image Memory, 9 ... determination means

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】監視領域を撮影して画像信号を得る撮像手
段と、前記撮像手段により得られた画像信号をデジタル
化するA/D手段と、デジタル化された画像データに対し
て空間1次微分処理を施して微分絶対値を出力する空間
微分手段と、前記微分絶対値と予め設定された設定値と
を比較することによりエッジ画像を抽出する比較手段
と、前記エッジ画像のヒストグラムを求め、水平方向、
垂直方向の各々の方向に対して閾値処理をすることによ
り主要なエッジを求めるヒストグラム計測手段と、前画
像の主要エッジを記憶する前画像メモリと、前記主要エ
ッジを用いて検知マスクを作成する検知マスク作成手段
と、前記検知マスク毎に現画像の主要エッジと前画像の
主要エッジの排他的論理和を計算し、その結果により車
両の停止を判定する判定手段とからなる車両検出装置。
An imaging unit for capturing an image of a monitoring area to obtain an image signal; an A / D unit for digitizing the image signal obtained by the imaging unit; Spatial differentiation means for performing a differentiation process and outputting a differential absolute value, a comparing means for extracting an edge image by comparing the differential absolute value with a preset setting value, and obtaining a histogram of the edge image, horizontal direction,
Histogram measurement means for obtaining a main edge by performing threshold processing in each of the vertical directions, a previous image memory for storing a main edge of a previous image, and detection for creating a detection mask using the main edge A vehicle detection device comprising: a mask creation unit; and an exclusive OR of a main edge of a current image and a main edge of a previous image for each of the detection masks, and a determination unit for determining stop of the vehicle based on the result.
【請求項2】前記検知マスク作成手段が、前記主要エッ
ジをラベリングし、各ラベリング毎に所定画素だけ膨張
させたものを検知マスクとするようにしたものである請
求項1記載の車両検出装置。
2. A vehicle detection apparatus according to claim 1, wherein said detection mask creating means labels the main edge and expands a predetermined pixel for each labeling as a detection mask.
【請求項3】前記検知マスク作成手段が、前記主要エッ
ジを垂直方向および水平方向に投影することにより求め
られる両方向の長さを隣あう2片とする4角形を検知マ
スクとするようにしたものである請求項1記載の車両検
出装置。
3. A detection mask, wherein said detection mask creating means uses a detection mask as a quadrilateral having two adjacent lengths in both directions obtained by projecting said main edge in a vertical direction and a horizontal direction. The vehicle detection device according to claim 1, wherein
JP30710189A 1989-11-27 1989-11-27 Vehicle detection device Expired - Fee Related JP2853219B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30710189A JP2853219B2 (en) 1989-11-27 1989-11-27 Vehicle detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30710189A JP2853219B2 (en) 1989-11-27 1989-11-27 Vehicle detection device

Publications (2)

Publication Number Publication Date
JPH03166662A JPH03166662A (en) 1991-07-18
JP2853219B2 true JP2853219B2 (en) 1999-02-03

Family

ID=17965042

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30710189A Expired - Fee Related JP2853219B2 (en) 1989-11-27 1989-11-27 Vehicle detection device

Country Status (1)

Country Link
JP (1) JP2853219B2 (en)

Also Published As

Publication number Publication date
JPH03166662A (en) 1991-07-18

Similar Documents

Publication Publication Date Title
JPH02285475A (en) Method and equipment for extracting edge and line
JPH0957201A (en) Specific color region extracting system and specific color region removing system
JP2001043383A (en) Image monitoring system
JP2853219B2 (en) Vehicle detection device
JP5157575B2 (en) Defect detection method
JPH0718812B2 (en) Foreign object detection method
JPH06147855A (en) Image inspection method
JPH09288037A (en) Inspection method for lcd panel
JP3163601B2 (en) Image processing apparatus and method
JP2868233B2 (en) Vehicle movement detection device
JPH0383474A (en) Car detector
JP3899602B2 (en) Closed region detection method and apparatus
JP3485975B2 (en) Specific color area extraction method and specific color area removal method
JP4458210B2 (en) Object detection method
JPH09251538A (en) Device and method for judging presence or absence of object
JPH0512441A (en) Edge image generator
JPS619765A (en) Picture image processor
JP2814315B2 (en) Vehicle dynamics measurement device
JP2670074B2 (en) Vehicle number recognition device
JP2779624B2 (en) Stoppage vehicle detection method
JP3267372B2 (en) Method and apparatus for generating matching pattern signal in pattern matching inspection
JP3109237B2 (en) Line segment constituent pixel extraction method and line segment judgment method in image
JPH07104137B2 (en) Method of detecting the rotation angle of the target pattern
JPH0777495A (en) Pattern inspection method
CN112528861A (en) Foreign matter detection method and device applied to track bed in railway tunnel

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 10

Free format text: PAYMENT UNTIL: 20081120

LAPS Cancellation because of no payment of annual fees