JPH0225227B2 - - Google Patents
Info
- Publication number
- JPH0225227B2 JPH0225227B2 JP60117849A JP11784985A JPH0225227B2 JP H0225227 B2 JPH0225227 B2 JP H0225227B2 JP 60117849 A JP60117849 A JP 60117849A JP 11784985 A JP11784985 A JP 11784985A JP H0225227 B2 JPH0225227 B2 JP H0225227B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- measured
- section
- counting
- count
- 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
Links
Landscapes
- Length Measuring Devices By Optical Means (AREA)
Description
【発明の詳細な説明】
(イ) 産業上の利用分野
この発明は計数機、詳細には存在位置、数の不
確定な被測定物の計数の対象を計数可能な計数機
に関する。DETAILED DESCRIPTION OF THE INVENTION (a) Field of Industrial Application The present invention relates to a counter, and more particularly, to a counter capable of counting objects to be measured whose location and number are uncertain.
(ロ) 従来の技術
従来、被測定物、例えば孔の複数ある基板の孔
数などを計測するには、光源から出た光を受光部
がCCDカメラ等により、受光し、受光の有無を
マイクロコンピユータに伝送し記憶するという装
置によつて行つていた。即ち、上下に並ぶ光源と
受光部との間を基板を水平方向に直進通過させ行
つていた。同装置では孔のあいた部分の光は受光
部に到達し、孔の無い部分の光は遮られ受光部に
到達しない。この受光の有無を被測定物上の各点
の情報として、被測定物の進行方向に直角方向に
ドツト幅でスライスするように走査し、受光部よ
りマイクロコンピユータに伝送し、記憶する。次
いで、記憶装置上の画像をラスタ走査で順次走査
し、1画素を見付けラベルを付す。次いで、この
ラベルの付いた画素の8近傍あるいは8近傍内に
ある画素にも同じラベルを付し、新しくラベルを
付す画素が無くなつたとき、一つの連結画素に同
じラベルを割り当てる。新しくラベルを付す画素
が無くなつたところで、再び走査を行い、まだラ
ベルの無い画素を見付けたところで、前に使用し
ていない新しいラベルを付し、再び8近傍あるい
は8近傍内にある画素に同じラベルを付す。この
作業を繰り返すことにより、被測定物上の総ての
ドツトの画像を走査し終えたとき、ラベリングに
使用したラベルの数、被測定物上の孔の数となる
という方法を用いていた。(b) Conventional technology Conventionally, in order to measure the number of holes in an object to be measured, for example, a substrate with multiple holes, a light receiving section receives light emitted from a light source using a CCD camera, etc., and detects whether or not the light is received using a micrometer. This was done using a device that transmitted data to a computer and stored it. That is, the substrate is passed straight horizontally between the light sources and the light receiving section which are arranged vertically. In this device, light from areas with holes reaches the light receiving section, while light from areas without holes is blocked and does not reach the light receiving section. The presence or absence of this light reception is used as information for each point on the object to be measured, which is scanned in a dot-width slice in a direction perpendicular to the direction of movement of the object to be measured, transmitted from the light receiving section to a microcomputer, and stored. Next, the image on the storage device is sequentially scanned by raster scanning, and one pixel is found and labeled. Next, the same label is attached to the 8 neighbors or pixels within the 8 neighborhoods of this labeled pixel, and when there are no more pixels to be newly labeled, the same label is assigned to one connected pixel. When there are no more pixels to be newly labeled, the scan is performed again, and when a pixel that does not yet have a label is found, a new label that has not been used before is attached, and the same pixel is again applied to the 8-neighborhood or within the 8-neighborhood. Label. By repeating this operation, when the images of all the dots on the object to be measured have been scanned, the number of labels used for labeling becomes the number of holes on the object to be measured.
又、このラベリングアルゴリズムを用いた方法
により簡単に計数を実現するために、従来実開昭
53―66276〓移動物体の個数計数装置〓が有つた。
この従来例の計数の方法を第4図乃至第5図に従
い簡略に説明すると、101はベルトコンベアで
あり、102は被測定物である移送物であり、1
03はセンサである。ベルトコンベア101は、
被測定物である移送物102を搬送し、センサ1
03の走査位置を通過させる。センサ103が、
集光レンズ104を経て光導電素子アレイ105
及び走査装置106とで移送物102を移送方向
と交差方向に順次走査し、その走査信号を制御回
路が計数を行う。この制御回路は第5図に示すと
おりであり、計数区間でのセンサ103の出力す
る走査撮像信号は、FF1(フリツプフロツプの
略記、以下同様)により、被測定物である移送物
102を感知した場合にFF2及びFF3を経て計
数信号として出力されるとともに、NA(ナンド
ゲートの略記、以下同様)1,NA2,NA3へ
も出力される。一方、SR(シフトレジスタの略
記、以下同様)では、センサ103の出力した走
査撮像信号を順次入力記憶しており、前回の走査
時の走査撮像信号をNA1乃至NA3に出力する。
この時、NA1では、ビツト位置nでの今回の走
査撮像信号を入力するととに前回の走査撮像信号
のビツト位置n+1の信号とを入力し、ナンドを
とる。同様に、NA2では、ビツト位置nの今回
の走査撮像信号とともに前回の走査撮像信号のビ
ツト位置nとを入力し、ナンドをとり、NA3で
はビツト位置nの今回の走査撮像信号とともに前
回の走査撮像信号のビツト位置n−1とを入力
し、ナンドをとる。そして、NA1乃至NA3の
いずれかに出力信号が有る場合には、その出力信
号がFF2にクリアー信号として入力される。FF
2では、このクリアー信号により今回の走査信号
のビツト位置nの信号を入力したことによる信号
の出力をせず、FF2からFF3へは信号出力され
ない。従つて、順次走査した被測定物である移送
物102を最初に走査したときには、前回走査の
走査撮像信号がすべて移送物102を感知しない
状態の信号なのでNA1乃至NA3によるキヤン
セル信号は出力されず、移送物102を計数し、
以後の走査では、NA1乃至NA3により、同じ
移送物102の信号はキヤンセルされ計数されな
いので、ベルトコンベア101上を移送する複数
の移送物102の数を計数可能となる。 In addition, in order to easily realize counting using a method using this labeling algorithm,
53-66276〓A device for counting the number of moving objects〓 was available.
The counting method of this conventional example will be briefly explained with reference to FIGS. 4 and 5. 101 is a belt conveyor, 102 is an object to be measured, 1
03 is a sensor. The belt conveyor 101 is
The object to be measured 102 is transported, and the sensor 1
03 scanning position is passed. The sensor 103 is
Photoconductive element array 105 via condensing lens 104
and a scanning device 106 to sequentially scan the transferred object 102 in a direction crossing the transfer direction, and a control circuit counts the scanning signals. This control circuit is as shown in FIG. 5, and the scanning image signal outputted by the sensor 103 in the counting period is generated when the transferred object 102, which is the object to be measured, is sensed by FF1 (abbreviation for flip-flop, hereinafter the same). It is output as a count signal through FF2 and FF3, and is also output to NA (abbreviation for NAND gate, the same applies hereinafter) 1, NA2, and NA3. On the other hand, the SR (abbreviation for shift register, hereinafter the same) sequentially inputs and stores the scanning image signals output from the sensor 103, and outputs the scanning image signals from the previous scan to NA1 to NA3.
At this time, NA1 inputs the current scanning image pickup signal at bit position n, inputs the signal at bit position n+1 of the previous scan image pickup signal, and takes NAND. Similarly, in NA2, the bit position n of the previous scanning imaging signal is input together with the current scanning imaging signal at bit position n, and the NAND is taken. Input bit position n-1 of the signal and take NAND. If any of NA1 to NA3 has an output signal, that output signal is input to FF2 as a clear signal. FF
In FF2, the clear signal does not output the signal due to the input of the signal at bit position n of the current scanning signal, and no signal is output from FF2 to FF3. Therefore, when the transferred object 102, which is the sequentially scanned object to be measured, is scanned for the first time, the scanning image signals of the previous scan are all signals in a state where the transferred object 102 is not detected, so cancel signals by NA1 to NA3 are not output. counting the transferred items 102;
In subsequent scans, the signals of the same transferred object 102 are canceled and not counted due to NA1 to NA3, so that the number of a plurality of transferred objects 102 transferred on the belt conveyor 101 can be counted.
(ハ) 発明が解決しようとする課題
従来の方法では、被測定物に光源からの光を当
て、受光部で受光した後、被測定物上に仮定した
総てのドツトに対する受光の有無をマイクロコン
ピユータに記憶させなければならず、しかも、ラ
ベリングするための複雑なコンピユータソフトを
必要とし、更に、走査、ラベリングの繰り返しに
より、多大な計数時間を要した。(c) Problems to be Solved by the Invention In the conventional method, the object to be measured is irradiated with light from a light source, the light is received by the light receiving section, and then the presence or absence of light reception for all dots assumed on the object to be measured is measured using a micrometer. The data had to be stored in a computer, and complicated computer software was required for labeling. Furthermore, repeated scanning and labeling required a large amount of counting time.
更に、実開昭53―66276に係る従来の方法では、
例えば、被測定物の形状が第7図aに示す場合に
は、搬送方向をX、走査方向をY、各走査をT0
乃至T5、Y方向の幅yを1ビツト幅とすると、
被測定物がT1を走査したときには前回操作時の
信号は被測定物を感知しないのでNA1乃至NA
3によるキヤンセルは行われないので、〓1〓を
計数し、T2を走査したときには、今回走査した
被測定物の信号はNA1乃至NA3によりキヤン
セルされ計数しないので正常に計数される。しか
し、T3を走査したときには、被測定物のY方向
長が、前回走査の時に比し、前回の走査の時に被
測定物を感知ない位置に長く突出した形状なの
で、nビツト目に相当する被測定物の測定部分1
07の形状を感知した信号は、NA1乃至NA3
で前回走査した信号と比較しても、n±1ビツト
からはずれてしまうので、キヤンセルすることが
出来ない。すると、FF2は計数するための出力
信号を送出してしまい、カウンタが計数し、計数
結果が〓2〓と誤つた計数を行うので、第6図に
示すような形状の被測定物の正常な計数が出来な
いという課題を有した。又、第7図に示すような
形状の被測定物でも、T10のような位置で計数が
〓2〓となるので、第6図同様正常な計数が出来
ないという課題を有した。 Furthermore, in the conventional method related to Utility Model Application No. 53-66276,
For example, if the shape of the object to be measured is shown in Figure 7a, the transport direction is X, the scanning direction is Y, and each scan is T 0
〜T 5 , and if the width y in the Y direction is 1 bit width, then
When the measured object scans T 1 , the signal from the previous operation does not detect the measured object, so NA1 to NA
3 is not canceled, so when 〓1〓 is counted and T 2 is scanned, the signal of the object to be scanned this time is canceled by NA1 to NA3 and is not counted, so it is counted normally. However, when scanning T 3 , the length of the object to be measured in the Y direction is longer than that of the previous scan, and is longer than that of the previous scan to a position where the object to be measured is not detected, so it corresponds to the nth bit. Measuring part 1 of the object to be measured
The signal that detected the shape of 07 is NA1 to NA3
Even when compared with the signal scanned last time, the signal deviates from n±1 bits, so it cannot be canceled. Then, FF2 sends out an output signal for counting, the counter counts, and the counting result is erroneously calculated as 〓2〓.As a result, the object to be measured having the shape shown in Fig. 6 is not normal. I had the problem of not being able to count. Further, even with the object to be measured having the shape as shown in FIG. 7, the count becomes 2 at a position such as T10 , so there is a problem that normal counting cannot be performed as in FIG. 6.
(ニ) 問題点を解決するための手段
この発明は、被測定物が通過する際、被測定物
の進行方向と交差方向に順次に走査し、走査毎に
被測定物の有無を識別して計測し、デイジタル化
して信号を送信する計測部と、計測部からの信号
を記憶する記憶部と、計測部からの信号を入力
し、被測定物を感知する場合にプラス計数すると
ともに、計測部からの信号及び記憶部からの記憶
した前回走査の信号を入力比較し、両信号が被測
定物を感知した信号の場合にマイナス計数する計
数部と、計数部からの信号を入力することで計数
結果を表示する表示部とからなることを特徴とす
る計数機を提供することで、上述の問題点を解消
することを目的とする。(d) Means for solving the problem This invention sequentially scans the object to be measured in the traveling direction and the cross direction when the object passes, and identifies the presence or absence of the object at each scan. A measuring section that measures, digitizes and transmits the signal, a storage section that stores the signal from the measuring section, and a measuring section that inputs the signal from the measuring section and performs a positive count when sensing the object to be measured. The signal from the counter and the signal from the previous scan stored from the storage section are input and compared, and if both signals are signals that detect the object to be measured, the counter section performs a negative count, and the signal from the counter is input. It is an object of the present invention to solve the above-mentioned problems by providing a counter characterized by comprising a display section that displays results.
(ホ) 作 用
この発明では、被測定物を計測部に交差方向に
搬送し、被測定物の移動方向に対し交差方向に順
次走査する。すると、走査することで得る被測定
物の有無による光の変化に対応し、計測部では被
測定物の有無を識別して計測し、更にデイジタル
化して信号を送信する。この計測部からのデイジ
タル化された信号を記憶部が記憶し、次の走査の
際に該記憶した信号を送信する。(e) Effect In this invention, the object to be measured is transported to the measuring section in a direction transverse to the direction of movement of the object to be measured, and is sequentially scanned in the direction intersecting the moving direction of the object to be measured. Then, in response to changes in light due to the presence or absence of the object to be measured obtained by scanning, the measuring section identifies and measures the presence or absence of the object to be measured, and further digitizes and transmits a signal. The storage section stores the digitized signal from the measurement section, and transmits the stored signal during the next scan.
一方、記憶部と同時に、計測部の送信する信号
は計数部でも入力する。計数部は、同時に記憶部
の記憶している前回走査時の信号をも入力し、計
測部からの信号を入力し、被測定物を感知する場
合にはプラス計数するとともに、計数部からの信
号および記憶部からの記憶した前回走査時の信号
を入力比較し、両信号が被測定物を感知した信号
の場合にはマイナス計数するので、計測部の送信
する信号が被測定物を感知した信号の場合にはプ
ラス計数を行うとともに、記憶部からの信号と計
測部からの信号とが被測定物を感知した信号の場
合にはマイナス計数を行う。次いで、計数部から
の信号により、表示部は、計数結果を表示する。
上述のような走査を被測定物全体に対し行うこと
により、被測定物を計数する。 On the other hand, at the same time as the storage section, the signal transmitted by the measurement section is also input to the counting section. The counting section simultaneously inputs the signal from the previous scan stored in the storage section, inputs the signal from the measuring section, performs a positive count when sensing an object to be measured, and also inputs the signal from the counting section. and the signal from the previous scan stored from the storage unit are input and compared, and if both signals are signals that detected the object to be measured, a negative count is performed, so that the signal sent from the measurement unit is the signal that detected the object to be measured. In this case, a positive count is performed, and a negative count is performed if the signal from the storage section and the signal from the measurement section are signals that indicate the object to be measured. Next, the display section displays the counting result based on the signal from the counting section.
The objects to be measured are counted by scanning the entire object to be measured as described above.
(ヘ) 実施例
以下、この発明の実施例を示す第1図、この発
明の部品図を表す第2図、計数の方法を説明する
第3図に従い説明する。(F) Embodiment The following will describe an embodiment of the present invention with reference to FIG. 1, FIG. 2 which shows a parts diagram of the invention, and FIG. 3 which explains a counting method.
まず、本計数機の構成を第1図及び第2図に従
い説明する。 First, the configuration of this counter will be explained according to FIGS. 1 and 2.
1は光源である。光源1は、線形光源である。
2は計測部であり、計測部2は光源1の鉛直上方
に、光源1と計測部2との間に、被測定物が通過
可能な間隔を保つよう、更に、光源1から発する
光が計測部2に到達するのを遮るものが無い状態
に設置する。 1 is a light source. Light source 1 is a linear light source.
Reference numeral 2 denotes a measuring section, and the measuring section 2 is arranged vertically above the light source 1 to maintain a distance between the light source 1 and the measuring section 2 through which the object to be measured can pass. Install it so that there is nothing blocking access to Part 2.
3は搬送装置であり、4は被測定物である。被
測定物4は搬送装置3上に載置し、搬送装置3に
より光源1の線形方向に交差するように移動し、
光源1と計測部2の間に搬送され被測定物4の孔
のあいていない部分では光源1からの光を遮り、
計測部2に到達させず、孔のあいている部分で
は、光源1からの光を計測部2に到達させる。こ
の時、計測部2は被測定物4上を被測定物4の進
行方向に直角方向に、被測定物4の幅分の光を受
光し、被測定物4は搬送装置3により順次移動す
るので、計測部2は被測定物4を走査することに
なる。計測部2では、被測定物4上を各ドツトの
集まりとし、各ドツト毎の光の有無のみを受光部
2aで受光し、信号送出部2bが受光部2aの受
光の有無を受光の際には1、非受光の際には0と
デイジタル化し、送信する。 3 is a transport device, and 4 is an object to be measured. The object to be measured 4 is placed on a transport device 3, and is moved by the transport device 3 so as to intersect with the linear direction of the light source 1.
The part of the object to be measured 4 that is conveyed between the light source 1 and the measuring section 2 and has no holes blocks the light from the light source 1,
The light from the light source 1 is allowed to reach the measuring section 2 without reaching the measuring section 2 in the perforated portion. At this time, the measurement unit 2 receives light corresponding to the width of the measured object 4 on the measured object 4 in a direction perpendicular to the traveling direction of the measured object 4, and the measured object 4 is sequentially moved by the transport device 3. Therefore, the measuring section 2 scans the object 4 to be measured. In the measuring section 2, the object to be measured 4 is a collection of dots, the light receiving section 2a receives only the presence or absence of light for each dot, and the signal transmitting section 2b detects whether or not the light receiving section 2a receives light. is 1, and when no light is received, it is digitized as 0 and transmitted.
5は記憶部である。記憶部5は、計測部2の信
号送出部2bより送信される信号を、搬送装置3
の幅毎に順次記憶しておく。その際、計測部2か
らの信号はデイジタル化され、各ドツトの集まり
が被測定物4上にあるかのごとく記憶する。この
実施例では、記憶部5は、被測定物4の幅方向の
ドツトの集まりを1ラインとすると1ラインの入
力信号を蓄積するが、必ずしも1ラインでなくと
もよく、1ライン以上の蓄積が出来れば孔の計数
は可能であり、更に本発明に計測部2からの信号
に対するフイルター等を用いることにより、穴の
形状に対する処理などを行うことも可能である。 5 is a storage section. The storage unit 5 stores the signal transmitted from the signal sending unit 2b of the measuring unit 2 into the transport device 3.
are stored sequentially for each width. At this time, the signal from the measuring section 2 is digitized and each collection of dots is stored as if it were on the object to be measured 4. In this embodiment, the storage unit 5 stores one line of input signals, assuming that one line is a collection of dots in the width direction of the object to be measured 4, but it does not necessarily have to be one line, and more than one line can be stored. If possible, it is possible to count the holes, and furthermore, by using a filter or the like for the signal from the measuring section 2 in the present invention, it is also possible to process the shape of the holes.
6は計数部である。計数部6は、第2図に示す
ごとく、アンドゲート7とフリツプフロツプ回路
8a,8b、計数カウンター9、表示装置10と
から構成する。計数部6のアンドゲート7は、計
測部2の信号送出部2bからの信号及び記憶部5
からの信号を入力し、アンドをとり比較結果をフ
リツプフロツプ回路8bへ信号出力する。フリツ
プフロツプ回路8bではアンド7からの信号に従
いカウントパルスを発生し、計数カウンター9へ
カウントパルスを出力する。他方、フリツプフロ
ツプ回路8aは計測部2の信号送出部2bからの
入力信号に従いカウントパルスを発生し、計数カ
ウンター9へカウントパルスを出力する。計数カ
ウンター9では、フリツプフロツプ回路8a及び
フリツプフロツプ回路8bからのカウントパルス
を入力し、フリツプフロツプ回路8aからのカウ
ントパルスを入力した場合には「1」を加え、フ
リツプフロツプ回路8bからのカウントパルスを
入力した場合には「1」を減算し、計数表示部1
0へ表示信号を出力する。計数表示部10では計
数カウンター9からの表示信号に従い計数結果を
表示する。 6 is a counting section. The counting section 6 is composed of an AND gate 7, flip-flop circuits 8a, 8b, a counting counter 9, and a display device 10, as shown in FIG. The AND gate 7 of the counting section 6 receives the signal from the signal sending section 2b of the measuring section 2 and the storage section 5.
A signal from the flip-flop circuit 8b is inputted, an AND is performed, and the comparison result is outputted as a signal to the flip-flop circuit 8b. The flip-flop circuit 8b generates a count pulse according to the signal from the AND7, and outputs the count pulse to the counting counter 9. On the other hand, the flip-flop circuit 8a generates count pulses according to the input signal from the signal sending section 2b of the measuring section 2, and outputs the count pulses to the counting counter 9. In the counting counter 9, the count pulses from the flip-flop circuit 8a and the flip-flop circuit 8b are input, and when the count pulse from the flip-flop circuit 8a is input, "1" is added, and when the count pulse from the flip-flop circuit 8b is input, "1" is added. "1" is subtracted from "1", and the count display section 1
Outputs the display signal to 0. The count display section 10 displays the count results in accordance with the display signal from the count counter 9.
そこで、第2図に示すように、計数部6に現在
走査し、送信されている信号のラインをA,Aの
1ライン前の信号をBとし、計測部2が現在送信
している信号Aと、記憶部5に記憶されている1
ライン前の信号Bとを同期させ入力する。その
際、記憶部5では1ライン前の信号Bを計数部6
に送信するとともに記憶を消去し、同時に、計測
部2で現在送信している信号を記憶していく。計
数部6では、現在送信されている信号Aが0から
1になつたときには、フリツプフロツプ回路8a
でカウントパルスを発生し計数カウンター9に1
を加える。又、現在送信されている信号Aと、1
ライン前の信号Bとを同期してアンドゲート7に
入力し、アンドゲート7の出力信号が1から0に
なつた時に、フリツプフロツプ回路8bでカウン
トパルスを発生し、計数カウンター9から1を引
く。この作業を被測定物4上の総てのラインに付
き行い計数表示部10に表示することにより、孔
の数を計数し、表示することができる。又、本実
施例では、被測定物4の計数する対象が、光源1
からの光を計測部2に到達させ、被測定物4の計
数対象外の部位は、光源1からの光を遮断する例
を述べたが、被測定物4の計数する対象が、光源
1からの光を遮断し、被測定物4の計数対象外の
部位が光源1からの光を計測部2に到達させても
よい。この場合には、現在走査している信号Aが
1から0になるときに、フリツプフロツプ回路8
aでカウントパルスを発生し、計数カウンター9
に1を加える。又、現在走査している信号Aと、
1ライン前の信号Bとを同期し、アンドゲート7
に入力し、アンドゲート7の出力信号が0から1
になつた時に、フリツプフロツプ回路8bでカウ
ントパルスを発生し、計数カウンター9から1を
引く。又、本実施例では、被測定物の情報を、光
を用い測定するが、光以外の、例えば、電流の有
無、磁極の差異、偏光の有無等の手段を用いるこ
とでも可能である。 Therefore, as shown in FIG. 2, the line of the signal that is currently being scanned and transmitted is designated as A, the signal one line before A is designated as B, and the signal A that is currently being transmitted by the measuring section 2 is designated as A. and 1 stored in the storage unit 5
Input in synchronization with signal B before the line. At this time, in the storage unit 5, the signal B of one line before is stored in the counting unit 6.
At the same time, the signal currently being transmitted by the measuring section 2 is stored. In the counting section 6, when the currently transmitted signal A changes from 0 to 1, the flip-flop circuit 8a
generates a count pulse and sets count counter 9 to 1.
Add. Also, the currently transmitted signal A and 1
The signal B in front of the line is input to the AND gate 7 in synchronization with it, and when the output signal of the AND gate 7 changes from 1 to 0, a count pulse is generated in the flip-flop circuit 8b and 1 is subtracted from the counting counter 9. By performing this operation on all lines on the object to be measured 4 and displaying it on the counting display unit 10, the number of holes can be counted and displayed. Further, in this embodiment, the object to be counted of the object to be measured 4 is the light source 1.
We have described an example in which the light from the light source 1 is allowed to reach the measurement unit 2, and the parts of the object to be measured 4 that are not to be counted are blocked from the light from the light source 1. It is also possible to block the light from the light source 1 and allow the light from the light source 1 to reach the measuring section 2 from a portion of the object to be measured 4 that is not to be counted. In this case, when the currently scanned signal A changes from 1 to 0, the flip-flop circuit 8
Generate a count pulse at a, count counter 9
Add 1 to . Also, the signal A that is currently being scanned,
Synchronize with signal B one line before, AND gate 7
and the output signal of AND gate 7 changes from 0 to 1.
When , the flip-flop circuit 8b generates a count pulse and subtracts 1 from the counting counter 9. Further, in this embodiment, information on the object to be measured is measured using light, but it is also possible to use means other than light, such as the presence or absence of current, the difference in magnetic poles, the presence or absence of polarized light, etc.
更に例として、第3図に示す被測定物4上の任
意の形状の孔11を実施例に基づき計数してみ
る。 Furthermore, as an example, holes 11 of arbitrary shapes on the object to be measured 4 shown in FIG. 3 will be counted based on the example.
現在走査し、送信されている信号のラインをA
とし、1ライン前の信号をBとし、被測定物4上
に対応させ表してみる。11はそれぞれ被測定物
4上にあく孔とする。 The line of the signal currently being scanned and transmitted is A.
Let B be the signal from one line before, and represent it on the object to be measured 4. Reference numerals 11 denote holes formed on the object 4 to be measured.
第3図aに示すように、計測部2が被測定物4
の走査を行い、現在走査している信号が走査を進
め、(a)点に達したとき、孔11を通過した光を受
光部2aが受光し、信号送出部2bへ、受光信号
を送出する。信号送出部2bでは、受光部2aか
ら、受光した信号を入力するので、信号をデイジ
タル化し1をフリツプフロツプ回路8aに送信す
る。フリツプフロツプ回路8aでは信号送出部2
bからの信号1を入力し、(a)点に達する前の走査
時の信号が0なので、信号が0から1となりフリ
ツプフロツプ回路8aによりカウントパルスを発
生しカウンター9に1を加え計数表示部10に
「1」を表示する。この時、同時に、現在走査し
ている信号Aと1ライン前の信号Bとが、アンド
ゲート7にも入力される。アンドゲート7では、
現在走査している信号Aと1ライン前の信号Bと
のアンドをとると0となるので、アンドゲート7
から信号の出力はしない。従つて、フリツプフロ
ツプ回路8bではカウントパルスを発生せず、フ
リツプフロツプ回路8bからの信号を入力する計
数カウンター9では信号出力をせず、計数カウン
ター9のカウントは0でありカウントされない。
従つて、現在走査している信号Aが(a)点を通過
し、第3図aに示すラインの走査を終了した時点
では、計数値は「1」であり、計数表示部10に
は「1」が表示される。 As shown in FIG. 3a, the measuring section 2
When the current scanning signal advances and reaches point (a), the light receiving section 2a receives the light that has passed through the hole 11, and sends a light reception signal to the signal sending section 2b. . Since the signal sending section 2b receives the received signal from the light receiving section 2a, it digitizes the signal and transmits 1 to the flip-flop circuit 8a. In the flip-flop circuit 8a, the signal sending section 2
Since the signal 1 from point b is input and the signal during scanning before reaching point (a) is 0, the signal changes from 0 to 1, and the flip-flop circuit 8a generates a count pulse, adds 1 to the counter 9, and counts the display section 10. "1" is displayed. At this time, the signal A currently being scanned and the signal B from one line before are simultaneously input to the AND gate 7. In ANDGATE 7,
If you AND the signal A currently being scanned and the signal B one line before, it becomes 0, so the AND gate 7
No signal is output from. Therefore, the flip-flop circuit 8b does not generate a count pulse, and the counting counter 9, which receives the signal from the flip-flop circuit 8b, does not output a signal, and the count of the counting counter 9 is 0 and no counting is performed.
Therefore, when the currently scanning signal A passes point (a) and finishes scanning the line shown in FIG. 1" is displayed.
更に走査が進み第3図bに示す状態となつた場
合、現在走査している信号Aが(b)点に達したと
き、信号が0から1となりフリツプフロツプ回路
8aによりカウントパルスを発生し、カウンター
9に1を加え計数値は「2」となり計数表示部1
0は「2」を表示する。更に走査が進み(c)点に達
したとき、現在走査している信号Aと1ライン前
の信号Bとがそれぞれ1なので、アンドゲート7
の出力信号が1となり、更に(d)点に達したとき、
アンドゲート7の出力信号が0となり、フリツプ
フロツプ回路8bによりカウントパルスを発生
し、カウンター9から1を引き計数表示部10に
は第3図aの状態の時に表示した時と同じに
「1」を表示する。第3図bから第3図cまでの
間での走査は、第3図bと同じ計数を繰り返すの
で計数表示部10は、第3図aの状態で表示した
時と同じに「1」を表示している。更に走査を進
めて行くと第3図cの状態となる。第3図cに示
す現在走査している信号Aが(e)点に達したとき、
信号は0から1になりフリツプフロツプ回路8a
により、カウントパルスを発生し、カウンター9
に1を加え、計数表示部10は「2」を表示す
る。更に走査が進み、(f)点に達すると現在走査し
ている信号Aと1ライン前の信号Bとは、それぞ
れ1となり、アンドゲート7に入力され、アンド
ゲート7の出力信号は1となり、更に走査が進み
(g)点に達したとき、アンドゲート7の出力信号は
1から0となり、フリツプフロツプ回路8bによ
り、カウントパルスを発生し、カウンター9から
1を引き、計数表示部10は「1」を表示する。
更に走査が進み(h)点に達したとき、現在走査して
いる信号Aは1となり、フリツプフロツプ回路8
aにより、カウントパルスを発生し、カウンター
9に1を加え、計数表示部10は「2」を表示す
る。更に第3図dまでの間では、第3図bで行う
計数を繰り返すので計数表示部10は第3図dの
直前には「2」を表示している。更に走査が進み
第3図dの(i)点において、現在走査している信号
Aの信号が0から1となるのでフリツプフロツプ
回路8aによりカウントパルスを発生し、カウン
ター9に1を加え計数表示部10は「3」を表示
するとともに、現在走査している信号Aの信号
と、1ライン前の信号Bはともに1となりアンド
ゲート7の出力は1となる。更に走査が進み、(j)
点に達したとき、現在走査している信号Aは1で
あるが、1ライン前の信号Bは0となりアンドゲ
ート7の出力信号は1から0となる。するとフリ
ツプフロツプ回路8bよりカウントパルスを発生
し、カウンター9より1を引き計数表示部10は
「2」を表示し、更に走査が進み(k)点に達したと
き、1ライン前の信号Bは1となり、アンドゲー
ト7の出力信号は1となり、依然計数表示部10
は「2」を表示している。更に走査が進み(1)点に
達したとき、現在走示している信号Aと1ライン
前の信号Bはともに0となり、アンドゲート7の
出力信号は1から0になり、フリツプフロツプ回
路8bよりカウントパルスを発生し、カウンター
9から1を引き、計数表示部10は「1」を表示
する。更に走査を進め、第3図eの状態では、
(m)点に達したとき、現在走査している信号A
は0であり、1ライン前の信号Bは1となるが、
アンドゲート7の出力信号は0であり、計数表示
部10は依然「1」を表示している。更に走査が
進み、(n)点でも、アンドゲート7の出力信号
は0であり、計数表示部10は「1」を表示して
おり、孔11を走査し終えたときカウンター9
は、1を計数しており、計数表示部10は、孔の
数「1」を示す。以上の方法により被測定物4上
を総て走査し終えたとき、計数表示部10は、被
測定物4上の孔数の合計を表示しており、計数を
終える。 When the scanning progresses further and reaches the state shown in Figure 3b, when the currently scanning signal A reaches point (b), the signal changes from 0 to 1, and the flip-flop circuit 8a generates a count pulse, and the counter Add 1 to 9 and the count value becomes “2” and count display section 1
0 displays "2". When the scanning progresses further and reaches point (c), the signal A currently being scanned and the signal B one line before are both 1, so the AND gate 7
When the output signal of becomes 1 and further reaches point (d),
The output signal of the AND gate 7 becomes 0, a count pulse is generated by the flip-flop circuit 8b, 1 is subtracted from the counter 9, and "1" is displayed on the count display section 10, the same as when it was displayed in the state shown in FIG. 3a. indicate. In the scanning from FIG. 3 b to FIG. 3 c, the same counting as in FIG. it's shown. As the scanning progresses further, the state shown in FIG. 3c is reached. When the currently scanning signal A shown in Figure 3c reaches point (e),
The signal changes from 0 to 1 and the flip-flop circuit 8a
generates a count pulse and counter 9
1 is added to , and the count display section 10 displays "2". As the scanning progresses further and reaches point (f), the signal A currently being scanned and the signal B from one line before each become 1 and are input to the AND gate 7, and the output signal of the AND gate 7 becomes 1. Scanning continues
When point (g) is reached, the output signal of the AND gate 7 changes from 1 to 0, the flip-flop circuit 8b generates a count pulse, subtracts 1 from the counter 9, and the count display section 10 displays "1". .
When the scanning progresses further and reaches point (h), the signal A currently being scanned becomes 1, and the flip-flop circuit 8
a, a count pulse is generated, 1 is added to the counter 9, and the count display section 10 displays "2". Further, up to FIG. 3d, the counting performed in FIG. 3b is repeated, so the count display section 10 displays "2" immediately before FIG. 3d. As the scanning progresses further, at point (i) in Figure 3d, the signal A currently being scanned changes from 0 to 1, so the flip-flop circuit 8a generates a count pulse, adds 1 to the counter 9, and displays the count display. 10 displays "3", and the signal A currently being scanned and the signal B one line before are both 1, and the output of the AND gate 7 is 1. Further scanning progresses, (j)
When the point is reached, the signal A currently being scanned is 1, but the signal B from one line before becomes 0, and the output signal of the AND gate 7 changes from 1 to 0. Then, a count pulse is generated from the flip-flop circuit 8b, 1 is subtracted from the counter 9, and the count display section 10 displays "2", and when the scanning progresses further and reaches point (k), the signal B of the previous line becomes 1. Therefore, the output signal of the AND gate 7 is 1, and the count display section 10 is still
is displaying "2". When the scanning progresses further and reaches point (1), both the currently scanning signal A and the signal B from one line before become 0, the output signal of the AND gate 7 changes from 1 to 0, and the count is started by the flip-flop circuit 8b. A pulse is generated, 1 is subtracted from the counter 9, and the count display section 10 displays "1". After further scanning, in the state shown in Figure 3e,
(m) When the point is reached, the signal A that is currently being scanned
is 0, and the signal B one line before is 1, but
The output signal of the AND gate 7 is 0, and the count display section 10 still displays "1". As the scanning progresses further, even at point (n), the output signal of the AND gate 7 is 0, the count display section 10 is displaying "1", and when the hole 11 has been scanned, the counter 9
is counting 1, and the count display section 10 shows the number of holes "1". When the object to be measured 4 has been completely scanned by the method described above, the count display section 10 displays the total number of holes on the object to be measured 4, and the counting ends.
(ト) 効 果
以上に示す方法によれば被測定物上を走査する
信号を総て記憶し、ラベリングアルゴリズムなど
の手法による孔数の計数をする必要はなく、複雑
なコンピユータソフトを必要とせず、比較的簡単
な構成で計数することが可能となり、しかも、計
測時間が短縮できる。(G) Effects According to the method described above, there is no need to memorize all the signals that scan the object to be measured, and there is no need to count the number of holes using techniques such as labeling algorithms, and there is no need for complicated computer software. , it becomes possible to perform counting with a relatively simple configuration, and moreover, the measurement time can be shortened.
第1図は本発明の実施例を示すブロツク図であ
り、第2図は同部品図であり、第3図は計数方法
の説明図である。第4図乃至第7図は、従来例の
説明図である。
1…光源、2…計測部、2a…受光部、2b…
信号送出部、3…搬送装置、4…被測定物、5…
記憶部、6…計数部、7…アンドゲート、8a,
8b…フリツプフロツプ回路、9…計数カウンタ
ー、10…表示装置、11…孔。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a diagram of its parts, and FIG. 3 is an explanatory diagram of a counting method. 4 to 7 are explanatory diagrams of conventional examples. 1... Light source, 2... Measuring section, 2a... Light receiving section, 2b...
Signal sending unit, 3... Conveyance device, 4... Measured object, 5...
Storage section, 6... Counting section, 7... AND gate, 8a,
8b...Flip-flop circuit, 9...Counter, 10...Display device, 11...Hole.
Claims (1)
と交差方向に順次に走査し、走査毎に被測定物の
有無を識別して計測し、デイジタル化して信号を
送信する計測部と、計測部からの信号を記憶する
記憶部と、計測部からの信号を入力し、被測定物
を感知する場合にプラス計数するとともに、計測
部からの信号及び記憶部からの記憶した前回走査
の信号を入力比較し、両信号が被測定物を感知し
た信号の場合にマイナス計数する計数部と、計数
部からの信号を入力することで計数結果を表示す
る表示部とからなることを特徴とする計数機。1. A measurement unit that sequentially scans the object to be measured in the traveling direction and the cross direction when the object to be measured passes, identifies and measures the presence or absence of the object for each scan, and digitizes and transmits a signal; A storage unit that stores signals from the measurement unit, inputs signals from the measurement unit, performs a positive count when sensing an object to be measured, and stores signals from the measurement unit and signals from the previous scan stored from the storage unit. It is characterized by comprising a counting section that inputs and compares the signals, and performs a negative count when both signals are signals that have detected the object to be measured, and a display section that displays the counting result by inputting the signal from the counting section. Counting machine.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11784985A JPS61276082A (en) | 1985-05-31 | 1985-05-31 | Counter |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11784985A JPS61276082A (en) | 1985-05-31 | 1985-05-31 | Counter |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61276082A JPS61276082A (en) | 1986-12-06 |
| JPH0225227B2 true JPH0225227B2 (en) | 1990-06-01 |
Family
ID=14721797
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP11784985A Granted JPS61276082A (en) | 1985-05-31 | 1985-05-31 | Counter |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS61276082A (en) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5366276U (en) * | 1976-11-02 | 1978-06-03 |
-
1985
- 1985-05-31 JP JP11784985A patent/JPS61276082A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61276082A (en) | 1986-12-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0031502B1 (en) | Hand-held apparatus for sensing non-coded images | |
| JP3924796B2 (en) | Pattern position measuring method and measuring apparatus | |
| JPH10198754A (en) | Code reader | |
| JPH0225227B2 (en) | ||
| JP3349037B2 (en) | Method and apparatus for capturing moving object image | |
| US4783827A (en) | Serial data processing apparatus | |
| US7110618B2 (en) | Digital image analysis of reflecting markers | |
| JPH052243B2 (en) | ||
| JP2720843B2 (en) | Emission center position detection device | |
| JPS63222244A (en) | Surface inspector | |
| JPH01315884A (en) | Pattern tracking method | |
| JPS62226393A (en) | Counter | |
| JPS6250972A (en) | Pattern discriminating device | |
| JP2001508209A (en) | Method and system for determining centroid of an object | |
| JPH0514314B2 (en) | ||
| JPS61279990A (en) | Pattern normalizing system | |
| JPS6230114Y2 (en) | ||
| JPS5914782B2 (en) | Binary pattern digitization processing method | |
| JPS6071906A (en) | Method for measuring circumferential length of binary coded image | |
| JPH011076A (en) | Image processing device for real-time center of gravity position detection | |
| JPH08178795A (en) | Lcd panel detect inspection instrument | |
| JPH10300427A (en) | Image position detection method | |
| JPH03103703A (en) | Image measuring instrument | |
| JPH05290205A (en) | Image input device | |
| JPS6024675A (en) | Image sensor driving system |