JPH0245900A - Method for detecting vehicles caught in traffic jam - Google Patents

Method for detecting vehicles caught in traffic jam

Info

Publication number
JPH0245900A
JPH0245900A JP19736488A JP19736488A JPH0245900A JP H0245900 A JPH0245900 A JP H0245900A JP 19736488 A JP19736488 A JP 19736488A JP 19736488 A JP19736488 A JP 19736488A JP H0245900 A JPH0245900 A JP H0245900A
Authority
JP
Japan
Prior art keywords
image
vehicle
moving vehicle
difference
binarized
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.)
Granted
Application number
JP19736488A
Other languages
Japanese (ja)
Other versions
JP2779624B2 (en
Inventor
Junya Toda
順也 戸田
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.)
Nippon Signal Co Ltd
Original Assignee
Nippon Signal 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 Nippon Signal Co Ltd filed Critical Nippon Signal Co Ltd
Priority to JP63197364A priority Critical patent/JP2779624B2/en
Publication of JPH0245900A publication Critical patent/JPH0245900A/en
Application granted granted Critical
Publication of JP2779624B2 publication Critical patent/JP2779624B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Closed-Circuit Television Systems (AREA)
  • Traffic Control Systems (AREA)

Abstract

PURPOSE:To correctly detect a vehicle in a traffic jam by detecting a moving vehicle with an image in which a difference image between two frame images having a time difference is binarized and, thereafter, contracted, and executing an edge detection in the difference image. CONSTITUTION:At the time of extracting the difference image, the difference image is made into a binarized image by a prescribed threshold by a first binarized image preparing part 13, and thereafter, the bright part of the binarized image is contracted at prescribed times by a first contracted image preparing part 14. In such a way, the bright part related to the moving vehicle is left. Thereafter, by a moving vehicle detecting part 15, based on the image outputted from the first contracted image preparing part 14, the existence and the number of white picture elements in an object area are measured, and when the white picture elements exist in a definited number or above, the fact that the moving vehicle exists is judged. When the number of white picture elements is the definite number or below, the fact that the moving vehicle does not exist is judged. In such a way, by detecting the moving vehicle and investigating the moving speed, the degree of a traffic jam is detected.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、画像処理技術を用いて、道路上に停、渋滞す
る車輌を検出する方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION FIELD OF INDUSTRIAL APPLICATION The present invention relates to a method of detecting vehicles stopped or congested on a road using image processing technology.

従来の技術 および発明が解決しようとする課題 近年、道路の混雑のため、交通状況、特に車輌停、渋滞
状況を正確に把握して、ドライバー等に迅速に提供する
必要性が叫ばれている。
Problems to be Solved by the Prior Art and the Invention In recent years, due to congestion on roads, there has been a growing need to accurately grasp traffic conditions, particularly vehicle stops and traffic jam conditions, and promptly provide them to drivers and the like.

しかしながら、従来においては、超音波式車輌感知器等
を用いて停、渋滞する車輌列の長さを推定する方法など
があるのみで、正確な停、渋滞状況を検出することがで
きながった。
However, in the past, the only methods available were to estimate the length of a line of stopped or congested vehicles using ultrasonic vehicle detectors, etc., but it was not possible to accurately detect the situation of stopped or congested vehicles. Ta.

故に、本発明は、正確に停渋滞する車輌を検出できる方
法を提供することを目的とする。
Therefore, an object of the present invention is to provide a method that can accurately detect vehicles that are stuck in a traffic jam.

課題を解決するための手段 上記目的を達成するため、本発明による方法は、道路上
の検出領域を見下す位置にテレビカメラを固定し、該テ
レビカメラが写し出す画像を順次画像記憶部に記憶し、 所定時間差で記憶された2つのフレーム画像間の差分画
像を作成し、該差分画像を二値化した後、所定回数収縮
し、 収縮後の画像における白画素の数を針側し、その数が一
定数以上の場合には「移動車輌有り」と判定し、前記白
画素が一定数以下の場合には「移動車輌無し」と判定し
、 「移動車輌無し」と判定されたときに、前記差分画像上
でのエツジ検出を行ない、エツジ検出した画像をさらに
二値化した後収縮し、 前記二値化して収縮した画像におけるエツジの有無を調
査し、エツジが有るときには「停滞車輌有り」と判定す
るとともに停滞車輌の位置を判定し、エツジが無いとき
には「車輌無し」と判定する。
Means for Solving the Problems In order to achieve the above object, a method according to the present invention includes fixing a television camera at a position overlooking a detection area on the road, sequentially storing images captured by the television camera in an image storage unit, A difference image between two frame images stored with a predetermined time difference is created, and after the difference image is binarized, it is shrunk a predetermined number of times, and the number of white pixels in the shrunk image is calculated as follows: If the number of white pixels is more than a certain number, it is determined that there is a moving vehicle, and if the number of white pixels is less than a certain number, it is determined that there is no moving vehicle, and when it is determined that there is no moving vehicle, the difference Edges are detected on the image, the edge-detected image is further binarized and then shrunk, and the presence or absence of edges is investigated in the binarized and shrunken image, and if an edge is found, it is determined that there is a ``stagnant vehicle''. At the same time, the position of the stationary vehicle is determined, and if there is no edge, it is determined that there is no vehicle.

作  用 画像記憶部に記憶された2画像間の差分画像において、
移動車輌は階調のある画素となって表われるため、該差
分画像を二値化、収縮して各種ノイズを除去すれば、移
動車輌は鮮明に検出される。
In the difference image between the two images stored in the working image storage unit,
Since a moving vehicle appears as pixels with gradation, if the differential image is binarized and compressed to remove various noises, the moving vehicle can be clearly detected.

また、移動車輌が存在しないときには、前記差分画像は
何も存在しない画像となる。そこで、前記何も存在しな
い差分画像が、検出領域に車輌が全く存在していないこ
とを意味するのか、または、車輌が停滞していることを
意味するのかを判別するため、前記画像上でエツジ検出
を行なう。このようにして、エツジが検出された場合、
「停滞車輌有り」と判定される。
Furthermore, when there is no moving vehicle, the difference image becomes an image where nothing exists. Therefore, in order to determine whether the difference image in which nothing exists means that there is no vehicle in the detection area at all, or whether it means that the vehicle is stationary, Perform detection. In this way, if an edge is detected,
It is determined that there is a ``stagnant vehicle''.

実施例 以下、図面に示す実施例に基づいて本発明を説明する。Example The present invention will be described below based on embodiments shown in the drawings.

第2図は本発明を実施するために使用する装置を示し、
該装置は、テレビカメラ(2)を備えた画像人力部(3
)と、第1、第2画像記憶部(4゜5)と、コンピュー
ターを用いた中央処理部(10)とから成る。
FIG. 2 shows the apparatus used to carry out the invention,
The device comprises an image operator (3) equipped with a television camera (2).
), first and second image storage units (4°5), and a central processing unit (10) using a computer.

前記テレビカメラ(2)は、道路上の検出対象領域を斜
め上方から見下す位置に固定されて該道路の画像をリア
ルタイムに写し出す。画像人力部(3)では、テレビカ
メラ(2)が写し出す画像を輝度の階調に対応したディ
ジタル信号に変換して、前記画像記憶部(4,5)に出
力する。このようにして、第1、第2画像記憶部(’4
.5)では、順次、一定時間間隔で交互に入力画像を記
憶する。以下、このようにして記憶された個々の画像を
「フレーム画像」という。
The television camera (2) is fixed at a position looking down on the detection target area on the road from diagonally above and projects an image of the road in real time. The image processing unit (3) converts the image captured by the television camera (2) into a digital signal corresponding to the luminance gradation and outputs it to the image storage unit (4, 5). In this way, the first and second image storage units ('4
.. In step 5), input images are sequentially stored alternately at constant time intervals. Hereinafter, each image stored in this manner will be referred to as a "frame image."

中央処理部(10)は、移動車輌を検出するため、差分
画像作成部(12)と、第に値画像作成部(13)と、
第1収縮画像作成部(14)と、移動車輌検出部(15
)とを有する。さらに、中央処理部(10)は、停滞(
停止して動かない)車輌の有無を検出するため、エツジ
検出部(1B)と、第2二値画像作成部(17)と、第
2収縮画像作成部(1B)と、停滞車輌検出部(19)
とを有する。
In order to detect a moving vehicle, the central processing unit (10) includes a difference image creation unit (12), a value image creation unit (13),
A first contraction image creation section (14) and a moving vehicle detection section (15).
). Furthermore, the central processing unit (10) is configured to perform stagnation (
In order to detect the presence or absence of a vehicle (stopped and not moving), an edge detection section (1B), a second binary image creation section (17), a second contraction image creation section (1B), and a stationary vehicle detection section ( 19)
and has.

以下、第1図から第8図までを参照して本発明方法を説
明する。
The method of the present invention will be explained below with reference to FIGS. 1 to 8.

先ず、テレビカメラ(2)が写し出す画像を、第1およ
び第2画像記憶部(4,5)の各々に記憶させ、差分画
像作成部(12)において、前記両記憶部(4,5)に
記憶された、所定時間(例えば1秒)差のある2つのフ
レーム画像間の差分画像を作成する。
First, the image captured by the television camera (2) is stored in each of the first and second image storage units (4, 5), and the differential image creation unit (12) stores the image in both the storage units (4, 5). A difference image between two stored frame images with a predetermined time difference (for example, 1 second) is created.

なお、この差分画像は・、絶対値差分であって、当該検
出対象領域における車輌状況に応じて、下記のように異
なった画像となる。すなわち、1)車輌が存在しない場
合は、何も存在しない画像、 2)車輌が停滞している場合は、何も存在しない画像、 3)第3図および第4図で示すように、車輌が存在し、
且つ、移動している場合は、移動している車輌だけの画
像(第5図の(20)で示す部分)。
Note that this difference image is an absolute value difference, and becomes a different image as described below depending on the vehicle situation in the detection target area. That is, 1) if no vehicle exists, an image of nothing existing; 2) if the vehicle is stationary, an image of nothing existing; 3) as shown in Figures 3 and 4, an image of nothing existing. exists,
In addition, if the vehicle is moving, an image of only the moving vehicle (the part shown by (20) in FIG. 5).

しかしながら、前記1) 、2)の画像であっても、テ
レビカメラ(2)の揺れ、映像信号のノイズの影響で、
完全に何も存在しない画像が得られることはほとんどな
いため、また、3)の画像であっても前述の原因等によ
るノイズ(第5図の(21)で示す部分)が表われるた
め、前記1)、2)の画像と3)の画像とが、また、移
動車輌像とノイズとが明確に識別できるものではないの
で、次の手順でノイズの除去をするための補正を行なつ
O すなわち、例えば第5図の差分画像を抽出した場合、第
に値画像作成部(13)において前記差分画像を所定閾
値によって、第6図のように二値画像とした後、第1収
縮画像作成部(14)において、前記二値画像の明部(
白画素部)(W)を第7図のように所定回数だけ収縮す
る。このようにして、移動車輌に係る明部(W)のみが
残ることとなる。なお、この収縮回数は、前記ノイズの
大きさによって決められるものである。
However, even with images 1) and 2) above, due to the shaking of the television camera (2) and noise in the video signal,
Since it is rare to obtain an image completely free of anything, and even in the image of 3), noise (the part indicated by (21) in Fig. 5) due to the causes mentioned above appears. Since the images of 1) and 2) and the image of 3), and the image of the moving vehicle and the noise cannot be clearly distinguished, the following steps are used to perform correction to remove the noise. For example, when the difference image shown in FIG. 5 is extracted, the difference image is first converted into a binary image as shown in FIG. In (14), the bright part of the binary image (
The white pixel portion (W) is contracted a predetermined number of times as shown in FIG. In this way, only the bright area (W) related to the moving vehicle remains. Note that the number of contractions is determined by the magnitude of the noise.

その後、移動車輌検出部(15)において、前記第1収
縮画像作成部(14)から出力される画像に基づいて、
対象領域内における白画素の有無およびその数を計Mj
シ、白画素が一定数以上有るときは、「移動車輌有り」
と判定し、画像記憶ステップに戻る。また、白画素の数
が一定数以下のときは、「移動車輌無し」と判定して、
以下の処理に進む。なお、このように移動車輌を検出し
、その移動速度を調査することにより、渋滞の程度を検
出することができる。
Thereafter, in the moving vehicle detection section (15), based on the image output from the first contraction image creation section (14),
Calculate the presence or absence and number of white pixels in the target area Mj
・When there are more than a certain number of white pixels, "There is a moving vehicle"
It is determined that this is the case, and the process returns to the image storage step. Also, when the number of white pixels is less than a certain number, it is determined that there is no moving vehicle, and
Proceed to the following process. Note that by detecting moving vehicles in this manner and investigating their moving speeds, the extent of traffic congestion can be detected.

前述のように画像上に移動車輌が存在しないと判定され
た場合、該対象領域に、車輌が真に存在しないのか、ま
たは、停滞しているのがを判別するため、エツジ検出部
(16)において前記差分画像上でのエツジ検出を行な
う。エツジ検出の方法としては、多くのものが知られて
いるが、例えば、前記差分画像を縦横方向に数画素移動
させた画像を作成した後、前記差分画像と前記画素移動
させた画像との間の差分を取る方法を用いてもよい。
When it is determined that no moving vehicle exists on the image as described above, the edge detection unit (16) Edge detection is performed on the difference image. Many edge detection methods are known. For example, after creating an image by shifting the difference image by several pixels in the vertical and horizontal directions, the difference between the difference image and the image by which the pixels have been moved is You may also use a method of taking the difference between .

この画素移動による方法は、シフトレジスター等でハー
ドウェア化することが容易で、処理速度が速いという利
点がある。
This method using pixel movement has the advantage of being easy to implement in hardware using a shift register or the like, and of high processing speed.

なお、いずれのエツジ検出方法によっても、得られる画
像は、多値画像であり、各種のノイズが含まれることと
なるため、次に、前述の移動車輌検出の手順と同様に、
第2二値画像作成部(17)において、当該画像を所定
閾値を用いて二値化した後、第2収縮画像作成部(18
)において、前記二値化した画像の明部を収縮すること
によりノイズを除去する。このようにして得られる画像
は、1)検出領域に車輌が存在しない場合には、いかな
るエツジも存在しない画像、 2)検出領域に停滞車輌が存在する場合には、第8図で
例示するように、停滞車輌のエツジが検出された画像 となる。そこで、最後に、停滞車輌検出部(19)にお
いて、前記画像におけるエツジの有無を調査し、エツジ
が有るときには、「停滞車輌有り」と判定するとともに
、停滞車輌の存在位置を判定する。また、エツジが無い
ときには、検出対象領域に車輌が存在していないと判定
する。
Note that no matter which edge detection method is used, the obtained image is a multivalued image and contains various types of noise.
In the second binary image creation section (17), the image is binarized using a predetermined threshold, and then the second contracted image creation section (18
), noise is removed by contracting bright areas of the binarized image. The image obtained in this way is 1) an image without any edges when there is no vehicle in the detection area, and 2) an image without any edges when there is a stationary vehicle in the detection area, as illustrated in FIG. In this image, the edges of the stationary vehicle are detected. Finally, the stationary vehicle detection unit (19) investigates the presence or absence of an edge in the image, and if an edge is present, it is determined that there is a stationary vehicle, and the location of the stationary vehicle is determined. Furthermore, when there is no edge, it is determined that no vehicle exists in the detection target area.

発明の効果 以上のように、本発明による方法は、画像処理技術を用
いたものであって、時間差のある2フレ一ム画像間差分
画像を二値化した後収縮した画像によって、移動車輌を
検出し、前記差分画像においてエツジ検出することによ
って、停滞車輌の有無を検出するものである。
Effects of the Invention As described above, the method according to the present invention uses image processing technology, and uses a contracted image after binarizing a differential image between two frames with a time difference to detect a moving vehicle. The presence or absence of a parked vehicle is detected by detecting edges in the differential image.

このような構成により、本発明は、正確に停渋帯車輌を
検出でき、道路混雑緩和に大いに貢献することができる
という効果を有する。
With such a configuration, the present invention has the effect of being able to accurately detect stopped vehicles and greatly contributing to alleviating road congestion.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、本発明方法のフローチャート図、第2図は、
前記方法を実施するために使用する装置のブロック図、 第3図および第4図は、第1、第2画像記憶部に記憶さ
れた2つの画像を例示する図、第5図は、前記画像■1
差分画像を示す図、第6図は、前記差分画像から作成さ
れた二値画像を示す図、 第7図は、前記二値画像を収縮した画像を示す図、 第8図は、停滞車輌を検出するためエツジ検出した画像
を例示する図である。 (2):テレビカメラ、 (4):第1画像記憶部、 (5):第2画像記憶部。 第 図 刀 特 許 庁 長 官 殿 1゜ 事件の表示 特願昭63−197364号 2゜ 発明の名称 停渋滞車輌検出方法 3゜ 補正をする者 事件との関係
FIG. 1 is a flowchart of the method of the present invention, and FIG.
A block diagram of an apparatus used to carry out the method; FIGS. 3 and 4 are diagrams illustrating two images stored in the first and second image storage units; FIG. ■1
6 is a diagram showing a binary image created from the difference image, FIG. 7 is a diagram showing a contracted image of the binary image, and FIG. 8 is a diagram showing a stopped vehicle. FIG. 3 is a diagram illustrating an image in which edges are detected for detection. (2): TV camera, (4): First image storage section, (5): Second image storage section. Figure: To the Commissioner of the Japan Patent Office 1゜Indication of the case Patent Application No. 197364/1983 2゜Name of the invention Method for detecting stopped and congested vehicles 3゜Relationship with the case

Claims (1)

【特許請求の範囲】 〔1〕道路上の検出領域を見下す位置にテレビカメラ(
2)を固定し、該テレビカメラ(2)が写し出す画像を
順次画像記憶部(4、5)に記憶し、所定時間差で記憶
された2つのフレーム画像間の差分画像を作成し、該差
分画像を二値化した後、所定回数収縮し、 収縮後の画像における白画素の数を計測し、その数が一
定数以上の場合には「移動車輌有り」と判定し、前記白
画素が一定数以下の場合には「移動車輌無し」と判定し
、 「移動車輌無し」と判定されたときに、前記差分画像上
でのエッジ検出を行ない、エッジ検出した画像をさらに
二値化した後収縮し、 前記二値化して収縮した画像におけるエッジの有無を調
査し、エッジが有るときには「停滞車輌有り」と判定す
るとともに停滞車輌の位置を判定し、エッジが無いとき
には「車輌無し」と判定することを特徴とする停渋滞車
輌検出方法。
[Claims] [1] A television camera (
2) is fixed, the images projected by the television camera (2) are sequentially stored in the image storage section (4, 5), a difference image between the two frame images stored with a predetermined time difference is created, and the difference image is After the image is binarized, it is shrunk a predetermined number of times, the number of white pixels in the shrunken image is measured, and if the number is greater than a certain number, it is determined that there is a moving vehicle, and the number of white pixels is a certain number. In the following cases, it is determined that there is no moving vehicle, and when it is determined that there is no moving vehicle, edge detection is performed on the difference image, and the edge-detected image is further binarized and then shrunk. , Investigating the presence or absence of an edge in the binarized and shrunk image, and when an edge is present, determining that there is a "stagnant vehicle" and determining the position of the stalled vehicle, and when there is no edge, determining that there is "no vehicle". A method for detecting stopped and congested vehicles.
JP63197364A 1988-08-08 1988-08-08 Stoppage vehicle detection method Expired - Lifetime JP2779624B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63197364A JP2779624B2 (en) 1988-08-08 1988-08-08 Stoppage vehicle detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63197364A JP2779624B2 (en) 1988-08-08 1988-08-08 Stoppage vehicle detection method

Publications (2)

Publication Number Publication Date
JPH0245900A true JPH0245900A (en) 1990-02-15
JP2779624B2 JP2779624B2 (en) 1998-07-23

Family

ID=16373264

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63197364A Expired - Lifetime JP2779624B2 (en) 1988-08-08 1988-08-08 Stoppage vehicle detection method

Country Status (1)

Country Link
JP (1) JP2779624B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04120280A (en) * 1990-09-07 1992-04-21 Komatsu Ltd Manufacturing method of surface hardened aluminum material
CN115965914A (en) * 2021-10-12 2023-04-14 上海际链网络科技有限公司 Vehicle congestion monitoring method and device based on frame difference method, and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6027997A (en) * 1983-07-27 1985-02-13 松下電器産業株式会社 Traffic flow measuring device
JPS6077297A (en) * 1983-10-05 1985-05-01 日本電気株式会社 Stopped vehicle detection system
JPS6332673A (en) * 1986-07-28 1988-02-12 Fuji Electric Co Ltd Picture recognizing device
JPS6378299A (en) * 1986-09-22 1988-04-08 アイシン・エィ・ダブリュ株式会社 Automobile having signal recognition equipment using image processing art

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6027997A (en) * 1983-07-27 1985-02-13 松下電器産業株式会社 Traffic flow measuring device
JPS6077297A (en) * 1983-10-05 1985-05-01 日本電気株式会社 Stopped vehicle detection system
JPS6332673A (en) * 1986-07-28 1988-02-12 Fuji Electric Co Ltd Picture recognizing device
JPS6378299A (en) * 1986-09-22 1988-04-08 アイシン・エィ・ダブリュ株式会社 Automobile having signal recognition equipment using image processing art

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04120280A (en) * 1990-09-07 1992-04-21 Komatsu Ltd Manufacturing method of surface hardened aluminum material
CN115965914A (en) * 2021-10-12 2023-04-14 上海际链网络科技有限公司 Vehicle congestion monitoring method and device based on frame difference method, and terminal

Also Published As

Publication number Publication date
JP2779624B2 (en) 1998-07-23

Similar Documents

Publication Publication Date Title
US6661838B2 (en) Image processing apparatus for detecting changes of an image signal and image processing method therefor
TWI597471B (en) Use of image processing hanger detection device
JP3377659B2 (en) Object detection device and object detection method
JP2001043383A (en) Image monitoring system
JPH08315113A (en) Dust and smoke detection method
JP3134845B2 (en) Apparatus and method for extracting object in moving image
JPH0245900A (en) Method for detecting vehicles caught in traffic jam
JP2004530214A (en) Text discrimination method and related apparatus
JPH0268698A (en) Method and device for detecting vehicle
JPH057363A (en) Picture monitoring device
JP2876493B2 (en) Vehicle dynamics measurement method
JP2606409B2 (en) Vehicle monitoring method and device
JP2868233B2 (en) Vehicle movement detection device
JP4204708B2 (en) Object extraction device
JPH0737099A (en) Moving object detector
JPH0869535A (en) Background feature mask generating device and mobile object feature extracting device
JPH04273587A (en) Object detector
KR940003654B1 (en) Digital data processing method
JPH0383474A (en) Car detector
JPH06148094A (en) Method for inspecting mixture of foreign matter of sheetlike product
JP2001043483A (en) System for measuring traffic flow
EP0979002A3 (en) Method and apparatus for detecting fade of image in a video signal
JP3511534B2 (en) Region extraction device
JPH07105381A (en) Surveillance device and image processing method for surveillance device
JPH11175735A (en) Object recognition method and apparatus by image processing