JPH0318129B2 - - Google Patents

Info

Publication number
JPH0318129B2
JPH0318129B2 JP13738880A JP13738880A JPH0318129B2 JP H0318129 B2 JPH0318129 B2 JP H0318129B2 JP 13738880 A JP13738880 A JP 13738880A JP 13738880 A JP13738880 A JP 13738880A JP H0318129 B2 JPH0318129 B2 JP H0318129B2
Authority
JP
Japan
Prior art keywords
data
area
counter
state
deviation
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
JP13738880A
Other languages
Japanese (ja)
Other versions
JPS5762493A (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 Corp
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 Corp filed Critical Omron Corp
Priority to JP13738880A priority Critical patent/JPS5762493A/en
Publication of JPS5762493A publication Critical patent/JPS5762493A/en
Publication of JPH0318129B2 publication Critical patent/JPH0318129B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)
  • Traffic Control Systems (AREA)

Description

【発明の詳細な説明】 この発明は、信号波形のパターン検出装置、さ
らに詳しくは時間とともに変化する信号レベルが
増加する傾向にあるのか、減少する傾向にあるの
か、それとも増加も減少もしない平衡状態を維持
しているのかを調べてその信号の波形パターンを
検出する装置に関する。
DETAILED DESCRIPTION OF THE INVENTION This invention relates to a signal waveform pattern detection device, and more particularly, to detect whether a signal level that changes over time tends to increase, decrease, or is in an equilibrium state where it neither increases nor decreases. This invention relates to a device that detects the waveform pattern of a signal by checking whether the signal is maintained.

信号波形パターンの検出は、種々の信号波形を
パターン判別する場合に必要である。信号波形パ
ターンの検出は、一般的には、入力する信号を一
定周期でサンプリングし、このサンプリング時点
における信号レベルと前回のサンプリング時点に
おける信号レベルとを比較してその大小を判別す
ることにより行なわれる。このさい、大小判別に
加えて、前回と今回のサンプリング時点における
信号レベルの偏差がある基準量を超えているかど
うかを判別することにより、信号レベルが増加ま
たは減少傾向にあるのか、それとも増加も減少も
しない平衡状態にあるのかを検出すると好都合で
ある。
Detection of signal waveform patterns is necessary for pattern discrimination of various signal waveforms. Detection of signal waveform patterns is generally performed by sampling the input signal at regular intervals and comparing the signal level at this sampling point with the signal level at the previous sampling point to determine the magnitude. . At this time, in addition to determining whether the signal level is large or small, it is also determined whether the deviation of the signal level between the previous and current sampling points exceeds a certain reference amount. It is advantageous to detect whether there is an equilibrium state or not.

このような信号波形パターン検出において、サ
ンプリング周期および基準量は、検出すべき信号
の波形に応じて適宜定められるべきであるが、検
出すべき信号に、急峻な立上りまたは立下りをも
つもの、非常に緩慢な変化を示すものなど種々の
波形が含まれている場合には、サンプリング周期
および基準量の決定は非常に困難である。たとえ
ば、基準量を大きくとつた場合には、サンプリン
グ周期を長くしなければ立上りや立下りは検出で
きない。サンプリング周期を長くすると、立上り
や立下り時点の実際の時点よりも遅く検出するこ
とになり、立上りや立下り時点を検出して何らか
の測定に使用する場合には、検出誤差が発生する
という問題が降こる。そこで、基準量をできるだ
け小さくすることが望ましいが、基準量が小さす
ぎるとA−D変換の誤差内に入つてしまつて検出
が不能となる。したがつて、基準量を検出不能と
なるほど小さくはない適当な値にしておく必要が
ある。この場合には、当然サンプリング周期も短
い方が好ましい。しかし、サンプリング周期が短
いと、急な立上り、立下りを検出することはでき
るが、非常になだらかな立上りや立下りを検出す
ることはできなくなる。
In such signal waveform pattern detection, the sampling period and reference amount should be determined appropriately according to the waveform of the signal to be detected, but if the signal to be detected has a steep rise or fall, or If the waveform includes various waveforms such as those showing slow changes, it is very difficult to determine the sampling period and reference amount. For example, when the reference amount is set to a large value, rising and falling edges cannot be detected unless the sampling period is lengthened. If the sampling period is lengthened, the rising or falling point will be detected later than the actual point, and if the rising or falling point is detected and used for some kind of measurement, there will be a problem that a detection error will occur. It's raining. Therefore, it is desirable to make the reference amount as small as possible, but if the reference amount is too small, it will fall within the error of AD conversion, making detection impossible. Therefore, it is necessary to set the reference amount to an appropriate value that is not so small that it becomes undetectable. In this case, it is naturally preferable that the sampling period be short. However, if the sampling period is short, a sudden rise or fall can be detected, but a very gentle rise or fall cannot be detected.

この発明は上記実情に鑑みてなされたものであ
つて、サンプリング周期をできるだけ短くして
も、緩慢な立上りや立下りと平衡状態とを明確に
識別しうる信号波形のパターン検出装置を提供す
るものである。
The present invention has been made in view of the above circumstances, and provides a signal waveform pattern detection device that can clearly distinguish between a slow rise or fall and an equilibrium state even if the sampling period is as short as possible. It is.

この発明による信号波形のパターン検出装置
は、検出した物理量を表わす電気信号を出力する
センサと、上記センサから出力される電気信号を
所定のサンプリング周期でサンプリングするサン
プリング回路と、上記サンプリング回路によつて
サンプリングされたデータを取込んでその変化パ
ターン判別するパターン判別装置とから構成さ
れ、上記パターン判別装置によつて、上記センサ
の出力信号が増加状態にあるか、減少状態にある
かまたは平衡状態にあるかを判別するものであ
る。
A signal waveform pattern detection device according to the present invention includes: a sensor that outputs an electrical signal representing a detected physical quantity; a sampling circuit that samples the electrical signal output from the sensor at a predetermined sampling period; and a pattern discrimination device that takes in sampled data and discriminates its change pattern, and the pattern discrimination device determines whether the output signal of the sensor is in an increasing state, decreasing state, or in an equilibrium state. This is to determine if there is.

上記パターン判別装置はメモリとカウンタとを
備えている。上記メモリは、今回データを記憶す
る第1のエリヤと、以前のデータである前処理デ
ータを記憶する第2のエリヤと、サンプリング周
期の複数倍の規定周期を記憶する第3のエリヤと
を備えている。上記カウンタは連続するサンプリ
ング回数を計数するものである。
The pattern discrimination device includes a memory and a counter. The memory includes a first area that stores current data, a second area that stores preprocessed data that is previous data, and a third area that stores a specified period that is multiple times the sampling period. ing. The above counter counts the number of consecutive samplings.

上記パターン判別装置は、サンプリング周期ご
とに今回データと前処理データとを比較し、その
偏差が所定の基準量より小さいときには上記カウ
ンタをインクレメントする。また上記偏差が上記
基準量よりも大きいときには偏差の正、負に応じ
てそれぞれ増加状態、減少状態と判別し、かつ今
回データによつて上記第2のエリヤの前処理デー
タを更新する。そして上記カウンタの計数値が上
記規定周期を表わす値に達したときには平衡状態
と判定し、今回データによつて上記第2のエリヤ
の前処理データを更新し、さらに上記カウンタを
クリアする。
The pattern discrimination device compares the current data and the preprocessed data at each sampling period, and increments the counter when the deviation is smaller than a predetermined reference amount. Further, when the deviation is larger than the reference amount, it is determined that the deviation is positive or negative, respectively, to be in an increasing state or a decreasing state, and the preprocessing data of the second area is updated with the current data. When the count value of the counter reaches a value representing the specified period, it is determined that an equilibrium state is reached, the preprocessing data of the second area is updated with the current data, and the counter is cleared.

この発明によれば、サンプリング周期の複数倍
の規定周期を設けて、この規定周期の範囲内で偏
差が基準量に達したかどうかをサンプリング周期
ごとに検査しているので、サンプリング周期を短
くしても緩慢な立上りや立下りと平衡状態とを明
確に区別して判定することができる。また偏差と
基準量との比較はサンプリング周期ごとに行なつ
ているので急激な立上り、立下りを迅速に検出す
ることもできる。このようにしてこの発明による
と高精度の波形パターン検出を達成しうる。
According to this invention, a specified period that is multiple times the sampling period is set, and whether or not the deviation has reached the reference amount within the specified period is checked for each sampling period, so the sampling period can be shortened. However, it is possible to clearly distinguish between a slow rise or fall and an equilibrium state. Further, since the deviation and the reference amount are compared at each sampling period, sudden rises and falls can be detected quickly. In this way, according to the present invention, highly accurate waveform pattern detection can be achieved.

以下、図面を参照してこの発明を交通流計測装
置に適用した場合について詳しく説明する。交通
流計測装置は、道路上を走行している車両の速
度、車両通過台数、車頭間隔、渋滞度その他の交
通情報を収集するものである。
Hereinafter, a case in which the present invention is applied to a traffic flow measuring device will be described in detail with reference to the drawings. A traffic flow measurement device collects traffic information such as the speed of vehicles traveling on a road, the number of vehicles passing, the distance between vehicles, the degree of congestion, and so on.

第1図は、交通流計測装置のカメラの設置の様
子を示している。カメラ1は、支柱3などにより
道路L上方の所要高さ位置(たとえば6m)に、
道路Lに長さ方向の所要範囲(たとえば100m)
を俯瞰するように設置されている。カメラ1内に
は、第4図に示すように、光学系4と多数の受光
素子とが含まれている。この例では、カメラ1の
視野内には6つの検出地点P1〜P6がある。カ
メラ1内の光学系4の結像面上であつてこれらの
検出地点に対応する箇所に、各1対ずつの受光素
子dS1,dR1〜dS6,dR6が配置されている。
これらの受光素子は、たとえばフオト・ダイオー
ドからなる。各検出地点(Pで代表する)には第
2図に示すように、セツト域Sとリセツト域Rと
が所要間隔lをおいて設定されている。1対の受
光素子(dS,dRで代表する)はこれらの各域S,
Rにそれぞれ対応している。
FIG. 1 shows how the camera of the traffic flow measuring device is installed. The camera 1 is placed at a required height position (for example, 6 m) above the road L using a support 3 or the like.
Required length range for road L (for example, 100m)
It is set up to provide a bird's-eye view. As shown in FIG. 4, the camera 1 includes an optical system 4 and a large number of light receiving elements. In this example, there are six detection points P1 to P6 within the field of view of the camera 1. Pairs of light receiving elements dS1, dR1 to dS6, dR6 are arranged on the imaging plane of the optical system 4 in the camera 1 at locations corresponding to these detection points.
These light receiving elements are composed of photo diodes, for example. 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 dS and dR) are connected to each of these regions S,
Each corresponds to R.

車両がCAが検出地点Pをセツト域Sからリセ
ツト域Rに向けて通過すると、第3図に示すよう
に、受光素子dSおよびdRから時間tだけずれた
車両検知信号が出力される。ここでは、各受光素
子dS,dRの出力の立上りを検出して、両信号の
立上りの差を検知時間tとしている。この検知時
間tは車両がセツト域Sとリセツト域Rとの間
(距離l)を走行するのに要する時間であるから、
この車両の走行速度Vは次式で求められる。ただ
しKは定数である。
When the vehicle CA passes through the detection point P from the set area S to the reset area R, a vehicle detection signal is outputted from the light receiving elements dS and dR by a time t, as shown in FIG. Here, the rising edge of the output of each light receiving element dS, dR is detected, and the difference between the rising edges of both signals 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間の距離を測り、かつこの距離を統計的に
修正することにより、車両の走行速度を高精度に
測定することが可能である。また必要ならば、6
つの検出地点P1〜P6で測定した同一車両の走
行速度の平均値を求めてもよい。
V=K・l/t The distance that a vehicle actually moves during the detection time t is affected by vehicle color, vehicle height, etc. and varies slightly from vehicle to vehicle, and is actually not equal to the above distance l. do not have. 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. If necessary, 6
The average value of the traveling speeds of the same vehicle measured at the three detection points P1 to P6 may be calculated.

車頭間隔および渋滞度などもこの走行速度にも
とづいて算出することができる。たとえば車頭間
隔は、検知地点P1である車両を検出したとき
に、検出地点P1で検出された1つ前の先行車両
の速度と経過時間との積から求めることができ
る。渋滞度はたとえば、6つの地点P1〜P6の
うち測定走行速度が所定速度(たとえば20Km/
h)以下の地点の数によつて定めることができ
る。
The distance between vehicles and the degree of congestion can also be calculated based on this traveling speed. For example, when a vehicle at the detection point P1 is detected, the headway distance can be determined from the product of the speed of the preceding vehicle detected at the detection point P1 and the elapsed time. For example, the degree of traffic congestion is determined when the measured travel speed is a predetermined speed (for example, 20 km/h) among six points P1 to P6.
h) It can be determined by the number of the following points:

さて、上述のように各種の処理は、処理装置2
で行なわれる。第4図を参照して、カメラ1内の
各受光素子dS,dRの出力信号は自動利得制御機
能を備えた増巾器5で増巾されたのち、マルチプ
レクサ・チヤンネル装置6に送られ、ここで12個
の受光素子の各出力が順次切換えられてA−D変
換器7に送られる。A−D変換器7は、所定のサ
ンプリング周期(この例では4.8mS)で入力す
る受光素子の出力をAD変換し、その結果を中央
処理装置(CPUという)8に送る。CPU8は、
マルチプレクサ・チヤンネル装置6やA−D変換
器7を制御するとともに、後述する信号波形パタ
ーン検出処理や上述の各種の交通情報演算処理を
行なう。CPU8はその実行プログラムを格納し
たプログラム・メモリ(図示略)の他にデータ・
メモリ9を備えている。処理装置2にはカメラ1
から入力する信号の低周波成分を除去するフイル
タ回路や増巾器が設けられるが、簡略化のために
図示が省略されている。
Now, as mentioned above, various processes are performed by the processing device 2.
It will be held in Referring to FIG. 4, the output signals of each light receiving element dS and dR in the camera 1 are amplified by an amplifier 5 equipped with an automatic gain control function, and then sent to a multiplexer channel device 6, where The outputs of the 12 light receiving elements are sequentially switched and sent to the AD converter 7. The AD converter 7 performs AD conversion on the output of the light receiving element input at a predetermined sampling period (4.8 mS in this example), and sends the result to a central processing unit (referred to as CPU) 8. CPU8 is
It controls the multiplexer/channel device 6 and the A/D converter 7, and also performs signal waveform pattern detection processing described later and various traffic information calculation processing described above. In addition to the program memory (not shown) that stores the execution program, the CPU 8 also stores data.
It is equipped with a memory 9. The processing device 2 has a camera 1
A filter circuit and an amplifier are provided to remove low frequency components of signals input from the input signal, but illustration thereof is omitted for the sake of brevity.

第5図はカメラ1の受光素子から出力される信
号の波形の例を示している。この入力信号は、サ
ンプリング周期ごとにA−D変換器7でAD変換
される。今回のA/D変換された結果を今回デー
タDtとする。今回データDtがそれより以前にデ
ータよりも増加しているが、減少しているかまた
は平衡状態にあるかを判定するためには、今回デ
ータDtに以前のデータとの偏差Δωを求める必要
がある。この偏差Δωを求めるための対象となる
以前のデータを前処理データD0とする。また上
記判定のために、今回データDtと前処理データ
D0との偏差Δωと比較される基準の量を基準量
ω0とする。さらに、規定周期Tという概念を導
入し、この規定周期Tをサンプリング周期の複数
倍(この例でば4倍)の時間とする。そして、サ
ンプリング周期ごとに偏差Δωと基準量ω0とを
比較して、偏差Δωが基準量ω0以上である場
合、または規定周期Tが経過したときに今回デー
タDtを前処理データD0としてこの前処理デー
タD0を更新する。信号の立上りまたは立下りが
緩慢な場合には、増加量または減少量がサンプリ
ング周期の時間では基準量ω0に達しないことが
ある。このような信号の緩慢な変化を検出するた
めに規定周知Tが導入されており、規定周期Tの
範囲内で変化量が基準量ω0に達しているかどう
かをみるのである。
FIG. 5 shows an example of the waveform of a signal output from the light receiving element of the camera 1. This input signal is AD-converted by an A-D converter 7 every sampling period. The current A/D conversion result is defined as current data Dt. The current data Dt is increasing more than the previous data, but in order to determine whether it is decreasing or in equilibrium, it is necessary to find the deviation Δω of the current data Dt from the previous data. . Previous data to be used for determining this deviation Δω is defined as preprocessed data D0. Further, for the above determination, the reference amount to be compared with the deviation Δω between the current data Dt and the preprocessed data D0 is defined as a reference amount ω0. Furthermore, the concept of a prescribed period T is introduced, and this prescribed period T is set to be a time multiple times (in this example, four times) the sampling period. Then, the deviation Δω and the reference amount ω0 are compared for each sampling period, and if the deviation Δω is greater than or equal to the reference amount ω0, or when the specified period T has elapsed, the current data Dt is used as the preprocessing data D0 and the preprocessing is performed. Update data D0. 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. A prescribed known T is introduced to detect such slow changes in the signal, and it is checked whether the amount of change reaches the reference amount ω0 within the range of the prescribed period T.

信号の変化状態には、増加と、減少と、増加も
減少もしない平衡状態とがある。規定周期T内に
Dt−D0≧ω0であれは増加状態とみなす。規
定周期T内にDt−D0≦−ω0であれば減少状
態とみなす。そして、これらの判定をしたときに
今回データDtを前処理データD0として採用す
る。また、規定周期Tが経過しても|Dt−D0
|<ω0であれば平衡状態とみなして、前処理デ
ータD0として今回データDtを採用する。
The states of signal change include increase, decrease, and equilibrium state where neither increase nor decrease occurs. within the specified period T
If Dt-D0≧ω0, it is regarded as an increasing state. If Dt-D0≦-ω0 within the specified period T, it is regarded as 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 T has elapsed, |Dt−D0
If |<ω0, it is regarded as an equilibrium state, and the current data Dt is adopted as the preprocessed data D0.

第5a図を参照して、車両を検知していない定
常状態では前処理データは0である(時刻t1)。
このときの前処理データをD01とする。これ以
降の各サンプリング周期の時間内でも信号はほと
んど立上がらず、規定周期Tが経過したときにも
(時刻t2)偏差(Δω=Dt−D01)は基準量
ω0に達していないから、時刻t1〜t2の間は
平衡状態である。したがつてこのときの今回デー
タを前処理データD02として更新する。
Referring to FIG. 5a, in a steady state where no vehicle is detected, the preprocessing data is 0 (time t1).
The preprocessed data at this time is assumed to be D01. The signal hardly rises during each subsequent sampling period, and even when the specified period T has passed (time t2), the deviation (Δω = Dt - D01) has not reached the reference amount ω0, so at time t1 The period between t2 and t2 is an equilibrium state. Therefore, the current data at this time is updated as preprocessed data D02.

次のサンプリング周期でも偏差Δωは基準量ω
0に達していない。そこでさらにサンプリングの
1周期が経過したとき(時刻t3)に偏差Δωを
求めて基準量ω0と比較する。時刻t2からサン
プリング周期で2周期が経過したときには(時刻
t3)Δω≧ω0となつているので、時刻t2〜
t3は増加状態である。このため時刻t3で、そ
のときの今回データを前処理データD03として
更新する。時刻t3からサンプリング1周期が経
過したときにも(時刻t4)、Δω≧ω0となつ
て増加状態と判定され、前処理データがD04と
して更新される。
Even in the next sampling period, the deviation Δω is the reference amount ω
It has not reached 0. Therefore, when one more period of sampling has elapsed (time t3), the deviation Δω is obtained and compared with the reference amount ω0. When two sampling periods have passed since time t2 (time t3), Δω≧ω0, so from time t2 to
t3 is an increasing state. Therefore, at time t3, the current data at that time is updated as preprocessed data D03. Even when one sampling period has passed since time t3 (time t4), Δω≧ω0 and it is determined that there is an increasing state, and the preprocessed data is updated as D04.

時刻t4以降のサンプリング4周期の期間(規
定周期T)はほとんど信号の変化がなく平衡状態
であつて、時刻t5で前処理データがD05に変
更される。時刻t5〜t7の間では、信号は急激
に立上り、各サンプリング周期ごとに減少と判定
され、かつ前処理データが更新される(D06,
D07で示す)。そして、時刻t7以降は再び平
衡状態になり、規定周期Tごとに前処理データが
更新されていく(D08など)。
During the period of four sampling cycles after time t4 (regular cycle T), the signal is in an equilibrium state with almost no change, and the preprocessed data is changed to D05 at time t5. Between times t5 and t7, the signal rises rapidly and is determined to decrease at each sampling period, and the preprocessed data is updated (D06,
(denoted as D07). After time t7, an equilibrium state is reached again, and the preprocessing data is updated every prescribed period T (D08, etc.).

第5a図において、時刻t2〜t4の間では信
号の増加状態が2回連続している。このように同
一の信号変化状態を続くときには同一波形パター
ンとし、他の信号状態に変化したときに信号波形
のパターンが変化するものとすると、第5a図に
示す信号は、平衡、増加、平衡、減少そして平衡
というパターンで構成されている。
In FIG. 5a, the signal increases twice in a row between times t2 and t4. Assuming that the same waveform pattern is used when the same signal change state continues, and that the signal waveform pattern changes when the signal changes to another state, the signal shown in FIG. It consists of a pattern of decrease and equilibrium.

カメラ1の受光素子の出力信号は車両の形状、
色、速度その他の要因により変化する。第5b図
に他の波形の例が示される。この信号波形は、平
衡、増加、減少、増加、減少、平衡、減少そして
平衡というパターンで構成されていることが理解
されよう。
The output signal of the light receiving element of camera 1 is based on the shape of the vehicle,
Varies depending on color, speed, and other factors. Another waveform example is shown in Figure 5b. It will be appreciated that this signal waveform consists of a pattern of balance, increase, decrease, increase, decrease, balance, decrease, and balance.

このような信号波形のパターン検出処理を
CPU8で実行するためにデータ・メモリ9には、
各種のデータを記憶するエリヤM1〜M11が設
けられている。エリヤM1には今回データDtが、
エリヤM2には前処理データD0が、エリヤM3
には偏差Δωが、エリヤM4には前回の信号状態
が、エリヤM5には基準量ω0がそれぞれ記憶さ
れる。エリヤM6は波形パターンを記憶するエリ
ヤであつて、多数の記憶場所を有し、各記憶場所
には連続番号のアドレスn0〜nnが付けられて
いる。そして、次の検出パターンを記憶すべき記
憶場所のアドレスがエリヤM7の内容によつて指
定される。
This kind of signal waveform pattern detection processing is
To be executed by CPU 8, data memory 9 contains
Areas M1 to M11 are provided for storing various data. Elijah M1 has data Dt this time,
Elijah M2 has preprocessed data D0, Elijah M3
The deviation Δω is stored in the area M4, the previous signal state is stored in the area M5, and the reference amount ω0 is stored in the area M5. Area M6 is an area for storing waveform patterns, and has a large number of storage locations, each of which is assigned a consecutive address number n0 to nn. The address of the storage location where the next detection pattern is to be stored is specified by the contents of area M7.

エリヤM8には規定周期Tが、エリヤM9には
平衡継続判定量C0がそれぞれ記憶され、エリヤ
M10,M11はそれぞれ周期カウンタC1、平
衡カウンタC2として用いられる。周期カウンタ
C1は規定周期Tに達したかどうかを計数するも
のであつて、サンプリング周期ごとにその内容に
+1され、規定周期Tに達するとリセツトされ
る。平衡カウンタC2は、平衡状態の継続回数を
計数するものであつて、車両を検出していない定
常状態か、時刻t4〜t5のような車両検知にお
ける平衡状態かを区別するために用いられる。こ
の区別の基準となる平衡状態継続回数わ表わすの
が平衡継続判定量C0であつて、車両検知におい
てありうる最大継続回数よりも大きな値が採用さ
れている。そして、平衡カウンタC2の内容がこ
の判定量C0以上の場合に定常状態であると判断
される。
The prescribed period T is stored in the area M8, and the equilibrium continuation determination amount C0 is stored in the area M9, and the areas M10 and M11 are used as a period counter C1 and an equilibrium counter C2, respectively. The period counter C1 counts whether the specified period T has been reached, and its contents are incremented by 1 every sampling period, and when the specified period T is reached, it is reset. The equilibrium counter C2 counts the number of times the equilibrium state continues, and is used to distinguish between a steady state where no vehicle is detected and an equilibrium state during vehicle detection such as from time t4 to t5. The equilibrium continuation determination amount C0 represents the number of times the equilibrium state continues, which serves as a criterion for this distinction, and a value larger than the maximum possible number of times the equilibrium state can be continued in vehicle detection is adopted. Then, when the content of the balance counter C2 is equal to or greater than the determination amount C0, it is determined that the steady state is present.

第6図は、CPU8による信号波形パターン検
出処理の手順を示している。まず、サンプリング
周期が経過したかどうかをみて(ステツプ
(20))、サンプリング周期であれは入力信号をA
−D変換器7によりAD変換して、このAD変換
結果を今回データDtとしてエリヤM1に記憶す
る(ステツプ(21))。そして、今回データDtか
ら前処理データD0を差引いて偏差Δωを算出し
(ステツプ(22))、この偏差Δωの絶対値と基準
量ω0とを比較してこれらの大小関係を調べる
(ステツプ(23))。偏差Δωの絶対値が基準量ω
0よりも小さければ周期カウンタC1の内容に+
1して(ステツプ(24))、このカウンタC1の内
容が規定周期Tに達しているかどうかをみる(ス
テツプ(25))。規定周期Tに達していなければ処
理を終える。
FIG. 6 shows the procedure of signal waveform pattern detection processing by the CPU 8. First, check whether the sampling period has elapsed (step (20)), and if it is within the sampling period, the input signal is
- AD conversion is performed by the D converter 7, and the AD conversion result is stored in the area M1 as current data Dt (step (21)). Then, the deviation Δω is calculated by subtracting the preprocessed data D0 from the current data Dt (step (22)), and the absolute value of this deviation Δω is compared with the reference amount ω0 to check the magnitude relationship between them (step (23)). )). The absolute value of the deviation Δω is the reference amount ω
If it is less than 0, the contents of the period counter C1 are +
1 (step (24)), and then it is checked whether the contents of this counter C1 have reached the specified period T (step (25)). If the prescribed cycle T has not been reached, the process ends.

規定周期Tが経過した場合には周期カウンタC
1をリセツトしてその内容をクリヤし(ステツプ
(26))、平衡状態と判定する(ステツプ(27))。
そして、エリヤM4の内容から前回が平衡状態で
あつたかどうかをみて(ステツプ(28))、前回が
平衡でなく増加または減少であつた場合には、波
形パターンが変つたのであるから、エリヤM6の
エリヤM7の内容で指定されるアドレスに平衡パ
ターンを記憶する(ステツプ(29))とともに、
次の波形パターン記憶のためにエリヤM7の内容
に+1しておく(ステツプ(30))。この後、今回
の状態をエリヤM4に記憶し、ステツプ(31)に
進む。前回が平衡状態であつた場合にはそのまま
ステツプ(31)に進む。
When the specified period T has elapsed, the period counter C
1 is reset to clear its contents (step (26)), and an equilibrium state is determined (step (27)).
Then, it is checked from the contents of area M4 whether the previous time was in an equilibrium state (step (28)), and if the previous time was not in equilibrium but increasing or decreasing, the waveform pattern has changed, so The balanced pattern is stored at the address specified by the contents of area M7 (step (29)), and
The contents of area M7 are incremented by 1 in order to store the next waveform pattern (step (30)). After this, the current state is stored in area M4 and the process proceeds to step (31). If the previous state was in an equilibrium state, proceed directly to step (31).

ステツプ(31)では、平衡カウンタC2の内容
に+1して、平衡カウンタC2の内容と平衡継続
判定量C0との大小関係を調べる(ステツプ
(32))。平衡カウンタC2の内容が判定量C0以
上である場合には定常状態であるから、エリヤM
7の内容にエリヤM6の先頭番地であるn0をセ
ツトして、次の車両による信号の波形パターン結
出に備える(ステツプ(33))。この後、ステツプ
(46)に移つて、今回データDtを前処理データD
0としてエリヤM2に記憶して、処理を終える。
ステツプ(32)でNOの場合にもステツプ(46)
に移る。
In step (31), the content of the equilibrium counter C2 is incremented by 1, and the magnitude relationship between the content of the equilibrium counter C2 and the equilibrium continuation judgment amount C0 is checked (step (32)). If the content of the equilibrium counter C2 is greater than or equal to the judgment amount C0, it is a steady state, so the area M
n0, which is the first address of area M6, is set in the contents of area M6 to prepare for the formation of a signal waveform pattern by the next vehicle (step (33)). After this, the process moves to step (46), where the current data Dt is converted to the preprocessed data D.
It is stored as 0 in area M2 and the process ends.
If step (32) is NO, also step (46)
Move to.

偏差Δωの絶対値が基準量ω0以上の場合(ス
テツプ(23)でNO)には増加または減少である
から、周期カウンタC1および平衡カウンタC2
をそれぞれリセツトし(ステツプ(35)、(36))、
偏差Δωの正、負を判定する(ステツプ(37))。
偏差Δωが正であれば増加状態と判定して(ステ
ツプ(38))、前回の状態が増加であつたかどうか
をみる(ステツプ(39))。前回が増加状態でなけ
ればエリヤM6に増加パターンを記憶して(ステ
ツプ(40))、エリヤM7の内容に+1する(ステ
ツプ(41))。そして、エリヤM4に増加状態を記
憶して、ステツプ(46)に進み、今回データDt
を前処理データD0としてエリヤM2に記憶す
る。前回が増加の場合にはそのままステツプ
(46)に進む。
If the absolute value of the deviation Δω is greater than or equal to the reference amount ω0 (NO in step (23)), it is an increase or decrease, so the period counter C1 and the balance counter C2
Reset each (steps (35) and (36)),
Determine whether the deviation Δω is positive or negative (step (37)).
If the deviation Δω is positive, it is determined that the state is increasing (step (38)), and it is checked whether the previous state was increasing (step (39)). If the previous time was not in an increasing state, the increasing pattern is stored in area M6 (step (40)), and the contents of area M7 are incremented by 1 (step (41)). Then, the increased state is stored in area M4, and the process proceeds to step (46), where the current data Dt
is stored in area M2 as preprocessed data D0. If the previous time was an increase, proceed directly to step (46).

偏差Δωが負の場合には減少状態と判定し(ス
テツプ(42))、増加の場合と同じように、前回が
減少状態であつたかどうかをみて(ステツプ
(43))、前回の状態が減少でなければエリヤM6
のエリヤM7の内容で指定されるアドレスに減少
パターンを記憶し(ステツプ(44))、エリヤM7
の内容に+1して(ステツプ(45))、減少状態を
エリヤM4に記憶しステツプ(46)に進んで、今
回データDtを前処理データD0としてエリヤM
2に記憶する。前回も減少の場合にはそのままス
テツプ(46)の処理をして、すべての処理を終え
る。
If the deviation Δω is negative, it is determined that it is in a decreasing state (step (42)), and as in the case of an increase, it is checked whether the previous state was in a decreasing state (step (43)), and the previous state is determined to be a decreasing state. Otherwise Elijah M6
The decreasing pattern is stored in the address specified by the contents of area M7 (step (44)), and
(step (45)), stores the decreased state in area M4, proceeds to step (46), and stores the current data Dt in area M as preprocessed data D0.
Store in 2. If there was a decrease last time as well, the process continues at step (46) and all processes are completed.

このようにしてデータ・メモリ9のエリヤM6
に記憶された信号波形パターンは、交通流計測の
ための種々の処理、たとえば車両による信号かま
たは車両の影による信号かを区別するために用い
られる。車両による信号は、第5図に示すよう
に、定常状態レベルから必ず立上り、波形パター
ンは平衡ののち増加というパターンをたどる。こ
れに対して車両の影による信号は定常状態レベル
から立下り、波形パターンは平衡ののち減少とい
うパターンになる。このように信号波形パターン
の変化によつて、車両による信号を車両の影によ
る信号から区別することができるので、影による
信号を排除して、車両による信号から車両走行速
度などの交通流情報を正確に得ることができる。
In this way, area M6 of data memory 9
The signal waveform patterns stored in the signal waveform patterns are used in various processes for measuring traffic flow, for example, to distinguish between a signal caused by a vehicle or a signal caused by the shadow of a vehicle. As shown in FIG. 5, the signal generated by the vehicle always rises from a steady state level, and the waveform pattern follows a pattern of equilibrium and then increase. On the other hand, the signal due to the shadow of the vehicle falls from the steady state level, and the waveform pattern becomes an equilibrium and then decreasing pattern. In this way, by changing the signal waveform pattern, it is possible to distinguish signals caused by vehicles from signals caused by the shadow of a vehicle, so signals caused by shadows can be eliminated and traffic flow information such as vehicle speed can be extracted from signals caused by vehicles. can be obtained accurately.

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

第1図は交通流計測装置のカメラの設置状態を
示す図、第2図は検出地点の拡大図、第3図は車
両検知信号を示す波形図、第4図は上記カメラの
内部および処理装置を示す構成およびブロツク
図、第5図は波形パターンの検出を示す説明図、
第6図はCPUによつて波形パターン検出装置を
実行する場合の処理手順を示すフロー・チヤート
である。 1……カメラ(センサ)、dS,dR,dS1〜dS
6,dR1〜dR6……受光素子(センサ)、7…
…A−D変換器(サンプリング回路)、8……中
央処理装置(CPU)(パターン判別装置)、9…
…データ・メモリ(メモリ)、M1,M2,M8
……メモリのエリヤ、C1……周期カウンタ(カ
ウンタ)、T……規定周期、Dt……今回データ、
Do……前処理データ、Δω……偏差、ω0……基
準量。
Figure 1 is a diagram showing the installation state of the camera of the traffic flow measurement device, Figure 2 is an enlarged view of the detection point, Figure 3 is a waveform diagram showing the vehicle detection signal, and Figure 4 is the inside of the camera and the processing device. FIG. 5 is an explanatory diagram showing waveform pattern detection.
FIG. 6 is a flow chart showing the processing procedure when the waveform pattern detection device is executed by the CPU. 1...Camera (sensor), dS, dR, dS1~dS
6, dR1 to dR6... Light receiving element (sensor), 7...
...A-D converter (sampling circuit), 8...Central processing unit (CPU) (pattern discrimination device), 9...
...Data memory (memory), M1, M2, M8
...Memory area, C1...Period counter (counter), T...Regular cycle, Dt...Current data,
Do...preprocessing data, Δω...deviation, ω0...reference amount.

Claims (1)

【特許請求の範囲】 1 検出した物理量を表わす電気信号を出力する
センサ1,dS,dRと、上記センサから出力され
る電気信号を所定のサンプリング周期でサンプリ
ングするサンプリング回路7と、上記サンプリン
グ回路によつてサンプリングされたデータを取込
んでその変化パターンを判別するパターン判別装
置8とを備え、上記パターン判別装置によつて、
上記センサの出力信号が増加状態にあるか、減少
状態にあるかまたは平衡状態にあるかを判別する
信号波形のパターン検出装置において、 上記パターン判別装置はメモリ9とカウンタC
1とを備え、 上記メモリは、今回データDtを記憶する第1
のエリヤM1と、以前のデータである前処理デー
タDoを記憶する第2のエリヤM2と、サンプリ
ング周期の複数倍の規定周期Tを記憶する第3の
エリヤM8とを備え、 上記カウンタは連続するサンプリング回数を計
数するものであり、 上記パターン判別装置は、サンプリング周期ご
とに今回データと前処理データとを比較し、 その偏差△ωが所定の基準量ω0より小さいと
きには上記カウンタをインクレメントし、 上記偏差が上記基準量よりも大きいときには偏
差の正、負に応じてそれぞれ増加状態、減少状態
と判別し、かつ今回データによつて上記第2のエ
リヤの前処理データを更新し、 上記カウンタの計数値が上記規定周期を表わす
値に達したときには平衡状態と判定し、今回デー
タによつて上記第2のエリヤの前処理データを更
新し、さらに上記カウンタをクリアする、 信号波形のパターン検出装置。
[Claims] 1. A sensor 1, dS, dR that outputs an electrical signal representing a detected physical quantity, a sampling circuit 7 that samples the electrical signal output from the sensor at a predetermined sampling period, and the sampling circuit and a pattern discrimination device 8 that takes in the sampled data and discriminates its change pattern, and the pattern discrimination device allows
In the signal waveform pattern detection device for determining whether the output signal of the sensor is in an increasing state, decreasing state, or in an equilibrium state, the pattern determining device includes a memory 9 and a counter C.
1, and the memory has a first memory that stores the current data Dt.
, a second area M2 that stores preprocessed data Do that is previous data, and a third area M8 that stores a specified period T that is multiple times the sampling period, and the counter is continuous. The pattern discrimination device counts the number of sampling times, and the pattern discrimination device compares the current data and the preprocessed data at each sampling period, and increments the counter when the deviation Δω is smaller than a predetermined reference amount ω0; When the deviation is larger than the reference amount, it is determined that the deviation is in an increasing state or decreasing state depending on whether the deviation is positive or negative, and the preprocessing data of the second area is updated with the current data, and the counter is A signal waveform pattern detection device that determines an equilibrium state when the count value reaches a value representing the specified period, updates the preprocessed data of the second area with the current data, and further clears the counter. .
JP13738880A 1980-09-30 1980-09-30 Method of detecting signal waveform pattern Granted JPS5762493A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13738880A JPS5762493A (en) 1980-09-30 1980-09-30 Method of detecting signal waveform pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13738880A JPS5762493A (en) 1980-09-30 1980-09-30 Method of detecting signal waveform pattern

Publications (2)

Publication Number Publication Date
JPS5762493A JPS5762493A (en) 1982-04-15
JPH0318129B2 true JPH0318129B2 (en) 1991-03-11

Family

ID=15197512

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13738880A Granted JPS5762493A (en) 1980-09-30 1980-09-30 Method of detecting signal waveform pattern

Country Status (1)

Country Link
JP (1) JPS5762493A (en)

Also Published As

Publication number Publication date
JPS5762493A (en) 1982-04-15

Similar Documents

Publication Publication Date Title
US4433325A (en) Optical vehicle detection system
JP3392418B2 (en) Dynamic Odometer Dynamic Calibration Method and Apparatus
US5579230A (en) Vehicle speed estimation for antilock braking using a chassis accelerometer
JP3205477B2 (en) Inter-vehicle distance detection device
US5278555A (en) Single inductive sensor vehicle detection and speed measurement
US4674069A (en) System for collecting and processing data relating to moving bodies
EP0690314B1 (en) System for obtaining a velocity of a moving object from a speed sensor with adjustment of a speed conversion coefficient
US4799178A (en) Method and apparatus for detecting rotational speed
US6427533B1 (en) Vehicle liquid level gauge
JPS639623B2 (en)
JPH11133151A (en) Human body detecting apparatus
JPH0318129B2 (en)
JP3282547B2 (en) External force measuring device
US4055750A (en) Heading sensor for vehicle dead reckoning system
JPS6235157B2 (en)
CA1219884A (en) Method and apparatus for weighing material
JPS5843797B2 (en) Vehicle shadow identification method
JP3975416B2 (en) Navigation device, sensor output calibration method, and navigation processing program
JP3602226B2 (en) Method and apparatus for measuring the number of passing vehicles
JPH07334792A (en) Adjusting method for display point of traffic information and correcting method for vehicle speed
JPS6122840B2 (en)
RU2097771C1 (en) Method of no-contact measurement of moving object speed and device intended for its realization
JP3049974B2 (en) Traffic volume measuring device and traffic volume measuring method
JPS5911959B2 (en) Traffic congestion detection method
JPS5843798B2 (en) How to process vehicle signals that include shadows