JPS63220399A - Binary-coding system of image data for measuring traffic flow - Google Patents

Binary-coding system of image data for measuring traffic flow

Info

Publication number
JPS63220399A
JPS63220399A JP5285487A JP5285487A JPS63220399A JP S63220399 A JPS63220399 A JP S63220399A JP 5285487 A JP5285487 A JP 5285487A JP 5285487 A JP5285487 A JP 5285487A JP S63220399 A JPS63220399 A JP S63220399A
Authority
JP
Japan
Prior art keywords
image data
measurement
traffic flow
threshold level
brightness
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
JP5285487A
Other languages
Japanese (ja)
Other versions
JPH07104997B2 (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.)
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Electric Industries 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 Sumitomo Electric Industries Ltd filed Critical Sumitomo Electric Industries Ltd
Priority to JP5285487A priority Critical patent/JPH07104997B2/en
Publication of JPS63220399A publication Critical patent/JPS63220399A/en
Publication of JPH07104997B2 publication Critical patent/JPH07104997B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Traffic Control Systems (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はITVカメラ等により得られた画像データから
交通流を計測する交通流計測用画像データの2値化方式
に関し、特に夜間やトンネル内の如き暗い場所において
得られた画像データに使用されるものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a method for binarizing image data for measuring traffic flow, which measures traffic flow from image data obtained by an ITV camera, etc., particularly at night or inside a tunnel. It is used for image data obtained in dark places such as.

〔従来の技術〕[Conventional technology]

画像処理型の交通流計測システムとしては、従来から種
々のものが知られ、2値化方式についても特開昭61−
214100号公報や「東芝レビュー」第40巻第8号
、P、 P、 677〜679にその具体例が示されて
いる。
Various image processing-based traffic flow measurement systems have been known for a long time, and a binarization method was also developed in Japanese Patent Application Laid-Open No. 1986-
Specific examples are shown in Publication No. 214100 and "Toshiba Review" Vol. 40 No. 8, P, P, 677-679.

ところで、夜間の道路やトンネル内の道路の如く暗い場
所では、路面や車両本体を画像データで認識することが
容易でない。そこで従来から、車両のヘッドライトおよ
びテールランプを検出し、これにもとづいて車両の存在
および走行を認識することがなされている。
By the way, in dark places such as roads at night or roads in tunnels, it is not easy to recognize the road surface or the vehicle body using image data. Conventionally, therefore, the headlights and taillights of a vehicle are detected, and based on this, the presence and running of the vehicle are recognized.

以下、添付図面の第4図にもとづいて、従来技術を説明
する。
Hereinafter, the prior art will be explained based on FIG. 4 of the accompanying drawings.

第4図は従来の2値化方式を説明するための図であり、
ITVカメラによるトンルネ内の画像を2 示している
FIG. 4 is a diagram for explaining the conventional binarization method,
Two images of the inside of the tunnel taken by the ITV camera are shown.

図示の通り、画面11にはトンネル内の互いに対向する
車線12A、12Bが写し出されている。
As shown in the figure, lanes 12A and 12B opposing each other in the tunnel are displayed on the screen 11.

そして、トンネル内は通常は暗いために、トンネル内照
明灯13、車両のヘッドライト14およびテールランプ
15のみが高い輝度となっている。
Since the inside of the tunnel is normally dark, only the tunnel illumination lights 13, the vehicle headlights 14, and the taillights 15 have high brightness.

このような画面11において、交通流計測のための計測
ゾーンは符号16で示す(破線で示す。)如く設定され
る。そして、この計測ゾーン16の輝度を所定のスレッ
ショルドレベルで2値化することにより、ヘッドライト
14およびテールランプ15が抽出される。
In such a screen 11, a measurement zone for measuring traffic flow is set as shown by reference numeral 16 (indicated by a broken line). Then, by binarizing the brightness of this measurement zone 16 at a predetermined threshold level, headlights 14 and tail lamps 15 are extracted.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかしながら上記従来技術では、次のような問題があっ
た。すなわち、ヘッドライト14の輝度とテールランプ
15の輝度は大きく異なるため、一定のスレッショルド
レベルで2値化すると抽出に誤りが生じていた。特に、
ヘッドライト14で照らされた車両前方の路面の輝度と
、テールランプ15の輝度との間には大きな差がなくな
ってしまう。その結果、ヘッドライト14の前方の路面
を車両のテールランプ15と誤って認識することがあっ
た。
However, the above conventional technology has the following problems. That is, since the brightness of the headlights 14 and the brightness of the tail lamps 15 are significantly different, errors occur in extraction when binarized at a fixed threshold level. especially,
There is no significant difference between the brightness of the road surface in front of the vehicle illuminated by the headlights 14 and the brightness of the tail lamps 15. As a result, the road surface in front of the headlights 14 may be mistakenly recognized as the taillights 15 of the vehicle.

そこで本発明は、画面内に輝度の異なる特徴点があると
きに、これらの特徴を正確に抽出することのできる交通
流計測用画像データの2 flI化方化合式供すること
を目的とする。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a 2 flI conversion method for image data for traffic flow measurement, which can accurately extract feature points with different luminances within a screen.

〔問題点を解決するための手段〕[Means for solving problems]

本発明に係る交通流計測用画像データの2値化方式は、
トンネル内の複数の車線を撮影し、又は複数の車線を夜
間撮影して得られる画像データを、複数の車線に対応し
て少なくとも2つの計測ゾーンに分割し、分割された計
測ゾーンごとに所定のスレッショルドレベルを設定して
画像データの2値化を行なうことを特徴とする。
The binarization method of image data for traffic flow measurement according to the present invention is as follows:
The image data obtained by photographing multiple lanes in a tunnel or by photographing multiple lanes at night is divided into at least two measurement zones corresponding to the multiple lanes, and each divided measurement zone is divided into a predetermined measurement zone. It is characterized in that it binarizes image data by setting a threshold level.

〔作用〕[Effect]

本発明に係る交通流計測用画像データの2値化方式は、
以上の通りに構成されるので、画面は抽出対蒙の輝度の
異なる計測ゾーンごとに分割され、それぞれ異なるスレ
ッショルドレベルで2値化され、従って抽出対象の輝度
が低い計測ゾーンでは低いスレッショルドレベルにもと
づいて抽出がなされ、輝度の高い計測ゾーンでは高いス
レッショルドレベルにもとづいて抽出がなされることに
なる。
The binarization method of image data for traffic flow measurement according to the present invention is as follows:
Since the screen is configured as described above, the screen is divided into measurement zones with different brightness to be extracted, and each is binarized at a different threshold level. Therefore, in the measurement zone where the brightness of the extraction target is low, it is divided into measurement zones based on the low threshold level. In measurement zones with high brightness, extraction is performed based on a high threshold level.

〔実施例〕〔Example〕

以下、添付図面の第1図ないし第3図を参照して、本発
明の一実施例を説明する。なお、図面の説明において同
一の要素には同一の符号を付し、重複する説明を省略す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIGS. 1 to 3 of the accompanying drawings. In addition, in the description of the drawings, the same elements are given the same reference numerals, and redundant description will be omitted.

第1図は実施例に係る計測ゾーンの設定を説明する図で
ある。そして、これが第4図の従来例と異なる点は、車
線12A、12Bのそれぞれについて計測ゾーン16A
、16Blfi設定されていることである。従って、計
測ゾーン16Aにおいては車両のテールランプ15が撮
影されることになり、計測ゾーン16Bにおいては車両
のヘッドライト14が撮影されることになる。
FIG. 1 is a diagram illustrating the setting of measurement zones according to the embodiment. The difference from the conventional example shown in FIG. 4 is that the measurement zone 16A is
, 16Blfi is set. Therefore, the tail lamp 15 of the vehicle will be photographed in the measurement zone 16A, and the headlight 14 of the vehicle will be photographed in the measurement zone 16B.

第2図は本発明方式を適用した画像処理システムの基本
的構成図である。
FIG. 2 is a basic configuration diagram of an image processing system to which the method of the present invention is applied.

第2図に示す通り、画像処理システムは固定カメラ1に
接続されたVTR2と、VTR2からの画像信号(画像
データ)を処理するための画像処理装置3と、VTR2
からの画像をモニタするためのモニタテレビ4と、画像
処理装置3を操作するための操作卓5とを有している。
As shown in FIG. 2, the image processing system includes a VTR 2 connected to a fixed camera 1, an image processing device 3 for processing image signals (image data) from the VTR 2, and a VTR 2 connected to a fixed camera 1.
It has a monitor television 4 for monitoring images from the computer, and a console 5 for operating the image processing device 3.

また、画像処理装置3はVTR2からのアナログ画像信
号をディジタル化等するための画像メモリ7と、ディジ
タル画像信号を2値化等するためのスレーブCPU8と
、スレーブCPU8からの2値化信号により車両のヘッ
ドライト14、テールランプ15の認識等をするための
マスタCPU9とを有している。さらに、VTR2は固
定カメラ1がらの画像信号を信号線を介して受けるだけ
でなく、携帯カメラ6による画像信号をもビデオテープ
等の形式で受けるようになっている。
The image processing device 3 also includes an image memory 7 for digitizing the analog image signal from the VTR 2, a slave CPU 8 for digitizing the digital image signal, and a binary signal from the slave CPU 8 to control the vehicle. It has a master CPU 9 for recognizing the headlights 14 and taillights 15, etc. Furthermore, the VTR 2 not only receives image signals from the fixed camera 1 via the signal line, but also receives image signals from the portable camera 6 in the form of a videotape or the like.

次に、上記実施例の作用を説明する。Next, the operation of the above embodiment will be explained.

V丁R2からのアナログ画像信号は、画像メモリ7に内
蔵されたA/D変換器(図示しない。)等により、例え
ば256階調のディジタル輝度データに変換される。そ
して、所定のスレッショルドレベルによる2値化がなさ
れる。
The analog image signal from the V-block R2 is converted into digital luminance data of, for example, 256 gradations by an A/D converter (not shown) built into the image memory 7. Then, binarization is performed using a predetermined threshold level.

第3図はこの2値化方法を示すためのフローチャートで
ある。図示の通り、まず画素ごとの画像データの読み込
みがなされ(ステップ101)、全画像データの処理を
行なったかの判断がなされる(ステップ102)。そし
て、画像データが有の場合には、それが計測ゾーン16
Aのものであるか否か判断される(ステップ103)。
FIG. 3 is a flowchart showing this binarization method. As shown in the figure, first, image data for each pixel is read (step 101), and it is determined whether all image data has been processed (step 102). If there is image data, it is the measurement zone 16.
It is determined whether it belongs to A (step 103).

この判断は、読み込まれた画素の座標値とあらかじめ設
定されている計測ゾーン16Aの座標値とを比較するこ
とによりなされる。
This determination is made by comparing the read coordinate values of the pixels and the preset coordinate values of the measurement zone 16A.

読み込んだ画素が計測ゾーン16Aにあるときには、ス
レッショルドレベルαにより2値化を行なう(ステップ
104)。すなわち、画素の輝度レベルF (D)がα
以上のレベルであるときには2値化データを“1″とし
、画素の輝度レベルF (p)がαに達しないレベルで
あるときには21直化データを“Oopとする。なお、
このスレッショルドレベルαの値は車両のテールランプ
15の輝度を参照して定められ、テールランプ15のあ
るときに“1″の2値化データが得られるようにする。
When the read pixel is in the measurement zone 16A, binarization is performed using the threshold level α (step 104). That is, the luminance level F (D) of the pixel is α
When the level is above, the binarized data is set to "1", and when the brightness level F (p) of the pixel is at a level that does not reach α, the 21 normalized data is set to "Oop".
The value of this threshold level α is determined with reference to the brightness of the tail lamp 15 of the vehicle, so that when the tail lamp 15 is present, binary data of "1" is obtained.

以上の2値化が終了した後には、再びステップ101に
戻って画像データの読み込みを行なう。
After the above binarization is completed, the process returns to step 101 again to read the image data.

ステップ103で計測ゾーン16Aの画素でないとされ
たときは、ステップ105に進んで計測ゾーン16B内
の画素であるか否かを判断する。
When it is determined in step 103 that the pixel is not in the measurement zone 16A, the process proceeds to step 105 and it is determined whether the pixel is in the measurement zone 16B.

そして、座標値の比較により計測ゾーン16B内の画素
で°あるとされたときは、スレッショルドレベルβ(α
くβ)による画像データの2値化を行なう(ステップ1
06)。すなわち、画素の輝度レベルF (p)がβよ
り以上のレベルであるときには2値化データを“1″と
し、画素の輝度レベルF (p)がβに達しないレベル
であるときには2値化データを“Otpとする。なお、
このスレッショルドレベルβの値は車両のヘッドライト
14の輝度を参照して定められ、ヘッドライト14のあ
るときに“1゛の2値化データが得られるようにする。
Then, when it is determined that the pixel in the measurement zone 16B is at the threshold level β (α
Binarize the image data using β) (Step 1
06). That is, when the brightness level F (p) of the pixel is at a level higher than β, the binary data is set to “1”, and when the brightness level F (p) of the pixel is at a level that does not reach β, the binary data is set to “1”. Let be “Otp.In addition,
The value of this threshold level β is determined with reference to the brightness of the headlights 14 of the vehicle, so that when the headlights 14 are present, binary data of "1" is obtained.

以上の2値化が終了した後には、再びステップ101に
戻って画像データの読み込みを行なう。
After the above binarization is completed, the process returns to step 101 again to read the image data.

ステップ103,105のいずれにおいても計測ゾーン
16A、16B内にないとされたときには、2値化を行
なうことはない。そして、以上の作業を繰り返し、読み
込む画像データがなくなったときには2値化作業を終了
する(ステップ102)。
If it is determined in both steps 103 and 105 that the measured zone is not within the measurement zones 16A and 16B, no binarization is performed. Then, the above operations are repeated, and when there is no more image data to read, the binarization operation is ended (step 102).

このように本実施例では、2つの計測ゾーン16A、1
6Bごとに異なったスレッショルドレベルα、βが設定
される。従って、車両のテールランプ15は写るがヘッ
ドライト14は写らない計測ゾーン(i1度の低いゾー
ン)16Aについては、スレッショルドレベルを低いレ
ベルαとし、車両のテールランプ15は写らないがヘッ
ドライト14は写る計測ゾーン(8度の高いゾーン)1
6Bについては、スレッショルドレベルを高いレベルβ
とできるので、輝度の異なる特徴が同−画面中に現れて
も、抽出に誤りの生じることがない。
In this way, in this embodiment, two measurement zones 16A, 1
Different threshold levels α and β are set for each 6B. Therefore, for the measurement zone 16A (low i1 degree zone) in which the tail lamp 15 of the vehicle is captured but the headlight 14 is not captured, the threshold level is set to a low level α, and the measurement is performed in which the tail light 15 of the vehicle is not captured but the headlight 14 is captured. Zone (high 8 degree zone) 1
For 6B, set the threshold level to a high level β
Therefore, even if features with different brightness appear on the same screen, no error will occur in the extraction.

本発明は上記実施例に限定されるものではなく、種々の
変形が可能である。
The present invention is not limited to the above embodiments, and various modifications are possible.

例えば、計測ゾーンは2個に限らず3個以上であっても
よい。また、スレッショルドレベルα。
For example, the number of measurement zones is not limited to two, but may be three or more. Also, the threshold level α.

βの値は環境条件(空の明るさ、トンネル内の照明に強
ざなどの条件)に応じて適宜に補正できるようにしても
よい。
The value of β may be appropriately corrected depending on environmental conditions (conditions such as brightness of the sky, strong lighting in the tunnel, etc.).

さらに、2値化方法は第3図のものに限らず、いかなる
ものであってもよい。例えば、画面全体についてまずス
レッショルドレベルαによる2値化を行なった侵に、ス
レッショルドレベルβによる画面全体の2値化を行い、
得られた2値化データを計測ゾーン16A、16Bごと
に分割してもよい。
Furthermore, the binarization method is not limited to the one shown in FIG. 3, and any other method may be used. For example, if the entire screen is first binarized using a threshold level α, then the entire screen is binarized using a threshold level β.
The obtained binarized data may be divided into measurement zones 16A and 16B.

〔発明の効果〕〔Effect of the invention〕

以上、詳細に説明した通り、本発明に係る2値化方式に
よれば、画面は抽出対象の輝度の異なるゾーンごとに分
割され、それぞれ異なるスレッショルドレベルで2値化
され、従って抽出対象の輝度が低いゾーンでは低いスレ
ッショルドレベルにもとづいて抽出がなされ、輝度の高
いレベルでは高いスレッショルドレベルで抽出がなされ
ることになるので、画面内に輝度の異なる特徴点がある
ときにも、これらの特徴を正確に抽出することができる
効果がある。
As explained above in detail, according to the binarization method according to the present invention, the screen is divided into zones with different brightness to be extracted, and each zone is binarized at a different threshold level, so that the brightness to be extracted is In low zones, extraction is performed based on a low threshold level, and in high brightness levels, extraction is performed based on a high threshold level, so even when there are feature points with different brightness in the screen, these features can be accurately extracted. There are effects that can be extracted.

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

第1図は本発明の実施例方式による計測ゾーンの設定を
説明するための図、第2図は本発明方式を適用した画像
処理システムの基本ブロック図、第3図は第1図の実施
例に係る画像データの2値化を説明するためのフローチ
ャート、第4図は従来方式による計測ゾーンの設定を説
明するための図である。 1・・・固定カメラ、2・・・VTR,3・・・画像処
理装置、4・・・モニタテレビ、5・・・操作卓、6・
・・携帯カメラ、7・・・画像メモリ、8・・・スレー
ブCPU、9・・・マスタCPU、11・・・画面、1
2A、12B・・・車線、13・・・トンネル内照明灯
、14・・・ヘッドライト、15・・・テールランプ、
16.16A、16B・・・計測ゾーン。 特許出願人  住友電気工業株式会社 代理人弁理士   長谷用  芳  樹16A    
  16B 実施例の計測ゾーンの設定 第  1  図 本発明方式を適用した装置の基本ブロック第  2  
図 2値化のフローチャート 従来例の計測ゾーンの設定 第  4  図
FIG. 1 is a diagram for explaining measurement zone setting according to the embodiment method of the present invention, FIG. 2 is a basic block diagram of an image processing system to which the method of the present invention is applied, and FIG. 3 is an example of the embodiment of FIG. 1. FIG. 4 is a flowchart for explaining the binarization of image data according to the method, and FIG. 4 is a diagram for explaining the setting of measurement zones according to the conventional method. DESCRIPTION OF SYMBOLS 1...Fixed camera, 2...VTR, 3...Image processing device, 4...Monitor TV, 5...Operation console, 6...
...Mobile camera, 7...Image memory, 8...Slave CPU, 9...Master CPU, 11...Screen, 1
2A, 12B... Lane, 13... Tunnel lighting, 14... Headlight, 15... Tail lamp,
16.16A, 16B...Measurement zone. Patent applicant: Sumitomo Electric Industries, Ltd. Representative Patent Attorney Yoshiki Hase 16A
16B Setting of the measurement zone in the embodiment Fig. 1 Basic block of the device to which the method of the present invention is applied Fig. 2
Figure 4: Flowchart of binarization Measurement zone setting in conventional example

Claims (1)

【特許請求の範囲】 1、トンネル内の複数の車線を撮影し、又は複数の車線
を夜間撮影して得られる画像データを、所定のスレッシ
ョルドレベルで2値化する交通流計測用画像データの2
値化方式において、 前記画像データを前記複数の車線に対応して少なくとも
2つの計測ゾーンに分割し、分割された計測ゾーンごと
に前記所定のスレッショルドレベルを互いに異なる値に
設定し、前記画像データの2値化を行なうことを特徴と
する交通流計測用画像データの2値化方式。 2、前記所定のスレッショルドレベルを環境条件の変化
に追従させて変化させる特許請求の範囲第1項記載の交
通流計測用画像データの2値化方式。
[Claims] 1. Image data for traffic flow measurement in which image data obtained by photographing a plurality of lanes in a tunnel or by photographing a plurality of lanes at night is binarized at a predetermined threshold level.
In the value conversion method, the image data is divided into at least two measurement zones corresponding to the plurality of lanes, the predetermined threshold level is set to a different value for each divided measurement zone, and the image data is divided into at least two measurement zones corresponding to the plurality of lanes. A binarization method for image data for traffic flow measurement, characterized by binarization. 2. The binarization method of image data for traffic flow measurement according to claim 1, wherein the predetermined threshold level is changed in accordance with changes in environmental conditions.
JP5285487A 1987-03-10 1987-03-10 Binary method of traffic flow image data Expired - Lifetime JPH07104997B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5285487A JPH07104997B2 (en) 1987-03-10 1987-03-10 Binary method of traffic flow image data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5285487A JPH07104997B2 (en) 1987-03-10 1987-03-10 Binary method of traffic flow image data

Publications (2)

Publication Number Publication Date
JPS63220399A true JPS63220399A (en) 1988-09-13
JPH07104997B2 JPH07104997B2 (en) 1995-11-13

Family

ID=12926442

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5285487A Expired - Lifetime JPH07104997B2 (en) 1987-03-10 1987-03-10 Binary method of traffic flow image data

Country Status (1)

Country Link
JP (1) JPH07104997B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0371399A (en) * 1989-08-11 1991-03-27 Nagoya Denki Kogyo Kk Vehicle detecting method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0371399A (en) * 1989-08-11 1991-03-27 Nagoya Denki Kogyo Kk Vehicle detecting method

Also Published As

Publication number Publication date
JPH07104997B2 (en) 1995-11-13

Similar Documents

Publication Publication Date Title
EP1962226A2 (en) Image recognition device for vehicle and vehicle head lamp controller and method of controlling head lamps
JPH03150672A (en) Number plate detection device
JPH0546242A (en) White line detecting device
JPH10255019A (en) Vehicle recognizing device
JPS63220399A (en) Binary-coding system of image data for measuring traffic flow
JP2841640B2 (en) Traffic flow measurement device
JP2557350B2 (en) Speed measurement method
JP7155870B2 (en) VEHICLE DETECTION APPARATUS AND METHOD AND ELECTRONICS
JPH11219493A (en) Method for processing traffic information
JP3672994B2 (en) White line detector
JPH06201608A (en) Method for inspecting surface
JP2557887B2 (en) Vehicle speed measurement device
JPH0477951B2 (en)
JPH0224543A (en) Visual inspection method of bottle
JPS61161088A (en) Picture processing device
JPH08297728A (en) Vehicle front monitoring device and method
JP2995803B2 (en) Parking detection device
JP3090744B2 (en) License plate extraction method
JPH09282448A (en) Vehicle recognizing device
JPH07220049A (en) Picture processing method for erasing shadow, picture monitoring method and device therefor
JPS60200375A (en) Template matching system
JPS63184899A (en) Vehicle detector
JPH05189598A (en) Number plate information reader
JPH0723875B2 (en) Image display method in glass bottle inspection device
JPH0415519B2 (en)

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term