JPH0246097B2 - - Google Patents

Info

Publication number
JPH0246097B2
JPH0246097B2 JP58231314A JP23131483A JPH0246097B2 JP H0246097 B2 JPH0246097 B2 JP H0246097B2 JP 58231314 A JP58231314 A JP 58231314A JP 23131483 A JP23131483 A JP 23131483A JP H0246097 B2 JPH0246097 B2 JP H0246097B2
Authority
JP
Japan
Prior art keywords
sensor
counter
pulse
pulses
detected
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
JP58231314A
Other languages
Japanese (ja)
Other versions
JPS60123753A (en
Inventor
Mitsunari Kano
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP58231314A priority Critical patent/JPS60123753A/en
Publication of JPS60123753A publication Critical patent/JPS60123753A/en
Publication of JPH0246097B2 publication Critical patent/JPH0246097B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T7/0006Industrial image inspection using a design-rule based approach
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/98Detection or correction of errors, e.g. by rescanning the pattern or by human intervention; Evaluation of the quality of the acquired patterns
    • G06V10/993Evaluation of the quality of the acquired pattern
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30124Fabrics; Textile; Paper

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は物体検査システムに関し、特にフオト
ダイオード・アレイやイメージセンサの如き1次
元アレイセンサを検出器として紙葉類等の被検査
物体の状態判定を行なう検査システムに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to an object inspection system, and particularly to a system for determining the state of an object to be inspected such as a paper sheet using a one-dimensional array sensor such as a photodiode array or an image sensor as a detector. This invention relates to an inspection system that performs.

〔発明の背景〕[Background of the invention]

紙幣等の紙葉の寸法、損傷あるいは折れの有無
などを自動的に判定する場合、イメージセンサや
フオトダイオード・アレイの如き1次元の視野を
もつセンサが用いられる。
When automatically determining the dimensions of a paper sheet such as a banknote, whether it is damaged or folded, a sensor with a one-dimensional field of view, such as an image sensor or a photodiode array, is used.

第1図はこのようなシステムのイメージ入力部
の1例を示し、図Aにおいて1は検査対象となる
紙葉、2,2′は破れによる欠損部分、3′はセン
サ視野を示す。今、Y方向に搬送中の紙葉1に対
してセンサ視野が図示された位置にあるとき、セ
ンサ3は図Bに示す如く、領域A(A1,A2,A3
A4)では物体無し、領域B(B1,B2,B3)では
物体有りの検知状態となつている。
FIG. 1 shows an example of the image input section of such a system. In FIG. Now, when the sensor field of view is at the position shown in the figure with respect to the paper sheet 1 being conveyed in the Y direction, the sensor 3 detects the area A (A 1 , A 2 , A 3 ,
In area A 4 ), there is no object, and in area B (B 1 , B 2 , B 3 ), there is an object detected.

イメージセンサ3は、幅PをもつN個の独立し
たセンサの集合体であり、従来の紙葉検査では、
イメージセンサの各絵素の情報を、例えば左端か
ら右端に向つてX方向に走査して順次に読み出し
これを2値化して“1”、または“0”のビツト
データに変換し、全体として1つのデータワード
とした後、パターン判定処理をしていた。このた
め、センサの絵素数を増して高い分解能で紙葉の
状態判定を行なおうとすると、パターン判定の対
象となるデータのビツト数が多くなり、通常のコ
ード化されたデータを扱う場合に比較して、パタ
ーン判定に要するプログラムの処理ステツプ数が
多くなり、データ処理が複雑化するという問題が
あつた。
The image sensor 3 is a collection of N independent sensors with a width P, and in conventional paper sheet inspection,
The information of each pixel of the image sensor is scanned in the X direction from the left end to the right end, read out sequentially, and then binarized and converted into bit data of "1" or "0", resulting in a total of 1 After creating one data word, pattern judgment processing was performed. For this reason, if you increase the number of picture elements in the sensor and try to judge the state of the paper sheet with high resolution, the number of bits of data subject to pattern judgment will increase, compared to when dealing with normal coded data. As a result, the number of program processing steps required for pattern determination increases, resulting in a problem that data processing becomes complicated.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、上述した1次元視野をもつセ
ンサを用いて被検査物体の状態判定を行なうシス
テムにおいて、データプロセツサによるセンサ情
報の処理を容易にすることにある。
An object of the present invention is to facilitate the processing of sensor information by a data processor in a system for determining the state of an object to be inspected using the above-described sensor having a one-dimensional field of view.

〔発明の概要〕[Summary of the invention]

上記目的を達成するため、本発明の物体検査シ
ステムは、被検査物体の搬送路を横切つて配置さ
れた1次元センサと、上記センサの絵素情報を順
次に読み出すための走査手段と、読み出された絵
素情報を2値パルスに変換する手段と、上記パル
スを計数して被検査物体の1端の位置を示す計数
値を記憶する第1のカウンタと、上記パルスを計
数して被検知物体の存在範囲若しくは不在範囲の
総寸法を示す計数値を記憶する第2のカウンタ
と、上記パルスを計数して被検査物体の他端位置
を示す計数値を記憶する第3のカウンタと、1サ
イクルのセンサ走査の都度、上記各カウンタの値
を取り込み、各計数値から所定の判定演算を行な
うデータプロセツサとからなることを特徴とす
る。
In order to achieve the above object, the object inspection system of the present invention includes a one-dimensional sensor disposed across the conveyance path of the object to be inspected, a scanning means for sequentially reading out pixel information of the sensor, and a reading device. means for converting the emitted pixel information into binary pulses; a first counter for counting the pulses and storing a count value indicating the position of one end of the object to be inspected; a second counter that stores a count value indicating the total size of the presence range or absence range of the detected object; a third counter that counts the pulses and stores a count value that indicates the other end position of the object to be inspected; It is characterized by comprising a data processor that takes in the values of each of the counters each time one cycle of sensor scanning is performed and performs a predetermined judgment operation from each counted value.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の実施例を図面を参照して説明す
る。
Embodiments of the present invention will be described below with reference to the drawings.

第2図は本発明によるセンサ出力処理回路の構
成を示すブロツク図であり、3は1次元の視野
3′をもつイメージセンサ、4はイメージセンサ
3の出力を所定の閾値と比較して順次“1”、
“0”ビツトに変換する2値化回路、21〜24
はカウンタ、31〜34は上記各カウンタのカウ
ント値をタイミングパルスTEでラツチするラツ
チ回路、40は上記各ラツチ回路のカウント値
D1〜D4を、図示しないデータプロセツサからの
アドレス信号ADに従つて選択し、データDとて
データプロセツサに入力するマルチプレクサを示
す。
FIG. 2 is a block diagram showing the configuration of a sensor output processing circuit according to the present invention, in which 3 is an image sensor having a one-dimensional field of view 3', and 4 is a block diagram that compares the output of the image sensor 3 with a predetermined threshold value and sequentially compares the output of the image sensor 3 with a predetermined threshold value. 1”,
Binarization circuit for converting to “0” bit, 21 to 24
is a counter, 31 to 34 are latch circuits that latch the count values of each of the above counters with a timing pulse T E , and 40 is a count value of each of the above latch circuits.
A multiplexer is shown that selects D 1 to D 4 in accordance with an address signal AD from a data processor (not shown) and inputs data D to the data processor.

イメージセンサ3は、第2図Bで説明したよう
にN個のセンサからなり、各センサの情報は、タ
イミングパルス発生回路50から所定の間隔で出
力されるタイミングパルスTNに従つて順次に読
み出され、2値化回路4で2値信号に変換され
る。タイミングパルス発生回路50からは、上記
センサ走査に先立つてパルスTSが出力され、こ
れによつてカウンタ21〜24がそれぞれクリア
される。また上述したラツチのタイミングパルス
TEはセンサ3の走査終了後にパルス発生回路5
0から発生される。
The image sensor 3 is composed of N sensors as explained in FIG. The signal is output and converted into a binary signal by the binarization circuit 4. The timing pulse generating circuit 50 outputs a pulse T S prior to the sensor scanning, thereby clearing the counters 21 to 24, respectively. Also, the latch timing pulse mentioned above
T E is the pulse generation circuit 5 after the scanning of the sensor 3 is completed.
Generated from 0.

以下、第2図のカウンタ21〜24の動作につ
いて、第3図を参照しながら説明する。
The operations of the counters 21 to 24 in FIG. 2 will be explained below with reference to FIG. 3.

今、センサ視野3′が、第3図に示す如く、紙
葉1上の3ケ所の欠損部分2,2′,2″に対向し
た状態にあるものと仮定すると、イメージセンサ
3内の情報は、領域A1,A2,A3,A4,A5に該当
する絵素が物体無し、領域B1,B2,B3,B4が物
体有りの状態となつている。
Now, assuming that the sensor field of view 3' is facing the three missing parts 2, 2', and 2'' on the sheet of paper 1 as shown in FIG. 3, the information in the image sensor 3 is , the picture elements corresponding to areas A 1 , A 2 , A 3 , A 4 , and A 5 are in a state where there is no object, and the areas B 1 , B 2 , B 3 , and B 4 are in a state where an object is present.

2値化回路4は、絵素からの読み出し情報が物
体無しの時に信号線S0に、また、物体有りの時に
信号線S1にそれぞれパルスを出力する。
The binarization circuit 4 outputs a pulse to the signal line S 0 when the read information from the picture element indicates that there is no object, and outputs a pulse to the signal line S 1 when the read information from the picture element indicates that there is an object.

第1のカウンタ21は、第2図に示す如く、
ANDゲート11を介して入力される信号線S0
パルス(以下、単にパルスS0と言う)の数をカウ
ントしている。この場合、ANDゲート11は、
開始パルスTsでセツトされるフリツプフロツプ
12のセツト出力により制御されており、且つ、
フリツプフロツプ12は信号線S1のパルス(以
下、単にパルスS1と言う)でリセツトされるよう
になつているため、第1のカウンタ21への入力
パルス数は最初の物体無し領域A1の絵素数に相
当し、その値D1がラツチ回路31に記憶される
ことになる。
The first counter 21, as shown in FIG.
The number of pulses on the signal line S 0 (hereinafter simply referred to as pulse S 0 ) input through the AND gate 11 is counted. In this case, the AND gate 11 is
It is controlled by the set output of the flip-flop 12, which is set by the start pulse Ts, and
Since the flip-flop 12 is reset by a pulse on the signal line S1 (hereinafter simply referred to as pulse S1 ), the number of input pulses to the first counter 21 corresponds to the picture of the first object-free area A1 . This corresponds to a prime number, and its value D1 will be stored in the latch circuit 31.

第2のカウンタ22は、1走査期間中のパルス
S0の数をカウントしており、その最終値D2は欠
損部分2,2′,2″を含めた物体無し領域の全長
(A1+A2+A3+A4+A5)を示している。
The second counter 22 counts the pulses during one scanning period.
The number of S 0 is counted, and its final value D 2 indicates the total length of the object-free area (A 1 +A 2 +A 3 +A 4 +A 5 ) including the missing parts 2, 2', and 2''.

第3のカウンタ23はパルスS0をカウントして
いるが、このカウンタのクリア端子には、ORゲ
ート16を介して開始パルスTsとパルスS14が与
えられている。上記パルスS14は、パルスS1でセ
ツトされてパルスS0でリセツトされるフリツプ・
フロツプ13のリセツト出力をワンシヨツト回路
14でパルス化したものである。従つて、第3の
カウンタの値は、絵素情報が物体有りの状態から
物体無しの状態に切り換わる度にクリアされ、最
後に現われる物体無しし領域A5の長さに相当す
る値D3をラツチ回路33に渡すことになる。
The third counter 23 counts the pulse S 0 , and the start pulse Ts and the pulse S 14 are applied to the clear terminal of this counter via the OR gate 16 . The above pulse S14 is a flip-flop that is set by pulse S1 and reset by pulse S0 .
The reset output of the flop 13 is converted into a pulse by the one-shot circuit 14. Therefore, the value of the third counter is cleared every time the pixel information switches from the state with an object to the state with no object, and the value of the third counter is cleared to a value D 3 corresponding to the length of the area A 5 without an object that appears at the end. is passed to the latch circuit 33.

第4のカウンタ24には、上記パルスS14と、
フリツプ・フロツプ13のセツト出力をパルス化
するワンシヨツト回路15からの出力パルスS15
とがORゲート17を介して入力される。従つ
て、このカウンタ24は、絵素の状態が変化する
回数、つまり領域A1,B1,A2…B4,A5の数をカ
ウントし、その値D4をラツチ回路34に渡すこ
とになる。
The fourth counter 24 receives the pulse S14 ,
Output pulse S 15 from one-shot circuit 15 that pulses the set output of flip-flop 13
is input via the OR gate 17. Therefore, this counter 24 counts the number of times the state of the picture element changes, that is, the number of areas A 1 , B 1 , A 2 . . . B 4 , A 5 and passes the value D 4 to the latch circuit 34. become.

以上、本発明の上記回路構成によれば、イメー
ジセンサの各走査の都度、第1のカウンタ21に
は紙葉の左端の位置を示す領域A1の長さのD1
第3のカウンタ23には紙葉の左端の位置を示す
領域A5の長さの値D3、第2のカウンタ22には
紙葉無しの空間のトータル長さを示す値D2、そ
して、第4のカウンタ24には紙葉有無の変化回
数を示す値D5が求まる。
As described above, according to the above-mentioned circuit configuration of the present invention, each time the image sensor scans, the first counter 21 stores D 1 having the length of the area A 1 indicating the position of the left end of the sheet,
The third counter 23 has a value D 3 representing the length of the area A 5 indicating the position of the left end of the paper, the second counter 22 has a value D 2 indicating the total length of the space without paper, and The fourth counter 24 calculates a value D5 indicating the number of times the presence or absence of a paper sheet changes.

これらの値D1〜D4をラツチ回路31〜34か
ら取り込むことによつて、データプロセツサで
は、既知の値であるイメージセンサの長さ(絵素
の総数)LとD1,D3とから紙葉の幅l=L−(D1
+D3)を知ることができ、l′=D2−(D1+D3)に
より欠損領域の合計長さl′を、また、n=(D4
2)/2により破損箇所の数nを求めることがで
きる。また、D1とD3の値を比較することにより、
紙葉の左右方向の偏位(紙葉の位置)も知ること
ができる。従つて、データプロセツサでは、イメ
ージセンサ3の走査サイクルの終了の都度、ラツ
チ回路に記憶されている数値データを取り込み、
簡単な計算を施こすだけでX軸方向に沿つた紙葉
の状態判定データを算出でき、その計算結果を
次々と記憶しておくことにより、最終的には紙葉
の搬送方向(Y方向)に沿つた状態判定も行なう
ことができる。
By taking in these values D 1 to D 4 from the latch circuits 31 to 34, the data processor obtains the known values of the image sensor length L (total number of picture elements) and D 1 , D 3 . , the width of the sheet of paper l=L−(D 1
+D 3 ), the total length of the missing region l' can be determined by l' = D 2 - (D 1 + D 3 ), and n = (D 4 -
2) The number n of damaged parts can be determined by /2. Also, by comparing the values of D 1 and D 3 ,
It is also possible to know the deviation of the paper sheet in the left-right direction (the position of the paper sheet). Therefore, each time the scan cycle of the image sensor 3 ends, the data processor takes in the numerical data stored in the latch circuit, and
By performing simple calculations, it is possible to calculate the condition determination data of the paper leaf along the It is also possible to perform state determination along the following lines.

尚、上記実施例では、第2のカウンタで物体無
しの領域を計数したが、このカウンタで物体有り
の領域を計数しても欠損部分の長さが求まること
明らかであり、本発明は上記実施例以外の変形が
可能である。
In the above embodiment, the area without an object was counted by the second counter, but it is clear that the length of the missing part can be determined even if the area with an object is counted by this counter. Variations other than the examples are possible.

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

以上の説明から明らかな如く、本発明によれ
ば、複数個のカウンタを用い、イメージセンサ等
の一次元センサの走査の都度、これらのカウンタ
にセンサ視野の特定の状態情報を計数動作させて
おくことにより、データプロセツサによる被検査
物体の状態判定のための演算処理を大幅に簡略化
させたものであり、センサの走査周期を短縮して
高速度で判定処理を実行できるという効果があ
る。
As is clear from the above description, according to the present invention, a plurality of counters are used and each time a one-dimensional sensor such as an image sensor scans, these counters are operated to count specific state information of the sensor field of view. This greatly simplifies the arithmetic processing performed by the data processor to determine the state of the object to be inspected, and has the effect of shortening the sensor scanning period and executing the determination processing at high speed.

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

第1図A,Bは一次元センサによる紙葉イメー
ジ入力についての説明図、第2図は本発明の1実
施例を示すイメージデータ処理回路のブロツク
図、第3図は上記実施例回路の動作説明図であ
る。 符号の説明、1……被検査対象となる紙葉、3
……イメージセンサ、4……2値化回路、21…
24……カウンタ、31…34……ラツチ回路。
1A and 1B are explanatory diagrams of paper sheet image input using a one-dimensional sensor, FIG. 2 is a block diagram of an image data processing circuit showing one embodiment of the present invention, and FIG. 3 is an operation of the circuit of the above embodiment. It is an explanatory diagram. Explanation of symbols, 1... Paper sheet to be inspected, 3
...Image sensor, 4...Binarization circuit, 21...
24...Counter, 31...34...Latch circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 被検査物体の搬送路を横切つて配置された1
次元センサと、上記センサの絵素情報を順次に読
み出すための走査手段と、読み出された絵素情報
を2値パルスに変換する手段と、上記パルスを計
数して被検知物体の一端の位置を示す計数値を記
憶する第1のカウンタと、上記パルスを計数して
被検知物体の存在範囲若しくは不在範囲の総寸法
を示す計数値を記憶する第2のカウンタと、上記
パルスを計数して被検知物体の他端位置を示す計
数値を記憶する第3のカウンタと、1サイクルの
センサ走査の都度、上記各カウンタの値を取り込
み、各計数値から所定の判定演算を行なうデータ
プロセツサとからなる物体検査装置。
1 placed across the conveyance path of the object to be inspected
a dimensional sensor, a scanning means for sequentially reading the pixel information of the sensor, a means for converting the read pixel information into binary pulses, and a position of one end of the object to be detected by counting the pulses. a first counter that counts the pulses and stores a count that indicates the total dimension of the presence or absence range of the detected object; a third counter that stores a count value indicating the position of the other end of the object to be detected; and a data processor that takes in the values of each of the counters each time one cycle of sensor scanning is performed and performs a predetermined judgment operation from each count value. An object inspection device consisting of:
JP58231314A 1983-12-09 1983-12-09 Object inspecting system Granted JPS60123753A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58231314A JPS60123753A (en) 1983-12-09 1983-12-09 Object inspecting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58231314A JPS60123753A (en) 1983-12-09 1983-12-09 Object inspecting system

Publications (2)

Publication Number Publication Date
JPS60123753A JPS60123753A (en) 1985-07-02
JPH0246097B2 true JPH0246097B2 (en) 1990-10-12

Family

ID=16921686

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58231314A Granted JPS60123753A (en) 1983-12-09 1983-12-09 Object inspecting system

Country Status (1)

Country Link
JP (1) JPS60123753A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0737859Y2 (en) * 1993-03-23 1995-08-30 川崎重工業株式会社 Bonding structure of resin molded parts

Also Published As

Publication number Publication date
JPS60123753A (en) 1985-07-02

Similar Documents

Publication Publication Date Title
JP4117368B2 (en) Bar code reading apparatus and bar code reading method
US4451854A (en) Picture information input apparatus
JPS58132884A (en) Diameter discriminator for circular object
EP0375352B1 (en) Method of searching a matrix of binary data
JPS5848956B2 (en) Paper leaf identification device
JPH0246097B2 (en)
JPS5936051A (en) Bill hole detecting device
JPS60194868A (en) Detecting method of original edge coordinate
JP2535399B2 (en) Similar character discrimination method
JP2590099B2 (en) Character reading method
JPS6230114Y2 (en)
JP2540829B2 (en) Image input device
JPS6223349B2 (en)
JPH0648500B2 (en) Bar code demodulator
JPH061503B2 (en) Optical reader
JPS5994181A (en) Pattern recognizing device
JPS594747B2 (en) Barcode reader
JP2823886B2 (en) Document size detection method
JPH0373023B2 (en)
JPH01264154A (en) Radioactive ray image receiving device
JPH0562293B2 (en)
JP2604922B2 (en) Length measuring machine
JPS61279990A (en) Pattern normalizing system
JPH052243B2 (en)
JPS6223915B2 (en)