JP2024016646A - Secondary appearance inspection equipment, appearance inspection system, and secondary appearance inspection method - Google Patents

Secondary appearance inspection equipment, appearance inspection system, and secondary appearance inspection method Download PDF

Info

Publication number
JP2024016646A
JP2024016646A JP2022118929A JP2022118929A JP2024016646A JP 2024016646 A JP2024016646 A JP 2024016646A JP 2022118929 A JP2022118929 A JP 2022118929A JP 2022118929 A JP2022118929 A JP 2022118929A JP 2024016646 A JP2024016646 A JP 2024016646A
Authority
JP
Japan
Prior art keywords
image
defective area
determination
defective
abnormality
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
JP2022118929A
Other languages
Japanese (ja)
Inventor
一樹 松原
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.)
Yamaha Motor Co Ltd
Original Assignee
Yamaha Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Motor Co Ltd filed Critical Yamaha Motor Co Ltd
Priority to JP2022118929A priority Critical patent/JP2024016646A/en
Publication of JP2024016646A publication Critical patent/JP2024016646A/en
Pending legal-status Critical Current

Links

Images

Abstract

【課題】対象物に対する二次判定を機械により実行する際の過判定の発生を抑制する。【解決手段】複数の検査領域A(N)のうち一次判定で不良と判定された不良領域Anを示す一次判定結果Rが取得される(ステップS201)。一次判定結果Rが示す不良領域Anにおける半田S(対象物)の半田画像Isに含まれる異常を示す異常度、すなわち不良領域画像Inの異常度が算出されて、当該異常度に基づき、半田Sの状態が判定される(二次判定)。【選択図】図5An object of the present invention is to suppress the occurrence of over-determination when a machine performs a secondary determination on an object. A primary determination result R indicating a defective area An determined as defective in the primary determination among a plurality of inspection areas A(N) is obtained (step S201). The degree of abnormality indicating the abnormality included in the solder image Is of the solder S (object) in the defective area An indicated by the primary determination result R, that is, the degree of abnormality of the defective area image In, is calculated, and based on the abnormality degree, the solder S The state of is determined (secondary determination). [Selection diagram] Figure 5

Description

この発明は、複数の検査領域のそれぞれにおいて対象物の状態を判定する一次判定によって不良と判定された対象物に対して、さらに当該対象物の状態を判定する二次判定を実行することで、対象物の状態を的確に判定する技術に関する。 The present invention further performs a secondary determination to determine the condition of an object that has been determined to be defective by a primary determination of the condition of the object in each of a plurality of inspection areas. This invention relates to technology for accurately determining the state of an object.

部品を基板に接合する半田を撮像した画像に基づき、当該半田の状態を判定する外観検査装置が知られている。かかる外観検査装置では、半田の状態を詳細に判定するために、互いに異なる複数の検査領域のそれぞれについて判定が実行される場合がある。例えば、部品の電極からの距離が異なる3つの検査領域が設定される。電極に1番目に近い検査領域では、半田が部品の電極の手前で凹む半田形状不良(未半田)の有無が判定される。電極に2番目に近い検査領域では、半田の量が不足する半田不足不良(半田小)の有無が判定される。また、電極に3番目に近い検査領域では、半田によって覆われるべき金属箔(銅箔)が露出する金属箔露出不良(赤目)の有無が判定される。 2. Description of the Related Art Appearance inspection devices are known that determine the condition of solder that joins a component to a board based on a captured image of the solder. In such a visual inspection apparatus, in order to determine the state of solder in detail, determination may be performed for each of a plurality of different inspection areas. For example, three inspection areas with different distances from the electrodes of the component are set. In the inspection area closest to the electrode, it is determined whether there is a defective solder shape (unsoldered) where the solder is recessed in front of the electrode of the component. In the inspection area second closest to the electrode, it is determined whether there is a solder shortage defect (small solder) in which the amount of solder is insufficient. In addition, in the inspection area third closest to the electrode, it is determined whether there is a metal foil exposure defect (red eye) in which metal foil (copper foil) that should be covered with solder is exposed.

ただし、このような外観検査装置では、実際には良好であるにもかかわらず、不良と誤判定されてしまう場合がある。そこで、外観検査装置での判定(一次判定)を補完する二次判定がユーザによって適宜実行される。つまり、外観検査装置の一次判定において、複数の検査領域のいずれかの検査領域について不良と判定された場合には、一次判定の対象となった半田を撮像した画像等がディスプレイに表示される。これによって、ユーザは、ディスプレイによる目視に基づき、最終的な判定を実行できる(二次判定)。 However, with such a visual inspection device, there are cases where the product is incorrectly determined to be defective even though the product is actually good. Therefore, the user appropriately performs a secondary determination to supplement the determination (primary determination) made by the visual inspection device. That is, in the primary determination of the visual inspection apparatus, if any of the plurality of inspection areas is determined to be defective, an image of the solder that is the target of the primary determination is displayed on the display. This allows the user to make a final judgment based on visual observation on the display (secondary judgment).

特開2010-8159号公報Japanese Patent Application Publication No. 2010-8159

ところで、ユーザによって実行されていた二次判定を、機械によって実行することで、省人化を図ることが考えられる。例えば特許文献1には、対象物の画像に含まれる画素の異常に基づき対象物の状態を判定するニューラルネットワークが提案されている。しかしながら、外観検査装置による一次判定を補完する二次判定を機械により実行するにあたっては、次のような問題があった。 By the way, it is possible to save labor by having a machine perform the secondary determination that was previously performed by the user. For example, Patent Document 1 proposes a neural network that determines the state of an object based on abnormalities in pixels included in an image of the object. However, when a machine performs a secondary judgment to supplement the primary judgment made by the visual inspection device, there are the following problems.

つまり、ユーザによる上記の二次判定は、複数の検査領域のうち一次判定で不良と判定された検査領域の状態確認を目的とするものである。これに対して、対象物の画像が複数の検査領域を含むと、当該画像に含まれる異常を機械によって算出した結果、一次判定で不良と判定されなかった検査領域について不良と判定してしまう過判定が発生しうる。 In other words, the purpose of the above-mentioned secondary determination by the user is to confirm the state of the inspection area that is determined to be defective in the primary determination among the plurality of inspection areas. On the other hand, when an image of an object includes multiple inspection areas, as a result of the machine calculating the abnormalities included in the image, the inspection areas that were not determined to be defective in the first judgment may be judged as defective. Judgment may occur.

この発明は上記課題に鑑みなされたものであり、複数の検査領域のそれぞれにおいて対象物の状態を判定する一次判定によって不良と判定された対象物に対して、さらに当該対象物の状態を判定する二次判定を機械により実行するにあたり、過判定の発生を抑制可能とすることを目的とする。 This invention has been made in view of the above-mentioned problems, and it further determines the condition of an object that has been determined to be defective by a primary judgment that determines the condition of the object in each of a plurality of inspection areas. It is an object of the present invention to suppress the occurrence of over-determination when performing secondary determination by a machine.

本発明に係る二次外観検査装置は、互いに異なる複数の検査領域のそれぞれについて当該検査領域における対象物の状態を判定する一次判定において、複数の検査領域のうち不良と判定された不良領域を示す不良領域情報を取得する情報取得部と、不良領域情報が示す不良領域における対象物の画像に含まれる異常を示す不良領域異常データを算出する異常データ算出部と、不良領域異常データに基づき、対象物の状態を判定する二次判定を実行する二次判定実行部とを備える。 The secondary appearance inspection device according to the present invention indicates a defective area determined to be defective among the plurality of inspection areas in the primary judgment of determining the state of the object in each of the plurality of inspection areas that are different from each other. an information acquisition unit that acquires defective area information; an abnormality data calculation unit that calculates defective area abnormality data indicating an abnormality included in the image of the object in the defective area indicated by the defective area information; and a secondary determination execution unit that executes a secondary determination to determine the state of the object.

本発明に係る外観検査システムは、互いに異なる複数の検査領域のそれぞれについて当該検査領域における対象物の状態を判定する一次判定を実行して、当該一次判定において複数の検査領域のうち不良と判定された不良領域を示す不良領域情報を出力する一次外観検査装置と、上記の二次外観検査装置とを備え、情報取得部は、一次外観検査装置から出力された不良領域情報を取得する。 The visual inspection system according to the present invention executes a primary judgment for determining the state of an object in each of a plurality of different inspection areas, and determines which of the plurality of inspection areas is defective in the primary judgment. The present invention includes a primary visual inspection device that outputs defective area information indicating a defective area that has been inspected, and the above-mentioned secondary visual inspection device, and an information acquisition unit acquires defective area information output from the primary visual inspection device.

本発明に係る二次外観検査方法は、互いに異なる複数の検査領域のそれぞれについて当該検査領域における対象物の状態を判定する一次判定において、複数の検査領域のうち不良と判定された不良領域を示す不良領域情報を取得する工程と、不良領域情報が示す不良領域における対象物の画像に含まれる異常を示す不良領域異常データを算出する工程と、不良領域異常データに基づき、対象物の状態を判定する二次判定を実行する工程とを備える。 The secondary appearance inspection method according to the present invention indicates a defective area that is determined to be defective among a plurality of inspection areas in a primary judgment of determining the state of an object in each of a plurality of inspection areas that are different from each other. A step of acquiring defective area information, a step of calculating defective area abnormality data indicating an abnormality included in the image of the object in the defective area indicated by the defective area information, and determining the state of the object based on the defective area abnormality data. and performing a secondary determination.

このように構成された本発明(二次外観検査装置、外観検査システムおよび二次外観検査方法)では、複数の検査領域のうち一次判定で不良と判定された不良領域を示す不良領域情報が取得される。そして、不良領域情報が示す不良領域における対象物の画像に含まれる異常を示す不良領域異常データが算出されて、当該不良領域異常データに基づき、対象物の状態が判定される(二次判定)。つまり、二次判定で対象物の状態を判定する基準から、一次判定で不良と判定されなかった検査領域が外される。その結果、一次判定で不良と判定されなかった検査領域について不良と判定してしまう過判定の発生を抑制することが可能となっている。 In the present invention (secondary visual inspection device, visual inspection system, and secondary visual inspection method) configured as described above, defective area information indicating a defective area determined to be defective in the first judgment among a plurality of inspection areas is acquired. be done. Then, defective area abnormality data indicating an abnormality included in the image of the object in the defective area indicated by the defective area information is calculated, and the state of the object is determined based on the defective area abnormality data (secondary determination). . In other words, the inspection areas that are not determined to be defective in the primary determination are excluded from the criteria for determining the state of the object in the secondary determination. As a result, it is possible to suppress the occurrence of overdetermination in which an inspection area that was not determined to be defective in the primary determination is determined to be defective.

また、異常データ算出部は、一次判定において撮像された、複数の検査領域を含む撮像領域における対象物の画像である対象物画像を取得する画像取得部と、複数の検査領域に対応してそれぞれ設けられた複数の機械学習モデルと、複数の機械学習モデルのうち、不良領域に対応する対応モデルを用いて、不良領域異常データを算出するデータ算出部とを有し、複数の機械学習モデルのそれぞれは、対応する検査領域で撮像された画像に含まれる異常を示す検査領域異常データを出力し、データ算出部は、対象物画像のうち、不良領域に含まれる画像を不良領域画像として抽出して、対応モデルが不良領域画像について出力する検査領域異常データを不良領域異常データとして算出するように、二次外観検査装置を構成してもよい。かかる構成では、二次判定で対象物の状態を判定する基準から、一次判定で不良と判定されなかった検査領域が外される。その結果、一次判定で不良と判定されなかった検査領域について不良と判定してしまう過判定の発生を抑制することが可能となっている。 The abnormality data calculation unit also includes an image acquisition unit that acquires an object image that is an image of the object in an imaging area that includes a plurality of inspection areas, which was imaged in the primary determination, and an image acquisition unit that acquires an object image corresponding to the plurality of inspection areas. It has a data calculation unit that calculates defective area abnormal data using a plurality of machine learning models provided and a corresponding model corresponding to the defective area among the plurality of machine learning models. Each outputs inspection area abnormality data indicating an abnormality included in an image captured in the corresponding inspection area, and the data calculation unit extracts an image included in the defective area from the target object image as a defective area image. The secondary visual inspection device may be configured to calculate the inspection area abnormality data that the corresponding model outputs regarding the defective area image as the defective area abnormality data. In such a configuration, an inspection area that is not determined to be defective in the primary determination is excluded from the criteria for determining the state of the object in the secondary determination. As a result, it is possible to suppress the occurrence of overdetermination in which an inspection area that was not determined to be defective in the primary determination is determined to be defective.

また、異常データ算出部は、一次判定において撮像された、複数の検査領域を含む撮像領域における対象物の画像である対象物画像を取得する画像取得部と、撮像領域で撮像された画像に含まれる異常を示す撮像領域異常データを出力する機械学習モデルと、機械学習モデルが対象物画像について出力した撮像領域異常データから、不良領域に対応するデータを抽出することで、不良領域異常データを算出するデータ算出部とを有するように、二次外観検査装置を構成してもよい。かかる構成では、二次判定で対象物の状態を判定する基準から、一次判定で不良と判定されなかった検査領域が外される。その結果、一次判定で不良と判定されなかった検査領域について不良と判定してしまう過判定の発生を抑制することが可能となっている。しかも、複数の検査領域に対応して複数の機械学習モデルを設けるのではなく、複数の検査領域を含む撮像領域に対して一の機械学習モデルを設ければ足りる。したがって、ユーザにおいては複数の機械学習モデルを管理する必要がなく、ユーザの管理負担を軽減することが可能となっている。 The abnormal data calculation unit also includes an image acquisition unit that acquires an object image that is an image of the object in an imaging area that includes a plurality of inspection areas that was imaged in the primary determination, and an object image that is included in the image that is captured in the imaging area. Defective area abnormal data is calculated by extracting data corresponding to the defective area from the machine learning model that outputs imaging area abnormality data indicating the abnormality that occurs, and the imaging area abnormality data output by the machine learning model for the target image. The secondary visual inspection device may be configured to include a data calculation unit that performs the following steps. In such a configuration, an inspection area that is not determined to be defective in the primary determination is excluded from the criteria for determining the state of the object in the secondary determination. As a result, it is possible to suppress the occurrence of overdetermination in which an inspection area that was not determined to be defective in the primary determination is determined to be defective. Furthermore, instead of providing a plurality of machine learning models corresponding to a plurality of inspection areas, it is sufficient to provide one machine learning model for an imaging area including a plurality of inspection areas. Therefore, the user does not need to manage multiple machine learning models, making it possible to reduce the user's management burden.

また、ユーザインターフェースと、不良領域異常データを少なくとも含む、可視化された異常データをユーザインターフェースに表示させる表示制御部とをさらに備えるように、二次外観検査装置を構成してもよい。かかる構成では、ユーザは、可視化された異常データに含まれる不良領域異常データを目視で確認することができる。 Further, the secondary visual inspection device may be configured to further include a user interface and a display control unit that causes the user interface to display visualized abnormality data including at least defective area abnormality data. With this configuration, the user can visually confirm the defective area abnormal data included in the visualized abnormal data.

また、二次判定実行部による二次判定によって対象物の良否を判定する自動判定モードと、ユーザインターフェースに異常データを表示しつつユーザがユーザインターフェースに行った操作に基づき対象物の良否を判定するマニュアル判定モードとを選択的に実行するモード選択部をさらに備えるように、二次外観検査装置を構成してもよい。かかる構成では、自動判定モードを選択することで二次判定におけるユーザの負担を軽減できるとともに、マニュアル判定モードを選択することでユーザの目視による二次判定を実行できる。 In addition, there is an automatic judgment mode in which the quality of the object is determined by a secondary judgment performed by a secondary judgment execution unit, and an automatic judgment mode in which the quality of the object is judged based on operations performed by the user on the user interface while displaying abnormal data on the user interface. The secondary visual inspection device may be configured to further include a mode selection unit that selectively executes the manual determination mode. In this configuration, by selecting the automatic determination mode, the burden on the user in the secondary determination can be reduced, and by selecting the manual determination mode, the secondary determination can be performed visually by the user.

また、モード選択部は、自動判定モードおよびマニュアル判定モードのうち、ユーザインターフェースに対するユーザの操作によって選択された一のモードを実行するように、二次外観検査装置を構成してもよい。かかる構成では、自動判定モードおよびマニュアル判定モードのうち、ユーザの要求に応じたモードを実行することができる。 Moreover, the mode selection unit may configure the secondary visual inspection apparatus to execute one mode selected by a user's operation on the user interface out of the automatic determination mode and the manual determination mode. With such a configuration, it is possible to execute a mode according to a user's request among the automatic determination mode and the manual determination mode.

以上のように、本発明によれば、複数の検査領域のそれぞれにおいて対象物の状態を判定する一次判定によって不良と判定された対象物に対して、さらに当該対象物の状態を判定する二次判定を機械により実行するにあたり、過判定の発生を抑制することが可能となる。 As described above, according to the present invention, for an object that is determined to be defective by the primary determination that determines the condition of the object in each of a plurality of inspection areas, the secondary inspection that further determines the condition of the object When the determination is performed by a machine, it is possible to suppress the occurrence of excessive determination.

本発明に係る外観検査システムの一例を示すブロック図。1 is a block diagram showing an example of a visual inspection system according to the present invention. 図1の一次外観検査装置で実行される一次判定の一例を示すフローチャート。2 is a flowchart showing an example of a primary determination performed by the primary visual inspection apparatus of FIG. 1. FIG. 図2の一次判定で実行される動作を模式的に示す図。FIG. 3 is a diagram schematically showing operations performed in the primary determination of FIG. 2; 本発明に係る二次外観検査装置の第1例を示すブロック図。FIG. 1 is a block diagram showing a first example of a secondary visual inspection device according to the present invention. 図4の二次外観検査装置の第1例によって実行される二次判定を示すフローチャート。5 is a flowchart showing a secondary determination performed by the first example of the secondary visual inspection device of FIG. 4. FIG. 図5の二次判定で実行される動作を模式的に示す図。FIG. 6 is a diagram schematically showing operations performed in the secondary determination of FIG. 5; 本発明に係る二次外観検査装置の第2例を示すブロック図。FIG. 2 is a block diagram showing a second example of a secondary appearance inspection device according to the present invention. 図7の二次外観検査装置の第2例によって実行される二次判定を示すフローチャート。8 is a flowchart showing secondary determination performed by the second example of the secondary visual inspection device of FIG. 7. FIG.

図1は本発明に係る外観検査システムの一例を示すブロック図である。図1の外観検査システム1は、一次外観検査装置2および二次外観検査装置4を備え、コンデンサ、抵抗あるいは集積回路等の部品Eを基板Bに接合する半田Sの状態を検査する。一次外観検査装置2は、光照射部21および撮像カメラ22を有し、検査の対象物である半田Sを含む所定の撮像領域Acに光照射部21から光を照射しつつ、当該撮像領域Acを撮像カメラ22により撮像することで、半田Sを示す半田画像Isを撮像する。さらに、一次外観検査装置2は、二次外観検査装置4との通信を行う通信部28と、光照射部21、撮像カメラ22および通信部28を制御するコントローラ29とを有する。コントローラ29は、半田画像Isに基づき半田Sの良否を判定した結果である一次判定結果Rを取得する。また、通信部28は、半田画像Isや一次判定結果Rを二次外観検査装置4に送信する。 FIG. 1 is a block diagram showing an example of a visual inspection system according to the present invention. The visual inspection system 1 shown in FIG. 1 includes a primary visual inspection device 2 and a secondary visual inspection device 4, and inspects the condition of solder S that joins a component E such as a capacitor, a resistor, or an integrated circuit to a substrate B. The primary appearance inspection device 2 has a light irradiation unit 21 and an imaging camera 22, and while irradiating light from the light irradiation unit 21 to a predetermined imaging area Ac including the solder S that is an object to be inspected, the imaging area Ac By capturing the image with the imaging camera 22, a solder image Is showing the solder S is captured. Further, the primary visual inspection device 2 includes a communication section 28 that communicates with the secondary visual inspection device 4, and a controller 29 that controls the light irradiation section 21, the imaging camera 22, and the communication section 28. The controller 29 obtains a primary determination result R that is the result of determining the quality of the solder S based on the solder image Is. Further, the communication unit 28 transmits the solder image Is and the primary determination result R to the secondary appearance inspection device 4.

一次外観検査装置2の具体的な構成としては、例えば特開2010-071844号公報に開示された装置構成を採用できる。同公報の装置では、それぞれ波長が異なる光(赤外、赤、緑および青)が互いに異なる角度で半田に照射され、基板に対向するカメラが半田で反射された光を撮像することで、画像が取得される。そして、この画像に基づき半田の良否が判定される。なお、一次外観検査装置2の具体的な構成は、この例に限られず、例えばWO2018/163278に記載の装置構成を採用することもできる。 As a specific configuration of the primary visual inspection device 2, for example, the device configuration disclosed in Japanese Patent Laid-Open No. 2010-071844 can be adopted. In the device disclosed in the publication, light with different wavelengths (infrared, red, green, and blue) is irradiated onto the solder at different angles, and a camera facing the board captures the light reflected by the solder, creating an image. is obtained. The quality of the solder is then determined based on this image. Note that the specific configuration of the primary visual inspection device 2 is not limited to this example, and for example, the device configuration described in WO2018/163278 can also be adopted.

図2は図1の一次外観検査装置で実行される一次判定の一例を示すフローチャートであり、図3は図2の一次判定で実行される動作を模式的に示す図である。図3では、部品Eのみが示され、半田Sは示されていない。 FIG. 2 is a flowchart showing an example of the primary determination performed by the primary visual inspection apparatus of FIG. 1, and FIG. 3 is a diagram schematically showing the operation performed in the primary determination of FIG. In FIG. 3, only component E is shown, and solder S is not shown.

図2の一次判定では、図3に示す互いに異なる複数の検査領域A(N)(N=1、2、3)が設定される。検査領域A(1)は、半田Sが部品Eの電極の手前で凹む半田形状不良(未半田)の有無を判定するために設定され、検査領域A(2)は、半田Sの量が不足する半田不足不良(半田小)の有無を判定するために設定され、検査領域A(3)は、半田Sによって覆われるべき金属箔(銅箔)が露出する金属箔露出不良(赤目)の有無を判定するために設定される。 In the primary determination of FIG. 2, a plurality of mutually different inspection areas A(N) (N=1, 2, 3) shown in FIG. 3 are set. Inspection area A (1) is set to determine whether there is a defective solder shape (unsoldered) where solder S is recessed in front of the electrode of component E, and inspection area A (2) is set to determine whether there is an insufficient amount of solder S. Inspection area A (3) is set to determine whether there is a solder shortage defect (small solder), and the inspection area A (3) is set to determine whether there is a metal foil exposure defect (red eye) where the metal foil (copper foil) that should be covered by solder S is exposed. It is set to determine the

図2に示すように、ステップS101では、コントローラ29は、半田Sを含む所定の撮像領域Acに光照射部21から光を照射しつつ、当該撮像領域Acを撮像カメラ22により撮像することで、半田画像Isを撮像する。この半田画像Isは、撮像領域Acに含まれる複数の画素のそれぞれについて輝度を示す画像データである。ステップS102では、コントローラ29は、検査領域A(N)を識別するカウント値Nをゼロにリセットし、ステップS103では、コントローラ29は、カウント値Nを1だけインクリメントする。 As shown in FIG. 2, in step S101, the controller 29 irradiates a predetermined imaging area Ac including the solder S with light from the light irradiation unit 21 and images the imaging area Ac with the imaging camera 22. A solder image Is is captured. This solder image Is is image data that indicates the brightness of each of a plurality of pixels included in the imaging area Ac. In step S102, the controller 29 resets the count value N for identifying the inspection area A(N) to zero, and in step S103, the controller 29 increments the count value N by one.

そして、コントローラ29は、検査領域A(N)における状態の良否を、半田画像Isのうち、当該検査領域A(N)に含まれる画像に基づき判定する(ステップS104)。また、コントローラ29は、当該検査領域A(N)に対する判定結果(良好/不良)を保存する(ステップS105)。ステップS106では、カウント値Nが最大カウント値Nx(=3)に到達したかが確認される。最大カウント値Nxは、検査領域A(N)の個数(=3)に相当する。そして、カウント値Nが最大カウント値Nxに到達するまで、カウント値Nをインクリメントしつつ、ステップS104、S105が繰り返される。その結果、複数の検査領域A(N)(N=1、2、3)のそれぞれについて判定結果が取得される。 Then, the controller 29 determines the quality of the inspection area A(N) based on the image included in the inspection area A(N) among the solder images Is (step S104). Further, the controller 29 stores the determination result (good/bad) for the inspection area A(N) (step S105). In step S106, it is checked whether the count value N has reached the maximum count value Nx (=3). The maximum count value Nx corresponds to the number (=3) of inspection areas A(N). Then, steps S104 and S105 are repeated while incrementing the count value N until the count value N reaches the maximum count value Nx. As a result, determination results are obtained for each of the plurality of inspection areas A(N) (N=1, 2, 3).

ステップS107では、コントローラ29は、複数の検査領域A(N)それぞれに対する判定結果のうち、不良判定があるか否かを確認する。不良判定がある場合(ステップS107で「YES」の場合)には、コントローラ29は、複数の検査領域A(N)のうち、不良判定が示された不良領域Anを示す一次判定結果Rと、ステップS101で撮像した半田画像Isとを、通信部28によって二次外観検査装置4に出力する。 In step S107, the controller 29 checks whether there is a defective determination among the determination results for each of the plurality of inspection areas A(N). If there is a defective determination (“YES” in step S107), the controller 29 outputs a primary determination result R indicating a defective area An in which a defective determination has been made among the plurality of inspection areas A(N); The solder image Is captured in step S101 is output to the secondary visual inspection device 4 by the communication unit 28.

図4は本発明に係る二次外観検査装置の第1例を示すブロック図である。二次外観検査装置4は、演算部41、記憶部42、通信部43およびUI(User Interface)44を備えたコンピュータである。演算部41は、CPU(Central Processing Unit)等のプロセッサであり、記憶部42は、SSD(Solid State Drive)あるいはHDD(Hard Disk Drive)等の記憶装置である。通信部43は一次外観検査装置2の通信部28との通信を実行し、例えば通信部28から出力された一次判定結果Rや半田画像Isを受信して、記憶部42に保存する。UI44は、マウスやキーボード等の入力機器と、ディスプレイ等の出力機器とを有する。なお、UI44の入力機器と出力機器とを別体で構成する必要は無く、タッチパネルディスプレイによってこれらを一体的に構成してもよい。 FIG. 4 is a block diagram showing a first example of a secondary visual inspection device according to the present invention. The secondary visual inspection device 4 is a computer including a calculation section 41, a storage section 42, a communication section 43, and a UI (User Interface) 44. The calculation unit 41 is a processor such as a CPU (Central Processing Unit), and the storage unit 42 is a storage device such as an SSD (Solid State Drive) or an HDD (Hard Disk Drive). The communication unit 43 communicates with the communication unit 28 of the primary visual inspection device 2, receives, for example, the primary determination result R and solder image Is output from the communication unit 28, and stores them in the storage unit 42. The UI 44 includes input devices such as a mouse and keyboard, and output devices such as a display. Note that the input device and output device of the UI 44 do not need to be configured separately, and may be configured integrally using a touch panel display.

演算部41は、所定の二次判定プログラムを実行することで、情報取得部411、画像取得部412、データ算出部413、自動判定実行部414、マニュアル判定制御部415およびモード選択部416を構成する。また、記憶部42は、複数の検査領域A(N)にそれぞれ対応して設けられた複数の機外学習モデルM(N)を保存する(N=1、2、3)。機外学習モデルM(N)は、半田画像Isのうち、当該機外学習モデルM(N)に対応する検査領域A(N)内の画像である検査領域画像Ia(N)(図3)と、当該検査領域画像Ia(N)の異常度との関係を学習済みであり、検査領域画像Ia(N)が入力されると当該検査領域画像Ia(N)の異常度を出力する。つまり、機外学習モデルM(1)は、検査領域A(1)の異常度を出力し、半田形状不良(未半田)の有無の判定に使用できる。機外学習モデルM(2)は、検査領域A(2)の異常度を出力し、半田不足不良(小半田)の有無の判定に使用できる。また、機外学習モデルM(3)は、検査領域A(3)の異常度を出力し、金属箔露出不良(赤目)の有無の判定に使用できる。 The calculation unit 41 configures an information acquisition unit 411, an image acquisition unit 412, a data calculation unit 413, an automatic determination execution unit 414, a manual determination control unit 415, and a mode selection unit 416 by executing a predetermined secondary determination program. do. The storage unit 42 also stores a plurality of off-machine learning models M(N) provided corresponding to the plurality of inspection areas A(N) (N=1, 2, 3). The out-of-machine learning model M(N) is an inspection area image Ia(N) (FIG. 3), which is an image within the inspection area A(N) corresponding to the out-of-machine learning model M(N) out of the solder image Is. and the abnormality degree of the inspection area image Ia(N), and when the inspection area image Ia(N) is input, the abnormality degree of the inspection area image Ia(N) is output. That is, the ex-machine learning model M(1) outputs the degree of abnormality of the inspection area A(1), and can be used to determine the presence or absence of defective solder shape (unsoldered). The ex-machine learning model M(2) outputs the degree of abnormality of the inspection area A(2), and can be used to determine the presence or absence of a solder shortage defect (small solder). Further, the ex-machine learning model M(3) outputs the degree of abnormality of the inspection area A(3), and can be used to determine the presence or absence of poor metal foil exposure (red eye).

なお、画像の異常度を出力する機械学習モデルの学習方法は、周知の技術を採用できる。例えば、既存の機械学習モデルに良品画像を入力した際に得られる当該機械学習モデルの中間層の特徴ベクトルを基準として保存しておく。そして、一次外観検査装置2で撮像された画像をこの機械学習モデルに入力した際に得られる特徴ベクトルと、基準となる特徴ベクトルとの距離とを異常度として算出できる。この異常度は、画像を構成する複数の画素のそれぞれについて算出できる。 Note that a well-known technique can be adopted as a learning method for a machine learning model that outputs the degree of abnormality of an image. For example, a feature vector of the intermediate layer of an existing machine learning model obtained when a good product image is input to the machine learning model is stored as a reference. Then, the distance between the feature vector obtained when the image captured by the primary visual inspection device 2 is input to this machine learning model and the reference feature vector can be calculated as the degree of abnormality. This degree of abnormality can be calculated for each of a plurality of pixels that make up the image.

図5は図4の二次外観検査装置の第1例によって実行される二次判定を示すフローチャートであり、図6は図5の二次判定で実行される動作を模式的に示す図である。なお、図6では、部品Eのみが示され、半田Sは示されていない。 FIG. 5 is a flowchart showing the secondary judgment performed by the first example of the secondary visual inspection apparatus shown in FIG. 4, and FIG. 6 is a diagram schematically showing the operation performed in the secondary judgment shown in FIG. . Note that in FIG. 6, only the component E is shown, and the solder S is not shown.

図5に示すように、情報取得部411は、通信部43が一次外観検査装置2から受信した一次判定結果Rを取得し(ステップS201)、画像取得部412は、通信部43が一次外観検査装置2から受信した半田画像Isを取得する(ステップS202)。図6のステップS202の欄に例示するように、この半田画像Isは、一次判定で設定される複数の検査領域A(N)を含む撮像領域Acにおいて撮像された半田Sを示す。なお、ステップS201、S202の実行順序はここの例に限られない。 As shown in FIG. 5, the information acquisition unit 411 acquires the primary judgment result R received by the communication unit 43 from the primary visual inspection device 2 (step S201), and the image acquisition unit 412 The solder image Is received from the device 2 is acquired (step S202). As illustrated in the column of step S202 in FIG. 6, this solder image Is shows solder S imaged in an imaging area Ac that includes a plurality of inspection areas A(N) set in the primary determination. Note that the order of execution of steps S201 and S202 is not limited to this example.

ステップS203では、データ算出部413は、半田画像Isのうちから、一次判定結果Rが示す不良領域Anにおける画像である不良領域画像Inを抽出する。図6のステップS203の欄に示す例では、複数の検査領域A(1)、A(2)、A(3)のうち、検査領域A(2)が不良領域Anに相当し、当該不良領域Anの不良領域画像Inが半田画像Isから抽出される。さらに、データ算出部413は、複数の検査領域A(1)、A(2)、A(3)にそれぞれ対応する機外学習モデルM(1)、M(2)、M(3)のうち、不良領域An(すなわち、検査領域A(2))に対応する機外学習モデルM(2)を選択する(ステップS204)。そして、データ算出部413は、ステップS204で選択された機外学習モデルM(2)に不良領域画像Inを入力することで、不良領域画像Inの異常度を算出する。 In step S203, the data calculation unit 413 extracts a defective area image In, which is an image in a defective area An indicated by the primary determination result R, from the solder image Is. In the example shown in the column of step S203 in FIG. 6, among the plurality of inspection areas A(1), A(2), and A(3), inspection area A(2) corresponds to the defective area An, and the defective area A defective area image In of An is extracted from the solder image Is. Furthermore, the data calculation unit 413 calculates which of the out-of-machine learning models M(1), M(2), and M(3) corresponding to the plurality of inspection areas A(1), A(2), and A(3), respectively. , the off-machine learning model M(2) corresponding to the defective area An (ie, inspection area A(2)) is selected (step S204). Then, the data calculation unit 413 calculates the degree of abnormality of the defective area image In by inputting the defective area image In to the ex-machine learning model M(2) selected in step S204.

ステップS206では、モード選択部416は、自動判定実行部414により二次判定を自動で行う自動判定モードを実行するか、ユーザのUI44への入力操作をマニュアル判定制御部415によって判定した結果に基づき二次判定を行うマニュアル判定モードを実行するかを確認する。具体的には、ユーザは、自動判定モードおよびマニュアル判定モードのうちのいずれのモードを実行するかを、UI44に対する操作によってモード選択部416に設定できる。 In step S206, the mode selection unit 416 selects whether the automatic determination execution unit 414 executes an automatic determination mode in which secondary determination is automatically performed, or based on the result of the manual determination control unit 415 determining the user's input operation to the UI 44. Check whether to execute manual judgment mode that performs secondary judgment. Specifically, the user can set, in the mode selection unit 416, which mode to execute, automatic determination mode or manual determination mode, by operating the UI 44.

自動判定モードが設定されている場合(ステップS206で「YES」の場合)には、自動判定実行部414は、ステップS205で算出された不良領域画像Inの異常度に基づき、半田Sの良否を判定する(ステップS207)。具体的には、不良領域画像Inを構成する各画素の異常度が閾値以下である場合(ステップS207で「YES」)の場合には、半田画像Isに示される半田Sの状態が良好であることを示す良品判定が二次判定の結果として自動判定実行部414によって得られる(ステップS208)。一方、不良領域画像Inを構成する各画素のうちに異常度が閾値より大きい画素がある場合(ステップS207で「NO」)の場合には、半田画像Isに示される半田Sの状態が不良であることを示す不良判定が二次判定の結果として自動判定実行部414によって得られる(ステップS209)。ステップS208、S209で得られた二次判定の結果は、例えばUI44のディスプレイに表示される。 If the automatic determination mode is set (“YES” in step S206), the automatic determination execution unit 414 determines the quality of the solder S based on the degree of abnormality of the defective area image In calculated in step S205. Determination is made (step S207). Specifically, when the degree of abnormality of each pixel constituting the defective area image In is below the threshold value ("YES" in step S207), the state of the solder S shown in the solder image Is is good. The automatic determination execution unit 414 obtains a non-defective determination indicating that the product is a good product as a result of the secondary determination (step S208). On the other hand, if there is a pixel whose degree of abnormality is greater than the threshold value among the pixels constituting the defective area image In ("NO" in step S207), the state of the solder S shown in the solder image Is is defective. A defective determination indicating that there is a defect is obtained as a result of the secondary determination by the automatic determination execution unit 414 (step S209). The results of the secondary determination obtained in steps S208 and S209 are displayed on the display of the UI 44, for example.

マニュアル判定モードが設定されている場合(ステップS206で「NO」の場合)には、マニュアル判定制御部415は、不良領域画像Inの異常度を可視化した異常度マップ(ヒートマップ)をUI44のディスプレイに表示する(ステップS210)。そして、マニュアル判定制御部415は、UI44に入力されるユーザの判断が、良好であるか否かを判定する(ステップS211)。UI44に入力されるユーザの判断が良好である場合(ステップS211で「YES」の場合)には、半田画像Isに示される半田Sの状態が良好であることを示す良品判定が二次判定の結果としてマニュアル判定制御部415によって得られる(ステップS208)。一方、UI44に入力されるユーザの判断が不良である場合(ステップS211で「NO」の場合)には、半田画像Isに示される半田Sの状態が不良であることを示す不良判定が二次判定の結果としてマニュアル判定制御部415によって得られる(ステップS209)。ステップS208、S209で得られた二次判定の結果は、例えばUI44のディスプレイに表示される。 If the manual determination mode is set (“NO” in step S206), the manual determination control unit 415 displays an abnormality degree map (heat map) that visualizes the abnormality degree of the defective area image In on the display of the UI 44. (Step S210). Then, the manual determination control unit 415 determines whether the user's determination input into the UI 44 is good (step S211). If the user's judgment input into the UI 44 is good (“YES” in step S211), the non-defective judgment indicating that the state of the solder S shown in the solder image Is is good is the secondary judgment. The result is obtained by the manual determination control unit 415 (step S208). On the other hand, if the user's judgment input into the UI 44 is bad (“NO” in step S211), the bad judgment indicating that the state of the solder S shown in the solder image Is is bad is secondary. The manual determination control unit 415 obtains the determination result (step S209). The results of the secondary determination obtained in steps S208 and S209 are displayed on the display of the UI 44, for example.

以上に説明する実施形態では、複数の検査領域A(N)のうち一次判定で不良と判定された不良領域An(検査領域A(2))を示す一次判定結果R(不良領域情報)が取得される(ステップS201)。そして、一次判定結果Rが示す不良領域Anにおける半田S(対象物)の半田画像Isに含まれる異常を示す異常度(不良領域異常データ)、すなわち不良領域画像Inの異常度が算出されて(ステップS205)、ステップS206~S209では、当該異常度に基づき、半田Sの状態が判定される(二次判定)。つまり、二次判定で半田Sの状態を判定する基準から、一次判定で不良と判定されなかった検査領域A(1)、A(3)が外される。その結果、一次判定で不良と判定されなかった検査領域A(1)、A(3)について不良と判定してしまう過判定の発生を抑制することが可能となっている。 In the embodiment described above, the primary determination result R (defective area information) indicating the defective area An (inspection area A(2)) that is determined to be defective in the primary determination among the plurality of inspection areas A(N) is obtained. (Step S201). Then, the degree of abnormality (defect area abnormality data) indicating the abnormality included in the solder image Is of the solder S (object) in the defective area An indicated by the primary determination result R, that is, the degree of abnormality of the defective area image In is calculated ( In step S205) and steps S206 to S209, the state of the solder S is determined based on the degree of abnormality (secondary determination). That is, the inspection areas A(1) and A(3), which were not determined to be defective in the primary determination, are excluded from the criteria for determining the state of the solder S in the secondary determination. As a result, it is possible to suppress the occurrence of overdetermination in which inspection areas A(1) and A(3), which were not determined to be defective in the primary determination, are determined to be defective.

特に、一次判定において撮像された、複数の検査領域A(N)を含む撮像領域Acにおける半田Sの画像である半田画像Is(対象物画像)が情報取得部411によって取得される(ステップS202)。これに対して、複数の検査領域A(ん)に対応してそれぞれ設けられた複数の機外学習モデルM(N)が記憶部42に保存されている。そして、複数の機外学習モデルM(N)のうち、不良領域画像In(検査領域A(2))に対応する機外学習モデルM(2)(対応モデル)を用いて、不良領域画像Inの異常度(不良領域異常データ)がデータ算出部413によって算出される(ステップS203~S205)。つまり、複数の機外学習モデルM(N)のそれぞれは、対応する検査領域A(N)で撮像された検査領域画像Ia(N)に含まれる異常度(検査領域異常データ)を出力するように構成されている。そこで、データ算出部413は、半田画像Isのうち、不良領域An(検査領域A(2))に含まれる画像を不良領域画像Inとして抽出して(ステップS203)、不良領域Anに対応する機外学習モデルM(2)(対応モデル)が不良領域画像Inについて出力する異常度(検査領域異常データ)を、不良領域画像Inの異常度(不良領域異常データ)として算出する(ステップS204、S205)。かかる構成では、二次判定で半田Sの状態を判定する基準から、一次判定で不良と判定されなかった検査領域A(1)、A(3)が外される。その結果、一次判定で不良と判定されなかった検査領域A(1)、A(3)について不良と判定してしまう過判定の発生を抑制することが可能となっている。 In particular, the information acquisition unit 411 acquires the solder image Is (object image), which is an image of the solder S in the imaging area Ac including the plurality of inspection areas A(N), which was imaged in the primary determination (step S202). . On the other hand, a plurality of ex-machine learning models M(N) respectively provided corresponding to a plurality of inspection areas A(N) are stored in the storage unit 42. Then, using the ex-machine learning model M(2) (corresponding model) corresponding to the defective area image In (inspection area A(2)) among the plurality of ex-machine learning models M(N), the defective area image In The degree of abnormality (defective area abnormality data) is calculated by the data calculation unit 413 (steps S203 to S205). In other words, each of the plurality of ex-machine learning models M(N) outputs the degree of abnormality (inspection area abnormality data) included in the inspection area image Ia(N) captured in the corresponding inspection area A(N). It is composed of Therefore, the data calculation unit 413 extracts the image included in the defective area An (inspection area A(2)) from the solder image Is as the defective area image In (step S203), and extracts the image included in the defective area An (inspection area A(2)) as the defective area image In. The degree of abnormality (inspection area abnormality data) output by the external learning model M(2) (corresponding model) for the defective area image In is calculated as the degree of abnormality (defective area abnormality data) of the defective area image In (steps S204, S205 ). In this configuration, the inspection areas A(1) and A(3), which were not determined to be defective in the primary determination, are excluded from the criteria for determining the state of the solder S in the secondary determination. As a result, it is possible to suppress the occurrence of overdetermination in which inspection areas A(1) and A(3), which were not determined to be defective in the primary determination, are determined to be defective.

また、UI44と、不良領域画像Inにおける異常度(不良領域異常データ)を少なくとも含む異常度マップ(可視化された異常データ)をUI44に表示させるマニュアル判定制御部415(表示制御部)とが具備されている。かかる構成では、ユーザは、異常度マップに含まれる不良領域画像Inにおける異常度を目視で確認することができる。 Further, the UI 44 is provided with a manual determination control unit 415 (display control unit) that causes the UI 44 to display an abnormality degree map (visualized abnormality data) that includes at least the abnormality degree (defective area abnormality data) in the defective area image In. ing. With this configuration, the user can visually check the degree of abnormality in the defective area image In included in the degree of abnormality map.

また、自動判定実行部414(二次判定実行部)による二次判定によって半田Sの良否を判定する自動判定モード(ステップS207、S208、S209)と、UI44に異常度マップを表示しつつユーザがUI44に行った操作に基づき半田Sの良否を判定するマニュアル判定モード(ステップSS210、S211、S208、S209)とを選択的に実行するモード選択部416が具備されている。かかる構成では、自動判定モードを選択することで二次判定におけるユーザの負担を軽減できるとともに、マニュアル判定モードを選択することでユーザの目視による二次判定を実行できる。 In addition, there is an automatic judgment mode (steps S207, S208, S209) in which the quality of the solder S is judged by a secondary judgment by the automatic judgment execution unit 414 (secondary judgment execution unit), and an automatic judgment mode (steps S207, S208, S209) in which the user can A mode selection unit 416 is provided that selectively executes a manual determination mode (steps SS210, S211, S208, and S209) in which the quality of the solder S is determined based on operations performed on the UI 44. In this configuration, by selecting the automatic determination mode, the burden on the user in the secondary determination can be reduced, and by selecting the manual determination mode, the secondary determination can be performed visually by the user.

また、モード選択部416は、自動判定モードおよびマニュアル判定モードのうち、UI44に対するユーザの操作によって選択された一のモードを実行する(ステップS206)。かかる構成では、自動判定モードおよびマニュアル判定モードのうち、ユーザの要求に応じたモードを実行することができる。 Furthermore, the mode selection unit 416 executes one mode selected by the user's operation on the UI 44 out of the automatic determination mode and the manual determination mode (step S206). With such a configuration, it is possible to execute a mode according to a user's request among the automatic determination mode and the manual determination mode.

図7は本発明に係る二次外観検査装置の第2例を示すブロック図であり、図8は図7の二次外観検査装置の第2例によって実行される二次判定を示すフローチャートである。以下では、第1例との差異点を中心に説明を行うこととし、第1例との共通点については相当符号を付して適宜説明を省略する。ただし、第1例と共通する構成を具備することで、第1例と同様の効果を奏することは言うまでもない。 FIG. 7 is a block diagram showing a second example of the secondary visual inspection device according to the present invention, and FIG. 8 is a flowchart showing the secondary determination performed by the second example of the secondary visual inspection device of FIG. 7. . In the following, the explanation will focus on the differences from the first example, and the common points with the first example will be given corresponding symbols and the explanation will be omitted as appropriate. However, it goes without saying that by providing the same configuration as the first example, the same effects as the first example can be achieved.

図7に示す一次外観検査装置2の記憶部42では、機外学習モデルMcが保存されている。この機外学習モデルMcは、複数の検査領域A(N)を含む撮像領域Acに対応して設けられている。つまり、機外学習モデルMcは、撮像領域Acで撮像された半田画像Isと、当該半田画像Isの異常度との関係を学習済みであり、半田画像Isが入力されると当該半田画像Isの異常度を出力する。 In the storage unit 42 of the primary visual inspection apparatus 2 shown in FIG. 7, an ex-machine learning model Mc is stored. This ex-machine learning model Mc is provided corresponding to an imaging area Ac including a plurality of inspection areas A(N). In other words, the external learning model Mc has already learned the relationship between the solder image Is captured in the imaging area Ac and the degree of abnormality of the solder image Is, and when the solder image Is is input, the solder image Is becomes Output the degree of abnormality.

図8に示すように、情報取得部411は、通信部43が一次外観検査装置2から受信した一次判定結果Rを取得し(ステップS301)、画像取得部412は、通信部43が一次外観検査装置2から受信した半田画像Isを取得する(ステップS302)なお、ステップS301、S302の実行順序はここの例に限られない。 As shown in FIG. 8, the information acquisition unit 411 acquires the primary judgment result R received by the communication unit 43 from the primary visual inspection device 2 (step S301), and the image acquisition unit 412 Acquire the solder image Is received from the device 2 (step S302) Note that the order of execution of steps S301 and S302 is not limited to this example.

ステップS303では、データ算出部413は、機外学習モデルMcに半田画像Isを入力することで半田画像Isの異常度を算出する。さらに、データ算出部413は、ステップS303で算出された異常度のうちから、一次判定結果Rが示す不良領域Anにおける異常度を抽出する(ステップS304)。 In step S303, the data calculation unit 413 calculates the degree of abnormality of the solder image Is by inputting the solder image Is to the ex-machine learning model Mc. Further, the data calculation unit 413 extracts the abnormality degree in the defective area An indicated by the primary determination result R from among the abnormality degrees calculated in step S303 (step S304).

ステップS306では、モード選択部416は、自動判定モードおよびマニュアル判定モードのいずれが設定されているかを確認する。自動判定モードが設定されている場合(ステップS306で「YES」の場合)には、自動判定実行部414は、ステップS304で抽出された不良領域Anにおける異常度に基づき、半田Sの良否を判定する(ステップS307)。つまり、不良領域Anに含まれる各画素の異常度が閾値以下である場合(ステップS307で「YES」)の場合には、半田画像Isに示される半田Sの状態が良好であることを示す良品判定が二次判定の結果として自動判定実行部414によって得られる(ステップS308)。一方、不良領域Anに含まれる各画素のうちに異常度が閾値より大きい画素がある場合(ステップS307で「NO」)の場合には、半田画像Isに示される半田Sの状態が不良であることを示す不良判定が二次判定の結果として自動判定実行部414によって得られる(ステップS309)。ステップS308、S309で得られた二次判定の結果は、例えばUI44のディスプレイに表示される。 In step S306, the mode selection unit 416 confirms whether automatic determination mode or manual determination mode is set. If the automatic determination mode is set (“YES” in step S306), the automatic determination execution unit 414 determines the quality of the solder S based on the degree of abnormality in the defective area An extracted in step S304. (Step S307). In other words, if the degree of abnormality of each pixel included in the defective area An is less than or equal to the threshold value ("YES" in step S307), it indicates that the solder S shown in the solder image Is is in good condition. The determination is obtained by the automatic determination execution unit 414 as a result of the secondary determination (step S308). On the other hand, if there is a pixel whose degree of abnormality is greater than the threshold value among the pixels included in the defective area An ("NO" in step S307), the state of the solder S shown in the solder image Is is defective. The automatic determination execution unit 414 obtains a defective determination indicating this as a result of the secondary determination (step S309). The results of the secondary determination obtained in steps S308 and S309 are displayed on the display of the UI 44, for example.

マニュアル判定モードが設定されている場合(ステップS306で「NO」の場合)には、第1例のステップS210、S211、S208、S209と同様にして、ステップS310、S311、S308、S309が実行される。 If the manual determination mode is set (“NO” in step S306), steps S310, S311, S308, and S309 are executed in the same manner as steps S210, S211, S208, and S209 in the first example. Ru.

以上に説明する実施形態では、複数の検査領域A(N)のうち一次判定で不良と判定された不良領域An(検査領域A(2))を示す一次判定結果R(不良領域情報)が取得される(ステップS301)。そして、半田画像Isのうち、一次判定結果Rが示す不良領域Anにおける画像の異常度(不良領域異常データ)が算出される(ステップS303、S304)。そして、ステップS307~S309では、不良領域Anにおける画像の異常度(不良領域異常データ)に基づき、半田Sの状態が判定される(二次判定)。つまり、二次判定で半田Sの状態を判定する基準から、一次判定で不良と判定されなかった検査領域A(1)、S(3)が外される。その結果、一次判定で不良と判定されなかった検査領域A(1)、S(3)について不良と判定してしまう過判定の発生を抑制することが可能となっている。 In the embodiment described above, the primary determination result R (defective area information) indicating the defective area An (inspection area A(2)) that is determined to be defective in the primary determination among the plurality of inspection areas A(N) is obtained. (Step S301). Then, the degree of image abnormality (defective area abnormality data) in the defective area An indicated by the primary determination result R in the solder image Is is calculated (steps S303, S304). Then, in steps S307 to S309, the state of the solder S is determined based on the degree of abnormality of the image in the defective area An (defective area abnormality data) (secondary determination). That is, the inspection areas A(1) and S(3), which were not determined to be defective in the primary determination, are excluded from the criteria for determining the state of the solder S in the secondary determination. As a result, it is possible to suppress the occurrence of overdetermination in which inspection areas A(1) and S(3), which were not determined to be defective in the primary determination, are determined to be defective.

特に、画像取得部412は、一次判定において撮像された、複数の検査領域A(N)を含む撮像領域Acにおける半田Sの画像である半田画像Is(対象物画像)を取得する。これに対して、撮像領域Acで撮像された画像の異常度(撮像領域異常データ)を出力する機外学習モデルMcが記憶部42に保存されている。そして、データ算出部413は、機外学習モデルMcが半田画像Isについて出力した異常度(撮像領域異常データ)から、不良領域Anに対応する異常度(データ)を抽出することで、不良領域Anにおける異常度(不良領域異常データ)を算出する(ステップS303、S304)。かかる構成では、二次判定で半田Sの状態を判定する基準から、一次判定で不良と判定されなかった検査領域A(1)、A(3)が外される。その結果、一次判定で不良と判定されなかった検査領域A(1)、A(3)について不良と判定してしまう過判定の発生を抑制することが可能となっている。しかも、複数の検査領域A(1)、A(2)、A(3)に対応して複数の機外学習モデルM(1)、M(2)、M(3)を設けるのではなく、複数の検査領域A(1)、A(2)、A(3)を含む撮像領域Acに対して一の機外学習モデルMcを設ければ足りる。したがって、ユーザにおいては複数の機械学習モデルM(1)、M(2)、M(3)を管理する必要がなく、ユーザの管理負担を軽減することが可能となっている。 In particular, the image acquisition unit 412 acquires the solder image Is (object image), which is an image of the solder S in the imaging area Ac including the plurality of inspection areas A(N), which was imaged in the primary determination. On the other hand, an extra-machine learning model Mc that outputs the degree of abnormality of the image captured in the imaging area Ac (imaging area abnormality data) is stored in the storage unit 42. Then, the data calculation unit 413 extracts the degree of abnormality (data) corresponding to the defective area An from the degree of abnormality (imaging area abnormality data) output by the ex-machine learning model Mc for the solder image Is. The degree of abnormality (defective area abnormal data) is calculated (steps S303, S304). In this configuration, the inspection areas A(1) and A(3), which were not determined to be defective in the primary determination, are excluded from the criteria for determining the state of the solder S in the secondary determination. As a result, it is possible to suppress the occurrence of overdetermination in which inspection areas A(1) and A(3), which were not determined to be defective in the primary determination, are determined to be defective. Moreover, instead of providing multiple out-of-machine learning models M(1), M(2), and M(3) corresponding to multiple inspection areas A(1), A(2), and A(3), It is sufficient to provide one ex-machine learning model Mc for the imaging area Ac including the plurality of inspection areas A(1), A(2), and A(3). Therefore, the user does not need to manage multiple machine learning models M(1), M(2), and M(3), making it possible to reduce the user's management burden.

以上に説明したように本実施形態では、外観検査システム1が本発明の「外観検査システム」の一例に相当し、一次外観検査装置2が本発明の「一次外観検査装置」の一例に相当し、二次外観検査装置4が本発明の「二次外観検査装置」の一例に相当し、情報取得部411が本発明の「情報取得部」の一例に相当し、画像取得部412、機外学習モデルM(N)、Mcおよびデータ算出部413が協働して本発明の「異常データ算出部」として機能し、自動判定実行部414が本発明の「二次判定実行部」の一例に相当し、検査領域A(N)が本発明の「検査領域」の一例に相当し、不良領域Anが本発明の「不良領域」の一例に相当し、半田画像Isの不良領域Anにおける異常度が本発明の「不良領域異常データ」の一例に相当し、一次判定結果Rが本発明の「不良領域情報」の一例に相当し、 半田Sが本発明の「対象物」の一例に相当する。 As explained above, in this embodiment, the visual inspection system 1 corresponds to an example of the "visual inspection system" of the present invention, and the primary visual inspection device 2 corresponds to an example of the "primary visual inspection device" of the present invention. , the secondary visual inspection device 4 corresponds to an example of the "secondary visual inspection device" of the present invention, the information acquisition section 411 corresponds to an example of the "information acquisition section" of the present invention, and the image acquisition section 412 corresponds to an example of the "information acquisition section" of the present invention. The learning models M(N), Mc, and the data calculation unit 413 work together to function as the “abnormal data calculation unit” of the present invention, and the automatic determination execution unit 414 is an example of the “secondary determination execution unit” of the present invention. Correspondingly, the inspection area A(N) corresponds to an example of the "inspection area" of the present invention, the defective area An corresponds to an example of the "defective area" of the present invention, and the degree of abnormality in the defective area An of the solder image Is is corresponds to an example of the "defective area abnormal data" of the present invention, the primary determination result R corresponds to an example of the "defective area information" of the present invention, and the solder S corresponds to an example of the "object" of the present invention. .

なお、本発明は上記実施形態に限定されるものではなく、その趣旨を逸脱しない限りにおいて上述したものに対して種々の変更を加えることが可能である。例えば、一次判定における複数の検査領域A(N)の具体的な設定態様は上記の例に限られない。したがって、検査領域A(1)、A(2)、A(3)のうち、2個の検査領域A(N)を設定してもよいし、検査領域A(1)、A(2)、A(3)とは異なる検査領域を設定してもよい。 Note that the present invention is not limited to the above-described embodiments, and various changes can be made to the above-described embodiments without departing from the spirit thereof. For example, the specific setting manner of the plurality of inspection areas A(N) in the primary determination is not limited to the above example. Therefore, two inspection areas A(N) may be set among inspection areas A(1), A(2), and A(3), or two inspection areas A(N) may be set among inspection areas A(1), A(2), and A(3). An inspection area different from A(3) may be set.

また、一次判定および二次判定の対象は、上記の半田Sに限られない。 Further, the object of the primary determination and the secondary determination is not limited to the solder S described above.

また、一次外観検査装置2と二次外観検査装置4とを別体で構成する必要は必ずしもなく、これらを一体的に構成してもよい。 Moreover, it is not necessarily necessary to configure the primary visual inspection device 2 and the secondary visual inspection device 4 separately, and they may be configured integrally.

また、上記のマニュアル判定モードは必須ではなく、二次判定においてマニュアル判定モードを設けなくてもよい。 Further, the manual determination mode described above is not essential, and it is not necessary to provide the manual determination mode in the secondary determination.

1…外観検査システム
2…一次外観検査装置
4…二次外観検査装置
411…情報取得部
412…画像取得部(異常データ算出部)
413…データ算出部(異常データ算出部)
414…自動判定実行部(二次判定実行部)
A(N)…検査領域
An…不良領域
Is…半田画像
M(N)…機外学習モデル(異常データ算出部)
Mc…機外学習モデル(異常データ算出部)
R…一次判定結果(不良領域情報)
S…半田(対象物)
1... Appearance inspection system 2... Primary appearance inspection device 4... Secondary appearance inspection device 411... Information acquisition section 412... Image acquisition section (abnormal data calculation section)
413...Data calculation unit (abnormal data calculation unit)
414...Automatic judgment execution unit (secondary judgment execution unit)
A(N)...Inspection area An...Defective area Is...Solder image M(N)...External learning model (abnormal data calculation unit)
Mc…External learning model (abnormal data calculation unit)
R…Primary judgment result (defective area information)
S...Solder (object)

Claims (8)

互いに異なる複数の検査領域のそれぞれについて当該検査領域における対象物の状態を判定する一次判定において、前記複数の検査領域のうち不良と判定された不良領域を示す不良領域情報を取得する情報取得部と、
前記不良領域情報が示す前記不良領域における前記対象物の画像に含まれる異常を示す不良領域異常データを算出する異常データ算出部と、
前記不良領域異常データに基づき、前記対象物の状態を判定する二次判定を実行する二次判定実行部と
を備えた二次外観検査装置。
an information acquisition unit that acquires defective area information indicating a defective area determined to be defective among the plurality of inspection areas in a primary judgment of determining the state of an object in each of the plurality of inspection areas that are different from each other; ,
an abnormality data calculation unit that calculates defective area abnormality data indicating an abnormality included in the image of the object in the defective area indicated by the defective area information;
A secondary visual inspection device comprising: a secondary determination execution unit that executes a secondary determination to determine the state of the object based on the defective area abnormality data.
前記異常データ算出部は、
前記一次判定において撮像された、前記複数の検査領域を含む撮像領域における前記対象物の画像である対象物画像を取得する画像取得部と、
前記複数の検査領域に対応してそれぞれ設けられた複数の機械学習モデルと、
前記複数の機械学習モデルのうち、前記不良領域に対応する対応モデルを用いて、前記不良領域異常データを算出するデータ算出部と
を有し、
前記複数の機械学習モデルのそれぞれは、対応する前記検査領域で撮像された画像に含まれる異常を示す検査領域異常データを出力し、
前記データ算出部は、前記対象物画像のうち、前記不良領域に含まれる画像を不良領域画像として抽出して、前記対応モデルが前記不良領域画像について出力する前記検査領域異常データを前記不良領域異常データとして算出する請求項1に記載の二次外観検査装置。
The abnormal data calculation unit includes:
an image acquisition unit that acquires an object image that is an image of the object in an imaging area that includes the plurality of inspection areas that was imaged in the primary determination;
a plurality of machine learning models respectively provided corresponding to the plurality of inspection areas;
a data calculation unit that calculates the defective area abnormal data using a corresponding model corresponding to the defective area among the plurality of machine learning models;
Each of the plurality of machine learning models outputs inspection area abnormality data indicating an abnormality included in an image captured in the corresponding inspection area,
The data calculation unit extracts an image included in the defective area from the object image as a defective area image, and converts the inspection area abnormality data outputted by the corresponding model regarding the defective area image into the defective area abnormality. The secondary appearance inspection device according to claim 1, wherein the secondary appearance inspection device is calculated as data.
前記異常データ算出部は、
前記一次判定において撮像された、前記複数の検査領域を含む撮像領域における前記対象物の画像である対象物画像を取得する画像取得部と、
前記撮像領域で撮像された画像に含まれる異常を示す撮像領域異常データを出力する機械学習モデルと、
前記機械学習モデルが前記対象物画像について出力した前記撮像領域異常データから、前記不良領域に対応するデータを抽出することで、前記不良領域異常データを算出するデータ算出部と
を有する請求項1に記載の二次外観検査装置。
The abnormal data calculation unit includes:
an image acquisition unit that acquires an object image that is an image of the object in an imaging area that includes the plurality of inspection areas that was imaged in the primary determination;
a machine learning model that outputs imaging region abnormality data indicating abnormalities included in images captured in the imaging region;
2. The method according to claim 1, further comprising a data calculation unit that calculates the defective area abnormal data by extracting data corresponding to the defective area from the imaging area abnormal data output by the machine learning model for the object image. The secondary appearance inspection device described.
ユーザインターフェースと、
前記不良領域異常データを少なくとも含む、可視化された異常データを前記ユーザインターフェースに表示させる表示制御部と
をさらに備えた請求項1に記載の二次外観検査装置。
a user interface;
The secondary appearance inspection apparatus according to claim 1, further comprising a display control unit that causes the user interface to display visualized abnormality data including at least the defective area abnormality data.
前記二次判定実行部による前記二次判定によって前記対象物の良否を判定する自動判定モードと、前記ユーザインターフェースに前記異常データを表示しつつユーザが前記ユーザインターフェースに行った操作に基づき前記対象物の良否を判定するマニュアル判定モードとを選択的に実行するモード選択部をさらに備えた請求項4に記載の二次外観検査装置。 an automatic judgment mode in which the quality of the object is determined by the secondary judgment by the secondary judgment execution unit; and an automatic judgment mode in which the object is judged to be good or bad based on the operation performed by the user on the user interface while displaying the abnormality data on the user interface. 5. The secondary visual inspection apparatus according to claim 4, further comprising a mode selection unit that selectively executes a manual determination mode for determining the quality of the product. 前記モード選択部は、前記自動判定モードおよび前記マニュアル判定モードのうち、前記ユーザインターフェースに対するユーザの操作によって選択された一のモードを実行する請求項5に記載の二次外観検査装置。 The secondary visual inspection apparatus according to claim 5, wherein the mode selection unit executes one mode selected by a user's operation on the user interface from among the automatic determination mode and the manual determination mode. 互いに異なる複数の検査領域のそれぞれについて当該検査領域における対象物の状態を判定する一次判定を実行して、当該一次判定において前記複数の検査領域のうち不良と判定された不良領域を示す不良領域情報を出力する一次外観検査装置と、
請求項1ないし6のいずれか一項に記載の二次外観検査装置と
を備え、
前記情報取得部は、前記一次外観検査装置から出力された前記不良領域情報を取得する外観検査システム。
Defective area information indicating a defective area determined to be defective among the plurality of inspection areas in the primary judgment by performing a primary judgment to determine the state of the object in each of the plurality of inspection areas that are different from each other. a primary visual inspection device that outputs
A secondary appearance inspection device according to any one of claims 1 to 6,
The information acquisition unit is a visual inspection system that acquires the defective area information output from the primary visual inspection device.
互いに異なる複数の検査領域のそれぞれについて当該検査領域における対象物の状態を判定する一次判定において、前記複数の検査領域のうち不良と判定された不良領域を示す不良領域情報を取得する工程と、
前記不良領域情報が示す前記不良領域における前記対象物の画像に含まれる異常を示す不良領域異常データを算出する工程と、
前記不良領域異常データに基づき、前記対象物の状態を判定する二次判定を実行する工程と
を備えた二次外観検査方法。
a step of obtaining defective area information indicating a defective area determined to be defective among the plurality of inspection areas in a primary determination of determining the state of the object in each of the plurality of inspection areas that are different from each other;
calculating defective area abnormality data indicating an abnormality included in the image of the object in the defective area indicated by the defective area information;
A secondary appearance inspection method comprising: executing a secondary determination to determine the state of the object based on the defective area abnormality data.
JP2022118929A 2022-07-26 2022-07-26 Secondary appearance inspection equipment, appearance inspection system, and secondary appearance inspection method Pending JP2024016646A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022118929A JP2024016646A (en) 2022-07-26 2022-07-26 Secondary appearance inspection equipment, appearance inspection system, and secondary appearance inspection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022118929A JP2024016646A (en) 2022-07-26 2022-07-26 Secondary appearance inspection equipment, appearance inspection system, and secondary appearance inspection method

Publications (1)

Publication Number Publication Date
JP2024016646A true JP2024016646A (en) 2024-02-07

Family

ID=89806532

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022118929A Pending JP2024016646A (en) 2022-07-26 2022-07-26 Secondary appearance inspection equipment, appearance inspection system, and secondary appearance inspection method

Country Status (1)

Country Link
JP (1) JP2024016646A (en)

Similar Documents

Publication Publication Date Title
JP5865707B2 (en) Appearance inspection apparatus, appearance inspection method, and computer program
JP4882529B2 (en) Defect detection method and defect detection apparatus
JP5081590B2 (en) Defect observation classification method and apparatus
JP5861462B2 (en) Inspection standard registration method for solder inspection and board inspection apparatus using the method
KR100759950B1 (en) Device and method for inspection external appearance
JP6422573B2 (en) Image processing apparatus, image processing method and program
WO2018034057A1 (en) Defect inspection apparatus, defect inspection method, and program
JP2007286000A (en) Inspecting device, inspecting method, and inspecting processing program
JP4610393B2 (en) Inspection device
JP2006170922A (en) Visual inspection method and its apparatus
JP6049052B2 (en) Wafer visual inspection apparatus and sensitivity threshold setting method in wafer visual inspection apparatus
JP2024016646A (en) Secondary appearance inspection equipment, appearance inspection system, and secondary appearance inspection method
JP2008051558A (en) Visual inspection method and device
JP2013140041A (en) Visual inspection device, visual inspection method and computer program
WO2022130814A1 (en) Index selection device, information processing device, information processing system, inspection device, inspection system, index selection method, and index selection program
JP6585992B2 (en) Image inspection device
JP6182024B2 (en) Unevenness measuring method and unevenness measuring apparatus
JP3311628B2 (en) Defect location device for thin display devices
JP2021128415A (en) Machine learning method and information processing device for machine learning
JP2006145228A (en) Unevenness defect detecting method and unevenness defect detector
JP2006250876A (en) Method, device, and program for inspecting optical panel, and recording medium with program stored
WO2023053727A1 (en) Image processing device, processing system, image display method, and program
JP2004101338A (en) Image processing method and image processing apparatus as well as program of the image processing method
US20220292662A1 (en) Information processing apparatus,information processing method,and non-transitory computer-readable storage medium
KR102415928B1 (en) Method for non-destructive inspection based on transmission image