JP2006049868A - Image forming method of component - Google Patents

Image forming method of component Download PDF

Info

Publication number
JP2006049868A
JP2006049868A JP2005194425A JP2005194425A JP2006049868A JP 2006049868 A JP2006049868 A JP 2006049868A JP 2005194425 A JP2005194425 A JP 2005194425A JP 2005194425 A JP2005194425 A JP 2005194425A JP 2006049868 A JP2006049868 A JP 2006049868A
Authority
JP
Japan
Prior art keywords
component
image
black
white
color
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
JP2005194425A
Other languages
Japanese (ja)
Other versions
JP4648112B2 (en
Inventor
Atsushi Tanabe
敦 田邉
Shozo Fukuda
尚三 福田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2005194425A priority Critical patent/JP4648112B2/en
Publication of JP2006049868A publication Critical patent/JP2006049868A/en
Application granted granted Critical
Publication of JP4648112B2 publication Critical patent/JP4648112B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image forming method of a component in which the profile of the component is clarified. <P>SOLUTION: The image forming method comprises: a step (S101) of picking up the color image of an electronic component by means of a scanner 170 and forming the color image thereof, and steps (S102, S104) of transforming the color image formed at the color image forming step (S101) into a component monochrome image where the outline of the electronic component is represented by gray on a white or block background, and an electrode monochrome image where the electrode of the electronic component is represented by gray. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、電子部品などの部品の画像を生成する画像生成方法に関するものであって、特に、基板上に実装される部品の特徴を特定するために用いられる画像を生成する画像生成方法に関するものである。   The present invention relates to an image generation method for generating an image of a component such as an electronic component, and more particularly to an image generation method for generating an image used for specifying the characteristics of a component mounted on a substrate. It is.

従来より、基板上に実装される電子部品の外形や寸法、位置ずれなどを認識するために、白黒のCCDカメラでその電子部品を撮像することにより、電子部品の画像を生成する方法が提案されている(例えば、特許文献1参照)。   Conventionally, a method of generating an image of an electronic component by imaging the electronic component with a black and white CCD camera has been proposed in order to recognize the external shape, dimensions, positional deviation, and the like of the electronic component mounted on a substrate. (For example, refer to Patent Document 1).

上記従来の部品の画像生成方法は、部品を照らす照明の色調を調整することにより、部品と背景とのコントラストを付けた画像を生成する。
特開平10−208017号公報
The conventional part image generation method generates an image with contrast between the part and the background by adjusting the color tone of the illumination that illuminates the part.
Japanese Patent Laid-Open No. 10-208017

しかしながら、上記従来の部品の画像生成方法では、生成される画像が、単に白黒のCCDカメラで撮像された白黒濃淡画像であるため、部品と背景とのコントラストや、部品の電極とその他の部分とのコントラストが不十分で、部品の形態が不明瞭になるという問題がある。   However, in the above conventional part image generation method, the generated image is simply a black and white grayscale image captured by a black and white CCD camera, so the contrast between the part and the background, the electrode of the part and other parts, There is a problem that the contrast of the component is insufficient and the form of the component becomes unclear.

そこで、本発明は、このような問題に鑑みてなされたものであって、部品の形態を明瞭にする部品の画像生成方法を提供することを目的とする。   Accordingly, the present invention has been made in view of such a problem, and an object thereof is to provide a component image generation method for clarifying the form of a component.

上記目的を達成するために、本発明の部品の画像生成方法は、基板上に実装される部品の特徴を特定するために用いられる前記部品の画像を生成する方法であって、部品をカラーで撮像することで、前記部品のカラー画像を生成するカラー画像生成ステップと、前記カラー画像生成ステップで生成されたカラー画像を、前記部品の形態が白黒の濃淡によって表された白黒濃淡画像に変換する変換ステップとを含むことを特徴とする。ここで、前記カラー画像生成ステップでは、背景が単色となるように前記部品をカラーで撮像し、前記変換ステップでは、前記カラー画像生成ステップで生成されたカラー画像を、前記背景が白色又は黒色となって前記部品の外形が白黒の濃淡で表された前記白黒濃淡画像に変換することを特徴としてもよい。   In order to achieve the above object, a component image generation method of the present invention is a method for generating an image of the component used for specifying the characteristics of the component mounted on a board, and the component is colored. By imaging, a color image generation step for generating a color image of the component, and the color image generated in the color image generation step is converted into a black and white gray image in which the form of the component is represented by black and white shading. Conversion step. Here, in the color image generation step, the part is imaged in color so that the background becomes a single color, and in the conversion step, the color image generated in the color image generation step is changed to white or black as the background. Thus, the black and white image may be converted into the black and white image in which the outer shape of the component is expressed in black and white.

これにより、部品のカラー画像が白黒濃淡画像に変換されるため、その変換処理を適切に行うことで、白黒濃淡画像における部品の形態を明瞭にすることができる。また、背景を単色とすることで、部品の外形と背景との濃淡の差を大きくして、白黒濃淡画像における部品の外形を明瞭にすることができる。さらに、部品のカラー画像の生成には、広く普及しているスキャナーを使用し、白黒濃淡画像の変換には、パーソナルコンピュータなどを使用することができるため、部品実装用の特別な撮像機器を用いることがなく、画像生成のコストを抑えることができる。また、最終的に白黒濃淡画像が生成されるため、画像から部品の特徴を特定する処理において、カラー画像から特定するよりも処理負担を軽くすることができる。   As a result, the color image of the component is converted into a black-and-white gray image, and the form of the component in the black-and-white gray image can be clarified by appropriately performing the conversion process. Further, by making the background a single color, it is possible to increase the difference in shading between the outer shape of the component and the background, and to clarify the outer shape of the component in the black and white grayscale image. Furthermore, a widely used scanner can be used to generate a color image of a component, and a personal computer or the like can be used to convert a black and white grayscale image. Therefore, a special imaging device for component mounting is used. The cost of image generation can be reduced. In addition, since a black-and-white gray image is finally generated, it is possible to reduce the processing burden in the process of specifying the feature of the component from the image as compared to specifying from the color image.

また、前記部品の画像生成方法は、さらに、前記白黒濃淡画像に対して、濃淡の幅を広げる伸張処理を行う伸張処理ステップを含むことを特徴としてもよい。   The component image generation method may further include a decompression process step of performing a decompression process to widen a shade width on the black and white grayscale image.

これにより、白黒濃淡画像の濃淡の幅が広げられるため、部品の外形と背景との濃淡の差をさらに大きくして、部品の外形をより明瞭にすることができる。   Thereby, since the width of the shade of the black and white shade image is widened, the difference in shade between the outer shape of the component and the background can be further increased, and the outer shape of the component can be made clearer.

また、前記伸張処理ステップでは、さらに、前記白黒濃淡画像に含まれる画素のうち、所定の濃淡値より小さい各画素の濃淡値を最小の濃淡値に変換することを特徴としてもよい。   Further, the expansion processing step may further convert the gray value of each pixel smaller than a predetermined gray value among the pixels included in the black and white gray image to a minimum gray value.

これにより、256階調のように白黒濃淡画像の濃淡の幅に制限がっても、所定の濃淡値より小さい各画像の濃淡値を、その256階調の最小値にして、その濃淡値を切り捨てることにより、白黒濃淡画像の有効な部分の濃淡の幅を、その制限範囲内で広くすることができる。   As a result, even if the grayscale width of the monochrome grayscale image is limited as in 256 gradations, the grayscale value of each image smaller than the predetermined grayscale value is set to the minimum value of the 256 grayscales, and the grayscale value is set. By truncating, the shade width of the effective portion of the monochrome shade image can be widened within the limited range.

また、前記カラー画像生成ステップでは、背景が青色となるように部品を撮像することで前記カラー画像を生成し、前記変換ステップでは、前記背景が部品と比べて黒くなるように、前記カラー画像を白黒濃淡画像に変換することを特徴としてもよい。   In the color image generation step, the color image is generated by imaging a component so that the background is blue. In the conversion step, the color image is generated so that the background is black compared to the component. It may be characterized by being converted into a black and white grayscale image.

例えば、前記変換ステップでは、赤色の濃淡値R、緑色の濃淡値G、青色の濃淡値B、及び定数Kにより示される((R+G)/2−B)/2+Kの変換式を用いて、前記カラー画像に含まれる各画素の色を表すRGB値を白黒の濃淡値に変換する。   For example, in the conversion step, the conversion formula of ((R + G) / 2−B) / 2 + K represented by a red gradation value R, a green gradation value G, a blue gradation value B, and a constant K is used. The RGB value representing the color of each pixel included in the color image is converted into a black and white gray value.

これにより、白黒濃淡画像において青色系でない部品の外形を明瞭にすることができる。   This makes it possible to clarify the outline of a non-blue component in a black and white grayscale image.

また、前記カラー画像生成ステップでは、背景が赤色となるように部品を撮像することで前記カラー画像を生成し、前記変換ステップでは、前記背景が部品と比べて黒くなるように、前記カラー画像を白黒濃淡画像に変換することを特徴としてもよい。   In the color image generation step, the color image is generated by imaging a component so that the background is red. In the conversion step, the color image is converted so that the background is black compared to the component. It may be characterized by being converted into a black and white grayscale image.

例えば、前記変換ステップでは、赤色の濃淡値R、緑色の濃淡値G、青色の濃淡値B、及び定数Kにより示される((B+G)/2−R)/2+Kの変換式を用いて、前記カラー画像に含まれる各画素の色を表すRGB値を白黒の濃淡値に変換する。   For example, in the conversion step, the conversion formula of ((B + G) / 2−R) / 2 + K represented by a red gradation value R, a green gradation value G, a blue gradation value B, and a constant K is used. The RGB value representing the color of each pixel included in the color image is converted into a black and white gray value.

これにより、白黒濃淡画像において赤色系でない部品の外形を明瞭にすることができる。   This makes it possible to clarify the outer shape of a non-red component in a black and white grayscale image.

また、前記部品は電子部品であって、前記変換ステップでは、さらに、前記カラー画像生成ステップで生成されたカラー画像に含まれる色のうち白色に近い色ほど白黒の濃淡によって際立たせることで、前記カラー画像を、前記部品の電極が白黒の濃淡で表された電極白黒濃淡画像に変換することを特徴としてもよい。   Further, the component is an electronic component, and in the conversion step, the color closer to white among the colors included in the color image generated in the color image generation step is made more prominent by black and white shading. The color image may be converted into an electrode black and white grayscale image in which the electrodes of the component are represented by black and white grayscale.

例えば、前記カラー画像生成ステップでは、Lab表色系のカラー画像を生成し、前記変換ステップでは、前記電極白黒濃淡画像への変換を行うときには、前記カラー画像に含まれる画素ごとに、当該画素の明るさを表すL値と、色度を表すa値及びb値とを、定数Kを用いて示されるL×(K−(a2+b2)1/2)の変換式により、白黒の濃淡値に変換する。   For example, in the color image generation step, a Lab color system color image is generated, and in the conversion step, when conversion into the electrode black and white grayscale image is performed, for each pixel included in the color image, The L value representing brightness and the a and b values representing chromaticity are converted into black and white grayscale values using a conversion formula of L × (K− (a2 + b2) 1/2) represented by a constant K. To do.

カラー画像に写る電子部品の電極は無彩色の明るい色であって白色に近く、このようなカラー画像が、白色に近い色ほど際立つような電極白黒濃淡画像に変換されるため、その電極白黒濃淡画像において電子部品の電極の外形を明瞭にすることができる。   Electrodes of electronic components appearing in a color image are achromatic bright colors that are close to white, and such a color image is converted into an electrode black-and-white shade image in which the closer the color to white is, the more the black-and-white shade of the electrode is converted. The outline of the electrode of the electronic component can be clarified in the image.

また、前記部品の画像生成方法は、さらに、前記電極白黒濃淡画像に対して、ノイズの除去を行うフィルタ処理ステップを含むことを特徴としてもよい。   The component image generation method may further include a filter processing step for removing noise from the electrode black and white grayscale image.

これにより、電極白黒濃淡画像からノイズが除去されるため、電子部品の電極の外形をより明瞭にすることができる。また、比較的小さい電極に対しては、ノイズによる影響を大幅に抑えることができ、その電極の特徴を容易に特定することができる。   As a result, noise is removed from the black-and-white electrode grayscale image, so that the outer shape of the electrode of the electronic component can be made clearer. Further, for a relatively small electrode, the influence of noise can be greatly suppressed, and the characteristics of the electrode can be easily specified.

また、前記部品の画像生成方法は、さらに、前記電極白黒濃淡画像に対して濃淡の幅を広げる伸張処理ステップを含むことを特徴としてもよい。   The component image generation method may further include an expansion processing step for expanding a width of light and shade with respect to the electrode black and white light and shade image.

これにより、電極白黒濃淡画像の濃淡の幅が広げられるため、電子部品の電極とその他の部分及び背景との濃淡の差をさらに大きくして、電子部品の電極の外形をより明瞭にすることができる。   As a result, the width of the shade of the electrode monochrome shade image is widened, so that the difference in shade between the electrode of the electronic component and other parts and the background can be further increased to further clarify the outer shape of the electrode of the electronic component. it can.

また、前記部品の画像生成方法は、さらに、前記変換ステップで変換された電極白黒濃淡画像に含まれる各画素の濃淡値のうち、電極に対応する画素の濃淡値よりも大きい濃淡値を、最小の濃淡値に変換する白黒変換ステップを含むことを特徴としてもよい。   Further, the image generation method of the part further includes a gray value that is larger than the gray value of the pixel corresponding to the electrode among the gray values of each pixel included in the electrode black-and-white gray image converted in the conversion step. It is also possible to include a black and white conversion step for converting to a gray value.

例えば、電子部品のボディが白色の場合には、電極白黒濃淡画像において、ボディと電極との濃淡値は共に高くてそれぞれ白色に近く、ボディと電極との濃淡の差が小さくなる。また、カラー画像に写る電子部品の電極は、白色よりも暗い色であるため、電子部品のボディが白色の場合には、電極白黒濃淡画像のボディに対応する画素の濃淡値は、電極に対応する画素の濃淡値よりも少し大きくなる。そこで、電子部品のボディが白色であっても、電極に対応する画素の濃淡値よりも大きい濃淡値を、最小の濃淡値に変換することにより、電極白黒濃淡画像においてそのボディを黒くし、電極のみを白くすることができる。したがって、電子部品の電極以外の部位の色が白色であっても、電子部品の電極の外形のみを明瞭にすることができる。   For example, when the body of the electronic component is white, the density values of the body and the electrode are both high and close to white in the electrode black-and-white density image, and the difference between the density of the body and the electrode becomes small. In addition, since the electrode of the electronic component that appears in the color image is darker than white, when the body of the electronic component is white, the gray value of the pixel corresponding to the body of the electrode black and white gray image corresponds to the electrode It becomes a little larger than the gray value of the pixel. Therefore, even if the body of the electronic component is white, by converting the gray value larger than the gray value of the pixel corresponding to the electrode to the minimum gray value, the body is blackened in the electrode black and white gray image, and the electrode Only can be whitened. Therefore, even if the color of the part other than the electrode of the electronic component is white, only the outer shape of the electrode of the electronic component can be clarified.

なお、本発明は、上記部品の画像生成方法を用いて部品教示データを作成する部品教示データ作成方法や部品自動教示装置、それらの方法のプログラム、及びそのプログラムを格納する記憶媒体としても実現することができる。さらに、本発明は、上記部品の画像生成方法により画像を生成する画像生成装置としても実現することができる。さらに、本発明は、上記部品自動教示装置を備えた部品実装装置としても実現することができる。   The present invention is also realized as a part teaching data creation method or part automatic teaching apparatus for creating part teaching data using the part image generation method, a program for those methods, and a storage medium for storing the programs. be able to. Furthermore, the present invention can be realized as an image generation apparatus that generates an image by the above-described component image generation method. Furthermore, the present invention can also be realized as a component mounting apparatus including the component automatic teaching apparatus.

本発明の部品の画像生成方法は、部品の形態を明瞭にすることができるという作用効果を奏する。   The component image generation method of the present invention has the effect of being able to clarify the form of the component.

以下、本発明の実施の形態における部品自動教示装置について、図面を用いて説明する。   Hereinafter, an automatic component teaching apparatus according to an embodiment of the present invention will be described with reference to the drawings.

図1は、本発明の実施の形態における部品自動教示装置の構成を示す構成図である。
この部品自動教示装置100は、本発明の電子部品(以下、単に部品という)の画像生成方法を利用して、部品の形状や特徴的な寸法を示す部品教示データを作成するものであって、部品を撮像するスキャナー170と、オペレータによる操作を受け付ける操作部110と、例えば液晶ディスプレイなどにより構成される表示部130と、操作部110により受け付けられた操作に基づいてスキャナー170及び表示部130を制御する制御部120とを備えている。また、制御部120は、周辺機器制御部121と入出力処理部122と画像処理部123とを備えている。
FIG. 1 is a configuration diagram showing a configuration of an automatic component teaching apparatus according to an embodiment of the present invention.
The component automatic teaching apparatus 100 uses the image generation method of an electronic component (hereinafter simply referred to as a component) of the present invention to generate component teaching data indicating the shape and characteristic dimensions of the component. A scanner 170 that captures an image of an image, an operation unit 110 that receives an operation by an operator, a display unit 130 that includes, for example, a liquid crystal display, and the scanner 170 and the display unit 130 are controlled based on an operation that is received by the operation unit 110. And a control unit 120. The control unit 120 includes a peripheral device control unit 121, an input / output processing unit 122, and an image processing unit 123.

図2(a)および図2(b)は、スキャナー170の外観を示す外観図である。
スキャナー170は、この図2(a)および図2(b)に示すように、スキャナー本体171とカバー172とカバーシート173とで構成される。
2A and 2B are external views showing the external appearance of the scanner 170. FIG.
As shown in FIGS. 2A and 2B, the scanner 170 includes a scanner main body 171, a cover 172, and a cover sheet 173.

スキャナー本体171は、略矩形箱状の筐体171aと、筐体171a内に埋設された撮像素子及び照明具と、筐体171aの上面に取り付けられたガラス板171bとを備えている。   The scanner main body 171 includes a substantially rectangular box-shaped housing 171a, an imaging device and a lighting tool embedded in the housing 171a, and a glass plate 171b attached to the upper surface of the housing 171a.

カバー172は、スキャナー本体171の筐体171aに回動自在に取着されている。オペレータが部品1をスキャナー170に設置するときには、そのカバー172は、スキャナー本体171のガラス板171bから離れた状態(開状態)にされ、オペレータが部品1を撮像しようとするときには、そのカバー172は、スキャナー本体171のガラス板171bを覆うような状態(閉状態)にされる。   The cover 172 is rotatably attached to the housing 171a of the scanner body 171. When the operator installs the component 1 on the scanner 170, the cover 172 is moved away from the glass plate 171b of the scanner main body 171 (open state), and when the operator tries to image the component 1, the cover 172 is Then, the scanner body 171 is brought into a state (closed state) so as to cover the glass plate 171b.

カバーシート173は、カバー172のガラス板171bと対向する面に取り付けられている。また、このカバーシート173は青色又は赤色であって、青色のカバーシート173と赤色のカバーシート173とは撮像対象の部品1の色に応じて使い分けられる。   The cover sheet 173 is attached to the surface of the cover 172 facing the glass plate 171b. The cover sheet 173 is blue or red, and the blue cover sheet 173 and the red cover sheet 173 are selectively used according to the color of the component 1 to be imaged.

オペレータは、部品1を撮像するときには、まず、その撮像対象の部品1の色が青色系か赤色系かを判別し、青色系でなければ、カバー172を開状態にして青色のカバーシート173をそのカバー172に取り付ける。そして、オペレータは、ガラス板171b上にその部品1を設置してカバー172を閉状態とする。このような状態でスキャナー170は、ガラス板171b上に設置された部品1をスキャナー本体171の照明具で照らし、撮像素子を移動させながら部品1をカラーで撮像することにより、背景が青色の部品1のカラー画像を生成する。一方、撮像対象の部品1が赤色系でなければ、オペレータは赤色のカバーシート173を上述と同様にカバー172に取り付け、部品1をガラス板171b上に設置する。このような状態でスキャナー170は、部品1をカラーで撮像することにより、背景が赤色の部品1のカラー画像を生成する。このように、背景が青色や赤色の単色となった部品1のカラー画像が生成される。   When the operator images the part 1, first, the operator determines whether the color of the part 1 to be imaged is blue or red, and if it is not blue, the cover 172 is opened and the blue cover sheet 173 is opened. The cover 172 is attached. Then, the operator places the component 1 on the glass plate 171b and closes the cover 172. In this state, the scanner 170 illuminates the component 1 installed on the glass plate 171b with the illuminator of the scanner body 171 and captures the component 1 in color while moving the image sensor, so that the component with a blue background is present. 1 color image is generated. On the other hand, if the component 1 to be imaged is not red, the operator attaches the red cover sheet 173 to the cover 172 in the same manner as described above, and installs the component 1 on the glass plate 171b. In such a state, the scanner 170 captures the part 1 in color, thereby generating a color image of the part 1 with a red background. In this way, a color image of the component 1 having a blue or red background is generated.

制御部120の入出力処理部122は、操作部110で受け付けられた操作内容を取得して、その操作内容を周辺機器制御部121や画像処理部123に出力する。また、入出力処理部122は、スキャナー170で生成されたカラー画像を取得し、そのカラー画像を画像処理部123に出力する。   The input / output processing unit 122 of the control unit 120 acquires the operation content received by the operation unit 110 and outputs the operation content to the peripheral device control unit 121 and the image processing unit 123. Further, the input / output processing unit 122 acquires a color image generated by the scanner 170 and outputs the color image to the image processing unit 123.

周辺機器制御部121は、操作部110で受け付けられた操作内容を、入出力処理部122を介して取得し、その操作内容に基づいてスキャナー170及び表示部130を制御する。   The peripheral device control unit 121 acquires the operation content received by the operation unit 110 via the input / output processing unit 122, and controls the scanner 170 and the display unit 130 based on the operation content.

画像処理部123は、スキャナー170で生成された部品のカラー画像に対して所定の処理を行って、部品等の外形が白黒の濃淡で表された白黒濃淡画像を生成し、その白黒濃淡画像を表示部130に表示させる。   The image processing unit 123 performs predetermined processing on the color image of the part generated by the scanner 170 to generate a black and white gray image in which the outer shape of the part is expressed by black and white shading, and the black and white gray image is displayed. It is displayed on the display unit 130.

具体的に、画像処理部123は、部品の外形を特定するための部品外形用の白黒濃淡画像(以下、部品白黒画像という)と、部品の電極の外形を特定するための電極外形用の白黒濃淡画像(以下、電極白黒画像という)とを生成する。部品白黒画像は、部品の外形を白黒の濃淡で表すものであり、電極白黒画像は、部品の電極の外形を白黒の濃淡で表すものであって、電極を白く、部品の電極以外の部分及び背景を黒く表す。   Specifically, the image processing unit 123 includes a monochrome image for component outline (hereinafter referred to as a component monochrome image) for specifying the outline of the component, and a monochrome image for electrode outline for specifying the outline of the electrode of the component. A grayscale image (hereinafter referred to as an electrode black and white image) is generated. The component black-and-white image represents the outer shape of the component with black and white shading, and the electrode black-and-white image represents the outer shape of the electrode of the component with black and white shading. The background is black.

また、画像処理部123は、操作部110で受け付けられた操作内容を入出力処理部122を介して取得し、その操作内容に基づいて、部品の外形や特徴的な寸法を示す部品教示データを作成するための作成条件を決定する。そして、画像処理部123は、白黒濃淡画像及び作成条件から部品教示データを作成する。   Further, the image processing unit 123 acquires the operation content received by the operation unit 110 via the input / output processing unit 122 and, based on the operation content, component teaching data indicating the external shape and characteristic dimensions of the component. Determine creation conditions for creation. Then, the image processing unit 123 creates component teaching data from the black and white grayscale image and the creation conditions.

作成条件は、例えば部品の電極タイプや、その電極の接地面の形状(以下、電極接地面形状という)などである。オペレータは、制御部120による制御に基づいて表示部130に表示される画面に従って操作部110を操作し、部品の電極タイプ及び電極接地面形状を入力する。   The creation conditions include, for example, the electrode type of the component, the shape of the ground plane of the electrode (hereinafter referred to as the electrode ground plane shape), and the like. The operator operates the operation unit 110 according to the screen displayed on the display unit 130 based on the control by the control unit 120, and inputs the electrode type and electrode ground plane shape of the part.

図3(a)〜図3(c)は、画像処理部123が作成条件を決定するために表示部130に表示させる画面の一例を示す画面表示図である。   FIG. 3A to FIG. 3C are screen display diagrams illustrating an example of a screen displayed on the display unit 130 in order for the image processing unit 123 to determine a creation condition.

画像処理部123は、図3(a)に示すように、「画像入力に必要な情報を設定してください」といったメッセージa1と、プルダウンメニューにより電極タイプの名称を選択表示するための電極タイプ欄a2と、電極タイプを図形から選択するための電極タイプ選択ボタンa3と、プルダウンメニューにより電極接地面形状の名称を選択表示するための面形状欄a4と、電極接地面形状を図形から選択するための面形状選択ボタンa5と、電極タイプ欄a2と面形状欄a4に表示された内容で作成条件を決定するように促す決定ボタンa6と、作成条件の決定を中止するように促すキャンセルボタンa7とを表示部130に表示させる。   As shown in FIG. 3A, the image processing unit 123 displays a message a1 such as “Please set information necessary for image input” and an electrode type field for selecting and displaying an electrode type name from a pull-down menu. a2, an electrode type selection button a3 for selecting an electrode type from a figure, a surface shape column a4 for selecting and displaying the name of the electrode ground plane shape from a pull-down menu, and a electrode ground plane shape for selecting from the figure A surface shape selection button a5, a determination button a6 that prompts the user to determine the creation conditions based on the contents displayed in the electrode type field a2 and the surface shape field a4, and a cancel button a7 that prompts to stop the determination of the creation conditions Is displayed on the display unit 130.

オペレータは、図3(a)に示す画面が表示されている場合、操作部110を操作することにより、部品の最も多い電極タイプを電極タイプ欄a2に、直接的に表示させるか、電極タイプ選択ボタンa3を用いて間接的に表示させる。   When the screen shown in FIG. 3A is displayed, the operator operates the operation unit 110 to directly display the electrode type with the largest number of parts in the electrode type column a2, or select the electrode type. Displayed indirectly using button a3.

間接的に表示させる場合、オペレータは電極タイプ選択ボタンa3を選択する。その選択の結果、表示部130は、図3(b)に示すように、例えば9つの電極タイプの図形を示す図形ボタンb1と、9つの電極タイプの名称を一覧形式で示す名称欄b2と、選択された図形ボタンb1により示される電極タイプを決定するように促すタイプ決定ボタンb3と、図形を利用した電極タイプの選択を中止するように促すタイプキャンセルボタンb4とを表示する。ここで、オペレータは、部品の電極タイプを示す図形を、9つの図形ボタンb1に表された図形の中から見つけ出し、操作部110を操作することにより、その図形が表された図形ボタンb1を選択する。図形ボタンb1が選択されると、名称欄b2に表示される各名称のうち、その選択された図形ボタンb1の示す電極タイプの名称が反転表示される。次に、オペレータが、操作部110を操作することによりタイプ決定ボタンb3を選択すると、表示部130は、再び図3(a)に示す画面を表示する。その画面中、電極タイプ欄a2には、上述のように選択された図形ボタンb1の示す電極タイプの名称が表示されている。このように、オペレータは、電極タイプ選択ボタンa3を用いることにより、部品の電極タイプの名称を知らなくても、その名称を図形から簡単に入力することができる。   When displaying indirectly, the operator selects the electrode type selection button a3. As a result of the selection, the display unit 130, as shown in FIG. 3B, for example, a graphic button b1 showing nine electrode type figures, a name column b2 showing the names of the nine electrode types in a list format, A type determination button b3 that prompts to determine the electrode type indicated by the selected graphic button b1 and a type cancel button b4 that prompts to stop the selection of the electrode type using the graphic are displayed. Here, the operator finds a figure indicating the electrode type of the part from the figures represented by the nine figure buttons b1, and operates the operation unit 110 to select the figure button b1 representing the figure. To do. When the graphic button b1 is selected, among the names displayed in the name column b2, the name of the electrode type indicated by the selected graphic button b1 is highlighted. Next, when the operator selects the type determination button b3 by operating the operation unit 110, the display unit 130 displays the screen illustrated in FIG. 3A again. In the screen, the electrode type column a2 displays the name of the electrode type indicated by the graphic button b1 selected as described above. Thus, by using the electrode type selection button a3, the operator can easily input the name from the figure without knowing the name of the electrode type of the part.

また、オペレータは、図3(a)に示す画面が表示されている場合、操作部110を操作することにより、部品の電極接地面形状を面形状欄a4に、直接的に表示させたり、面形状選択ボタンa5を用いて間接的に表示させる。   In addition, when the screen shown in FIG. 3A is displayed, the operator operates the operation unit 110 to directly display the electrode ground surface shape of the part in the surface shape column a4, Displayed indirectly using the shape selection button a5.

間接的に表示させる場合、オペレータは面形状選択ボタンa5を選択する。その選択の結果、表示部130は、図3(c)に示すように、例えば2つの電極接地面形状を示す図形c1と、各図形c1に対応するチェックボックスc2と、チェックされたチェックボックスc2に対応する電極接地面形状を決定するように促す面形状決定ボタンc3と、図形を利用した電極接地面形状の選択を中止するように促す面形状キャンセルボタンc4とを表示する。ここで、オペレータは、部品の電極接地面形状を示す図形を、2つの図形c1の中から見つけ出し、操作部110を操作することにより、その図形に対応するチェックボックスc2にチェックを行う(黒点を入力する)。次に、オペレータが、操作部110を操作することにより面形状決定ボタンc3を選択すると、表示部130は、再び図3(a)に示す画面を表示する。その画面中、面形状欄a4には、上述のようにチェックされたチェックボックスc2に対応する電極接地面形状の名称が表示されている。このように、オペレータは、面形状選択ボタンa5を用いることにより、部品の電極接地面形状の名称を知らなくても、その名称を図形から簡単に入力することができる。   When displaying indirectly, the operator selects the surface shape selection button a5. As a result of the selection, as shown in FIG. 3C, the display unit 130 displays, for example, a figure c1 indicating two electrode ground plane shapes, a check box c2 corresponding to each figure c1, and a checked check box c2. A surface shape determination button c3 that prompts the user to determine the electrode grounding surface shape corresponding to 1 and a surface shape cancel button c4 that prompts the user to stop selecting the electrode grounding surface shape using the graphic are displayed. Here, the operator finds a figure indicating the electrode ground plane shape of the part from the two figures c1 and operates the operation unit 110 to check the check box c2 corresponding to the figure (the black dot is set). input). Next, when the operator selects the surface shape determination button c3 by operating the operation unit 110, the display unit 130 displays the screen illustrated in FIG. 3A again. In the screen, the surface shape column a4 displays the name of the electrode ground plane shape corresponding to the check box c2 checked as described above. Thus, by using the surface shape selection button a5, the operator can easily input the name from the figure without knowing the name of the electrode ground surface shape of the component.

このように、図3(a)に示す画面の電極タイプ欄a2及び面形状欄a4に、電極タイプ及び電極接地面形状のそれぞれの名称が選択表示された状態で、オペレータが決定ボタンa6を選択すると、その選択表示された名称の電極タイプ及び電極接地面形状が、部品教示データの作成条件として決定される。   Thus, the operator selects the decision button a6 in the state where the names of the electrode type and the electrode ground plane shape are selected and displayed in the electrode type column a2 and the surface shape column a4 of the screen shown in FIG. Then, the electrode type and electrode ground plane shape of the selected and displayed name are determined as the component teaching data creation conditions.

画像処理部123は、このように決定された作成条件と白黒濃淡画像とから、部品の寸法測定すべき部位やその測定処理方法などを示すアルゴリズムを特定する。そして、画像処理部123は、部品における上記部位の寸法、つまり特徴的な寸法を、そのアルゴリズムを用いて白黒濃淡画像から測定し、その特徴的な寸法や部品の形状を示す部品教示データを作成する。また、画像処理部123は、その部品教示データを表示部130に表示させる。   The image processing unit 123 specifies an algorithm indicating a part to be dimension-measured, a measurement processing method thereof, and the like from the creation conditions determined in this way and the black and white grayscale image. Then, the image processing unit 123 measures the dimension of the part in the part, that is, the characteristic dimension from the black and white grayscale image using the algorithm, and creates part teaching data indicating the characteristic dimension and the shape of the part. To do. In addition, the image processing unit 123 causes the display unit 130 to display the component teaching data.

このような部品教示データは、部品を基板に実装する部品実装装置において、部品の位置ずれの認識などのために用いられる。即ち、部品実装装置は、部品を基板に実装するときには、その部品をヘッドで吸着して基板上の所定の部位まで搬送し、その部位に部品を実装するが、その搬送の途中でヘッドに吸着された部品をカメラで撮像する。そして、部品実装装置は、その撮像結果と上述の部品教示データとから部品の位置ずれを認識し、その位置ずれを解消するようにヘッド等を駆動させる。これにより、基板の所定の部位に部品を正確に実装することができるのである。   Such component teaching data is used for recognizing misalignment of components in a component mounting apparatus that mounts components on a substrate. That is, when a component mounting apparatus mounts a component on a board, the component is sucked by the head and transported to a predetermined part on the substrate, and the component is mounted on the part. The captured part is imaged with a camera. Then, the component mounting apparatus recognizes the positional deviation of the component from the imaging result and the above-described component teaching data, and drives the head or the like so as to eliminate the positional deviation. Thereby, components can be accurately mounted on a predetermined portion of the board.

図4は、部品自動教示装置100の全体的な動作を示すフロー図である。
まず、部品自動教示装置100は、オペレータによる操作に基づいて作成条件を決定する(ステップS100)。
FIG. 4 is a flowchart showing the overall operation of the component automatic teaching apparatus 100.
First, the component automatic teaching apparatus 100 determines a creation condition based on an operation by an operator (step S100).

次に、部品自動教示装置100は、部品をカラーで撮像することによりカラー画像を生成し(ステップS101)、そのカラー画像から部品白黒画像を生成するとともに(ステップS102)、そのカラー画像から電極白黒画像を生成する(ステップS104)。即ち、このステップS102およびS104では、部品自動教示装置100は、部品のカラー画像を、部品の形態が白黒の濃淡で表された白黒濃淡画像に変換する。   Next, the component automatic teaching apparatus 100 generates a color image by imaging the component in color (step S101), generates a component black-and-white image from the color image (step S102), and generates an electrode monochrome from the color image. An image is generated (step S104). In other words, in steps S102 and S104, the component automatic teaching apparatus 100 converts the color image of the component into a black and white grayscale image in which the shape of the component is expressed in black and white.

そして、部品自動教示装置100は、部品白黒画像及び電極白黒画像から、部品の外形や、その部品の電極の外形を検出する(ステップS106)。このような外形の検出は、白黒の濃淡値の差分から検出される。またこのとき、部品自動教示装置100は、ステップS100で決定された作成条件などを参考に、所定のアルゴリズムを特定する。   Then, the automatic component teaching apparatus 100 detects the external shape of the component and the external shape of the electrode of the component from the component black and white image and the electrode black and white image (step S106). Such detection of the outer shape is detected from the difference between the grayscale values of black and white. At this time, the automatic component teaching apparatus 100 identifies a predetermined algorithm with reference to the creation conditions determined in step S100.

最後に、部品自動教示装置100は、検出した部品の外形や電極の外形から、上記所定のアルゴリズムを用いて、部品の特徴的な寸法を測定し、その測定結果を示す部品教示データを生成する(ステップS108)。   Finally, the component automatic teaching apparatus 100 measures the characteristic dimensions of the component from the detected component outer shape and electrode outer shape using the predetermined algorithm, and generates component teaching data indicating the measurement result. (Step S108).

ここで、上述のステップS102における、クロマキー技術を用いた部品白黒画像の生成方法について詳細に説明する。   Here, a method for generating a component black-and-white image using the chroma key technique in step S102 described above will be described in detail.

図5は、本実施の形態の部品白黒画像の生成方法を説明するための説明図である。
画像処理部123は、スキャナー170から部品のカラー画像を取得して、その背景が青色又は赤色のカラー画像から、部品が白く背景が黒い部品白黒画像を生成する。そして、画像処理部123は、その部品白黒画像に対して伸張処理を行うことで、部品と背景のコントラストを高める。ここで、カラー画像から最初に生成される部品白黒画像を、中間部品白黒画像といい、伸張処理して生成された部品白黒画像を、最終部品白黒画像という。
FIG. 5 is an explanatory diagram for explaining a method for generating a component black-and-white image according to the present embodiment.
The image processing unit 123 acquires a color image of a component from the scanner 170, and generates a monochrome image of the component with a white component and a black background from a blue or red color image. The image processing unit 123 increases the contrast between the component and the background by performing an expansion process on the component black-and-white image. Here, the component monochrome image generated first from the color image is referred to as an intermediate component monochrome image, and the component monochrome image generated by the decompression process is referred to as a final component monochrome image.

具体的に、画像処理部123は、カラー画像から中間部品白黒画像を生成するときには、各画素に対して、例えば256階調のRGBの濃淡値(RGB値)を、256階調の白黒の濃淡値に変換する。   Specifically, when the image processing unit 123 generates an intermediate component black-and-white image from a color image, for example, for each pixel, an RGB gradation value (RGB value) of 256 gradations, and a monochrome gradation of 256 gradations. Convert to value.

画像処理部123は、カラー画像の背景が青色であることを認識すると、青色変換式X=((R+G)/2−B)/2+128)を用いて、カラー画像の各画素が示すRGB値を、256階調の白黒の濃淡値Xに変換する。ここで、Rは赤色の256階調の濃淡値を示し、Gは緑色の256階調の濃淡値を示し、Bは青色の256階調の濃淡値を示す。また、(R+G)/2−Bは、当該画素の青色らしさを示すものであって、青色らしさが強ければ小さな値を示す。また、濃淡値Xが大きい画素は、白色が強くなるように表され、濃淡値Xが小さい画素は、黒色が強くなるように表される。   When recognizing that the background of the color image is blue, the image processing unit 123 uses the blue conversion formula X = ((R + G) / 2−B) / 2 + 128) to calculate the RGB value indicated by each pixel of the color image. It is converted into a black and white grayscale value X of 256 gradations. Here, R represents the gray value of 256 gradations of red, G represents the gradation value of 256 gradations of green, and B represents the gradation value of 256 gradations of blue. Further, (R + G) / 2−B indicates the blueness of the pixel, and indicates a small value if the blueness is strong. In addition, a pixel having a large gray value X is represented so that white is strong, and a pixel having a small gray value X is represented so that black is strong.

例えば、画像処理部123は、カラー画像に含まれる画素が黄色ければ、その画素のRGB値は(255,255,0)であるから、そのRGB値(255,255,0)を、X=((255+255)/2−0)/2+128=255の白黒の濃淡値に変換する。また、画像処理部123は、カラー画像に含まれる画素が緑色であれば、その画素のRGB値は(0,255,0)であるから、そのRGB値をX=((0+255)/2−0)/2+128=192の白黒の濃淡値に変換する。これと同様に、画像処理部123は、カラー画像に含まれる画素が白色であれば、その画素のRGB値(255,255,255)を、X=128の白黒の濃淡値に変換し、カラー画像に含まれる画素が紺色であれば、その画素のRGB値(0,0,160)を、X=48の白黒の濃淡値に変換し、カラー画像に含まれる画素が青色であれば、その画素のRGB値(0,0,255)を、X=0の白黒の濃淡値に変換する。   For example, if the pixel included in the color image is yellow, the RGB value of the pixel is (255, 255, 0), and the image processing unit 123 sets the RGB value (255, 255, 0) to X = Conversion into a monochrome gray value of ((255 + 255) / 2-0) / 2 + 128 = 255. Further, if the pixel included in the color image is green, the image processing unit 123 has the RGB value of the pixel as (0, 255, 0), and therefore the RGB value is set to X = ((0 + 255) / 2−. 0) / 2 + 128 = 192 to convert to black and white grayscale value. Similarly, if the pixel included in the color image is white, the image processing unit 123 converts the RGB value (255, 255, 255) of the pixel into a black and white grayscale value of X = 128, and the color If the pixel included in the image is dark blue, the RGB value (0, 0, 160) of the pixel is converted into a black and white gray value of X = 48, and if the pixel included in the color image is blue, The RGB value (0, 0, 255) of the pixel is converted into a black and white gray value of X = 0.

また、画像処理部123は、カラー画像の背景が赤色であることを認識すると、赤色変換式(X=((B+G)/2−R)/2+128)を用いて、カラー画像の各画素が示すRGB値を、256階調の白黒の濃淡値Xに変換する。ここで、(B+G)/2−Rは、当該画素の赤色らしさを示すものであって、赤色らしさが強ければ小さな値を示す。また、上述と同様、濃淡値Xが大きい画素は、白色が強くなるように表され、濃淡値Xが小さい画素は、黒色が強くなるように表される。   Further, when the image processing unit 123 recognizes that the background of the color image is red, each pixel of the color image indicates using a red conversion formula (X = ((B + G) / 2−R) / 2 + 128). The RGB value is converted into a black and white grayscale value X of 256 gradations. Here, (B + G) / 2−R indicates the redness of the pixel, and indicates a small value if the redness is strong. Similarly to the above, pixels with a large shading value X are represented so that white is strong, and pixels with a small shading value X are represented so that black is strong.

このように、青色系でない部品に対しては、背景が青色のカラー画像から、上記青色変換式により中間部品白黒画像が生成され、赤色系でない部品に対しては、背景が赤色のカラー画像から、上記赤色変換式により中間部品白黒画像が生成されため、部品と背景とのコントラストを高くすることができる。   In this way, for a non-blue component, an intermediate component monochrome image is generated from the blue background color image by the blue conversion formula, and for a non-red component, a red background image is used. Since the intermediate part black-and-white image is generated by the red conversion formula, the contrast between the part and the background can be increased.

次に、画像処理部123は、伸張処理を行うときには、中間部品白黒画像に含まれる各画素の濃淡値の中から、白黒の明瞭さを特徴付ける基準の濃淡値(以下、基準濃淡値という)と最大の濃淡値(以下、最大濃淡値という)とを検索する。そして、画像処理部123は、その基準濃淡値から最大濃淡値までの幅を、0〜255の幅に伸張する。   Next, when performing the expansion process, the image processing unit 123 uses a reference gray value (hereinafter referred to as a reference gray value) that characterizes black and white clarity from the gray value of each pixel included in the intermediate component black and white image. The maximum gray value (hereinafter referred to as the maximum gray value) is searched. Then, the image processing unit 123 expands the width from the reference gray value to the maximum gray value to a width of 0 to 255.

図6は、伸張処理の一例を説明するための説明図である。
画像処理部123は、中間部品白黒画像に含まれる各画素の濃淡値の中から、基準濃淡値aと最大濃淡値bを見つけると、その濃淡値a〜bの幅を、0〜255の幅に伸張する。
FIG. 6 is an explanatory diagram for explaining an example of the decompression process.
When the image processing unit 123 finds the reference gray value a and the maximum gray value b from the gray values of each pixel included in the intermediate component black-and-white image, the width of the gray values a to b is set to a width of 0 to 255. Stretch to.

具体的に、画像処理部123は、各画素ごとに、中間部品白黒画像の伸張処理前の基準濃淡値a以上の濃淡値Xを、伸張処理後の濃淡値X1=255(X−a)/(b−a)に変換し、基準濃淡値aより小さい濃淡値Xを濃淡値X1=0(256階調の最小値)に変換する。   Specifically, the image processing unit 123 sets, for each pixel, a gray value X that is equal to or greater than the reference gray value a before the expansion process of the intermediate component black and white image, and a gray value X1 = 255 (X−a) / (B−a), and the gray value X smaller than the standard gray value a is converted into the gray value X1 = 0 (the minimum value of 256 gradations).

このような伸張処理により、部品と背景のコントラストをさらに高くすることができる。   By such a stretching process, the contrast between the component and the background can be further increased.

ここで、基準濃淡値aは、濃淡値のヒストグラムを用いて検索される。
図7は、基準濃淡値aを検索する方法を説明するための説明図である。
Here, the reference gray value a is searched using a histogram of gray values.
FIG. 7 is an explanatory diagram for explaining a method of searching for the reference gray value a.

画像処理部123は、中間部品白黒画像における各濃淡値に対する画素数を表すヒストグラムを作成する。ヒストグラムを作成した画像処理部123は、そのヒストグラムの濃淡値が高い集団、つまり白色が強い集団から、最も画素数の多い濃淡値cを特定する。そして、画像処理部123は、例えば、その濃淡値cの60%を基準濃淡値aとする。   The image processing unit 123 creates a histogram representing the number of pixels for each gray value in the intermediate component black and white image. The image processing unit 123 that has created the histogram identifies the gray value c having the largest number of pixels from a group having a high gray value in the histogram, that is, a group having a strong white color. Then, for example, the image processing unit 123 sets 60% of the gray value c as the reference gray value a.

このように本実施の形態では、中間部品白黒画像の濃淡の幅を広げるため、部品の外形と背景との濃淡の差を大きくして、部品の外形をより明瞭にすることができる。また、中間部品白黒画像に含まれる各画素の濃淡値のうち、基準濃淡値aより小さい濃淡値を全て0とするため、256階調という濃淡値の幅の制限があっても、その制限範囲内で中間部品白黒画像の有効な部分の濃淡の幅を広げることができる。   As described above, in this embodiment, since the width of the shade of the intermediate part black-and-white image is widened, the difference in shade between the outline of the part and the background can be increased to make the outline of the part clearer. Further, among the gray values of each pixel included in the intermediate part black-and-white image, all the gray values smaller than the reference gray value a are set to 0. It is possible to widen the shade width of the effective portion of the intermediate part black-and-white image.

図8は、画像処理部123が部品の最終部品白黒画像を生成する動作(図4のステップS102の動作)を示すフロー図である。   FIG. 8 is a flowchart showing the operation of the image processing unit 123 generating the final component black-and-white image of the component (the operation in step S102 in FIG. 4).

まず、画像処理部123は、スキャナー170からカラー画像を取得し(ステップS200)、そのカラー画像を中間部品白黒画像に変換する(ステップS202)。次に、画像処理部123は、中間部品白黒画像から基準濃淡値a及び最大濃淡値bを検索し(ステップS204)、その基準濃淡値a及び最大濃淡値bを用いて中間部品白黒画像に対して伸張処理を行う(ステップS206)。その結果、コントラストの高い部品の最終部品白黒画像が生成される。   First, the image processing unit 123 acquires a color image from the scanner 170 (step S200), and converts the color image into an intermediate component monochrome image (step S202). Next, the image processing unit 123 retrieves the reference gray value a and the maximum gray value b from the intermediate component black-and-white image (step S204), and uses the reference gray value a and the maximum gray value b for the intermediate component black-and-white image. The decompression process is performed (step S206). As a result, a final part black-and-white image of a part with high contrast is generated.

このように本実施の形態では、背景が青色又は赤色である部品のカラー画像を部品白黒画像に変換するため、背景色に着目した青色変換式又は赤色変換式を利用することで、部品の外形と背景との濃淡の差を大きくして、部品白黒画像における部品の外形を明瞭にすることができる。さらに、本実施の形態では、スキャナー170を市販品のスキャナーとし、制御部120及び操作部110並びに表示部130をパーソナルコンピュータなどで構成することができるため、画像生成のコストを抑えることができる。また本実施の形態の部品自動教示装置100では、最終部品白黒画像から外形を検出して、その外形から部品の寸法を測定するため、カラー画像から直接的に外形を検出する場合と比べて、寸法の測定処理にかかる負担を軽減することができる。   As described above, in this embodiment, in order to convert a color image of a component whose background is blue or red into a component black-and-white image, the external shape of the component is obtained by using a blue conversion formula or a red conversion formula focusing on the background color. The outline of the part in the part black-and-white image can be clarified by increasing the difference in shading between the background and the background. Furthermore, in the present embodiment, since the scanner 170 is a commercially available scanner, and the control unit 120, the operation unit 110, and the display unit 130 can be configured by a personal computer or the like, the cost of image generation can be suppressed. Further, in the component automatic teaching apparatus 100 of the present embodiment, the outer shape is detected from the final component black-and-white image, and the dimensions of the component are measured from the outer shape. Therefore, compared with the case of detecting the outer shape directly from the color image, The burden on the dimension measurement process can be reduced.

なお、本実施の形態では、部品が白色になり背景が黒色になるように部品白黒画像を生成したが、部品が黒色になり背景が白色になるように部品白黒画像を生成してもよい。   In this embodiment, the component monochrome image is generated so that the component is white and the background is black. However, the component monochrome image may be generated so that the component is black and the background is white.

次に、上述のステップS104における、電極白黒画像の生成方法について詳細に説明する。   Next, the method for generating an electrode black-and-white image in step S104 described above will be described in detail.

図9は、本実施の形態における電極白黒画像の生成方法を説明するための説明図である。   FIG. 9 is an explanatory diagram for explaining a method for generating an electrode black-and-white image according to the present embodiment.

画像処理部123は、スキャナー170から部品のカラー画像を取得し、電極強調変換式を用いることで、そのカラー画像を電極白黒画像に変換する。この電極強調変換式により、電極白黒画像において、部品の電極が白くその他の部分及び背景が黒くなるように、カラー画像中の白色に近い色ほど白黒の濃淡によって際立たせることができる。そして、画像処理部123は、その電極白黒画像に対してフィルタリング処理を行うことでノイズを除去し、さらに、伸張処理を行うことで、部品の電極とその他の部分とのコントラストを高める。ここで、カラー画像から最初に生成される電極白黒画像を、第1中間電極白黒画像といい、フィルタリング処理して生成された電極白黒画像を、第2中間電極白黒画像といい、伸張処理して生成された電極白黒画像を、最終電極白黒画像という。   The image processing unit 123 acquires a color image of a component from the scanner 170, and converts the color image into an electrode monochrome image by using an electrode enhancement conversion formula. By this electrode emphasis conversion formula, in the electrode black-and-white image, it is possible to make the color close to white in the color image stand out by black and white shading so that the electrode of the component is white and the other portions and the background are black. Then, the image processing unit 123 removes noise by performing a filtering process on the electrode black and white image, and further performs a decompression process to increase the contrast between the electrode of the component and other parts. Here, the electrode black and white image generated first from the color image is referred to as the first intermediate electrode black and white image, and the electrode black and white image generated by the filtering process is referred to as the second intermediate electrode black and white image, which is expanded. The generated electrode monochrome image is referred to as a final electrode monochrome image.

具体的に、画像処理部123は、カラー画像から第1中間電極白黒画像を生成するときには、まず、RGB表色系で表されるカラー画像を、Lab表色系で表されるカラー画像に変換する。   Specifically, when generating the first intermediate electrode black-and-white image from the color image, the image processing unit 123 first converts the color image represented by the RGB color system into a color image represented by the Lab color system. To do.

図10は、RGB表色系とLab表色系を説明するための説明図である。
スキャナー170から出力されるカラー画像が例えばBMP(Bit Map)形式で構成されているときには、そのカラー画像はRGB表色系で表されている。即ち、そのカラー画像に含まれる各画素は、赤色の濃淡値Rと、緑色の濃淡値Gと、青色の濃淡値Bとから構成されるRGB値を有し、そのRGB値により特定される色を表す。
FIG. 10 is an explanatory diagram for explaining the RGB color system and the Lab color system.
When the color image output from the scanner 170 is configured in, for example, the BMP (Bit Map) format, the color image is expressed in the RGB color system. That is, each pixel included in the color image has an RGB value composed of a red shade value R, a green shade value G, and a blue shade value B, and is a color specified by the RGB value. Represents.

Lab表色系のカラー画像に含まれる各画素は、明るさを示すL値と、色度を示すa値及びb値とから構成されるLab値を有し、そのLab値により特定される色を表す。ここで、a軸は赤色から緑色までの色の範囲を示し、b軸は黄色から青色までの色の範囲を示す。つまり、画像処理部123は、スキャナー170から取得したカラー画像の各画素が示すRGB値をLab値に変換する。   Each pixel included in a color image of the Lab color system has a Lab value composed of an L value indicating brightness and an a value and a b value indicating chromaticity, and is a color specified by the Lab value. Represents. Here, the a-axis indicates a color range from red to green, and the b-axis indicates a color range from yellow to blue. That is, the image processing unit 123 converts the RGB value indicated by each pixel of the color image acquired from the scanner 170 into a Lab value.

次に、画像処理部123は、電極強調変換式X=L×(100−(a2+b2)1/2)を用いて、Lab表色系のカラー画像に含まれる画素ごとに、その画素が示すLab値を白黒の濃淡値Xに変換する。その結果、第1中間電極白黒画像が生成される。なお、L値は0〜100までの値をとり、a値及びb値はそれぞれ−100〜+100までの値をとり、電極強調変換式の定数100は、a値及びb値などのとり得る数値範囲に応じて決定される。   Next, the image processing unit 123 uses the electrode enhancement conversion formula X = L × (100− (a2 + b2) 1/2), and for each pixel included in the color image of the Lab color system, the Lab indicated by the pixel is displayed. The value is converted into a black and white gray value X. As a result, a first intermediate electrode monochrome image is generated. The L value takes a value from 0 to 100, the a value and the b value take values from −100 to +100, respectively, and the constant 100 of the electrode emphasis conversion formula is a numerical value that can take a value, b value, etc. It is determined according to the range.

図11は、一般的な部品(電子部品)に含まれる各色の分布を示す図である。
一般的な部品を表すLab表色系のカラー画像に含まれる各画素は、図11の(a)に示すように分布する。
FIG. 11 is a diagram illustrating the distribution of each color included in a general component (electronic component).
Each pixel included in the color image of the Lab color system representing a general part is distributed as shown in FIG.

即ち、部品の電極に対応する画素は、明るい無彩色であるため、L値が大きく、a値及びb値が0に近い付近に分布する。また、部品の電極以外の大部分は暗い色が多いため、その部分に対応する多くの画素は、L値が小さい付近に分布する。   That is, since the pixels corresponding to the electrodes of the component are bright achromatic colors, the L value is large and the a value and the b value are distributed in the vicinity of 0. Further, since most of the parts other than the electrode of the part have many dark colors, many pixels corresponding to the part are distributed in the vicinity of a small L value.

ここで、画像処理部123が、上述のカラー画像に含まれる各画素のLab値を、電極強調変換式を用いて濃淡値Xに変換すると、そのカラー画像に含まれるLab表色系の色を表していた各画素は、図11の(b)に示すように分布する。即ち、白色に近い色を表していた電極に対応する画素は、濃淡値Xの大きい領域に分布し、黒色などの暗い色を表していたパッケージや背景に対応する画素は、濃淡値Xの小さい領域に多く分布する。したがって、このような変換式により生成された第1中間電極白黒画像では、部品の電極が白く、その他の部分や背景が黒くなるように、その電極が際立って表示される。即ち、部品の電極の外形を明瞭にすることができる。   Here, when the image processing unit 123 converts the Lab value of each pixel included in the above-described color image into the gray value X using the electrode emphasis conversion formula, the Lab color system color included in the color image is converted. Each represented pixel is distributed as shown in FIG. In other words, pixels corresponding to electrodes representing a color close to white are distributed in a region having a large gray value X, and pixels corresponding to a package or background representing a dark color such as black are small in gray value X. Many are distributed in the area. Therefore, in the first intermediate electrode black-and-white image generated by such a conversion formula, the electrodes are displayed prominently so that the electrode of the component is white and the other portions and the background are black. That is, the outer shape of the electrode of the component can be clarified.

画像処理部123は、第1中間電極白黒画像から第2中間電極白黒画像を生成するときには、第1中間電極白黒画像に対してメディアンフィルタによるフィルタリング処理を行う。即ち、画像処理部123は、第1中間電極白黒画像において、注目画素を中心に含む3×3の画素のそれぞれの濃淡値Xを小さい順に並べて、その中央に位置する濃淡値Xを注目画素の濃淡値Xとする。画像処理部123は各画素を注目画素としてこのような処理を行うことで、第2中間電極白黒画像を生成する。   When generating the second intermediate electrode monochrome image from the first intermediate electrode monochrome image, the image processing unit 123 performs a filtering process using a median filter on the first intermediate electrode monochrome image. That is, the image processing unit 123 arranges the gray values X of 3 × 3 pixels including the target pixel in the first intermediate electrode monochrome image in ascending order, and sets the gray value X located in the center of the target pixel as the target pixel. A gray value X is assumed. The image processing unit 123 performs such processing with each pixel as a target pixel, thereby generating a second intermediate electrode monochrome image.

このようなフィルタリング処理により、第2電極白黒画像に対するノイズの影響を抑えて、部品の電極の外形をより明瞭にすることができる。また、比較的小さい電極に対しては、ノイズによる影響を大幅に抑えることができる。   By such filtering processing, it is possible to suppress the influence of noise on the second electrode black-and-white image and make the outer shape of the electrode of the component clearer. In addition, the influence of noise can be greatly suppressed for relatively small electrodes.

次に、画像処理部123は、伸張処理を行うときには、第2中間電極白黒画像に含まれる各画素の濃淡値の中から、白黒の明瞭さを特徴付ける基準の濃淡値(以下、基準濃淡値という)と最大の濃淡値(以下、最大濃淡値という)とを検索する。そして、画像処理部123は、その基準濃淡値から最大濃淡値までの幅を、0〜255の幅に伸張する。このような伸張処理は、図6および図7を用いて説明した伸張処理と同様に行われる。   Next, when performing the expansion process, the image processing unit 123 selects a reference gray value (hereinafter referred to as a reference gray value) that characterizes black and white clarity from the gray value of each pixel included in the second intermediate electrode black and white image. ) And the maximum gray value (hereinafter referred to as the maximum gray value). Then, the image processing unit 123 expands the width from the reference gray value to the maximum gray value to a width of 0 to 255. Such decompression processing is performed in the same manner as the decompression processing described with reference to FIGS.

このように本実施の形態では、第2中間電極白黒画像の濃淡の幅を広げるため、部品の電極の外形とその他の部分及び背景との濃淡の差を大きくして、部品の電極の外形をより明瞭にすることができる。また、第2中間電極白黒画像に含まれる各画素の濃淡値のうち、基準濃淡値aより小さい濃淡値を全て0とするため、256階調という濃淡値の幅の制限があっても、その制限範囲内で第2中間電極白黒画像の有効な部分の濃淡の幅を広げることができる。   As described above, in this embodiment, in order to widen the shade width of the second intermediate electrode black and white image, the difference in shade between the outer shape of the component electrode and the other portions and the background is increased, and the outer shape of the electrode of the component is increased. It can be made clearer. Further, among the gray values of each pixel included in the second intermediate electrode black and white image, all the gray values smaller than the reference gray value a are set to 0. Within the limit range, the shade width of the effective portion of the second intermediate electrode monochrome image can be widened.

図12は、画像処理部123が部品の最終電極白黒画像を生成する動作(図4のステップS104の動作)を示すフロー図である。   FIG. 12 is a flowchart showing the operation of the image processing unit 123 for generating the final electrode monochrome image of the component (the operation in step S104 in FIG. 4).

まず、画像処理部123は、スキャナー170からカラー画像を取得し(ステップS300)、そのカラー画像の表色系をRGB表色系からLab表色系に変換する(ステップS302)。次に、画像処理部123は、電極強調変換式を用いて、カラー画像に含まれる各画素の示すLab値を白黒の濃淡値Xに変換することで、第1中間電極白黒画像を生成する(ステップS304)。   First, the image processing unit 123 acquires a color image from the scanner 170 (Step S300), and converts the color system of the color image from the RGB color system to the Lab color system (Step S302). Next, the image processing unit 123 generates a first intermediate electrode black-and-white image by converting the Lab value indicated by each pixel included in the color image into a black and white grayscale value X using an electrode enhancement conversion formula ( Step S304).

そして、画像処理部123は、第1中間電極白黒画像に対してフィルタリング処理を行うことで、第2中間電極白黒画像を生成し(ステップS306)、その第2中間電極白黒画像から基準濃淡値a及び最大濃淡値bを検索する(ステップS308)。次に、画像処理部123は、その基準濃淡値a及び最大濃淡値bを用いて第2中間電極白黒画像に対して伸張処理を行うことで、最終電極白黒画像を生成する(ステップS310)。   Then, the image processing unit 123 performs a filtering process on the first intermediate electrode black and white image to generate a second intermediate electrode black and white image (step S306), and the reference gray value a from the second intermediate electrode black and white image. And the maximum gray value b is searched (step S308). Next, the image processing unit 123 performs a decompression process on the second intermediate electrode black and white image using the reference gray value a and the maximum gray value b, thereby generating a final electrode black and white image (step S310).

このように本実施の形態では、カラー画像に写る部品の電極は無彩色の明るい色であって白色に近く、このようなカラー画像が、白色に近い色ほど際立つような電極白黒画像に変換されるため、その電極白黒画像において部品の電極の外形を明瞭にすることができる。さらに、本実施の形態では、スキャナー170を市販品のスキャナーとし、制御部120及び操作部110並びに表示部130をパーソナルコンピュータなどで構成することができるため、画像生成のコストを抑えることができる。また本実施の形態の部品自動教示装置100では、最終電極白黒画像から外形を検出して、その外形から部品の電極等の寸法を測定するため、カラー画像から直接的に外形を検出する場合と比べて、寸法の測定処理にかかる負担を軽減することができる。   As described above, in the present embodiment, the electrode of the component that appears in the color image is an achromatic bright color that is close to white, and such a color image is converted into an electrode black-and-white image in which the color close to white is more conspicuous. Therefore, the outer shape of the electrode of the component can be clarified in the electrode black and white image. Furthermore, in the present embodiment, since the scanner 170 is a commercially available scanner, and the control unit 120, the operation unit 110, and the display unit 130 can be configured by a personal computer or the like, the cost of image generation can be suppressed. In the automatic component teaching apparatus 100 according to the present embodiment, the outer shape is detected from the final electrode black-and-white image, and the dimensions of the electrode of the component are measured from the outer shape. In comparison, the burden on the dimension measurement process can be reduced.

なお、本実施の形態では、部品の電極が白色になりその他の部分が黒色になるように部品白黒画像を生成したが、部品の電極が黒色になりその他の部分が白色になるように電極白黒画像を生成してもよい。   In this embodiment, the component black-and-white image is generated so that the electrode of the component is white and the other portions are black. However, the black and white electrode is generated so that the electrode of the component is black and the other portions are white. An image may be generated.

また、本実施の形態における電極白黒画像の生成では、部品のカラー画像の背景の色は、白色に近い色でなければよく、青色や赤色、緑色などであってもよい。   Further, in the generation of the electrode black-and-white image in the present embodiment, the color of the background of the color image of the component need not be close to white, and may be blue, red, green, or the like.

また、本実施の形態における電極白黒画像の生成では、カラー画像に含まれる白色に近い色ほど、白くなるように電極白黒画像を生成したが、さらに、その電極白黒画像に含まれる極端に白い部分を黒くしても良い。例えば、ボディが白色の部品1のカラー画像を、上述の電極強調変換式を用いて電極白黒画像に変換すると、その電極白黒画像では、部品1の電極のみならずボディも白くなってしまい、電極の外形を検出することが困難になってしまうことがある。そこで、実際の電極の色(銀色)が白色よりも暗い色であることを利用して、その電極白黒画像に含まれる各画素の濃淡値のうち、電極に対応する画素の濃淡値よりも大きい濃淡値を、最小の濃淡値(X=0)に変換する。即ち、電極に対応する画素よりも白い画素を、黒くしてしまうのである。   In addition, in the generation of the electrode monochrome image in the present embodiment, the electrode monochrome image is generated so that the closer to the white color included in the color image, the whiter the electrode monochrome image is. However, the extremely white portion included in the electrode monochrome image is further generated. May be blackened. For example, when a color image of the component 1 having a white body is converted into an electrode monochrome image using the above-described electrode enhancement conversion formula, not only the electrode of the component 1 but also the body becomes white in the electrode monochrome image. It may be difficult to detect the outer shape of the. Therefore, using the fact that the actual electrode color (silver) is darker than white, the gray value of each pixel included in the electrode monochrome image is larger than the gray value of the pixel corresponding to the electrode. The gray value is converted to the minimum gray value (X = 0). That is, pixels that are whiter than the pixels corresponding to the electrodes are blackened.

例えば、電極白黒画像において、銀色の電極に対応する画素の濃淡値が240であって、白色のボディに対応する画素の濃淡値が255であるような場合、その電極白黒画像から電極の外形を検出するのは困難である。ところが、上述のように、その電極白黒画像に含まれる各画素の濃淡値のうち250以上の濃淡値を0に変換すると、変換後の電極白黒画像において、電極に対応する画素の濃淡値は240である一方、ボディに対応する画素の濃淡値は0であるため、電極だけが強調され、その電極白黒画像から電極の外形を容易に検出することができる。   For example, in an electrode black-and-white image, if the gray value of a pixel corresponding to a silver electrode is 240 and the gray value of a pixel corresponding to a white body is 255, the outer shape of the electrode is determined from the electrode black-and-white image. It is difficult to detect. However, as described above, when the gray value of 250 or more among the gray values of each pixel included in the electrode black and white image is converted to 0, the gray value of the pixel corresponding to the electrode in the converted electrode black and white image is 240. On the other hand, since the gray value of the pixel corresponding to the body is 0, only the electrode is emphasized, and the outer shape of the electrode can be easily detected from the electrode monochrome image.

このような追加的な変換処理は、部品1のボディが白色の場合に行われ、ボディが白色か否かの判別には、部品1の外形を検出するために別途生成された白黒濃淡画像(部品白黒画像)が利用される。即ち、部品外形用の白黒濃淡画像のうち、部品1のボディに対応する部分の平均的な濃淡値を測定し、その濃淡値がしきい値よりも大きいときに、そのボディは白色であると判別される。なお、ボディに対応する部分は、部品1のタイプによって異なるが、一般的に部品1の中心部分である。   Such an additional conversion process is performed when the body of the component 1 is white, and in order to determine whether or not the body is white, a black and white grayscale image (generated separately for detecting the outer shape of the component 1) ( Component black and white image) is used. That is, the average gray value of the part corresponding to the body of the component 1 in the black and white gray image for the part outline is measured, and when the gray value is larger than the threshold value, the body is white. Determined. In addition, although the part corresponding to a body changes with types of the components 1, it is a center part of the components 1 generally.

また、濃淡値が250以上の画素を、電極白黒画像の全体から検索して、その画素の濃淡値を0に変換しても良く、電極白黒画像の部品1に対応する領域から検索して、その画素の濃淡値を0に変換しても良い。   Alternatively, a pixel having a gray value of 250 or more may be searched from the entire electrode black and white image, and the gray value of the pixel may be converted to 0, or may be searched from the region corresponding to the component 1 of the electrode black and white image, The gray value of the pixel may be converted to 0.

(変形例)
ここで、本実施の形態における部品自動教示装置の変形例について説明する。
(Modification)
Here, a modified example of the automatic component teaching apparatus in the present embodiment will be described.

本変形例に係る部品自動教示装置は、部品を基板に実装する部品実装装置に備えられている。   The component automatic teaching apparatus according to this modification is provided in a component mounting apparatus that mounts a component on a board.

図13は、本変形例に係る部品自動教示装置を備えた部品実装装置の外観を示す外観図である。   FIG. 13 is an external view showing an external appearance of a component mounting apparatus including an automatic component teaching apparatus according to this modification.

この部品実装装置500は、基板2を搬送するためのガイドレール514と、抵抗やコンデンサなどの部品を供給するパーツフィーダ530と、SOP(Small Outline Package)やQFP(Quad Flat Package)などのIC(Integrated Circuit)やコネクタなどの比較的大型の部品を載せるパーツトレイ532と、パーツフィーダ530から供給される部品や、パーツトレイ532に載せられた部品を吸着して基板2上に実装するヘッド528と、部品自動教示装置300と、部品自動教示装置300により作成された部品教示データを参照して、ヘッド528に吸着された部品の位置ずれを認識する認識部540とを備えている。   The component mounting apparatus 500 includes a guide rail 514 for transporting the substrate 2, a parts feeder 530 that supplies components such as resistors and capacitors, and ICs such as SOP (Small Outline Package) and QFP (Quad Flat Package) ( A part tray 532 on which a relatively large part such as an integrated circuit) or a connector is placed; a head 528 that sucks and mounts the part supplied from the part feeder 530 or the part placed on the part tray 532 onto the substrate 2; The automatic component teaching apparatus 300 includes a recognition unit 540 that recognizes the positional deviation of the component sucked by the head 528 by referring to the component teaching data created by the automatic component teaching apparatus 300.

このような部品実装装置500は、部品実装の事前に、ヘッド528に吸着された部品の部品教示データを部品自動教示装置300で作成しておいて、部品実装を行うときには、ヘッド528に吸着された部品を撮像して、その撮像結果と、予め作成しておいた部品教示データとを用いて、そのヘッド528に吸着された部品の位置ずれを認識する。   In such a component mounting apparatus 500, component teaching data of a component attracted by the head 528 is created by the component automatic teaching apparatus 300 in advance of component mounting, and when the component is mounted, the component mounting apparatus 500 is attracted by the head 528. The component is picked up, and the positional deviation of the component adsorbed by the head 528 is recognized using the image pickup result and the component teaching data prepared in advance.

基板2は、ガイドレール514に載せられた状態で、図示しない搬送ベルトの駆動により、部品実装装置500のローダ部516から実装位置518に搬送され、その実装位置518で部品が実装されると、アンローダ部520に搬送される。   When the substrate 2 is mounted on the guide rail 514 and is transported from the loader unit 516 of the component mounting apparatus 500 to the mounting position 518 by driving a transport belt (not shown), and the component is mounted at the mounting position 518, It is conveyed to the unloader unit 520.

ヘッド528は、先端に部品を吸着する複数の吸着ノズル534を備えて、図示しないモータなどの駆動により、基板2の平面に沿った方向に移動する。このようなヘッド528の移動により、部品が搬送される。ヘッド528は、部品教示データの作成時には、その部品を後述する撮像位置に搬送する。一方、部品実装時には、ヘッド528は、まず、その部品を撮像位置に搬送してその撮像位置で部品が撮像された後に、実装位置518にある基板2にまでその部品を搬送する。そしてヘッド528は、吸着ノズル534を駆動させて部品を基板2に実装する。   The head 528 includes a plurality of suction nozzles 534 that suck components at the tip, and moves in a direction along the plane of the substrate 2 by driving a motor (not shown). By such movement of the head 528, parts are conveyed. The head 528 conveys the component to an imaging position to be described later when creating the component teaching data. On the other hand, at the time of component mounting, the head 528 first transports the component to the imaging position, images the component at the imaging position, and then transports the component to the board 2 at the mounting position 518. The head 528 drives the suction nozzle 534 to mount the component on the substrate 2.

本変形例に係る部品自動教示装置300は、撮像位置にある部品を撮像し得るように備えられている。つまり、部品自動教示装置300は、ヘッド528の吸着ノズル534に吸着された部品を、ヘッド528と反対側から(図13中、下から)撮像する。   The component automatic teaching apparatus 300 according to this modification is provided so as to be able to image a component at an imaging position. That is, the component automatic teaching apparatus 300 images the component sucked by the suction nozzle 534 of the head 528 from the side opposite to the head 528 (from the bottom in FIG. 13).

図14は、本変形例に係る部品自動教示装置300の構成を示す構成図である。
本変形例に係る部品自動教示装置300は、表示部330と、操作部310と、制御部320とを備え、さらに、上記実施の形態の部品自動教示装置100のスキャナー170の変わりに、ヘッド528に吸着された部品1を撮像する撮像部370を備えている。
FIG. 14 is a configuration diagram showing a configuration of an automatic component teaching apparatus 300 according to this modification.
The component automatic teaching apparatus 300 according to this modification includes a display unit 330, an operation unit 310, and a control unit 320. Furthermore, instead of the scanner 170 of the component automatic teaching device 100 of the above embodiment, a head 528 is provided. An imaging unit 370 that captures an image of the component 1 that is adsorbed to the component 1 is provided.

本変形例に係る表示部330及び操作部310は、上記実施の形態の表示部130及び操作部110と同様の機能を有する。操作部310は、オペレータが操作可能なように部品実装装置500に配設されており(図13参照)、表示部330は、その操作部310の近くに配設されている。   The display unit 330 and the operation unit 310 according to this modification have the same functions as the display unit 130 and the operation unit 110 of the above-described embodiment. The operation unit 310 is disposed in the component mounting apparatus 500 so that the operator can operate it (see FIG. 13), and the display unit 330 is disposed near the operation unit 310.

撮像部370は、カラーで撮像するカメラ372と、ヘッド528に吸着された部品1に白色光を当てる照明具371と、ヘッド528の各吸着ノズル534に取着される背景板373とを備えている。背景板373の部品1側の面は青色又は赤色である。吸着ノズル534に吸着される部品1が青色系でなければ、青色の背景板373がその吸着ノズル534に対して用いられ、吸着ノズル534に吸着される部品1が赤色系でなければ、赤色の背景板373がその吸着ノズル534に対して用いられる。   The imaging unit 370 includes a camera 372 that captures images in color, a lighting device 371 that applies white light to the component 1 that is attracted to the head 528, and a background plate 373 that is attached to each suction nozzle 534 of the head 528. Yes. The surface on the component 1 side of the background plate 373 is blue or red. If the component 1 sucked by the suction nozzle 534 is not blue, the blue background plate 373 is used for the suction nozzle 534, and if the component 1 sucked by the suction nozzle 534 is not red, the red background plate 373 is used. A background plate 373 is used for the suction nozzle 534.

このような撮像部370は、部品教示データの作成時及び部品実装時において、ヘッド528に吸着された部品1が撮像位置Aに搬送されたときに、その背景板373を背景にして部品1を撮像し、背景が青色又は赤色の部品1のカラー画像を生成する。   Such an image pickup unit 370 takes the component 1 with the background plate 373 as the background when the component 1 attracted to the head 528 is conveyed to the image pickup position A when creating the component teaching data and mounting the component. An image is taken and a color image of the component 1 with a blue or red background is generated.

本変形例に係る制御部320は、周辺機器制御部321と、入出力処理部322と、画像処理部323とを備えている。周辺機器制御部321及び入出力処理部322は、上記実施の形態の周辺機器制御部121及び入出力処理部122と同様の機能を有する。画像処理部323は、基本的に上記実施の形態の画像処理部123と同様の機能を有するが、部品教示データの作成条件として、さらに部品サイズを決定する。   The control unit 320 according to this modification includes a peripheral device control unit 321, an input / output processing unit 322, and an image processing unit 323. The peripheral device control unit 321 and the input / output processing unit 322 have the same functions as the peripheral device control unit 121 and the input / output processing unit 122 of the above embodiment. The image processing unit 323 basically has the same function as the image processing unit 123 of the above embodiment, but further determines a component size as a component teaching data creation condition.

図15は、画像処理部323が作成条件を決定するために表示部330に表示させる画面の一例を示す画面表示図である。   FIG. 15 is a screen display diagram illustrating an example of a screen displayed on the display unit 330 in order for the image processing unit 323 to determine a creation condition.

画像処理部323は、プルダウンメニューにより部品サイズを選択表示するためのサイズ欄a21を表示部330に表示させる。オペレータは、操作部310を操作することにより、部品1の最大辺の寸法を部品サイズとしてサイズ欄a21に表示させ、決定ボタンa6を選択すると、その部品サイズが作成条件として決定される。また、本変形例に係る画像処理部323は、撮像部370による部品1の撮像が行われる前に、図15に示す画面を表示部330に表示させ、電極タイプ及び電極接地面形状並びに部品サイズを作成条件として予め決定しておく。   The image processing unit 323 causes the display unit 330 to display a size column a21 for selecting and displaying a component size from a pull-down menu. When the operator operates the operation unit 310 to display the dimension of the maximum side of the part 1 as the part size in the size column a21 and selects the determination button a6, the part size is determined as a creation condition. Further, the image processing unit 323 according to the present modification displays the screen illustrated in FIG. 15 on the display unit 330 before the imaging of the component 1 by the imaging unit 370, and the electrode type, the electrode ground plane shape, and the component size. Is previously determined as a creation condition.

このような本変形例に係る部品自動教示装置300では、ヘッド528の吸着ノズル534に吸着された部品1が撮像位置Aに搬送されると、撮像部370のカメラ372が、照明具371により照らされたその部品1を撮像する。このとき、カメラ372は、画像処理部323で決定された部品サイズに基づいて画角を調整し、その画角で部品1を撮像する。そして、カメラ372は、その撮像結果である部品1のカラー画像を制御部320に出力する。青色の背景板373がヘッド528に取着されている場合には、背景が青色のカラー画像が出力され、赤色の背景板373がヘッド528に取着されている場合には、背景が赤色のカラー画像が出力される。本変形例に係る部品自動教示装置300は、このように撮像されたカラー画像から、上記実施の形態と同様に、白黒濃淡画像を生成し、その白黒濃淡画像及び作成条件に基づいて部品教示データを作成する。   In the component automatic teaching apparatus 300 according to this modification example, when the component 1 sucked by the suction nozzle 534 of the head 528 is conveyed to the imaging position A, the camera 372 of the imaging unit 370 is illuminated by the illumination tool 371. The part 1 thus taken is imaged. At this time, the camera 372 adjusts the angle of view based on the component size determined by the image processing unit 323 and images the component 1 at the angle of view. Then, the camera 372 outputs a color image of the component 1 as the imaging result to the control unit 320. When the blue background plate 373 is attached to the head 528, a color image with a blue background is output, and when the red background plate 373 is attached to the head 528, the background is red. A color image is output. The component automatic teaching apparatus 300 according to the present modification generates a black and white grayscale image from the color image thus captured in the same manner as in the above embodiment, and the component teaching data based on the black and white grayscale image and the creation conditions. Create

また、部品実装装置500に備えられた認識部540は、例えば、部品実装装置500に備えられた各機器を制御する例えばCPU(Central Processing Unit)により構成される。   The recognition unit 540 provided in the component mounting apparatus 500 is configured by, for example, a CPU (Central Processing Unit) that controls each device provided in the component mounting apparatus 500, for example.

この認識部540は、照明具371およびカメラ372を制御してカメラ372に部品1を撮像させる。そして、認識部540は、部品自動教示装置300で予め作成されている部品教示データと、部品実装時にカメラ372で生成されたカラー画像や白黒濃淡画像とに基づいて、ヘッド528の吸着ノズル534に吸着された部品1の位置ずれを認識する。具体的に、認識部540は、吸着ノズル534によって吸着される部品1の吸着面に沿った方向(水平方向)のずれと、その吸着面における部品1の回転方向のずれとを、上述の位置ずれとして認識する。次に、認識部540は、その位置ずれを解消するようにヘッド528及び吸着ノズル534を駆動させる。その結果、基板2上の所定の部位に部品1が正確に実装される。   The recognition unit 540 controls the illuminator 371 and the camera 372 to cause the camera 372 to image the component 1. Then, the recognizing unit 540 applies the suction nozzle 534 of the head 528 to the suction nozzle 534 of the head 528 based on the component teaching data created in advance by the component automatic teaching apparatus 300 and the color image or black-and-white gray image generated by the camera 372 when mounting the component. Recognize the displacement of the sucked component 1. Specifically, the recognizing unit 540 determines the displacement in the direction (horizontal direction) along the suction surface of the component 1 sucked by the suction nozzle 534 and the shift in the rotation direction of the component 1 on the suction surface as described above. Recognize as a gap. Next, the recognition unit 540 drives the head 528 and the suction nozzle 534 so as to eliminate the positional deviation. As a result, the component 1 is accurately mounted at a predetermined site on the board 2.

このような部品実装装置500では、部品教示データを生成する機能と、部品を実装する機能とを兼ね備えているため、部品自動教示装置100と部品実装装置とをそれぞれ別個に備えるシステムと比べて、より正確に位置ずれを認識することができる。即ち、上記システムでは、部品自動教示装置100の部品1を撮像するスキャナー170と、部品実装装置のヘッドに吸着された部品1を撮像するカメラとは異なるが、部品実装装置500では、部品教示データを作成するために利用したカメラ372と、吸着ノズル534に吸着された部品1を撮像するカメラ372とが同一であるため、撮像手段の違いよる誤差の発生を防ぐことができるのである。   Since the component mounting apparatus 500 has both a function for generating component teaching data and a function for mounting components, compared to a system that includes the component automatic teaching apparatus 100 and the component mounting apparatus, respectively. The position shift can be recognized more accurately. That is, in the system described above, the scanner 170 that captures the component 1 of the component automatic teaching apparatus 100 is different from the camera that captures the component 1 adsorbed by the head of the component mounting apparatus. Since the camera 372 used to create the image and the camera 372 that images the component 1 adsorbed by the adsorption nozzle 534 are the same, it is possible to prevent the occurrence of an error due to the difference in the imaging means.

なお、上記変形例では、部品実装装置500は、部品実装の事前に部品教示データを作成しておいて、その部品教示データとカメラ372で生成された画像とを用いて部品1の位置ずれを認識したが、その位置ずれの認識の際の画像の撮像にも、上記実施の形態の画像生成処理が適用される。即ち、カメラ372が、部品実装時に、撮像位置Aに搬送された部品1を撮像してカラー画像を生成すると、その時点で、制御部320の画像処理部323は、そのカラー画像から部品1の白黒濃淡画像を生成する。そして、認識部540は、その白黒濃淡画像から部品1の外形を検出したり、特徴的な寸法を測定したりすることにより、部品実装時にヘッド528に吸着された部品1の位置ずれを認識する。このような場合であっても、上述と同様の効果を得ることができる。   In the modified example, the component mounting apparatus 500 creates component teaching data in advance of component mounting, and uses the component teaching data and the image generated by the camera 372 to shift the position of the component 1. Although recognized, the image generation processing of the above embodiment is also applied to capturing an image when recognizing the positional deviation. That is, when the camera 372 picks up the component 1 conveyed to the image pickup position A and generates a color image at the time of mounting the component, the image processing unit 323 of the control unit 320 at that time causes the component 1 from the color image. A black and white gray image is generated. Then, the recognizing unit 540 recognizes the position shift of the component 1 attracted to the head 528 during component mounting by detecting the outer shape of the component 1 from the black-and-white gray image or measuring a characteristic dimension. . Even in such a case, the same effect as described above can be obtained.

また、画像処理部323が認識部540の機能を兼ね備えてもよい。   Further, the image processing unit 323 may have the function of the recognition unit 540.

本発明の部品の画像生成方法は、部品の形態を明瞭にすることができるという効果を有し、例えば、電子部品の画像からその電子部品の特徴的な寸法などをオペレータに教示する部品自動教示装置や、その教示結果に基づいて部品の位置ずれを認識する部品実装装置などに適用することができる。   The part image generation method of the present invention has an effect that the form of the part can be clarified. For example, the part automatic teaching that teaches the operator the characteristic dimension of the electronic part from the image of the electronic part, for example. The present invention can be applied to a device and a component mounting device that recognizes a positional shift of a component based on the teaching result.

本発明の実施の形態における部品自動教示装置の構成を示す構成図である。It is a block diagram which shows the structure of the components automatic teaching apparatus in embodiment of this invention. (a)および(b)は、同上のスキャナーの外観を示す外観図である。(A) And (b) is an external view which shows the external appearance of a scanner same as the above. (a)〜(c)は、同上の画像処理部が作成条件を決定するために表示部に表示させる画面の一例を示す画面表示図である。(A)-(c) is a screen display figure which shows an example of the screen which an image processing part same as the above displays on a display part in order to determine creation conditions. 同上の部品自動教示装置の全体的な動作を示すフロー図である。It is a flowchart which shows the whole operation | movement of a component automatic teaching apparatus same as the above. 同上の部品白黒画像の生成方法を説明するための説明図である。It is explanatory drawing for demonstrating the production | generation method of a component monochrome image same as the above. 同上の伸張処理の一例を説明するための説明図である。It is explanatory drawing for demonstrating an example of the expansion | extension process same as the above. 同上の基準濃淡値を検索する方法を説明するための説明図である。It is explanatory drawing for demonstrating the method to search a reference | standard light / dark value same as the above. 同上の画像処理部が部品の最終部品白黒画像を生成する動作を示すフロー図である。It is a flowchart which shows the operation | movement which the image processing part same as the above produces | generates the final component monochrome image of components. 同上の電極白黒画像の生成方法を説明するための説明図である。It is explanatory drawing for demonstrating the production | generation method of an electrode monochrome image same as the above. 同上のRGB表色系とLab表色系を説明するための説明図である。It is explanatory drawing for demonstrating the RGB color system and Lab color system same as the above. 一般的な部品(電子部品)に含まれる各色の分布を示す図である。It is a figure which shows distribution of each color contained in a general component (electronic component). 本発明の実施の形態における画像処理部が部品の最終電極白黒画像を生成する動作を示すフロー図である。It is a flowchart which shows the operation | movement which the image process part in embodiment of this invention produces | generates the final electrode monochrome image of components. 同上の変形例に係る部品自動教示装置を備えた部品実装装置の外観を示す外観図である。It is an external view which shows the external appearance of the component mounting apparatus provided with the component automatic teaching apparatus which concerns on the modification same as the above. 同上の変形例に係る部品自動教示装置の構成を示す構成図である。It is a block diagram which shows the structure of the components automatic teaching apparatus which concerns on a modification same as the above. 同上の変形例に係る画像処理部が作成条件を決定するために表示部に表示させる画面の一例を示す画面表示図である。It is a screen display figure which shows an example of the screen which an image processing part which concerns on a modification same as the above displays on a display part in order to determine creation conditions.

符号の説明Explanation of symbols

100 部品自動教示装置
110 操作部
120 制御部
121 周辺機器制御部
122 入出力処理部
123 画像処理部
130 表示部
170 スキャナー
DESCRIPTION OF SYMBOLS 100 Parts automatic teaching apparatus 110 Operation part 120 Control part 121 Peripheral equipment control part 122 Input / output processing part 123 Image processing part 130 Display part 170 Scanner

Claims (20)

基板上に実装される部品の特徴を特定するために用いられる前記部品の画像を生成する方法であって、
部品をカラーで撮像することで、前記部品のカラー画像を生成するカラー画像生成ステップと、
前記カラー画像生成ステップで生成されたカラー画像を、前記部品の形態が白黒の濃淡によって表された白黒濃淡画像に変換する変換ステップと
を含むことを特徴とする部品の画像生成方法。
A method of generating an image of the component used to identify the characteristics of the component mounted on a substrate,
A color image generation step of generating a color image of the component by imaging the component in color;
A component image generation method comprising: a conversion step of converting the color image generated in the color image generation step into a black and white grayscale image in which the shape of the component is represented by black and white shades.
前記カラー画像生成ステップでは、
背景が単色となるように前記部品をカラーで撮像し、
前記変換ステップでは、
前記カラー画像生成ステップで生成されたカラー画像を、前記背景が白色又は黒色となって前記部品の外形が白黒の濃淡で表された前記白黒濃淡画像に変換する
ことを特徴とする請求の範囲第1項記載の部品の画像生成方法。
In the color image generation step,
Image the part in color so that the background is a single color,
In the conversion step,
The color image generated in the color image generation step is converted into the black and white grayscale image in which the background is white or black and the external shape of the component is expressed by black and white shades. 2. A method for generating an image of a component according to item 1.
前記部品の画像生成方法は、さらに、
前記白黒濃淡画像に対して、濃淡の幅を広げる伸張処理を行う伸張処理ステップを含む
ことを特徴とする請求の範囲第2項記載の部品の画像生成方法。
The component image generation method further includes:
The method for generating an image of a component according to claim 2, further comprising an expansion process step of performing an expansion process for expanding the width of light and shade on the black and white image.
前記伸張処理ステップでは、さらに、
前記白黒濃淡画像に含まれる画素のうち、所定の濃淡値より小さい各画素の濃淡値を最小の濃淡値に変換する
ことを特徴とする請求の範囲第3項記載の部品の画像生成方法。
In the extension processing step,
4. The component image generation method according to claim 3, wherein a gray value of each pixel smaller than a predetermined gray value among pixels included in the black and white gray image is converted into a minimum gray value.
前記カラー画像生成ステップでは、
背景が青色となるように部品を撮像することで前記カラー画像を生成し、
前記変換ステップでは、
前記背景が部品と比べて黒くなるように、前記カラー画像を白黒濃淡画像に変換する
ことを特徴とする請求の範囲第2項記載の部品の画像生成方法。
In the color image generation step,
Generate the color image by imaging the component so that the background is blue,
In the conversion step,
3. The component image generation method according to claim 2, wherein the color image is converted into a black and white grayscale image so that the background becomes black compared to the component.
前記変換ステップでは、
赤色の濃淡値R、緑色の濃淡値G、青色の濃淡値B、及び定数Kにより示される((R+G)/2−B)/2+Kの変換式を用いて、前記カラー画像に含まれる各画素の色を表すRGB値を白黒の濃淡値に変換する
ことを特徴とする請求の範囲第5項記載の部品の画像生成方法。
In the conversion step,
Each pixel included in the color image using a conversion formula of ((R + G) / 2−B) / 2 + K represented by a red gradation value R, a green gradation value G, a blue gradation value B, and a constant K 6. The method of generating an image of a component according to claim 5, wherein the RGB value representing the color of the component is converted into a grayscale value of black and white.
前記カラー画像生成ステップでは、
背景が赤色となるように部品を撮像することで前記カラー画像を生成し、
前記変換ステップでは、
前記背景が部品と比べて黒くなるように、前記カラー画像を白黒濃淡画像に変換する
ことを特徴とする請求の範囲第2項記載の部品の画像生成方法。
In the color image generation step,
Generate the color image by imaging the component so that the background is red,
In the conversion step,
3. The component image generation method according to claim 2, wherein the color image is converted into a black and white grayscale image so that the background becomes black compared to the component.
前記変換ステップでは、
赤色の濃淡値R、緑色の濃淡値G、青色の濃淡値B、及び定数Kにより示される((B+G)/2−R)/2+Kの変換式を用いて、前記カラー画像に含まれる各画素の色を表すRGB値を白黒の濃淡値に変換する
ことを特徴とする請求の範囲第7項記載の部品の画像生成方法。
In the conversion step,
Each pixel included in the color image using a conversion formula of ((B + G) / 2−R) / 2 + K represented by a red gradation value R, a green gradation value G, a blue gradation value B, and a constant K The component image generation method according to claim 7, wherein the RGB value representing the color of the component is converted into a grayscale value of black and white.
前記部品は電子部品であって、
前記変換ステップでは、さらに、
前記カラー画像生成ステップで生成されたカラー画像に含まれる色のうち白色に近い色ほど白黒の濃淡によって際立たせることで、前記カラー画像を、前記部品の電極が白黒の濃淡で表された電極白黒濃淡画像に変換する
ことを特徴とする請求の範囲第2記載の部品の画像生成方法。
The component is an electronic component,
In the conversion step,
By making the color closer to white out of the colors included in the color image generated in the color image generation step stand out with black and white shading, the color image is made up of black and white electrodes in which the electrodes of the component are represented by black and white shading. The component image generation method according to claim 2, wherein the image is converted into a grayscale image.
前記部品の画像生成方法は、さらに、
前記電極白黒濃淡画像に対して、ノイズの除去を行うフィルタ処理ステップを含む
ことを特徴とする請求の範囲第9項記載の部品の画像生成方法。
The component image generation method further includes:
The component image generation method according to claim 9, further comprising a filter processing step for removing noise from the electrode black-and-white grayscale image.
前記部品の画像生成方法は、さらに、
前記電極白黒濃淡画像に対して濃淡の幅を広げる伸張処理ステップを含む
ことを特徴とする請求の範囲第10項記載の部品の画像生成方法。
The component image generation method further includes:
The component image generation method according to claim 10, further comprising an expansion process step of expanding a width of light and shade with respect to the electrode black and white gray image.
前記カラー画像生成ステップでは、
Lab表色系のカラー画像を生成し、
前記変換ステップでは、
前記電極白黒濃淡画像への変換を行うときには、
前記カラー画像に含まれる画素ごとに、当該画素の明るさを表すL値と、色度を表すa値及びb値とを、定数Kを用いて示されるL×(K−(a2+b2)1/2)の変換式により、白黒の濃淡値に変換する
ことを特徴とする請求の範囲第9項記載の部品の画像生成方法。
In the color image generation step,
Generate a color image of the Lab color system,
In the conversion step,
When performing conversion to the electrode black and white image,
For each pixel included in the color image, an L value representing the brightness of the pixel and an a value and a b value representing chromaticity are expressed by L × (K− (a2 + b2) 1 / The component image generation method according to claim 9, wherein the image is converted into black and white grayscale values by the conversion formula of 2).
前記部品の画像生成方法は、さらに、
前記変換ステップで変換された電極白黒濃淡画像に含まれる各画素の濃淡値のうち、電極に対応する画素の濃淡値よりも大きい濃淡値を、最小の濃淡値に変換する白黒変換ステップを含む
ことを特徴とする請求の範囲第9項記載の部品の画像生成方法。
The component image generation method further includes:
A black and white conversion step of converting a gray value larger than the gray value of the pixel corresponding to the electrode among the gray values of each pixel included in the electrode black and white image converted in the conversion step into a minimum gray value; 10. The component image generation method according to claim 9, wherein:
基板上に実装される部品の特徴を示す部品教示データを作成する方法であって、
部品をカラーで撮像することで、前記部品のカラー画像を生成するカラー画像生成ステップと、
前記カラー画像生成ステップで生成されたカラー画像を、前記部品の形態が白黒の濃淡によって表された白黒濃淡画像に変換する変換ステップと
前記白黒濃淡画像から前記部品の特徴を特定し、前記特徴を示す部品教示データを作成するデータ作成ステップと
を含むことを特徴とする部品教示データ作成方法。
A method for creating component teaching data indicating characteristics of a component mounted on a board,
A color image generation step of generating a color image of the component by imaging the component in color;
A conversion step of converting the color image generated in the color image generation step into a black and white grayscale image in which the form of the component is represented by black and white shading; and identifying the feature of the component from the black and white grayscale image; A method for creating part teaching data, comprising: a data creating step for creating part teaching data to be shown.
基板上に実装される部品の特徴を特定するために用いられる前記部品の画像を生成する画像生成装置であって、
背景が単色となるように部品をカラーで撮像することで、前記部品のカラー画像を生成するカラー画像生成手段と、
前記カラー画像生成手段で生成されたカラー画像を、前記背景が白色又は黒色となって前記部品の外形が白黒の濃淡で表された白黒濃淡画像に変換する変換手段と
を備えることを特徴とする部品の画像生成装置。
An image generation device for generating an image of the component used for specifying the characteristics of the component mounted on a substrate,
Color image generation means for generating a color image of the component by capturing the component in color so that the background is a single color;
Conversion means for converting the color image generated by the color image generation means into a black-and-white gray image in which the background is white or black and the outer shape of the component is expressed in black and white. Image generation device for parts.
前記部品の画像生成装置は、さらに、
前記白黒濃淡画像に対して、濃淡の幅を広げる伸張処理を行う伸張処理手段を備える
ことを特徴とする請求項15記載の部品の画像生成装置。
The component image generation apparatus further includes:
The component image generation apparatus according to claim 15, further comprising an expansion processing unit configured to perform an expansion process for expanding a width of light and shade for the black and white image.
基板上に実装される部品の特徴を示す部品教示データを作成する部品自動教示装置であって、
請求項15又は16記載の部品の画像生成装置と、
前記画像生成装置により生成された白黒濃淡画像から前記部品の特徴を特定し、前記特徴を示す部品教示データを作成するデータ作成手段と
を備えることを特徴とする部品自動教示装置。
A component automatic teaching apparatus for creating component teaching data indicating characteristics of a component mounted on a board,
An image generating apparatus for parts according to claim 15 or 16,
A component automatic teaching device comprising: a data creating unit that identifies a feature of the component from a monochrome grayscale image generated by the image generating device and creates component teaching data indicating the feature.
基板上に部品を実装する部品実装装置であって、
部品をカラーで撮像することで、前記部品のカラー画像を生成するカラー画像生成手段と、
前記カラー画像生成手段で生成されたカラー画像を、前記部品の形態が白黒の濃淡によって表された白黒濃淡画像に変換する変換手段と
前記白黒濃淡画像から前記部品の特徴を特定し、前記特徴を示す部品教示データを作成するデータ作成手段と、
前記部品を保持して移動することにより、基板上の所定の部位に前記部品を実装するヘッドと、
前記データ作成手段により作成された部品教示データを用いて、前記ヘッドに保持された部品の位置ずれを認識する認識手段と
を備えることを特徴とする部品実装装置。
A component mounting apparatus for mounting a component on a board,
Color image generating means for generating a color image of the component by imaging the component in color;
Conversion means for converting the color image generated by the color image generation means into a black-and-white shading image in which the form of the component is expressed by black and white shading; and identifying the feature of the component from the black-and-white shading image; Data creation means for creating the component teaching data shown;
By holding and moving the component, a head for mounting the component on a predetermined part on the substrate;
A component mounting apparatus comprising: recognition means for recognizing a positional deviation of the component held by the head using the component teaching data created by the data creating device.
基板上に部品を実装する部品実装装置であって、
部品を保持して移動することにより、基板上の所定の部位に前記部品を実装するヘッドと、
前記ヘッドに保持された部品を、背景が単色となるようにカラーで撮像することで、前記部品のカラー画像を生成するカラー画像生成手段と、
前記カラー画像生成手段で生成されたカラー画像を、前記背景が白色又は黒色となって前記部品の外形が白黒の濃淡で表された白黒濃淡画像に変換する変換手段と、
前記変換手段で変換された白黒濃淡画像を用いて、前記ヘッドに保持された部品の位置ずれを認識する認識手段と
を備えることを特徴とする部品実装装置。
A component mounting apparatus for mounting a component on a board,
A head for mounting the component on a predetermined part on the substrate by holding and moving the component;
Color image generation means for generating a color image of the component by capturing the component held by the head in color so that the background is a single color;
Conversion means for converting the color image generated by the color image generation means into a black-and-white gray image in which the background is white or black and the outer shape of the component is expressed in black and white;
A component mounting apparatus comprising: a recognizing unit that recognizes a position shift of a component held by the head using the black and white grayscale image converted by the converting unit.
請求項1〜13の何れか1項に記載の部品の画像生成方法に含まれるステップを、コンピュータに実行させるプログラム。   The program which makes a computer perform the step contained in the image generation method of the components of any one of Claims 1-13.
JP2005194425A 2004-07-05 2005-07-01 Image generation method for parts Expired - Fee Related JP4648112B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005194425A JP4648112B2 (en) 2004-07-05 2005-07-01 Image generation method for parts

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2004198593 2004-07-05
JP2005194425A JP4648112B2 (en) 2004-07-05 2005-07-01 Image generation method for parts

Publications (2)

Publication Number Publication Date
JP2006049868A true JP2006049868A (en) 2006-02-16
JP4648112B2 JP4648112B2 (en) 2011-03-09

Family

ID=36028005

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005194425A Expired - Fee Related JP4648112B2 (en) 2004-07-05 2005-07-01 Image generation method for parts

Country Status (1)

Country Link
JP (1) JP4648112B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013021196A (en) * 2011-07-13 2013-01-31 Fuji Mach Mfg Co Ltd Image processing apparatus of component mounting machine
JP2013253913A (en) * 2012-06-08 2013-12-19 Fuji Mach Mfg Co Ltd Inspection apparatus
KR101972745B1 (en) * 2017-12-15 2019-04-25 남정훈 Method for counting semiconductor chip
JPWO2020012621A1 (en) * 2018-07-12 2021-05-13 株式会社Fuji Template creation device and component mounting machine
WO2023089767A1 (en) * 2021-11-19 2023-05-25 株式会社Fuji Component inspection method and component inspection device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001015993A (en) * 1999-06-28 2001-01-19 Yamaha Motor Co Ltd Surface-mount component mounting machine and its method
JP2001356006A (en) * 2000-06-15 2001-12-26 Matsushita Electric Ind Co Ltd Image recognizing method for recognition mark in packaging device for electronic component

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001015993A (en) * 1999-06-28 2001-01-19 Yamaha Motor Co Ltd Surface-mount component mounting machine and its method
JP2001356006A (en) * 2000-06-15 2001-12-26 Matsushita Electric Ind Co Ltd Image recognizing method for recognition mark in packaging device for electronic component

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013021196A (en) * 2011-07-13 2013-01-31 Fuji Mach Mfg Co Ltd Image processing apparatus of component mounting machine
JP2013253913A (en) * 2012-06-08 2013-12-19 Fuji Mach Mfg Co Ltd Inspection apparatus
KR101972745B1 (en) * 2017-12-15 2019-04-25 남정훈 Method for counting semiconductor chip
JPWO2020012621A1 (en) * 2018-07-12 2021-05-13 株式会社Fuji Template creation device and component mounting machine
JP7142092B2 (en) 2018-07-12 2022-09-26 株式会社Fuji Template making device and component mounting machine
WO2023089767A1 (en) * 2021-11-19 2023-05-25 株式会社Fuji Component inspection method and component inspection device

Also Published As

Publication number Publication date
JP4648112B2 (en) 2011-03-09

Similar Documents

Publication Publication Date Title
US6947151B2 (en) Surface state inspecting method and substrate inspecting apparatus
WO2014002689A1 (en) Image processing device and recording medium
US20060018534A1 (en) Technique for detecting a defect of an object by area segmentation of a color image of the object
KR101092789B1 (en) Method of generating image of component
JP4648112B2 (en) Image generation method for parts
US7602967B2 (en) Method of improving image quality
JP2015143656A (en) Inspection apparatus and inspection method
JP4080514B2 (en) Inspection device, inspection method, inspection program, and computer-readable recording medium
JP2006217277A (en) Imaging device
JP4099467B2 (en) Image generation method for parts
JP4088278B2 (en) Image generation method for electronic components
CN109510916B (en) Scanner, method for producing scanned data, and recording medium
JP2009171010A (en) Projector
JP2012189685A (en) Light quantity adjustment guidance device used for flat panel display assembling device
JP4354173B2 (en) Appearance inspection equipment for electronic circuit components
US9591276B2 (en) Display device, electronic apparatus, and method for driving display device
JPH1114323A (en) Pattern inspection method and pattern inspection device
JP3250335B2 (en) Mounted parts inspection device
JP3823642B2 (en) Inspection device for electronic component mounting status
JPH06258243A (en) Mounting part inspection device
JP2006196625A (en) Component data forming method
KR20190083603A (en) Electronic apparatus and control method thereof
JP2004163115A (en) Visual examination method of component for electronic circuit, and method for manufacturing the component
JP2001153627A (en) Loading state inspecting device and loading state inspecting method for electronic part
JP2944776B2 (en) Position recognition device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080222

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100915

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100928

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101101

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20101124

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20101209

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

Free format text: PAYMENT UNTIL: 20131217

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees