JPH0773323A - Character judging device - Google Patents

Character judging device

Info

Publication number
JPH0773323A
JPH0773323A JP5218676A JP21867693A JPH0773323A JP H0773323 A JPH0773323 A JP H0773323A JP 5218676 A JP5218676 A JP 5218676A JP 21867693 A JP21867693 A JP 21867693A JP H0773323 A JPH0773323 A JP H0773323A
Authority
JP
Japan
Prior art keywords
character
distance
judged
work
determined
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.)
Granted
Application number
JP5218676A
Other languages
Japanese (ja)
Other versions
JP3062376B2 (en
Inventor
Taku Uehara
卓 上原
Sadatoshi Tsuji
禎年 辻
Yukio Kitagawa
幸男 北川
Shigeru Ichikawa
茂 市川
Toshinobu Fujita
敏信 藤田
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.)
Honda Motor Co Ltd
Original Assignee
Honda Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honda Motor Co Ltd filed Critical Honda Motor Co Ltd
Priority to JP5218676A priority Critical patent/JP3062376B2/en
Publication of JPH0773323A publication Critical patent/JPH0773323A/en
Application granted granted Critical
Publication of JP3062376B2 publication Critical patent/JP3062376B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To provide a character judging device for adjusting a distance between the surface of a work and an image pickup camera corresponding to distortion on the surface of the work on which characters are engraved. CONSTITUTION:A CCD camera 16 for detecting the characters engraved on a metal plate 12 is loaded on a supporting member 24 together with a distance sensor 18. First of all, the distance to the surface of the metal plate 12, where the characters to be judged are engraved, is measured by the distance sensor 18 and the sensor is moved for each character. In this case, the supporting member 24 is made close or away from the surface of the metal plate 12 by turning a ball screw 28 based on the distance detected by the distance sensor 18, and the distance is adjusted so as to be a prescribed distance. Therefore, the quality of characters to be judged can be exactly judged without being affected by distortion on the surface of the metal plate 12.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、物体に刻印された文字
を前記物体から所定距離離間した位置において撮像カメ
ラで撮影し、前記撮像に基づき刻印された文字の大きさ
等の良否を判定する文字判定装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention takes an image of a character imprinted on an object with a photographing camera at a position separated from the object by a predetermined distance, and judges the quality of the imprinted character based on the imaging. The present invention relates to a character determination device.

【0002】[0002]

【従来の技術】従来から、エンジンや車体のボデイに
は、生産時期、種類等を判別するために一連の番号およ
び文字等が刻印される。そこで、これらのワークに対し
文字が正確に刻印されたか否かを確認するために、該文
字情報を撮像カメラで読み取り、撮像された画像を検査
員が画面上で確認することにより、刻印文字を検査して
いた。
2. Description of the Related Art Conventionally, a series of numbers, characters, etc. are stamped on the body of an engine or a vehicle body in order to discriminate the production time, type and the like. Therefore, in order to confirm whether or not the characters are accurately engraved on these works, the character information is read by an imaging camera, and the inspector confirms the imaged image on the screen so that the engraved character is I was inspecting.

【0003】しかしながら、この処理方法によれば検査
員の負担が大きいため、撮像された刻印文字の画像デー
タを2値化して予め設定された基準となる文字データと
パターンマッチングを行うことにより、刻印文字の大き
さ、太さが適当であるか否か、断点の有無等を確認して
不良文字を検出するように構成した技術が提案されてい
る。
However, according to this processing method, the burden on the inspector is large, so the image data of the imaged stamped character is binarized and pattern matching is performed with the preset reference character data. A technique has been proposed which is configured to detect a defective character by checking whether or not the size and thickness of the character are appropriate, the presence or absence of a break point, and the like.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、一般的
に、刻印文字を構成している凹部の深さが極めて小さい
ため、文字が刻印される物体の表面の歪み等によって撮
像される画像に影響が出やすい。例えば、文字が適当な
大きさに刻印されているにもかかわらず、物体の表面が
歪んでいるため撮像カメラと物体との間隔が所望の距離
から若干ずれ、刻印文字の撮像された画像データが予め
設定されたデータの大きさと異なることになる。その結
果、パターンマッチングの際に、当該刻印文字が不良と
判定されるおそれがあった。
However, in general, since the depth of the recessed portion forming the engraved character is extremely small, distortion of the surface of the object on which the character is engraved affects the imaged image. Easy to get out. For example, although the characters are engraved in an appropriate size, the surface of the object is distorted, so the distance between the imaging camera and the object deviates slightly from the desired distance, and the image data of the engraved character is not captured. It will be different from the size of the preset data. As a result, the engraved character may be determined to be defective during pattern matching.

【0005】本発明は、この種の問題を解決するために
なされたものであって、文字が刻印された物体の表面の
歪みに応じて、前記表面と撮像カメラとの距離を調節
し、所望の位置で撮像カメラを用いて文字情報を読み取
ることが可能な文字判定装置を提供することを目的とす
る。
The present invention has been made to solve this type of problem, and adjusts the distance between the surface of an object on which characters are engraved and the image pickup camera in accordance with the distortion of the surface of the object. It is an object of the present invention to provide a character determination device capable of reading character information using an imaging camera at the position.

【0006】[0006]

【課題を解決するための手段】前記の目的を達成するた
めに、本発明は、予め設定された文字データとワークの
表面に刻印された文字の画像情報とを比較して刻印され
た文字の大きさ、太さ等の良否を判定する文字判定装置
であって、刻印された文字を撮像する撮像手段と、文字
が刻印されたワークの表面と前記撮像手段との距離を検
出する距離検出手段と、前記撮像手段および前記距離検
出手段と前記ワークの表面とを相対的に且つ平行に所定
間隔離間して変位させる第1変位手段と、前記撮像手段
と前記距離検出手段とを前記ワークの表面に対して接
近、あるいは離間させる第2変位手段と、を備え、前記
距離検出手段で検出された距離が予め設定された所定距
離と異なる場合には、前記撮像手段および距離検出手段
のワーク表面に対する距離が所定距離となるように第2
変位手段を付勢することを特徴とする。
In order to achieve the above-mentioned object, the present invention compares preset character data with image information of the character imprinted on the surface of the work, and A character determination device for determining pass / fail of size, thickness, etc., which is an image pickup means for picking up an image of a marked character, and a distance detecting means for detecting a distance between the surface of a work on which the character is marked and the image pickup means. A first displacing means for displacing the imaging means and the distance detecting means and the surface of the work relatively parallel to each other at a predetermined distance, and the imaging means and the distance detecting means on the surface of the work. A second displacing means for moving toward or away from the work surface of the image pickup means and the distance detecting means when the distance detected by the distance detecting means is different from a predetermined distance set in advance. Against As the distance is a predetermined distance second
It is characterized in that the displacement means is biased.

【0007】[0007]

【作用】本発明に係る文字判定装置では、第1変位手段
によってワークに刻印された文字上に撮像手段が位置決
めされる。その際、距離検出手段によって前記ワークの
表面との距離を検出し、前記距離が所定の値になるよう
に第2変位手段によって撮像手段を所定位置まで変位さ
せる。したがって、撮像手段によって撮影される刻印文
字は、どの文字も一定の距離で撮像され、刻印された文
字が適当な大きさなのに誤って不適当な大きさであると
判定されることを阻止でき、精度良く判定できる。
In the character determining apparatus according to the present invention, the image pickup means is positioned on the character imprinted on the work by the first displacement means. At that time, the distance detecting means detects the distance from the surface of the work, and the second displacing means displaces the imaging means to a predetermined position so that the distance becomes a predetermined value. Therefore, it is possible to prevent any imprinted character imaged by the imaging means from being imaged at a fixed distance and erroneously determining that the imprinted character is improper in size, It can be determined accurately.

【0008】[0008]

【実施例】本発明に係る文字判定装置について、好適な
実施例を挙げ、添付の図面を参照しながら以下詳細に説
明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A character determining apparatus according to the present invention will be described in detail below with reference to the accompanying drawings, with reference to the preferred embodiments.

【0009】図1は本発明の文字判定装置が適用される
一実施例の主要構成を示すブロック図であり、ワークと
しての金属板上に刻印された文字の良否を判定する場合
を例に説明する。
FIG. 1 is a block diagram showing the main construction of an embodiment to which the character judging device of the present invention is applied, and an example of judging the quality of a character imprinted on a metal plate as a work will be described. To do.

【0010】図1において、符号10は本発明にかかる
文字判定装置を示している。文字判定装置10は被判定
文字が刻印された金属板12が表面の所定位置に着脱自
在に装着されるベース14と、被判定文字を撮像するた
めに被判定文字列に対向する位置に設けられたCCDカ
メラ16と、前記CCDカメラ16と前記金属板12と
の距離をレーザー光線によって測定する距離センサ18
と、金属板12に刻印された被判定文字列を形成する各
被判定文字を1字ずつ順次読み取るために前記距離セン
サ18の出力に基づいてCCDカメラ16の位置を制御
するシーケンサ20と、CCDカメラ16によって読み
取った被判定文字の画像信号を受けて被判定文字の良否
を判定する画像処理部22とから基本的に構成されてい
る。
In FIG. 1, reference numeral 10 indicates a character determination device according to the present invention. The character determination device 10 is provided at a position where a metal plate 12 engraved with a character to be determined is detachably attached to a predetermined position on the surface and a position facing a character string to be determined in order to image the character to be determined. And a distance sensor 18 for measuring the distance between the CCD camera 16 and the metal plate 12 with a laser beam.
A sequencer 20 for controlling the position of the CCD camera 16 based on the output of the distance sensor 18 in order to sequentially read each character to be judged forming a character string to be marked engraved on the metal plate 12, and a CCD The image processing unit 22 basically receives an image signal of the character to be judged read by the camera 16 and judges the quality of the character to be judged.

【0011】前記CCDカメラ16および距離センサ1
8は支持部材24に装着されている。前記支持部材24
は被判定文字列の方向(以下、X方向という)に移動可
能に装着されるガイド部材26と、CCDカメラ16と
金属板12の表面との距離を変更させるために金属板1
2の延在方向と直交する方向(以下、Z方向という)に
ガイド部材26を進退させるボールねじ28とによって
X方向およびZ方向に変位可能に構成されている。前記
距離センサ18は、その出力に基づいて金属板12の表
面とCCDカメラ16との距離を検出する距離演算部3
0に接続される。CCDカメラ16は、その被判定文字
の画像情報から被判定文字が正確に刻印されているか否
かを判定する画像処理部22に接続される。前記画像処
理部22は判定基準データを記憶し、判定結果が出力さ
れる演算処理部32に接続している。前記距離演算部3
0と演算処理部32がシーケンサ20に接続され、その
出力情報に基づいて支持部材24およびボールねじ28
を駆動して所定位置に支持部材24を変位させる。な
お、シーケンサ20は、外部入力装置33とも接続され
ている。
The CCD camera 16 and the distance sensor 1
8 is attached to the support member 24. The support member 24
Is a metal plate 1 for changing the distance between the guide member 26 movably mounted in the direction of the character string to be judged (hereinafter referred to as X direction) and the CCD camera 16 and the surface of the metal plate 12.
It is configured to be displaceable in the X direction and the Z direction by a ball screw 28 that advances and retracts the guide member 26 in a direction orthogonal to the extending direction of 2 (hereinafter referred to as the Z direction). The distance sensor 18 detects the distance between the surface of the metal plate 12 and the CCD camera 16 based on the output of the distance sensor 18.
Connected to 0. The CCD camera 16 is connected to an image processing unit 22 which determines whether or not the character to be judged is accurately marked based on the image information of the character to be judged. The image processing unit 22 stores the determination reference data and is connected to the arithmetic processing unit 32 that outputs the determination result. The distance calculator 3
0 and the arithmetic processing unit 32 are connected to the sequencer 20, and based on the output information thereof, the support member 24 and the ball screw 28.
Is driven to displace the support member 24 to a predetermined position. The sequencer 20 is also connected to the external input device 33.

【0012】ところで、CCDカメラ16と距離センサ
18とは、支持部材24においてX方向に被判定文字列
の一文字間隔分離間して設置されている。したがって、
CCDカメラ16がある被判定文字を撮像中に距離セン
サ18は次の被判定文字部分の金属板12との距離を検
出することができる。
By the way, the CCD camera 16 and the distance sensor 18 are installed on the support member 24 in the X direction with one character space between them being separated. Therefore,
While the CCD camera 16 is picking up an image of a character to be judged, the distance sensor 18 can detect the distance of the next character to be judged from the metal plate 12.

【0013】演算処理部32は、内部に基準文字データ
情報メモリ34を備えるとともに、外部のホストコンピ
ュータ35に接続されている。前記基準文字データ情報
メモリ34には、被判定文字に対応する基準文字の線画
データ、文字の大きさに対応する範囲情報、ステンシル
による印字と同形状の基準文字パターンにおける分割点
数情報、細線化された基準文字における端部の数である
端点数情報、細線化された基準文字における直線および
曲線との接点数である分岐点数情報、基準文字に対する
許容差分情報および基準文字の所定部位に設けられたウ
インドウ内の太さを含む文字太さ情報が格納されてい
る。
The arithmetic processing section 32 has a reference character data information memory 34 inside and is connected to an external host computer 35. In the reference character data information memory 34, line drawing data of the reference character corresponding to the character to be determined, range information corresponding to the size of the character, division point information in the reference character pattern having the same shape as the stencil printing, and thinning. The number of end points that is the number of ends in the reference character, the number of branch points that is the number of contact points with straight lines and curves in the thinned reference character, the allowable difference information for the reference character, and the reference character Character thickness information including the thickness in the window is stored.

【0014】画像処理部22には、図2に示すように、
被判定文字に対する文字範囲情報が規定する範囲の外に
出る被判定文字画像データを除去する範囲外除去回路3
6、被判定文字の大きさが所定範囲内であるか否かを判
定する大きさ判定回路38、被判定文字の傾きが所定範
囲内であるか否かを判定する傾き判定回路40、被判定
文字の分割数が所定数か否かを判定する分割数判定回路
42、被判定文字の画像データを2値化する2値化回路
44、2値化データに基づいて被判定文字を細線化する
細線化回路46、基準文字に対する端点数情報、分岐点
数情報に対応する端点数、分岐点数と細線化された被判
定文字画像の端点数、分岐点数が一致するか否かを判定
する端点数判定回路48、細線化された被判定文字と細
線化された基準文字とを比較する比較回路50、比較回
路50の出力が許容差分範囲内に入っているか否かを判
定する差分判定回路52および被判定文字の太さが所定
範囲に入っているか否かを判定する太さ判定回路54と
を備えている。
In the image processing section 22, as shown in FIG.
Out-of-range removal circuit 3 for removing the determined character image data that goes out of the range defined by the character range information for the determined character
6, a size determination circuit 38 for determining whether the size of the character to be determined is within a predetermined range, an inclination determination circuit 40 for determining whether the inclination of the character to be determined is within a predetermined range, and the determination target A division number determination circuit 42 for determining whether or not the number of divisions of a character is a predetermined number, a binarization circuit 44 for binarizing image data of the determination target character, and thinning the determination target character based on the binarized data. Thinning circuit 46, end point number information for reference characters, end point number corresponding to branch point number information, end point number of branch point number and end point of thinned character image to be judged, and end point number judgment for judging whether or not the branch point number matches A circuit 48, a comparison circuit 50 for comparing the thinned character to be judged with a thinned reference character, a difference judgment circuit 52 for judging whether the output of the comparison circuit 50 is within an allowable difference range, and Judgment character thickness is within the specified range And a thickness determination circuit 54 determines whether.

【0015】以上のように構成した本実施例の作用をプ
ログラムメモリに格納されたプログラムに基づき、図3
および図4のフローチャートにしたがって説明する。
Based on the program stored in the program memory, the operation of the present embodiment configured as described above will be described with reference to FIG.
And it demonstrates according to the flowchart of FIG.

【0016】生産ラインを監視しているホストコンピュ
ータ35からベース14上の所定位置に金属板12が設
置されたとする信号が演算処理部32に伝達される。こ
れによって、シーケンサ20から支持部材24に変位信
号が出力され、被判定文字“A”上に距離センサ18が
位置決めされる。前記距離センサ18によって金属板1
2と距離センサ18の距離がレーザー光線によって検出
され、その信号に基づいて距離演算部30が予め設定さ
れた所定距離との差を検出する。この差に基づいてガイ
ド部材26のZ方向の変位量がシーケンサ20に出力さ
れる。次に、シーケンサ20から支持部材24に被判定
文字列の1文字分変位するような変位信号が導出される
とともに、ボールねじ28に対して前記変位量分だけ回
動するような信号が導出される。この結果、支持部材2
4に装着されたCCDカメラ16は、被判定文字列の方
向に隣接する1文字分だけ駆動されて、金属板12に刻
印された被判定文字の最初の文字位置に対向する位置に
到達する。以下、被判定文字列の最初の被判定文字が
“A”であり、被判定文字“A”の良否を判定する場合
を例に説明する。
A signal indicating that the metal plate 12 is installed at a predetermined position on the base 14 is transmitted from the host computer 35 monitoring the production line to the arithmetic processing section 32. As a result, a displacement signal is output from the sequencer 20 to the support member 24, and the distance sensor 18 is positioned on the character "A" to be judged. By the distance sensor 18, the metal plate 1
The distance between the distance sensor 2 and the distance sensor 18 is detected by the laser beam, and the distance calculation unit 30 detects the difference between the distance and the predetermined distance based on the signal. Based on this difference, the displacement amount of the guide member 26 in the Z direction is output to the sequencer 20. Next, a displacement signal for displacing one character of the character string to be determined is derived from the sequencer 20 to the support member 24, and a signal for rotating the ball screw 28 by the displacement amount is derived. It As a result, the support member 2
The CCD camera 16 mounted on the No. 4 is driven by one character adjacent in the direction of the character string to be judged, and reaches a position facing the first character position of the character to be marked imprinted on the metal plate 12. Hereinafter, a case where the first character to be judged in the character string to be judged is “A” and the quality of the character “A” to be judged is judged will be described as an example.

【0017】上記の位置に設定されたCCDカメラ16
によって被判定文字“A”が撮像されて、撮像に基づく
画像情報が被判定文字画像データとして読み込まれ、作
業領域に格納される(ステップS1)。ここで、被判定
文字“A”は図5に示す如くであって、破線部分が欠落
しているものとする。ステップS1に続いて、CCDカ
メラ16から出力される被判定文字画像データに対して
スムージング処理などの前処理がなされて、雑音が除去
され(ステップS2)、続いて文字範囲情報が基準文字
データ情報メモリ34から読み出されて、文字範囲情報
によって指示された文字範囲の外となる被判定文字画像
データ部分が除去される(ステップS3)。ステップS
3の実行によって被判定文字に対して定められた範囲の
外となる被判定文字画像データは除去される。
The CCD camera 16 set at the above position
The character “A” to be judged is picked up by, the image information based on the picked-up image is read as judged character image data, and stored in the work area (step S1). Here, it is assumed that the character “A” to be judged is as shown in FIG. 5 and the broken line portion is missing. Following step S1, the judgment character image data output from the CCD camera 16 is subjected to preprocessing such as smoothing to remove noise (step S2), and subsequently the character range information is set to the reference character data information. The judged character image data portion which is read from the memory 34 and is outside the character range designated by the character range information is removed (step S3). Step S
By execution of 3, the judged character image data which is outside the range defined for the judged character is removed.

【0018】そこで、図5に示すように、前記文字範囲
内の被判定文字データにおいて被判定文字に外接する矩
形体(実線参照)を設定し、これを基準文字データ情報
メモリ34の文字サイズ情報に設定されている矩形体と
比較し、当該被判定文字の大きさが所定範囲内であるか
否かを判定する(ステップS4)。所定範囲外であれば
不良と判定される(ステップS5)。ステップS4にお
いて所定範囲内であれば、続いて、画像データのフレー
ムに平行なX方向、Y方向に沿った被判定文字に外接す
る矩形体(二点鎖線参照)との傾斜角αが所定範囲内で
あるか否かを判定する(ステップS6)。所定範囲外で
あれば不良と判定される(ステップS7)。傾斜角αが
所定範囲外であるときは、被判定文字の打刻時に文字が
傾斜して刻印された場合である。
Therefore, as shown in FIG. 5, a rectangular body (see the solid line) circumscribing the character to be judged is set in the character data to be judged within the character range, and this is used as the character size information of the reference character data information memory 34. It is determined whether or not the size of the character to be judged is within a predetermined range by comparing it with the rectangular body set in (step S4). If it is outside the predetermined range, it is determined to be defective (step S5). If it is within the predetermined range in step S4, subsequently, the inclination angle α with the rectangular body (see the chain double-dashed line) circumscribing the character to be judged along the X direction and the Y direction parallel to the frame of the image data is within the predetermined range. It is determined whether it is within (step S6). If it is outside the predetermined range, it is determined to be defective (step S7). When the inclination angle α is outside the predetermined range, it means that the character is inclined and engraved when the character to be judged is embossed.

【0019】ステップS6に続いて、被判定文字に対応
する基準文字パターンの分割点数情報、端点数情報およ
び分岐点数情報が基準文字データ情報メモリ34から読
み出されて、一旦作業領域に格納される(ステップS
8)。本例の基準文字に対しては図6(b)に示すよう
に端点数は3個(P1、P4、P5)、分岐点数は3個
(P2、P3、P6)である。
Subsequent to step S6, division point number information, end point number information and branch point number information of the reference character pattern corresponding to the character to be judged are read from the reference character data information memory 34 and temporarily stored in the work area. (Step S
8). As shown in FIG. 6B, the reference character of this example has three end points (P1, P4, P5) and three branch points (P2, P3, P6).

【0020】ステップS8において読み出された基準文
字データに対応する基準文字画像の分割数が被判定文字
画像データに対応する被判定文字画像の分割数に一致す
るか否かがチェックされる(ステップS9)。ここで、
被判定文字画像の分割数をチェックするのは打刻に使用
される刻印底面の文字がステンシルによって刷り込まれ
たのと同様の文字形状であることを想定しており、そう
でなければステップS8およびステップS9を省略して
も差し支えない。
It is checked whether the division number of the reference character image corresponding to the reference character data read in step S8 matches the division number of the determined character image corresponding to the determined character image data (step S8). S9). here,
It is assumed that the number of divisions of the character image to be judged is checked if the character on the bottom surface of the stamp used for embossing has the same character shape as that imprinted by the stencil, otherwise, step S8 and There is no problem even if step S9 is omitted.

【0021】ステップS9において分割点数が一致しな
いと判別されたときは被判定文字が不良と判定される
(ステップS10)。通常、分割点数が一致しないとき
は被判定文字に切れがある場合、あるいは誤った被判定
文字を打刻した場合である。ステップS9において分割
数が一致したと判別されたときは、ステップS9に続
き、被判定文字画像データが2値化処理され(ステップ
S11)、2値化処理された被判定文字画像データは細
線化処理される(ステップS12)。ここで、細線化処
理するのは被判定文字における端点数、分岐点数を検出
するためである。
If it is determined in step S9 that the division scores do not match, the character to be determined is determined to be defective (step S10). Usually, when the divided points do not match, it means that there is a break in the character to be judged, or when the wrong character to be judged is imprinted. When it is determined in step S9 that the number of divisions is the same, the judgment character image data is binarized (step S11) following step S9, and the binarized judgment character image data is thinned. It is processed (step S12). Here, the thinning process is performed to detect the number of end points and the number of branch points in the character to be determined.

【0022】ステップS12に続いて細線化された被判
定文字画像データに基づく被判定文字画像の端点数と基
準文字画像の端点数とが一致するか否かおよび細線化さ
れた被判定文字画像データに基づく被判定文字画像の分
岐点数と基準文字画像の分岐点数とが一致するか否かが
チェックされる(ステップS13)。
Following step S12, whether or not the number of end points of the character image to be judged based on the thinned character image data and the number of end points of the reference character image match, and the thinned character image data It is checked whether or not the number of branch points of the character image to be determined based on the above-mentioned number and the number of branch points of the reference character image match (step S13).

【0023】ステップS13において端点数または分岐
点数が一致しないと判別されたときは被判定文字は不良
と判定される(ステップS14)。端点数、または分岐
点数が一致しないときは、通常刻印底面のきずなどによ
る被判定文字の一部が欠けている場合である。
When it is determined in step S13 that the number of end points or the number of branch points do not match, the character to be determined is determined to be defective (step S14). When the number of end points or the number of branch points do not match, it is usually the case where a part of the character to be judged is missing due to a flaw on the bottom surface of the marking.

【0024】ステップS13において端点数および分岐
点数が一致すると判別されたときは、図6(b)の基準
文字の分岐点P2、P3、P6および端点P5によって
囲まれた部分に対応する被判定文字の部分を塗りつぶす
塗りつぶし処理が行われる(ステップS15)。ステッ
プS15に続いて、基準文字データが線画化され、描画
化される(ステップS16)。線画化され、描画化され
た標準文字は模式的に示せば図6(b)に示す如くであ
る。ステップS16に続いてステップS1において撮像
した被判定文字画像データに基づく被判定文字画像と、
線画化され、描画化された基準文字画像とが論理積演算
される(図6参照)(ステップS17)。ここで、塗り
つぶし処理によって被判定文字画像の一部が塗りつぶさ
れているために、論理積演算を行うときにおける位相合
わせが容易となる。
When it is determined in step S13 that the number of end points and the number of branch points are the same, the character to be judged corresponding to the portion surrounded by the branch points P2, P3, P6 and the end point P5 of the reference character in FIG. 6 (b). Filling processing is performed to fill in the portion (step S15). Following step S15, the reference character data is line-drawn and rendered (step S16). The standard characters that have been line-drawn and rendered are as shown in FIG. A determined character image based on the determined character image data captured in step S1 subsequent to step S16;
A logical product operation is performed on the reference character image that has been line-drawn and rendered (see FIG. 6) (step S17). Here, since a part of the character image to be determined is filled by the filling process, the phase matching when performing the AND operation becomes easy.

【0025】ステップS17における論理積演算の結果
は図6(c)に示す如くである。ステップS17に続い
て論理演算結果(図7(b)参照)が、線画化され、描
画化された基準文字画像(図7(a)参照)から減算さ
れて、両者の差分(図7(c)参照)が検出される(ス
テップS18)。ステップS18において検出された差
分によって、被判定文字が基準文字に対して許容差分内
であるか否かがチェックされる(ステップS19)。
The result of the logical product operation in step S17 is as shown in FIG. 6 (c). Subsequent to step S17, the logical operation result (see FIG. 7B) is subtracted from the reference character image (see FIG. 7A) that has been line-drawn and rendered, and the difference between the two (see FIG. 7C). )) Is detected (step S18). Based on the difference detected in step S18, it is checked whether the character to be judged is within the allowable difference with respect to the reference character (step S19).

【0026】ステップS19において検出された差分が
許容差分の範囲外であるときは被判定文字が不良と判別
される(ステップS20)。ステップS20において不
良と判別されるときは、打刻文字に欠けがあり、その欠
けが許容範囲を超えて大きい場合である。ステップS1
8において検出された差分が許容差分の範囲内であると
判別されたときは、ステップS19に続いてウインドウ
による文字の太さ判定ルーチンが実行される。
When the difference detected in step S19 is out of the allowable difference range, the character to be judged is judged to be defective (step S20). When it is determined to be defective in step S20, there is a chip in the embossed character, and the chip is larger than the allowable range. Step S1
When it is determined that the difference detected in 8 is within the range of the allowable difference, the window character thickness determination routine is executed subsequent to step S19.

【0027】基準文字データ情報メモリ34に格納され
ているウインドウを含む文字太さ情報は、打刻時に力の
かかる部分について格納されていて、例えば図8に示す
ように、端点および分岐点を含む部分について格納され
ている。
The character thickness information including the window, which is stored in the reference character data information memory 34, is stored for a portion to which force is applied during embossing, and includes, for example, end points and branch points as shown in FIG. Stored for parts.

【0028】文字の太さ判定ルーチンに入れば、ウイン
ドウの一つが選択され、選択されたウインドウに対応す
る被判定文字画像の部分の太さが所定範囲内か否かがチ
ェックされる(ステップS21、S22)。ここで、ウ
インドウW1、W4に対しては横方向の太さが、ウイン
ドウW5に対しては縦方向の太さが、ウインドウW2に
対しては縦方向および横方向の太さがそれぞれチェック
される。
If the character thickness determination routine is entered, one of the windows is selected, and it is checked whether the thickness of the portion of the character image to be determined corresponding to the selected window is within a predetermined range (step S21). , S22). Here, the horizontal thickness is checked for the windows W1 and W4, the vertical thickness is checked for the window W5, and the vertical and horizontal thicknesses are checked for the window W2. .

【0029】ステップS22において、該ウインドウに
対して文字の太さが所定範囲内でないと判別されたとき
は、被判定文字は不良と判別される(ステップS2
3)。ステップS23において不良とされた場合は被判
定文字がかすれているような場合である。
If it is determined in step S22 that the thickness of the character in the window is not within the predetermined range, the character to be determined is determined to be defective (step S2).
3). If the judgment result in step S23 is defective, it means that the character to be judged is faint.

【0030】そして、全ウインドウにわたって選択され
るまで、ステップS21およびステップS22が実行さ
れ、全ウインドウにわたって選択されたときは被判定文
字が不良でないと判別される(ステップS24)。
Then, steps S21 and S22 are executed until all windows are selected, and when selected over all windows, it is determined that the character to be judged is not defective (step S24).

【0031】なお、この一連の画像処理中、距離センサ
18は被判定文字“A”に隣接する被判定文字“7”上
に位置しており、前記被判定文字“7”が刻印された金
属板12の表面と前記距離センサ18との距離を検出し
ている。
During the series of image processing, the distance sensor 18 is located on the character "7" to be judged adjacent to the character "A" to be judged, and the metal to which the character "7" is marked is engraved. The distance between the surface of the plate 12 and the distance sensor 18 is detected.

【0032】したがって、ステップS24の実行におい
て被判定文字“A”が不良でないと判別された場合に
は、シーケンサ20からボールねじ28および支持部材
24に変位信号が導出され、被判定文字“7”に対応す
る位置にCCDカメラ16が駆動されて、次の被判定文
字の良否が最初の文字の場合と同様に、その良否が判定
される。
Therefore, if it is determined in step S24 that the character "A" to be judged is not defective, a displacement signal is derived from the sequencer 20 to the ball screw 28 and the support member 24, and the character "7" to be judged. The CCD camera 16 is driven to the position corresponding to, and the quality of the next character to be judged is judged as in the case of the first character.

【0033】すなわち、文字判定装置10では、図9に
示すように、被判定文字が刻印された金属板12の表面
が波状に歪んで形成されていたとしても、距離センサ1
8によって被判定文字が刻印された部分の金属板12の
表面との距離を検出し、ボールねじ28の回動によって
支持部材24をZ方向に変位させて所定距離に調節す
る。例えば、金属板12の表面が図9に示すようになっ
ていれば、支持部材24が下方向に変位されてCCDカ
メラ16と被判定文字“7”の部分における前記金属板
12の表面との間は所定距離に維持される。
That is, in the character judging device 10, as shown in FIG. 9, even if the surface of the metal plate 12 on which the character to be judged is engraved is formed in a wavy shape, the distance sensor 1
The distance from the surface of the metal plate 12 where the character to be judged is engraved is detected by 8, and the support member 24 is displaced in the Z direction by the rotation of the ball screw 28 and adjusted to a predetermined distance. For example, if the surface of the metal plate 12 is as shown in FIG. 9, the supporting member 24 is displaced downward so that the CCD camera 16 and the surface of the metal plate 12 in the portion of the character "7" to be judged are separated. The distance is maintained at a predetermined distance.

【0034】この結果、被判定文字の判定において、被
判定文字の大きさや太さ等を検出する場合に、金属板1
2の表面とCCDカメラ16との距離が被判定文字毎に
異なって、撮像される被判定文字の大きさが異なり、そ
れが判定結果に影響を及ぼすおそれがない。したがっ
て、精度良く被判定文字の良否を判定できる。
As a result, the metal plate 1 is used when the size and thickness of the character to be judged are detected in the judgment of the character to be judged.
The distance between the surface of 2 and the CCD camera 16 differs for each character to be judged, and the size of the character to be imaged differs, which does not affect the judgment result. Therefore, the quality of the character to be judged can be accurately judged.

【0035】[0035]

【発明の効果】本発明に係る文字判定装置によれば、以
下の効果が得られる。
According to the character determining device of the present invention, the following effects can be obtained.

【0036】すなわち、第1変位手段によってワークに
刻印された文字上に撮像手段が位置決めされる。その
際、距離検出手段によって前記ワークの表面との距離を
検出し、前記距離が所定の値になるように第2変位手段
によって撮像手段を所定位置まで変位させる。したがっ
て、撮像手段によって撮影される刻印文字は、どの文字
も一定の距離で撮像され、刻印された文字が適当な大き
さなのに誤って不適当な大きさであると判定されること
を阻止でき、精度良く判定できる。
That is, the image pickup means is positioned on the character imprinted on the work by the first displacement means. At that time, the distance detecting means detects the distance from the surface of the work, and the second displacing means displaces the imaging means to a predetermined position so that the distance becomes a predetermined value. Therefore, it is possible to prevent any imprinted character imaged by the imaging means from being imaged at a fixed distance and erroneously determining that the imprinted character is improper in size, It can be determined accurately.

【0037】しかも、撮像手段であるCCDカメラと距
離検出手段である距離センサとが、判定される文字列の
隣接する文字間隔に対応する距離離間されて構成されて
いるため、ある文字をCCDカメラで撮像中に、次に判
定される文字に対して距離センサでワークの表面との距
離を検出しておくことができ、効率的に判定ができる。
Moreover, since the CCD camera which is the image pickup means and the distance sensor which is the distance detection means are formed so as to be spaced apart from each other by the distance corresponding to the adjacent character of the character string to be judged, a certain character is read by the CCD camera. During the image pickup, the distance to the surface of the work can be detected by the distance sensor for the character to be determined next, and the determination can be performed efficiently.

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

【図1】本発明に係る文字判定装置の概略構成図であ
る。
FIG. 1 is a schematic configuration diagram of a character determination device according to the present invention.

【図2】本発明に係る文字判定装置の要部構成図であ
る。
FIG. 2 is a main part configuration diagram of a character determination device according to the present invention.

【図3】本発明に係る文字判定装置の画像処理方法を示
すフローチャートである。
FIG. 3 is a flowchart showing an image processing method of the character determination device according to the present invention.

【図4】本発明に係る文字判定装置の画像処理方法を示
すフローチャートである。
FIG. 4 is a flowchart showing an image processing method of the character determination device according to the present invention.

【図5】本発明に係る文字判定装置における文字の大き
さおよび文字の傾きを検出するための方法を示す図であ
る。
FIG. 5 is a diagram showing a method for detecting a character size and a character inclination in the character determination device according to the present invention.

【図6】本発明に係る文字判定装置で行われる文字判定
方法を示す説明図である。
FIG. 6 is an explanatory diagram showing a character determination method performed by the character determination device according to the present invention.

【図7】本発明に係る文字判定装置で行われる文字判定
方法を示す説明図である。
FIG. 7 is an explanatory diagram showing a character determination method performed by the character determination device according to the present invention.

【図8】本発明に係る文字判定装置におけるウインドウ
の設定の説明図である。
FIG. 8 is an explanatory diagram of setting windows in the character determination device according to the present invention.

【図9】本発明に係る文字判定装置における金属板の表
面形状の説明図である。
FIG. 9 is an explanatory diagram of a surface shape of a metal plate in the character determination device according to the present invention.

【符号の説明】[Explanation of symbols]

10…文字判定装置 12…金属板 16…CCDカメラ 18…距離セン
サ 20…シーケンサ 22…画像処理
部 24…支持部材 26…ガイド部
材 28…ボールねじ 30…距離演算
10 ... Character determination device 12 ... Metal plate 16 ... CCD camera 18 ... Distance sensor 20 ... Sequencer 22 ... Image processing unit 24 ... Support member 26 ... Guide member 28 ... Ball screw 30 ... Distance calculation unit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 市川 茂 埼玉県狭山市新狭山1−10−1 本田技研 工業株式会社埼玉製作所狭山工場内 (72)発明者 藤田 敏信 埼玉県狭山市新狭山1−10−1 本田技研 工業株式会社埼玉製作所狭山工場内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Shigeru Ichikawa 1-10-1 Shin-Sayama, Sayama-shi, Saitama Prefecture Inside the Sayama Plant, Saitama Works, Honda Motor Co., Ltd. 10-1 Honda Motor Co., Ltd. Saitama Plant Sayama Factory

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】予め設定された文字データとワークの表面
に刻印された文字の画像情報とを比較して刻印された文
字の大きさ、太さ等の良否を判定する文字判定装置であ
って、 刻印された文字を撮像する撮像手段と、 文字が刻印されたワークの表面と前記撮像手段との距離
を検出する距離検出手段と、 前記撮像手段および前記距離検出手段と前記ワークの表
面とを相対的に且つ平行に所定間隔離間して変位させる
第1変位手段と、 前記撮像手段と前記距離検出手段とを前記ワークの表面
に対して接近、あるいは離間させる第2変位手段と、 を備え、前記距離検出手段で検出された距離が予め設定
された所定距離と異なる場合には、前記撮像手段および
距離検出手段のワーク表面に対する距離が所定距離とな
るように第2変位手段を付勢することを特徴とする文字
判定装置。
1. A character determination device which compares preset character data with image information of a character imprinted on the surface of a work and judges the quality, such as size and thickness of the imprinted character. An image pickup means for picking up the imprinted characters, a distance detecting means for detecting a distance between the surface of the work on which the characters are imprinted and the image pickup means, and the image pickup means, the distance detecting means and the surface of the work. A first displacing means for relatively and parallelly displacing at a predetermined distance from each other, and a second displacing means for moving the image pickup means and the distance detecting means toward or away from the surface of the work, When the distance detected by the distance detecting means is different from a predetermined distance set in advance, the second displacement means is biased so that the distance between the imaging means and the distance detecting means with respect to the work surface becomes the predetermined distance. Character determination apparatus characterized and.
【請求項2】請求項1記載の装置において、撮像手段は
CCDカメラを含み、距離検出手段は距離センサを含
み、前記CCDカメラと距離センサとは判定される文字
列の文字間隔に対応した距離に離間されていることを特
徴とする文字判定装置。
2. The apparatus according to claim 1, wherein the image pickup means includes a CCD camera, the distance detection means includes a distance sensor, and the CCD camera and the distance sensor correspond to a character interval of a character string to be determined. A character determination device characterized by being separated from each other.
JP5218676A 1993-09-02 1993-09-02 Character judgment device Expired - Fee Related JP3062376B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5218676A JP3062376B2 (en) 1993-09-02 1993-09-02 Character judgment device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5218676A JP3062376B2 (en) 1993-09-02 1993-09-02 Character judgment device

Publications (2)

Publication Number Publication Date
JPH0773323A true JPH0773323A (en) 1995-03-17
JP3062376B2 JP3062376B2 (en) 2000-07-10

Family

ID=16723680

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5218676A Expired - Fee Related JP3062376B2 (en) 1993-09-02 1993-09-02 Character judgment device

Country Status (1)

Country Link
JP (1) JP3062376B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015210541A (en) * 2014-04-23 2015-11-24 株式会社キーエンス Portable optical reader, optical reading method using portable optical reader, and computer program
CN109872310A (en) * 2019-02-01 2019-06-11 东莞中科蓝海智能视觉科技有限公司 Workpiece thread cast-off and face character angle detecting recognition methods

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015210541A (en) * 2014-04-23 2015-11-24 株式会社キーエンス Portable optical reader, optical reading method using portable optical reader, and computer program
CN109872310A (en) * 2019-02-01 2019-06-11 东莞中科蓝海智能视觉科技有限公司 Workpiece thread cast-off and face character angle detecting recognition methods

Also Published As

Publication number Publication date
JP3062376B2 (en) 2000-07-10

Similar Documents

Publication Publication Date Title
JP2733206B2 (en) Method and apparatus for correcting distortion in an automatic optical inspection device for printed circuit boards
EP3264181B1 (en) Substrate pre-alignment method
JPH0773323A (en) Character judging device
JPH1117400A (en) Packaging part/inspecting device
JPH03201454A (en) Aligning method for semiconductor device
JP2000200355A (en) Production of check program for cream solder print checking machine
JP2004118467A (en) Member inclination recognizing method, member inclination recognition control program, readable recording medium, and shape recognizing device
JPH095022A (en) Pattern position detecting method and apparatus by image recognition
JP3400859B2 (en) Defect pattern detection method and device
JPH0612249B2 (en) Pattern inspection device
JP2006112930A (en) Object-shape discriminating method and apparatus
JP2640400B2 (en) Dimension calculation device for plate by image processing
JP2640401B2 (en) Dimension calculation device for plate by image processing
JP2879357B2 (en) Shape judgment method
JP2966704B2 (en) Character quality judgment method and device
JP3153627B2 (en) Pattern confirmation method
JP2974788B2 (en) Pattern position detection method
JPH0130183B2 (en)
JPH01406A (en) Sample shape measuring device
JP2639870B2 (en) Dimension measurement method of plate-like body by image processing
JPS62140185A (en) Method and apparatus for deciding validity/invalidity of work
JP2696737B2 (en) Dimension measurement system for plate-like objects by image processing
JPS6166908A (en) Detecting method of ic lead
CN116105608A (en) Assembly precision detection method based on laser ranging and machine vision
EP0265703B1 (en) Method for the automatic inspection of channelled panels

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080428

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090428

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090428

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100428

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees