JPS6235158B2 - - Google Patents

Info

Publication number
JPS6235158B2
JPS6235158B2 JP14010780A JP14010780A JPS6235158B2 JP S6235158 B2 JPS6235158 B2 JP S6235158B2 JP 14010780 A JP14010780 A JP 14010780A JP 14010780 A JP14010780 A JP 14010780A JP S6235158 B2 JPS6235158 B2 JP S6235158B2
Authority
JP
Japan
Prior art keywords
signal
road surface
flag
reset signal
level
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
Application number
JP14010780A
Other languages
Japanese (ja)
Other versions
JPS5764899A (en
Inventor
Ryohei Tanaka
Akinobu Kitamura
Takateru Kotake
Yutaka Kato
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.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
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 Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP14010780A priority Critical patent/JPS5764899A/en
Publication of JPS5764899A publication Critical patent/JPS5764899A/en
Publication of JPS6235158B2 publication Critical patent/JPS6235158B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Traffic Control Systems (AREA)

Description

【発明の詳細な説明】 この発明は車両速度測定装置、さらに詳しくは
車両速度検出地点に所要距離をおいてセツト域と
リセツト域とを設け、セツト域からリセツト域に
向つて車両が通過したときに、得られる映像信号
(車両検知信号)の時間差にもとづいて車両の速
度を検出する装置に関する。
[Detailed Description of the Invention] This invention provides a vehicle speed measuring device, more specifically, a set area and a reset area are provided at a required distance from a vehicle speed detection point, and when a vehicle passes from the set area to the reset area. The present invention relates to a device that detects the speed of a vehicle based on a time difference between obtained video signals (vehicle detection signals).

このような車両の速度測定装置では、通常は、
セツト域の車両検知信号が先に出力され、次にリ
セツト域の車両検知信号が出力される。しかしな
がら、何らかの原因で車両検知信号の順序が逆に
なる場合がある。たとえば隣接する車線を通過す
る車両の影が検知されたような場合である。
Such vehicle speed measurement devices typically
The vehicle detection signal in the set area is output first, and then the vehicle detection signal in the reset area is output. However, for some reason, the order of the vehicle detection signals may be reversed. For example, this may be the case when the shadow of a vehicle passing in an adjacent lane is detected.

この発明は、セツト域の後にリセツト域の車両
検知信号が出力される正常な場合にのみ、車両の
速度を測定することにより、常に正確な車両の走
行速度測定を達成しうる速度測定装置を提供する
ものである。
The present invention provides a speed measuring device that can always accurately measure the running speed of a vehicle by measuring the speed of the vehicle only in normal cases where a vehicle detection signal in the reset region is output after the set region. It is something to do.

この発明による車両速度測定装置は、車両速度
検出地点に所要距離をおいて設定されたセツト域
とリセツト域を通過する車両の映像信号をそれぞ
れセツト信号、リセツト信号として出力する受光
素子、セツト信号およびリセツト信号を所定周期
でそれぞれサンプリングする手段、セツト信号お
よびリセツト信号のそれぞれについて、今回のサ
ンプリング値と先回のサンプリング値との偏差を
求める手段、セツト信号およびリセツト信号のそ
れぞれについて、上記偏差と所定の基準値とを比
較し、偏差の絶対値が所定の基準値よりも大きい
場合に、増加状態または減少状態にあると判定
し、この判定結果を記憶する手段、上記の判定の
記憶がないことに基づいて初めての増加状態また
は減少状態であると判定することにより、セツト
信号およびリセツト信号の路面レベルからの立上
りまたは立下りを検出し、これを記憶する手段、
セツト信号およびリセツト信号のそれぞれについ
て、路面レベルからの立上りまたは立下りでない
場合に、今回のサンプリング値と路面レベルとの
偏差があらかじめ定めた車両確認レベル以上であ
ることに基づいて路面レベル越えを検出する手
段、セツト信号についての路面レベルからの立上
りもしくは立下りまたは路面レベル越えの検出に
よつて零から計時を開始するタイマ、ならびにリ
セツト信号の立上りが検出された時にセツト信号
の立上り検出の記憶があれば、リセツト信号の立
下りが検出された時にセツト信号の立下り検出の
記憶がありかつ路面越えの記憶がなければ、また
はリセツト信号の路面越えが検出された時にセツ
ト信号の路面越え検出の記憶があれば、その時点
の上記タイマの計時時間と上記所要距離とに基づ
いて車両速度を算出する手段、を備えていること
を特徴とする。
The vehicle speed measuring device according to the present invention includes a light receiving element that outputs video signals of a vehicle passing through a set area and a reset area set at a required distance from a vehicle speed detection point as a set signal and a reset signal, respectively; means for sampling each of the reset signals at a predetermined period; means for determining the deviation between the current sampling value and the previous sampling value for each of the set signal and the reset signal; and a reference value, and if the absolute value of the deviation is larger than a predetermined reference value, it is determined that the state is in an increasing state or a decreasing state, and a means for storing this determination result, and there is no memory of the above determination. means for detecting the rise or fall of the set signal and reset signal from the road surface level by determining that it is the first increasing state or decreasing state based on the above, and storing this;
For each of the set signal and reset signal, if the signal does not rise or fall from the road surface level, it is detected that the road surface level has been exceeded based on the fact that the deviation between the current sampling value and the road surface level is greater than or equal to a predetermined vehicle confirmation level. a timer that starts counting from zero upon detection of a rising or falling edge of the set signal from the road surface level or exceeding the road surface level; and a timer that starts counting from zero when the rising edge of the reset signal is detected; If so, if there is a memory of detecting the falling of the set signal when the falling of the reset signal is detected and there is no memory of crossing the road, or when the falling of the reset signal is detected, there is a memory of detecting the falling of the set signal. If the vehicle is stored, the vehicle is characterized by comprising means for calculating the vehicle speed based on the time measured by the timer and the required distance at that time.

この発明ではセツト域、リセツト域を通過する
車両の検知信号すなわちセツト信号とリセツト信
号の立上りのみならず立下りおよび路面レベル越
えも検出している。そして、セツト信号の立上
り、立下りまたは路面レベル越えがリセツト信号
の立上り、立下りまたは路面レベル越えよりも先
に生じた場合にのみこれらの信号の立上りから立
上りまで、立下りから立下りまでまたは路面越え
から路面越えまでの時間を検知し、この検知時間
に基づいて車両速度を測定しているので常に正確
な車両速度測定が行なえる。
In the present invention, not only the rising edge but also the falling edge of the detection signal of a vehicle passing through the set area and the reset area, that is, the set signal and the reset signal, and the exceeding of the road surface level are detected. Then, only if the rising edge, falling edge, or exceeding the road surface level of the set signal occurs before the rising edge, falling edge, or exceeding the road surface level of the reset signal, the rising edge to rising edge, falling edge to falling edge, or Since the time from when the vehicle crosses the road surface to when it crosses the road surface is detected, and the vehicle speed is measured based on this detection time, accurate vehicle speed measurement can be performed at all times.

以下、図面を参照してこの発明を詳細に説明す
る。
Hereinafter, the present invention will be explained in detail with reference to the drawings.

以下に示す例は、道路を俯瞰する位置に設置さ
れ多数の受光素子をもつた交通流計測装置を用い
た場合である。この装置は、道路上の多数の点の
車両情報を1箇所で収集しうる上に簡単に設備し
うるという利点がある。
The example shown below is a case where a traffic flow measuring device installed at a position overlooking the road and having a large number of light receiving elements is used. This device has the advantage of being able to collect vehicle information from multiple points on the road at one location and being easy to install.

第1図は、上記交通流計測装置のカメラの設置
の様子を示している。カメラ1は、支柱3などに
より道路L上方の所要高さ位置(たとえば6m)
に、道路Lの長さ方向の所要範囲(たとえば100
m)を俯瞰するように設置されている。カメラ1
内には、第3図に示すように、レンズ5と多数の
受光素子とを含む光学系4が備えられている。こ
の例では、カメラ1の視野内には交通流を計測す
べき車線にそつて6つの検出地点P1〜P6があ
る。カメラ1内の光学系4の結像面上であつてこ
れらの検出地点に対応する箇所に、各1対ずつの
受光素子dS1,dR1〜dS6,dR6が配置され
ている。これらの受光素子はたとえばフオト・ダ
イオードからなる。1つのカメラで2車線の交通
流を計測する場合には、光学系4の結像面上には
多数の受光素子が2列に配例される。各検出地点
(Pで代表する)には第2図に示すように、セツ
ト域Sとリセツト域Rとが所要間隔lをおいて設
定されている。1対の受光素子(dS,dRで代表
する)は、これらの各域S,Rにそれぞれ対応し
ている。車両CAが検出地点Pをセツト域Sから
リセツト域Rに向けて通過すると、後述するよう
に、受光素子dSおよびdRから時間tだけずれた
車両検知映像信号が出力される。そして、この時
間tと距離lとにもとづいて車両の走行速度が算
出される。
FIG. 1 shows how the camera of the traffic flow measuring device is installed. The camera 1 is located at a required height above the road L (for example, 6 m) using the support 3 etc.
, the required range in the length direction of the road L (for example, 100
m) is installed so as to provide a bird's-eye view of the area. camera 1
Inside, as shown in FIG. 3, an optical system 4 including a lens 5 and a large number of light receiving elements is provided. In this example, within the field of view of the camera 1, there are six detection points P1 to P6 along the lane in which traffic flow is to be measured. Pairs of light receiving elements d S 1, d R 1 to d S 6, d R 6 are arranged at locations corresponding to these detection points on the image forming plane of the optical system 4 in the camera 1. ing. These light receiving elements are composed of photo diodes, for example. When measuring traffic flow in two lanes with one camera, a large number of light receiving elements are arranged in two rows on the imaging plane of the optical system 4. As shown in FIG. 2, at each detection point (represented by P), a set area S and a reset area R are set at a required interval l. A pair of light receiving elements (represented by d S and d R ) correspond to these regions S and R, respectively. When the vehicle CA passes through the detection point P from the set area S to the reset area R, a vehicle detection video signal shifted by a time t from the light receiving elements d S and d R is outputted, as will be described later. Then, the traveling speed of the vehicle is calculated based on this time t and distance l.

車両の走行速度、車頭間隔、渋滞度、車両の通
過台数その他の交通流情報は、カメラ1からの映
像信号にもとづいて処理装置2で得られる。第3
図を参照して、カメラ1内の各受光素子dS,dR
の出力信号は、自動利得制御機能を備えた増巾器
6で増巾されたのち、マルチプレクサ・チヤンネ
ル装置7に送られ、ここで12個の受光素子の各出
力が順次切換えられてA−D変換器8に送られ
る。A−D変換器8は、所定の周期(この例では
4.8ms)で、入力する受光素子の出力をAD変換
し、その結果を中央処理装置(CPUという)1
1に送る。
The processing device 2 obtains traffic flow information such as vehicle running speed, headway distance, degree of traffic congestion, number of passing vehicles, and other information based on video signals from the camera 1 . Third
Referring to the figure, each light receiving element d S , d R in camera 1
After the output signal is amplified by an amplifier 6 equipped with an automatic gain control function, it is sent to a multiplexer channel device 7, where the outputs of each of the 12 light receiving elements are sequentially switched and output from A to D. It is sent to converter 8. The A-D converter 8 operates at a predetermined period (in this example,
4.8ms), the output of the input light receiving element is AD converted, and the result is sent to the central processing unit (CPU) 1.
Send to 1.

処理装置2には2台のCPU11,12が備え
られている。CPU11は、A−D変換器8から
送られるデータにもとづいて、後述するところか
ら明らかになるように、各受光素子の出力信号波
形の分析処理を実行するとともに、マルチプレク
サ・チヤンネル装置7やA−D変換器8を制御す
る。CPU12は、CPU11によつて得られたデ
ータにもとづいて車両の走行速度の算出、渋滞度
の検出その他の交通流演算処理を行ない、かつ必
要な交通流情報を作成して伝送部(図示略)を経
て、センタに伝送する。各CPU11,12は、
実行プログラムを格納したプログラム・メモリ
(図示略)の他に、それぞれデータを記憶するロ
ーカル・メモリ13,14を備えており、また処
理装置2には両CPU11,12がアクセスしう
る共有メモリ15がある。
The processing device 2 is equipped with two CPUs 11 and 12. Based on the data sent from the A-D converter 8, the CPU 11 analyzes the output signal waveform of each light-receiving element, and also analyzes the output signal waveform of each light-receiving element based on the data sent from the A-D converter 8. Controls the D converter 8. The CPU 12 calculates the vehicle speed, detects the degree of congestion, and performs other traffic flow calculations based on the data obtained by the CPU 11, and also creates necessary traffic flow information and sends it to a transmission unit (not shown). The data is then transmitted to the center. Each CPU 11, 12 is
In addition to a program memory (not shown) that stores execution programs, the processing device 2 includes local memories 13 and 14 that store data, and a shared memory 15 that can be accessed by both CPUs 11 and 12. be.

第4a図から第4g図には、受光素子dS,dR
から出力される車両の映像信号の例が示されてい
る。セツト信号が受光素子dSの出力であり、リ
セツト信号が受光素子dRの出力である。第4a
図は最も一般的な映像信号を示している。車両は
路面よりも多く光を反射するので、車両が検出地
点Pに至ると受光素子の出力は、路面を検知して
いるレベル(路面レベルL0)よりも大きくな
る。そして、車両が通過すると受光素子の出力は
再び路面レベルL0に戻る。そこで、セツト信号
波形の立上り時点からリセツト信号波形の立上り
の時点までの時間を検知時間tとする。この検知
時間tは、車両がセツト域Sとリセツト域Rとの
間(距離l)を走行するのに要する時間であるか
ら、この車両の走行速度Vは次式で求められる。
ただしKは定数である。
4a to 4g show light receiving elements d S , d R
An example of a vehicle video signal output from a vehicle is shown. The set signal is the output of the light receiving element dS , and the reset signal is the output of the light receiving element dR . 4th a
The figure shows the most common video signals. Since the vehicle reflects more light than the road surface, when the vehicle reaches the detection point P, the output of the light receiving element becomes higher than the level at which the road surface is detected (road surface level L0). Then, when the vehicle passes, the output of the light receiving element returns to the road surface level L0 again. Therefore, the time from the rising edge of the set signal waveform to the rising edge of the reset signal waveform is defined as the detection time t. Since this detection time t is the time required for the vehicle to travel between the set area S and the reset area R (distance l), the traveling speed V of this vehicle is determined by the following equation.
However, K is a constant.

V=K・l/t 検知時間tの間に車両が実際に移動する距離
は、車両の形状、車高などの影響を受け車両ごと
に若干異なり、実際には上記の距離lとは等しく
ない。しかしながら、路面より所要高さだけ上方
の位置に検知面を仮想してこの検知面上で両域
S,R間の距離を測り、かつこの距離を統計的に
修正することにより、車両の走行速度を高精度に
測定することが可能である。
V=K・l/t The distance that a vehicle actually moves during the detection time t varies slightly depending on the vehicle due to the influence of the vehicle shape, vehicle height, etc., and is not actually equal to the above distance l. . However, by imagining a sensing surface at a position above the road surface by the required height, measuring the distance between both areas S and R on this sensing surface, and statistically correcting this distance, it is possible to increase the vehicle's running speed. It is possible to measure with high precision.

第4b図に示す信号波形は、ピークが非常に高
いレベルに達している。そこで適当なレベルに切
断レベルL1を設け、セツト信号およびリセツト
信号がそれぞれこの切断レベルL1を超える時点
の差を検知時間tとしている。そして、この検知
時間tを用いて上述の式により走行速度Vを算出
する。
The signal waveform shown in FIG. 4b has a peak reaching a very high level. Therefore, a cutoff level L1 is set at an appropriate level, and the difference between the times when the set signal and the reset signal each exceed the cutoff level L1 is defined as the detection time t. Then, using this detection time t, the traveling speed V is calculated using the above-mentioned formula.

第4c図に示す信号波形は、前部に路面レベル
L0よりも低い信号成分Aを含んでいる。この信
号成分Aは車両の前または後に生ずる影によるも
のである。影があるとその部分からの光量は少な
くなるから、信号は路面レベルL0よりも低くな
る。このような信号波形の場合には、セツト信号
およびリセツト信号がそれぞれ路面レベルL0を
超える時点を検出して、これらの時点の時間差を
検知時間tとする。また、第4c図の波形に対し
ては、影による成分Aに続いて車両による信号成
分があることを確認するために、車両確認レベル
L2を設け、信号レベルが路面レベルL0を横切
つて増大し、このレベルL2を超えたかどうかを
検査する。受光素子は、隣接する他車線を走行し
ている車両の影を検出する場合がある。この影に
よる信号は、成分Aのように路面レベルL0より
も低いレベルを示すが、後部で路面レベルL0よ
りも若干高いレベルになることがある。しかし、
この後部の若干高いレベルの信号成分は、確認レ
ベルL2よりも高くなることがないので、確認レ
ベルL2によつて、車両による信号と、他車線を
走行する車両の影による信号とを区別することが
できる。
The signal waveform shown in FIG. 4c includes a signal component A lower than the road surface level L0 at the front. This signal component A is due to a shadow appearing in front or behind the vehicle. When there is a shadow, the amount of light from that area decreases, so the signal becomes lower than the road surface level L0. In the case of such signal waveforms, the time points at which the set signal and the reset signal each exceed the road surface level L0 are detected, and the time difference between these times is defined as the detection time t. In addition, for the waveform in FIG. 4c, in order to confirm that there is a signal component caused by the vehicle following the component A caused by the shadow, a vehicle confirmation level L2 is provided, and the signal level increases across the road surface level L0. Then, it is checked whether this level L2 has been exceeded. The light receiving element may detect the shadow of a vehicle traveling in an adjacent lane. The signal due to this shadow shows a level lower than the road surface level L0 like component A, but it may reach a level slightly higher than the road surface level L0 at the rear. but,
This slightly higher level signal component at the rear never becomes higher than the confirmation level L2, so the confirmation level L2 can be used to distinguish between a signal caused by a vehicle and a signal caused by the shadow of a vehicle traveling in another lane. I can do it.

第4d図に示す信号波形もまた影による信号成
分A,Bを含んでいる。しかしながら、リセツト
信号の立下りの方がセツト信号の立下りよりも早
く起つている。リセツト信号の影による成分B
は、自己車両の影と隣接する他車線を走行する車
両の影とが重なることによつて現われる。このよ
うな信号波形の場合にも、各信号がそれぞれ路面
レベルL0(正確にはレベルL2)を超える時点
を検出して、これらの時点の時間差を検知時間t
とする。
The signal waveform shown in FIG. 4d also includes signal components A and B due to shadows. However, the fall of the reset signal occurs earlier than the fall of the set signal. Component B due to the shadow of the reset signal
This appears when the shadow of the own vehicle overlaps with the shadow of an adjacent vehicle traveling in another lane. Even in the case of such a signal waveform, the time points at which each signal exceeds the road surface level L0 (more precisely, the level L2) are detected, and the time difference between these points is determined as the detection time t.
shall be.

第4e図に示す信号波形では、リセツト信号の
方がセツト信号よりも早く立上つている。このよ
うな現象はあり得ないのでエラーとして処理し、
走行速度算出の基礎となる検知時間は測定されな
い。
In the signal waveform shown in FIG. 4e, the reset signal rises earlier than the set signal. Since such a phenomenon is impossible, treat it as an error.
Detection time, which is the basis for calculating running speed, is not measured.

第4f図に示す信号波形は、検出地点Pをバス
が通過するときに現われる波形で、路面レベルL
0から立上つて増大し、ピークに達したときにこ
のピーク・レベルが増加も減少もせずに平担のま
ましばらく続き、その後路面レベルL0まで減少
する。このような信号波形については第4a図の
波形と同じように、セツト信号とリセツト信号の
それぞれの立上りの時点の時間差を検知時間tと
する。信号レベルが増大も減少もしない状態を平
衡状態という。車両を検知しないときには受光素
子の出力は路面レベルL0にあり、平衡状態を保
つている。また、第4f図に示す信号のピーク・
レベルもまた平衡状態にある。このように平衡状
態には2つのレベルがあるので、これらを区別す
るために、両レベルの中間の位置に路面識別レベ
ルL3を設定する。
The signal waveform shown in Fig. 4f is a waveform that appears when the bus passes the detection point P, and is at the road surface level L.
It rises from 0 and increases, and when it reaches a peak, this peak level remains flat for a while without increasing or decreasing, and then decreases to the road surface level L0. Regarding such a signal waveform, the time difference between the rising points of the set signal and the reset signal is defined as the detection time t, as in the waveform shown in FIG. 4a. A state in which the signal level neither increases nor decreases is called an equilibrium state. When no vehicle is detected, the output of the light receiving element is at the road surface level L0, maintaining an equilibrium state. Also, the peak of the signal shown in Fig. 4f
The level is also in equilibrium. In this way, there are two levels in the equilibrium state, and in order to distinguish between them, the road surface identification level L3 is set at a position midway between the two levels.

第4g図に示す信号波形は、第4c図に示すも
のと似ており、車両の前または後に生じる影によ
る成分Aを含んでいる。しかし、第4c図に示す
信号においては、リセツト信号の立下りがセツト
信号が路面レベルL0を横切る時点よりも早く起
つているのに対し、第4g図では、リセツト信号
の立下りはセツト信号が路面レベルL0を横切る
時点よりも遅く起つている。このような信号波形
についても、セツト信号およびリセツト信号が路
面レベルL0を横切る時点の時間差を検知時間t
とする。
The signal waveform shown in Figure 4g is similar to that shown in Figure 4c and includes a component A due to shadows appearing in front or behind the vehicle. However, in the signal shown in FIG. 4c, the fall of the reset signal occurs earlier than the point at which the set signal crosses the road surface level L0, whereas in FIG. This occurs later than the time when the road surface level L0 is crossed. For such signal waveforms as well, the time difference between the set signal and the reset signal when they cross the road surface level L0 is defined as the detection time t.
shall be.

受光素子の出力信号波形の立上りや立下りを検
出するために、その信号の変化を判定する必要が
ある。受光素子の出力信号は、サンプリング周期
ごとにA−D変換器8でAD変換されるから、今
回のAD変換された結果を今回データDtとする。
今回データDtがそれ以前のデータよりも増加し
ているか、減少しているか、または平衡状態にあ
るかを判定するためには、今回データDtとそれ
以前のデータとの偏差Δωを求める必要がある。
この偏差Δωを求めるための対象となる以前のデ
ータを前処理データD0とする。この前処理デー
タD0はたとえば、前回のサンプリングされたデ
ータであつて、サンプリング周期ごとに更新され
る。また、上記判定のために、今回データDtと
前処理データD0との偏差Δωと比較される基準
の量を偏差基準量ω0とする。そして、Dt−D
0≧ω0であれば増加状態、Dt−D0≦−ω0
であれば減少状態|Dt−D0|<ω0であれば
平衡状態とする。このようにして信号の変化がサ
ンプリング周期ごとに判定される様子が第5図に
示されている。
In order to detect the rise or fall of the output signal waveform of the light receiving element, it is necessary to determine the change in the signal. Since the output signal of the light-receiving element is AD-converted by the A-D converter 8 every sampling period, the current AD-converted result is set as the current data Dt.
In order to determine whether the current data Dt is increasing, decreasing, or in equilibrium compared to the previous data, it is necessary to find the deviation Δω between the current data Dt and the previous data. .
Previous data to be used for determining this deviation Δω is defined as preprocessed data D0. This preprocessed data D0 is, for example, previously sampled data and is updated every sampling period. Furthermore, for the above determination, the reference amount to be compared with the deviation Δω between the current data Dt and the pre-processed data D0 is defined as the deviation reference amount ω0. And Dt-D
If 0≧ω0, increasing state, Dt−D0≦−ω0
If so, it is a decreasing state |Dt-D0|<ω0, it is an equilibrium state. FIG. 5 shows how the change in the signal is determined for each sampling period in this manner.

上記においては便宜的に、信号の状態に関係な
く前処理データD0をサンプリング周期ごとに更
新しているが、規定周期という概念を導入してこ
れをサンプリング周期の複数倍(たとえば4倍)
の時間とし、サンプリング周期ごとに偏差Δωと
基準量ω0とを比較して、偏差Δωが基準量ω0
以上である場合、または規定周期Tが経過したと
きに今回データDtを前処理データD0として前
処理データを更新することが望ましい。信号の立
上りまたは立下りが緩慢な場合には、増加量また
は減少量がサンプリング周期の時間では基準量ω
0に達しないことがある。規定周期は、このよう
な信号の緩慢な変化を検出するために導入され、
規定周期の範囲内で変化量が基準量ω0に達して
いるかどうかをみる。このような波形の変化を検
出する方式をまとめると次のようになる。規定周
期内にDt−D0≧ω0であれば増加状態とみな
し、規定周期内にDt−D0−≦ω0であれば減
少状態とみなす。そして、これらの判定をしたと
きに今回データDtを前処理データD0として採
用する。また、規定周期が経過しても|Dt−D
0|<ω0であれば平衡状態とみなして、前処理
データD0として今回データDtを採用する。
In the above, for convenience, the preprocessed data D0 is updated every sampling period regardless of the signal state, but by introducing the concept of a prescribed period, this is updated multiple times (for example, four times) the sampling period.
, the deviation Δω is compared with the reference amount ω0 at each sampling period, and the deviation Δω is the reference amount ω0.
In this case, or when the prescribed period T has elapsed, it is desirable to update the preprocessing data by using the current data Dt as the preprocessing data D0. If the rise or fall of the signal is slow, the amount of increase or decrease is equal to the reference amount ω during the sampling period.
It may not reach 0. The prescribed period is introduced to detect slow changes in such signals,
It is checked whether the amount of change has reached the reference amount ω0 within the specified period. The method for detecting such a change in waveform can be summarized as follows. If Dt-D0≧ω0 within the specified period, it is considered to be an increasing state, and if Dt-D0-≦ω0 within the specified period, it is considered to be a decreasing state. Then, when these determinations are made, the current data Dt is adopted as the preprocessed data D0. Also, even if the specified period has passed, |Dt−D
If 0|<ω0, it is regarded as an equilibrium state, and the current data Dt is adopted as the preprocessed data D0.

受光素子の出力映像信号の波形分析処理を
CPU11が実行するために、メモリ13,15
に各種のデータが記憶される。メモリ13には、
セツト信号およびリセツト信号の、今回データ
Dt、前処理データD0、偏差Δωおよび路面レ
ベルL0を記憶するエリヤと、セツト信号の開始
時パターンを記憶するエリアとがある。開始時パ
ターンとは、セツト信号が平衡状態で路面レベル
L0を維持したまま一定時間(これを終了確認時
間T1という)以上経過したのちに状態が変化
(増加または減少)したときのこの変化を示すパ
ターンである。これは、車両検知信号がまず立上
つたのか、それとも立下つたのかを調べるために
用いられる。終了確認時間T1は、個々の車両を
明確に区別するために、1台の車両が検出地点を
通過したことを確認するために設けられた時間で
ある。
Waveform analysis processing of the output video signal of the light receiving element
Memory 13, 15 for CPU 11 to execute
Various data are stored in the . In the memory 13,
Current data of set signal and reset signal
There is an area for storing Dt, preprocessed data D0, deviation Δω, and road surface level L0, and an area for storing the start pattern of the set signal. The start pattern indicates a change in the condition (increase or decrease) after a certain period of time (this is referred to as end confirmation time T1) has passed while the set signal is in an equilibrium state and the road surface level L0 is maintained. It's a pattern. This is used to check whether the vehicle detection signal first rises or falls. The end confirmation time T1 is a time provided to confirm that one vehicle has passed the detection point in order to clearly distinguish individual vehicles.

メモリ13にはまた、各種のフラグとして用い
られるエリアがある。セツト信号フラグF1およ
びリセツト信号フラグF11は、1台の車両がセ
ツト域Sおよびリセツト域Rを通過していて車両
検知信号がそれぞれ出力されていることを表わす
もので、セツト域Sおよびリセツト域Rの各受光
素子の出力が路面レベルL0から立上つてまたは
立下つて所要の変化をし、その後路面レベルL0
で平衡状態となり、路面レベルL0を保持したま
ま終了確認時間T1が経過するまでオンとされ
る。セツト信号一時終了フラグF2およびリセツ
ト信号一時終了フラグF12は、セツトおよびリ
セツトの各信号の終了確認時間T1が計時中であ
ることを示すもので、信号が路面レベルL0で平
衡状態に戻つたときにオンとされ、終了確認時間
T1が経過したときにオフとされる。セツト信号
開始フラグF3は、検知時間t(車両速度)の計
時中であることを表わすもので、セツト信号が路
面レベルL0から立上つたとき、立下つたときお
よび路面レベルL0を増加状態で横切つたときに
オンとされ、リセツト信号が路面レベルL0から
立上つたとき、立下つたときおよび路面レベルL
0を増加状態で横切つたときにオフとされる。セ
ツト信号再開始フラブF4は、車両の影による信
号成分A,Bの測定中であることを表わすもの
で、セツト信号が路面レベルL0から立下つたと
きにオンとされ、リセツト信号が路面レベルL0
から立下つたときおよび路面レベルを増加状態で
横切つたときにオフとされる。再々開始フラグF
5は、切断レベルL1を基準とした検知時間tの
計時中であることを示すもので、セツト信号が増
加状態で切断レベルL1を横切つたときにオンと
され、リセツト信号が増加状態で切断レベルL1
を横切つたときにオフとされる。再収集フラグF
6は、切断レベルL1を基準とした検知時間tの
測定が行なわれたことを表わし、再々開始フラグ
F5がオンでかつリセツト信号が増加状態で切断
レベルL1を横切つたときにオンとされ、リセツ
ト信号が路面レベルL0に戻つて終了確認時間T
1が経過したときにオフとされる。路面越えフラ
グF7は、セツト信号が最初立下つて路面レベル
L0よりも低いレベルになり、その後路面レベル
L0を越えたときにセツトされ、セツト信号が路
面レベルL0を越えたことを記憶するものであ
る。このフラグF7は、リセツト信号が同じよう
に路面レベルL0を越えたときにオフとされる。
データ異常フラグF13は、セツト信号とリセツ
ト信号の立上りや立下りの順序が逆になつた場合
にオンとされる。リセツト信号開始フラグF14
は、リセツト信号がはじめて立上りまたは立下り
を開始したときにオンとされ、ただちにオフとさ
れる。
The memory 13 also includes areas used as various flags. The set signal flag F1 and the reset signal flag F11 indicate that one vehicle is passing through the set area S and the reset area R and a vehicle detection signal is output, respectively. The output of each light-receiving element rises or falls from the road surface level L0, changes as required, and then returns to the road surface level L0.
It becomes an equilibrium state, and is kept on while maintaining the road surface level L0 until the end confirmation time T1 has elapsed. The set signal temporary end flag F2 and the reset signal temporary end flag F12 indicate that the end confirmation time T1 of each set and reset signal is being measured, and when the signal returns to the equilibrium state at the road surface level L0. It is turned on, and turned off when the end confirmation time T1 has elapsed. The set signal start flag F3 indicates that the detection time t (vehicle speed) is being measured, and is set when the set signal rises from the road surface level L0, when the set signal falls from the road surface level L0, and when the set signal crosses the road surface level L0 in an increasing state. It is turned on when the reset signal is turned off, and when the reset signal rises and falls from the road surface level L0, and when the reset signal
It is turned off when it crosses 0 in an increasing state. The set signal restart flag F4 indicates that signal components A and B due to the shadow of the vehicle are being measured, and is turned on when the set signal falls from the road surface level L0.
It is turned off when the vehicle falls from the ground and crosses the road surface level in an increasing manner. Repeat start flag F
5 indicates that the detection time t is being measured based on the cutting level L1, and is turned on when the set signal crosses the cutting level L1 in an increasing state, and is turned on when the reset signal is in an increasing state and disconnects. Level L1
It is considered off when it crosses the Recollection flag F
6 represents that the detection time t was measured with reference to the cutting level L1, and is turned on when the repeat start flag F5 is on and the reset signal crosses the cutting level L1 in an increasing state; Reset signal returns to road surface level L0 and completion confirmation time T
It is turned off when 1 has elapsed. The road surface crossing flag F7 is set when the set signal first falls to a level lower than the road surface level L0 and then exceeds the road surface level L0, and is used to store that the set signal has exceeded the road surface level L0. be. Similarly, this flag F7 is turned off when the reset signal exceeds the road surface level L0.
The data abnormality flag F13 is turned on when the rising and falling orders of the set signal and the reset signal are reversed. Reset signal start flag F14
is turned on when the reset signal first starts rising or falling, and is immediately turned off.

さらにメモリ13の所定のエリヤは、車両速度
カウンタC1、再車両速度カウンタC2および終
了後時間カウンタC3として用いられている。車
両速度カウンタC1は、路面レベルL0を基準と
した検知時間tを計数するものであつて、その内
容が、セツト信号が路面レベルL0から立上り、
立下りまたは増加状態で路面レベルL0を横切る
ときにクリヤされ、これらの時点から計時を開始
する。再車両速度カウンタC2は、切断レベルL
1を基準とした検知時間tを計時するものであつ
て、セツト信号が増加状態で切断レベルL1を横
切るときにクリヤされる。これらの両カウンタC
1,C2は説明の便宜上2個設けられているかの
ように表現されているが、1つのエリヤを両カウ
ンタC1,C2で兼用してもよい。終了後時間カ
ウンタC3は、終了確認時間T1を計時するもの
である。このカウンタC3は、セツト信号および
リセツト信号に対して各1台ずつ設けられるが、
説明の簡略化のためにC3で代表する。カウンタ
C3は、セツト信号フラグF1(リセツト信号フ
ラグF11)がオンであつてかつセツト一時終了
フラグF2(リセツト信号一時終了フラグF1
2)がオフの場合に、セツト信号(リセツト信
号)が平衡状態で路面レベルL0に達したときに
クリヤされ、この時点から計測動作を開始する。
Further, predetermined areas of the memory 13 are used as a vehicle speed counter C1, a re-vehicle speed counter C2, and an after-end time counter C3. The vehicle speed counter C1 counts the detection time t based on the road surface level L0, and its contents are as follows: the set signal rises from the road surface level L0,
It is cleared when the road surface level L0 is crossed in a falling or increasing state, and time measurement is started from these points. The re-vehicle speed counter C2 is at the cutting level L.
1, and is cleared when the set signal crosses the cutting level L1 in an increasing state. Both of these counters C
1 and C2 are expressed as if two are provided for convenience of explanation, but one area may be shared by both counters C1 and C2. The post-completion time counter C3 measures the completion confirmation time T1. This counter C3 is provided one each for the set signal and the reset signal.
To simplify the explanation, C3 is used as a representative. Counter C3 counts if the set signal flag F1 (reset signal flag F11) is on and the set temporary end flag F2 (reset signal temporary end flag F1) is on.
2) is off, the set signal (reset signal) is cleared when it reaches the road surface level L0 in an equilibrium state, and the measurement operation starts from this point.

共有メモリ15には、偏差基準量ω0、切断レ
ベルL1、車両確認レベルL2、路面識別レベル
L3、終了確認時間T1および異常速度カウント
数CMを記憶するエリヤを備えている。たとえば
隣接する車線を走行する車両の影を検知した場合
には、受光素子の出力信号は路面レベルL0から
立下つて所定の変化をしたのち再び路面レベルL
0に戻るが、回路の特性上(とくに増巾器6)一
時的に路面レベルL0よりも若干高いレベルにな
ることがある。車両確認レベルL2はこの影によ
る信号のレベルよりも若干高いレベルであつてか
つ路面レベルL0にできるだけ近いレベルに設定
されている。受光素子の出力信号が増加状態でこ
のレベルL2を越えたときに、この信号は車両に
よるものであつてかつ路面レベルL0を越えたと
判定される。車両カウンタC1,C2が計数を継
続していていつまでもクリヤされない場合には異
常である。これは、リセツト信号がセツト信号よ
りも早く出力された場合や、セツトがわのみにノ
イズが入り、このノイズによつて車両カウンタC
1,C2が計数を開始した場合などに起こる。異
常速度カウント数CMを予想される速度の最も遅
い車両を計数したときの車両カウンタC1,C2
のカウント数よりも若干大きい値としておき、カ
ウンタC1,C2の計数値がこのカウント数CM
を越した場合に異常事態として後述するように測
定処理を中止する。
The shared memory 15 includes areas for storing deviation reference amount ω0, cutting level L1, vehicle confirmation level L2, road surface discrimination level L3, end confirmation time T1, and abnormal speed count number CM. For example, when the shadow of a vehicle traveling in an adjacent lane is detected, the output signal of the light receiving element falls from the road surface level L0, changes to a predetermined value, and then returns to the road surface level L0.
However, due to the characteristics of the circuit (especially the amplifier 6), the level may temporarily rise to a level slightly higher than the road surface level L0. The vehicle confirmation level L2 is set to a level that is slightly higher than the level of the signal caused by this shadow and as close as possible to the road surface level L0. When the output signal of the light receiving element increases and exceeds level L2, it is determined that this signal is caused by the vehicle and has exceeded road surface level L0. If the vehicle counters C1 and C2 continue counting and are not cleared forever, it is abnormal. This occurs when the reset signal is output earlier than the set signal, or when noise enters only on the set side, and this noise causes the vehicle counter C
1, this occurs when C2 starts counting. Vehicle counters C1 and C2 when counting the abnormal speed count number CM of the vehicle with the slowest expected speed
The count value of counters C1 and C2 is set to be slightly larger than the count number CM.
If it exceeds the limit, it is considered an abnormal situation and the measurement process is stopped as described later.

メモリ15にはまた、収集フラグF15および
終了確認時間転送フラグF16として用いられる
エリヤがある。収集フラグF15は車両速度の測
定が終了したことを表わすものであつて、データ
異常フラグF13がオフであつてかつリセツト信
号の終了確認時間T1が経過したときにオンとさ
れる。このフラグF15がオンとなつたときに、
CPU12はメモリ15の速度データ・エリヤ内
に記憶されている速度データを取込む。CPU1
2による速度データの取込みが終了するとこのフ
ラグF15はオフとされる。終了確認時間転送フ
ラグF16は、リセツト信号の終了確認時間T1
が経過したときにオフとされる。CPU12は、
取込んだ速度データに応じて終了確認時間T1を
決定する機能をもつており、各車両速度測定ごと
に終了確認時間T1を変更する。CPU12が選
定した終了確認時間T1を共有メモリ15に転送
すると、このフラグF16がオンとされる。終了
確認時間T1としては、測定車両速度が速い場合
には短い時間が、遅い場合には長い時間が選定さ
れる。
The memory 15 also has an area used as a collection flag F15 and an end confirmation time transfer flag F16. The collection flag F15 indicates that the measurement of the vehicle speed has been completed, and is turned on when the data abnormality flag F13 is off and the end confirmation time T1 of the reset signal has elapsed. When this flag F15 turns on,
The CPU 12 reads the speed data stored in the speed data area of the memory 15. CPU1
When the acquisition of speed data in step 2 is completed, this flag F15 is turned off. The end confirmation time transfer flag F16 indicates the end confirmation time T1 of the reset signal.
It is turned off when the period has elapsed. The CPU 12 is
It has a function of determining the completion confirmation time T1 according to the captured speed data, and changes the completion confirmation time T1 for each vehicle speed measurement. When the end confirmation time T1 selected by the CPU 12 is transferred to the shared memory 15, this flag F16 is turned on. As the completion confirmation time T1, a short time is selected when the measured vehicle speed is fast, and a long time is selected when the measured vehicle speed is slow.

さらにメモリ15には、車両カウンタC1,C
2内容を転送して速度データを記憶する速度デー
タ・エリヤ、およびリセツト信号の波形の変化の
状態を記憶するパターン記憶エリヤが設けられて
いる。このパターン記憶エリヤのデータは、各種
の波形パターン処理で用いられる。
Furthermore, the memory 15 includes vehicle counters C1 and C.
There are provided a speed data area for transferring two contents and storing speed data, and a pattern storage area for storing changes in the waveform of the reset signal. The data in this pattern storage area is used in various waveform pattern processing.

第6図はCPU11によるセツト信号の波形分
析処理の手順を示している。この処理は、4.8mS
ごとに実行される。まず、AD変換された今回デ
ータDtを読込んで、今回データDtから前処理デ
ータD0を減算して偏差Δωを求める(ステツプ
21)。そして、この偏差Δωの絶対値と基準量
ω0とを比較して、セツト信号の変化が増加もし
くは減少か、または平衡かを判定し(ステツプ2
2)、増加または減少であればセツト信号一時終
了フラグF2をオフとする(ステツプ23)。こ
のフラグF2は、セツト信号が増加または減少状
態にあるときには常にオフであり、信号が平衡か
ら増加または減少に移つたときには、もしオンで
あつたならばオフとされる。
FIG. 6 shows the procedure of waveform analysis processing of the set signal by the CPU 11. This process takes 4.8mS
executed every time. First, the AD-converted current data Dt is read, and the preprocessed data D0 is subtracted from the current data Dt to obtain the deviation Δω (step 21). Then, the absolute value of this deviation Δω is compared with the reference amount ω0 to determine whether the change in the set signal is increasing, decreasing, or balanced (step 2).
2) If it is an increase or a decrease, the set signal temporary termination flag F2 is turned off (step 23). This flag F2 is always off when the set signal is increasing or decreasing, and is turned off if it was on when the signal moves from equilibrium to increasing or decreasing.

次に偏差Δωの正負をみることにより増加状態
か、減少状態かを判断し(ステツプ24)、増加
であれば今回データDtが切断レベルL1以上で
あるかどうかをみる(ステツプ25)。今回デー
タDtが切断レベルL1以上であれば、再収集フ
ラグF6がオンになつているかどうかをみる(ス
テツプ26)。再収集フラグF6がオフの場合に
はさらに再々開始フラグF5がオンかどうかをみ
る(ステツプ27)。今回データDtが切断レベル
L1以上であつて(ステツプ25でYES)、両フ
ラグF6,F5がともにオフのときには、セツト
信号が立上つて増加していつてはじめて切断レベ
ルL1を越えたのであるから(第4b図参照)、
再々開始フラグF5をオンとし(ステツプ28)
再車両速度カウンタC2をクリヤする(ステツプ
29)。これにより後述するように、再車両速度
カウンタC2による検知時間tの計時が開始す
る。ステツプ24,25でNOの場合、ステツプ
26,27でYESの場合およびステツプ29の
処理後、ステツプ30に進む。
Next, it is determined whether the deviation Δω is increasing or decreasing by checking whether it is positive or negative (step 24), and if it is increasing, it is checked whether the current data Dt is equal to or higher than the cutting level L1 (step 25). If the current data Dt is equal to or higher than the cutting level L1, it is checked whether the recollection flag F6 is on (step 26). If the re-collection flag F6 is off, it is further checked whether the re-start flag F5 is on (step 27). This time, if the data Dt is above the cutting level L1 (YES in step 25) and both flags F6 and F5 are off, it will not exceed the cutting level L1 until the set signal rises and increases ( (see Figure 4b),
Turn on the restart flag F5 (step 28)
The vehicle speed counter C2 is cleared again (step 29). As a result, as will be described later, the re-vehicle speed counter C2 starts counting the detection time t. If NO in steps 24 and 25, YES in steps 26 and 27, and after processing in step 29, the process advances to step 30.

ステツプ30では、セツト信号フラグF1がオ
フかどうかをみる。セツト信号の変化状態は増加
または減少なのであるから(ステツプ22で
YES)、セツト信号フラグF1がオフであればセ
ツト信号が立上りまたは立下りを開始したことを
意味する。そこで、立上りか立下りかをみるため
に再び増加か減少かを判断する(ステツプ3
1)。減少であれば立下りであるから、セツト信
号再開始フラグF4をオンとする(ステツプ3
2)(第4c図および第4d図参照)。増加の場合
にはこの処理をすることなくステツプ33に移
る。
In step 30, it is determined whether the set signal flag F1 is off. Since the change state of the set signal is increasing or decreasing (in step 22)
YES), if the set signal flag F1 is off, it means that the set signal has started rising or falling. Therefore, to see whether it is rising or falling, we again judge whether it is increasing or decreasing (step 3).
1). If it decreases, it means a fall, so the set signal restart flag F4 is turned on (step 3).
2) (see Figures 4c and 4d). In the case of an increase, the process moves to step 33 without performing this process.

この例では、路面レベルL0は車両検知ごとに
更新されている。路面レベルL0の更新タイミン
グは車両を検知していないときであればいつでも
よいが、ここでは車両の検知を開始したとき、す
なわち路面レベルL0で平衡状態にありはじめて
セツト信号が立上りまたは立下つたときに(ステ
ツプ30でYES)更新するようにしている。ス
テツプ33ではそのときの前処理データD0を路
面レベルL0として更新する。
In this example, the road surface level L0 is updated every time a vehicle is detected. The road surface level L0 may be updated at any time as long as no vehicle is being detected, but here, it is when the vehicle detection starts, that is, when the set signal rises or falls after the road surface level L0 is in an equilibrium state. (YES in step 30). In step 33, the preprocessed data D0 at that time is updated as the road surface level L0.

そして、セツト信号フラグF1をオンとし(ス
テツプ34)、セツト信号開始フラグF3をオン
として(ステツプ35)、検知時間tを計測する
ために車両速度カウンタC1をクリヤする(ステ
ツプ36)。このことにより、後述するようにカ
ウンタC1の計時動作が開始する。さらに、セツ
ト信号の開始時の変化パターン(増加または減
少)を記憶し(ステツプ37)、今回データDtを
前処理データD0として前処理データを更新し
(ステツプ38)、処理を終える。
Then, the set signal flag F1 is turned on (step 34), the set signal start flag F3 is turned on (step 35), and the vehicle speed counter C1 is cleared in order to measure the detection time t (step 36). This starts the time counting operation of the counter C1 as described later. Furthermore, the change pattern (increase or decrease) at the start of the set signal is stored (step 37), and the preprocessed data is updated with the current data Dt as the preprocessed data D0 (step 38), and the process is completed.

セツト信号フラグF1が既にオンになつている
場合には(ステツプ30でNO)、増加か減少かを
みて(ステツプ40)、増加であれば第4c図、
第4d図および第4g図の波形のように路面レベ
ルL0を横切る場合があるので、そのことを検査
するために開始時の変化パターンが減少かどうか
をみる(ステツプ41)。開始時パターンが減少
の場合には、開始時においては影による信号成分
A,Bのように路面レベルL0から立下つてお
り、その後増加した(ステツプ40でYES)と
考えられるので、信号レベルが車両確認レベルL
2を超えているかどうかを調べるために今回デー
タDtから路面レベルL0を差引いて路面レベル
L0との偏差Δω1を求める(ステツプ42)。
そして、この偏差Δω1と確認レベルL2とを比
較して(ステツプ43)、偏差Δω1がレベルL
2以上であれば、セツト信号が路面レベルL0を
越えかつ車両による信号であるとみなして、セツ
ト信号開始フラグF3をオンとし(ステツプ4
4)かつ路面越えフラグF7をオンとして(ステ
ツプ45)車両速度カウンタC1をクリヤして検
知時間tの計時を開始させる(ステツプ46)。
この後およびステツプ40,41,43でそれぞ
れNOの場合にはステツプ38に移る。カウンタ
C1は、セツト信号が路面レベルL0から立上り
または立下りを開始したとき(ステツプ36)、
およびセツト信号が路面レベルL0を横切つたと
き(ステツプ46)にクリヤされる。
If the set signal flag F1 is already on (NO in step 30), check whether it increases or decreases (step 40).
As shown in the waveforms of FIGS. 4d and 4g, there are cases where the road surface level L0 is crossed, so to check this, it is checked whether the change pattern at the start is decreasing (step 41). If the pattern at the start is decreasing, it is considered that at the start, the signal components A and B due to shadows were falling from the road surface level L0, and then increased (YES at step 40), so the signal level is Vehicle confirmation level L
In order to check whether it exceeds 2, the road surface level L0 is subtracted from the current data Dt to find the deviation Δω1 from the road surface level L0 (step 42).
Then, this deviation Δω1 is compared with the confirmation level L2 (step 43), and the deviation Δω1 is found to be at the level L2.
If it is 2 or more, it is assumed that the set signal exceeds the road surface level L0 and is a signal from the vehicle, and the set signal start flag F3 is turned on (step 4).
4) Turn on the road crossing flag F7 (step 45), clear the vehicle speed counter C1, and start counting the detection time t (step 46).
After this and in the case of NO at each of steps 40, 41, and 43, the process moves to step 38. When the set signal starts rising or falling from the road surface level L0 (step 36), the counter C1
and is cleared when the set signal crosses the road surface level L0 (step 46).

ステツプ22で平衡の場合にはステツプ47に
移る。上述のように、サンプリング周期ごとに平
衡パターンかどうかを判定してもよいし、規定周
期の時間帯で平衡パターンかどうかを判定しても
よい。規定周期を基準とした場合には、この周期
ごとに、もし平衡であれば、ステツプ47に移
る。ステツプ47では、セツト信号一時終了フラ
グF2がオンかどうかをみる。このフラグF2が
オフの場合には、セツト信号検出中であつて第4
f図に示すようピーク・レベルの平衡状態か、ま
たは車両を検知していない路面レベルL0の平衡
状態である。そこで、セツト信号フラグF1がオ
ンかどうかをみる(ステツプ48)。このフラグ
F1がオンであれば路面レベルL0の平衡状態で
あるから、ステツプ38に進んで今回データDt
を前処理データD0として処理を終える(ステツ
プ38)。
If equilibrium is found in step 22, the process moves to step 47. As described above, it may be determined whether the pattern is a balanced pattern for each sampling period, or it may be determined whether the pattern is a balanced pattern in a time period of a prescribed period. If the prescribed period is used as a reference, the process moves to step 47 if equilibrium is established for each period. In step 47, it is checked whether the set signal temporary end flag F2 is on. If this flag F2 is off, the set signal is being detected and the fourth
As shown in figure f, this is an equilibrium state at the peak level or an equilibrium state at the road surface level L0 where no vehicle is detected. Therefore, it is checked whether the set signal flag F1 is on (step 48). If this flag F1 is on, the road surface level is in an equilibrium state of L0, so the process proceeds to step 38 and the current data Dt
The process is completed with the preprocessed data D0 as the preprocessed data D0 (step 38).

セツト信号フラグF1がオンの場合には、ピー
ク・レベルの平衡状態か、または立下つていつて
丁度路面レベルL0に達して平衡状態に移行した
瞬間かのどちらかである。そこで今回データDt
を路面識別レベルL3と比較する(ステツプ4
9)。今回データDtがレベルL3以上であればス
テツプ38に移る。今回データDtがレベルL3
未満の場合には丁度路面レベルL0に達したので
あるから、セツト信号一時終了フラグF2をオン
とし(ステツプ50)、終了後時間カウンタC3
をクリヤして、このカウンタC3による終了後経
過時間の計時開始に備える(ステツプ50)。そ
して、ステツプ38に進む。
When the set signal flag F1 is on, either the peak level is in an equilibrium state, or the moment it falls and has just reached the road surface level L0 and shifts to an equilibrium state. Therefore, this time the data Dt
is compared with the road surface discrimination level L3 (step 4).
9). If the data Dt is level L3 or higher this time, the process moves to step 38. This time data Dt is level L3
If it is less than 1, the road surface level L0 has just been reached, so the set signal temporary end flag F2 is turned on (step 50), and after the end, the time counter C3 is set.
is cleared to prepare for the counter C3 to start measuring the elapsed time after completion (step 50). The process then proceeds to step 38.

セツト信号一時終了フラグF2がオンの場合に
は(ステツプ47でYES)、時間を計時するため
に終了後時間カウンタC3の内容に+1し(ステ
ツプ52)、このカウンタC3の内容と終了確認
時間T1とを比較する(ステツプ53)。カウン
タC3の内容が時間T1未満であればステツプ3
8に移り、カウンタC3の内容が時間T1に達し
た場合には、カウンタC3をクリヤして(ステツ
プ54)、セツト信号フラグF1をオフにし(ス
テツプ55)、セツト信号一時終了フラグF2を
オフにして(ステツプ56)、ステツプ38に進
む。
If the set signal temporary end flag F2 is on (YES in step 47), the contents of the after-end time counter C3 are incremented by 1 to measure the time (step 52), and the contents of this counter C3 and the end confirmation time T1 are added. (Step 53). If the content of counter C3 is less than time T1, step 3
8, if the contents of the counter C3 have reached the time T1, the counter C3 is cleared (step 54), the set signal flag F1 is turned off (step 55), and the set signal temporary end flag F2 is turned off. (step 56), and the process proceeds to step 38.

第7図はCPU11によるリセツト信号の波形
分析処理手順を示している。この処理も4.8mSご
とに実行される。まずセツト信号開始フラグF3
がオンかどうかをみて(ステツプ60)、このフ
ラグF3がオンであれば車両速度カウンタC1の
内容に+1にして車両速度(検知時間t)を計数
する(ステツプ61)。そして、車両速度カウン
タC1の内容と異常速度カウント数CMとを比較
する(ステツプ62)。カウンタC1の内容が
CM以上であれば異常データと判断する(第4e
図参照)。セツト信号開始フラグF3はセツト信
号の立上りまたは立下り、およびセツト信号が路
面レベルL0を横切るときにオンとされる。また
セツト信号再開始フラグF4はセツト信号が路面
レベルL0から立下つたときにオンとされる。そ
して、これらのフラグF3,F4がオンとなつた
ときにカウンタC1がクリヤされ速度の測定を開
始する。異常データの場合には速度測定を中止す
るために、セツト信号開始フラグF3、セツト信
号再開始フラグF4をそれぞれオフとし(ステツ
プ63,64)、車両カウンタC1をクリヤする
(ステツプ65)。リセツト信号についてもその巾
を検出して異常かどうかを判定することが好まし
い。
FIG. 7 shows the waveform analysis processing procedure of the reset signal by the CPU 11. This process is also executed every 4.8mS. First, set signal start flag F3
If the flag F3 is on, the vehicle speed counter C1 is incremented by 1 and the vehicle speed (detection time t) is counted (step 61). Then, the contents of the vehicle speed counter C1 are compared with the abnormal speed count number CM (step 62). The contents of counter C1 are
If it is CM or higher, it is judged as abnormal data (4th e
(see figure). The set signal start flag F3 is turned on when the set signal rises or falls and when the set signal crosses the road surface level L0. Further, the set signal restart flag F4 is turned on when the set signal falls from the road surface level L0. Then, when these flags F3 and F4 are turned on, the counter C1 is cleared and speed measurement starts. In the case of abnormal data, the set signal start flag F3 and the set signal restart flag F4 are turned off (steps 63, 64) and the vehicle counter C1 is cleared (step 65) in order to stop the speed measurement. It is also preferable to detect the width of the reset signal to determine whether it is abnormal.

次に、再々開始フラグF5がオンかどうかをみ
て(ステツプ66)、このフラグF5がオンであ
れば再車両速度カウンタC2の内容に+1して車
両速度(検知時間t)を計数する(ステツプ6
7)。そして、ステツプ62と同じように、再車
両速度カウンタC2の内容が異常速度カウント数
CM以上であれば(ステツプ68でYES)、再々
開始フラグF5をオフとして(ステツプ69)、
再車両速度カウンタC2をクリヤする(ステツプ
70)。
Next, it is checked whether the re-start flag F5 is on (step 66), and if this flag F5 is on, the content of the re-vehicle speed counter C2 is incremented by 1 to count the vehicle speed (detection time t) (step 6).
7). Then, as in step 62, the contents of the vehicle speed counter C2 are changed to the abnormal speed count.
If it is more than CM (YES in step 68), turn off the restart flag F5 (step 69),
The vehicle speed counter C2 is cleared again (step 70).

以上の車両速度計数処理ののち、今回データ
Dtから前処理データD0を差引いて偏差Δωを
求め(ステツプ71)、この偏差Δωの絶対値と
基準量ω0を比較する(ステツプ72)。偏差Δ
ωの絶対値が基準量ω0以上であれば増加または
減少であるからリセツト信号一時終了フラグF1
2をオフとして(ステツプ73)、増加か減少か
を判定する(ステツプ74)。増加であればさら
に今回データDtが切断レベルL1に達している
かどうかをみて(ステツプ75)、達していれば
再々開始フラグF5がオンかどうかをみる(ステ
ツプ76)。今回データDtが切断レベルL1以上
でかつ再々開始フラグF5がオンの場合には、こ
のときにリセツト信号が切断レベルL1に達した
のであるから、車両速度の計数を終了させるため
に再々開始フラグF5をオフとし(ステツプ7
7)、再収集フラグF6をオンとする(ステツプ
78)(第4b図参照)。そして、このときの再車
両速度カウンタC2の内容をメモリ15の速度デ
ータ・エリヤに転送する(ステツプ79)。ステ
ツプ74〜76のいずれかでNOの場合にはただ
ちにステツプ80に移る。
After the above vehicle speed counting process, the current data
The preprocessed data D0 is subtracted from Dt to obtain the deviation Δω (step 71), and the absolute value of this deviation Δω is compared with the reference amount ω0 (step 72). Deviation Δ
If the absolute value of ω is greater than or equal to the reference amount ω0, it means an increase or a decrease, so the reset signal temporary end flag F1 is set.
2 is turned off (step 73), and it is determined whether there is an increase or decrease (step 74). If it is an increase, it is further checked whether the current data Dt has reached the cutting level L1 (step 75), and if so, it is checked whether the re-start flag F5 is on (step 76). If the current data Dt is higher than the cutting level L1 and the repeat start flag F5 is on, the reset signal has reached the cutting level L1 at this time, so the repeat start flag F5 is set in order to finish counting the vehicle speed. (step 7)
7) Turn on the recollection flag F6 (step 78) (see Figure 4b). Then, the contents of the vehicle speed counter C2 at this time are transferred to the speed data area of the memory 15 (step 79). If NO in any of steps 74-76, the process immediately moves to step 80.

ステツプ80では、リセツト信号フラグF11
がオフかどうかをみる。リセツト信号は増加また
は減少状態なのであるから、リセツト信号フラグ
F11がオフであれば、路面レベルL0からはじ
めて立上りまたは立下つた時点である。したがつ
て、リセツト信号フラグF11およびリセツト信
号開始フラグF14をそれぞれオンとし(ステツ
プ81,82)、そのときの前処理データD0を
路面レベルL0として記憶する(ステツプ8
3)。次に立上りか立下りかをみるために増加か
どうかを判断する(ステツプ84)。増加であれ
ば立上りである。増加の場合には、セツト信号開
始フラグF3が既にオンであれば車両速度の測定
が可能であり(第4a図など)、セツト信号開始
フラグF3がオフであれば異常である(第4e
図)。このことを確認するためにセツト信号開始
フラグF3の状態をみて(ステツプ85)、この
フラグF3がオンであれば正常とする。検知時間
tが終了したのであるから、セツト信号開始フラ
グF3をオフとし(ステツプ86)、念のために
セツト信号再開始フラグF4および路面越えフラ
グF7をそれぞれオフとして(ステツプ87,8
8)、車両速度カウンタC1の内容をメモリ15
の速度データ・エリヤに転送する(ステツプ8
9)。そして、リセツト信号開始フラグF14を
オフとして(ステツプ90)、波形処理のための
基礎データとして波形の変化をメモリ15のパタ
ーン記憶エリヤに記憶し(ステツプ91)、今回
データDtによつて前処理データD0を更新して
(ステツプ92)、処理を終える。ステツプ85で
セツト信号開始フラグF3がオフの場合には異常
であるからデータ異常フラグF13をオンとして
(ステツプ93)(第4e図参照)、カウンタC1
の内容を転送することなくステツプ90に移る。
At step 80, the reset signal flag F11
Check if is off. Since the reset signal is in an increasing or decreasing state, if the reset signal flag F11 is off, it means that the reset signal is rising or falling for the first time from the road surface level L0. Therefore, the reset signal flag F11 and the reset signal start flag F14 are turned on (steps 81 and 82), and the preprocessed data D0 at that time is stored as the road surface level L0 (step 8).
3). Next, it is determined whether there is an increase or not to see whether it is rising or falling (step 84). If it increases, it is a rising trend. In the case of an increase, if the set signal start flag F3 is already on, the vehicle speed can be measured (as shown in Fig. 4a), and if the set signal start flag F3 is off, it is abnormal (see Fig. 4e).
figure). To confirm this, the state of the set signal start flag F3 is checked (step 85), and if this flag F3 is on, it is determined to be normal. Since the detection time t has ended, the set signal start flag F3 is turned off (step 86), and just to be sure, the set signal restart flag F4 and the road crossing flag F7 are turned off (steps 87 and 8).
8) The contents of the vehicle speed counter C1 are stored in the memory 15.
(Step 8)
9). Then, the reset signal start flag F14 is turned off (step 90), the waveform change is stored in the pattern storage area of the memory 15 as basic data for waveform processing (step 91), and the preprocessed data is stored using the current data Dt. D0 is updated (step 92) and the process ends. If the set signal start flag F3 is off in step 85, it means that there is an abnormality, so the data abnormality flag F13 is turned on (step 93) (see Figure 4e), and the counter C1 is turned on.
The process moves to step 90 without transferring the contents.

ステツプ84で減少の場合には、第4c図、第
4d図および第4g図に示すように影による信号
成分がある。このような信号に対しては、まずセ
ツト信号再開始フラグF4がオンかどうかをみて
(ステツプ94)、オフであればさらにセツト信号
開始フラグF3がオンかどうかを調べて(ステツ
プ85)このフラグF3もオフであればデータ異
常フラグF13をオンとする(ステツプ93)
(第4d図参照)。この場合にもステツプ89の処
理をしないからカウンタC1の内容は転送されな
い。セツト信号再開始フラグF4がオンの場合に
は、路面越えフラグF7がオンかどうかをみる
(ステツプ95)。このフラグF7によつて第4c
図と第4g図の信号が区別される。路面越えフラ
グF7がオフの場合には(第4c図)さらにリセ
ツト信号開始フラグF14の状態をみて(ステツ
プ96)、このフラグF14がオンであればステ
ツプ85に移つて、セツト信号開始フラグF3の
状態をみる。そして、このフラグF3がオンであ
れば、フラグF3,F4,F7をそれぞれオフと
して(ステツプ86〜88)、カウンタC1の内
容をメモリ15の速度データ・エリヤにとりあえ
ず転送しておく。この場合の転送されるカウンタ
C1の内容は、セツト信号の立下りからリセツト
信号の立下りまでの時間であるが、この内容は後
に、セツト信号が路面レベルL0を越えた時点か
らリセツト信号が路面レベルL0を越えた時点ま
での時間(検知時間t)によつて書きかえられ
る。路面越えフラグF7がオンの場合には(ステ
ツプ95でYES)(第4g図)、セツト信号は既
に路面レベルL0を横切つており、検知時間tの
計時中なのであるからステツプ86〜89の処理
をすることなくステツプ90に進む。
In the case of a decrease in step 84, there is a signal component due to shadows, as shown in FIGS. 4c, 4d, and 4g. For such a signal, first check whether the set signal restart flag F4 is on (step 94), and if it is off, check whether the set signal start flag F3 is on (step 85). If F3 is also off, data abnormality flag F13 is turned on (step 93).
(See Figure 4d). In this case as well, since the process of step 89 is not performed, the contents of counter C1 are not transferred. If the set signal restart flag F4 is on, it is checked whether the road crossing flag F7 is on (step 95). By this flag F7, the 4th c
A distinction is made between the signals in Fig. 4 and Fig. 4g. If the road crossing flag F7 is off (Fig. 4c), the state of the reset signal start flag F14 is checked (step 96), and if this flag F14 is on, the process moves to step 85 and the set signal start flag F3 is set. Check the condition. If flag F3 is on, flags F3, F4, and F7 are turned off (steps 86 to 88), and the contents of counter C1 are temporarily transferred to the speed data area of memory 15. The contents of the counter C1 transferred in this case are the time from the falling edge of the set signal to the falling edge of the reset signal, but this content will later be changed from the time when the set signal exceeds the road surface level L0 to when the reset signal reaches the road surface level. It is rewritten by the time (detection time t) until the time when level L0 is exceeded. If the road surface crossing flag F7 is on (YES in step 95) (Figure 4g), the set signal has already crossed the road surface level L0 and the detection time t is being measured, so the processing in steps 86 to 89 is performed. Proceed to step 90 without doing anything.

ステツプ80でリセツト信号フラグF11が既
にオンの場合には、リセツト信号は既に立上りま
たは立下つて継続している。そこで、偏差Δωの
正負により増加状態にあるのか、減少状態にある
のかを調べ(ステツプ97)、増加であれば路面
レベルL0を横切つたかどうかを調べるために今
回データDtと路面レベルL0との差Δω1を求
め、ステツプ98)、この差Δω1が車両確認レ
ベルL2以上かどうかをみる(ステツプ99)。
差Δω1がレベルL2以上であれば、さらにセツ
ト信号開始フラグF3がオンかどうかをみて(ス
テツプ100)、このフラグF3がオンであれば
データ異常フラグF13をオフとして(ステツプ
101)(第4d図参照)、ステツプ86に進む。
ステツプ86〜89までの処理により、各フラグ
F3,F4,F7がオフとされ、かつセツト信号
が路面レベルL0を超えた時点から計時されてい
た検知時間t(カウンタC1の内容)がメモリ1
5の速度データ・エリヤに転送される(第4c
図、第4d図および第4g図参照)。ステツプ9
7,99および100でそれぞれNOの場合には
ステツプ91に移る。
If the reset signal flag F11 is already on in step 80, the reset signal has already risen or fallen and continues. Therefore, it is checked whether it is in an increasing state or a decreasing state depending on the sign or negative of the deviation Δω (step 97), and if it is an increase, in order to check whether it has crossed the road surface level L0, the current data Dt and the road surface level L0 are The difference Δω1 is determined (step 98), and it is determined whether this difference Δω1 is equal to or higher than the vehicle confirmation level L2 (step 99).
If the difference Δω1 is equal to or higher than the level L2, it is further checked whether the set signal start flag F3 is on (step 100), and if this flag F3 is on, the data abnormality flag F13 is turned off (step 101) (Fig. 4d). ), proceed to step 86.
Through the processing from steps 86 to 89, each of the flags F3, F4, and F7 is turned off, and the detection time t (content of the counter C1) that has been measured since the time when the set signal exceeds the road surface level L0 is stored in the memory 1.
5 speed data area (4c)
(see Figures 4d and 4g). Step 9
If NO at 7, 99 and 100, the process moves to step 91.

平衡状態の場合には(ステツプ72でNO)、ま
ずリセツト信号一時終了フラグF12がオンかど
うかをみて(ステツプ102)、このフラグF1
2がオフの場合には、リセツト信号フラグF11
がオンかどうかをみる(ステツプ103)。この
フラグF11がオフであれば路面を検知している
のであるからただちにステツプ91に移る。リセ
ツト信号フラグF11がオンの場合には丁度路面
レベルL0に達して平衡になつた可能性があるか
ら、今回データDtを路面識別レベルL3と比較
して(ステツプ104)、今回データDtがレベル
L3未満であれば路面レベルL0に戻つたとみな
して、リセツト信号一時終了フラグF12をオン
とし(ステツプ105)、終了後時間を計時する
ためにカウンタC3をクリヤして(ステツプ10
6)、ステツプ91に移る。ステツプ104で
YESの場合にはピーク・レベルにおける平衡状
態として(第4f図参照)、そのままステツプ9
1に移る。
In the case of an equilibrium state (NO in step 72), first check whether the reset signal temporary end flag F12 is on (step 102), and then set this flag F1.
2 is off, the reset signal flag F11
Check whether it is on (step 103). If this flag F11 is off, it means that the road surface is being detected, and the process immediately moves to step 91. If the reset signal flag F11 is on, there is a possibility that the road surface level L0 has just been reached and equilibrium has been achieved. Therefore, the current data Dt is compared with the road surface identification level L3 (step 104), and the current data Dt is at the level L3. If it is less than that, it is assumed that the road surface level has returned to L0, the reset signal temporary end flag F12 is turned on (step 105), and the counter C3 is cleared to measure the time after the reset signal is finished (step 10).
6), proceed to step 91. At step 104
If YES, proceed to step 9 as the equilibrium state at the peak level (see Figure 4f).
Move to 1.

リセツト信号一時終了フラグF12がオンの場
合には(ステツプ102でYES)、終了後時間カ
ウンタC3の内容に+1して時間を計時し(ステ
ツプ107)、カウンタC3の内容が終了確認時
間T1に達したかどうかをみる(ステツプ10
8)。終了確認時間T1に達していなければステ
ツプ91に移る。この時間T1に達した場合には
カウンタC3をクリヤし(ステツプ109)、フ
ラグF11,F12をそれぞれオフして(ステツ
プ110,111)、終了確認時間転送フラグF
16をオフとする(ステツプ112)。そして、
データ異常フラグF13がオンかどうかをみて
(ステツプ113)このフラグF13がオンであ
れば、ステツプ117に移つてデータ異常フラグ
F13をオフとしてステツプ91に移る。データ
異常フラグF13がオフであれば正常であるから
次に、再収集フラグF6がオンかどうかをみる
(ステツプ114)。このフラグF6がオンの場合
には切断レベルL1を基準にした速度測定であ
る。再収集フラグF6がオンの場合には、もし必
要であれば、切断レベルL1にもとづくデータに
対する所要の処理をして、その後フラグF6をオ
フとする(ステツプ115)。そして、収集フラ
グF15をオンとして(ステツプ116)、ステ
ツプ91に移る。ステツプ114でNOの場合に
も収集フラグF15をオンとして(ステツプ11
6)、ステツプ91に移る。
If the reset signal temporary end flag F12 is on (YES in step 102), after the end, the contents of the time counter C3 are incremented by 1 to measure the time (step 107), and the contents of the counter C3 reach the end confirmation time T1. Check if it was done (Step 10)
8). If the end confirmation time T1 has not been reached, the process moves to step 91. When this time T1 is reached, the counter C3 is cleared (step 109), the flags F11 and F12 are turned off (steps 110 and 111), and the end confirmation time transfer flag F
16 is turned off (step 112). and,
It is checked whether the data abnormality flag F13 is on (step 113). If this flag F13 is on, the process moves to step 117, where the data abnormality flag F13 is turned off, and the process moves to step 91. If the data abnormality flag F13 is off, it means that the data is normal, so next it is checked whether the recollection flag F6 is on (step 114). When this flag F6 is on, the speed is measured based on the cutting level L1. If the recollection flag F6 is on, if necessary, the necessary processing is performed on the data based on the cutting level L1, and then the flag F6 is turned off (step 115). Then, the collection flag F15 is turned on (step 116), and the process moves to step 91. Even if the answer in step 114 is NO, the collection flag F15 is turned on (step 11).
6), proceed to step 91.

CPU12は、19.2mSごとに収集フラグF15
の状態をみて、このフラグF15がオンであれ
ば、メモリ15の速度データ・エリヤから測定さ
れた検知時間データを取込んで所要の処理、たと
えば車両速度の算出、渋滞度の算出などを行な
う。CPU12は、メモリ15から検知時間デー
タを取込むと収集フラグF15をオフとする。ま
た、終了確認時間転送フラグF16がオフになる
と、CPU12は1台前の先行車両の走行速度に
もとづいて既に算出してある終了確認時間をメモ
リ15に転送して、この時間を変更する。そし
て、この後フラグ16をオンとする。
CPU12 collects the collection flag F15 every 19.2mS.
If the flag F15 is on, the measured detection time data is read from the speed data area of the memory 15 and necessary processing is performed, such as calculating the vehicle speed and the degree of congestion. When the CPU 12 takes in the detection time data from the memory 15, it turns off the collection flag F15. Further, when the completion confirmation time transfer flag F16 is turned off, the CPU 12 transfers the completion confirmation time already calculated based on the traveling speed of the preceding vehicle to the memory 15, and changes this time. After this, the flag 16 is turned on.

したがつて、第4a図、第4c図、および第4
g図に示すようにセツト信号の立上りまたは、立
下りがセツト信号の立上りまたは立下りよりも早
い場合には正常に車両速度を測定することがで
き、第4e図に示すようにリセツト信号の立上り
がセツト信号の立上りよりも早い場合や、第4d
図に示すように影による成分がありかつリセツト
信号の立下りがセツト信号の立下りよりも早い場
合には検知時間を計測しない。しかし、第4d図
のように影の成分についてはセツト信号とリセツ
ト信号の出力順序が逆ではあるが、これらの信号
が路面レベルを増加状態で横切る時点についてみ
ると正常である場合には、検知時間を計時して車
両速度を測定することができるのである。
Therefore, FIGS. 4a, 4c, and 4
If the rising or falling edge of the set signal is earlier than the rising edge or falling edge of the set signal, as shown in Figure 4e, the vehicle speed can be measured normally, and as shown in Figure 4e, the vehicle speed can be measured normally. is earlier than the rising edge of the set signal, or the 4th d
As shown in the figure, if there is a shadow component and the fall of the reset signal is earlier than the fall of the set signal, the detection time is not measured. However, as shown in Fig. 4d, although the output order of the set signal and reset signal is reversed for the shadow component, if these signals are normal when they cross the road surface level in an increasing state, then detection is possible. It is possible to time the vehicle and measure the speed of the vehicle.

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

第1図は交通流計測装置のカメラの設置状態を
示す図、第2図は検出地点の拡大図、第3図は上
記カメラの内部および処理装置を示す構成および
ブロツク図、第4図は映像信号波形および各フラ
グの状態を示すタイム・チヤート、第5図は波形
パターンの検出を示す説明図、第6図はセツト信
号処理の手順を示すフロー・チヤート、第7図は
リセツト信号処理の手順を示すフロー・チヤート
である。 P,P1〜P6……検出地点、dS1〜dR6…
…受光素子、S……セツト域、R……リセツト
域、L0……路面レベル、t……検知時間、F3
……セツト信号開始フラグ。
Fig. 1 is a diagram showing the installation state of the camera of the traffic flow measurement device, Fig. 2 is an enlarged view of the detection point, Fig. 3 is a configuration and block diagram showing the inside of the camera and the processing device, and Fig. 4 is the video image. A time chart showing the signal waveform and the status of each flag, Fig. 5 is an explanatory diagram showing waveform pattern detection, Fig. 6 is a flow chart showing the set signal processing procedure, and Fig. 7 is the reset signal processing procedure. This is a flow chart showing the following. P, P1 to P6...detection point, d S 1 to d R 6...
...Light receiving element, S...Set area, R...Reset area, L0...Road surface level, t...Detection time, F3
...Set signal start flag.

Claims (1)

【特許請求の範囲】 1 車両速度検出地点Pに所要距離lをおいて設
定されたセツト域Sとリセツト域Rを通過する車
両の映像信号をそれぞれセツト信号、リセツト信
号として出力する受光素子dS,dR、 セツト信号およびリセツト信号を所定周期でそ
れぞれサンプリングする手段8、 セツト信号およびリセツト信号のそれぞれにつ
いて、今回のサンプリング値Dtと先回のサンプ
リング値Doとの偏差Δωを求める手段、 セツト信号およびリセツト信号のそれぞれにつ
いて、上記偏差Δωと所定の基準値ω0とを比較
し、偏差の絶対値が所定の基準値よりも大きい場
合に、増加状態または減少状態にあると判定し、
この判定結果を記憶する手段F1,F11、 上記の判定の記憶がないことに基づいて初めて
の増加状態または減少状態であると判定すること
により、セツト信号およびリセツト信号の路面レ
ベルからの立上りまたは立下りを検出し、これを
記憶する手段、 セツト信号およびリセツト信号のそれぞれにつ
いて、路面レベルからの立上りまたは立下りでな
い場合に、今回のサンプリング値Dtと路面レベ
ルL0との偏差Δω1があらかじめ定めた車両確
認レベルL2以上であることに基づいて路面レベ
ル越えを検出する手段、 セツト信号についての路面レベルからの立上り
もしくは立下りまたは路面レベル越えの検出によ
つて零から計時を開始するタイマ、ならびに リセツト信号の立上りが検出された時にセツト
信号の立上り検出の記憶があれば、リセツト信号
の立下りが検出された時にセツト信号の立下り検
出の記憶がありかつ路面越えの記憶がなければ、
またはリセツト信号の路面越えが検出された時に
セツト信号の路面越え検出の記憶があれば、その
時点の上記タイマの計時時間と上記所要距離とに
基づいて車両速度を算出する手段、 を備えた車両速度測定装置。
[Scope of Claims] 1. A light-receiving element dS, which outputs video signals of a vehicle passing through a set area S and a reset area R, which are set at a required distance l from a vehicle speed detection point P, as a set signal and a reset signal, respectively. dR, means 8 for sampling each of the set signal and the reset signal at a predetermined period; means for determining the deviation Δω between the current sampling value Dt and the previous sampling value Do for each of the set signal and the reset signal; For each of the signals, the deviation Δω is compared with a predetermined reference value ω0, and if the absolute value of the deviation is larger than the predetermined reference value, it is determined that the signal is in an increasing state or a decreasing state,
Means F1 and F11 for storing this determination result determine that the rise or rise of the set signal and reset signal from the road surface level is determined based on the fact that the above determination is not stored. For each of the set signal and reset signal, the deviation Δω1 between the current sampling value Dt and the road surface level L0 is predetermined. means for detecting that the road surface level has been exceeded based on confirmation level L2 or higher; a timer that starts counting from zero upon detection of a rise or fall of the set signal from the road surface level or a detection that the road surface level has been exceeded; and a reset signal. If there is a memory of detecting the rising edge of the set signal when the rising edge of the reset signal is detected, if there is a memory of detecting the falling edge of the set signal when the falling edge of the reset signal is detected, and there is no memory of crossing the road surface,
Or, if there is a memory of the reset signal crossing the road surface detection when the reset signal crossing the road surface is detected, means for calculating the vehicle speed based on the time measured by the timer and the above required distance at that time. Speed measuring device.
JP14010780A 1980-10-06 1980-10-06 Vehicle speed measuring method Granted JPS5764899A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14010780A JPS5764899A (en) 1980-10-06 1980-10-06 Vehicle speed measuring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14010780A JPS5764899A (en) 1980-10-06 1980-10-06 Vehicle speed measuring method

Publications (2)

Publication Number Publication Date
JPS5764899A JPS5764899A (en) 1982-04-20
JPS6235158B2 true JPS6235158B2 (en) 1987-07-30

Family

ID=15261090

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14010780A Granted JPS5764899A (en) 1980-10-06 1980-10-06 Vehicle speed measuring method

Country Status (1)

Country Link
JP (1) JPS5764899A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63191066A (en) * 1987-02-03 1988-08-08 Nec Corp Method for measuring speed of vehicle

Also Published As

Publication number Publication date
JPS5764899A (en) 1982-04-20

Similar Documents

Publication Publication Date Title
US4433325A (en) Optical vehicle detection system
EP0332293B1 (en) Apparatus for measuring speed
US4813004A (en) Method for measuring the maximum gross weight of a motor vehicle
JPS6235158B2 (en)
JPS5843798B2 (en) How to process vehicle signals that include shadows
JP2563666B2 (en) Parking lot congestion state determination device
JPS5911960B2 (en) Vehicle speed measurement method
JPH0962983A (en) Vehicle type discriminating device
JPS5939799B2 (en) Nighttime signal processing method for traffic flow measurement equipment
JP2001357488A (en) Vehicle dimension measuring device
JP6887797B2 (en) Vehicle width measuring device, vehicle width measuring method, and program
JPS5938640B2 (en) Vehicle group speed measurement method
JPS5911958B2 (en) How to determine the end of vehicle signal waveform
JPS6235157B2 (en)
JPH1151644A (en) Distance measuring instrument for vehicle
JPS6122840B2 (en)
JP3602226B2 (en) Method and apparatus for measuring the number of passing vehicles
JPS5914756Y2 (en) Photoelectric road moisture detection device
JP3354448B2 (en) Vehicle distance measuring device
JPS6077297A (en) Stopped vehicle detection system
JPS6235159B2 (en)
JP2571814B2 (en) Image processing type traffic flow measurement system
JP3049974B2 (en) Traffic volume measuring device and traffic volume measuring method
JPH0318129B2 (en)
SU1052843A1 (en) Device for automatic gauging of width of rolled material