Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS5843798B2 - How to process vehicle signals that include shadows - Google Patents
[go: Go Back, main page]

JPS5843798B2 - How to process vehicle signals that include shadows - Google Patents

How to process vehicle signals that include shadows

Info

Publication number
JPS5843798B2
JPS5843798B2 JP14010580A JP14010580A JPS5843798B2 JP S5843798 B2 JPS5843798 B2 JP S5843798B2 JP 14010580 A JP14010580 A JP 14010580A JP 14010580 A JP14010580 A JP 14010580A JP S5843798 B2 JPS5843798 B2 JP S5843798B2
Authority
JP
Japan
Prior art keywords
signal
flag
vehicle
road surface
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
JP14010580A
Other languages
Japanese (ja)
Other versions
JPS5764897A (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.)
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 JP14010580A priority Critical patent/JPS5843798B2/en
Priority to US06/306,775 priority patent/US4433325A/en
Publication of JPS5764897A publication Critical patent/JPS5764897A/en
Publication of JPS5843798B2 publication Critical patent/JPS5843798B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Traffic Control Systems (AREA)

Description

【発明の詳細な説明】 この発明は、光学系を用いて走行車両の映像信号を得、
この映像信号から車両の走行速度などの交通流情報を取
出すさいに、映像信号中に影による成分が含まれている
場合の処理方法に関する。
DETAILED DESCRIPTION OF THE INVENTION This invention uses an optical system to obtain a video signal of a running vehicle,
The present invention relates to a processing method for extracting traffic flow information such as vehicle running speed from this video signal when the video signal contains components due to shadows.

車両がその影を車両の前または後にともなって走行して
いる場合には、この車両を把える光学系から出力される
映像信号には、車両による信号成分の他に、影による信
号成分が含まれる。
When a vehicle is traveling with its shadow in front or behind it, the video signal output from the optical system that detects the vehicle includes a signal component caused by the shadow in addition to the signal component caused by the vehicle. It will be done.

また、交通流計測車線に隣接する他の車線を走行してい
る車両の影が重なる場合もある。
Furthermore, the shadows of vehicles traveling in other lanes adjacent to the traffic flow measurement lane may overlap.

このような影による信号成分は車両速度の測定には外乱
として作用するので、正確な車両速度測定が期待できな
い。
Since the signal component caused by such a shadow acts as a disturbance in measuring the vehicle speed, accurate vehicle speed measurement cannot be expected.

この発明は、光学系の映像信号のうち影による成分を排
除して車両の走行速度などの交通流情報を正確に検出し
うる、影を含む車両信号の処理方法を提供するものであ
る。
The present invention provides a method for processing a vehicle signal including a shadow, which can accurately detect traffic flow information such as vehicle speed by eliminating shadow components from an optical system video signal.

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

以下に示す例は、道路を俯撤する位置に設置され多数の
受光素子をもった交通流計測装置を用いた場合である。
The example shown below is a case where a traffic flow measuring device installed at a position overlooking a road and having a large number of light receiving elements is used.

この装置は、道路上の多数の点の車両情報を1箇所で収
集しうる上に簡単に設備しうるという利点がある。
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図は、上記交通流計測装置のカメラの設置の様子を
示している。
FIG. 1 shows how the camera of the traffic flow measuring device is installed.

カメラ1は、支柱3などにより道路り上方の所要高さ位
置(たとえば6 m )に、道路りの長さ方向の所要範
囲(たとえば100m)を倍数するように設置されてい
る。
The camera 1 is installed at a required height position (for example, 6 m) above the road using a support 3 or the like so as to multiple the required range in the length direction of the road (for example, 100 m).

カメラ1内には、第3図に示すように、レンズ5と多数
の受光素子とを含む光学系4が備えられている。
As shown in FIG. 3, the camera 1 is equipped with an optical system 4 including a lens 5 and a large number of light receiving elements.

この例では、カメラ1の視野内には交通流を計測すべき
車線にそって6つの検出地点P1〜P6がある。
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.

カメラ1内の光学系4の結像面上であってこれらの検出
地点に対応する箇所に、各1対ずつの受光素子dSt
I dRt〜dsa 1dR6が配置されている。
A pair of light receiving elements dSt are placed on the image forming plane of the optical system 4 in the camera 1 at locations corresponding to these detection points.
I dRt to dsa 1dR6 are arranged.

これらの受光素子はたとえばフォト・ダイオードからな
る。
These light receiving elements are composed of photodiodes, for example.

1つのカメラで2車線の交通流を計測する場合には、光
学系4の結像面上には多数の受光素子が2列に配列され
る。
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.

各検出地点(Pで代表する)には第2図に示すように、
セツト域Sとリセット域Rとが所要間隔lをおいて設定
されている。
At each detection point (represented by P), as shown in Figure 2,
A set area S and a reset area R are set at a required interval l.

1対の受光素子(ds、dRで代表する)は、これらの
各域S、Hにそれぞれ対応している。
A pair of light receiving elements (represented by ds and dR) correspond to these regions S and H, respectively.

車両CAが検出地点Pをセット域Sからリセット域Rに
向けて通過すると、後述するように、受光素子dsおよ
びdRから時間tだけずれた車両検知映像信号が出力さ
れる。
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 the time t is output from the light receiving elements ds and dR, as will be described later.

そして、この時間tと距離lとにもとづいて車両の走行
速度が算出される。
Then, the traveling speed of the vehicle is calculated based on this time t and distance l.

車両の走行速度、車頭間隔、渋滞度、車両の通過台数そ
の他の交通流情報は、カメラ1からの映像信号にもとづ
いて処理装置2で得られる。
The processing device 2 obtains traffic flow information such as vehicle running speed, headway distance, degree of congestion, number of passing vehicles, and others based on video signals from the camera 1 .

第3図を参照して、カメラ1内の各受光素子ds、dR
の出力信号は、自動利得制御機能を備えた増巾器6で増
巾されたのち、マルチプレクサ・チャンネル装置7に送
られ、ここで12個の受光素子の各出力が順次切換えら
れてA−D変換器8に送られる。
With reference to FIG. 3, each light receiving element ds, dR in the camera 1
The output signal of is amplified by an amplifier 6 equipped with an automatic gain control function, and then 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.

A−D変換器8は、所定の周期(この例では4.8m5
)で、入力する受光素子の出力をAD変換し、その結果
を中央処理装置(CPUという)11に送る。
The A-D converter 8 has a predetermined period (4.8 m5 in this example).
) performs AD conversion on the output of the input light receiving element, and sends the result to a central processing unit (referred to as CPU) 11.

処理装置2には2台のCPU11,12が備えられてい
る。
The processing device 2 is equipped with two CPUs 11 and 12.

CPUI 1は、A−D変換器8から送られるテークに
もとづいて、後述するところから明らかになるように、
各受光素子の出力信号波形の分析処理を実行するととも
に、マルチプレクサ・チャンネル装置7やA−D変換器
8を制御する。
Based on the take sent from the A-D converter 8, the CPU 1 performs the following as will be clear from the description below.
It analyzes the output signal waveform of each light receiving element, and also controls the multiplexer channel device 7 and the A/D converter 8.

CPU12は、CPU11によって得られたデータにも
とずいて車両の走行速度の算出、渋滞度の検出その他の
交通流演算処理を行ない、かつ必要な交通流情報を作成
して伝送部(図示略)を経て、センタに伝送する。
The CPU 12 calculates vehicle running speed, detects the degree of congestion, and performs other traffic flow calculation processes based on the data obtained by the CPU 11, and creates necessary traffic flow information and sends it to a transmission unit (not shown). The data is then transmitted to the center.

各CPUI 1.12は、実行プログラムを格納したプ
ログラム・メモリ(図示略)の他に、それぞれテークを
記憶する四スカル・メモIJ 13 、14を備えてお
り、また処理装置2には両CPUI 1.12がアクセ
スしうる共有メモリ15がある。
Each CPU 1.12 is equipped with four skull memos IJ 13 and 14 for storing takes, respectively, in addition to a program memory (not shown) that stores an execution program. There is a shared memory 15 that can be accessed by .12.

第4a図から第4g図には、受光素子ds、dRから出
力される車両の映像信号の例が示されている。
4a to 4g show examples of vehicle video signals output from the light receiving elements ds and dR.

セット信号が受光素子dsの出力であり、リセット信号
が受光素子dRの出力である。
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.

第4a図は最も一般的な映像信号を示している。Figure 4a shows the most common video signal.

車両は路面よりも多く光を反射するので、車両が検出地
点Pに至ると受光素子の出力は、路面を検知しているレ
ベル(路面レベルLO)よりも大きくなる。
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 LO).

そして、車両が通過すると受光素子の出力は再び路面レ
ベルLOに戻る。
Then, when the vehicle passes, the output of the light receiving element returns to the road surface level LO again.

そこで、セット信号波形の立上り時点からリセット信号
波形の立上りの時点までの時間を検知時間tとする。
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.

この検知時間tは、車両がセット域Sとリセット域Rと
の間(距離l)を走行するのに要する時間であるから、
この車両の走行速度■は次式で求められる。
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 ■ of this vehicle is determined by the following formula.

ただしKは定数である。However, K is a constant.

検知時間tの間に車両が実際に移動する距離は、車両の
形状、車高などの影響を受は車両ごとに若干異なり、実
際には上記の距離lとは等しくない。
The distance that the vehicle actually moves during the detection time t is influenced by the shape of the vehicle, the height of the vehicle, etc., and differs slightly from vehicle to vehicle, and is actually not equal to the above-mentioned distance l.

しかしながら、路面より所要高さだけ上方の位置に検知
面を仮想してこの検知面上で周域S、R間の距離を測り
、かつこの距離を統計的に修正することにより、車両の
走行速度を高精度に測定することが可能である。
However, by imagining a sensing surface at a position above the road surface by the required height, measuring the distance between the circumferential 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図に示す信号波形は、ピークが非常に高いレベル
に達している。
The signal waveform shown in FIG. 4b has a peak reaching a very high level.

そこで適当なレベルに切断レベルL1を設け、セット信
号およびリセット信号がそれぞれこの切断レベルL1を
超える時点の差を検知時間tとしている。
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.

そして、この検知時間tを用いて上述の式により走行速
度■を算出する。
Then, using this detection time t, the traveling speed (■) is calculated using the above-mentioned formula.

第4c図に示す信号波形は、前部に路面レベルLOより
も低い信号成分Aを含んでいる。
The signal waveform shown in FIG. 4c includes a signal component A lower than the road surface level LO at the front.

この信号成分Aは車両の前または後に生ずる影によるも
のである。
This signal component A is due to a shadow appearing in front or behind the vehicle.

影があるとその部分からの光量は少なくなるから、信号
は路面レベルLOよりも低くなる。
When there is a shadow, the amount of light from that area decreases, so the signal becomes lower than the road level LO.

このような信号波形の場合には、セット信号およびリセ
ット信号がそれぞれ路面レベルLOを超える時点を検出
して、これらの時点の時間差を検知時間tとする。
In the case of such a signal waveform, the time points at which the set signal and the reset signal each exceed the road surface level LO are detected, and the time difference between these times is defined as the detection time t.

また、第4c図の波形に対しては、影による成分Aに続
いて車両による信号成分があることを確認するために、
車両確認レベルL2を設け、信号レベルが路面レベルL
Oを横切って増大し、このレベルL2を超えたかどうか
を検査する。
Also, for the waveform in Figure 4c, in order to confirm that there is a signal component due to the vehicle following component A due to the shadow,
A vehicle confirmation level L2 is provided, and the signal level is road surface level L.
It increases across O and checks whether this level L2 is exceeded.

受光素子は、隣接する他車線を走行している車両の影を
検出する場合がある。
The light receiving element may detect the shadow of a vehicle traveling in an adjacent lane.

この影による信号は、成分Aのように路面レベルLOよ
りも低いレベルを示すが、後部で路面レベルLOよりも
若干高いレベルになることがある。
The signal due to this shadow shows a level lower than the road surface level LO like component A, but it may reach a level slightly higher than the road surface level LO at the rear.

しかし、この後部の若干高いレベルの信号成分は、確認
レベルL2よりも高くなることがないので、確認レベル
L2によって、車両による信号と、他車線を走行する車
両の影による信号とを区別することができる。
However, this slightly higher level signal component at the rear never becomes higher than the confirmation level L2, so the confirmation level L2 makes it possible 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
を含んでいる。
The signal waveform shown in FIG. 4d also has signal components A and B due to shadows.
Contains.

しかしながら、リセット信号の立下りの方がセット信号
の立下りよりも早く起っている。
However, the fall of the reset signal occurs earlier than the fall of the set signal.

リセット信号の影による成分Bは、自己車両の影と隣接
する他車線を走行する車両の影とが重なることによって
現われる。
The shadow component B of the reset signal appears when the shadow of the own vehicle overlaps with the shadow of an adjacent vehicle traveling in another lane.

このような信号波形の場合にも、各信号がそれぞれ路面
レベルLO(正確にはレベルL2)を超える時点を検出
して、これらの時点の時間差を検知時間tとする。
Even in the case of such a signal waveform, the time point at which each signal exceeds the road surface level LO (more precisely, the level L2) is detected, and the time difference between these time points is defined as the detection time t.

第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をバスが通過す
るときに現われる波形で、路面レベルLOから立上って
増大し、ピークに達したときにこのピーク・レベルが増
加も減少もせずに平担のまましばらく続き、その後路面
レベルLOまで減少する。
The signal waveform shown in Fig. 4f is a waveform that appears when the bus passes the detection point P. It rises from the road surface level LO and increases, and when it reaches its peak, this peak level neither increases nor decreases. It remains flat for a while and then decreases to road surface level LO.

このような信号波形については第4a図の波形と同じよ
うに、セット信号とリセット信号のそれぞれの立上りの
時点の時間差を検知時間tとする。
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 of FIG. 4a.

信号レベルが増大も減少もしない状態を平衡状態という
A state in which the signal level neither increases nor decreases is called an equilibrium state.

車両を検知しないときには受光素子の出力は路面レベル
LOにあり、平衡状態を保っている。
When no vehicle is detected, the output of the light receiving element is at the road surface level LO, maintaining an equilibrium state.

また、第4f図に示す信号のピーク・レベルもまた平衡
状態にある。
Also, the peak level of the signal shown in Figure 4f is also in equilibrium.

このように平衡状態には2つのレベルがあるので、これ
らを区別するために、両レベルの中間の位置に路面識別
レベルL3を設定する。
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を含ん
でいる。
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.

しかし、第4c図に示す信号においては、リセット信号
の立下りがセット信号が路面レベルLOを横切る時点よ
りも早く起っているのに対し、第4g図では、リセット
信号の立下りはセット信号が路面レベルLOを横切る時
点よりも遅く起っている。
However, in the signal shown in FIG. 4c, the falling edge of the reset signal occurs earlier than the point at which the set signal crosses the road level LO, whereas in FIG. occurs later than the time when the road crosses the road surface level LO.

このような信号波形についても、セット信号およびリセ
ット信号が路面レベルLOを横切る時点の時間差を検知
時間tとする。
For such signal waveforms as well, the time difference between the times when the set signal and the reset signal cross the road surface level LO is defined as the detection time t.

受光素子の出力信号波形の立上りや立下りを検出するた
めに、その信号の変化を判定する必要がある。
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.

受光素子の出力信号は、サンプリング周期ごとにA−D
変換器8でAD変換されるから、今回のAD変換された
結果を今回テークDiとする。
The output signal of the light receiving element is A-D at each sampling period.
Since it is AD converted by the converter 8, the current AD converted result is set as the current take Di.

今回データDiがそれ以前のデータよりも増加している
か、減少しているか、または平衡状態にあるかを判定す
るためには、今回テークDiとそれ以前のデータとの偏
差Jωを求める必要がある。
In order to determine whether the current data Di is increasing, decreasing, or in equilibrium compared to the previous data, it is necessary to find the deviation Jω between the current take Di and the previous data. .

この偏差lωを求めるための対象となる以前のデータを
前処理データDOとする。
The previous data to be used for determining this deviation lω is assumed to be preprocessed data DO.

この前処理データDOはたとえば、前回のサンプリング
されたデータであって、サンプリング周期ごとに更新さ
れる。
This pre-processed data DO is, for example, previously sampled data, and is updated every sampling period.

また、上記判定のために、今回データDiと前処理デー
タDOとの偏差Aωと比較される基準の量を偏差基準量
ω0とする。
Further, for the above determination, the reference amount to be compared with the deviation Aω between the current data Di and the preprocessed data DO is defined as the deviation reference amount ω0.

そして、Dt−D。≧ω0でであれば増加状態、Di−
DO≦−ω0であれば減少状態、IDt−DOIくωO
であれば平衡状態とする。
And Dt-D. If ≧ω0, the state is increasing, Di-
If DO≦−ω0, it is in a decreasing state, IDt−DOIkuωO
If so, it is assumed to be in an equilibrium state.

このようにして信号の変化がサンプリング周期ごとに判
定される様子が第5図に示されている。
FIG. 5 shows how the change in the signal is determined for each sampling period in this manner.

上記においては便宜的に、信号の状態に関係なく前処理
データDOをサンプリング周期ごとに更新しているが、
規定周期という概念を導入してこれをサンプリング周期
の複数倍(たとえば4倍)の時間とし、サンプリング周
期ごとに偏差lωと基準量ω0とを比較して、偏差Jω
が基準量00以上である場合、または規定周期Tが経過
したときに今回データDtを前処理データDOとして前
処理データを更新することが望ましい。
In the above, for convenience, the preprocessed data DO is updated every sampling period regardless of the signal state.
Introducing the concept of a prescribed period, making this a time multiple times (for example, 4 times) the sampling period, and comparing the deviation lω and the reference amount ω0 for each sampling period, the deviation Jω
It is desirable to update the preprocessing data by using the current data Dt as the preprocessing data DO when is equal to or greater than the reference amount 00, or when the prescribed period T has elapsed.

信号の立上りまたは立下りが緩慢な場合には、増加量ま
たは減少量がサンプリング周期の時間では基準量ω0に
達しないことがある。
If the rise or fall of the signal is slow, the amount of increase or decrease may not reach the reference amount ω0 during the sampling period.

規定周期は、このような信号の緩慢な変化を検出するた
めに導入され、規定周期の範囲内で変化量が基準量ω0
に達しているかどうかをみる。
The specified period is introduced to detect such slow changes in the signal, and the amount of change within the specified period is equal to the reference amount ω0.
Check whether it has been reached.

このような波形の変化を検出する方式をまとめると次の
ようになる。
The method for detecting such a change in waveform can be summarized as follows.

規定周期内にDt−Do≧ω0であれば増加状態とみな
し、規定周期内にDt−DO≦−ωOであれば減少状態
とみなす。
If Dt-Do≧ω0 within a prescribed period, it is regarded as an increasing state, and if Dt-DO≦−ωO within a prescribed period, it is regarded as a decreasing state.

そして、これらの判定をしたときに今回データDtを前
処理データDOとして採用する。
Then, when these determinations are made, the current data Dt is adopted as the preprocessed data DO.

また、規定周期が経過しても Dt−D]<ωOであれ
ば平衡状態とみなして、前処理データDOとして今回デ
ータDiを採用する。
Further, even if the specified period has elapsed, if Dt-D]<ωO, it is considered as an equilibrium state, and the current data Di is adopted as the pre-processing data DO.

受光素子の出力映像信号の波形分析処理をCPU11が
実行するために、メモリ13.15に各種のデータが記
憶される。
Various data are stored in the memory 13.15 in order for the CPU 11 to execute waveform analysis processing of the output video signal of the light receiving element.

メモリ13には、セット信号およびリセット信号の、今
回データDt、前処理データDO1偏差Aωおよび路面
レベルLOを記憶するエリヤと、セット信号の開始時パ
ターンを記憶するエリアとがある。
The memory 13 has an area for storing current data Dt, preprocessed data DO1 deviation Aω, and road surface level LO of the set signal and reset signal, and an area for storing the starting pattern of the set signal.

開始時パターンとは、セット信号が平衡状態で路面レベ
ルLOを維持したまま一定時間(これを終了確認時間T
1という)以上経過したのちに状態が変化(増加または
減少)したときのこの変化を示すパターンである。
The starting pattern means that the set signal is in an equilibrium state and the road surface level LO is maintained for a certain period of time (this is the end confirmation time T).
This is a pattern that shows a change in the state (increase or decrease) after more than 1) have elapsed.

これは、車両検知信号がまず立上ったのか、それとも立
下ったのかを調べるために用いられる。
This is used to check whether the vehicle detection signal first rose or fell.

終了確認時間T1は、個々の車両を明確に区別するため
に、1台の車両が検出地点を通過したことを確認するた
めに設けられた時間である。
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にはまた、各種のフラグとして用いられるエ
リアがある。
The memory 13 also includes areas used as various flags.

セット信号フラグF1およびリセット信号フラグF11
は、1台の車両がセット域Sおよびリセット域Rを通過
していて車両検知信号がそれぞれ出力されていることを
表わすもので、セット域Sおよびリセット域Hの各受光
素子の出力が路面レベルLOから立上ってまたは立下っ
て所要の変化をし、その後路面レベルLOで平衡状態と
なり、路面レベルLOを保持したまま終了確認時間T1
が経過するまでオンとされる。
Set signal flag F1 and reset signal flag F11
indicates that one vehicle is passing through the set area S and the reset area R and vehicle detection signals are output respectively, and the output of each light receiving element in the set area S and reset area H is at the road surface level. It rises or falls from LO and makes the necessary changes, then reaches an equilibrium state at road surface level LO, and ends with confirmation time T1 while maintaining road surface level LO.
It remains on until the time period elapses.

セット信号一時終了フラグF2およびリセット信号一時
終了フラグF12は、セットおよびリセットの各信号の
終了確認時間T1が計時中であることを示すもので、信
号が路面レベルLOで平衡状態に戻ったときにオンとさ
れ、終了確認時間T1が経過したときにオフとされる。
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 LO. It is turned on, and turned off when the end confirmation time T1 has elapsed.

セット信号開始フラグF3は、検知時間t(車両速度)
の計時中であることを表わすもので、セット信号が路面
レベルLOから立上ったとき、立下ったときおよび路面
レベルLOを増加状態で横切ったときにオンとされ、リ
セット信号が路面レベルLOから立上ったとき、立下っ
たときおよび路面レベルLOを増加状態で横切ったとき
にオフとされる。
The set signal start flag F3 is the detection time t (vehicle speed)
It is turned on when the set signal rises or falls from the road surface level LO, or when it crosses the road surface level LO in an increasing state, and the reset signal is turned on when the road surface level LO is measured. It is turned off when the vehicle rises from the road surface level, falls from the road surface level LO, and crosses the road surface level LO in an increasing state.

セット信号再開始フラグF4は、車両の影による信号成
分A、Bの測定中であることを表わすもので、セット信
号が路面レベルLOから立下ったときにオンとされ、リ
セット信号が路面レベルLOから立下ったときおよび路
面レベルを増加状態で横切ったときにオフとされる。
The set signal restart flag F4 indicates that the 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 LO. It is turned off when the road surface level is increased.

再々開始フラグF5は、切断レベルL1を基準とした検
知時間tの計時中であることを示すもので、セット信号
が増加状態で切断レベルL1を横切ったときにオンとさ
れ、リセット信号が増加状態で切断レベルL1を横切っ
たときにオフとされる。
The repeat start flag F5 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 the reset signal is in an increasing state. It is turned off when it crosses the cutting level L1.

再収集フラグF6は、切断レベルL1を基準とした検知
時間tの測定が行なわれたことを表わし、再々開始フラ
グF5がオンでかつリセット信号が増加状態で切断レベ
ルL1を横切ったときにオンとされ、リセット信号が路
面レベルLOに戻って終了確認時間T1が経過したとき
にオフとされる。
The recollection flag F6 indicates that the detection time t has been measured based on the cutoff level L1, and is turned on when the repeat start flag F5 is on and the reset signal crosses the cutoff level L1 in an increasing state. Then, when the reset signal returns to the road surface level LO and the end confirmation time T1 has elapsed, it is turned off.

路面越えフラグF7は、セット信号が最初立下って路面
レベルLOよりも低いレベルになり、その後路面レベル
LOを越えたときにセットされ、セット信号が路面レベ
ルLOを越えたことを記憶するものである。
The road surface crossing flag F7 is set when the set signal first falls to a level lower than the road surface level LO and then exceeds the road surface level LO, and is used to remember that the set signal has exceeded the road surface level LO. be.

このフラグF7は、リセット信号が同じように路面レベ
ルLOを越えたときにオフとされる。
This flag F7 is turned off when the reset signal similarly exceeds the road surface level LO.

データ異常フラグF13は、セット信号とリセット信号
の立上りや立下りの順序が逆になった場合にオンとされ
る。
The data abnormality flag F13 is turned on when the rising and falling orders of the set signal and the reset signal are reversed.

リセット信号開始フラグF14は、リセット信号がはじ
めて立上りまたは立下りを開始したときにオンとされ、
ただちにオフとされる。
The reset signal start flag F14 is turned on when the reset signal starts rising or falling for the first time,
It will be turned off immediately.

さらにメモリ13の所定のエリヤは、車両速度カウンタ
C1,再車両速度カウンタC2および終了後時間カウン
タC3として用いられている。
Furthermore, 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.

車両速度カウンタC1は、路面レベルLOを基準とした
検知時間tを計数するものであって、その内容が、セッ
ト信号が路面レベルLOから立上り、立下りまたは増加
状態で路面レベルLOを横切るときにクリヤされ、これ
らの時点から計時を開始する。
The vehicle speed counter C1 counts the detection time t based on the road surface level LO, and its contents are as follows: When the set signal rises from the road surface level LO and crosses the road surface level LO in a falling or increasing state. Cleared and timekeeping starts from these points.

再車両速度カウンタC2は、切断レベルL1を基準とし
た検知時間tを計時するものであって、セット信号が増
加状態で切断レベルL1を横切るときにクリヤされる。
The re-vehicle speed counter C2 measures a detection time t based on the cutting level L1, and is cleared when the set signal crosses the cutting level L1 in an increasing state.

これらの両カウンタCI 、C2は説明の便宜上2個設
けられているかのように表現されているが、1つのエリ
ヤを両カウンタC1,C2で兼用してもよい。
Although these two counters CI and C2 are expressed as if two are provided for convenience of explanation, one area may be shared by both counters C1 and C2.

終了後時間カウンタC3は、終了確認時間T1を計時す
るものである。
The post-completion time counter C3 measures the completion confirmation time T1.

このカウンタC3は、セット信号およびリセット信号に
対して各1台ずつ設けられるが、説明の簡略化のために
C3で代表する。
Although one counter C3 is provided for each set signal and reset signal, C3 is used as a representative counter to simplify the explanation.

カウンタC3は、セット信号フラグF1(リセット信号
フラグF11)がオンであってかつセット一時終了フラ
グF2(リセット信号一時終了フラグF12)がオフの
場合に、セット信号(リセット信号)が平衡状態で路面
レベルLOに達したときにクリヤされ、この時点から計
時動作を開始する。
When the set signal flag F1 (reset signal flag F11) is on and the set temporary end flag F2 (reset signal temporary end flag F12) is off, the counter C3 indicates that the set signal (reset signal) is in an equilibrium state and the road surface is It is cleared when the level LO is reached, and timing operation starts from this point.

共有メモリ15には、偏差基準量ω0、切断レベルL1
、車両確認レベルL2、M面識別レベルL3、終了確認
時間T1および異常速度カウント数CMを記憶するエリ
ヤを備えている。
The shared memory 15 stores a deviation reference amount ω0 and a cutting level L1.
, a vehicle confirmation level L2, an M-plane discrimination level L3, an end confirmation time T1, and an area for storing abnormal speed count number CM.

たとえば隣接する車線を走行する車両の影を検知した場
合には、受光素子の出力信号は路面レベルLOから立下
って所定の変化をしたのち再び路面レベルLOに戻るが
、回路の特性上(とくに増巾器6)一時的に路面レベル
LOよりも若干高いレベルになることがある。
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 LO, undergoes a predetermined change, and then returns to the road surface level LO. However, due to the characteristics of the circuit (especially Amplifier 6) The level may temporarily become slightly higher than the road surface level LO.

車両確認レベルL2はこの影による信号のレベルよりも
若干高いレベルであってかつ路面レベルLOにできるだ
け近いレベルに設定されている。
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 is as close as possible to the road surface level LO.

受光素子の出力信号が増加状態でこのレベルL2を越え
たときに、この信号は車両によるものであってかつ路面
レベルLOを越えたと判定される。
When the output signal of the light receiving element exceeds this level L2 in an increasing state, it is determined that this signal is caused by the vehicle and has exceeded the road surface level LO.

車両カウンタC1,C2が計数を継続していていつまで
もクリヤされない場合には異常である。
If the vehicle counters C1 and C2 continue counting and are not cleared forever, it is abnormal.

これは、リセット信号がセット信号よりも早く出力され
た場合や、セットがわのみにノイズが入り、このノイズ
によって車両カウンタC1,C2が計数を開始した場合
などに起こる。
This occurs when the reset signal is output earlier than the set signal, or when noise enters only on the set side and the vehicle counters C1 and C2 start counting due to this noise.

異常速度カウント数CMを予想される速度の最も遅い車
両を計数したときの車両カウンタC1゜C2のカウント
数よりも若干大きい値としておき、カウンタC1,C2
の計数値がこのカウント数CMを越した場合に異常事態
として後述するように測定処理を中止する。
The abnormal speed count number CM is set to a value slightly larger than the count number of the vehicle counter C1°C2 when counting the vehicle with the slowest expected speed, and the counters C1 and C2
If the count value exceeds this count number CM, it is considered an abnormal situation and the measurement process is stopped as described later.

メモリ15にはまた、収集フラグF15および終了確認
時間転送フラグF16として用いられるエリヤがある。
The memory 15 also has an area used as a collection flag F15 and an end confirmation time transfer flag F16.

収集フラグF15は車両速度の測定が終了したことを表
わすものであって、データ異常フラグF13がオフであ
ってかつリセット信 く号の終了確認時間T1が経過し
たときにオンとされる。
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.

このフラグF15がオンとなったときに、CPU12は
メモリ15の速度データ・エリヤ内に記憶されている速
度データを取込む。
When this flag F15 is turned on, the CPU 12 reads the speed data stored in the speed data area of the memory 15.

CPU12による速度データの取込みが終了するとこの
フラグF15はオフとされる。
When the CPU 12 finishes taking in the speed data, this flag F15 is turned off.

終了確認時間転送フラグF16は、リセット信号の終了
確認時間T1が経過したときにオフとされる。
The end confirmation time transfer flag F16 is turned off when the end confirmation time T1 of the reset signal has elapsed.

CPU12は、取込んだ速度データに応じて終了確認時
間T1を決定する機能をもっており、各車両速度測定ご
とに終了確認時間T1を変更する。
The CPU 12 has a function of determining the end confirmation time T1 according to the loaded speed data, and changes the end confirmation time T1 for each vehicle speed measurement.

CPU12が選定した終了確認時間T1を共有メモリ1
5に転送すると、このフラグF16がオンとされる。
The end confirmation time T1 selected by the CPU 12 is stored in the shared memory 1.
5, this flag F16 is turned on.

終了確認時間T1としては、測定車両速度が速い場合に
は短い時間が、遅い場合には長い時間が選定される。
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,C2内容を
転送して速度データを記憶する速度データ・エリヤ、お
よびリセット信号の波形の変化の状態を記憶するパター
ン記憶エリヤが設けられている。
Furthermore, the memory 15 is provided with a speed data area that transfers the contents of vehicle counters C1 and C2 and stores speed data, and a pattern storage area that stores the state of change in the waveform of the reset signal.

このパターン記憶エリヤのデータは、各種の波形パター
ン処理で用いられる。
The data in this pattern storage area is used in various waveform pattern processing.

第6図はCPU11によるセット信号の波形分析処理の
手順を示している。
FIG. 6 shows the procedure of waveform analysis processing of the set signal by the CPU 11.

この処理は、4.8msごとに実行される。This process is executed every 4.8ms.

まず、AD変換された今回データDtを読込んで、今回
データDtから前処理データDOを減算して偏差Jωを
求める(ステップ21)。
First, the AD-converted current data Dt is read, and the preprocessed data DO is subtracted from the current data Dt to obtain the deviation Jω (step 21).

そして、この偏差Aωの絶対値と基準量ω0とを比較し
て、セット信号の変化が増加もしくは減少か、または平
衡かを判定しくステップ22)、増加または減少であれ
ばセット信号一時終了フラグF2をオフとする(ステッ
プ23)。
Then, the absolute value of this deviation Aω is compared with the reference amount ω0 to determine whether the change in the set signal is increased, decreased, or balanced (step 22). If the change is increased or decreased, the set signal temporary end flag F2 is turned off (step 23).

このフラグF2は、セット信号が増加または減少状態に
あるときには常にオフであり、信号が平衡から増加また
は減少に移ったときには、もしオンであったならばオフ
とされる。
This flag F2 is always off when the set signal is in an increasing or decreasing state, and is turned off if it was on when the signal moves from equilibrium to increasing or decreasing.

次に偏差lωの正負をみることにより増加状態か、減少
状態かを判断しくステップ24)、増加であれば今回デ
ータDtが切断レベル11以上であるかどうかをみる(
ステップ25)。
Next, by looking at the sign of the deviation lω, it is determined whether it is in an increasing state or a decreasing state (step 24). If it is an increase, it is checked whether the current data Dt is higher than or equal to the cutting level 11 (step 24).
Step 25).

今回データDtが切断レベル11以上であれば、再収集
フラグF6がオンになっているかどうかをみる(ステッ
プ26)。
If the current data Dt is at the cutting level 11 or higher, it is checked whether the recollection flag F6 is on (step 26).

再収集フラグF6がオフの場合にはさらに再々開始フラ
グF5がオンかどうかをみる(ステップ27)。
If the re-collection flag F6 is off, it is further checked whether the re-start flag F5 is on (step 27).

今回データD【が切断レベル11以上であって(ステッ
プ25でYES)、両フラグF6.F5がともにオフの
ときには、セット信号が立上って増加していってはじめ
て切断レベルL1を越えたのであるから(第4b図参照
:再々開始フラグF5をオンとしくステップ28)再車
両速度カウンタC2をクリヤする(ステップ29)。
This time, the data D[ is at the cutting level 11 or higher (YES in step 25), and both flags F6. When both F5 are off, the set signal rises and increases until it exceeds the cut-off level L1 (see Figure 4b: turn on the repeat start flag F5 and step 28). Clear C2 (step 29).

これにより後述するように、再車両速度カウンタC2に
よる検知時間tの計時が開始する。
As a result, as will be described later, the re-vehicle speed counter C2 starts counting the detection time t.

ステップ24.25でNOの場合、ステップ26.27
でYESの場合およびステップ29の処理後、ステップ
30に進む。
If NO in step 24.25, step 26.27
If YES, and after the process in step 29, the process advances to step 30.

ステップ30では、セット信号フラグF1がオフかどう
かをみる。
In step 30, it is checked whether the set signal flag F1 is off.

セット信号の変化状態は増加または減少なのであるから
(ステップ22でYES)、七ット信号フラグF1がオ
フであれはセット信号が立上りまたは立下りを開始した
ことを意味する。
Since the change state of the set signal is increase or decrease (YES in step 22), if the 7-bit signal flag F1 is off, it means that the set signal has started rising or falling.

そこで、立上りか立下りかをみるために再ひ増加か減少
かを判断する(ステップ31)。
Therefore, in order to see whether the signal is rising or falling, it is again determined whether the signal is increasing or decreasing (step 31).

減少であれば立下りであるから、セット信号再開始フラ
グF4をオンとする(ステップ32)(第4c図および
第4d図参照)。
If it is a decrease, it means a fall, and the set signal restart flag F4 is turned on (step 32) (see FIGS. 4c and 4d).

増加の場合にはこの処理をすることなくステップ33に
移る。
In the case of an increase, the process moves to step 33 without performing this process.

この例では、路面レベルLOは車両検知ごとに更新され
ている。
In this example, the road surface level LO is updated every time a vehicle is detected.

路面レベルLOの更新タイミングは車両を検知していな
いときであればいつでもよいが、ここでは車両の検知を
開始したとき、すなわち路面レベルLOで平衡状態にあ
りはじめてセット信号が立上りまたは立下ったときに(
ステップ30でYES)更新するようにしている。
The road surface level LO can be updated at any time as long as no vehicle is detected, but in this case, when vehicle detection starts, that is, when the set signal rises or falls after the road surface level LO is in an equilibrium state. To (
(YES in step 30).

ステップ33ではそのときの前処理データDOを路面レ
ベルLOとして更新する。
In step 33, the preprocessed data DO at that time is updated as the road surface level LO.

そして、セット信号フラグF1をオンとしくステップ3
4)、セット信号開始フラグF3をオンとして(ステッ
プ35)、検知時間1を計測するために車両速度カウン
タC1をクリヤする(ステップ36)。
Then, turn on the set signal flag F1 and step 3
4) Turn on the set signal start flag F3 (step 35), and clear the vehicle speed counter C1 to measure detection time 1 (step 36).

このことにより、後述するようにカウンタC1の計時動
作が開始する。
This starts the time counting operation of the counter C1 as described later.

さらに、セラじ信号の開始時の変化パターン(増加また
は減少)を記憶しくステップ37)、今回テークDiを
前処理データDOとして前処理データを更新しくステッ
プ38)、処理を終える。
Furthermore, the change pattern (increase or decrease) at the start of the Seraji signal is stored (step 37), the preprocessing data is updated using the current take Di as the preprocessing data DO (step 38), and the process ends.

セット信号フラグF1が既にオンになっている場合には
(ステップ30でNo)、増加か減少かをみて(ステッ
プ40)、増加であれば第4c図、第4d図および第4
g図の波形のように路面レベルLOを横切る場合がある
ので、そのことを検査するために開始時の変化パターン
が減少かどうかをみる(ステップ41)。
If the set signal flag F1 is already on (No in step 30), check whether it increases or decreases (step 40).
There are cases where the waveform crosses the road surface level LO as shown in the waveform in figure g, so to check this, it is checked whether the change pattern at the start is decreasing (step 41).

開始時パターンが減少の場合には、開始時においては影
による信号成分A、Bのように路面レベルLOから立下
っており、その後増加した(ステップ40でYES)と
考えられるので、信号レベルが車両確認レベルL2を超
えているかどうかを調べるために今回テークDtから路
面レベルLOを差引いて路面レベルLOとの偏差Jω1
を求める(ステップ42)。
If the pattern at the start is decreasing, it is considered that the signal components A and B due to shadows have fallen from the road surface level LO at the start, and have increased since then (YES at step 40), so the signal level is In order to check whether the vehicle confirmation level L2 is exceeded, the road surface level LO is subtracted from the take Dt this time, and the deviation from the road surface level LO is calculated Jω1.
(Step 42).

そして、この偏差Aω1と確認レベルL2とを比較して
(ステップ43)、偏差Jω1がレベル12以上であれ
ば、セット信号が路面レベルLOを越えかつ車両による
信号であるとみなして、セット信号開始フラグF3をオ
ンとしくステップ44)かつ路面越えフラグF7をオン
として(ステップ45)車両速度カウンタC1をクリヤ
して検知時間tの計時を開始させる(ステップ46)。
Then, this deviation Aω1 is compared with the confirmation level L2 (step 43), and if the deviation Jω1 is level 12 or higher, it is assumed that the set signal exceeds the road surface level LO and is a signal from the vehicle, and the set signal is started. The flag F3 is turned on (step 44), the road crossing flag F7 is turned on (step 45), and the vehicle speed counter C1 is cleared to start counting the detection time t (step 46).

この後およびステップ40,41.43でそれぞれNO
の場合にはステップ38に移る。
After this and in steps 40, 41 and 43 respectively NO
In this case, the process moves to step 38.

カウンタC1は、セット信号が路面レベルLDから立上
りまたは立下りを開始したとき(ステップ36)、およ
びセット信号が路面レベルLOを横切ったとき(ステッ
プ46)にクリヤされる。
The counter C1 is cleared when the set signal starts rising or falling from the road surface level LD (step 36) and when the set signal crosses the road surface level LO (step 46).

ステップ22で平衡の場合にはステップ47に移る。If equilibrium is reached 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.

規定周期を基準とした場合には、この周期ごとに、もし
平衡であれは、ステップ47に移る。
When the prescribed period is used as a reference, if there is equilibrium at each period, the process moves to step 47.

ステップ47では、セット信号一時終了フラグF2がオ
ンかどうかをみる。
In step 47, it is checked whether the set signal temporary end flag F2 is on.

このフラグF2がオフの場合には、セット信号検出中で
あって第4f図に示すようピーク・レベルの平衡状態か
、または車両を検知していない路面レベルLOの平衡状
態である。
When this flag F2 is off, the set signal is being detected and the vehicle is in a peak level equilibrium state as shown in FIG. 4f, or the vehicle is not being detected and the road surface level LO is in an equilibrium state.

そこで、セット信号フラグF1がオンかどうかをみる(
ステップ48)。
Therefore, check whether the set signal flag F1 is on (
Step 48).

このフラグF1がオンであれば路面レベルLOの平衡状
態であるから、ステップ38に進んで今回テークDtを
前処理データDOとして処理を終える(ステップ38)
If this flag F1 is on, it means that the road surface level LO is in an equilibrium state, so the process proceeds to step 38 and ends the process with the current take Dt as the preprocessing data DO (step 38).
.

セット信号フラグF1がオンの場合には、ピーク・レベ
ルの平衡状態か、または立下っていって丁度路面レベル
LOに達して平衡状態に移行した瞬間かのどちらかであ
る。
When the set signal flag F1 is on, either the peak level is in an equilibrium state, or the moment it falls and just reaches the road surface level LO and shifts to an equilibrium state.

そこで今回データDtを路面識別レベルL3と比較する
(ステップ49)。
Therefore, the current data Dt is compared with the road surface discrimination level L3 (step 49).

今回データDiがレベル13以上であればステップ38
に移る。
If the data Di is level 13 or higher this time, step 38
Move to.

今回データDtがレベルL3未満の場合には丁度路面レ
ベルLOに達したのであるから、セット信号一時終了フ
ラグF2をオンとしくステップ50)、終了後時間カウ
ンタC3をクリヤして、このカウンタC3による終了後
経過時間の計時開始に備える(ステップ50)。
If the data Dt is less than the level L3 this time, it has just reached the road surface level LO, so the set signal temporary end flag F2 is turned on (step 50), and after the end, the time counter C3 is cleared and the counter C3 is Preparation is made to start measuring the elapsed time after the end (step 50).

そしてステップ38に進む。The process then proceeds to step 38.

セット信号一時終了フラグF2がオンの場合には(ステ
ップ47でYES )、時間を計時するために終了後時
間カウンタC3の内容に+1しくステップ52)、この
カウンタC3の内容と終了確認時間T1とを比較する(
ステップ53)。
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 are combined with the end confirmation time T1. Compare (
Step 53).

カウンタC3の内容が時間T1未満であればステップ3
8に移り、カウンタC3の内容が時間T1に達した場合
には、カウンタC3をクリヤして(ステップ54)、セ
ット信号フラグF1をオフにしくステップ55)、セッ
ト信号一時終了フラグF2をオフにして(ステップ56
)、ステップ38に進む。
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
), proceed to step 38.

第7図はCPU11によるリセット信号の波形分析処理
手順を示している。
FIG. 7 shows the waveform analysis processing procedure of the reset signal by the CPU 11.

この処理も4.8msごとに実行される。This process is also executed every 4.8 ms.

まずセット信号開始フラグF3がオンかどうかをみて(
ステップ60)、このフラグF3がオンであれば車両速
度カウンタC1の内容に+1にして車両速度(検知時間
t)を計数する(ステップ61)。
First, check whether the set signal start flag F3 is on (
In step 60), if this flag F3 is on, the content of the vehicle speed counter C1 is incremented by 1 and the vehicle speed (detection time t) is counted (step 61).

そして、車両速度カウンタC1の内容と異常速度カウン
ト数CMとを比較する(ステップ62)。
Then, the contents of the vehicle speed counter C1 and the abnormal speed count number CM are compared (step 62).

カウンタC1の内容がCM以上であれば異常テークと判
断する(第4c図参照)。
If the content of the counter C1 is equal to or greater than CM, it is determined that there is an abnormal take (see FIG. 4c).

セット信号開始フラグF3はセット信号の立上りまたは
立下り、およびセット信号が路面レベルLOを横切ると
きにオンとされる。
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 LO.

またセット信号再開始フラグF4はセット信号が路面レ
ベルLOから立下ったときにオンとされる。
Further, the set signal restart flag F4 is turned on when the set signal falls from the road surface level LO.

そして、これらのフラグF3 、F4がオンとなったと
きにカウンタC1がクリヤされ速度の測定を開始する。
Then, when these flags F3 and F4 are turned on, the counter C1 is cleared and measurement of speed is started.

異常データの場合には速度測定を中止するために、セッ
ト信号開始フラグF3、セット信号再開始フラグF4を
それぞれオフとしくステップ63,64)、車両カウン
タC1をクリヤする(ステップ65)。
In the case of abnormal data, in order to stop the speed measurement, the set signal start flag F3 and the set signal restart flag F4 are respectively turned off (steps 63, 64), and the vehicle counter C1 is cleared (step 65).

リセット信号についてもその巾を検出して異常かどうか
を判定することが好ましい。
It is also preferable to detect the width of the reset signal to determine whether it is abnormal.

次に、再々開始フラグF5がオンかどうかをみて(ステ
ップ66)、このフラグF5がオンであれば再車両速度
カウンタC2の内容に+1して車両速度(検知時間t)
を計数する(ステップ67)。
Next, check whether the re-start flag F5 is on (step 66), and if this flag F5 is on, add 1 to the content of the re-vehicle speed counter C2 to determine the vehicle speed (detection time t).
is counted (step 67).

そして、ステップ62と同じように、再車両速度カウン
タC2の内容が異常速度カウント数CM以上であれば(
ステップ68でYES)、再々開始フラグF5をオフと
して(ステップ69)、再車両速度カウンタC2をクリ
ヤする(ステップ70)。
Then, as in step 62, if the content of the re-vehicle speed counter C2 is greater than or equal to the abnormal speed count number CM (
(YES in step 68), the re-start flag F5 is turned off (step 69), and the re-vehicle speed counter C2 is cleared (step 70).

以上の車両速度計数処理ののち、今回データDiから前
処理データDOを差引いて偏差Jωを求め(ステップ7
1)、この偏差lωの絶対値と基準量ω0を比較する(
ステップ72)。
After the above vehicle speed counting process, the deviation Jω is obtained by subtracting the preprocessed data DO from the current data Di (step 7
1), compare the absolute value of this deviation lω with the reference amount ω0 (
Step 72).

偏差Aωの絶対値が基準量00以上であれば増加または
減少であるからリセット信号一時終了フラグF12をオ
フとして(ステップ73)、増加か減少かを判定する(
ステップ74)。
If the absolute value of the deviation Aω is greater than or equal to the reference amount 00, it means an increase or a decrease, so the reset signal temporary end flag F12 is turned off (step 73) and it is determined whether it is an increase or a decrease (
Step 74).

増加であればさらに今回データDiが切断レベルL1に
達しているかどうかをみて(ステップ75)、達してい
れば再々開始フラグF5がオンかどうかをみる(ステッ
プ76)。
If it is an increase, it is further checked whether the current data Di has reached the cutting level L1 (step 75), and if it has reached it, it is checked whether the repeat start flag F5 is on (step 76).

今回データDtが切断レベル11以上でかつ再々開始フ
ラグF5がオンの場合には、このときにリセット信号が
切断レベルL1に達したのであるから、車両速度の計数
を終了させるために再々開始フラグF5をオフとしくス
テップ77)、再収集フラグF6をオンとする(ステッ
プ78)(第4b図参照)。
If the current data Dt is at the cutoff level 11 or higher and the re-start flag F5 is on, the reset signal has reached the cut-off level L1 at this time, so the re-start flag F5 is set in order to finish counting the vehicle speed. is turned off (step 77), and the recollection flag F6 is turned on (step 78) (see FIG. 4b).

そして、このときの再車両速度カウンタC2の内容をメ
モリ15の速度データ・エリヤに転送する(ステップ7
9)。
Then, the contents of the re-vehicle speed counter C2 at this time are transferred to the speed data area of the memory 15 (step 7
9).

ステップ74〜76のいずれかでNOの場合にはただち
にステップ80に移る。
If NO in any of steps 74 to 76, the process immediately moves to step 80.

ステップ80では、リセット信号フラグF11がオフか
どうかをみる。
In step 80, it is checked whether the reset signal flag F11 is off.

リセット信号は増加または減少状態なのであるから、リ
セット信号フラグF11がオフであれば、路面レベルL
Oからはじめて立上りまたは立下った時点である。
Since the reset signal is in an increasing or decreasing state, if the reset signal flag F11 is off, the road surface level L
This is the time when the signal rises or falls from O for the first time.

したがって、リセット信号フラグF11およびリセット
信号開始フラグF14をそれぞれオンとしくステップ8
1.82)、そのときの前処理データDOを路面レベル
LOとして記憶する(ステップ83)。
Therefore, in step 8, the reset signal flag F11 and the reset signal start flag F14 are respectively turned on.
1.82), the preprocessed data DO at that time is stored as the road surface level LO (step 83).

次に立上りか立下りかをみるために増加かどうかを判断
する(ステップ84)。
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.

増加の場合には、セット信号開始フラグF3が既にオン
であれば車両速度の測定が可能てあり(第4a図など)
、セット信号開始フラグF3がオフであれば異常である
(第4e図)。
In the case of an increase, if the set signal start flag F3 is already on, it is possible to measure the vehicle speed (as shown in Figure 4a).
, it is abnormal if the set signal start flag F3 is off (FIG. 4e).

このことを確認するためにセット信号開始フラグF3の
状態をみて(ステップ85)、このフラグF3がオンで
あれば正常とする。
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.

検知時間tが終了したのであるから、セット信号開始フ
ラグF3をオフとしくステップ86)、念のためにセッ
ト信号再開始フラグF4および路面越えフラグF7をそ
れぞれオフとして(ステップ87.88)、車両速度カ
ウンタC1の内容をメモリ15の速度データ・エリヤに
転送する(ステップ89)。
Since the detection time t has ended, the set signal start flag F3 is turned off (step 86), and just in case, the set signal restart flag F4 and the road crossing flag F7 are turned off (steps 87 and 88), and the vehicle The contents of speed counter C1 are transferred to the speed data area of memory 15 (step 89).

そして、リセット信号開始フラグF14をオフとして(
ステップ90)、波形処理のための基礎データとして波
形の変化をメモリ15のパターン記憶エリヤに記憶しく
ステップ91)、今回データDtによって前処理データ
DOを更新して(ステップ92)、処理を終える。
Then, the reset signal start flag F14 is turned off (
In step 90), changes in the waveform are stored in the pattern storage area of the memory 15 as basic data for waveform processing (step 91), and the preprocessing data DO is updated with the current data Dt (step 92), and the process ends.

ステップ85でセット信号開始フラグF3がオフの場合
には異常であるからデータ異常フラグF13をオンとし
て(ステップ93)(第4e図参照)、カウンタC1の
内容を転送することなくステップ90に移る。
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 FIG. 4e), and the process moves to step 90 without transferring the contents of the counter C1.

ステップ84で減少の場合には、第4c図、第4d図お
よび第4g図に示すように影による信号成分がある。
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.

このような信号に対しては、まずセット信号再開始フラ
グF4がオンかどうかをみて(ステップ94)、オフで
あればさらにセット信号開始フラグF3がオンかどうか
を調べて(ステップ85)このフラグF3もオフであれ
ばデータ異常フラグF13をオンとする(ステップ93
)(第4d図参照)。
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, the data abnormality flag F13 is turned on (step 93
) (see Figure 4d).

この場合にもステップ89の処理をしないからカウンタ
C1の内容は転送されない。
In this case as well, since the process of step 89 is not performed, the contents of the counter C1 are not transferred.

セット信号再開始フラグF4がオンの場合には、路面越
えフラグFTがオンかどうかをみる(ステップ95)。
If the set signal restart flag F4 is on, it is checked whether the road crossing flag FT is on (step 95).

このフラグF7によって第4c図と第4g図の信号が区
別される。
This flag F7 distinguishes the signals shown in FIG. 4c and FIG. 4g.

路面越えフラグF7がオフの場合には(第4C図)さら
にリセット信号開始フラグF14の状態をみて(ステッ
プ96)、このフラグF14がオンであればステップ8
5に移って、セット信号開始フラグF3の状態をみる。
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, step 8
5, the state of the set signal start flag F3 is checked.

そして、このフラグF3がオンであれば、フラグF3
、F4 、F7をそれぞれオフとして(ステップ86〜
88)、カウンタC1の内容をメモリ15の速度データ
・エリヤにとりあえず転送しておく。
Then, if this flag F3 is on, flag F3
, F4, and F7 are turned off (steps 86 to 8).
88), the contents of the counter C1 are temporarily transferred to the speed data area of the memory 15.

この場合の転送されるカウンタC1の内容は、セット信
号の立下りからリセット信号の立下りまでの時間である
が、この内容は後に、セット信号が路面レベルLOを越
えた時点からリセット信号が路面レベルLOを越えた時
点までの時間(検知時間t)によって書きかえられる。
The contents of the counter C1 transferred in this case are the time from the fall of the set signal to the fall of the reset signal, but this content will later be changed from the time when the set signal exceeds the road surface level LO to the time when the reset signal reaches the road surface level. It is rewritten by the time (detection time t) up to the time when level LO is exceeded.

路面越えフラグF7がオンの場合には(ステップ95で
YES )(第4g図)、セット信号は既に路面レベル
LOを横切っており、検知時間tの計時中なのであるか
らステップ86〜89の処理をすることなくステップ9
0に進む。
If the road surface crossing flag F7 is on (YES in step 95) (Fig. 4g), the set signal has already crossed the road surface level LO and the detection time t is being measured, so steps 86 to 89 are performed. Step 9 without
Go to 0.

ステップ80でリセット信号フラグF11が既にオンの
場合には、リセット信号は既に立上りまたは立下って継
続している。
If the reset signal flag F11 is already on in step 80, the reset signal has already risen or fallen and continues.

そこで、偏差Aωの正負により増加状態にあるのか、減
少状態にあるのかを調べ(ステップ97)、増加であれ
ば路面レベルLOを横切ったかどうかを調べるために今
回データDtと路面レベルLOとの差Jω1を求め、ス
テップ98)、この差Jω1が車両確認レベルL2以上
かどうかをみる(ステップ99)。
Therefore, it is checked whether it is in an increasing state or a decreasing state depending on the sign of the deviation Aω (step 97), and if it is an increase, in order to check whether it has crossed the road surface level LO, the difference between the current data Dt and the road surface level LO is determined. Jω1 is determined (step 98), and it is determined whether this difference Jω1 is equal to or higher than the vehicle confirmation level L2 (step 99).

差jω1がレベル12以上であれば、さらにセット信号
開始フラグF3がオンかどうかをみて(ステップ100
)、このフラグF3がオンであればデータ異常フラグF
13をオフとして(ステップ101)(第4d図参照)
、ステップ86に進む。
If the difference jω1 is level 12 or higher, it is further checked whether the set signal start flag F3 is on (step 100).
), if this flag F3 is on, the data abnormality flag F
13 off (step 101) (see Figure 4d)
, proceed to step 86.

ステップ86〜89までの処理により、各フラグF3.
F4.F7がオフとされ、かつセット信号が路面レベル
LOを超えた時点から計時されていた検知時間t(カウ
ンタC1の内容)がメモリ15の速度データ・エリヤに
転送される(第4C図、第4d図および第4g図参照)
Through the processing from steps 86 to 89, each flag F3.
F4. The detection time t (content of counter C1) that has been measured since F7 was turned off and the set signal exceeded the road surface level LO is transferred to the speed data area of the memory 15 (Fig. 4C, 4d). (see figure and figure 4g)
.

ステップ97.99′$6よび100でそれぞれNOの
場合にはステップ91に移る。
Step 97.99' If NO in each of $6 and 100, the process moves to step 91.

平衡状態の場合には(ステップ72でNO)、まずリセ
ット信号一時終了フラグF12がオンかどうかをみて(
ステップ102)、このフラグF12がオフの場合には
、リセット信号フラグF11がオンかどうかをみる(ス
テップ103)。
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), if this flag F12 is off, it is checked whether the reset signal flag F11 is on (step 103).

このフラグF11がオフであれば路面を検知しているの
であるからただちにステップ91に移る。
If this flag F11 is off, it means that the road surface is being detected, and the process immediately moves to step 91.

リセット信号フラグF11がオンの場合には丁度路面レ
ベルLOに達して平衡になった可能性があるから、今回
データDtを路面識別レベルL3と比較して(ステップ
104)、今回データDtがレベルL3未満であれば路
面レベルLOに戻ったとみなして、リセット信号一時終
了フラグF12をオンとしくステップ105)、終了後
時間を計時するためにカウンタC3をクリヤして(ステ
ップ106)、ステップ91に移る。
If the reset signal flag F11 is on, there is a possibility that the road surface level LO 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 LO, the reset signal temporary end flag F12 is turned on (step 105), and after the end, the counter C3 is cleared to measure the time (step 106), and the process moves to step 91. .

ステップ104でYESの場合にはピーク・レベルにお
ける平衡状態として(第4f図参照)、そのままステッ
プ91に移る。
If YES in step 104, the process is assumed to be in an equilibrium state at the peak level (see FIG. 4f), and the process directly proceeds to step 91.

リセット信号一時終了フラグF12がオンの場合には(
ステップ102でYES)、終了後時間カウンタC3の
内容に+1して時間を計時しくステップ107)、カウ
ンタC3の内容が終了確認時間T1に達したかどうかを
みる(ステップ108)終了確認時間T1に達していな
ければステップ91に移る。
If the reset signal temporary end flag F12 is on, (
Step 107) Check whether the contents of the counter C3 have reached the end confirmation time T1 (Step 108) If it has not been reached, the process moves to step 91.

この時間T1に達した場合にはカウンタC3をクリヤし
くステップ109)、フラグF11.F12をそれぞれ
オフして(ステップ110.111)、終了確認時間転
送フラグF16をオフとする(ステップ112)。
When this time T1 is reached, the counter C3 is cleared (step 109), and the flag F11. F12 is turned off (steps 110 and 111), and the end confirmation time transfer flag F16 is turned off (step 112).

そして、テ゛−タ異常フラグF13がオンかどうかをみ
て(ステップ113)このフラグF13がオンであれば
、ステップ117に移ってデータ異常フラグF13をオ
フとしてステップ91に移る。
Then, it is checked whether the data abnormality flag F13 is on (step 113), and 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.

データ異常フラグF13がオフであれば正常であるから
次に、再収集フラグF6がオンかどうかをみる(ステッ
プ114)。
If the data abnormality flag F13 is off, it means that the data is normal. Next, it is checked whether the recollection flag F6 is on (step 114).

このフラグF6がオンの場合には切断レベルL1を基準
にした速度測定である。
When this flag F6 is on, the speed is measured based on the cutting level L1.

再収集フラグF6がオンの場合には、もし必要であれば
、切断レベルL1にもとづくデータに対する所要の処理
をして、その後フラグF6をオフとする(ステップ11
5)。
If the recollection flag F6 is on, if necessary, perform the necessary processing on the data based on the cutting level L1, and then turn off the flag F6 (step 11).
5).

そして、収集フラグF15をオンとして(ステップ11
6)、ステップ91に移る。
Then, the collection flag F15 is turned on (step 11).
6), proceed to step 91.

ステップ114でNOの場合にも収集フラグF15をオ
ンとして(ステップ116)名テップ91に移る。
Even in the case of NO in step 114, the collection flag F15 is turned on (step 116) and the process moves to step 91.

CPU12は、19.2msごとに収集フラグF15の
状態をみて、このフラグF15がオンであれば、メモリ
15の速度データ・エリヤから測定された検知時間デー
タを取込んで所要の処理、たとえば車両速度の算出、渋
滞度の算出などを行なう。
The CPU 12 checks the state of the collection flag F15 every 19.2 ms, and if the flag F15 is on, the CPU 12 takes in the measured detection time data from the speed data area of the memory 15 and performs necessary processing, such as vehicle speed. calculation, and the degree of traffic congestion.

CPU12は、メモリ15から検知時間データを取込む
と収集フラグF15をオフとする。
When the CPU 12 takes in the detection time data from the memory 15, it turns off the collection flag F15.

また、終了確認時間転送フラグF16がオフになると、
CPU12は1台前の先行車両の走行速度にもとづいて
既に算出しである終了確認時間をメモリ15に転送して
、この時間を変更する。
Also, when the end confirmation time transfer flag F16 turns off,
The CPU 12 transfers the completion confirmation time, which has already been calculated based on the traveling speed of the preceding vehicle, to the memory 15, and changes this time.

そして、この後フラグ16をオンとする。After this, the flag 16 is turned on.

以上詳細に説明したようにこの発明によれば、光学系を
用いて検出した車両の映像信号中に影による信号成分が
ある場合には、この影による信号成分があることを記憶
している。
As described in detail above, according to the present invention, if there is a signal component due to a shadow in the video signal of the vehicle detected using the optical system, it is stored that there is a signal component due to the shadow.

そして、この記憶にもとづいて、セット信号およびリセ
ット信号が路面レベルをそれぞれ増加状態で横切る時点
を検出し、これらの検出時点の時間差を検知時間として
いる。
Based on this memory, the time points at which the set signal and the reset signal each cross the road surface level in an increasing state are detected, and the time difference between these detection times is defined as the detection time.

したがって、この検知時間は、影による信号成分ではな
く車両による信号成分にもとづくものとなり、影による
信号成分を排除して正確な車両速度などの交通流情報を
得ることができる。
Therefore, this detection time is based on the signal component due to the vehicle rather than the signal component due to the shadow, and it is possible to eliminate the signal component due to the shadow and obtain accurate traffic flow information such as vehicle speed.

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

第1図は交通流計測装置のカメラの設置状態を示す図、
第2図は検出地点の拡大図、第3図は上記カメラの内部
および処理装置を示す構成およびブロック図、第4図は
映像信号波形および各フラグの状態を示すタイム・チャ
ート、第5図は波形パターンの検出を示す説明図、第6
図はセット信号処理の手順を示すフロー・チャート、第
7図はリセット信号処理の手順を示すフロー・チャート
である。 dSt〜dRa ・・・・・・受光素子、P、P1〜P
6・・・・・・検出地点、S・・・・・・セット域、R
・・・・・・リセット域、A、B・・・・・・影による
信号成分、t・・・・・・検知時間、LD・・・・・・
路面レベル、L2・・・・・・車両確認レベル、F4・
・・・・・セット信号再開始フラグ。
Figure 1 is a diagram showing the installation status 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 processing device, Fig. 4 is a time chart showing the video signal waveform and the status of each flag, and Fig. 5 is a time chart showing the state of each flag. Explanatory diagram showing waveform pattern detection, No. 6
FIG. 7 is a flow chart showing the procedure of set signal processing, and FIG. 7 is a flow chart showing the procedure of reset signal processing. dSt~dRa ...... Light receiving element, P, P1~P
6...Detection point, S...Set area, R
...Reset area, A, B...Signal component due to shadow, t...Detection time, LD...
Road surface level, L2...Vehicle confirmation level, F4...
...Set signal restart flag.

Claims (1)

【特許請求の範囲】[Claims] 1 光学系を用いた交通流計測装置において、車両検出
地点に所要距離をおいてセット域とリセット域とを設け
、これらの各域を通過する車両の映像信号を得、車両検
知信号の前端部に路面レベルよりも低い影による信号成
分がある場合に、この影による信号成分があることを記
憶し、この記憶にもとづいて、セット域およびリセット
域の各車両検知信号が路面レベルをそれぞれ増加状態で
横切る時点を検出してこれらの検出時点の時間差を検知
時間とする、影を含む車両信号の処理方法。
1. In a traffic flow measurement device using an optical system, a set area and a reset area are provided at a required distance from the vehicle detection point, and video signals of vehicles passing through each of these areas are obtained, and the front end of the vehicle detection signal is If there is a signal component due to a shadow that is lower than the road surface level, it is memorized that there is a signal component due to this shadow, and based on this memory, each vehicle detection signal in the set area and reset area increases the road surface level. A method for processing vehicle signals including shadows, which detects the points at which the vehicle crosses the road and uses the time difference between these detection points as the detection time.
JP14010580A 1980-09-30 1980-10-06 How to process vehicle signals that include shadows Expired JPS5843798B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP14010580A JPS5843798B2 (en) 1980-10-06 1980-10-06 How to process vehicle signals that include shadows
US06/306,775 US4433325A (en) 1980-09-30 1981-09-29 Optical vehicle detection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14010580A JPS5843798B2 (en) 1980-10-06 1980-10-06 How to process vehicle signals that include shadows

Publications (2)

Publication Number Publication Date
JPS5764897A JPS5764897A (en) 1982-04-20
JPS5843798B2 true JPS5843798B2 (en) 1983-09-29

Family

ID=15261048

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14010580A Expired JPS5843798B2 (en) 1980-09-30 1980-10-06 How to process vehicle signals that include shadows

Country Status (1)

Country Link
JP (1) JPS5843798B2 (en)

Also Published As

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

Similar Documents

Publication Publication Date Title
US4433325A (en) Optical vehicle detection system
EP0117497B1 (en) System and method for detecting driver drowsiness
EP0488594A1 (en) Offset correction apparatus of turning angular velocity sensor
US20200269853A1 (en) Method and device for eliminating steady-state lateral deviation and storage medium
WO2025087348A1 (en) Target vehicle position correction method and apparatus, device and medium
KR940000019B1 (en) Distance measuring device
JPS5843798B2 (en) How to process vehicle signals that include shadows
JPS6235158B2 (en)
JPS5911960B2 (en) Vehicle speed measurement method
JPS5939799B2 (en) Nighttime signal processing method for traffic flow measurement equipment
JPS639623B2 (en)
JPS5938640B2 (en) Vehicle group speed measurement method
JPH04123199A (en) Parking lot congestion state discriminator
JPS5911958B2 (en) How to determine the end of vehicle signal waveform
JP2001307289A (en) Traffic signal control method
JP2571814B2 (en) Image processing type traffic flow measurement system
JPS6235157B2 (en)
JP3049974B2 (en) Traffic volume measuring device and traffic volume measuring method
JPS6122840B2 (en)
JP3602226B2 (en) Method and apparatus for measuring the number of passing vehicles
JPH0318129B2 (en)
JPS6077297A (en) Stopped vehicle detection system
JP2965714B2 (en) Travel time determination method
JP3354448B2 (en) Vehicle distance measuring device
JP2970023B2 (en) Vehicle dynamics measurement device