JPH0210988B2 - - Google Patents

Info

Publication number
JPH0210988B2
JPH0210988B2 JP62019653A JP1965387A JPH0210988B2 JP H0210988 B2 JPH0210988 B2 JP H0210988B2 JP 62019653 A JP62019653 A JP 62019653A JP 1965387 A JP1965387 A JP 1965387A JP H0210988 B2 JPH0210988 B2 JP H0210988B2
Authority
JP
Japan
Prior art keywords
target
circuit
horizontal
width
dimensionally
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
JP62019653A
Other languages
Japanese (ja)
Other versions
JPS62216083A (en
Inventor
Seiichiro Kimura
Arihira Iwasaki
Juji Mitsusaki
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.)
NSK Ltd
Original Assignee
NSK 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 NSK Ltd filed Critical NSK Ltd
Priority to JP62019653A priority Critical patent/JPS62216083A/en
Publication of JPS62216083A publication Critical patent/JPS62216083A/en
Publication of JPH0210988B2 publication Critical patent/JPH0210988B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)
  • Image Input (AREA)
  • Image Processing (AREA)

Description

【発明の詳細な説明】 本発明は図形の読み取り装置、特にプリント基
板の部品実装部及びスルーホール用の穴を明ける
数値制御穴明け機用のテープ作成に使用される自
動図形読み取り装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a figure reading device, and more particularly to an automatic figure reading device used for making tape for a numerically controlled hole punching machine for drilling holes for component mounting parts and through holes in printed circuit boards. be.

現在、プリントパターン設計時にあらかじめ部
品実装用又はスルーホール用の穴に関して数値化
されているものは極めて少数で、大部分のプリン
トパターンにおいては、穴読み取り装置を用い
て、フイルムシート上に作成されたプリントパタ
ーンを手動で読み取つている。
Currently, very few holes for component mounting or through holes are quantified in advance when designing printed patterns, and most printed patterns are created on a film sheet using a hole reading device. The print pattern is being read manually.

従来の穴読み取り装置は、叙上の如く、手動操
作であるために作業員が1ケ1ケの穴を拡大鏡等
で目視し、拡大鏡についている十字線マークの中
心に穴の中心がくるようにハンドル操作によつ
て、プリントパターンがのつている移動台又は光
学系を移動し、中心が合致した時、計算機等の制
御装置へ穴の座標読み取り及び穴径の指令を行う
ものである。
As mentioned above, conventional hole reading devices are operated manually, so the worker visually observes each hole with a magnifying glass, etc., and the center of the hole is aligned with the center of the crosshair mark on the magnifying glass. By operating the handle, the movable stage or optical system on which the print pattern is placed is moved, and when the centers are aligned, the coordinates of the hole are read and the hole diameter is commanded to a control device such as a computer.

上記の従来装置では、作業員が1ケ1ケの穴を
合わせるために作業員に多大な疲労を与え、それ
に伴なつて穴の読み取り誤り、あるいは穴の読み
取り見逃し等を誘発する欠点がある。特にプリン
トパターン技術の向上及び実装部品の小型化に伴
ない、プリント基板の実装密度は益々増加の傾向
にあり、そのため手動操作では能力的にも、精神
的にも限界にきている。また、作業員が拡大鏡の
十字線マークの中心に対して、穴の中心を合わせ
る方法では、穴径を読み取る能力はなく、したが
つて、あらかじめ穴径の種類ごとに色別のマーク
をフイルムシート状のプリントパターンに付けて
おく必要があり、穴読み取り作業前に前作業が必
要であり、それに要する時間も無視できない欠点
がある。
The above-mentioned conventional apparatus has the disadvantage that it causes a great deal of fatigue to the worker as he or she has to match each hole one by one, and that this leads to errors in reading the holes or failures in reading the holes. In particular, with the improvement of print pattern technology and the miniaturization of mounted components, the mounting density of printed circuit boards tends to increase more and more, and manual operation is therefore reaching its limits both physically and mentally. In addition, if the worker aligns the center of the hole with the center of the crosshair mark on a magnifying glass, there is no ability to read the hole diameter. It is necessary to attach it to a sheet-like printed pattern, and pre-work is required before the hole reading operation, and the time required for this work is also a non-negligible drawback.

本発明は上記の欠点を除去するために、図形読
み取り作業を簡単なパターン認識を導入すること
によつて、自動化した図形読み取り装置を提供す
るものである。
In order to eliminate the above-mentioned drawbacks, the present invention provides a figure reading device that automates the figure reading operation by introducing simple pattern recognition.

本発明は、諸図形の読み取り広く利用できる
が、プリントパターンの読み取りに限定してみた
場合対象の穴を含む図形を撮像素子等で走査し、
その画像信号から穴の先端位置及び後端位置から
穴の存在する領域を検出し、その領域内で穴の中
心座標及び穴径を演算することを特徴とする。
The present invention can be widely used for reading various figures, but when limited to reading printed patterns, the present invention scans a figure including a target hole with an image sensor, etc.
The present invention is characterized in that the area where the hole exists is detected from the position of the tip and the rear end of the hole from the image signal, and the center coordinates and diameter of the hole are calculated within the area.

本発明をプリントパターンの読み取りに利用し
た実施例について図面を参照して以下詳細な説明
をする。
An embodiment in which the present invention is utilized for reading printed patterns will be described in detail below with reference to the drawings.

第1図は本発明による図形読み取り装置の構成
を示す概略図である。対象図形が形成されている
シート1が一次元又は二次元的に移動可能な移動
台2の上に載置されている。対象図形は第2図に
示すように、パターン部1aが黒、穴部を含めて
その他の部分1bが透明になつている。移動台2
は駆動部3によつて駆動され、二次元的に移動す
る場合には、互いに直角方向に2ケの駆動部3を
設ける。シート1に対向してシートに形成されて
いる対象図形を光学的に読み取る撮像部4が懸架
される。撮像部4は一次元フオトダイオードアレ
ー、二次元フオトダイオードアレー又は撮像管等
の光電変換素子で構成されており、光学部には対
象図形の読み取り時の倍率を決めるレンズ系が用
いられている。更に、光源部5を設けて撮像部4
の視野内に一様な照明光を与える。光源部5は、
第1図では対象図形から光が反射するように構成
されているが、対象図形からの透過光を検出する
ように構成してもよい。撮像部4には処理装置6
が接続され、撮像部4で得られる対象図形の光源
変換信号を処理し、対象図形の特徴量を認識する
もので、本発明の主要構成要素であり、第3図の
機能回路から構成されている。
FIG. 1 is a schematic diagram showing the configuration of a figure reading device according to the present invention. A sheet 1 on which a target figure is formed is placed on a movable table 2 that can be moved one-dimensionally or two-dimensionally. As shown in FIG. 2, the target figure has a pattern portion 1a that is black, and the other portions 1b, including the hole portions, are transparent. Mobile platform 2
is driven by a drive unit 3, and when moving two-dimensionally, two drive units 3 are provided at right angles to each other. An imaging unit 4 that optically reads target figures formed on the sheet is suspended opposite the sheet 1 . The imaging unit 4 is composed of a photoelectric conversion element such as a one-dimensional photodiode array, a two-dimensional photodiode array, or an image pickup tube, and the optical unit uses a lens system that determines the magnification when reading the target figure. Furthermore, a light source section 5 is provided to provide an image pickup section 4.
Provides uniform illumination within the field of view. The light source section 5 is
In FIG. 1, the configuration is such that light is reflected from the target figure, but it may be configured to detect transmitted light from the target figure. The imaging unit 4 includes a processing device 6.
is connected, processes the light source conversion signal of the target figure obtained by the imaging unit 4, and recognizes the feature amount of the target figure, and is the main component of the present invention, and is composed of the functional circuit shown in FIG. There is.

第3図において、処理装置は対象図形の先端位
置検出回路10と後端位置検出回路11を含んで
いる。先端位置検出回路10は、第4図に示すよ
うに、○アの方向に撮像部4を電気的に走査し、○イ
の方向に逆方向に移動台2を一定の速度で移動す
ることにより垂直方向の走査を行なうことによ
り、対象図形の先端位置を点で検出する。後端
位置検出回路11は第4図の点で後端位置を検
出する。先端及び後端位置検出回路10,11の
詳細を第5図に示す。
In FIG. 3, the processing device includes a leading end position detecting circuit 10 and a trailing end position detecting circuit 11 of the target figure. As shown in FIG. 4, the tip position detection circuit 10 electrically scans the imaging unit 4 in the direction of ○a and moves the movable table 2 in the opposite direction to the direction of ○a at a constant speed. By scanning in the vertical direction, the position of the tip of the target figure is detected as a point. The rear end position detection circuit 11 detects the rear end position at the point shown in FIG. Details of the leading and trailing end position detection circuits 10 and 11 are shown in FIG.

第5図は、本発明による自動図形読み取り装置
における対象図形の先端位置及び後端位置を求め
る一実施例である。第6図は上記実施例を説明す
るためのタイムチヤートである。第5図におい
て、撮像部4の出力を増幅器30で所定のレベル
までに増幅し、スライス回路31によつてデイジ
タル信号に変換される。このスライス回路31の
出力信号はシフトレジスター32で所定の水平走
査分だけ遅延され、スライス回路31の次の走査
出力と共にAND回路33へ入力される。信号
は第1の計数回路38へ水平走査方向クロツク
信号と共に入力され、対象図形のパターン部以外
の部分の幅が計数される。第2の計数回路41
は、AND回路33の出力信号が“1”となる
幅を計数する。この第1及び第2の計数回路の内
容は、信号の立下りで発生される第1のトリガ
ー発生回路34の出力信号によつて読み出され
る。第1の計数回路38の計数内容は、後に第7
図に関連して説明するように検出誤りを除去する
ために、第1の設定器40によつて設定される値
と第1の比較器39で比較される。第2の計数回
路41の出力は第1の零検出回路42へ入力さ
れ、零検出が行なわれる。第1及び第2の計数回
路38,41は第1のトリガー信号終了で発生さ
れる第2のトリガー発生回路35の出力信号に
よつてクリアされる。
FIG. 5 is an example of determining the leading and trailing positions of a target graphic in the automatic graphic reading device according to the present invention. FIG. 6 is a time chart for explaining the above embodiment. In FIG. 5, the output of the imaging section 4 is amplified to a predetermined level by an amplifier 30, and converted into a digital signal by a slice circuit 31. The output signal of this slice circuit 31 is delayed by a predetermined horizontal scan amount in a shift register 32, and is input to an AND circuit 33 together with the next scan output of the slice circuit 31. The signal is input to the first counting circuit 38 together with the horizontal scanning direction clock signal, and the width of the portion of the target figure other than the pattern portion is counted. Second counting circuit 41
counts the width at which the output signal of the AND circuit 33 becomes "1". The contents of the first and second counting circuits are read out by the output signal of the first trigger generation circuit 34 generated at the falling edge of the signal. The counting contents of the first counting circuit 38 are later
It is compared in a first comparator 39 with the value set by the first setter 40 in order to eliminate detection errors as explained in connection with the figure. The output of the second counting circuit 41 is input to the first zero detection circuit 42, and zero detection is performed. The first and second counting circuits 38, 41 are cleared by the output signal of the second trigger generation circuit 35 generated at the end of the first trigger signal.

対象図形の先端位置検出の条件は、第6図aに
示すように、前の水平走査において、パターン部
(黒い部分)を走査し、現在の水平走査において、
穴部に相当する透明部が走査された場合である。
即ち、第5図において、現在の水平走査における
内容が入つている第1の計数回路38の出力信号
が所定の値以上で、かつ前の水平走査における
内容が入つている第2の計数回路41が零の場合
に穴の先端位置検出が第2のAND回路48によ
つて求められる。第7図に示すように対象図形で
ある穴でない場合にも、第2のAND回路48か
ら出力信号が出る可能性も考えられるが、第1の
設定器40の設定値を穴径及び垂直方向の走査速
度を加味して決定すれば何等問題を生じない。
The conditions for detecting the tip position of the target figure are as shown in FIG.
This is a case where a transparent part corresponding to a hole is scanned.
That is, in FIG. 5, when the output signal of the first counting circuit 38, which contains the contents of the current horizontal scan, is equal to or greater than a predetermined value, and the second counting circuit 41, which contains the contents of the previous horizontal scan, When is zero, the position of the tip of the hole is detected by the second AND circuit 48. As shown in FIG. 7, even if the target figure is not a hole, there is a possibility that an output signal will be output from the second AND circuit 48. If the determination is made taking into consideration the scanning speed of , no problem will occur.

対象図形の後端位置の検出は、次のように行な
われる。シフトレジスター32の出力信号は水
平走査方向のクロツク信号と共に第3の計数回路
43へ入力され、対象図形のパターン部以外の部
分の幅が計数される。第4の計数回路46は第2
の計数回路41と同様の第1のAND回路33の
出力信号が“1”となる幅を計数する。第3及
び第4の計数回路の内容は、信号の立下りで発
生される第3のトリガー発生回路37の出力信号
d′ によつて読み出され、第3の計数回路43
は、第2の設定器45によつて設定される値と第
2の比較器44で比較される。第4の計数回路4
6の出力 g′ は第2の零検出回路47へ入力さ
れ、零検出が行なわれる。第3及び第4の計数回
路43,46は、第3のトリガー発生回路出力信
号 d′ の終了で発生される第4のトリガー発生回
路36の出力信号 e′ によつてクリアされる。対
象図形の後端位置検出の条件は、第6図bに示す
ように、現在の水平走査においてパターン部を走
査している時に、前の水平走査において穴部に相
当する透明部が走査された場合である。即ち、第
5図において、前の水平走査における内容が入つ
ている第3の計数回路43の出力信号 f′ が所定
の値以上で、かつ現在の水平走査における内容が
入つている第4の計数回路46が零の場合に穴の
後端位置検出が第3のAND回路49によつて求
められる。
Detection of the rear end position of the target figure is performed as follows. The output signal of the shift register 32 is input to a third counting circuit 43 together with a clock signal in the horizontal scanning direction, and the width of a portion of the target figure other than the pattern portion is counted. The fourth counting circuit 46
The width at which the output signal of the first AND circuit 33 similar to the counting circuit 41 becomes "1" is counted. The content of the third and fourth counting circuits is the output signal of the third trigger generation circuit 37 generated at the falling edge of the signal.
d' and the third counting circuit 43
is compared with the value set by the second setter 45 by the second comparator 44. Fourth counting circuit 4
The output g' of 6 is input to a second zero detection circuit 47, where zero detection is performed. The third and fourth counting circuits 43, 46 are cleared by the output signal e' of the fourth trigger generating circuit 36 generated at the end of the third trigger generating circuit output signal d'. The condition for detecting the rear end position of the target figure is that, as shown in Figure 6b, when the pattern part is being scanned in the current horizontal scan, the transparent part corresponding to the hole part was scanned in the previous horizontal scan. This is the case. That is, in FIG. 5, the output signal f' of the third counting circuit 43, which contains the contents of the previous horizontal scan, is greater than or equal to a predetermined value, and the fourth counting circuit, which contains the contents of the current horizontal scan, When the circuit 46 is zero, the rear end position of the hole is detected by the third AND circuit 49.

先端位置検出回路10と後端位置検出回路11
の出力は第3図に示すように領域検出回路12に
与えられる。対象図形の領域検出回路の詳細を第
8図に示す。
Tip position detection circuit 10 and rear edge position detection circuit 11
The output of is given to the area detection circuit 12 as shown in FIG. FIG. 8 shows details of the target figure area detection circuit.

第8図において、フリツプフロツプ20は対象
図形先端位置検出回路10の出力でセツトされ、
対象図形後端位置検出回路11の出力でリセツト
されるもので、フリツプフロツプ20の出力は対
象図形の垂直方向の領域を規定するものである。
In FIG. 8, the flip-flop 20 is set by the output of the target figure tip position detection circuit 10,
It is reset by the output of the target figure trailing edge position detection circuit 11, and the output of the flip-flop 20 defines the vertical area of the target figure.

水平走査方向のクロツク信号を計数する計数回
路22は、撮像部4とその解像度で決まるクロツ
数まで計数されるとリセツトされ、撮像部4内で
の1水平走査が完了し、次の水平走査が開始され
る。第4図に示す点において対象図形の先端位
置を検出すると、フリツプフロツプ20の出力は
“1”となり、同時にトリガー回路21からのト
リガーパルス信号によつて、その時の計数回路2
2の出力が記憶回路23に記憶される。即ち、記
憶回路23には、第4図に示す対象図形の先端位
置の水平走査方向の座標Xに相当する計数値が
記憶されることになる。比較回路24で、対象図
形の先端位置の水平方向の座標と、計数回路22
の出力とを比較することにより、対象図形の先端
位置を検出後、後続の各水平走査において、先端
位置の水平方向の座標Xと等しい位置まで走査
されたことを検出する。フリツプフロツプ25は
比較回路24の出力でセツトされ、画像信号の立
下りでリセツトされ、対象図形の水平方向の領域
の後端を規定するものである。即ち、領域検出回
路12によつて、対象図形の水平方向及び垂直方
向の領域を規定し、その領域内の画像信号から特
徴抽出回路13によつて、対象図形の特徴量であ
る。中心座標及び大きさ等を求める。
The counting circuit 22 that counts clock signals in the horizontal scanning direction is reset when the number of clocks determined by the imaging unit 4 and its resolution is counted, and one horizontal scan in the imaging unit 4 is completed, and the next horizontal scan is started. will be started. When the tip position of the target figure is detected at the point shown in FIG.
The output of 2 is stored in the storage circuit 23. That is, the storage circuit 23 stores a count value corresponding to the coordinate X in the horizontal scanning direction of the tip position of the target figure shown in FIG. The comparison circuit 24 calculates the horizontal coordinates of the tip position of the target figure and the counting circuit 22.
After detecting the tip position of the target figure, it is detected that the target figure has been scanned to a position equal to the horizontal coordinate X of the tip position in each subsequent horizontal scan. The flip-flop 25 is set by the output of the comparison circuit 24 and reset by the fall of the image signal, and defines the rear end of the horizontal area of the target figure. That is, the area detection circuit 12 defines the horizontal and vertical areas of the target figure, and the feature extraction circuit 13 extracts the feature amount of the target figure from the image signal within the area. Find the center coordinates, size, etc.

第9図は本発明による自動図形読み取り装置を
用いて特徴抽出を行なう回路の一実施例である。
FIG. 9 shows an embodiment of a circuit for extracting features using the automatic figure reading device according to the present invention.

対象図形の先端位置が検出されてから後端位置
が検出されるまでの各水平走査において、第8図
のフリツプフロツプ25の出力信号と第5図の第
1のトリガー発生回路出力信号との論理積を回
路50で求め、その出力信号をクロツクとして第
8図の計数回路22の出力を第1のレジスタ51
に記憶する。レジスター51の出力信号は第1の
最大値検出回路52によつて対象図形の水平方向
の最大後端位置が求められる。さらに、AND回
路50の出力信号をクロツクとして第5図の第1
の計数回路38の出力を第2のレジスター53へ
記憶し、第2の最大値検出回路54によつて対象
図形の水平方向の最大幅が求められる。最大後端
位置(第10図のX max)及び最大幅(第1
0図のWx max)の情報は演算処理装置55へ
入力され、対象図形の水平方向の中心座標(Xc)
を(1)式によつて求める。このとき原点をX0とし、
原点X0からi回目の移動台または光学系をX方
向に間欠移動する移動量Xiとすると、i回目の
X方向の間欠移動後の対象図形の水平方向の中心
座標Xcは、 Xc=Xmax−1/2Wx max+ΣXi ……(1) 一方、垂直方向の情報は、計数回路56で移動
台2の駆動部3のパルス入力を計数し、その出力
信号を第8図のトリガー発生回路21の出力信号
をクロツクとして第3のレジスター回路57へ記
憶し、演算装置55へ入力される。計数回路58
で第8図のフリツプフロツプ20の出力信号が
“1”の間隔動部3のパルス入力を計数し、出力
信号(第10図Wy)を得る。第8図フリツプフ
ロツプ20の出力が“1”から“0”へ変化する
時点で作動するトリガー発生回路59の出力信号
をクロツクとして第4のレジスター回路60へ記
憶し、これを演算処理装置55へ入力して、対象
図形の垂直方向の中心座標Ycが(2)式によつて求
められる。
In each horizontal scan from when the leading edge position of the target figure is detected to when the trailing edge position is detected, the logical product of the output signal of the flip-flop 25 shown in FIG. 8 and the output signal of the first trigger generation circuit shown in FIG. is determined by the circuit 50, and using the output signal as a clock, the output of the counting circuit 22 in FIG.
to be memorized. The output signal of the register 51 is used by a first maximum value detection circuit 52 to determine the maximum horizontal rear end position of the target figure. Furthermore, using the output signal of the AND circuit 50 as a clock,
The output of the counting circuit 38 is stored in the second register 53, and the maximum horizontal width of the target figure is determined by the second maximum value detection circuit 54. Maximum rear end position (X max in Figure 10) and maximum width (1st
The information of Wx max) of figure 0 is input to the arithmetic processing unit 55, and the horizontal center coordinate (Xc) of the target figure is input to the processing unit 55.
is obtained using equation (1). At this time, let the origin be X 0 ,
If the amount of movement Xi is the i-th intermittent movement of the moving table or optical system in the X direction from the origin X 0 , the horizontal center coordinate Xc of the target figure after the i-th intermittent movement in the X direction is Xc = Xmax - 1/2Wx max + ΣXi ...(1) On the other hand, for vertical information, a counting circuit 56 counts the pulse inputs of the drive unit 3 of the movable table 2, and the output signal is converted to the output signal of the trigger generation circuit 21 in FIG. is stored in the third register circuit 57 as a clock, and is input to the arithmetic unit 55. Counting circuit 58
Then, the output signal of the flip-flop 20 in FIG. 8 is counted as the pulse input to the interval moving section 3 of "1", and an output signal (Wy in FIG. 10) is obtained. 8. The output signal of the trigger generation circuit 59, which is activated when the output of the flip-flop 20 changes from "1" to "0", is stored as a clock in the fourth register circuit 60, and this is input to the arithmetic processing unit 55. Then, the center coordinate Yc in the vertical direction of the target figure is determined by equation (2).

Yc=Y+1/2Wy ……(2) 即ち、対象図形の中心座標及び大きさを求める
ことができる。
Yc=Y+1/2Wy (2) That is, the center coordinates and size of the target figure can be found.

さらに、第9図の第2の最大値検出回路54の
出力Wx maxと計数回路58の出力Wyから|
Wx max−Wy|を演算する。
Furthermore, from the output Wx max of the second maximum value detection circuit 54 and the output Wy of the counting circuit 58 in FIG.
Calculate Wx max−Wy|.

|Wx max−Wy|≦a ……(3) ただし、aはあらかじめ設定された値 この(3)式を満足する時、対象図形が円であると
判定する回路を特徴抽出回路へ含めることが可能
である。
|Wx max−Wy|≦a ...(3) where a is a preset value When this formula (3) is satisfied, a circuit that determines that the target figure is a circle can be included in the feature extraction circuit. It is possible.

さらには、第8図のフリツプフロツプ回路2
0、トリガー発生回路21、記憶回路23、比較
回路24、フリツプフロツプ25、第9図の
AND回路50、第1のレジスター回路51、第
1の最大検出回路52、第2のレジスター回路5
3、第2の最大検出回路54、第3のレジスター
回路57、計数回路58、トリガー発生回路5
9、第4のレジスター回路60を複数個設けるこ
とにより、水平走査方向に同時に複数個の対象図
形を検出することが可能である。
Furthermore, the flip-flop circuit 2 in FIG.
0, trigger generation circuit 21, memory circuit 23, comparison circuit 24, flip-flop 25, as shown in FIG.
AND circuit 50, first register circuit 51, first maximum detection circuit 52, second register circuit 5
3. Second maximum detection circuit 54, third register circuit 57, counting circuit 58, trigger generation circuit 5
9. By providing a plurality of fourth register circuits 60, it is possible to detect a plurality of target figures simultaneously in the horizontal scanning direction.

第11図は本発明による自動図形読み取り装置
を用いて撮像部の有効視野の重なり量を求める手
段の一実施例である。自動読み取り装置を用い
て、プリントパターンの全面を走査して、対象の
穴の中心座標及び穴径を読み取る場合、一般に
は、撮像部の有効視野の大きさに比較してプリン
トパターンが形成されているフイルムシートの大
きさの方が大きく、したがつて撮像素子が有する
電気的走査の他に機械的な走査を付加する必要が
ある。機械的な走査が間欠的に行なわれる場合に
は、ある対象図形が撮像部の有効視野の中に完全
に入つているような走査をしないと対象図形の正
確な読み取りが不可能である。即ち、ある機械的
走査と次の機械的走査との間に撮像部の有効視野
が部分的に重なるようにする必要がある。そして
一般には、この重なり量を対象図形の大きさを考
慮して一定な量に決めた走査が行なわれている
が、対象図形の大きさには種々のものがあり、重
なり量はその最も大きな対象図形によつて一意的
に決まつてしまうために、撮像部の実質的な有効
視野が小さくなり、フイルムパターンが形成され
ているフイルムシート全面を走査する時間が長く
なる欠点があつたが、本実施例では、有効視野の
重なり量を一定値に固定せず可変とすることによ
り図形読み取り時間を短縮することを可能とした
ものである。
FIG. 11 shows an embodiment of means for determining the amount of overlap of the effective fields of view of the imaging sections using the automatic figure reading device according to the present invention. When using an automatic reading device to scan the entire surface of a printed pattern and read the center coordinates and hole diameter of the target hole, the printed pattern is generally formed in a size that is smaller than the effective field of view of the imaging unit. The size of the film sheet used is larger, and therefore it is necessary to add mechanical scanning in addition to the electrical scanning provided by the image pickup device. When mechanical scanning is performed intermittently, it is impossible to accurately read a target figure unless scanning is performed such that the target figure is completely within the effective field of view of the imaging section. That is, it is necessary that the effective field of view of the imaging section partially overlaps between one mechanical scan and the next mechanical scan. Generally, scanning is carried out with the amount of overlap determined at a fixed amount by taking into account the size of the target figure, but there are various sizes of target figures, and the amount of overlap is determined by the largest amount. Since it is uniquely determined by the target figure, the actual effective field of view of the imaging section becomes small, and the time required to scan the entire surface of the film sheet on which the film pattern is formed is disadvantageous. In this embodiment, the overlapping amount of the effective field of view is not fixed to a constant value but is made variable, thereby making it possible to shorten the figure reading time.

第11図において、AND回路61で第8図の
フリツプフロツプ25の出力信号、水平走査終端
信号及び第5図の第1のトリガー発生回路34の
出力信号の論理積を求め、この信号をクロツクと
してレジスター回路62へ第5図の計数回路38
の出力信号を記憶する。最大値検出回路63は、
レジスター回路62の内容の最大値を求める。即
ち、最大値検出回路63には、水平走査方向Xの
終端にかかる対象図形の中で最も大きな値が記憶
される。第12図において、Weの中で最も大き
なWe maxとして求まる。撮像部4の水平走査
方向Xの有効視野長Dとすれば、第9図の演算処
理装置55によつてD−We maxを演算し、移
動台2の水平方向の間欠移動量の設定を行なう。
これによつて効率の良い走査が可能となり、図形
読み取り時間の短縮が図れる。
In FIG. 11, an AND circuit 61 calculates the logical product of the output signal of the flip-flop 25 in FIG. 8, the horizontal scanning termination signal, and the output signal of the first trigger generation circuit 34 in FIG. Counting circuit 38 in FIG. 5 to circuit 62
The output signal of is stored. The maximum value detection circuit 63 is
The maximum value of the contents of the register circuit 62 is determined. That is, the maximum value detection circuit 63 stores the largest value among the target figures at the end in the horizontal scanning direction X. In FIG. 12, We max is the largest among We. If the effective field of view length in the horizontal scanning direction X of the imaging unit 4 is D, then the arithmetic processing unit 55 in FIG. .
This enables efficient scanning and reduces the figure reading time.

又、本発明によれば任意位置に存在する対象図
形を光学的に測定する際に視野端にかかる不完全
図形の存在及び大きさを自動的に検出し次回走査
時の視野移動量を最適値に選択することができる
ので、図形読み取り最適シーケンスの決定及び読
み取り時間の短縮が図られる。
Furthermore, according to the present invention, when optically measuring a target figure existing at an arbitrary position, the presence and size of an incomplete figure at the edge of the field of view is automatically detected, and the amount of movement of the field of view for the next scan is set to the optimum value. Therefore, the optimum pattern reading sequence can be determined and the reading time can be shortened.

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

第1図は本発明による図形読み取り装置の概略
図、第2図はシート上に形成されている対象図形
のパターンの例を示す図、第3図は本発明の主要
部である処理装置のブロツク図、第4図は先端位
置と後端位置の検出を説明するための図、第5図
は先端位置検出回路と後端位置検出回路のブロツ
ク図、第6図は第5図の回路の各部に現われる波
形を第4図の穴パターンに関連して示す波形図、
第7図は対象図形が穴がないパターンを検出した
ときに第5図の回路に現われる波形図、第8図は
対象図形の領域検出回路のブロツク図、第9図は
特徴抽出回路のブロツク図、第10図は第9図の
回路によつて対象図形の中心座標及び大きさを求
める過程を説明するための図、第11図は撮像部
の有効視野の重なり量を求める回路のブロツク
図、第12図は第11図の回路によつて重なり量
を求める方法を説明する図である。 〔主要部分の符号の説明〕、光源……5、撮像
部……4、駆動部……3、移動台……2、先端位
置検出手段……10、後端位置検出手段……1
1、領域検出手段……12。
Fig. 1 is a schematic diagram of a figure reading device according to the present invention, Fig. 2 is a diagram showing an example of a target figure pattern formed on a sheet, and Fig. 3 is a block diagram of a processing device which is the main part of the present invention. Figure 4 is a diagram for explaining detection of the leading edge position and trailing edge position, Figure 5 is a block diagram of the leading edge position detection circuit and trailing edge position detection circuit, and Figure 6 is a diagram showing each part of the circuit in Figure 5. a waveform diagram showing the waveform appearing in relation to the hole pattern of FIG. 4;
Figure 7 is a waveform diagram that appears in the circuit of Figure 5 when the target figure detects a pattern with no holes, Figure 8 is a block diagram of the area detection circuit of the target figure, and Figure 9 is a block diagram of the feature extraction circuit. , FIG. 10 is a diagram for explaining the process of determining the center coordinates and size of a target figure by the circuit of FIG. 9, FIG. 11 is a block diagram of a circuit for determining the amount of overlap of the effective fields of view of the imaging section, FIG. 12 is a diagram illustrating a method for determining the amount of overlap using the circuit shown in FIG. 11. [Explanation of symbols of main parts], light source...5, imaging unit...4, drive unit...3, moving table...2, tip position detection means...10, rear end position detection means...1
1. Area detection means...12.

Claims (1)

【特許請求の範囲】 1 対象図形を一様照明する光源と、この照明光
の対象図形による透過光又は反射光を受光する一
次元又は二次元的に配置された所定視野幅を有す
る撮像部と、前記対象図形又は撮像部を一次元又
は二次元的に間欠的に移動させる駆動部とを有す
る図形読み取り装置において、前記撮像部の画像
出力信号から前記対象図形の先端位置及び後端位
置を検出して対象図形を特定する手段と、先端位
置が検出され、且つ視野端に現われた不完全対象
図形の最大幅に基いて駆動部の間欠移動量を決定
する重なり量検出手段を有することを特徴とする
図形読み取り装置。 2 特許請求の範囲第1項記載の装置において、
重なり量検出手段は、前記対象図形が固定された
移動台又は撮像部をある水平方向の一定の位置に
ある時、前記撮像部の有効幅から決まる水平方向
幅を電気的に走査しつつ、前記移動台又は撮像部
を垂直方向に移動した時に得られる画像信号から
水平走査の終端にかかる位置で検出された対象図
形の水平走査方向に最も大きな幅Wemaxを検出
する手段と、前記撮像部の水平方向に有効な幅D
とした時、D−Wemaxを演算する手段と前記演
算結果に基づいた量を前記移動台又は撮像部の駆
動部に水平方向の間欠移動量として指令する手段
とで構成されたことを特徴とする自動図形読み取
り装置。
[Scope of Claims] 1. A light source that uniformly illuminates a target figure, and an imaging unit having a predetermined field of view width arranged one-dimensionally or two-dimensionally and receiving transmitted light or reflected light of the illumination light by the target figure. , a figure reading device having a drive unit that intermittently moves the target figure or an imaging unit one-dimensionally or two-dimensionally, detecting a leading end position and a trailing end position of the target figure from an image output signal of the imaging unit. and means for detecting the position of the tip and determining the amount of intermittent movement of the drive unit based on the maximum width of the incomplete target figure appearing at the edge of the field of view. A figure reading device. 2. In the device according to claim 1,
The overlap amount detecting means is configured to electrically scan a horizontal width determined from the effective width of the imaging section when the movable table or the imaging section to which the target figure is fixed is located at a certain horizontal position. means for detecting the largest width Wemax in the horizontal scanning direction of a target figure detected at a position at the end of horizontal scanning from an image signal obtained when moving the movable table or the imaging section in the vertical direction; effective width D in the direction
The present invention is characterized by comprising a means for calculating D-Wemax and a means for commanding an amount based on the calculation result to the drive unit of the movable table or the imaging unit as an intermittent movement amount in the horizontal direction. Automatic figure reading device.
JP62019653A 1987-01-31 1987-01-31 Graphic reader Granted JPS62216083A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62019653A JPS62216083A (en) 1987-01-31 1987-01-31 Graphic reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62019653A JPS62216083A (en) 1987-01-31 1987-01-31 Graphic reader

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP929580A Division JPS5717084A (en) 1980-01-31 1980-01-31 Pattern reading device

Publications (2)

Publication Number Publication Date
JPS62216083A JPS62216083A (en) 1987-09-22
JPH0210988B2 true JPH0210988B2 (en) 1990-03-12

Family

ID=12005206

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62019653A Granted JPS62216083A (en) 1987-01-31 1987-01-31 Graphic reader

Country Status (1)

Country Link
JP (1) JPS62216083A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5372433A (en) * 1976-12-08 1978-06-27 Fuji Electric Co Ltd Plurale pattern recognition unit
JPS5717084A (en) * 1980-01-31 1982-01-28 Nippon Seiko Kk Pattern reading device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5372433A (en) * 1976-12-08 1978-06-27 Fuji Electric Co Ltd Plurale pattern recognition unit
JPS5717084A (en) * 1980-01-31 1982-01-28 Nippon Seiko Kk Pattern reading device

Also Published As

Publication number Publication date
JPS62216083A (en) 1987-09-22

Similar Documents

Publication Publication Date Title
US4105925A (en) Optical object locator
US4965665A (en) 3D imaging of a substrate using perpendicular scanning directions
US5869789A (en) Image digitizer with page number detector and recorder
JPH0128425B2 (en)
US20030053045A1 (en) System for inspecting a flat sheet workpiece
US6300645B1 (en) Position sensing device having a single photosensing element
JPH0210988B2 (en)
JPH01321593A (en) Sheet member counting device
JPS63163978A (en) Hole mark reader for printed wiring pattern
Harrison et al. High-speed triangulation-based 3-D imaging with orthonormal data projections and error detection
EP0340393A2 (en) Position detecting circuit
EP1099934B1 (en) Position sensing device and method
JP3207974B2 (en) Photomask defect inspection method
JPH0715365B2 (en) Pattern position detection method
JPS61225605A (en) Optical automatic line width measuring device and method
JPH0514314B2 (en)
JPH05296724A (en) Parts recognition method
JPS589984B2 (en) Mojiyomitrisouchi
CN1322735C (en) Adjustable graphic interface of optical mechanism and its operation method
JPS624851B2 (en)
JP2764120B2 (en) Imaging device
JPH05215534A (en) Adjusting method for surface inspecting camera mechanism
JPH10308598A (en) Calibration method of scan type sensor
JP2745476B2 (en) Printed circuit board inspection equipment
JPS633243B2 (en)