JPH08320931A - Method and device for inspecting character - Google Patents

Method and device for inspecting character

Info

Publication number
JPH08320931A
JPH08320931A JP7126108A JP12610895A JPH08320931A JP H08320931 A JPH08320931 A JP H08320931A JP 7126108 A JP7126108 A JP 7126108A JP 12610895 A JP12610895 A JP 12610895A JP H08320931 A JPH08320931 A JP H08320931A
Authority
JP
Japan
Prior art keywords
character
weighting
value
coincidence
degree
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.)
Withdrawn
Application number
JP7126108A
Other languages
Japanese (ja)
Inventor
Toshimichi Shimizu
利通 清水
Kazuyuki Tanaka
一幸 田中
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.)
Taiyo Yuden Co Ltd
Original Assignee
Taiyo Yuden 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 Taiyo Yuden Co Ltd filed Critical Taiyo Yuden Co Ltd
Priority to JP7126108A priority Critical patent/JPH08320931A/en
Publication of JPH08320931A publication Critical patent/JPH08320931A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Character Input (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE: To automatically execute inspection approximate to human decision by finding out the matching degree of each pixel value based upon the weight of each area in a divided matrix-like character and comparing the matching degree with a prescribed reference value to judge the quality of the character. CONSTITUTION: A picture processing operation part 1 divides a character in each character sort to be added to an electronic parts 6 into a matrix consisting of the prescribed number of areas and applies weight for checking the existence of a character to each area. Then a display character on the electronic parts 6 is photographed by a video camera 4 as a picture constituted of plural pixels, the range of the displayed character is detected from the photographed picture, the character in the range is segmented and the segmented character is divided like a matrix. After finding out the matching degree of each picture element value based upon the weight of each area of the matrix, the matching degree is compared with a prescribed reference value to judge the quality of the character.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、チップ抵抗器をはじめ
とする電子部品の捺印などの文字検査で良品・不良品を
自動検査する文字検査方法及びその装置に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character inspection method and apparatus for automatically inspecting good products and defective products by character inspection such as marking of electronic parts such as chip resistors.

【0002】[0002]

【従来の技術】従来、電子部品に負荷された文字の自動
検査は、ビデオカメラによって電子部品の表示文字を撮
像し、この撮像によって得られた画像に基づいて、各文
字の面積や重心を計測して文字の有り無しやずれ、一部
欠落の判定をしたり、各文字の特徴量により文字の種類
の判定をしていた。
2. Description of the Related Art Conventionally, in the automatic inspection of characters loaded on electronic parts, a video camera images a displayed character of the electronic part, and the area and the center of gravity of each character are measured based on the image obtained by this imaging. Then, the presence / absence of a character, misalignment, and partial omission are determined, and the type of character is determined based on the feature amount of each character.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、電子部
品に負荷された文字の場合、多少の欠陥があっても人間
が判別できる程度であれば良品の範囲内であったが、従
来の技術では、人間が判別できる程度という曖昧な判定
が困難であった。また、良品サンプルと少しでも異なる
ものを不良品と判定することはできても、人間が判別で
きる程度の欠陥であり、良品の範囲内であっても不良品
と判定してしまうことが多々あった。さらに、人間が判
別できる程度の欠陥があるものを良品に判定しようとす
ると、文字の種類によっては、不良品を良品と誤判定し
てしまうという問題点があった。
However, in the case of a character loaded on an electronic component, it is within the range of a non-defective item as long as it can be discriminated by a human even if there are some defects. It was difficult to make an ambiguous judgment that humans can distinguish it. In addition, even if it is possible to determine a product that is slightly different from the non-defective sample as a defective product, it is a defect that can be discriminated by humans, and even within the range of a non-defective product, it is often determined as a defective product. It was Further, when trying to determine a defective product that can be discriminated by humans as a non-defective product, there is a problem that a defective product may be erroneously determined as a non-defective product depending on the type of character.

【0004】本発明の目的は上記の問題点に鑑み、人間
の判定に近い検査を自動で行うことができる文字検査方
法及びその装置を提供することにある。
SUMMARY OF THE INVENTION In view of the above problems, an object of the present invention is to provide a character inspection method and apparatus capable of automatically performing an inspection close to human judgment.

【0005】[0005]

【課題を解決するための手段】本発明は上記の目的を達
成するために請求項1では、電子部品の表面に付加され
た文字の良否を検査する文字検査方法であって、前記電
子部品に付加する文字種毎に、該文字を所定数の領域か
らなるマトリクス状に分割し、該分割したそれぞれの領
域毎に文字の存在の有無に関する重み付けを行ってお
き、複数の画素から構成される画像として前記電子部品
の表示文字を撮像し、該画像から前記表示文字の範囲を
検出すると共に、各文字毎に切り出し、該切り出した文
字を前記所定数の領域からなるマトリクス状に分割し、
該マトリクスの各領域毎の前記重み付けに基づいて、各
画素の値に関する一致度を求め、該一致度と所定の基準
値とを比較することによって文字の良否を判定する文字
検査方法を提案する。
In order to achieve the above object, the present invention provides a character inspection method for inspecting the quality of characters added to the surface of an electronic component according to claim 1, wherein the electronic component is For each character type to be added, the character is divided into a matrix of a predetermined number of areas, and the presence or absence of the character is weighted for each of the divided areas, and an image composed of a plurality of pixels is created. Capturing a display character of the electronic component, detecting the range of the display character from the image, cutting out for each character, dividing the cut out character into a matrix consisting of the predetermined number of regions,
A character inspection method is proposed in which the degree of coincidence regarding the value of each pixel is obtained based on the weighting for each area of the matrix, and whether the character is good or bad is determined by comparing the degree of coincidence with a predetermined reference value.

【0006】また、請求項2では、請求項1記載の文字
検査方法において、前記画素の値を文字の有無に基づい
て二値化し、該値と前記重み付けが一致したときに前記
一致度の値を計数する文字検査方法を提案する。
According to a second aspect of the present invention, in the character inspection method according to the first aspect, the value of the pixel is binarized based on the presence or absence of a character, and when the value and the weighting match, the value of the degree of coincidence is obtained. We propose a character inspection method for counting.

【0007】また、請求項3では、請求項1又は2記載
の文字検査方法において、前記重み付けとして、文字が
存在する、文字が存在しない、及び文字が存在しても存
在しなくてもよいの3種類を設定し、該文字が存在して
も存在しなくてもよいと重み付けされている領域におい
ては、前記一致度の計数を行わない文字検査方法を提案
する。
According to a third aspect of the present invention, in the character inspection method according to the first or second aspect, the weighting may include a character, a character does not exist, or a character may or may not exist. We propose a character inspection method that does not count the degree of coincidence in an area in which three types are set and weighted such that the character may or may not exist.

【0008】また、請求項4では、電子部品の表面に付
加された文字を複数の画素から構成される画像として撮
像し、該画像に基づいて前記文字の良否を判定する文字
検査装置において、前記電子部品に付加する文字種毎
に、該文字を所定数の領域からなるマトリクス状に分割
し、該分割したそれぞれの領域毎に設定された文字の存
在の有無に関する重み付けを記憶する重み付け記憶手段
と、前記画像から前記表示文字の範囲を検出する文字範
囲検出手段と、該検出した文字範囲から各文字を切り出
す文字切り出し手段と、該切り出した文字を前記所定数
の領域からなるマトリクス状に分割する分割手段と、前
記重み付け記憶手段に記憶されている各領域毎の前記重
み付けに基づいて、各画素の値に関する一致度を求める
演算手段と、該一致度と所定の基準値とを比較すること
によって文字の良否を判定する判定手段とを設けた文字
検査装置を提案する。
According to a fourth aspect of the present invention, in the character inspection device, the character added to the surface of the electronic component is imaged as an image composed of a plurality of pixels, and the quality of the character is judged based on the image. Weighting storage means that divides the character into a matrix of a predetermined number of areas for each character type to be added to the electronic component, and stores the weighting regarding the presence or absence of the character set for each of the divided areas, Character range detection means for detecting the range of the displayed characters from the image, character cutout means for cutting out each character from the detected character range, and division for dividing the cutout characters into a matrix consisting of the predetermined number of areas Means for calculating the degree of coincidence with respect to the value of each pixel based on the weighting for each area stored in the weighting storage means, Suggest a character inspection apparatus provided with a determination means for determining acceptability of a character by comparing with a predetermined reference value.

【0009】また、請求項5では、請求項4記載の文字
検査装置において、前記演算手段は、前記画素の値を文
字の有無に基づいて二値化し、該値と前記重み付けが一
致したときに前記一致度の値を計数する文字検査装置を
提案する。
According to a fifth aspect of the present invention, in the character inspection apparatus according to the fourth aspect, the arithmetic means binarizes the pixel value based on the presence or absence of a character, and when the value and the weighting match. A character inspection device for counting the value of the degree of coincidence is proposed.

【0010】また、請求項6では、請求項4又は5記載
の文字検査装置において、前記重み付け記憶手段には重
み付けとして、文字が存在する、文字が存在しない、及
び文字が存在しても存在しなくてもよいの3種類が設定
されていると共に、該文字が存在しても存在しなくても
よいと重み付けされている領域においては、前記演算手
段は前記一致度の計数を行わない文字検査装置を提案す
る。
According to a sixth aspect of the present invention, in the character inspection apparatus according to the fourth or fifth aspect, as the weighting in the weighting storage means, characters are present, characters are not present, and characters are present even if they are present. In the area in which the three types, which do not need to be set, are set, and the weighting is performed so that the character may or may not exist, the calculation means does not count the degree of coincidence. Suggest a device.

【0011】また、請求項7では、請求項4、5、又は
6記載の文字検査装置において、前記電子部品の文字領
域を照明する照明装置を備え、該照明装置は、リング状
の第一の照明器と、2つの平行する直線状の第二の照明
器とからなる文字検査装置を提案する。
According to a seventh aspect of the present invention, in the character inspection apparatus according to the fourth, fifth or sixth aspect, an illuminating device for illuminating a character area of the electronic component is provided, and the illuminating device is a ring-shaped first device. We propose a character inspection device consisting of an illuminator and two parallel linear second illuminators.

【0012】[0012]

【作用】本発明の請求項1によれば、電子部品に付加す
る文字種毎に、該文字が所定数の領域からなるマトリク
ス状に分割され、該分割されたそれぞれの領域毎に文字
の存在の有無に関する重み付けが行われる。このような
設定の後、複数の画素から構成される画像として前記電
子部品の表示文字が撮像され、該画像から前記表示文字
の範囲が検出されると共に、該範囲内の各文字が切り出
され、該切り出された文字は前記所定数の領域からなる
マトリクス状に分割される。次いで、該マトリクスの各
領域毎の前記重み付けに基づいて、各画素の値に関する
一致度が求められた後、該一致度と所定の基準値とが比
較されて文字の良否が判定される。
According to claim 1 of the present invention, for each character type to be added to the electronic component, the character is divided into a matrix of a predetermined number of areas, and the presence of the character in each of the divided areas is determined. Weighting regarding presence / absence is performed. After such a setting, a display character of the electronic component is captured as an image composed of a plurality of pixels, a range of the display character is detected from the image, and each character within the range is cut out, The cut out characters are divided into a matrix of the predetermined number of areas. Then, after the degree of coincidence regarding the value of each pixel is obtained based on the weighting for each area of the matrix, the degree of coincidence is compared with a predetermined reference value to judge the quality of the character.

【0013】例えば、文字種毎に複数の基本パターンが
作製され、この基本パターンと検査する文字とを比較
し、これらが一致する割合で文字の検査が行われる。こ
こで、基本パターンのm×nに分割した各マトリクス内
の構成ドット(画素)に重み付けすることにより、検査
する文字を基本パターンと比較する際に、その部分の画
素が欠落していても該当する文字として判別可能である
か否かを重み付けの値により判定することができる。従
って、文字の基本パターンと検査対象となる文字におい
てm×nのマトリクス全てが一致するか判定するのでは
なく、検査対象となる文字を該当文字として判別するた
めに重要な部分(画素)については、厳重に検査するこ
とが可能となる。よって、該当する文字として判別でき
れば良品の範囲に入るという人間の判定に近い検査をす
ることが可能となる。
For example, a plurality of basic patterns are prepared for each character type, the basic patterns are compared with the characters to be inspected, and the characters are inspected at the rate of coincidence. Here, by weighting the constituent dots (pixels) in each matrix divided into m × n of the basic pattern, even if the pixel of the part is missing when the character to be inspected is compared with the basic pattern, it is applicable. Whether or not the character can be discriminated can be determined by the weighting value. Therefore, it is not determined whether all the m × n matrixes of the basic pattern of the character and the character to be inspected match, but the important parts (pixels) for determining the character to be inspected as the relevant character. It is possible to perform a strict inspection. Therefore, it is possible to perform an inspection close to the human judgment that the character is within the range of non-defective products if it can be distinguished as the corresponding character.

【0014】また、請求項2によれば、前記画素の値は
文字の有無に基づいて二値化される。例えば、文字を構
成する画素であるときは「1」、文字を構成していない
画素であるときは「0」として二値化される。この二値
化された値と前記重み付けが一致したときに前記一致度
の値が計数される。例えば、文字が存在すると重み付け
された領域内において「1」の値を有する画素を検出し
たときに前記一致度の値が「1」だけカウントアップさ
れ、文字が存在しないと重み付けされた領域内において
「0」の値を有する画素を検出したときに前記一致度の
値が「1」だけカウントアップされる。これにより、文
字の一部欠落や、インクのにじみ等によって文字が変形
したときも、人間による目視に近い判定を行うことがで
きる。
According to a second aspect, the value of the pixel is binarized based on the presence / absence of a character. For example, a pixel forming a character is binarized as "1", and a pixel not forming a character is binarized as "0". When the binarized value and the weighting match, the value of the matching degree is counted. For example, when a pixel having a value of "1" is detected in a weighted area when a character exists, the matching value is counted up by "1", and when a character does not exist in a weighted area. When a pixel having a value of "0" is detected, the value of the matching degree is incremented by "1". Accordingly, even when a character is deformed due to a missing part of the character, ink bleeding, or the like, it is possible to make a determination close to human visual inspection.

【0015】また、請求項3によれば、前記重み付けと
して、文字が存在する、文字が存在しない、及び文字が
存在しても存在しなくてもよいの3種類が設定され、該
文字が存在しても存在しなくてもよいと重み付けされて
いる領域においては、前記一致度の計数が行われない。
According to a third aspect of the present invention, as the weighting, three types are set, that is, a character exists, a character does not exist, and a character may or may not exist, and the character exists. However, the degree of coincidence is not counted in the area weighted so that it does not have to exist.

【0016】また、請求項4によれば、重み付け記憶手
段によって、電子部品に付加する文字種毎に、該文字を
所定数の領域からなるマトリクス状に分割したそれぞれ
の領域毎に設定された文字の存在の有無に関する重み付
けが記憶される。また、文字範囲検出手段によって、前
記画像から前記表示文字の範囲が検出され、該検出した
文字範囲から文字切り出し手段によって各文字が切り出
される。該切り出された文字は、分割手段により前記所
定数の領域からなるマトリクス状に分割され、演算手段
により前記重み付け記憶手段に記憶されている各領域毎
の前記重み付けに基づいて、各画素の値に関する一致度
が求められる。さらに、判定手段によって、該一致度と
所定の基準値とが比較され、文字の良否が判定される。
According to a fourth aspect of the present invention, by the weighting storage means, for each character type to be added to an electronic component, the character is divided into a matrix of a predetermined number of areas, and the character set for each area is set. The weighting regarding the presence or absence is stored. Further, the character range detecting means detects the range of the display character from the image, and the character cutting means cuts out each character from the detected character range. The cut-out character is divided by the dividing means into a matrix of the predetermined number of areas, and the arithmetic means relates to the value of each pixel based on the weighting for each area stored in the weighting storage means. The degree of coincidence is required. Further, the determining means compares the degree of coincidence with a predetermined reference value to determine the quality of the character.

【0017】また、請求項5によれば、前記演算手段に
より、前記画素の値は文字の有無に基づいて二値化さ
れ、該値と前記重み付けが一致したときに前記一致度の
値が計数される。
According to a fifth aspect of the present invention, the value of the pixel is binarized by the calculating means based on the presence or absence of a character, and when the value and the weighting match, the value of the degree of coincidence is counted. To be done.

【0018】また、請求項6によれば、前記重み付け記
憶手段には重み付けとして、文字が存在する、文字が存
在しない、及び文字が存在しても存在しなくてもよいの
3種類が設定され、該文字が存在しても存在しなくても
よいと重み付けされている領域においては、前記演算手
段による前記一致度の計数が行われない。
According to a sixth aspect of the present invention, three types of weights are set in the weighting storage means, that is, a character exists, a character does not exist, and a character may or may not exist. In the area weighted such that the character may or may not exist, the calculation unit does not count the degree of coincidence.

【0019】また、請求項7によれば、リング状の第一
の照明器と、2つの平行する直線状の第二の照明器とか
らなり、前記電子部品の文字領域を照明する照明装置が
備えられ、例えば、前記表示文字範囲を検出する際には
前記第一の照明器が用いられ、文字を切り出す際には前
記第二の照明器が用いられる。
According to a seventh aspect of the invention, there is provided a lighting device comprising a ring-shaped first illuminator and two parallel linear second illuminators for illuminating a character area of the electronic component. For example, the first illuminator is used when detecting the display character range, and the second illuminator is used when cutting out the character.

【0020】[0020]

【実施例】以下、図面に基づいて本発明の一実施例を説
明する。図1は、本発明の一実施例の文字検査装置を示
す構成図である。図において、1は画像処理演算部、2
は画像メモリ、3は表示器、4はビデオカメラ、5は照
明装置、6は検査対象となる電子部品である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a character inspection device according to an embodiment of the present invention. In the figure, 1 is an image processing arithmetic unit, 2
Is an image memory, 3 is a display device, 4 is a video camera, 5 is a lighting device, and 6 is an electronic component to be inspected.

【0021】画像処理演算部1は、照明装置5によって
電子部品6を照明しながらビデオカメラ4によって電子
部品6に捺印されている抵抗値等の文字を撮像し、これ
によって得られた画像を画像メモリ2に記憶する。この
後、画像メモリ2に記憶した画像に基づいて、後述する
処理によって捺印文字が予め記憶されている文字と一致
するか否かを判定し、この結果を表示器3に表示する。
The image processing / calculation unit 1 illuminates the electronic component 6 by the illuminating device 5 and captures a character such as a resistance value imprinted on the electronic component 6 by the video camera 4 and forms an image of the obtained image. Stored in the memory 2. After that, based on the image stored in the image memory 2, it is determined by a process described later whether or not the stamp character matches the character stored in advance, and the result is displayed on the display device 3.

【0022】照明装置5は、図2に示すように、略円筒
形状の枠体5aを有し、その内部には、中央部に形成さ
れたカメラ装着孔5bの回りにリング状に配置された複
数の発光ダイオード(LED)5cと、これらの発光ダ
イオード(LED)5cの外側の所定方向両側にそれぞ
れ直線状に配置された発光ダイオード(LED)5dと
を備えている。これらの発光ダイオード(LED)5c
と発光ダイオード(LED)5dは電子部品6に付加さ
れた文字を認識する処理によって使い分けられる。
As shown in FIG. 2, the illuminating device 5 has a substantially cylindrical frame 5a, and inside thereof is arranged in a ring shape around a camera mounting hole 5b formed at the center. A plurality of light emitting diodes (LEDs) 5c and light emitting diodes (LEDs) 5d linearly arranged on both sides outside the light emitting diodes (LEDs) 5c in a predetermined direction are provided. These light emitting diodes (LED) 5c
The light emitting diode (LED) 5d is selectively used depending on the process of recognizing the character added to the electronic component 6.

【0023】電子部品6は、図3に示すように略直方体
形状を有し、その長手方向両端部には端子電極6aが形
成され、上面中央部には抵抗値を表す3桁の数字が捺印
されている。
As shown in FIG. 3, the electronic component 6 has a substantially rectangular parallelepiped shape, terminal electrodes 6a are formed at both ends in the longitudinal direction thereof, and a three-digit number indicating a resistance value is stamped on the central portion of the upper surface. Has been done.

【0024】次に、前述の構成よりなる本実施例におけ
る文字検査の処理動作を図4に示すフローチャートに基
づいて説明する。画像処理演算部1は、所定位置に電子
部品6が載置されると、照明装置5の発光ダイオード
(LED)5cによって電子部品を照明する(SA1)
と共に、ビデオカメラ4によって電子部品6の静止画像
を撮像する(SA2)。
Next, the processing operation of the character inspection in this embodiment having the above-mentioned structure will be described with reference to the flow chart shown in FIG. When the electronic component 6 is placed at a predetermined position, the image processing calculation unit 1 illuminates the electronic component with the light emitting diode (LED) 5c of the lighting device 5 (SA1).
At the same time, the video camera 4 captures a still image of the electronic component 6 (SA2).

【0025】これにより、図5に示すように文字が位置
する概略の部分(文字範囲)CEを浮き上がらせた画像
を得ることができ、文字範囲CEを検出する(SA3)
ことができる。
As a result, as shown in FIG. 5, it is possible to obtain an image in which a rough portion (character range) CE in which a character is located is raised, and the character range CE is detected (SA3).
be able to.

【0026】この後、画像処理演算部1は、照明装置5
の発光ダイオード(LED)5dによって電子部品6を
照明する(SA4)と共に、ビデオカメラ4によって電
子部品6の静止画像を撮像する(SA5)。
After that, the image processing operation unit 1 is operated by the illumination device 5
The electronic component 6 is illuminated by the light emitting diode (LED) 5d (SA4), and a still image of the electronic component 6 is captured by the video camera 4 (SA5).

【0027】これにより、図6に示すような文字を浮き
上がらせた画像を得ることができ、文字位置を検出する
ことができる。
As a result, it is possible to obtain an image in which characters are highlighted as shown in FIG. 6, and it is possible to detect the character position.

【0028】次ぎに、得られた画像データを二値化し
(SA6)、各文字位置を検出する(SA7)。
Next, the obtained image data is binarized (SA6) and each character position is detected (SA7).

【0029】次いで、各文字を切り出し(SA8)、切
り出した各文字を図7に示すように横方向4、縦方向5
のマトリクス状に分割する(SA9)。この分割された
各領域ERには、例えば図8に示すように縦90×横9
0の画素Pが含まれている。これらの画素のディジタル
値は、文字を構成する画素は「1」の値を有し、文字を
構成しない画素は「0」の値を有している。
Next, each character is cut out (SA8), and each of the cut out characters is arranged in the horizontal direction 4 and the vertical direction 5 as shown in FIG.
Is divided into a matrix (SA9). In each of the divided areas ER, for example, as shown in FIG.
The pixel P of 0 is included. Regarding the digital values of these pixels, the pixels that form a character have a value of "1", and the pixels that do not form a character have a value of "0".

【0030】ここで、マトリクス状に分割された各領域
には、各文字種毎に重み付けがなされている。例えば、
図7に示した「3」という文字においては、図9に示す
ように「A−1」の領域から「E−4」の領域まで順に
「2」「1」「1」「2」「0」「0」「2」「1」
「0」「2」「1」「1」「0」「0」「2」「1」
「2」「1」「1」「1」の重み付けがなされている。
この重み付け「0」は文字を構成する画素が存在しない
ことを意味し、「1」は文字を構成する画素が存在する
ことを意味し、また「2」は文字を構成する画素が存在
しても存在しなくても良いことを意味している。
Here, each area divided into a matrix is weighted for each character type. For example,
In the character "3" shown in FIG. 7, as shown in FIG. 9, "2", "1", "1", "2", "0" are sequentially displayed from the area of "A-1" to the area of "E-4". "0""2""1"
"0""2""1""1""0""0""2""1"
Weighting of “2”, “1”, “1”, and “1” is performed.
This weighting “0” means that there are no pixels that form a character, “1” means that there are pixels that form a character, and “2” indicates that there are pixels that form a character. Means that it does not have to exist.

【0031】また、各文字毎に複数種の重み付けが設定
されている。例えば、「3」の文字に関しては、図9に
示した重み付けの他に、図10に示す3種類の重み付け
が設定されている。
Further, a plurality of types of weighting are set for each character. For example, for the character "3", in addition to the weighting shown in FIG. 9, three types of weighting shown in FIG. 10 are set.

【0032】画像処理演算部1は、切り出した文字を予
め設定されている複数種の重み付けパターンを用いて一
致度を計数し(SA10)、所定の基準値以上となる一
致度となった重み付けパターンの文字であるとして検査
対象の文字を「良」として認識する。
The image processing calculation unit 1 counts the degree of coincidence of the cut-out characters using a plurality of preset weighting patterns (SA10), and the weighting pattern having the degree of coincidence equal to or higher than a predetermined reference value. The character to be inspected is recognized as a "good" character and is recognized as "good".

【0033】一致度の計数は次のように行われる。即
ち、重み付け「1」の領域内に「1」の値を有する画素
が存在したときに一致度を「1」だけ増加し、重み付け
「0」の領域内に「0」の値を有する画素が存在したと
きに一致度を「1」だけ増加する。また、重み付け
「2」の領域に関しては先に述べたように文字を構成す
る画素が存在しても存在しなくても良いので、一致度の
計数には寄与しない。
Counting the degree of coincidence is performed as follows. That is, when there is a pixel having a value of "1" in the area of weight "1", the degree of coincidence is increased by "1", and a pixel having a value of "0" appears in the area of weight "0". When it exists, the degree of coincidence is increased by "1". Further, regarding the area of the weighting “2”, as described above, the pixels forming a character may or may not exist, and therefore do not contribute to the counting of the degree of coincidence.

【0034】これにより、文字を構成する画素単位で、
文字の良否を判定することができるので、文字の基本パ
ターンと検査対象となる文字においてm×nのマトリク
ス全てが一致するか判定するのではなく、検査対象とな
る文字を該当文字として判別するために重要な部分(画
素)について厳重に検査することが可能となり、該当す
る文字として判別できれば良品の範囲に入るという人間
の判定に近い検査をすることができる。
As a result, in units of pixels forming a character,
Since the quality of the character can be determined, the character to be inspected is determined to be the corresponding character, not to determine whether the basic pattern of the character and all the m × n matrices in the character to be inspected match. It is possible to strictly inspect an important portion (pixel), and it is possible to perform an inspection close to a human determination that if it can be discriminated as a corresponding character, it falls within the range of non-defective products.

【0035】さらに、重み付け「2」の領域を設けてい
るので、文字の一部欠落や、インクのにじみ等によって
文字が変形したときも、人間による目視に近い判定を行
うことができる。
Further, since the area of weighting "2" is provided, even when a character is deformed due to a part of the character being missing, ink bleeding, etc., it is possible to make a judgment similar to human visual inspection.

【0036】このように、重み付けによって文字の良否
を判定し(SA11)、電子部品6に付加されている全
ての文字が「良」と判定されたときに、その総合判定が
「良」とされる。この判定結果は、表示器3に表示され
る(SA12)。
As described above, the quality of the character is judged by weighting (SA11), and when all the characters added to the electronic component 6 are judged to be "good", the comprehensive judgment is judged to be "good". It The determination result is displayed on the display device 3 (SA12).

【0037】尚、マトリクスの分割数及び重み付けの設
定値等は本実施例のものに限定されることはない。
The number of divisions of the matrix and the setting values of weighting are not limited to those of this embodiment.

【0038】[0038]

【発明の効果】以上説明したように本発明の請求項1記
載の文字検査方法によれば、複数の領域に分割したマト
リクス内の各領域に重み付けすることにより、検査対象
となる文字を基本パターンと比較する際に、任意の部分
の画素が欠落していても該当する文字として判別可能で
あるか否かを重み付けの値により判定することができる
ので、検査対象となる文字を該当文字として判別するた
めに重要な部分(画素)については、厳重に検査するこ
とが可能となり、人間の判定に近い検査を自動で行うこ
とができる。
As described above, according to the character inspection method of the first aspect of the present invention, by weighting each area in the matrix divided into a plurality of areas, the character to be inspected is a basic pattern. When comparing with, it is possible to determine whether or not it is possible to determine as a corresponding character even if pixels of any part are missing, so it is possible to determine the character to be inspected as a corresponding character. Therefore, it becomes possible to strictly inspect an important portion (pixel) for performing the inspection, and an inspection close to human judgment can be automatically performed.

【0039】また、請求項2記載の文字検査方法によれ
ば、上記の効果に加えて、前記画素の値を文字の有無に
基づいて二値化し、該値と前記重み付けが一致したとき
に前記一致度の値を計数しているので、文字の一部欠落
や、インクのにじみ等によって文字が変形したときも、
人間による目視に近い判定を行うことができる。
According to the character inspection method of the second aspect, in addition to the above effect, the value of the pixel is binarized based on the presence or absence of a character, and when the value and the weighting match, the character value is binarized. Since the value of the degree of coincidence is counted, even if characters are partially deformed or the characters are deformed due to ink bleeding, etc.
It is possible to make a judgment similar to that of human eyes.

【0040】また、請求項3記載の文字検査方法によれ
ば、上記の効果に加えて、前記重み付けとして、文字が
存在する、文字が存在しない、及び文字が存在しても存
在しなくてもよいの3種類が設定され、該文字が存在し
ても存在しなくてもよいと重み付けされている領域にお
いては、前記一致度の計数が行われないので、検査判定
に多少の曖昧さを持たせることができる。
According to the character inspection method of the third aspect, in addition to the above effects, as the weighting, there is a character, a character does not exist, and a character exists or does not exist. In the area in which three types of good are set and the weight is determined such that the character may or may not exist, the degree of coincidence is not counted, so that there is some ambiguity in the inspection determination. Can be made.

【0041】また、請求項4記載の文字検査装置によれ
ば、複数の領域に分割したマトリクス内の各領域に重み
付けすることにより、検査対象となる文字を基本パター
ンと比較する際に、任意の部分の画素が欠落していても
該当する文字として判別可能であるか否かを重み付けの
値により判定することができるので、検査対象となる文
字を該当文字として判別するために重要な部分(画素)
については、厳重に検査することが可能となり、人間の
判定に近い検査を自動で行うことができる。
According to the character inspection apparatus of the fourth aspect, by weighting each area in the matrix divided into a plurality of areas, when comparing the character to be inspected with the basic pattern, Since it is possible to determine whether or not it is possible to determine the corresponding character even if the pixel of the part is missing, it is important to determine the character to be inspected as the corresponding character (pixel )
With respect to, it becomes possible to perform a strict inspection, and an inspection close to human judgment can be automatically performed.

【0042】また、請求項5記載の文字検査装置によれ
ば、上記の効果に加えて、前記画素の値を文字の有無に
基づいて二値化し、該値と前記重み付けが一致したとき
に前記一致度の値を計数しているので、文字の一部欠落
や、インクのにじみ等によって文字が変形したときも、
人間による目視に近い判定を行うことができる。
Further, according to the character inspection apparatus of the fifth aspect, in addition to the above effect, the value of the pixel is binarized based on the presence or absence of a character, and when the value and the weighting match, the character value is binarized. Since the value of the degree of coincidence is counted, even if characters are partially deformed or the characters are deformed due to ink bleeding, etc.
It is possible to make a judgment similar to that of human eyes.

【0043】また、請求項6記載の文字検査装置によれ
ば、上記の効果に加えて、前記重み付けとして、文字が
存在する、文字が存在しない、及び文字が存在しても存
在しなくてもよいの3種類が設定され、該文字が存在し
ても存在しなくてもよいと重み付けされている領域にお
いては、前記一致度の計数が行われないので、検査判定
に多少の曖昧さを持たせることができる。
According to the character inspection apparatus of the sixth aspect, in addition to the above effects, as the weighting, there is a character, there is no character, and whether there is a character or not. In the area in which three types of good are set and the weight is determined such that the character may or may not exist, the degree of coincidence is not counted, so that there is some ambiguity in the inspection determination. Can be made.

【0044】また、請求項7記載の文字検査装置によれ
ば、前記表示文字範囲を検出する際に用いられる照明
器、及び文字を切り出す際に用いられる照明器としてそ
れぞれに適したものを用いることができ、文字検出を正
確に行うことができる。
Further, according to the character inspection apparatus of the seventh aspect, an illuminator used for detecting the display character range and an illuminator suitable for cutting out characters are used. It is possible to accurately detect characters.

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

【図1】本発明の一実施例を示す構成図FIG. 1 is a configuration diagram showing an embodiment of the present invention.

【図2】本発明の一実施例における照明装置を示す構成
FIG. 2 is a configuration diagram showing a lighting device according to an embodiment of the present invention.

【図3】本発明の一実施例における検査対象の電子部品
を示す図
FIG. 3 is a diagram showing an electronic component to be inspected in one embodiment of the present invention.

【図4】本発明の一実施例の検査方法を説明するフロー
チャート
FIG. 4 is a flowchart illustrating an inspection method according to an embodiment of the present invention.

【図5】本発明の一実施例における文字領域検出方法を
説明する図
FIG. 5 is a diagram illustrating a character area detection method according to an embodiment of the present invention.

【図6】本発明の一実施例における文字検出方法を説明
する図
FIG. 6 is a diagram illustrating a character detection method according to an embodiment of the present invention.

【図7】本発明の一実施例におけるマトリクス分割を説
明する図
FIG. 7 is a diagram illustrating matrix division according to an embodiment of the present invention.

【図8】本発明の一実施例における文字構成画素を説明
する図
FIG. 8 is a diagram for explaining character constituent pixels according to an embodiment of the present invention.

【図9】本発明の一実施例における重み付けを説明する
FIG. 9 is a diagram illustrating weighting according to an embodiment of the present invention.

【図10】本発明の一実施例における重み付けの例を説
明する図
FIG. 10 is a diagram illustrating an example of weighting according to an embodiment of the present invention.

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

1…画像処理演算部、2…画像メモリ、3…表示器、4
…ビデオカメラ、5…照明装置、5a…枠体、5b…カ
メラ装着孔、5c,5d…発光ダイオード(LED)、
6…電子部品、6a…端子電極、CE…文字範囲、ER
…領域、P…画素。
1 ... Image processing operation unit, 2 ... Image memory, 3 ... Display device, 4
... video camera, 5 ... illumination device, 5a ... frame, 5b ... camera mounting hole, 5c, 5d ... light emitting diode (LED),
6 ... Electronic component, 6a ... Terminal electrode, CE ... Character range, ER
... area, P ... pixel.

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 電子部品の表面に付加された文字の良否
を検査する文字検査方法であって、 前記電子部品に付加する文字種毎に、該文字を所定数の
領域からなるマトリクス状に分割し、 該分割したそれぞれの領域毎に文字の存在の有無に関す
る重み付けを行っておき、 複数の画素から構成される画像として前記電子部品の表
示文字を撮像し、 該画像から前記表示文字の範囲を検出すると共に、各文
字毎に切り出し、 該切り出した文字を前記所定数の領域からなるマトリク
ス状に分割し、 該マトリクスの各領域毎の前記重み付けに基づいて、各
画素の値に関する一致度を求め、 該一致度と所定の基準値とを比較することによって文字
の良否を判定することを特徴とする文字検査方法。
1. A character inspection method for inspecting the quality of a character added to the surface of an electronic component, wherein the character is divided into a matrix of a predetermined number of regions for each character type to be added to the electronic component. , The presence or absence of a character is weighted for each of the divided regions, the display character of the electronic component is imaged as an image composed of a plurality of pixels, and the range of the display character is detected from the image. At the same time, each character is cut out, the cut out character is divided into a matrix consisting of the predetermined number of areas, and the degree of coincidence regarding the value of each pixel is calculated based on the weighting for each area of the matrix, A character inspection method characterized by determining the quality of a character by comparing the degree of coincidence with a predetermined reference value.
【請求項2】 前記画素の値を文字の有無に基づいて二
値化し、該値と前記重み付けが一致したときに前記一致
度の値を計数することを特徴とする請求項1記載の文字
検査方法。
2. The character inspection according to claim 1, wherein the value of the pixel is binarized based on the presence or absence of a character, and the value of the degree of coincidence is counted when the value and the weighting match. Method.
【請求項3】 前記重み付けとして、文字が存在する、
文字が存在しない、及び文字が存在しても存在しなくて
もよいの3種類を設定し、該文字が存在しても存在しな
くてもよいと重み付けされている領域においては、前記
一致度の計数を行わないことを特徴とする請求項1又は
2記載の文字検査方法。
3. A character exists as the weighting,
In the area in which three types are set, that is, the character does not exist and the character may or may not exist, and the weight is determined such that the character may or may not exist, The character inspection method according to claim 1 or 2, wherein the counting is not performed.
【請求項4】 電子部品の表面に付加された文字を複数
の画素から構成される画像として撮像し、該画像に基づ
いて前記文字の良否を判定する文字検査装置において、 前記電子部品に付加する文字種毎に、該文字を所定数の
領域からなるマトリクス状に分割し、該分割したそれぞ
れの領域毎に設定された文字の存在の有無に関する重み
付けを記憶する重み付け記憶手段と、 前記画像から前記表示文字の範囲を検出する文字範囲検
出手段と、 該検出した文字範囲から各文字を切り出す文字切り出し
手段と、 該切り出した文字を前記所定数の領域からなるマトリク
ス状に分割する分割手段と、 前記重み付け記憶手段に記憶されている各領域毎の前記
重み付けに基づいて、各画素の値に関する一致度を求め
る演算手段と、 該一致度と所定の基準値とを比較することによって文字
の良否を判定する判定手段とを設けたことを特徴とする
文字検査装置。
4. A character inspection device for picking up a character added to the surface of an electronic component as an image composed of a plurality of pixels, and determining whether the character is good or bad based on the image is added to the electronic component. Weighting storage means for dividing the character into a matrix of a predetermined number of areas for each character type, and storing weighting regarding presence / absence of a character set for each of the divided areas; A character range detecting means for detecting a range of characters; a character cutting means for cutting out each character from the detected character range; a dividing means for dividing the cut out characters into a matrix consisting of the predetermined number of areas; and the weighting. Calculating means for obtaining the degree of coincidence regarding the value of each pixel on the basis of the weighting for each area stored in the storage means, and the degree of coincidence and a predetermined reference value A character inspection apparatus comprising: a determination unit that determines whether a character is good or bad by comparing with.
【請求項5】 前記演算手段は、前記画素の値を文字の
有無に基づいて二値化し、該値と前記重み付けが一致し
たときに前記一致度の値を計数することを特徴とする請
求項4記載の文字検査装置。
5. The calculation means binarizes the value of the pixel based on the presence or absence of a character, and counts the value of the degree of coincidence when the value and the weighting match. The character inspection device described in 4.
【請求項6】 前記重み付け記憶手段には重み付けとし
て、文字が存在する、文字が存在しない、及び文字が存
在しても存在しなくてもよいの3種類が設定されている
と共に、該文字が存在しても存在しなくてもよいと重み
付けされている領域においては、前記演算手段は前記一
致度の計数を行わないことを特徴とする請求項4又は5
記載の文字検査装置。
6. The weighting storage means is set with three types of weights, that is, whether or not a character exists, whether or not a character exists, and whether or not a character exists. 6. The calculation unit does not count the degree of coincidence in a region weighted as being present or absent.
Character inspection device described.
【請求項7】 前記電子部品の文字領域を照明する照明
装置を備え、該照明装置は、リング状の第一の照明器
と、2つの平行する直線状の第二の照明器とからなるこ
とを特徴とする請求項4、5、又は6記載の文字検査装
置。
7. An illumination device for illuminating a character area of the electronic component, the illumination device comprising a ring-shaped first illuminator and two parallel linear second illuminators. The character inspection device according to claim 4, 5, or 6.
JP7126108A 1995-05-25 1995-05-25 Method and device for inspecting character Withdrawn JPH08320931A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7126108A JPH08320931A (en) 1995-05-25 1995-05-25 Method and device for inspecting character

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7126108A JPH08320931A (en) 1995-05-25 1995-05-25 Method and device for inspecting character

Publications (1)

Publication Number Publication Date
JPH08320931A true JPH08320931A (en) 1996-12-03

Family

ID=14926826

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7126108A Withdrawn JPH08320931A (en) 1995-05-25 1995-05-25 Method and device for inspecting character

Country Status (1)

Country Link
JP (1) JPH08320931A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7003162B2 (en) * 2000-11-27 2006-02-21 Omron Corporation Apparatus and method for examining images
JP2015036937A (en) * 2013-08-15 2015-02-23 サントリー食品インターナショナル株式会社 Printing inspection device and printing inspection method
CN106530289A (en) * 2016-11-03 2017-03-22 刘国勇 Code spraying definition machine vision detecting method based on lattices

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7003162B2 (en) * 2000-11-27 2006-02-21 Omron Corporation Apparatus and method for examining images
JP2015036937A (en) * 2013-08-15 2015-02-23 サントリー食品インターナショナル株式会社 Printing inspection device and printing inspection method
CN106530289A (en) * 2016-11-03 2017-03-22 刘国勇 Code spraying definition machine vision detecting method based on lattices
CN106530289B (en) * 2016-11-03 2019-04-30 刘国勇 A kind of coding clarity machine vision detection method based on dot matrix

Similar Documents

Publication Publication Date Title
US7127099B2 (en) Image searching defect detector
CN106651857B (en) A kind of printed circuit board patch defect inspection method
JPH07159337A (en) Fault inspection method for semiconductor element
JP2005121546A (en) Defect inspection method
JP3344995B2 (en) Tablet surface inspection device
JP3517292B2 (en) Bulk material optical sorting method
CN113176275A (en) Method, device and system for retesting display panel
KR20010098460A (en) Appearance inspection method and appearance inspection apparatus having high inspection processing speed
JPH08320931A (en) Method and device for inspecting character
JPH0560537A (en) Through-hole inspection device
JP2005172649A (en) Apparatus for inspecting defect
JPH0666528A (en) Visual inspecting method and apparatus
JPH0843048A (en) Method and apparatus for compensating inspection accuracy of inspecting system for appearance of article
JP2005189167A (en) Bridge inspection device of cap
JPH0683943A (en) Print inspecting device
KR101987472B1 (en) Apparatus and method for detecting metal panel defects
JP2839411B2 (en) Inspection device for defective IC
JPH09250989A (en) Apparatus for inspecting printed circuit board
JP4390903B2 (en) Surface defect inspection method and apparatus
CN116482103A (en) Classification condition setting auxiliary device
JPH0781962B2 (en) Foreign object detection method
JPH04147002A (en) Inspecting apparatus of surface of fruit and vegetable
JP2001209793A (en) Method for classifying and detecting pattern defect
JP2002216112A (en) Dot printing inspection device and method
JP3491874B2 (en) Inspection device for flat plate with holes

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20020806