Visual inspection system, management device for visual inspection and visual inspection method
The visual inspection system improves accuracy by sharing and generating defect image data across devices, creating tailored models to address device variations and ensure consistent defect detection.
Patent Information
- Application Number
- JP2023053977
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-10
AI Technical Summary
Existing visual inspection systems face challenges in maintaining inspection accuracy across multiple devices due to variations in light sources and imaging device performance, leading to uneven defect identification and insufficient accuracy.
A visual inspection system and management device that enables communication between multiple devices, acquires and shares defect image data, generates new image data, and performs machine learning to create tailored models for each device, improving inspection accuracy.
Enhances inspection accuracy by using shared and generated defect image data for machine learning, addressing device variations and ensuring consistent defect detection across multiple visual inspection devices.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an appearance inspection system, an appearance inspection management device, and an appearance inspection method. [Background technology]
[0002] Conventionally, there is known an appearance inspection device that identifies the presence or absence of defects from image data of an inspection object captured by an imaging device, using a trained model that has been machine-learned to determine the relationship between image data of the inspection object captured by an imaging device and the presence or absence of defects.
[0003] Usually, the number of defective products having defects is far less than the number of non-defective products, so there is often a shortage of image data of defective products to be used for machine learning. Therefore, Patent Document 1 discloses a technology for generating image data of defective products of a desired inspection object by combining image data of different types of inspection objects. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2020-106461 A Summary of the Invention [Problem to be solved by the invention]
[0005] However, when performing appearance inspection using multiple appearance inspection devices, it is difficult to share a trained model among the multiple appearance inspection devices because of variations in light sources and performance of imaging devices for each appearance inspection device. Furthermore, multiple appearance inspection devices are often placed on different manufacturing lines or inspect different products, and the types of defects identified by each appearance inspection device are likely to be biased. Therefore, there is a risk of problems occurring in a certain appearance inspection device, such as insufficient inspection accuracy for a specific defect.
[0006] Therefore, an object of the present invention is to provide an appearance inspection system, an appearance inspection management device, and an appearance inspection method that are capable of improving the inspection accuracy in a plurality of appearance inspection devices. [Means for solving the problem]
[0007] In order to solve the above-mentioned problems, the present invention provides an appearance inspection system comprising: a plurality of appearance inspection devices that use a pre-created trained model to identify the presence or absence of defects in an inspection object from image data of the inspection object captured by an imaging device; and an appearance inspection management device configured to be able to communicate with each of the plurality of appearance inspection devices, wherein the appearance inspection management device has at least an image data acquisition processing unit that acquires defect image data, which is the image data identified as having a defect by the plurality of appearance inspection devices, and stores it in a memory unit, and each of the plurality of appearance inspection devices is configured to be able to acquire from the appearance inspection management device the defect image data of other appearance inspection devices stored in the memory unit, or generated defect image data newly generated using the defect image data, or the trained model created by performing machine learning using the generated defect image data.
[0008] In addition, for the purpose of solving the above-mentioned problems, the present invention provides a visual inspection management device that manages a plurality of visual inspection devices that identifies the presence or absence of defects in an inspection object from image data of the inspection object captured by an imaging device using a pre-created learned model, the visual inspection management device being configured to be able to communicate with each of the plurality of visual inspection devices, and having at least an image data acquisition processing unit that acquires defect image data, which is the image data identified as having a defect by the plurality of visual inspection devices, and stores it in a memory unit, and is configured to be able to output, to each of the plurality of visual inspection devices, the defect image data of other visual inspection devices stored in the memory unit, or generated defect image data newly generated using the defect image data, or the learned model created by performing machine learning using the generated defect image data.
[0009] In addition, for the purpose of solving the above-mentioned problems, the present invention provides an appearance inspection method using a plurality of appearance inspection devices, which identifies the presence or absence of defects in an inspection object from image data of the inspection object captured by an imaging device using a previously created trained model, the appearance inspection method comprising: providing an appearance inspection management device capable of communicating with each of the plurality of appearance inspection devices; storing at least defect image data, which is the image data identified as having a defect by the plurality of appearance inspection devices, in a memory unit of the appearance inspection management device; generating the generated defect image data using flawless image data, which is the image data determined to be free of defects by a specified appearance inspection device, and the defect image data by an appearance inspection device other than the specified appearance inspection device; performing machine learning using the defect image data acquired by the specified appearance inspection device, the flawless image data, and the generated defect image data as learning data; and creating the trained model to be used in the specified appearance inspection device. Effect of the Invention
[0010] According to the present invention, it is possible to provide an appearance inspection system, an appearance inspection management device, and an appearance inspection method that are capable of improving the inspection accuracy in a plurality of appearance inspection devices. [Brief description of the drawings]
[0011] [Figure 1] 1 is a schematic configuration diagram of a visual inspection system according to an embodiment of the present invention; [Diagram 2] FIG. 4 is a diagram illustrating an example of an image data management database. [Diagram 3] 13A and 13B are diagrams illustrating the image generation process. [Figure 4] 13A and 13B are diagrams illustrating a model generation process. [Diagram 5] FIG. 11 is a flow diagram showing a control flow during a visual inspection. [Figure 6] FIG. 1 is a flow diagram showing the control flow when creating and updating a trained model. [Figure 7] FIG. 11 is a flow diagram of an image data acquisition process. [Figure 8] 1A is a flow diagram of an image generation process, and FIG. 1B is a flow diagram of a learning data creation process. [Figure 9] FIG. 13 is a flow diagram of a model creation process. [Figure 10] FIG. 13 is a schematic configuration diagram of a visual inspection system according to a modified example of the present invention. [Figure 11] FIG. 13 is a schematic configuration diagram of a visual inspection system according to a modified example of the present invention. [Figure 12] FIG. 13 is a schematic configuration diagram of a visual inspection system according to a modified example of the present invention. [Figure 13] FIG. 13 is a diagram showing an example of a visual inspection result display screen displayed on a display unit of the visual inspection device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] [Embodiment Mode] Hereinafter, an embodiment of the present invention will be described with reference to the accompanying drawings.
[0013] Fig. 1 is a schematic configuration diagram of an appearance inspection system 1 according to the present embodiment. As shown in Fig. 1, the appearance inspection system 1 includes a plurality of appearance inspection devices 2, and an appearance inspection management device 10 (hereinafter simply referred to as the management device 10) configured to be able to communicate with each of the plurality of appearance inspection devices 2 via a network 100. The network 100 may be the Internet, or a dedicated intranet such as a local area network or a wide area network.
[0014] The visual inspection system 1 also includes a management terminal 101 configured to be capable of communicating with the management device 10 via the network 100. The management terminal 101 is a terminal device for configuring the management device 10 via the network 100, and is configured, for example, by a personal computer. Here, the inspection results (the identification results of the presence or absence of defects) from the visual inspection device 2 can also be confirmed on the management terminal 101.
[0015] (Visual inspection device 2) The visual inspection device 2 is a device that identifies the presence or absence of defects in an inspection object. Here, a case where two visual inspection devices 2, a first visual inspection device 2a and a second visual inspection device 2b, are used will be described, but the number of visual inspection devices 2 is not limited to this, and may be three or more. There is no particular limitation on the inspection object, but here, a case where a ceramic material, in particular a magnetic material, is used as the inspection object will be described. In this case, defects inspected by visual inspection include cracks, chips, pinholes, peeling of the black skin, waviness, etc.
[0016] The first visual inspection device 2a includes an imaging device 21a that images an object to be inspected, a control unit 22a, and a storage unit 23a. Similarly, the second visual inspection device 2b includes an imaging device 21b that images an object to be inspected, a control unit 22b, and a storage unit 23b.
[0017] The control units 22a and 22b are realized by appropriately combining a calculation element such as a CPU, a memory such as a RAM or a ROM, a storage device such as a hard disk, and a communication interface which is a communication device such as a LAN card. The storage units 23a and 23b are realized by a predetermined storage area of a memory or a storage device. The control units 22a and 22b and the storage units 23a and 23b may be realized by a calculation device such as a personal computer.
[0018] The control units 22a and 22b each have a defect identification processing unit 221a and 221b and a transmission / reception processing unit 222a and 222b. The defect identification processing units 221a and 221b use pre-created trained models 51 and 52 to identify the presence or absence of a defect in an inspection object from image data of the inspection object captured by the imaging devices 21a and 21b.
[0019] The defect identification processing unit 221a of the first appearance inspection device 2a uses the first trained model 51 stored in the storage unit 23a to identify the presence or absence of a defect in the inspection object from the image data captured by the imaging device 21a. If the result of the identification indicates that the inspection object is free of defects, the image data used for the identification is stored in the storage unit 23a as the first flawless image data 411. If the result of the identification indicates that the inspection object is free of defects, the image data used for the identification is stored in the storage unit 23a as the first flawless image data 412. Hereinafter, the first flawless image data 411 and the first flawless image data 412 are collectively referred to as the first image data 41.
[0020] Similarly, the defect identification processing unit 221b of the second appearance inspection device 2b uses the second trained model 52 stored in the storage unit 23b to identify the presence or absence of a defect in the inspection object from the image data captured by the imaging device 21b. Then, if the result of the identification indicates that the inspection object is not defective, the image data used for the identification is stored in the storage unit 23b as the second flawless image data 421. If the result of the identification indicates that the inspection object is defective, the image data used for the identification is stored in the storage unit 23b as the second flawless image data 422. Hereinafter, the second flawless image data 421 and the second flawless image data 422 will be collectively referred to as the second image data 42.
[0021] However, when multiple appearance inspection devices 2a, 2b are used, there are individual differences (machine differences) between the devices, such as performance differences between the imaging devices 21a, 21b and differences in the brightness of lighting. Therefore, it is not desirable from the viewpoint of inspection accuracy to use common trained models 51, 52 between the multiple appearance inspection devices 2a, 2b. In this embodiment, dedicated trained models 51, 52 are used in each of the appearance inspection devices 2a, 2b.
[0022] In FIG. 1, the first trained model 51 and the second trained model 52 are shown for simplicity. In reality, however, in each appearance inspection device 2, trained models are created for each part to be imaged, imaging angle, type of defect to be identified, and lighting condition, and stored in the storage units 23a and 23b. When performing an appearance inspection, the control units 22a and 22b sequentially image the object to be inspected while changing the lighting condition and angle in a preset procedure, and acquire multiple pieces of image data. Then, the defect identification processing units 221a and 221b identify the presence or absence of a defect for each of the acquired multiple pieces of image data using the corresponding trained model. At this time, in order to identify the presence or absence of multiple defects of different types in one image data, the presence or absence of a defect may be identified by applying multiple trained models to one image data. When the defect identification processing units 221a and 221b determine that the object to be inspected is free of defects in all image data, the control units 22a and 22b determine that the object to be inspected is a non-defective product without defects, and discharge the object to be inspected from a non-defective product outlet. In addition, when the defect identification processing units 221a, 221b determine that the object to be inspected has a defect in any of the image data, the control units 22a, 22b determine that the object to be inspected is a defective product having a defect, and discharge the object to be inspected from a defective product outlet.
[0023] As described above, the image data captured by the imaging device 21b differs in terms of the location, angle, and lighting conditions. Therefore, each image data is stored in the storage units 23a and 23b in a state linked to the location, angle, and lighting conditions. Furthermore, for image data determined to have a defect (first defect image data 412 and second defect image data 422), information on what type of defect is determined to have, that is, the type of defect, is also linked and stored. The control units 22a and 22b create a database in which the ID and file name of the image data are linked to the product type, the imaging location, the imaging angle, the lighting conditions, and the type of defect, and store the database in the storage units 23a and 23b as the first image data management database 431 or the second image data management database 432.
[0024] The transmission / reception processing units 222a and 222b perform processing for transmitting and receiving data between the appearance inspection devices 2a and 2b and the management device 10. More specifically, when the transmission / reception processing units 222a and 222b receive an image data request signal from the management device 10, they transmit the image data 41 and 42 stored in the storage units 23a and 23b and the image data management databases 431 and 432 to the management device 10. Note that the transmission / reception processing units 222a and 222b may be configured to transmit only the image data 41 and 42 added since the previous transmission. In addition, when the transmission / reception processing units 222a and 222b receive the trained models 51 and 52 from the management device 10, they store the received trained models 51 and 52 in the storage units 23a and 23b, and update the trained models 51 and 52.
[0025] (Management device 10) The management device 10 is configured, for example, by a server device. The management device 10 has a control unit 11 and a storage unit 12. The management device 10 is, for example, a computer such as a server device, and includes a computing element such as a CPU, memories such as RAM and ROM, a storage device such as a hard disk, and a communication interface which is a communication device such as a LAN card.
[0026] The control unit 11 has a setting processing unit 111, an image data acquisition processing unit 112, an image generation processing unit 113, a learning data creation processing unit 114, a model creation processing unit 115, and an output processing unit 116. The storage unit 12 is realized by a predetermined storage area of a memory or a storage device.
[0027] (Settings processing unit 111) The setting processing unit 111 performs setting processing for making various settings of the management device 10. The setting processing unit 111 can set information related to various controls, such as the method of image data acquisition by the image data acquisition processing unit 112 and the acquisition date and time. The setting processing unit 111 can also register, update, delete, and the like, various information stored in the storage unit 12. In this embodiment, input of various information is performed by the management terminal 101 via the network 100.
[0028] (Image data acquisition processing unit 112) The image data acquisition processing unit 112 performs image data acquisition processing to acquire at least the defect image data 412, 422 from the multiple appearance inspection devices 2 and store the data in the storage unit 12. In this embodiment, the image data acquisition processing unit 112 acquires all image data (the first image data 41 and the second image data 42) including the flawless image data 411, 421 and the image data management databases 431, 432 from the appearance inspection devices 2a, 2b.
[0029] Furthermore, the image data acquisition processing unit 112 integrates the acquired first image data management database 431 and second image data management database 432 and stores them in the storage unit 12 as the image data management database 43. As shown in Fig. 2, the image data management database 43 is a database in which the ID of the visual inspection device 2 that captured the image, the type of product, the part captured, the angle, the type of defect (only defect image data 412, 422), the lighting condition, etc. are linked to each image ID that can identify the image data. In the example of Fig. 2, the type of product, the part captured, the angle, the type of defect, and the lighting condition are each displayed with a preset number. Note that the image data management database 43 may include information other than that shown in the figure.
[0030] In this way, the image data acquisition processing unit 112 associates the defect image data acquired from the multiple appearance inspection devices 2 with at least the type of defect and stores it in the storage unit 12. The image data acquisition processing unit 112 also associates the flawless image data 411, 421 and the defect image data 412, 422 acquired from the multiple appearance inspection devices 2 with the ID of the appearance inspection device 2 that captured the image, the type of product, the part captured, the angle, and the lighting conditions at the time of capturing the image, and stores them in the storage unit 12. This makes it easier to select a pair of flawless image data 411, 421 and defect image data 412, 422 suitable for synthesis in the image generation process described later.
[0031] (Image generation processing unit 113) The image generation processing unit 113 performs image generation processing to generate generated defect image data 413 (or 423) using flawless image data 411 (or 421) from a specified appearance inspection device 2a (or 2b) and defect image data 422 (or 412) from an appearance inspection device 2b (or 2a) different from the specified appearance inspection device 2a (or 2b).
[0032] More specifically, as shown in FIG. 3(a), the image generation processing unit 113 generates the first generated defect image data 413 used for learning the first trained model 51 for the first appearance inspection device 2a based on the first flawless image data 411 and the second defect image data 422. In the image generation process, a pair of the first flawless image data 411 and the second defect image data 422 of the imaging part, angle, defect type, and illumination state corresponding to the first trained model 51 to be trained may be selected, for example, randomly. Since the method of generating the first generated defect image data 413 is publicly known, details will be omitted here. For example, after cutting out the defective part of the second defect image data 422, the cut-out defective part is fitted to the first flawless image data 411, and the first generated defect image data 413 may be generated by performing a process of blending the fitted defective part with the surroundings. The image generation processing unit 113 stores the generated first generated defect image data 413 in the storage unit 12 , and adds information about the generated first generated defect image data 413 to the image data management database 43 .
[0033] 3(b), the image generation processing unit 113 generates second generated defect image data 423 used for training the second trained model 52 based on the second flawless image data 421 and the first defect image data 412. The image generation processing unit 113 stores the generated second generated defect image data 423 in the storage unit 12, and adds information about the generated second generated defect image data 423 to the image data management database 43.
[0034] (Learning data creation processing unit 114) The learning data creation processing unit 114 performs a learning data creation process to extract image data to be used for machine learning according to the created learned models 51, 52. More specifically, when performing machine learning of the first learned model 51, the learning data creation processing unit 114 extracts first flawless image data 411, first defect image data 412, and first generated defect image data 413 of the imaging part, angle, defect type, and lighting condition corresponding to the first learned model 51, and stores them in the storage unit 12 as first learning data 61.
[0035] At this time, if the number of the first flawless image data 411 is too large, a process for appropriately reducing the number (for example, a process for randomly selecting a predetermined number) may be performed. Also, if the total number of the first defective image data 412 and the first generated defective image data 413 is smaller than a preset lower limit number, the image generation processing unit 113 may be caused to generate the first generated defective image data 413.
[0036] Similarly, when performing machine learning of the second trained model 52, the learning data creation processing unit 114 extracts the second flawless image data 421, the second defect image data 422, and the second generated defect image data 423 of the imaging part, angle, defect type, and illumination state corresponding to the second trained model 52, and stores them in the storage unit 12 as the second learning data 62. At this time, if the number of the second flawless image data 421 is too large, a process of appropriately reducing the number may be performed. Also, if the total number of the second defect image data 422 and the second generated defect image data 423 is less than a preset lower limit number, the image generation processing unit 113 may be configured to generate the second generated defect image data 423.
[0037] (Model creation processing unit 115) The model creation processing unit 115 performs machine learning using the learning data 61, 62 to create learned models 51, 52. When creating the first learned model 51, as shown in Fig. 4(a), the model creation processing unit 115 performs machine learning on the relationship between the first flawless image data 411, the first defective image data 412, and the first generated defective image data 413 included in the first learning data 61 and the presence or absence of defects in the object to be inspected, and creates the first learned model 51 as a result of the machine learning.
[0038] More specifically, the first complete image data 411, the first defect image data 412, and the first generated defect image data 413 are used as parameters of explanatory variables, and the presence or absence of a defect in the inspection object is used as an objective variable to create a first trained model 51 as a model structure representing the correlation between the explanatory variables and the objective variables. The model creation processing unit 115 includes software such as a learning algorithm for learning the correlation between the parameters of the objective variable and each parameter of the input explanatory variables by machine learning. The learning algorithm is not particularly limited, and a known learning algorithm can be used, for example, so-called deep learning using a neural network with three or more layers can be used.
[0039] The model creation processing unit 115 stores the created first trained model 51 in the storage unit 12. In this embodiment, the first trained model 51 may be updated by an administrator or the like at any time by the model creation processing unit 115, or may be updated periodically, for example, once a month. In this embodiment, the image data itself is treated as an explanatory variable, but a preset feature amount (for example, an area of a region of a predetermined color, a saturation variation, an edge angle, etc.) included in the first flawless image data 411, the first defective image data 412, and the first generated defective image data 413 may be used as a parameter of the explanatory variable.
[0040] Similarly, when creating the second trained model 52, as shown in Figure 4(b), the model creation processing unit 115 performs machine learning on the relationship between the second flawless image data 421, the second defective image data 422, and the second generated defect image data 423 contained in the second training data 62 and the presence or absence of defects in the object to be inspected, and creates the second trained model 52 as a result of the machine learning.
[0041] (Output processing unit 116) The output processing unit 116 performs output processing to transmit the trained models 51, 52 created by the model creation processing unit 115 to the corresponding appearance inspection devices 2a, 2b. In this manner, in the appearance inspection system 1 according to the present embodiment, each of the multiple appearance inspection devices 2a, 2b is configured to be able to acquire the trained models 51, 52 created by performing machine learning in the management device 10 using the generated defect image data 413, 423.
[0042] The appearance inspection devices 2a and 2b store the received trained models 51 and 52 in their own storage units 23a and 23b, and update the trained models 51 and 52. At this time, in consideration of a malfunction occurring for some reason, the appearance inspection devices 2a and 2b may be configured to store the trained models 51 and 52 before the update so as to facilitate recovery.
[0043] (Sharing of complete image data 411, 421) In this embodiment, we have described a case in which defect image data 412, 422 are shared between multiple appearance inspection devices 2, the defect image data 412, 422 of the other devices are used to generate generated defect image data 413, 423 for the device itself, and the generated generated defect image data 413, 423 is used for machine learning to create and update learned models 51, 52.However, it is also possible to configure the system to share not only the defect image data 412, 422, but also the flawless image data 411, 421.
[0044] For example, when multiple appearance inspection devices 2 are installed on different production lines, the appearance state of the inspection target may differ even for the same product. In such a case, if the complete image data 411, 421 are configured to be shared, it becomes possible to perform appearance inspection with high inspection accuracy even when, for example, a certain appearance inspection device 2 is moved to a different production line.
[0045] In this case, the image generation processing unit 113 performs appropriate image processing (e.g., adjusting brightness and saturation) on the flawless image data 411, 421 of the other appearance inspection device 2 to generate new generated flawless image data (not shown) for the specified appearance inspection device 2. Then, the model creation processing unit 115 may create and update the trained models 51, 52 using the generated generated flawless image data.
[0046] (How to deal with overdetection and oversight) In the case of "overdetection" where a defect is determined to exist in the appearance inspection by the appearance inspection device 2 but is determined to exist but is not in the appearance inspection by a human, or "oversight" where a defect is found in the appearance inspection by a human even though a defect is identified to exist in the appearance inspection by the appearance inspection device 2, there is a risk of similar overdetection or oversight occurring, so it is desirable to promptly update the trained models 51, 52. In this case, the overdetected image data is added to the flawless image data 411, 421, and the oversighted image data is added to the defective image data 412, 422, and machine learning is performed using the training data 61, 62 including the added image data.
[0047] In addition, in order to prevent similar overdetection or oversight from occurring in other devices, generated flawless image data can be generated for the other devices using the flawless image data 411, 421 that was overdetected, and generated defect image data 413, 423 can be generated using the defect image data 412, 422 that was overlooked, and these can be used for machine learning to update the learned models 51, 52.
[0048] (Control flow during visual inspection) Fig. 5 shows a control flow during visual inspection. As shown in Fig. 5, first, in step S1, an inspection target is introduced into visual inspection device 2 and images are captured by imaging devices 21a and 21b. At this time, images are captured sequentially at a preset angle and under preset lighting conditions to obtain multiple pieces of image data. Then, in step S2, defect identification processing is performed. In the defect identification processing, defect identification processing units 221a and 221b use corresponding trained models 51 and 52 to identify the presence or absence of defects for each of the multiple pieces of image data obtained in step S1.
[0049] Then, in step S3, it is determined whether any of the image data has been identified as defective. If the result of step S3 is NO (N), that is, if all of the image data have been determined to be free of defects, the inspected object is determined to be a non-defective product in step S4, and is discharged from a non-defective product outlet. Then, in step S5, the image data captured in step S1 are stored in storage units 23a and 23b as flawless image data 411 and 421, and in step S6, information on each image data is registered in image data management databases 431 and 432, and the process returns.
[0050] If step S3 returns YES (Y), then step S7 determines the object to be inspected as defective and ejects it from the defective product exit. Then, step S8 stores the image data determined to have defects as defective image data 412, 422 in storage units 23a, 23b. At this time, image data determined to have no defects because the location is different, etc., may be stored in storage units 23a, 23b as flawless image data 411, 421. Then, step S9 registers information on each image data in image data management databases 431, 432 and returns.
[0051] (Control flow for creating and updating a trained model) FIG. 6 is a flow diagram showing a control flow when creating and updating a trained model. The control flow of FIG. 6 may be executed periodically or may be executed as needed by an administrator or the like. As shown in FIG. 6, image data acquisition processing in step S10, image generation processing in step S20, learning data creation processing in step S30, model creation processing in step S40, and output processing in step S50 are sequentially performed. Note that only the image data acquisition processing in step S10 may be executed periodically, and each processing from step S20 onward may be executed as needed by an administrator or the like. Although not shown, in the control flow of FIG. 6, trained models 51 and 52 to be updated or created are specified automatically or manually by an administrator in advance. When an administrator manually specifies trained models 51 and 52 to be updated or created, the models can be specified, for example, by input from the management terminal 101.
[0052] In the image data acquisition process in step S10, first, in step S11, the image data acquisition processing unit 112 transmits an image data request signal to each of the appearance inspection devices 2a and 2b, as shown in Fig. 7. Note that, although a case where the image data request signal is transmitted to both the first appearance inspection device 2a and the second appearance inspection device 2b is shown here, the image data request signal may be transmitted to only one of them as necessary.
[0053] The transmission / reception processing unit 222a of the first appearance inspection device 2a that has received the image data request signal transmits the first image data 41 and the first image data management database 431 to the management device 10 (step S12). At this time, it is also possible to transmit only the information on the first image data 41 and the first image data management database 431 that have not yet been transmitted. Similarly, the transmission / reception processing unit 222b of the second appearance inspection device 2b that has received the image data request signal transmits the second image data 42 and the second image data management database 432 to the management device 10 (step S13).
[0054] Then, in step S14, the image data acquisition processing unit 112 stores the received first and second image data 41, 42 and the first and second image data management databases 431, 432 in the storage unit 12. Then, in step S15, the image data management database 43 is updated using the first and second image data management databases 431, 432. Then, the process returns and proceeds to step S20.
[0055] In the image generation process of step S20, as shown in FIG. 8(a), first, in step S21, the image generation processing unit 113 selects a pair of flawless image data 411, 421 and defective image data 412, 422 to be combined. At this time, the image data management database 43 is referenced, and image data of the imaging conditions (angle, lighting condition, etc.) corresponding to the trained models 51, 52 for machine learning and the corresponding defect type is randomly selected. In addition, when training the first trained model 51, a pair of the first flawless image data 411 and the second defective image data 422 is selected, and when training the second trained model 52, a pair of the second flawless image data 421 and the first defective image data 412 is selected. In addition, when selecting image data, for example, a configuration may be made in which a plurality of candidate image data are displayed on the display of the management terminal 101 so that the administrator can select a pair of image data to be combined.
[0056] Then, in step S22, the generated defect image data 413, 423 are generated using the selected pair of the flawless image data 411, 421 and the defect image data 412, 422. Then, in step S23, the generated generated defect image data 413, 423 are stored in the storage unit 12, and information on the generated defect image data 413, 423 is registered in the image data management database 43. Then, the process returns to proceed to the learning data creation process in step S30.
[0057] In addition, if the total number of defect image data 412, 422 and generated defect image data 413, 423 corresponding to the learned models 51, 52 to be updated or created is already sufficient (i.e., if a sufficient number is secured to obtain sufficient inspection accuracy through machine learning), step S20 can be omitted.
[0058] In the learning data creation process in step S30, as shown in FIG. 8(b), first, in step S31, the learning data creation processing unit 114 extracts the image data (perfect image data 411, 421, defect image data 412, 422, and generated defect image data 413, 423) of the imaging conditions (imaging part, angle, illumination state) and the corresponding defect type of image data corresponding to the learned model 51, 52 to be updated or created. At this time, if the total number of the defect image data 412, 422 and the generated defect image data 413, 423 is less than a predetermined number, the process may return to step S22 and generate the generated defect image data 413, 423. In addition, if the number of the perfect image data 411, 421 is large, the number of the perfect image data 411, 421 used for the learning data 61, 62 may be reduced by an appropriate method. After that, in step S32, each extracted image data is stored in the storage unit 12 as learning data. After that, the process returns and proceeds to step S40.
[0059] 9, in the model creation process of step S40, first, in step S41, the model creation processing unit 115 uses the learning data 61, 62 created in step S30 for machine learning to create (or update) the trained models 51, 52. Then, in step S42, the created (or updated) trained models 51, 52 are stored in the storage unit 12. Then, the process returns and proceeds to step S50.
[0060] In the output process of step S50, the trained models 51, 52 created in step S40 are transmitted to the corresponding appearance inspection device 2. The transmission / reception processing units 222a, 222b of the appearance inspection device 2 that received the trained models 51, 52 store the received trained models 51, 52 in the storage unit and update the trained models 51, 52. This ends the process.
[0061] (Modification) In this embodiment, the management device 10 is configured as one server device, but the present invention is not limited to this, and the management device 10 may be configured as a plurality of server devices. For example, as in the appearance inspection system 1a shown in Fig. 10, by mounting an image generation processing unit 113 on one side of the first server device 10a and mounting a model creation processing unit 115 on the other side of the second server device 10b, the first server device 10a is in charge of processing related to image generation, and the second server device 10b is in charge of processing related to machine learning, the roles are divided between the server devices 10a and 10b, and the processing load can be distributed.
[0062] In addition, in this embodiment, the management device 10 is equipped with the image generation processing unit 113 and the model creation processing unit 115, but this is not limited to the above, and both or either of the image generation processing unit 113 and the model creation processing unit 115 may be installed in the appearance inspection device 2.
[0063] 11, the image generation processing unit 113, the learning data creation processing unit 114, and the model creation processing unit 115 may be installed in each of the appearance inspection devices 2. In this case, the management device 10 may be equipped with at least a function of acquiring defect image data 412, 422 from each appearance inspection device 2, storing the defect image data 412, 422 in the storage unit 12, and outputting the defect image data 412, 422 of an appearance inspection device 2 different from the arbitrary appearance inspection device 2 to the arbitrary appearance inspection device 2. In other words, each of the multiple appearance inspection devices 2 may be configured to be able to acquire the defect image data 412, 422 of the other appearance inspection devices 2 stored in the storage unit 12 from the management device 10.
[0064] 11, the processes of generating the generated defect image data 413, 423 and creating the learned models 51, 52 are performed by each of the appearance inspection devices 2. That is, each of the appearance inspection devices 2 may have an image generation processing unit 113 that generates the generated defect image data 413, 423 using the flawless image data 411, 421 of its own device and the defect image data 412, 422 of the other device, and a model creation processing unit 115 that performs machine learning using the flawless image data 411, 421 and the defect image data 412, 422 of its own device and the generated generated defect image data 413, 423 as learning data 61, 62, and creates the learned models 51, 52 of its own device.
[0065] 12, the image generation processing unit 113 may be provided on the management device 10 side, and the learning data creation processing unit 114 and the model creation processing unit 115 may be mounted on each of the appearance inspection devices 2. In this case, the generated defect image data 413, 423 is generated in the management device 10, and the generated generated defect image data 413, 423 is output from the management device 10 to each appearance inspection device 2. In other words, each of the multiple appearance inspection devices 2 may be configured to be able to acquire the generated defect image data 413, 423 newly generated using the defect image data 412, 413 from the management device 10.
[0066] In the appearance inspection system 1c of Fig. 12, the generated defect image data 413, 423 are generated by the management device 10, and the learned models 51, 52 are created by each appearance inspection device 2. In other words, the management device 10 has an image generation processing unit 113 that generates generated defect image data 413, 423 for a predetermined appearance inspection device 2 using the flawless image data 411, 421 in a predetermined appearance inspection device 2 and the defect image data 412, 422 in an appearance inspection device 2 different from the predetermined appearance inspection device 2, and each of the appearance inspection devices 2 may have a model creation processing unit 115 that performs machine learning using the flawless image data 411, 421 and defect image data 412, 422 of its own device and the generated defect image data 413, 423 for its own device acquired from the management device 10 as learning data 61, 62, and creates the learned models 51, 52 of its own device.
[0067] Also, although not shown in the figure, in FIG. 12, the learning data creation processing unit 114 may be mounted on the management device 10, and each of the multiple visual inspection devices 2 may be configured to be able to acquire the learning data 61, 62 from the management device 10.
[0068] Furthermore, although not mentioned in the present embodiment, the visual inspection device 2 may have a display unit that displays the identification result (inspection result of visual inspection) that identifies the presence or absence of a defect in the inspection object. For example, as shown in FIG. 13, the visual inspection result display screen 25 displayed on the display unit 24 may have a captured image display area 25a that displays a captured image, and an identification result display area 25b that displays the identification result of the presence or absence of a defect. It is desirable that the captured image display area 25a displays information on the imaging conditions such as the captured part, angle, and lighting state. The identification result display area 25b may display the identification result of the presence or absence of a defect for each trained model corresponding to the captured image. Although not shown in FIG. 13, the identification result display area 25b may display the time required for identification, a score related to the judgment (including, for example, a heat map that displays the defect-likeness in an image using pseudocolor, etc.), etc.
[0069] (Functions and Effects of the Embodiments) As described above, the appearance inspection system 1 of this embodiment includes a plurality of appearance inspection devices 2 and a management device 10 configured to be able to communicate with each of the plurality of appearance inspection devices 2, and the management device 10 has an image data acquisition processing unit 112 that acquires at least defect image data 412, 422, which is image data identified by the plurality of appearance inspection devices 2 as having a defect in the object to be inspected, and stores it in the memory unit 12, and each of the plurality of appearance inspection devices 2 is configured to be able to acquire from the management device 10 the defect image data 412, 422 of other appearance inspection devices 2 stored in the memory unit 12, or generated defect image data 413, 423 newly generated using the defect image data 412, 422, or learned models 51, 52 created by performing machine learning using the generated defect image data 413, 423.
[0070] By configuring in this manner, in multiple appearance inspection devices 2, the generated defect image data 413, 423 for the own device, which is generated using defect image data 412, 422 acquired by other devices, can be used for machine learning of the own device, thereby improving the inspection accuracy in the multiple appearance inspection devices 2.
[0071] In many cases, multiple appearance inspection devices 2 are arranged on different production lines and inspect different products, which can easily lead to bias in the types of defects identified by the individual appearance inspection devices 2. According to this embodiment, even in such a case, it is possible to prevent problems such as insufficient inspection accuracy for a particular defect in a certain appearance inspection device 2, and to further improve the inspection accuracy of the appearance inspection.
[0072] (Summary of the embodiment) Next, the technical ideas grasped from the above-described embodiment will be described by using the reference numerals and the like in the embodiment. However, the reference numerals and the like in the following description do not limit the components in the claims to the members and the like specifically shown in the embodiment.
[0073] [1] A system including: a plurality of appearance inspection devices (2) for identifying the presence or absence of defects in an inspection object from image data of the inspection object captured by imaging devices (21a, 21b) using trained models (51, 52) created in advance; and an appearance inspection management device (10) configured to be able to communicate with each of the plurality of appearance inspection devices (2), wherein the appearance inspection management device (10) acquires at least defect image data (412, 422), which is the image data of the inspection object identified by the plurality of appearance inspection devices (2) as having a defect, and stores the image data in a memory unit (12). and an image data acquisition processing unit (112) for acquiring the defect image data (412, 422) of the other visual inspection devices (2) stored in the memory unit (12), or generated defect image data (413, 423) newly generated using the defect image data (412, 422), or the trained model (51, 52) created by performing machine learning using the generated defect image data (413, 423).
[0074] [2] The appearance inspection management device (10) has an image generation processing unit (113) that generates the generated defect image data (413, 423) using flawless image data (411, 421), which is the image data determined to be free of defects in the inspection object by a predetermined appearance inspection device (2), and the defect image data (412, 422) from the appearance inspection device (2) different from the predetermined appearance inspection device (2), and a model creation processing unit (115) that performs machine learning on the defect image data (412, 422) acquired by the predetermined appearance inspection device (2), the flawless image data (411, 421), and the generated defect image data (413, 423) as learning data (61, 62), and creates the learned model (51, 52) to be used in the predetermined appearance inspection device (2). The appearance inspection system (1) described in [1].
[0075] [3] The appearance inspection system (1b) described in [1], wherein each of the appearance inspection devices (2) has an image generation processing unit (113) that generates the generated defect image data (413, 423) using flawless image data (411, 421), which is the image data determined by the own device to be free of defects in the object to be inspected, and the defect image data (412, 422) acquired from another appearance inspection device (2), and a model creation processing unit (115) that performs machine learning on the defect image data (412, 422) and the flawless image data (411, 421) acquired by the own device, and the generated defect image data (413, 423) as learning data (61, 62), and creates the learned model (51, 52) of the own device.
[0076] [4] The appearance inspection management device (10) has an image generation processing unit (113) that generates the generated defect image data (413, 423) for the specified appearance inspection device (2) using flawless image data (411, 421), which is the image data determined by a specified appearance inspection device (2) to be free of defects in the inspection object, and the defect image data (412, 422) from a appearance inspection device (2) different from the specified appearance inspection device (2), and each of the appearance inspection devices (2) has a model creation processing unit (115) that performs machine learning using the defect image data (412, 422) and the flawless image data (411, 421) acquired by its own device, and the generated defect image data (413, 423) for its own device acquired from the appearance inspection management device (10) as learning data (61, 62), and creates the learned model (51, 52) of its own device. The appearance inspection system (1c) described in [1].
[0077] [5] The appearance inspection system (1) described in any one of [1] to [4], wherein the image data acquisition processing unit (112) stores the defect image data (412, 422) acquired from the multiple appearance inspection devices (2) in the memory unit (12) in association with at least the type of defect.
[0078] [6] The appearance inspection system (1) described in [5], wherein the image data acquisition processing unit (112) further links the defect image data (412, 422) acquired from the multiple appearance inspection devices (2) to the lighting conditions at the time of imaging and stores it in the memory unit (12).
[0079] [7] The appearance inspection system described in any one of [2] to [4], wherein the image data acquisition processing unit (112) is configured to acquire flawless image data (411, 421), which is the image data determined to be free of defects, from the multiple appearance inspection devices and store it in the memory unit (12), the image generation processing unit (113) generates the generated flawless image data for a new specified appearance inspection device (2) from the flawless image data (411, 421) of the other appearance inspection devices, and the model creation processing unit (115) creates the trained model (51, 52) using the generated flawless image data.
[0080] [8] A visual inspection management device (10) for managing a plurality of visual inspection devices (2) for identifying the presence or absence of defects in an inspection object from image data of the inspection object captured by an imaging device (21a, 21b) using a trained model (51, 52) created in advance, the visual inspection management device (10) is configured to be able to communicate with each of the plurality of visual inspection devices (2), and acquires at least defect image data (412, 422), which is the image data of the inspection object identified by the plurality of visual inspection devices (2) as having a defect, and stores the image data in a memory unit (12). and a processing unit (112) for acquiring and storing image data, and configured to be capable of outputting, to each of the plurality of visual inspection devices (2), the defect image data (412, 422) of the other visual inspection devices (2) stored in the memory unit (12), or generated defect image data (413, 423) newly generated using the defect image data (412, 422), or the trained model (51, 52) created by performing machine learning using the generated defect image data (413, 423).
[0081] [9] A visual inspection method using a plurality of visual inspection devices (2) for identifying the presence or absence of a defect in an inspection object from image data of the inspection object captured by an imaging device (21a, 21b) using a trained model (51, 52) created in advance, comprising: providing a visual inspection management device (10) capable of communicating with each of the plurality of visual inspection devices (2); storing at least defect image data (412, 422) which is the image data of the inspection object identified by the plurality of visual inspection devices (2) as having a defect in the inspection object in a memory unit (12) of the visual inspection management device (10); A visual inspection method comprising: generating generated defect image data (413, 423) using flawless image data (411, 421), which is the image data determined to be free of defects in an object, and the defect image data (412, 422) obtained by a visual inspection device (2) different from the specified visual inspection device (2); performing machine learning on the defect image data (412, 422) and the flawless image data (411, 421) obtained by the specified visual inspection device (2) and the generated defect image data (413, 423) as learning data (61, 62); and creating the trained model (51, 52) to be used in the specified visual inspection device (2).
[0082] (Additional Note) Although the embodiment of the present invention has been described above, the invention according to the claims is not limited to the embodiment described above. It should be noted that not all of the combinations of features described in the embodiment are essential to the means for solving the problems of the invention. The present invention can be modified appropriately without departing from the spirit of the invention. [Explanation of symbols]
[0083] 1. Visual inspection system 2...Appearance inspection device 21a, 21b...imaging device 10...Visual inspection control device (control device) 11...Control section 111...setting processing unit 112...Image data acquisition processing unit 113...Image generation processing unit 114...Learning data creation processing unit 115...Model creation processing unit 116...Output processing unit 12...Storage section 411…First complete image data 412…First defect image data 413...First generated defect image data 421…Second complete image data 422...Second defect image data 423...Second generated defect image data 43...Image data management database 51…First trained model 52…Second trained model 61…First learning data 62…Second training data
Claims
1. A plurality of appearance inspection devices that use a trained model created in advance to identify the presence or absence of defects in an inspection object from image data of the inspection object captured by an imaging device; a visual inspection management device configured to be able to communicate with each of the plurality of visual inspection devices; The visual inspection management device has at least an image data acquisition processing unit that acquires defect image data, which is the image data of the inspection object identified by the plurality of visual inspection devices as having a defect, and stores the defect image data in a storage unit; Each of the plurality of appearance inspection devices is configured to be able to acquire, from the appearance inspection management device, the defect image data of the other appearance inspection devices stored in the storage unit, or generated defect image data newly generated using the defect image data, or the trained model created by performing machine learning using the generated defect image data. Visual inspection system.
2. The visual inspection management device includes: an image generation processing unit that generates the generated defect image data using flawless image data, which is image data of the inspection object determined to be free of defects by a predetermined appearance inspection device, and the defect image data by an appearance inspection device different from the predetermined appearance inspection device; A model creation processing unit that performs machine learning using the defect image data, the flawless image data, and the generated defect image data acquired by the predetermined appearance inspection device as learning data, and creates the learned model to be used in the predetermined appearance inspection device. The visual inspection system according to claim 1 .
3. Each of the visual inspection devices comprises: an image generation processing unit that generates the generated defect image data using the flawless image data, which is the image data determined by the own device to be free of defects in the inspection object, and the defect image data acquired from the other appearance inspection device; A model creation processing unit that performs machine learning using the defect image data and the flawless image data acquired by the device itself and the generated defect image data as learning data to create the learned model of the device itself. The visual inspection system according to claim 1 .
4. the appearance inspection management device has an image generation processing unit that generates the generated defect image data for the predetermined appearance inspection device using flawless image data, which is image data of the inspection object determined to be free of defects by a predetermined appearance inspection device, and the defect image data by a appearance inspection device different from the predetermined appearance inspection device; Each of the appearance inspection devices has a model creation processing unit that performs machine learning using the defect image data and the flawless image data acquired by the appearance inspection device and the generated defect image data for the appearance inspection device acquired from the appearance inspection management device as learning data, and creates the learned model of the appearance inspection device. The visual inspection system according to claim 1 .
5. the image data acquisition processing unit stores the defect image data acquired from the plurality of appearance inspection devices in the storage unit in association with at least a type of defect. The visual inspection system according to claim 1 .
6. the image data acquisition processing unit further associates the defect image data acquired from the plurality of appearance inspection devices with an illumination state at the time of imaging, and stores the defect image data in the storage unit. The visual inspection system according to claim 5 .
7. the image data acquisition processing unit is configured to acquire, from the plurality of appearance inspection devices, image data that has been determined to be free of defects, and store the image data in the storage unit; The image generation processing unit generates the generated flawless image data for the predetermined visual inspection device from the flawless image data of the other visual inspection device, The model creation processing unit creates the trained model using the generated complete image data. The visual inspection system according to any one of claims 2 to 4.
8. A visual inspection management device that manages a plurality of visual inspection devices that identify the presence or absence of defects in an inspection object from image data of the inspection object captured by an imaging device using a previously created trained model, a plurality of visual inspection devices configured to be capable of communicating with each other; an image data acquisition processing unit that acquires defect image data, which is image data of the inspection object identified as having a defect by the plurality of appearance inspection devices, and stores the image data in a storage unit; Each of the plurality of appearance inspection devices is configured to be capable of outputting the defect image data of the other appearance inspection devices stored in the storage unit, or generated defect image data newly generated using the defect image data, or the learned model created by performing machine learning using the generated defect image data. Visual inspection management device.
9. A visual inspection method using a plurality of visual inspection devices, which identifies the presence or absence of defects in an inspection object from image data of the inspection object captured by an imaging device using a trained model created in advance, providing a visual inspection management device capable of communicating with each of the plurality of visual inspection devices, storing at least defect image data, which is the image data of the inspection object identified by the plurality of visual inspection devices as having a defect, in a storage unit of the visual inspection management device; generating generated defect image data using the flawless image data, which is the image data of the inspection object determined to be free of defects by a predetermined appearance inspection device, and the defect image data by an appearance inspection device different from the predetermined appearance inspection device; performing machine learning using the defect image data and the flawless image data acquired by the specified appearance inspection device and the generated defect image data as learning data, and creating the learned model to be used in the specified appearance inspection device; Visual inspection method.
Citation Information
Patent Citations
Image generation device and appearance inspection device
JP2020106461A
