JP2008218737A - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP2008218737A
JP2008218737A JP2007054473A JP2007054473A JP2008218737A JP 2008218737 A JP2008218737 A JP 2008218737A JP 2007054473 A JP2007054473 A JP 2007054473A JP 2007054473 A JP2007054473 A JP 2007054473A JP 2008218737 A JP2008218737 A JP 2008218737A
Authority
JP
Japan
Prior art keywords
mark
image
image processing
processing apparatus
determination target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2007054473A
Other languages
Japanese (ja)
Inventor
Takashi Murozaki
隆 室崎
Yuichi Hayashi
雄一 林
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.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2007054473A priority Critical patent/JP2008218737A/en
Publication of JP2008218737A publication Critical patent/JP2008218737A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To enable recording of only necessary part of a processed judgement image, and also enable correct judgement whether the recorded image is good or bad. <P>SOLUTION: It is judged based on image processing whether or not a component pin 26 is correctly inserted in a through hole of a printed circuit board 21. An OK mark is applied to an image (a) judged as good, and an NG mark is applied to an image (b) judged as bad. The NG mark is automatically applied to the bad image at a selected location away from a judgement target image so that the mark is not overlapped with the judgement target image. Only the image having the NG mark applied thereonto can be recorded by triggering the NG mark. Since the NG mark is not overlapped with the judgement target image, the NG mark avoids the hindrance of later good or bad judgement. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、必要な画像のみを録画することができる画像処理装置に関し、特に、画像処理の結果を解析する必要のある画像のみを録画することができる画像処理装置に関する。   The present invention relates to an image processing apparatus capable of recording only necessary images, and more particularly to an image processing apparatus capable of recording only images that need to be analyzed for image processing results.

例えば自動車部品や電子部品の製造設備では、デオカメラなどで撮像された画像を画像処理して、設備の動作確認や製品の良不良の判定などを行っている(特許文献1参照)。このような画像処理を実行する画像処理ユニットは一般に、使用する目的や設置の費用を勘案して、必要な機能に絞って設備内に作り込まれており、ビデオカメラから取り込んだ画像を大量に保存する機能を待たない場合が多い。このような場合、良不良を判定した画像処理が適切なものであったか否かをチェックすることが不可能であった。   For example, in manufacturing equipment for automobile parts and electronic parts, an image picked up by a video camera or the like is subjected to image processing to check the operation of the equipment or determine whether the product is good or bad (see Patent Document 1). An image processing unit that performs such image processing is generally built in equipment with the necessary functions in consideration of the purpose of use and the cost of installation, and a large amount of images captured from a video camera are used. Often you do not wait for the function to save. In such a case, it was impossible to check whether or not the image processing for determining good or bad was appropriate.

ただし、ビデオキャプチャ機能を使用して、モニタ画面に表示された画像を、外部のパーソナルコンピュータのハードディスクに録画することは可能である。画像が録画されると、その後オフラインで録画した画像を読み出して、不良と判定された画像に対して、不良と判定した画像処理と同一の画像処理を実行させることにより、画像処理の誤りによる過剰判定あるいは誤判定のチェックを行うことができる。   However, it is possible to record the image displayed on the monitor screen on the hard disk of an external personal computer using the video capture function. After the image is recorded, the image recorded offline is read out, and the same image processing as the image processing determined to be defective is performed on the image determined to be defective. Judgment or misjudgment can be checked.

しかしながら、基板へのICの挿入などの製品の組付け設備のなかには、例えば一日5千個から1万個を処理する設備があり、すべての画像を保存するとなると、大容量の記憶装置が必要となり、コストが高くなるとともに、チェックが必要な、不良と判定された画像を見出すにも大変な労力が必要となるという問題点があった。   However, some of the product assembly facilities such as the insertion of ICs into the board have, for example, a facility for processing 5,000 to 10,000 a day, and a large-capacity storage device is required to store all images. As a result, there is a problem that the cost is increased and a great effort is required to find an image judged to be defective, which needs to be checked.

すなわち、製造ラインでは、誤判定および過剰判定を起こさないように画像処理パラメータが選定されているが、誤判定すなわち不良品を良品と判定することは品質に致命的な影響を与えるので、結果的に過剰判定すなわち良品を不良品と判定することにバイアスがかかり、数が多くはないが過剰判定する場合がある。したがって、過剰判定の数を減らすことが製造ラインの効率アップにつながることになる。しかしながら、過剰判定した画像をチェックのために後に取り出すのはすべての画像が保存されているときわめて困難である。   In other words, in the production line, image processing parameters are selected so as not to cause misjudgment and overjudgment. However, misjudgment, that is, judging that a defective product is non-defective will have a fatal effect on quality. In other words, there is a bias in determining an over-determination, that is, a non-defective product as a non-defective product. Therefore, reducing the number of excessive determinations leads to an increase in the efficiency of the production line. However, it is very difficult to retrieve the over-determined image later for checking if all the images are stored.

特開2003−229699号公報JP 2003-229699 A

本発明は、上記問題点に鑑み、判定された画像のうち必要な画像のみを保存することができ、さらに後の解析を正しく実行できる画像処理装置を提供することを目的とする。   In view of the above problems, an object of the present invention is to provide an image processing apparatus that can store only necessary images among determined images and that can correctly perform later analysis.

前記目的を達成するために、請求項1に記載の画像処理装置は、判定対象(20)を撮像する撮像手段(11)と、撮像手段(11)から出力される出力画像中の判定対象画像を画像処理して判定するとともに、前記出力画像の前記判定対象画像と所定距離以上離れた個所に、前記画像処理による判定結果を示すマークを付与する画像処理手段(15)と、前記出力画像に付与された前記マークを画像処理して該マークを認識し、該マークが付与された出力画像を録画する録画手段(17)と、を備えることを特徴とする。   In order to achieve the object, the image processing apparatus according to claim 1, an imaging unit (11) that images the determination target (20), and a determination target image in the output image output from the imaging unit (11). Image processing means (15) for providing a mark indicating a determination result by the image processing at a position separated from the determination target image in the output image by a predetermined distance or more, and to the output image And a recording means (17) for performing image processing on the given mark to recognize the mark and recording an output image to which the mark is given.

請求項1に記載の画像処理装置では、画像処理による判定結果を示すマークを認識し画像を録画するので、録画が必要な画像のみを録画することができ、マークは判定対象画像と重ならない個所に付与されているので、後の画像解析の邪魔にならない。   In the image processing apparatus according to claim 1, since the mark indicating the determination result by the image processing is recognized and the image is recorded, only the image that needs to be recorded can be recorded, and the mark does not overlap the determination target image. Since it is assigned to, it does not interfere with later image analysis.

請求項2に記載の画像処理装置は、前記判定対象が、製造ラインに流れる部品あるいは製品であることを特徴とする。これによると、製造ラインにおいて過剰判定あるいは誤判定した部品あるいは製品について、画像解析の結果を正しく評価することができる。   The image processing apparatus according to claim 2 is characterized in that the determination target is a part or a product flowing in a production line. According to this, it is possible to correctly evaluate the result of the image analysis for a part or product that has been excessively determined or erroneously determined in the production line.

請求項3に記載の画像処理装置は、前記マークが、前記判定結果の種類に対応して複数設けられ、前記録画手段は、前記判定結果の種類に対応する複数のファイルを有し、前記出力画像に付与されたマークに対応するファイルに該マークが付与された出力画像を録画することを特徴とする。これによれば、判定結果に応じて異なるファイルに格納されるので、特定の判定結果に対応する画像を読み出して解析することも容易である。また、複数のファイルを階層別に構成することもでき、画像が整理されて格納されるので、後の利用も容易である。   The image processing apparatus according to claim 3, wherein a plurality of the marks are provided corresponding to the types of the determination results, and the recording unit includes a plurality of files corresponding to the types of the determination results, and the output An output image having the mark added thereto is recorded in a file corresponding to the mark assigned to the image. According to this, since it is stored in a different file according to the determination result, it is easy to read and analyze an image corresponding to the specific determination result. In addition, a plurality of files can be arranged in a hierarchy, and the images are organized and stored, so that later use is easy.

請求項4に記載の画像処理装置は、前記マークが、不良を示すマークを含み、前記画像処理手段(15)は、前記判定対象の良不良を判定し、少なくとも不良と判定した場合に前記不良を示すマークを付与することを特徴とする。したがって、不良と判定された画像のみを録画することができ、ハードディスクなどの録画手段を大容量のものとする必要がなくなり、コストも削減できる。   The image processing apparatus according to claim 4, wherein the mark includes a mark indicating a defect, and the image processing unit (15) determines whether the determination target is good or bad and at least determines that the defect is defective. The mark which shows is provided. Therefore, it is possible to record only an image determined to be defective, and it is not necessary to use a large-capacity recording means such as a hard disk, and the cost can be reduced.

請求項5に記載の画像処理装置は、前記不良を示すマークは、不良の種類に対応して複数設けられ、前記画像処理手段(15)は不良の種類を判定して、不良の種類に対応するマークを付与することを特徴とする。したがって、不良の種類を特定して、当該不良とされた画像のみを解析することもでき、より精密な画像処理の解析が可能となる。   The image processing apparatus according to claim 5, wherein a plurality of marks indicating the defects are provided corresponding to the types of defects, and the image processing means (15) determines the types of defects and corresponds to the types of defects. The mark to give is given. Therefore, it is possible to identify the type of defect and analyze only the image determined as the defect, and it is possible to analyze the image processing more precisely.

請求項6に記載の画像処理装置は、前記マークが、文字、図形、色彩から選択された少なくとも1つで構成されていることを特徴とする。これにより、マークの視認性を高めることができ、マークを誤認するエラーを減少させることができる。さらに不良の種類が多種類ある場合にも容易に対応することができる。   The image processing apparatus according to claim 6 is characterized in that the mark is composed of at least one selected from a character, a figure, and a color. Thereby, the visibility of a mark can be improved and the error which misidentifies a mark can be reduced. Furthermore, it is possible to easily cope with cases where there are many types of defects.

請求項7に記載の画像処理装置は、前記マークが、前記出力画像の予め定められた複数の個所(41〜44)から選択された個所に付与されることを特徴とする。これによれば、マークが配置される個所が予め定められているので、マークを認識する処理を簡素に構成できるとともに、複数の個所から選択するので、判定対象画像と重ならない個所を選択することができる。   The image processing apparatus according to claim 7 is characterized in that the mark is given to a location selected from a plurality of predetermined locations (41 to 44) of the output image. According to this, since the place where the mark is arranged is determined in advance, the process for recognizing the mark can be simply configured, and since the selection is made from a plurality of places, the place that does not overlap with the determination target image can be selected. Can do.

請求項8に記載の画像処理装置は、前記予め定められた複数の個所が、前記出力画像の4隅を含むことを特徴とする。これによると、判定対象画像が通常は画面中央に撮像され、判定対象画像が出力画像の上下左右にずれる場合の画像を録画しようとするときには、容易にマークを付与する個所を選択することができる。   The image processing apparatus according to claim 8, wherein the plurality of predetermined portions include four corners of the output image. According to this, when the image to be judged is usually captured in the center of the screen and the image to be judged is shifted to the upper, lower, left and right of the output image, it is possible to easily select the location to which the mark is added. .

請求項9に記載の画像処理装置は、前記マークが、前記判定対象画像から最も遠い個所に付与されることを特徴とする。これによると、判定対象画像から最も遠い個所にマークを付与するので、判定対象画像と重ならない個所を特定することが容易である。   The image processing apparatus according to claim 9 is characterized in that the mark is provided at a position farthest from the determination target image. According to this, since a mark is given to a part farthest from the determination target image, it is easy to specify a part that does not overlap the determination target image.

請求項10に記載の画像処理装置は、前記録画手段(17)が、前記画像処理手段が実行する画像処理と同じ画像処理を実行することができ、前記マークが付与された出力画像を読み出して、該画像処理を実行することにより、前記画像処理手段が実行した画像処理の解析を行うことを特徴とする。このようにすると、録画手段により解析が可能となり、簡便に画像チェックが実行できる。   The image processing apparatus according to claim 10, wherein the recording unit (17) can execute the same image processing as the image processing performed by the image processing unit, and reads an output image to which the mark is added. The image processing executed by the image processing means is analyzed by executing the image processing. If it does in this way, analysis will become possible by a recording means, and an image check can be performed simply.

なお、本発明の構成要素にカッコ書きした図面の符号は、以下に説明する実施形態の具体的手段との対応を説明する一例である。   In addition, the code | symbol of drawing which wrote in parentheses about the component of this invention is an example explaining a response | compatibility with the specific means of embodiment described below.

以下、図面を参照して、本発明の実施の形態を説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1に、本発明の一実施形態である画像処理装置を示す。画像処理装置10は、画像処理により良不良を判定する判定対象20を撮像する撮像手段であるCCDカメラ11と、CCDカメラから出力される画像を処理する画像処理手段13と、画像処理手段13からの画像を表示するモニタ画面15sを有するモニタ15を備えている。   FIG. 1 shows an image processing apparatus according to an embodiment of the present invention. The image processing apparatus 10 includes: a CCD camera 11 that is an imaging unit that images a determination target 20 that determines good or bad by image processing; an image processing unit 13 that processes an image output from the CCD camera; A monitor 15 having a monitor screen 15s for displaying the image is provided.

さらに本実施形態では、画像処理装置10は、パーソナルコンピュータ(PC)からなるキャプチャ画面17sを有するキャプチャ手段17を備え、画像処理手段13からの画像信号を、分岐コネクタ14、ビデオキャプチャアダプタ16を介して、キャプチャ手段17のハードディスク内の画像ファイル18に録画する。   Further, in the present embodiment, the image processing apparatus 10 includes a capture unit 17 having a capture screen 17s made of a personal computer (PC), and an image signal from the image processing unit 13 is transmitted via the branch connector 14 and the video capture adapter 16. Then, the image is recorded in the image file 18 in the hard disk of the capture means 17.

本実施形態では、例えばコネクタのような部品25のピン26が、プリント配線板21のスルーホールに正しく挿入されたか否かが、画像処理により判定される。この場合、撮像対象でもある判定対象20は、ピン26とスルーホール周辺ということになる。なお、判定対象20を照明するために、電源31に接続された光源32が配置されている。   In the present embodiment, it is determined by image processing whether or not the pin 26 of the component 25 such as a connector is correctly inserted into the through hole of the printed wiring board 21. In this case, the determination target 20 that is also an imaging target is around the pin 26 and the through hole. Note that a light source 32 connected to a power source 31 is disposed to illuminate the determination target 20.

図2は、本実施形態の画像処理手段13による画像処理の一例を示すもので、モニタとモニタに表示された画像を示す。モニタ15は、オペレータの監視あるいは確認用に配置され、画面15sと、画面15sの明暗、コントラスト調整あるいは電源オンオフ用のつまみあるいはボタン15bを備えている。画面15sには、オンラインで画像処理され、良不良が判定された画像が次々と表示される。画面15sに表示されている画像は、プリント配線板のスルーホールにピンが正常に挿入されているか否かが判定された画像である。   FIG. 2 shows an example of image processing by the image processing means 13 of this embodiment, and shows a monitor and an image displayed on the monitor. The monitor 15 is arranged for monitoring or confirmation by the operator, and includes a screen 15s and a knob or button 15b for adjusting the brightness of the screen 15s, contrast, or power on / off. On the screen 15s, images subjected to online image processing and judged to be good or bad are displayed one after another. The image displayed on the screen 15s is an image in which it is determined whether or not the pin is normally inserted into the through hole of the printed wiring board.

図2(a)は、プリント配線板21のスルーホールにピン26が正常に挿通された画像を示す。モニタ15の画面15sのほぼ中心部が白く写っているのは、ピン26の反射によるもので、ピン26が正常に挿入されていることを示す。ピン26の周囲に白くリング状に写っているのは、スルーホール周囲のはんだ付けのためのランド23の反射による。図の左方のランド上の暗い影は、挿入されたピン26による影であり、撮像用の照明によって生じたものである。   FIG. 2A shows an image in which the pins 26 are normally inserted into the through holes of the printed wiring board 21. The fact that the substantially central portion of the screen 15s of the monitor 15 is shown in white is due to the reflection of the pin 26, and indicates that the pin 26 is inserted normally. The white ring around the pin 26 is due to the reflection of the land 23 for soldering around the through hole. The dark shadow on the land on the left side of the figure is a shadow caused by the inserted pin 26 and is caused by the illumination for imaging.

撮像カメラ11から出力された画像は画像処理手段13に入力し、画像処理手段13では、画像中のピン26の重心とランド23の重心とを算出して、それらが一致するか否かを判定する。図2(a)では、ピン26の重心とランド23の重心とが一致しており、画面15sの右下隅44に良判定を示すOKマークとして「OK」と表示されている。   The image output from the imaging camera 11 is input to the image processing means 13, and the image processing means 13 calculates the center of gravity of the pin 26 and the center of gravity of the land 23 in the image and determines whether or not they match. To do. In FIG. 2A, the center of gravity of the pin 26 and the center of the land 23 coincide with each other, and “OK” is displayed as an OK mark indicating good determination in the lower right corner 44 of the screen 15s.

図2(b)は、プリント配線板21のスルーホールにピン26が正常に挿入されなかった場合を示す。ランド23の位置が画面右下にずれており、ランドの囲まれている部分が暗くなっており、ピンが見えない。これは、部品のピンの位置とプリント配線板のスルーホールの位置とがまったく一致せず、ピン26が挿入されなかった場合で、例えば使用するプリント配線板の選択を誤った場合に生じることが多い。図2(b)のような場合には、そもそもピンが写っていないので、ピンの重心を計算することができず、不良であると判定される。   FIG. 2B shows a case where the pin 26 is not normally inserted into the through hole of the printed wiring board 21. The position of the land 23 is shifted to the lower right of the screen, the part surrounded by the land is dark, and the pin cannot be seen. This occurs when the position of the pin of the component and the position of the through hole of the printed wiring board do not match at all and the pin 26 is not inserted, for example, when the selection of the printed wiring board to be used is wrong. Many. In the case shown in FIG. 2B, since the pin is not shown in the first place, the center of gravity of the pin cannot be calculated, and it is determined to be defective.

図2(b)では、不良であることを示すNGマークは、図2(a)に示すOKマークの位置とは異なり、画面15sの右上隅42にNGマークとして「NG」と表示されている。後に詳しく説明するが、本実施形態では、NGマークは、固定位置に配置されるのではなく、判定対象の画像から所定距離以上離れた、重なることのない位置に自動的に配置される。したがって、後の判定の適不適のチェックのための画像解析の邪魔にならない。なお、本実施形態では、OKマークは緑で表示し、NGマークを赤で表示して視認性を向上させている。   In FIG. 2B, the NG mark indicating that it is defective is different from the position of the OK mark shown in FIG. 2A, and “NG” is displayed as the NG mark in the upper right corner 42 of the screen 15s. . As will be described in detail later, in the present embodiment, the NG mark is not disposed at a fixed position, but is automatically disposed at a position that is not less than a predetermined distance away from the determination target image and does not overlap. Therefore, it does not interfere with the image analysis for checking the suitability of the later determination. In the present embodiment, the OK mark is displayed in green and the NG mark is displayed in red to improve visibility.

OKマークは、不良と判定された画像のみをキャプチャする際には、必要がないもので、実施形態によっては、OKマークを付加しない場合もある。しかしながら、不良画像の解析の結果、パラメータを変更するような場合には、良と判定された画像への影響を調べる必要があり、OKマークが付加された画像を録画する必要もでてくる。そのような場合、OKマークをトリガとしてキャプチャすれば、良と判定された画像が録画できる。良と判定される画像は、大きくずれることはないので、OKマークは、図2(a)のように、通常判定すべき画像とは重ならない固定位置に配置すればよい。しかしながら、良判定の画像をオフラインで解析する必要のある場合は、NGマークと同様に、固定位置に配置するのではなく、後のチェックの際の邪魔にならないような個所を選択して配置するようにするとよい。   The OK mark is not necessary when only an image determined to be defective is captured, and in some embodiments, the OK mark is not added. However, when the parameter is changed as a result of the analysis of the defective image, it is necessary to examine the influence on the image determined to be good, and it is necessary to record the image with the OK mark added. In such a case, if the OK mark is captured as a trigger, an image determined to be good can be recorded. Since an image determined to be good does not deviate greatly, the OK mark may be arranged at a fixed position that does not overlap with the image to be normally determined as shown in FIG. However, when it is necessary to analyze a good-determined image offline, as in the case of the NG mark, it is not arranged at a fixed position, but is selected and arranged so as not to interfere with subsequent checks. It is good to do so.

図5(a)(b)は、参考例であり、この参考例によりマークを固定位置に配置した場合の欠点を説明する。図6(a)は、良と判定された画像が、モニタ15の画面15sに表示され、画面15sに表示された画像の右下隅にOKマークが表示されている。図5(a)は、図2(a)と同様であり、特に問題はない。これに対して、図5(b)にように、不良と判定された画像の右下隅にNGマークが表示されると、NGマークが判定対象の画像と重なってしまっている。   5 (a) and 5 (b) are reference examples, and the defects when the marks are arranged at fixed positions will be described with reference to this reference example. In FIG. 6A, an image determined to be good is displayed on the screen 15s of the monitor 15, and an OK mark is displayed in the lower right corner of the image displayed on the screen 15s. FIG. 5A is the same as FIG. 2A, and there is no particular problem. On the other hand, as shown in FIG. 5B, when the NG mark is displayed at the lower right corner of the image determined to be defective, the NG mark overlaps the image to be determined.

NGマークが付与された画像を保存しておくと、後に画像処理の適不適を解析するチェックのために画像処理を実行しようとするときに、NGマークも一緒に画像処理されてしまう。これでは、実際にオンラインでNGと判定した画像を対象に画像処理することができず、画像処理の適不適の解析ができないことになる。例えば、対象画像の重心を算出して重心の位置により良不良を判定するアルゴリズムを採用している場合には、NGマークも含んで重心位置が算出されてしまうので、画像処理の動作の正しいチェックが行えない。   If an image to which an NG mark is added is stored, the NG mark is also subjected to image processing when an image processing is executed later for a check for analyzing the suitability of image processing. In this case, it is impossible to perform image processing on an image that is actually determined to be NG on-line, and it is impossible to perform appropriate or inappropriate analysis of image processing. For example, if an algorithm that calculates the center of gravity of the target image and determines good / bad based on the position of the center of gravity is used, the center of gravity position is calculated including the NG mark. Cannot be done.

本実施形態では、不良と判定された画像に付与されるNGマークは、判定対象画像から所定距離離れた、後の画像処理のチェックの邪魔にならないような場所に配置されている。したがって、オフラインで保存された画像を読み出して、画像処理の条件等の誤りによる過剰判定がなかったか否か等のチェックを行うことができる。さらに、キャプチャ装置がNGマークを認識する場合も、NGマークが判定対象と重なることがないので、NGマークを認識しやすいという利点もある。   In the present embodiment, the NG mark given to the image determined to be defective is arranged at a position away from the determination target image by a predetermined distance so as not to interfere with the subsequent image processing check. Therefore, it is possible to read an image stored off-line and check whether or not there has been an excessive determination due to an error such as an image processing condition. Further, when the capture device recognizes the NG mark, the NG mark does not overlap with the determination target, so there is an advantage that the NG mark can be easily recognized.

次に、図3を参照して、NGマークの付与手法について説明する。図3は、モニタ画面に表示される画像のNGマークを表示する位置を説明する図である。モニタ画面15sの4隅すなわち左上隅、右上隅、左下隅および右下隅には、NGマークが付される可能性のあるマーク予定個所41〜44を予め指定しておく。判定対象画像20の重心Gの一例を示すとともに、判定対象画像の概略形状を仮想線で示す。   Next, with reference to FIG. 3, a method for providing an NG mark will be described. FIG. 3 is a diagram illustrating a position where an NG mark of an image displayed on the monitor screen is displayed. Mark planned portions 41 to 44 that may be marked with NG marks are designated in advance at the four corners of the monitor screen 15s, that is, the upper left corner, the upper right corner, the lower left corner, and the lower right corner. An example of the center of gravity G of the determination target image 20 is shown, and the schematic shape of the determination target image is indicated by a virtual line.

本実施形態では、正常画像はほぼ画面中央で撮像されるので、画面中央からどちらか一方向にずれて不良となる場合であっても、4隅のうちの少なくとも1箇所は、解析対象の画像とは離れて、接触あるいは重複しない。したがって、NGマークを配置する際に、4隅のマーク個所41〜44から判定対象の画像から所定距離以上離れている個所を選択して、選択した個所にNGマークを配置すると、後の画像解析の邪魔にはならない。   In the present embodiment, since the normal image is captured almost at the center of the screen, at least one of the four corners is the image to be analyzed even if it is defective in one direction from the center of the screen. Apart from, do not touch or overlap. Therefore, when an NG mark is placed, a place that is more than a predetermined distance away from the image to be determined is selected from the mark places 41 to 44 at the four corners, and the NG mark is placed at the selected place. Does not get in the way.

NGマークを配置する個所を選択するには、まず判定対象画像であるピン26あるいはスルーホール周囲のランド23の画像を処理して、ピンの重心あるいはランドの重心を算出して判定対象画像の重心位置を決定する。次いで、判定対象画像の重心位置から4隅のマーク予定個所41〜44の重心位置までの距離を算出する。その結果、算出された距離が所定距離以上離れたマーク予定個所を選択する。図3では、一例として、判定対象画像の重心Gとマーク予定個所42の重心42Gとの距離L1が所定距離L0より大であることを示す。所定距離L0は、判定対象画像の形状、大きさ、濃淡あるいは色彩などに応じて、後の解析に邪魔にならない程度、判定対象画像とマーク予定個所を隔離するように適宜設定することができる。本実施形態では、判定対象画像とマーク予定個所の距離は、それぞれの重心位置の間の距離としたが、これに限定されない。例えば判定対象画像の境界の複数の点からマーク予定個所との距離を求めて、そのうちの最小値を算出して判定対象画像とマーク予定個所の距離とすることもできる。   In order to select the location where the NG mark is to be placed, first, the image of the pin 26 or the land 23 around the through hole, which is the determination target image, is processed to calculate the center of gravity of the pin or the land and calculate the center of gravity of the determination target image. Determine the position. Next, the distance from the centroid position of the determination target image to the centroid positions of the planned mark positions 41 to 44 at the four corners is calculated. As a result, a planned mark location where the calculated distance is more than a predetermined distance is selected. In FIG. 3, as an example, it is shown that the distance L1 between the center of gravity G of the determination target image and the center of gravity 42G of the planned mark portion 42 is larger than the predetermined distance L0. The predetermined distance L0 can be appropriately set according to the shape, size, shading, color, etc. of the determination target image so as to separate the determination target image from the planned mark portion to the extent that it does not interfere with the subsequent analysis. In the present embodiment, the distance between the determination target image and the planned mark location is the distance between the respective gravity center positions, but is not limited thereto. For example, the distance between the determination target image and the planned mark location can be obtained from a plurality of points on the boundary of the determination target image, and the minimum value can be calculated as the distance between the determination target image and the planned mark location.

所定距離以上離れた個所が複数ある場合は、いずれの個所にNGマークを配置してもよいが、複数個所のうちから選択する個所を、予め決めておくこともできる。図2(b)の例では、3個所のマーク予定個所41〜43のいずれでもよいが、マーク予定個所42が選択可能であれば、マーク予定個所42をNGマーク配置個所として選択することが予め決められていた例である。または、判定対象画像の中心位置から4隅の場所41〜44の中心位置までの距離を算出して、もっとも遠い距離にあるマーク予定個所41にNGマークを配置するようにもできる。さらには、マーク予定個所を予め決めることなく、判定対象画像の中心位置からもっとも遠い距離にある場所にNGマークを付与することも可能である。   If there are a plurality of locations separated by a predetermined distance or more, the NG mark may be arranged at any location, but a location to be selected from the plurality of locations can be determined in advance. In the example of FIG. 2B, any of the three planned mark locations 41 to 43 may be used. However, if the planned mark location 42 can be selected, the planned mark location 42 may be selected as the NG mark placement location in advance. It is an example that has been decided. Alternatively, the distance from the center position of the determination target image to the center positions of the four corners 41 to 44 can be calculated, and the NG mark can be arranged at the planned mark location 41 at the farthest distance. Furthermore, it is also possible to give an NG mark to a place that is farthest from the center position of the determination target image without predetermining the planned mark location.

NGマークを付加する場所を選択する手法は、解析対象すなわち判定対象の形状その他に関連して、適宜採用することができる。例えば、4隅の場所を2値化処理して、最も明るい場所を指定してNGマークを付けるようにしてもよい。   A method of selecting a place to add the NG mark can be appropriately adopted in relation to the shape to be analyzed, that is, the determination target. For example, binarization processing may be performed on the four corner locations, and the brightest location may be designated to give an NG mark.

なお、本実施形態では、良判定となる場合はほぼ画面中央に判定対象画像が撮像されるので、OKマークは、例えばマーク個所44に配置することを予め決めておくことができる。また、OKマークを付与してOKマークをキャプチャのトリガ条件とする場合は、OKマークの付与によって後の画像処理に悪影響を与えないように、NGマークの付与のように、後の画像処理の邪魔をしない個所にOKマークを付与するほうがよい。   In the present embodiment, when a good determination is made, the determination target image is picked up almost at the center of the screen, so that it is possible to determine in advance that the OK mark is arranged at the mark location 44, for example. In addition, when an OK mark is added and the OK mark is used as a trigger condition for capture, the subsequent image processing is not performed like the NG mark so that the subsequent image processing is not adversely affected by the OK mark. It is better to give an OK mark where it will not get in the way.

本実施形態では、モニタ15の画像をキャプチャするキャプチャ手段17は、画面17s上にモニタ画面15sの画像と同じ画像が表示され、この画像上のNGマークを認識して、NGマークが付与された画像のみをキャプチャする。すなわち、キャプチャ手段17にも画像処理部13にインストールされている画像処理用のプログラムと同等のプログラムがインストールされ、キャプチャ手段17の画面17sに表示された画像上のNGマークが配置されている可能性のある個所を画像処理することによってNGマークを認識し、ファイルに録画すべき画像か否かを判別する。   In this embodiment, the capture means 17 that captures the image of the monitor 15 displays the same image as the image of the monitor screen 15s on the screen 17s, recognizes the NG mark on this image, and is given the NG mark. Capture only images. That is, a program equivalent to the image processing program installed in the image processing unit 13 is also installed in the capture unit 17, and an NG mark on the image displayed on the screen 17 s of the capture unit 17 may be arranged. An NG mark is recognized by performing image processing on a characteristic portion, and it is determined whether the image is to be recorded in a file.

さらに、不具合の種類に対応してNGマークをそれぞれ異ならせて、異なる格納ファイルに格納するようにすれば、不具合の種類に従って分類されたNG画像を蓄積することができ、後のチェックあるいは解析が効率よく実行できる。さらに、不具合の種類を階層構造に分類して、これに対応する階層構造の格納ファイルを形成してもよい。例えば、NGマークを、2種類のエラーに対応してNG1、NG2とし、NG1をさらに下位展開して3種類のエラーに対応するNGマークをNG11〜NG13とすることもできる。格納ファイルは、NGマークNG1、NG2およびNG11〜NG13に対応して形成することができる。NGマークは、英数字、漢字、かな文字以外にも、○や△などの図形、例えば赤や緑の色彩など他と識別できて画面に表示できるものであればなんでもよく、これらを適宜組み合わせて使用してもよい。   Furthermore, if the NG marks are made different according to the types of defects and stored in different storage files, NG images classified according to the types of defects can be accumulated, and later check or analysis can be performed. Can be executed efficiently. Furthermore, the types of defects may be classified into a hierarchical structure, and a storage file having a hierarchical structure corresponding to this may be formed. For example, the NG marks can be NG1 and NG2 corresponding to two types of errors, and the NG marks corresponding to the three types of errors can be NG11 to NG13 by further expanding NG1. The storage file can be formed corresponding to the NG marks NG1, NG2, and NG11 to NG13. In addition to alphanumeric characters, kanji and kana characters, the NG mark may be anything that can be distinguished from other figures such as ○ and △, such as red and green colors, and can be displayed on the screen. May be used.

図4は、画像をキャプチャするためのトリガとなるトリガ条件を設定する設定画面の一例である。先に説明したように、キャプチャ手段17では、画面上のNGマークを認識することにより、NGマークが付与された画像を録画する。NGマークを画像処理して正しく認識できるようにするためには、画像処理パラメータを設定するトリガ条件の設定が必要となる。トリガ条件を設定するには、ファイルに格納されているNGマークが付与された画像を、オフラインでキャプチャ手段17の画面に表示させる。本実施形態では、キャプチャ手段は、PCで構成されているので、PCの画面17sの例えばメニューバーからトリガ条件の設定を選択すして、図4に示すトリガ条件の設定画面に移行することができる。   FIG. 4 is an example of a setting screen for setting a trigger condition serving as a trigger for capturing an image. As described above, the capture unit 17 records the image with the NG mark by recognizing the NG mark on the screen. In order to correctly recognize the NG mark by image processing, it is necessary to set a trigger condition for setting an image processing parameter. In order to set the trigger condition, an image with an NG mark stored in the file is displayed off-line on the screen of the capture means 17. In this embodiment, since the capture means is composed of a PC, the trigger condition setting screen shown in FIG. 4 can be displayed by selecting the trigger condition setting from, for example, the menu bar on the PC screen 17s. .

前述のように、本実施形態では、不良を示すマークとして赤色の文字「NG」を用いている。赤色の文字「NG」を認識するためには、まず赤い文字であることを2値化閾値で判別して、文字「NG」を構成する画素数の総和から面積を求め、各画素の座標から文字「NG」の重心を求める。次に、求められた面積と重心の値を、予め設定されている面積と重心の値とを比較する。   As described above, in this embodiment, the red character “NG” is used as a mark indicating a defect. In order to recognize the red character “NG”, first, the red character is determined by the binarization threshold, the area is obtained from the total number of pixels constituting the character “NG”, and the coordinates of each pixel are obtained. The center of gravity of the character “NG” is obtained. Next, the determined area and the value of the center of gravity are compared with a preset area and the value of the center of gravity.

図4では、2値化閾値、面積、重心それぞれの上限と下限の値を設定できる。すなわち、2値化閾値決定ボックス51では、対象画像の2値化を行う下限と上限を決定する。面積決定ボックス52では、対象画像が予め設定されている画像であると判断できる面積の下限と上限を決定する。重心決定ボックス53X、53Yでは、対象画像が予め設定されている画像であると判断できる重心のXY座標の下限と上限を決定する。2値化閾値、面積、重心それぞれの値が決定し、画面右上の設定ボタンを押すと、決定した条件の設定が読み込まれる。   In FIG. 4, the upper and lower limits of the binarization threshold, area, and center of gravity can be set. That is, in the binarization threshold determination box 51, a lower limit and an upper limit for binarizing the target image are determined. In the area determination box 52, a lower limit and an upper limit of the area where it can be determined that the target image is a preset image are determined. In the center-of-gravity determination boxes 53X and 53Y, the lower limit and the upper limit of the XY coordinates of the center of gravity with which it can be determined that the target image is a preset image are determined. When the values for the binarization threshold, the area, and the center of gravity are determined and the setting button at the upper right of the screen is pressed, the determined condition settings are read.

次いで、処理確認ボックス54に、キャプチャ装置17の表示画面に表示されている文字「NG」を入力イメージ画面541に入力する。そして、実行ボタン542を押すと、トリガ条件として設定した条件で文字「NG」に対して画像処理を開始する。画像処理が終了すると、その結果は、処理イメージ画面543で確認できる。算出された面積と重心座標の数値は、結果欄544に表示される。   Next, the character “NG” displayed on the display screen of the capture device 17 is input to the input image screen 541 in the processing confirmation box 54. When the execute button 542 is pressed, image processing is started for the character “NG” under the conditions set as the trigger conditions. When the image processing is completed, the result can be confirmed on the processing image screen 543. The calculated area and the numerical value of the barycentric coordinates are displayed in the result column 544.

入力イメージ画面541から画像処理で求めた数値が設定した条件の範囲内にある場合には、一致確認ボックス545が点灯して一致したことを表示する。トリガ条件番号ボックス55に表示されている番号は、当該画面で設定されている条件の条件番号を示す。トリガ条件は、複数設定可能で、番号を付して記憶しておくことができる。このトリガ条件に修正がなければ、結果反映ボタン56を押すことにより、実行結果を設定に反映することができる。すなわち、設定した条件を、5番目の設定条件として設定ファイルに格納して記憶することができる。   When the numerical value obtained by the image processing from the input image screen 541 is within the range of the set condition, the match confirmation box 545 is lit to indicate that there is a match. The number displayed in the trigger condition number box 55 indicates the condition number of the condition set on the screen. A plurality of trigger conditions can be set and can be stored with a number. If the trigger condition is not corrected, the execution result can be reflected in the setting by pressing the result reflection button 56. That is, the set condition can be stored and stored in the setting file as the fifth setting condition.

以上説明したように、本実施形態では、NGマークを付加した画像のみが蓄積され、後の画像処理による解析を正確に実行することができる。また、他の実施形態ではOKマークを付与した画像を保存するようにもできる。その他、3種類以上の判定結果がでる場合でも、3種類以上の判定結果に対応してそれぞれマークを設定して、本実施形態のNGマークのように設定されたマークを画像に付与することができる。格納ファイルも、設定されたマークに対応して形成されることになる。   As described above, in the present embodiment, only the image to which the NG mark is added is accumulated, and analysis by subsequent image processing can be executed accurately. In another embodiment, an image with an OK mark can be stored. In addition, even when three or more types of determination results appear, marks can be set corresponding to the three or more types of determination results, respectively, and a mark set like the NG mark of the present embodiment can be added to the image. it can. The stored file is also formed corresponding to the set mark.

本発明の画像処理装置の1実施形態を示す図である。It is a figure which shows one Embodiment of the image processing apparatus of this invention. 本発明の1実施形態によるNGマークの付与を説明する図である。It is a figure explaining provision of the NG mark by one Embodiment of this invention. 本発明の1実施形態によるモニタ画面のNGマークを配置する個所を示す図である。It is a figure which shows the location which arrange | positions the NG mark of the monitor screen by one Embodiment of this invention. 本発明の1実施形態によるキャプチャを実行するトリガ条件を設定する設定画面を示す図である。It is a figure which shows the setting screen which sets the trigger conditions which perform the capture by one Embodiment of this invention. NGマークの配置個所の問題点を説明する図である。It is a figure explaining the problem of the arrangement part of a NG mark.

符号の説明Explanation of symbols

10 画像処理装置
11 撮像カメラ
13 画像処理手段
14 分岐コネクタ
15 モニタ
15S モニタ画面
16 ビデオキャプチャアダプタ
17 キャプチャ手段
17S キャプチャ画面
18 画像ファイル
20 撮像対象
21 プリント配線板
25 部品
26 ピン
31 照明用電源
32 照明
41〜44 マーク予定個所
50 トリガ条件設定画面
DESCRIPTION OF SYMBOLS 10 Image processing apparatus 11 Imaging camera 13 Image processing means 14 Branch connector 15 Monitor 15S Monitor screen 16 Video capture adapter 17 Capture means 17S Capture screen 18 Image file 20 Imaging object 21 Printed wiring board 25 Parts 26 Pin 31 Illumination power supply 32 Illumination 41 ~ 44 Mark planned location 50 Trigger condition setting screen

Claims (10)

判定対象(20)を撮像する撮像手段(11)と、
撮像手段(11)から出力される出力画像中の判定対象画像を画像処理して判定するとともに、前記出力画像の前記判定対象画像から所定距離以上離れた個所に、前記画像処理の判定結果を示すマークを付与する画像処理手段(15)と、
前記出力画像に付与された前記マークを画像処理して該マークを認識し、該マークが付与された出力画像を録画する録画手段(17)と、
を備えることを特徴とする画像処理装置。
Imaging means (11) for imaging the determination target (20);
A determination target image in the output image output from the imaging means (11) is determined by performing image processing, and the determination result of the image processing is shown at a position away from the determination target image by a predetermined distance or more in the output image. Image processing means (15) for providing a mark;
Recording means (17) for performing image processing on the mark given to the output image, recognizing the mark, and recording the output image with the mark;
An image processing apparatus comprising:
前記判定対象は、製造ラインに流れる部品あるいは製品であることを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the determination target is a part or a product flowing in a production line. 前記マークは、前記判定結果の種類に対応して複数設けられ、前記録画手段は、前記判定結果の種類に対応する複数のファイルを有し、前記出力画像に付与されたマークに対応するファイルに該マークが付与された出力画像を録画することを特徴とする請求項1または2に記載の画像処理装置。   A plurality of the marks are provided corresponding to the types of the determination results, and the recording unit has a plurality of files corresponding to the types of the determination results, and the files corresponding to the marks attached to the output image The image processing apparatus according to claim 1, wherein an output image to which the mark is added is recorded. 前記マークは、不良を示すマークを含み、前記画像処理手段(15)は、前記判定対象の良不良を判定し、少なくとも不良と判定した場合に前記不良を示すマークを付与することを特徴とする請求項1〜3のいずれか1項に記載の画像処理装置。   The mark includes a mark indicating a defect, and the image processing means (15) determines whether the determination target is good or not, and assigns a mark indicating the defect when it is determined to be defective at least. The image processing apparatus according to claim 1. 前記不良を示すマークは、不良の種類に対応して複数設けられ、前記画像処理手段(15)は不良の種類を判定して、不良の種類に対応するマークを付与することを特徴とする請求項4に記載の画像処理装置。   A plurality of marks indicating the defect are provided corresponding to the type of defect, and the image processing means (15) determines the type of defect and gives a mark corresponding to the type of defect. Item 5. The image processing apparatus according to Item 4. 前記マークは、文字、図形、色彩から選択された少なくとも1つで構成されていることを特徴とする請求項1〜5のいずれか1項に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the mark includes at least one selected from a character, a figure, and a color. 前記マークは、前記出力画像の予め定められた複数の個所(41〜44)から選択された個所に付与されることを特徴とする請求項1〜6のいずれか1項に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the mark is given to a location selected from a plurality of predetermined locations (41 to 44) of the output image. . 前記予め定められた複数の個所は、前記出力画像の4隅を含むことを特徴とする請求項7に記載の画像処理装置。   The image processing apparatus according to claim 7, wherein the plurality of predetermined portions include four corners of the output image. 前記マークは、前記判定対象画像から最も遠い個所に付与されることを特徴とする請求項1〜8のいずれか1項に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the mark is given to a place farthest from the determination target image. さらに、前記録画手段(17)は、前記画像処理手段(15)が実行する画像処理と同じ画像処理を実行することができ、前記マークが付与された出力画像を読み出して、該画像処理を実行することにより、前記画像処理手段が実行した画像処理の解析を行うことを特徴とする請求項1〜9のいずれか1項に記載の画像処理装置。   Further, the recording means (17) can execute the same image processing as the image processing executed by the image processing means (15), and reads out the output image to which the mark is added and executes the image processing. The image processing apparatus according to claim 1, wherein the image processing performed by the image processing unit is analyzed.
JP2007054473A 2007-03-05 2007-03-05 Image processing device Pending JP2008218737A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007054473A JP2008218737A (en) 2007-03-05 2007-03-05 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007054473A JP2008218737A (en) 2007-03-05 2007-03-05 Image processing device

Publications (1)

Publication Number Publication Date
JP2008218737A true JP2008218737A (en) 2008-09-18

Family

ID=39838417

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007054473A Pending JP2008218737A (en) 2007-03-05 2007-03-05 Image processing device

Country Status (1)

Country Link
JP (1) JP2008218737A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012111202A1 (en) * 2011-02-14 2012-08-23 富士機械製造株式会社 Component-mounting machine
KR101237158B1 (en) * 2010-09-21 2013-02-25 가부시끼가이샤 킹 짐 Image processing system and object of image capturing used therewith
JP5818050B1 (en) * 2015-01-28 2015-11-18 ビックリック株式会社 Status judgment system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101237158B1 (en) * 2010-09-21 2013-02-25 가부시끼가이샤 킹 짐 Image processing system and object of image capturing used therewith
WO2012111202A1 (en) * 2011-02-14 2012-08-23 富士機械製造株式会社 Component-mounting machine
CN103314657A (en) * 2011-02-14 2013-09-18 富士机械制造株式会社 Component-mounting machine
CN103314657B (en) * 2011-02-14 2016-05-11 富士机械制造株式会社 Component mounter
JP5818050B1 (en) * 2015-01-28 2015-11-18 ビックリック株式会社 Status judgment system
WO2016121288A1 (en) * 2015-01-28 2016-08-04 ビックリック株式会社 Status determination system
CN106255991A (en) * 2015-01-28 2016-12-21 比科利克株式会社 State decision-making system
US9934593B2 (en) 2015-01-28 2018-04-03 Biclick Co., Ltd. Status determination system
KR101926748B1 (en) * 2015-01-28 2018-12-07 비클릭 가부시키가이샤 Status determination system
CN106255991B (en) * 2015-01-28 2019-03-12 比科利克株式会社 State decision-making system

Similar Documents

Publication Publication Date Title
JP6922168B2 (en) Surface mount line quality control system and its control method
JP4251690B2 (en) Electronic circuit quality and manufacturing status monitoring system
JP5861462B2 (en) Inspection standard registration method for solder inspection and board inspection apparatus using the method
US20130114882A1 (en) System, device, and method for assisting visual check operation of inspection result
JP6988499B2 (en) Inspection management system, inspection management device, inspection management method
JP6988500B2 (en) Inspection management system, inspection management device, inspection management method
JP5045591B2 (en) Method for creating area setting data for inspection area and board appearance inspection apparatus
JP2005128016A (en) Inspection system and method
JP2008218737A (en) Image processing device
JP6516884B2 (en) Connection inspection work support system
CN105136818A (en) Printing substrate image detecting method
JP2006251561A (en) Defective pixel repairing method
JP4506395B2 (en) Substrate inspection device, parameter setting method and parameter setting device
JP2007033126A (en) Substrate inspection device, parameter adjusting method thereof and parameter adjusting device
KR101664413B1 (en) Method for detecting mount error of SMT machine
JP5191928B2 (en) Onboard data creation support device and component mounting device
JP4423130B2 (en) Printed circuit board visual inspection method, printed circuit board visual inspection program, and printed circuit board visual inspection apparatus
JP4476831B2 (en) Printed wiring board work related information display system, printed wiring board work related information display method, method for manufacturing printed circuit board product using this display method, computer program for executing this display method, and recording medium capable of recording this computer program
JP4507785B2 (en) Substrate inspection device, parameter setting method and parameter setting device
CN114942246A (en) Method and equipment for detecting welding quality of MiniLED based on 3D confocal sensor
JP4189094B2 (en) Inspection system
JP2006078285A (en) Substrate-inspecting apparatus and parameter-setting method and parameter-setting apparatus of the same
JP2015219141A (en) Printed substrate inspection device and inspection method of the same
JP4419778B2 (en) Substrate inspection device, parameter setting method and parameter setting device
JP2015075412A (en) Appearance inspection system