JPH0514314B2 - - Google Patents

Info

Publication number
JPH0514314B2
JPH0514314B2 JP60293601A JP29360185A JPH0514314B2 JP H0514314 B2 JPH0514314 B2 JP H0514314B2 JP 60293601 A JP60293601 A JP 60293601A JP 29360185 A JP29360185 A JP 29360185A JP H0514314 B2 JPH0514314 B2 JP H0514314B2
Authority
JP
Japan
Prior art keywords
scan
mark
indicating
data
imaging
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 - Lifetime
Application number
JP60293601A
Other languages
Japanese (ja)
Other versions
JPS62156787A (en
Inventor
Tasuke Tagawa
Akio Izumi
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP29360185A priority Critical patent/JPS62156787A/en
Publication of JPS62156787A publication Critical patent/JPS62156787A/en
Publication of JPH0514314B2 publication Critical patent/JPH0514314B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Geophysics And Detection Of Objects (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、イメージセンサなどの1次元撮像手
段を用いて撮像し、物体などの被測定物の個数を
測定する装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an apparatus for measuring the number of objects to be measured by capturing an image using a one-dimensional imaging means such as an image sensor.

〔従来の技術とその問題点〕 従来、被測定物例えば 等)の個数を迅速に計測する装置は開発されてい
なかつた。
[Prior Art and its Problems] Conventionally, no device has been developed for rapidly counting the number of objects to be measured (eg, objects to be measured, etc.).

〔目的〕〔the purpose〕

本発明は、対象物の個数を迅速にカウントする
ことができる装置を提供することを目的とする。
An object of the present invention is to provide a device that can quickly count the number of objects.

〔実施例〕〔Example〕

つぎに図面を参照して本発明の一実施例を詳細
に説明する。
Next, one embodiment of the present invention will be described in detail with reference to the drawings.

第1図は、本発明の一実施例のブロツク図であ
る。
FIG. 1 is a block diagram of one embodiment of the present invention.

第1図において、1は大きさ、個数などを計測
する対象物、2は対象物1に対面し、対象物を撮
像する撮像手段であつて、フオトダイオードアレ
イ等の受光素子を具えている。この撮像手段2
は、対象物1の表面に光源(図示せず)からの光
を投射し、その反射光を撮像するが、他に、対象
物1の裏側に光源(図示せず)を設けて、対象物
1の透過光を撮像することもできる。
In FIG. 1, 1 is an object whose size, number, etc. are to be measured, and 2 is an imaging means that faces the object 1 and takes an image of the object, and is equipped with a light receiving element such as a photodiode array. This imaging means 2
The method projects light from a light source (not shown) onto the surface of the object 1 and captures an image of the reflected light. It is also possible to image the transmitted light of 1.

一方、対象物1は、ベルトコンベアなどの移動
手段によつて、矢印Aの方向(撮像手段と直行す
る方向)に移動する。3はスキヤン駆動回路であ
つて、撮像手段2上に撮影された対象物1からの
光像を順次走査駆動する。かくして対象物1は2
次元的に撮像手段2によつて撮像される。
On the other hand, the object 1 is moved in the direction of arrow A (direction perpendicular to the imaging means) by a moving means such as a belt conveyor. Reference numeral 3 denotes a scan drive circuit which sequentially scans and drives the optical image from the object 1 photographed on the imaging means 2. Thus object 1 is 2
It is imaged dimensionally by the imaging means 2.

4はアナログ増幅回路であつて、撮像手段2か
らの映像信号を増幅し波形成形を行う。
Reference numeral 4 denotes an analog amplifier circuit that amplifies the video signal from the imaging means 2 and shapes the waveform.

5は測定手段であつて、アナログ増幅回路4か
らの映像信号の波形を分析して、対象物1の存在
する部分を「1」とし、存在しない部分を「0」
とする2値化信号に映像信号を変換するととも
に、x軸(横ビツト軸)上に設けた基準点から
「1」に立上るまでのx軸上の位置と、「0」に立
下るまでのx軸上の位置をカウントする。
5 is a measuring means that analyzes the waveform of the video signal from the analog amplifier circuit 4 and sets the part where the object 1 exists as "1" and the part where it does not exist as "0".
In addition to converting the video signal into a binary signal with Count the positions of on the x-axis.

6は、判定手段であつて、測定手段5からの2
値化信号の「1」又は「0」の位置について、撮
像装置2による隣接走査データを比較判定する。
6 is a determining means, and 2 from the measuring means 5.
The position of "1" or "0" in the digitized signal is determined by comparing adjacent scan data from the imaging device 2.

7は表示手段であつて、判定手段6の判定出力
を表示する。
Reference numeral 7 denotes a display means for displaying the judgment output of the judgment means 6.

8は外部制御信号入力手段であつて、対象物1
を撮像手段2で撮像する区間や、撮像のタイミン
グを規定する制御信号をうけ入れる。
8 is an external control signal input means, which
It accepts a control signal that defines the interval for imaging by the imaging means 2 and the timing of imaging.

9は外部出力手段であつて、判定手段6の判定
出力を外部へ伝送する。
Reference numeral 9 is an external output means, which transmits the judgment output of the judgment means 6 to the outside.

10は回線手段であつて、遠隔地からの撮像手
段2を制御するためのリモートコントロール信号
等を受け入れたり、遠隔地へ判定手段6の判定出
力を伝送する。
Reference numeral 10 denotes a line means that accepts remote control signals and the like for controlling the imaging means 2 from a remote location and transmits the determination output of the determination means 6 to the remote location.

11は内部電源であつて、撮像手段2、スキヤ
ン駆動回路3、アナログ増幅回路4、測定手段
5、判定手段6および表示手段7などの内部回路
に電力を供給する。
Reference numeral 11 denotes an internal power supply, which supplies power to internal circuits such as the imaging means 2, the scan drive circuit 3, the analog amplifier circuit 4, the measurement means 5, the determination means 6, and the display means 7.

第2図Aは、対象物1およびこの対象物1を撮
像手段2によつて撮像して得られた映像信号を測
定手段5によつて2値化した信号を重ね合わせて
示したものであつて、図において斜線で示した角
形のブロツクが2値化信号を示す。
FIG. 2A shows an object 1 and a video signal obtained by imaging the object 1 by the imaging means 2, which is binarized by the measuring means 5. In the figure, the square blocks indicated by diagonal lines indicate the binarized signals.

撮像手段2および移動手段によつて2次元的撮
像を行ない、y軸(縦ビツト軸)のビツト数を例
えば14とする(即ち走査線を14とする)。
Two-dimensional imaging is performed by the imaging means 2 and the moving means, and the number of bits on the y-axis (vertical bit axis) is set to, for example, 14 (that is, the number of scanning lines is set to 14).

第2図Bは、判定手段6への入力信号及び判定
手段6の中での信号処理の態様を示し、各走査線
の基準点Rを原点として、立上り位置及び立下り
位置を矢印で示す。
FIG. 2B shows an input signal to the determination means 6 and a mode of signal processing within the determination means 6, and the reference point R of each scanning line is used as the origin, and the rising and falling positions are indicated by arrows.

第4図は、判定手段6のブロツク図であつて、
測定手段5からの2値化信号を走査線毎にデータ
読込手段33で読み込み、現データ記憶手段23
には現在撮像されている走査線の映像信号の
「1」,「0」の位置を記憶する。つぎの走査線に
走査がすすみ新たなデータが来たときは、現デー
タ記憶手段23に記憶されているデータを、前記
データ記憶手段20へ転送する。
FIG. 4 is a block diagram of the determining means 6, which includes:
The binary signal from the measuring means 5 is read by the data reading means 33 for each scanning line, and the current data storage means 23
stores the positions of "1" and "0" of the video signal of the scanning line currently being imaged. When scanning progresses to the next scanning line and new data arrives, the data stored in the current data storage means 23 is transferred to the data storage means 20.

現データ記憶手段23及び前データ記憶手段2
0には現データ個数記憶手段24及び前データ個
数記憶手段21がそれぞれ付随し、現在走査中の
走査線の映像信号のデータ「1」の個数及び、前
回の走査線の映像信号のデータの「1」の個数を
それぞれ記憶する。
Current data storage means 23 and previous data storage means 2
0 is accompanied by a current data number storage means 24 and a previous data number storage means 21, respectively, which store the number of data "1" of the video signal of the scanning line currently being scanned and the data "1" of the video signal of the previous scanning line. The number of "1" is memorized.

現データマーク付手段25及び、前データマー
ク付手段22も、現データ記憶手段23及び前デ
ータ記憶手段20にそれぞれ付随し、かつ、現在
走査中の走査線の映像信号のデータの「1」の部
分及び前回の走査線の映像信号データの「1」の
部分にマークナンバーを付けるようにそれぞれ作
動する。
The current data marking means 25 and the previous data marking means 22 are also attached to the current data storage means 23 and the previous data storage means 20, respectively, and mark data "1" of the video signal of the scanning line currently being scanned. It operates to attach a mark number to the "1" part of the video signal data of the previous scanning line and the previous scanning line.

次回マーク記憶手段26は、現在までに使用さ
れたマークナンバーの最高値を記憶しておき、つ
ぎに新たなナンバーをつけるにあたつて、どのナ
ンバーをつけるかを指示する。
The next mark storage means 26 stores the highest value of mark numbers used up to now, and instructs which number to assign next time.

位置比較手段27は、前の走査線のデータおよ
び現在走査中の走査線のデータにおける立上り位
置と立下り位置をそれぞれ比較する。
The position comparing means 27 compares the rising position and falling position of the data of the previous scanning line and the data of the scanning line currently being scanned.

単一処理手段28は、位置比較手段27の比較
出力にもとづき、前の走査線のデータと現在走査
中の走査線のデータの重なり具合を検出し、両者
が全く重なつていない場合や、1回だけ重なる部
分がある場合を判断する。
The single processing means 28 detects the degree of overlap between the data of the previous scanning line and the data of the scanning line currently being scanned based on the comparison output of the position comparison means 27, and detects the degree of overlap between the data of the previous scanning line and the data of the scanning line currently being scanned. Determine if there is an overlapping portion.

重複処理手段29は、位置比較手段27の比較
出力にもとづき、前の走査線のデータに現在走査
中の走査線のデータを複数個含む場合や、逆に現
在走査中の走査線のデータに前の走査線のデータ
を複数個含む場合を判断する。
Based on the comparison output of the position comparing means 27, the duplication processing means 29 determines whether the data of the previous scanning line includes a plurality of pieces of data of the scanning line currently being scanned, or conversely, if the data of the scanning line currently being scanned includes the data of the scanning line currently being scanned. It is determined whether a plurality of data of scanning lines are included.

現データマーク付手段25に於て、マークナン
バーをデータに付けるにあたつては、単一処理手
段28及び重複処理手段29からの判断結果に基
づいて、初めて現われたデータには次回マーク記
憶手段26に記憶されているマークナンバーをつ
ける。また、前の走査線の複数個のデータが、現
在の走査線のデータに含まれる場合において、た
とえば前の走査線のデータに“1”“3”“4”と
マークナンバーがついている「1」の部分があつ
て、これらが現在走査中の走査線のデータのある
部分に全て含まれているときは、現在走査中の走
査線のそのデータには、最大値の“4”とマーク
をつける。この場合マーク変更手段30は、両マ
ーク付手段22および25からの信号に基づい
て、マークナンバー“1”,“3”は、マークナン
バー“4”に吸収されたことを記憶する。
In the current data marking means 25, when attaching a mark number to data, based on the judgment results from the single processing means 28 and the duplicate processing means 29, the next mark storage means is applied to the data appearing for the first time. Attach the memorized mark number to 26. In addition, when multiple pieces of data of the previous scanning line are included in the data of the current scanning line, for example, if the data of the previous scanning line has mark numbers "1", "3", and "4", "1" ” and all of them are included in a certain part of the data of the scanning line currently being scanned, mark that data with the maximum value “4” of the scanning line currently being scanned. Put on. In this case, the mark changing means 30 stores, based on the signals from both the marking means 22 and 25, that mark numbers "1" and "3" have been absorbed into mark number "4".

マーク個数監視手段31は、現データマーク付
手段25からの信号に基づいて、同一マークナン
バーをつけたデータの個数を、走査線毎にかつマ
ークナンバー毎にカウントして記憶する。たとえ
ばマークナンバー“1”が2個、マークナンバー
“3”が1個というように記憶する。
Based on the signal from the current data marking means 25, the mark number monitoring means 31 counts and stores the number of data to which the same mark number is attached for each scanning line and for each mark number. For example, two mark numbers "1" and one mark number "3" are stored.

個数カウント手段32は、対象物1の個数をカ
ウントするものであつて、1個の対象物の存在
は、マーク個数監視手段31におけるいずれか一
つのマークナンバーの個数が“0”となつたこと
を検出して、対象物1が1個あつたとしてカウン
トする。
The number counting means 32 counts the number of objects 1, and the existence of one object means that the number of any one mark number in the mark number monitoring means 31 becomes "0". is detected and counted as one object 1.

外部入力読込手段34は、外部制御信号入力手
段8からの外部信号を読み込み、回線入力読込手
段35は、回線手段10からの信号を読み込み、
それぞれ入出力制御手段39へ外部制御信号入力
手段8及び回線手段10からの信号を供給する。
The external input reading means 34 reads an external signal from the external control signal input means 8, the line input reading means 35 reads a signal from the line means 10,
Signals from external control signal input means 8 and line means 10 are supplied to input/output control means 39, respectively.

表示制御手段38は、入出力制御手段39から
の判定出力を表示手段7へ供給し、外部出力制御
手段37及び回線出力手段36は、それぞれ外部
出力手段9、及び回線手段10へ、入出力段制御
手段39からの判定出力を供給する。
The display control means 38 supplies the judgment output from the input/output control means 39 to the display means 7, and the external output control means 37 and the line output means 36 supply the input/output stage to the external output means 9 and the line means 10, respectively. A judgment output from the control means 39 is supplied.

本発明の一実施例の装置は以上のように構成さ
れており、第2図、第3図を参照して以下述べる
ように作動する。
The apparatus according to one embodiment of the present invention is constructed as described above, and operates as described below with reference to FIGS. 2 and 3.

第2図Aに示すような2次元的な2値化信号は
測定手段5から判定手段6内のデータ読込手段3
3に読み込まれ、現データ記憶手段23に記録さ
れる。以下に各走査における判定手段6の動作に
ついて例示的に説明する。
A two-dimensional binary signal as shown in FIG.
3 and recorded in the current data storage means 23. The operation of the determining means 6 in each scan will be exemplified below.

〔第1回目〕 対象物が未だ捕捉されず測定手段5からの2値
化信号の立上り及び立下り(データ)は、1つも
ないので、前データマーク付手段22、現データ
マーク付手段25、マーク変更手段30及びマー
ク個数監視手段31のいずれにもデータが存在し
ない。個数カウント手段32は“0”、次回マー
ク記憶手段26には、未だマークナンバーが使用
されていない状態にあるので、初めてのマークナ
ンバー“1”が記憶されている。
[First time] Since the object has not yet been captured and there is no rising or falling edge (data) of the binary signal from the measuring means 5, the previous data marking means 22, the current data marking means 25, There is no data in either mark changing means 30 or mark number monitoring means 31. The number counting means 32 is "0", and the next mark storage means 26 stores the first mark number "1" since no mark number has been used yet.

〔第2回目〕 前の走査線(第1回目)のデータ(以下前デー
タと記す)は、前データ記憶手段20に転送さ
れ、第2本目の現在の走査線のデータ(以下現デ
ータと記す)は現データ記憶手段23に記憶され
る。現データには立上りがあつて、「1」となる
部分が現われるので、現データマーク付手段25
は“1”となり、マーク個数監視手段31も
“1”となる。マークナンバー“1”が使われた
ので次回マーク記憶手段26は“2”となる。
[Second time] The data of the previous scan line (first scan) (hereinafter referred to as previous data) is transferred to the previous data storage means 20, and the data of the second current scan line (hereinafter referred to as current data) is transferred to the previous data storage means 20. ) is stored in the current data storage means 23. Since the current data has a rising edge and a portion of "1" appears, the current data marking means 25
becomes "1", and the mark number monitoring means 31 also becomes "1". Since the mark number "1" was used, the next time the mark storage means 26 will be "2".

〔第3回目〕 現データには「1」が2個現われる。前データ
と比較すると、現データは前データの「1」部と
重なつているため、現データマーク付手段25は
“1,1”となる。マーク個数監視手段31にお
いては“1”が2となる。
[Third time] Two “1”s appear in the current data. When compared with the previous data, the current data overlaps the "1" portion of the previous data, so the current data marking means 25 indicates "1, 1". In the mark number monitoring means 31, "1" becomes 2.

〔第4回目〕 現データに「1」の部分が3個現われ、位置比
較手段27における前データ(3回目の走査のデ
ータ)との比較によつて検出した位置関係から、
最初の「1」と最後の「1」は前データと重な
り、中の「1」は重ならない。
[Fourth time] Three "1" parts appear in the current data, and from the positional relationship detected by comparison with the previous data (data of the third scan) in the position comparing means 27,
The first "1" and the last "1" overlap with the previous data, but the middle "1" does not overlap.

したがつて現データマーク付手段は“1,2,
1”となり、マーク変更手段30は“1,2”と
なり、マーク個数監視手段31では、“1”が2,
“2”が1となる。
Therefore, the current data marking means is “1, 2,
1", the mark changing means 30 becomes "1, 2", and the mark number monitoring means 31 changes "1" to 2,
“2” becomes 1.

〔第5回目〕 現データに「1」の部分が5個現われ、位置比
較手段27における前データ(4回目の走査のデ
ータ)との比較によつて、検出した位置関係か
ら、1個目および3個目が前データと重ならず、
現データマーク付手段25は“3,1,4,2,
1”となり、マーク個数監視手段は、“2,1,
1,1”となる。また次回マーク記録手段26は
現データに“3”を付けたときに“4”となり、
同様に“4”をつけたときに“5”となる。
[Fifth time] Five "1" parts appear in the current data, and by comparison with the previous data (data of the fourth scan) in the position comparison means 27, the first and The third one does not overlap with the previous data,
The current data marking means 25 is “3, 1, 4, 2,
1", and the mark number monitoring means reads "2, 1,
1, 1". Also, the next time the mark recording means 26 adds "3" to the current data, it becomes "4".
Similarly, when you add "4", it becomes "5".

〔第6回目〕 現データに「1」の部分が3個現われ、その1
個目は、前データの“3”のマークの部分と重な
つているので、数字“3”のマークをつける。2
個目の「1」は前データの“1”のマークの部分
と重なつているので、“1”とつけるが、前デー
タのつぎの“4”の、マークの部分とも重なつて
いるので、数字の大きい方の“4”に変更する。
このとき“1”は“4”に吸収されたから、マー
ク変更30の該当する番号“1”も“4”に変更
する。現データの「1」の部分の3個目は前デー
タの“2”のマーク付された部分と重なつている
ので“2”とつけるが、前データの“1”のマー
クの部分とも重なつている。マーク変更手段30
においては、すでに“1”は“4”に吸収されて
いるので、この現データの“2”の部分も“4”
に変更する。従つて、“2”も“4”に吸収され
たことになり、マーク変更手段30は“1,2,
3,4”から“4,4,3,4”と変更される。
[6th session] Three “1” parts appear in the current data, and the first
The item overlaps with the "3" mark in the previous data, so it is marked with the number "3". 2
The first "1" overlaps the mark part of "1" in the previous data, so it is labeled "1", but it also overlaps with the mark part of the next "4" in the previous data, so , change to the larger number “4”.
At this time, since "1" has been absorbed into "4", the corresponding number "1" in mark change 30 is also changed to "4". The third part of the "1" part of the current data overlaps with the part marked "2" in the previous data, so it is labeled "2", but it also overlaps with the part marked "1" in the previous data. It's summery. Mark changing means 30
In , “1” has already been absorbed into “4”, so the “2” part of this current data is also “4”.
Change to Therefore, "2" has also been absorbed into "4", and the mark changing means 30 has written "1, 2,
3,4” is changed to “4,4,3,4”.

この結果、マーク個数カウント手段32の内容
は“2,1,1,2”となる。ここで、吸収され
た、マークナンバー“1”,“2”のマーク個数は
前回のマーク個数をそのままにしておく。
As a result, the contents of the mark number counting means 32 become "2, 1, 1, 2". Here, the number of absorbed marks with mark numbers "1" and "2" remains the same as the previous number of marks.

〔第12回目〕 現データに「1」の部分が2個現われる。最初
の1個目は、前データの“3”のマークの部分と
重つているので、“3”とつける。マーク変更手
段30の該当ナンバー“3”は、他のナンバーに
吸収されていないので、そのまま“3”がつけら
れる。2個目は、前データの“4”のマークの部
分と重なつているので、マーク変更手段30の該
当ナンバーを参照し、そのまま“4”をこの部分
につける。現データの“4”の部分は前データの
3個目の“4”のマークのついている部分とも重
なつている。マーク個数監視手段31は、“3”
が1個、“4”が1個と記憶している。
[No. 12] Two "1" parts appear in the current data. The first one overlaps with the "3" mark part of the previous data, so it is marked "3". Since the corresponding number "3" of the mark changing means 30 has not been absorbed into any other number, "3" is added as is. Since the second one overlaps with the "4" mark part of the previous data, the corresponding number in the mark changing means 30 is referred to and "4" is directly added to this part. The "4" portion of the current data also overlaps with the third "4" marked portion of the previous data. The mark number monitoring means 31 indicates "3".
I remember that there was one "4" and one "4".

〔第13回目〕 現データ「1」の部分が1個現われるが、これ
は、前データの“3”のマークの部分と重なつて
いるため、マーク変更手段30の該当ナンバーを
参照し、“3”をつける。マーク個数監視手段3
1においては“4”の個数が0となつたので個数
カウント手段32は“1”となる。即ち、対象物
の1個を検知し終えたこととなる。
[13th time] One part of the current data "1" appears, but since this overlaps with the mark part of "3" of the previous data, refer to the corresponding number on the mark changing means 30 and select " Add 3”. Mark number monitoring means 3
1, the number of "4"s becomes 0, so the number counting means 32 becomes "1". In other words, one target object has been detected.

〔第14回目〕 現データはすべてなくなつている。前回あつた
“3”についても、マーク個数監視手段31を参
照すると“0”となつている。従つて、個数カウ
ント手段32は“2”となる。即ちもう一つの対
象物を検出したことになる。
[No. 14] All current data is gone. Regarding "3" which was recorded last time, when the mark number monitoring means 31 is referred to, it is "0". Therefore, the number counting means 32 becomes "2". In other words, another object has been detected.

第5図は、本発明のフローチヤートを示す。 FIG. 5 shows a flowchart of the present invention.

第5図において、ステツプ101「イニシヤル処
理」では、本発明の装置に含まれる各種の手段を
クリアし、本発明を制御する入・出力情報を設定
する。
In FIG. 5, in step 101 "Initial Processing", various means included in the apparatus of the present invention are cleared and input/output information for controlling the present invention is set.

ついで、ステツプ102「スキヤン駆動」では、1
回のスキヤンを行い撮像データをデータ読込手段
33に読み込み、前データ記憶手段20に蓄積す
る。
Next, in step 102 "scan drive", 1
The image data is read into the data reading means 33 and stored in the previous data storage means 20.

ステツプ103「個数処理」では、ステツプ102に
よつて得られた前データ記憶手段20にあるデー
タの立上りと立下りの個数を数え、前データ個数
記憶手段に蓄積する。
In step 103 ``number processing'', the number of rising edges and falling edges of the data in the previous data storage means 20 obtained in step 102 is counted and stored in the previous data number storage means.

ついで、ステツプ104「スキヤン駆動」では、つ
ぎの(2回目の)のスキヤンを行い、新たな撮像
データを、現データ記憶手段23に蓄積し、つい
でステツプ105において、その現データの立上り
と、立下がりの個数を数え、ステツプ106で現デ
ータ個数記憶手段24に蓄積する。
Next, in step 104 "scan drive", the next (second) scan is performed and new imaging data is stored in the current data storage means 23, and then in step 105, the rising edge and rising edge of the current data are The number of falling pieces is counted and stored in the current data number storage means 24 in step 106.

ついでステツプ107「処理ルーチン」では、前デ
ータと現データの比較、マーク付等の処理を行
う。ステツプ108では、現データの個数を次回の
スキヤンの際の前データの個数とするため、現デ
ータの個数を、前データ個数記憶手段に移してお
く。
Next, in step 107 ``Processing Routine'', processes such as comparing the previous data and the current data and adding marks are performed. In step 108, the number of current data is transferred to the previous data number storage means in order to use the number of current data as the number of previous data for the next scan.

ステツプ109においては、走査が設定値に達し
ているかを判断し、達していなければステツプ
110にすすんで外部信号が立下つているかを判断
し、立下つていなければ、ステツプ104に戻りル
ープを繰り返す。ステツプ109で走査が設定値に
達していればステツプ111にすすんで判定結果を
表示手段、外部手段、回線手段等に出力する。
In step 109, it is determined whether the scanning has reached the set value, and if it has not reached the set value, the step is continued.
Proceeding to step 110, it is determined whether the external signal is falling, and if it is not falling, the process returns to step 104 and repeats the loop. If the scanning reaches the set value in step 109, the process proceeds to step 111, where the determination result is output to display means, external means, line means, etc.

ステツプ110では、外部の入力信号が立下つた
時点で、ステツプ111にすすみ、同様に判定結果
を出力処理する。
In step 110, when the external input signal falls, the process proceeds to step 111, where the determination result is similarly output and processed.

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

本発明によれば、対象物の形状の如何にかかわ
らず対象物の個数を迅速にカウントすることがで
きる。
According to the present invention, the number of objects can be quickly counted regardless of the shape of the objects.

さらに、本発明による処理方法は、常に前に進
む処理で構成されているので、後戻りする必要が
なく、処理時間の一層の短縮を図ることができ
る。
Furthermore, since the processing method according to the present invention consists of processing that always moves forward, there is no need to go back, and the processing time can be further shortened.

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

第1図は、本発明の1実施例のブロツク図、第
2図は、対象物と本発明による信号処理態様との
関係を示す図、第3図は、本発明装置の各手段に
おけるデータの態様を示す図、第4図は、判定手
段の構成を示すブロツク図、第5図は、本発明の
フローチヤートである。 1……対象物、2……撮像手段、3……スキヤ
ン駆動回路、4……アナログ増幅回路、5……測
定手段、6……判定手段、7……表示手段、8…
…外部制御信号入力手段、9……外部出力手段、
10……回線手段、11……内部電源、20……
前データ記録手段、21……前データ個数記録手
段、22……前データマーク付手段、23……現
データ記録手段、24……現データ個数記録手
段、25……現データマーク付手段、26……次
回マーク記録手段、27……位置比較手段、28
……単一処理手段、29……重複処理手段、30
……マーク変更手段、31……マーク個数監視手
段、32……個数カウント手段、33……データ
読込手段、34……外部入力読込手段、35……
回路入力読込手段、37……外部出力制御手段、
38……表示制御手段、39……入出力制御手
段。
FIG. 1 is a block diagram of one embodiment of the present invention, FIG. 2 is a diagram showing the relationship between the object and the signal processing mode according to the present invention, and FIG. 3 is a diagram showing the relationship between the object and the signal processing mode according to the present invention. FIG. 4 is a block diagram showing the configuration of the determining means, and FIG. 5 is a flowchart of the present invention. DESCRIPTION OF SYMBOLS 1...Target, 2...Imaging means, 3...Scan drive circuit, 4...Analog amplifier circuit, 5...Measuring means, 6...Determination means, 7...Display means, 8...
...External control signal input means, 9...External output means,
10...Line means, 11...Internal power supply, 20...
Previous data recording means, 21... Previous data number recording means, 22... Previous data marking means, 23... Current data recording means, 24... Current data number recording means, 25... Current data marking means, 26 ...Next time mark recording means, 27...Position comparison means, 28
...Single processing means, 29...Double processing means, 30
...Mark changing means, 31... Mark number monitoring means, 32... Number counting means, 33... Data reading means, 34... External input reading means, 35...
Circuit input reading means, 37...external output control means,
38...display control means, 39...input/output control means.

Claims (1)

【特許請求の範囲】 1 対象物を1次元的に走査して撮像する撮像手
段と、該撮像手段の走査方向と直交する方向に前
記走査に対応して前記対象物を移動する移動手段
と、前記撮像手段からの撮像信号を、対象物の存
否に対応した値をもつ信号に変換して、各走査毎
に記憶する記憶手段と、該記憶手段に記憶された
信号から、互いに隣接する走査間で対象物の存在
を示す部分の位置を比較する比較手段と、該比較
手段の比較結果に基づいて、互いに隣接する走査
間での対象物の存在を示す部分の重なりの状態に
関して、重なりがない場合には対象物の存在を示
す部分に新規のマークを付し、重なりが1つの場
合には前回走査における対象物の存在を示す部分
に付されたマークと同一のマークを今回走査にお
ける対象物の存在を示す部分に付し、今回走査に
おける対象物の存在を示す部分が複数の異なるマ
ークが付された対象物の存在を示す部分と重なつ
ている場合には最新のマークに一致したマークを
今回走査における対象物の存在を示す部分に付
し、該マークにより対象物の継続性を監視して対
象物の個数を判定する判定手段とを備えたことを
特徴とする個数カウント装置。 2 特許請求の範囲第1項記載の装置において、
前記判定手段は、 J番目(J:自然数)の走査における撮像信号
中になかつた位置に、J+1番目の走査における
撮像信号中の対象物の存在を示す部分が現れたか
を判断する第1判断処理手段と、 J番目に走査における撮像信号中の対象物の存
在する位置にJ+1番目の走査における撮像信号
中の対象物の存在を示す複数個の部分が含まれる
かを判断する第2判断処理手段と、 J番目の走査における撮像信号中の対象物の存
在を示す複数の部分の位置が、J+1番目の走査
における撮像信号中の対象物の存在を示す部分に
含まれるかを判断する第3判断処理手段と、 J番目の走査における撮像信号中にあつた対象
物の存在を示す部分がJ+1番目の走査における
撮像信号中の該当位置から消滅したかを判断する
第4判断処理手段とを含むことを特徴とする個数
カウント装置。
[Scope of Claims] 1. Imaging means for one-dimensionally scanning and imaging an object; moving means for moving the object in a direction perpendicular to the scanning direction of the imaging means in response to the scanning; storage means for converting the imaging signal from the imaging means into a signal having a value corresponding to the presence or absence of an object and storing it for each scan; and a comparison means for comparing the positions of the parts indicating the presence of the object, and based on the comparison results of the comparison means, it is determined that there is no overlap with respect to the overlapping state of the parts indicating the presence of the object between mutually adjacent scans. If there is one overlap, a new mark is attached to the part indicating the presence of the object, and if there is one overlap, the same mark as the mark attached to the part indicating the presence of the object in the previous scan is added to the part indicating the presence of the object in the current scan. If the part indicating the existence of an object in the current scan overlaps with the part indicating the existence of an object to which multiple different marks have been attached, a mark that matches the latest mark is attached. A number counting device characterized by comprising: a determining means for marking a part indicating the presence of an object in the current scan, and determining the number of objects by monitoring the continuity of the object using the mark. 2. In the device according to claim 1,
The determining means performs a first determination process of determining whether a portion indicating the presence of an object in the imaging signal in the J+1st scan appears at a position that was not present in the imaging signal in the Jth (J: natural number) scan. and second determination processing means for determining whether the position where the object exists in the imaging signal in the Jth scan includes a plurality of portions indicating the presence of the object in the imaging signal in the J+1st scan. and a third determination for determining whether the positions of the plurality of portions indicating the presence of the object in the imaging signal in the J-th scan are included in the portions indicating the presence of the object in the imaging signal in the J+1-th scan. and a fourth determination processing means for determining whether a portion indicating the presence of an object that was present in the imaging signal in the J-th scan has disappeared from the corresponding position in the imaging signal in the J+1-th scanning. A piece counting device featuring:
JP29360185A 1985-12-28 1985-12-28 Quantity counting device Granted JPS62156787A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29360185A JPS62156787A (en) 1985-12-28 1985-12-28 Quantity counting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29360185A JPS62156787A (en) 1985-12-28 1985-12-28 Quantity counting device

Publications (2)

Publication Number Publication Date
JPS62156787A JPS62156787A (en) 1987-07-11
JPH0514314B2 true JPH0514314B2 (en) 1993-02-24

Family

ID=17796823

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29360185A Granted JPS62156787A (en) 1985-12-28 1985-12-28 Quantity counting device

Country Status (1)

Country Link
JP (1) JPS62156787A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2670639B2 (en) * 1990-10-15 1997-10-29 株式会社光伸舎 Parts counting device
TW299950U (en) * 1992-07-30 1997-03-01 Sharp Kk Communication means for an electrical device in a refrigerator

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5770406A (en) * 1980-10-21 1982-04-30 S G:Kk Rotating angle detecting apparatus
JPS5962994A (en) * 1982-09-30 1984-04-10 Matsushita Electric Works Ltd Counter

Also Published As

Publication number Publication date
JPS62156787A (en) 1987-07-11

Similar Documents

Publication Publication Date Title
JPH0514314B2 (en)
US4868403A (en) Surface inspecting apparatus
JPS61221610A (en) Method of detecting position of end edge section of tabular or band-shaped measured member, etc.
JPS62156786A (en) Quantity counting device
JP3207974B2 (en) Photomask defect inspection method
JPS63222244A (en) Surface inspector
JPH05644B2 (en)
JPS63154912A (en) Apparatus for measuring road surface
JP3072787B2 (en) Printing evaluation method and printing evaluation device
JPS6023392B2 (en) Hand scanning figure input method
JPH07128013A (en) Optical position detector
JP2797328B2 (en) Line shape judgment device
JPH0431621B2 (en)
RU1832403C (en) Infra-red imager
JP2594700B2 (en) Bending inspection device for semiconductor integrated circuit devices
JPH0210988B2 (en)
JPS586214U (en) optical linear encoder
JPS6332671A (en) Color dividing method for coordinate data
JPS6240975A (en) Detecting method for butt state of steel plate
JPS6064588A (en) Position detector
JPS61270604A (en) Precise measuring instrument
JPS61251269A (en) Hand scanner
JPS61270984A (en) Serial data processor
JPS6178274A (en) Reading method of picture
JPS63267583A (en) Marking head monitoring device