JPH03246776A - Recognizing method for outside shape of object - Google Patents
Recognizing method for outside shape of objectInfo
- Publication number
- JPH03246776A JPH03246776A JP2044788A JP4478890A JPH03246776A JP H03246776 A JPH03246776 A JP H03246776A JP 2044788 A JP2044788 A JP 2044788A JP 4478890 A JP4478890 A JP 4478890A JP H03246776 A JPH03246776 A JP H03246776A
- Authority
- JP
- Japan
- Prior art keywords
- image
- color
- area
- screen
- sample
- 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
Links
Landscapes
- Length Measuring Devices By Optical Means (AREA)
- Image Processing (AREA)
- Supply And Installment Of Electrical Components (AREA)
- Image Analysis (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は、画面処理による物品の外形認識方法に係り、
特にプリント基板への電子部品の搭載工程における電子
部品の外形認識に有効である。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a method for recognizing the external shape of an article by screen processing,
It is particularly effective for recognizing the external shape of electronic components in the process of mounting electronic components on printed circuit boards.
[従来の技術]
電子部品のプリント回路基板への表面実装における重要
な工程の1つに、実装すべき電子部品をプリント回路基
板の所定位置に正確に搭載する工程がある。正確な搭載
番行うためには、実装すべき電子部品の外形を正確に間
違いなく検知する必要があり、様々な検出方法・認識方
法が使用されている。[Prior Art] One of the important steps in surface mounting electronic components onto a printed circuit board is the step of accurately mounting the electronic component to be mounted at a predetermined position on the printed circuit board. In order to carry out accurate mounting numbers, it is necessary to accurately and without error detect the external shape of the electronic components to be mounted, and various detection and recognition methods are used.
このような認識方法の有効なものの1つとして、以下に
説明するような画像処理による方法がある。One of the effective recognition methods is a method using image processing as described below.
第3図によりこれを説明すると、図示されていない光学
装置で電子部品などの試料を撮影して得られた画像1は
、様々な濃度の濃淡で表示される。To explain this with reference to FIG. 3, an image 1 obtained by photographing a sample such as an electronic component using an optical device (not shown) is displayed in various shades of density.
しかしこれでは、試料の形状を明確に判別できないため
、様々な濃度の濃淡で表示される画面3の全領域を予め
決めた1つの濃淡基準値Tよりも濃いか薄いかによって
O又は1で2値化し、白と黒の2色で色分けした画像領
域で表示する。このようにして2値化処理され、2色で
表示された画像2が得られる。この画像2は、濃淡基準
値Tよりも濃い部分2a(”1”で示された部分)は黒
色で示され、他部分は画面3の画面背景領域3′の色と
同じ色で示される。However, with this method, it is not possible to clearly distinguish the shape of the sample, so the entire area of the screen 3 displayed in various shades of density is determined by whether it is darker or lighter than one predetermined density reference value T. It is converted into a value and displayed in an image area divided into two colors, white and black. In this way, the image 2 is binarized and displayed in two colors. In this image 2, a portion 2a (indicated by “1”) darker than the gradation reference value T is shown in black, and other portions are shown in the same color as the screen background area 3' of the screen 3.
ところで、試料の表面の凹凸が画像の濃淡に現われるた
め、第4図(A) 、 (B)に示すような表面に凹凸
(図において4a、4bは凸部である外枠部と記号部、
4cは凹部)のある試料4について以上述べた処理を行
うと、第5図に示すような画像5になる。Incidentally, since the unevenness on the surface of the sample appears in the shading of the image, the unevenness on the surface as shown in FIGS.
When the above-described processing is performed on the sample 4 having the concave portion 4c, an image 5 as shown in FIG. 5 is obtained.
[発明が解決しようとする課題]
このような従来の画像処理方法による試料の外形の認識
方法では、試料4の画像5において試料4の表面の高い
部分である外枠部4aに相当する画像領域5a及び記号
部分4bに相当する画像領域5bが画面3の画面背景領
域3′とは補色になるが、物品4の表面のそれ以外の低
い部分に相当する画像領域5cは画面3の画面背景領域
3′と同色になるので、物品の表面の記号や外周部4a
の内縁までが画像として認識され、従って物品4の外形
認識を間違え易いという欠点があった。つまり、このよ
うな従来の画像処理方法では、外形を認識したい対象物
がその表面に凹凸を有する場合には正確に外形を認識す
ることは難しかった。[Problems to be Solved by the Invention] In a method for recognizing the outer shape of a sample using such a conventional image processing method, in the image 5 of the sample 4, an image area corresponding to the outer frame portion 4a, which is a high part of the surface of the sample 4; 5a and the image area 5b corresponding to the symbol portion 4b have a complementary color to the screen background area 3' of the screen 3, but the image area 5c corresponding to the other lower part of the surface of the article 4 is the screen background area of the screen 3. Since it is the same color as 3', the symbol on the surface of the article and the outer periphery 4a
This has the disadvantage that even the inner edge of the article 4 is recognized as an image, making it easy to misrecognize the outer shape of the article 4. In other words, with such conventional image processing methods, it is difficult to accurately recognize the outer shape of an object whose outer shape is to be recognized when the object has irregularities on its surface.
したがって、従来の表面実装装置では成る種の電子部品
、例えばパッケージの表面に凹凸を有する電子部品など
の外形の認識は未だ正確に間違い無く行えるところまで
は必ずしも至っておらず、このことが特定の部品の実装
についての信頼度を低下させる原因の一つになっており
、また、このような特定形状の電子部品の実装に制限を
与えていた。Therefore, conventional surface mount equipment has not yet been able to accurately recognize the external shape of certain types of electronic components, such as electronic components with uneven package surfaces. This has been one of the causes of lowering the reliability of mounting, and has also placed restrictions on the mounting of electronic components of such specific shapes.
[課題を解決するための手段]
本発明はこのような従来の欠点を除去するため、特許請
求の範囲の各請求項に記載の、対象物の外形認識方法を
提供するものである。[Means for Solving the Problems] In order to eliminate such conventional drawbacks, the present invention provides a method for recognizing the external shape of an object as set forth in the claims.
[作 用]
本発明によれば、認識したい対象物の表面に様々な凹凸
があろうとも対象物の画像を1色で表わすことができ、
したがって本発明では表面に様々な凹凸を有する対象物
でもその外形を正確に認識できる。[Function] According to the present invention, even if the surface of the object to be recognized has various unevenness, the image of the object can be expressed in one color.
Therefore, according to the present invention, even if the object has various irregularities on its surface, its outer shape can be accurately recognized.
[実 施 例コ
先ず、この発明に係る画像処理による外形認識の基本的
な考え方について述べると1画面の内の最外側の領域は
画像処理の対象となる対象物の外形に対応する撮影画像
領域ではなくて画面背景領域であり、この画像背景領域
の配色と補色関係にある画像領域で、かつ最外側の画像
領域の外周が画像処理の対象となる対象物の外形に相当
するものであるという考え方に基づいて画像処理を行う
ものである。[Example of implementation] First, the basic concept of external shape recognition by image processing according to the present invention will be described. It is not a screen background area, but an image area that has a complementary color relationship to the color scheme of this image background area, and the outer circumference of the outermost image area corresponds to the outline of the object that is the subject of image processing. Image processing is performed based on this concept.
次に本発明の実施例を第1図と第2図により説明する。Next, an embodiment of the present invention will be described with reference to FIGS. 1 and 2.
ここで画像処理の対象となる対象物は、例えば第4図に
示す如く表面にほぼ一定の高さ(つまりレベル)の外枠
部4aを有する電子部品4である。ここで外枠部は、第
4図のように明確に縁どられている必要はなく1画像処
理の対象となる対象物の表面の実質的な最外周がほぼ一
定の高さにあるものを意味する。The object to be subjected to image processing is, for example, an electronic component 4 having an outer frame portion 4a having a substantially constant height (i.e., level) on its surface, as shown in FIG. 4, for example. Here, the outer frame does not need to be clearly bordered as shown in Figure 4, but it should be such that the substantial outermost periphery of the surface of the object to be image processed is at approximately a constant height. means.
(1)M画像撮影
最初に、前記従来のものと同じく、外形を正確に認識し
たい電子部品4の原画像を撮影する。(1) M-image photography First, as in the conventional method described above, an original image of the electronic component 4 whose external shape is to be accurately recognized is photographed.
(2)2値化画面処理
しかる後その撮影画像を2値化処理し画面処理して、第
2図(a)に示すような白黒の処理画面3を得る。この
画面3は、画面背景領域3″と、該画面背景領域3′の
配色に対して補色の試料4の外枠部4aに対応する画像
領域5a及び記号4bに対応する画像領域5bと、これ
ら部分以外の低い部分に相当し、画面背景領域3′と同
色の画像領域5cとからなる。(2) Binarization screen processing The captured image is then binarized and screen processed to obtain a black and white processed screen 3 as shown in FIG. 2(a). This screen 3 includes a screen background area 3'', an image area 5a corresponding to the outer frame 4a of the sample 4, which has a complementary color to the color scheme of the screen background area 3', and an image area 5b corresponding to the symbol 4b. This area corresponds to a low area other than the screen background area 3' and is composed of an image area 5c of the same color as the screen background area 3'.
(3)面積演算同色化処理 次に従来行っていなかった面積演算同色化処理を行う。(3) Area calculation same color processing Next, area calculation and color matching processing, which has not been performed conventionally, is performed.
この処理は、外枠部4aに対応する画像領域5aを除き
試料画像5の内側に位置する画像領域を順次同色化して
、最終的に最外側の画像背景領域3′の配色に同色化す
るためのものであり、試料画像5のうち外枠部4aに対
応する画像領域5aよりも内側の画像領域において、画
像領域5bと画像領域5Cとの面積を比較し演算してそ
れらの面積の大小を決め、面積の小さい画像領域5bを
面積の大きい画像領域5cの配色に変えて画一化する。This process sequentially makes the image areas located inside the sample image 5 the same color except for the image area 5a corresponding to the outer frame 4a, and finally makes the image areas the same color as the outermost image background area 3'. In the image area inside the image area 5a corresponding to the outer frame part 4a in the sample image 5, the areas of the image area 5b and the image area 5C are compared and calculated to determine the size of the area. Then, the image area 5b with a small area is changed to the color scheme of the image area 5c with a large area to make it uniform.
この処理は、第4図の様な電子部品の場合は1回で済む
が、画像処理される電子部品の面上に外枠部4aの内側
に更に四角状の環状凸状部(いわば内枠)が複数あるよ
うな場合は、複数回行われる。This process only needs to be carried out once in the case of an electronic component as shown in FIG. ), it is performed multiple times.
(4)画面の白黒反転処理
しかる後1画面背景領域3′と、これと補色関係(白色
)にある外枠部に対応する画像領域5aとの配色を逆転
処理する。これにより第2図(b)に示すような配色の
画面3が得られる。(4) Screen black-and-white inversion processing After that, the color arrangement of the one-screen background area 3' and the image area 5a corresponding to the outer frame portion having a complementary color relationship (white) is inverted. As a result, a screen 3 having a color scheme as shown in FIG. 2(b) is obtained.
この画面3における電子部品画像6は、試料4の外枠部
4aに対応する黒色の画像領域6aとその内側部分に対
応する白色の画像領域6bからなる。The electronic component image 6 on the screen 3 consists of a black image area 6a corresponding to the outer frame part 4a of the sample 4 and a white image area 6b corresponding to the inner part thereof.
(5)画像配色の画−化処理
次に、第2図(b)の逆転電子部品画像6の内側の画像
領域6bを黒色に塗り潰して、同図(C)に示すような
黒色に配色の画一化された塗り潰し電子部品画像7を得
る。(5) Image coloring process Next, the inner image area 6b of the inverted electronic component image 6 in FIG. 2(b) is filled with black to create a black coloring as shown in FIG. 2(C). A uniform filled electronic component image 7 is obtained.
−<6)画面の白黒反転処理
最後に、画面3の配色を再び反転することにより、第2
図(d)に示すような白色の再逆転電子部品画像8を有
する画面となる。この処理は、同図(C)にて明確化さ
れた試料4の外形を計測可能な配色に変換するための処
理である。−<6) Screen black and white reversal process Finally, by reversing the color scheme of screen 3, the second
The screen becomes a screen having a white re-inverted electronic component image 8 as shown in Figure (d). This process is a process for converting the external shape of the sample 4 clarified in FIG. 4(C) into a measurable color scheme.
第2図(d)に示す再逆転試料画像8の配色を認識し、
その再逆転試料画像8の例えば4隅の位置を演算するこ
とにより、プリント基板に搭載される電子部品の搭載精
度を測定し得る。Recognizing the color scheme of the re-inverted sample image 8 shown in FIG. 2(d),
By calculating the positions of, for example, the four corners of the re-inverted sample image 8, it is possible to measure the mounting accuracy of the electronic components mounted on the printed circuit board.
[発明の効果]
以上のべたように本発明によれば1表面に凹凸模様のあ
る対象物でも確実且つ正確にその外形を認識できるので
、プリント回路基板に搭載される様々な電子部品、特に
その表面に凹凸による枠や記号の施された電子部品につ
いても確実且つ正確に搭載位置の検知を行うことができ
る。また、これにより表面に凹凸による枠や記号の施さ
れた電子部品についての計測時間は、従来の115程度
となり、搭載位置の検査効率の向上が図れる。[Effects of the Invention] As described above, according to the present invention, even an object having an uneven pattern on its surface can reliably and accurately recognize its external shape. It is also possible to reliably and accurately detect the mounting position of an electronic component whose surface is marked with a frame or a symbol by concavo-convex surfaces. Furthermore, the measurement time for electronic components whose surfaces are marked with irregularities such as frames or symbols is reduced to about 115 compared to the conventional method, thereby improving the efficiency of inspecting the mounting position.
【図面の簡単な説明】
第1図は本発明に係る対象物の外形認識方法の一実施例
を説明するための画像処理工程を示す図、第2図(a)
〜(d)は第1図に示した画像処理工程における処理画
像を示す図、第3図は従来の画像処理技術による処理画
面とその処理方法を説明するための図、第4図(A)、
(B)は画像処理される試料を示す図、第5図は従来技
術による処理画面を示す図である。
1・・・撮影画像
3・・・処理画面
5・・・試料画像
7・・・塗り潰し試料画像
2・・・2値化処理画像
4・・・試料
6・・・逆転試料画像
8・・・再逆転試料画像
(他1名)
第
■
図
第
図
第
(0)
撮影時の濃淡分布
(×)
図
(0)
濃淡分布の2値化
(×)[BRIEF DESCRIPTION OF THE DRAWINGS] FIG. 1 is a diagram showing an image processing process for explaining an embodiment of the method for recognizing the outer shape of an object according to the present invention, and FIG. 2(a)
~ (d) are diagrams showing processed images in the image processing step shown in Figure 1, Figure 3 is a diagram for explaining a processing screen and its processing method by conventional image processing technology, and Figure 4 (A) ,
(B) is a diagram showing a sample subjected to image processing, and FIG. 5 is a diagram showing a processing screen according to the prior art. 1... Photographed image 3... Processing screen 5... Sample image 7... Filled sample image 2... Binarized processed image 4... Sample 6... Inverted sample image 8... Re-inverted sample image (1 other person) Figure ■ Figure (0) Shade distribution at the time of photography (×) Figure (0) Binarization of gray scale distribution (×)
Claims (1)
象物の外形を認識する方法において、前記対象物を撮影
してその濃淡画像を得、該濃淡画像を予め決めた基準濃
度を基準にして2値化処理して2色配分を行う処理と、
前記2色配分処理により2色で表わされた前記画像につ
いて、前記対象物の外枠部の内縁の内側に存在する画像
領域の色別の面積を演算処理して該画像領域内を面積の
大なる領域の色で全て統一して1色に塗りつぶす処理と
、前記1色に塗りつぶされた画像領域の色を前記対象物
の外枠部に相当する画像領域の色に変えて、前記対象物
の画像を1色にする処理と、からなることを特徴とする
対象物の外形認識方法。 2 請求項1記載の対象物の外形認識方法において、前
記最後の処理をした後に画面の色を逆転する処理を行う
ことを特徴とする対象物の外形認識方法。[Scope of Claims] 1. A method for recognizing the outer shape of an object having an outer frame portion having a substantially uniform height on the photographed surface, wherein the object is photographed to obtain a grayscale image thereof, and the grayscale image is A process of performing binarization processing and distributing two colors based on a predetermined reference density;
For the image expressed in two colors by the two-color distribution process, the area of each color of the image area existing inside the inner edge of the outer frame of the object is calculated, and the area within the image area is calculated. A process of unifying the color of a large area and filling it with one color, and changing the color of the image area filled with the one color to the color of an image area corresponding to the outer frame of the object, A method for recognizing the outer shape of an object, the method comprising: processing to make an image of one color; and 2. The method for recognizing the outer shape of an object according to claim 1, further comprising performing a process of reversing the color of the screen after the last process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2044788A JPH03246776A (en) | 1990-02-26 | 1990-02-26 | Recognizing method for outside shape of object |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2044788A JPH03246776A (en) | 1990-02-26 | 1990-02-26 | Recognizing method for outside shape of object |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03246776A true JPH03246776A (en) | 1991-11-05 |
Family
ID=12701148
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2044788A Pending JPH03246776A (en) | 1990-02-26 | 1990-02-26 | Recognizing method for outside shape of object |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03246776A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100718361B1 (en) * | 1999-08-31 | 2007-05-14 | 주식회사 팬택앤큐리텔 | Multimedia search device and its method using feature information of internal and external shape information |
-
1990
- 1990-02-26 JP JP2044788A patent/JPH03246776A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100718361B1 (en) * | 1999-08-31 | 2007-05-14 | 주식회사 팬택앤큐리텔 | Multimedia search device and its method using feature information of internal and external shape information |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3185559B2 (en) | Surface defect inspection equipment | |
CN112583999A (en) | Lens contamination detection method for camera module | |
KR920003932B1 (en) | Method and device for appearance inspection of resin mold of semiconductor device | |
US5881164A (en) | Image data processing method and image data processing apparatus | |
JPH0762606B2 (en) | Pattern position recognition device | |
JPH0629707B2 (en) | Optical cutting line measuring device | |
JPH03246776A (en) | Recognizing method for outside shape of object | |
JP3204876B2 (en) | Print inspection equipment | |
CN109448012A (en) | A kind of method for detecting image edge and device | |
JP4244046B2 (en) | Image processing method and image processing apparatus | |
JP3260425B2 (en) | Pattern edge line estimation method and pattern inspection device | |
JPH0791914A (en) | Method and device for detecting origin of circuit board | |
JP2000206052A (en) | Defect-inspecting device and method and storage medium | |
JPH08159984A (en) | Pattern irregularity inspecting apparatus | |
JPH0645845Y2 (en) | Automatic surface smoothness inspection device | |
JPS63220375A (en) | Binarization processing method for image | |
JPH07301609A (en) | Defect inspection method | |
JP2002357559A (en) | Apparatus for visual inspection of cans using a three-panel CCD camera | |
JP2000294139A (en) | Method and device for detecting defect of periodic pattern | |
JP2843389B2 (en) | Bonding ball inspection device | |
JP2023180433A (en) | Image processing device and image processing method | |
JP2701872B2 (en) | Surface inspection system | |
JPH0727711A (en) | Detecting method for defect in mark part in image | |
JPH0679862A (en) | Method for inspecting quality of printing paper surface and apparatus therefor | |
JPS63271667A (en) | Image recognizing method |