JPS638986A - Character graphic arranging inspection device - Google Patents

Character graphic arranging inspection device

Info

Publication number
JPS638986A
JPS638986A JP61152908A JP15290886A JPS638986A JP S638986 A JPS638986 A JP S638986A JP 61152908 A JP61152908 A JP 61152908A JP 15290886 A JP15290886 A JP 15290886A JP S638986 A JPS638986 A JP S638986A
Authority
JP
Japan
Prior art keywords
binary data
camera
character
data column
outline
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.)
Pending
Application number
JP61152908A
Other languages
Japanese (ja)
Inventor
Yoshiki Sakurai
良樹 櫻井
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP61152908A priority Critical patent/JPS638986A/en
Publication of JPS638986A publication Critical patent/JPS638986A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

PURPOSE:To attain the rapid character graphic arranging inspection with high position accuracy by using the number of the outline picture element of a character graphic as a processing object. CONSTITUTION:An one-dimensional CCD camera 1 photographs a character graphic image printed on a key top arranged on the surface of a keyboard 2 which is an inspected object. A camera driving mechanism part 3 shifts the one-dimensional CCD camera 1 in the direction orthogonal to the paper surface. A binary data output circuit 4, each time the one-dimensional CCD camera 1 shifts to the constant distance, fetches a photographed video signal (a), compares with the threshold level set beforehand and converts it to a binary data column (b). A direction extracting circuit 5, each time the binary data column (b) is inputted, outputs a binary data column (c) to make only an outline constituting picture element of a photodetecting element arranging direction (X direction) into '1' and the element except it into '0' a binary data column (d) corresponding to the outline constituting picture element of a camera shifting direction (Y direction) and a binary data column (e) corresponding to the outline of an X direction, a Y direction and the direction to form 45 deg. and the corner constituting picture element, to a deciding circuit 6.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は二次元平面上に各種文字図形が配置されたもの
を被検査対象とする文字図形配列検査装置だ関し特にキ
ーボードやキーi4ネルのキートップ配置検査装置に関
する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention is a character/figure arrangement inspection device that inspects objects in which various character/figures are arranged on a two-dimensional plane, and is particularly applicable to keyboards and key i4 channels. The present invention relates to a key top arrangement inspection device.

〔従来の技術〕[Conventional technology]

従来、この種の文字図形配置検査装置は高分解能の一次
元固体撮像素子カメラを移動させて、被検査物表面だ関
する二次元画像データを作成し。
Conventionally, this type of character/figure arrangement inspection apparatus moves a high-resolution one-dimensional solid-state image sensor camera to create two-dimensional image data about the surface of the object to be inspected.

ジンレングス法などによシ各文字を認識し、正規の配置
と比較する方式を採用していた。
It used a method such as the gin-length method to recognize each character and compare it with the regular arrangement.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の文字配列検査装置では1例えば線幅0.
5 mm 、配置領域が150mmX400x程度の漂
準的なキーデートを検査する時1画素当シの分解能が0
.1団で、各画素は2値データとしても6メガビツトの
2次元画像情報を処理しなければならず2画像処理部が
複雑かつ高価だなシ、処理速度も遅いという欠点があっ
た。
In the conventional character arrangement inspection device described above, the line width is 1, for example, 0.
5 mm, the resolution per pixel is 0 when inspecting a semi-standard key date with an arrangement area of about 150 mm x 400 x.
.. In one group, each pixel must process 6 megabits of two-dimensional image information, even as binary data, and the two image processing units are complex and expensive, and the processing speed is slow.

一方、前述のようだ一次元固体撮像素子カメラによって
得られる映像信号を2値データ列に変換し、別のカメラ
にて同時に正規の被検査対象物を撮像し、同様な処理を
施して得るか、あるいは予めメモリに記憶させておいた
二次元基準データから、撮像位置に対応する一次元デー
タを取出してくることによって得られる2値データ列と
、前記被検査物から得られる2値データ列との間で各ビ
ット毎の値の一致不一致を演算し、不一致データ総個数
により文字図形配置の合否を判定する方法がある。この
方法を用いた装置の場合、処理回路は高速且つ簡略であ
る反面、被検査対象文字図形を各々±1画像以内の位置
精度に保つ必要があわ。
On the other hand, it is possible to convert the video signal obtained by the one-dimensional solid-state image sensor camera mentioned above into a binary data string, simultaneously image the regular inspection object with another camera, and perform similar processing. , or a binary data string obtained by retrieving one-dimensional data corresponding to the imaging position from two-dimensional reference data stored in a memory in advance, and a binary data string obtained from the object to be inspected. There is a method of calculating whether or not the values of each bit match between the two, and determining whether or not the character/figure arrangement is acceptable based on the total number of mismatched data. In the case of an apparatus using this method, although the processing circuit is fast and simple, it is necessary to maintain the position accuracy of each character figure to be inspected within ±1 image.

キートップなどの製品仕様から考えると非常に位置精度
の維持が困難であるという欠点があった。
Considering the product specifications such as key tops, there was a drawback in that it was extremely difficult to maintain positional accuracy.

そこで2本発明の目的は、上記問題点に鑑み。Therefore, two objects of the present invention are to solve the above problems.

迅速且つ位置精度の高い文字図形配置検査装置を提供す
ることである。
It is an object of the present invention to provide a character/figure arrangement inspection device that is quick and has high positional accuracy.

〔問題点を解決するための手段〕[Means for solving problems]

本発明だよれば一列に配列された受光素子を設けた一次
元固体撮像素子カメラと、前記カメラをその受光素子配
列方向と直交する方向へ移動させるカメラ駆動機構部と
、前記カメラにて一定距離間隔で被検査物表面の直線部
分を撮像して得られた映像信号全2値データ列に変換し
、出力する2値データ出力回路部と、前記2値データ列
を順次入力しメモリに書込むと同時に、前記2値データ
との論理演算によシ2文字図形輪郭を構成する画素のう
ち、前記受光素子配列方向及び前記カメラ移動方向に連
なる画素のみを各方向別に抽出する方向抽出回路部と、
前記各方向別画素の総個数を求め、予め定めた許容範囲
内であるか否かによって配置されている文字図形が正規
のものであるか否かを判定する判定回路部とから構成さ
れることを特徴とする文字図形配置検査装置が得られる
According to the present invention, there is provided a one-dimensional solid-state image pickup device camera having light receiving elements arranged in a row, a camera drive mechanism unit that moves the camera in a direction perpendicular to the direction in which the light receiving elements are arranged, and a camera driving mechanism that moves the camera a certain distance by moving the camera in a direction perpendicular to the direction in which the light receiving elements are arranged. A binary data output circuit unit that converts the video signal obtained by imaging a straight line portion of the surface of the object to be inspected at intervals into a full binary data string and outputs it, and sequentially inputs the binary data string and writes it into a memory. At the same time, a direction extraction circuit unit extracts only pixels that are continuous in the light receiving element arrangement direction and the camera movement direction from among the pixels constituting the two-character figure outline by a logical operation with the binary data; ,
and a determination circuit unit that calculates the total number of pixels in each direction and determines whether or not the arranged character figure is normal based on whether the total number of pixels is within a predetermined tolerance range. A character/figure arrangement inspection device is obtained.

〔実施例〕〔Example〕

次に本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例の構成を示すブロック図であ
る。−次元CODカメラ1は被検査対象物であるキーボ
ード2の表面ば配置されたキートップの上に印刷されて
いる文字図形像を撮像する。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. -Dimensional COD camera 1 captures character and graphic images printed on key tops arranged on the surface of keyboard 2, which is an object to be inspected.

カメラ駆動機構部3は前記1次元CCDカメラ1を同図
紙面と直交する方向に動かす。・同図中の破線内は画像
データを処理する回路群である。2値データ出力回路4
は前記1次元CCDカメラ1が定距離移動するごとにそ
の撮像した映像信号aを取込み、予め設定しである閾値
レベルと比較し、2値デーメ列すに変換して出力する。
The camera drive mechanism section 3 moves the one-dimensional CCD camera 1 in a direction perpendicular to the plane of the figure. - The area within the broken line in the figure is a circuit group that processes image data. Binary data output circuit 4
captures the captured video signal a every time the one-dimensional CCD camera 1 moves a certain distance, compares it with a preset threshold level, converts it into a binary digital sequence, and outputs it.

方向抽出回路5は前記2値データ列すが入力されると受
光素子配列方向(以降X方向と記す)の輪郭構成画素の
みを@1″それ以外を0#とする2値データ列Cと。
When the binary data string S is inputted, the direction extraction circuit 5 generates a binary data string C in which only the contour forming pixels in the light receiving element arrangement direction (hereinafter referred to as the X direction) are set to @1'' and the others are set to 0#.

同様にカメラ移動方向(以降Y方向と記す)の輪郭構成
画素に対応する2値データ列dならびにXおよびY方向
と45°をなす方向の輪郭及びコーナー構成画素に対応
する2値データ列eを出力する。
Similarly, a binary data string d corresponding to the contour constituent pixels in the camera movement direction (hereinafter referred to as the Y direction) and a binary data string e corresponding to the contour and corner constituent pixels in a direction making 45 degrees to the X and Y directions. Output.

判定回路6では例えば第2図に示すキーボード上の“4
″という文字の配置を検査する場合は、同図中四角形で
示す前記文字の存在領域10を考え。
In the determination circuit 6, for example, if "4" on the keyboard shown in FIG.
When inspecting the arrangement of the character ``, consider the existence area 10 of the character indicated by a rectangle in the figure.

この領域内の画素データについてのみ前記2値データ列
c、dおよびCに含まれる111″の各総個数n(c)
、n(d)、n(e)を計算し、予め設定しである判定
基準、即ち正規の文字”4#が前記存在領域内にあった
場合【算出される前記n(c)、n(d)、n(e)の
各上限値および下限値と比較しp n(c)、n(d)
The total number of 111'' included in the binary data strings c, d, and C only for the pixel data in this area n(c)
, n(d), n(e), and according to a preset criterion, that is, if the regular character "4#" is within the existence area, [the calculated n(c), n( Compare p n(c), n(d) with each upper limit value and lower limit value of d), n(e).
.

n(e)すべてが許容範囲内であれば正常な配置である
と判定する。同様の処理を検査を必要とする他の文字図
形についても行い、全て正常な配置ならば検査合格とし
て”1″を、1つでも異常ならば検査不合格として“O
”を検査結果信号fとして出力する。
If all of n(e) are within the allowable range, it is determined that the arrangement is normal. The same process is carried out for other characters and figures that require inspection, and if all the layouts are normal, the inspection is passed and a “1” is assigned, and if even one is abnormal, the inspection is failed and an “O” is assigned.
” is output as the test result signal f.

次に方向抽出回路5の詳細に関して図面によシ説明する
。第3図はこの方向抽出回路5の回路図である。11,
12,14.15は1ビツトのシフトレジスタ、13は
固体撮像素子の素子数をNとする(N−2)ビットシフ
トレジスタである。
Next, details of the direction extraction circuit 5 will be explained with reference to the drawings. FIG. 3 is a circuit diagram of this direction extraction circuit 5. 11,
12, 14, and 15 are 1-bit shift registers, and 13 is an (N-2) bit shift register in which the number of elements of the solid-state image sensor is N.

2値データ出力回路4から出力される2値デーメ列すを
1ビツトずつ入力するととに、それまでのデータはシフ
トレジスタ群内を頴次シフトしていく。この時、同図中
plqlr18で示す4個の画素データをX方向抽出回
路17.Y方向抽出回路18ならび1C45″方向およ
びコーナー抽出回路19に入力する。従って、上記3方
向抽出回路17.18.19には第4図に示すような2
XNの画素データ配列上を前述のシフトタイミングと同
期して1ビツトずつ移動する2×2の領域内の2値化画
素データP、Q、R,Sが入力される。
As the binary data string outputted from the binary data output circuit 4 is input one bit at a time, the data up to that point is sequentially shifted within the shift register group. At this time, the four pixel data indicated by plqlr18 in the figure are extracted from the X-direction extraction circuit 17. It is input to the Y direction extraction circuit 18 and the 1C45'' direction and corner extraction circuit 19.Therefore, the three direction extraction circuits 17, 18 and 19 have two inputs as shown in FIG.
Binarized pixel data P, Q, R, and S in a 2×2 area are inputted, which are moved bit by bit on the XN pixel data array in synchronization with the shift timing described above.

各方向抽出回路では次に示すような論理演算を行い、演
算結果を即ち抽出結果として出力する。
Each direction extraction circuit performs the following logical operations and outputs the operation results as extraction results.

(X方向輪郭画素)  P−互・R−百+百・Q−R−
8(Y方向輪郭画素)   P−Q−R−3+P−Q−
R−S(4”:方向輪郭面素) P−Q−R−8+P−
Q−R−S+P・Q・R−8第5図に演算結果例として
文字“4nに関して上記演算によシ抽出される各方向輪
郭面素を示す。同図中○印はX方向輪郭画素、Δ印はY
方向輪郭画素2ロ印は45’方向輪郭及びコーナー画素
を示す。
(X-direction contour pixels) P-mutual, R-100+100, Q-R-
8 (Y direction contour pixels) P-Q-R-3+P-Q-
R-S (4”: direction contour surface element) P-Q-R-8+P-
Q-R-S+P・Q・R-8 FIG. 5 shows contour pixels in each direction extracted by the above calculation for the character “4n” as an example of the calculation results. Δ mark is Y
Directional contour pixel 2 indicates a 45' direction contour and a corner pixel.

以上説明したように本発明による文字図形配列検査装置
では画像データの処理回路部分をシフトレジスタ・カウ
ンタ、コン/’Pレータおよび論理演算素子によって簡
略かつ安価に構成することが可能である。また、処理対
象として文字図形の輪郭画素個数を用いているので、被
検査対象物の精密な位置決めは不要である。さらに、前
述の通シ/・−ドウエア構成にて2次元画像情報から個
々の文字図形存在領域ごとの各方向別輪郭画素、総個数
情報へとリアルタイムに情報の加工圧縮を処理している
ため、検査時間が大巾に短縮される。例えば。
As described above, in the character/graphic arrangement inspection apparatus according to the present invention, the image data processing circuit portion can be constructed simply and inexpensively by a shift register/counter, a converter/'Plator, and a logic operation element. Further, since the number of pixels of the outline of the character/figure is used as the processing target, precise positioning of the object to be inspected is not necessary. Furthermore, the above-mentioned through/doware configuration processes and compresses information in real time from two-dimensional image information to contour pixels in each direction and total number information for each character/figure existing area. Inspection time is drastically reduced. for example.

前述の判定回路部の各文字図形の存在領域の設定と各方
向輪郭画素個数の基準値との比較判定全16ビツトマイ
クロプロセツサ(例えばμPD70116:NEC)及
び周辺回路にて処理させれば、各画素データの判定回路
部入力周期にてその結果を出力することが可能であシ、
検査時間はカメラの移動に要する時間に等しい。従って
、1次元CCDカメラとして素子数2048ビット走査
周期2 m5ec (例えば5c−2048NB :N
EC)を用い、このカメラを50+m/secの一定速
度で動かしながら被検査物を連続撮像するとすれば、1
50tIIa×4001mのキー?−ド面を0.1閣角
の画素分解能にて8 secで検査することが可能であ
る。
Comparing and determining the existence area of each character figure in the aforementioned determination circuit section with the standard value of the number of contour pixels in each direction, each It is possible to output the result at the input cycle of the pixel data judgment circuit section,
The inspection time is equal to the time required to move the camera. Therefore, as a one-dimensional CCD camera, the number of elements is 2048 bits, the scanning period is 2 m5ec (for example, 5c-2048NB: N
EC), and if the object to be inspected is continuously imaged while moving this camera at a constant speed of 50+m/sec, then 1
50tIIa x 4001m key? - It is possible to inspect a surface in 8 seconds with a pixel resolution of 0.1 square degrees.

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

第1図は本発明の一実施例の構成を示すブロック図、第
2図は被検査対象の一例としてのキーボード平面図、第
3図は方向抽出回路の回路図、第4図は方向抽出回路の
機能を説明するための画素配置図、第5図は方向抽出回
路の演算結果の一例を示す画素配置図である。 l・・・1次元CCDカメラ、2・・・キーば一ド、3
・・・カメラ駆動機構部、4・・・2値データ出力回路
、5・・・方向抽出回路、6・・・判定回路、10・・
・存在領域。 11.12,14.15・・・1ビツトシフトレジスタ
、13・・・(N−2)ビットシフトレノスタ。 17・・・X方向抽出回路、18・・・Y方向抽出回路
。 第1図 第3図 り 突4図
Fig. 1 is a block diagram showing the configuration of an embodiment of the present invention, Fig. 2 is a plan view of a keyboard as an example of an object to be inspected, Fig. 3 is a circuit diagram of a direction extraction circuit, and Fig. 4 is a direction extraction circuit. FIG. 5 is a pixel layout diagram showing an example of the calculation result of the direction extraction circuit. l...1-dimensional CCD camera, 2...keyboard, 3
... Camera drive mechanism section, 4... Binary data output circuit, 5... Direction extraction circuit, 6... Judgment circuit, 10...
・Existence area. 11.12, 14.15...1 bit shift register, 13...(N-2) bit shift register. 17...X direction extraction circuit, 18...Y direction extraction circuit. Figure 1 Figure 3 Figure 4

Claims (1)

【特許請求の範囲】[Claims] 1、一列に配列された受光素子を設けた一次元固体撮像
素子カメラと、前記カメラをその受光素子配列方向と直
交する方向へ移動させるカメラ駆動機構部と、前記カメ
ラにて一定距離間隔で被検査物表面の直線部分を撮像し
て得られた映像信号を2値データ列に変換し出力する2
値データ出力回路部と、前記2値データ列を順次入力し
メモリに書込むと同時に、前記2値データとの論理演算
により文字図形輪郭を構成する画素のうち、前記受光素
子配列方向及び前記カメラ移動方向に連なる画素のみを
各方向別に抽出する方向抽出回路部と、前記各方向別画
素の総個数を求め、予め定めた許容範囲内であるか否か
によって配置されている文字図形が正規のものであるか
否かを判定する判定回路部とから構成されることを特徴
とする文字図形配置検査装置。
1. A one-dimensional solid-state image sensing device camera provided with light receiving elements arranged in a line, a camera drive mechanism section that moves the camera in a direction perpendicular to the direction in which the light receiving elements are arranged, and a camera driven by the camera at fixed distance intervals. Converts the video signal obtained by imaging the straight line portion of the inspection object surface into a binary data string and outputs it 2
A value data output circuit unit sequentially inputs the binary data string and writes it into the memory, and at the same time performs a logical operation with the binary data to determine the direction of the light receiving element array and the camera. A direction extraction circuit extracts only pixels that are continuous in the moving direction in each direction, and the total number of pixels in each direction is determined, and the placed character/figure is determined to be normal depending on whether or not it is within a predetermined tolerance range. 1. A character/figure arrangement inspection device comprising: a determination circuit unit for determining whether or not the character/figure placement is a
JP61152908A 1986-06-30 1986-06-30 Character graphic arranging inspection device Pending JPS638986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61152908A JPS638986A (en) 1986-06-30 1986-06-30 Character graphic arranging inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61152908A JPS638986A (en) 1986-06-30 1986-06-30 Character graphic arranging inspection device

Publications (1)

Publication Number Publication Date
JPS638986A true JPS638986A (en) 1988-01-14

Family

ID=15550769

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61152908A Pending JPS638986A (en) 1986-06-30 1986-06-30 Character graphic arranging inspection device

Country Status (1)

Country Link
JP (1) JPS638986A (en)

Similar Documents

Publication Publication Date Title
KR900007434B1 (en) Pattern inspecting method
KR100730051B1 (en) Defect detection apparatus and defect detection method
US6317512B1 (en) Pattern checking method and checking apparatus
EP0225651B1 (en) Method of and apparatus for detecting pattern defects
JPS59157505A (en) Pattern inspecting device
US4942619A (en) Pattern inspecting apparatus
EP0206709A2 (en) Automatic optical inspection of printed circuit boards
JPH06325162A (en) Image processor
JPS638986A (en) Character graphic arranging inspection device
JPS5924361B2 (en) 2D image comparison inspection device
JPH02210249A (en) Method and device for inspecting appearance
JPS63273047A (en) Surface irregularity detector
JP2561193B2 (en) Print pattern inspection device
JP3039704B2 (en) Printing evaluation method and printing evaluation device
JP2003203218A (en) Visual inspection device and method
JPH05129397A (en) Foreign matter detection method and device
JPH03170930A (en) Pattern inspecting device
KR910007348B1 (en) Machine vision process and apparatus for reading a plurality of separated figures
JPH04316346A (en) Pattern recognition method
JP3119376B2 (en) Printing evaluation method and printing evaluation device
JP2676990B2 (en) Wiring pattern inspection equipment
JP2745763B2 (en) Wiring pattern inspection equipment
JP3072788B2 (en) Printing evaluation method and printing evaluation device
JPS6280779A (en) Character reader
JP3029142B2 (en) Printing evaluation method and printing evaluation device