Image generation system, image generation method, and program

By segmenting the image and adjusting parameters, a superimposed image suitable for machine learning is generated, which solves the problem of data scarcity in welding product defect detection and improves the recognition accuracy and data diversity of the model.

CN118696355APending Publication Date: 2024-09-24PANASONIC INTELLECTUAL PROPERTY MANAGEMENT CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202380022120.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-03-29
Filing Date
2023-03-23
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

It is difficult for existing image generation systems to generate images suitable for machine learning. Especially in the defect detection of welded products, there is less image data of defective products, making it difficult to generate a highly recognisable learning model.

Method used

By performing image transformation processing on the acquired first image and second image, the extracted part is divided into multiple segmented segments, and the grayscale, position, size and orientation of the segmented segments are changed, and the transformed image is generated and superimposed on the second image. On the image, an overlay image suitable for machine learning is formed to increase the amount and diversity of data.

Benefits of technology

It improves the recognition accuracy and data diversity of the machine learning model, enhances the detection ability of welding product defects, and ensures that the generated images can naturally reproduce defect characteristics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118696355A
    Figure CN118696355A
Patent Text Reader

Abstract

The purpose of the present disclosure is to generate an image suitable for machine learning. An image generation system (5) includes a first image acquirer (51), a second image acquirer (52), and an image processor (53). The image processor (53) executes image conversion processing (processing 72, 73) and superposition processing (74). The image conversion process includes generating a converted image (P3) by performing image processing on a predetermined extraction portion of the first object based on the first image (P1). The image conversion process includes: a process of dividing the extraction portion into a plurality of segments; and a process of changing at least one parameter selected from the group consisting of gradation, position, size, and orientation of at least one segment belonging to the plurality of segments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure generally relates to an image generating system, an image generating method, and a program, and more particularly, to an image generating system, an image generating method, and a program each for generating an image by superimposing a plurality of images on each other. Background Art

[0002] Patent document 1 discloses an image display device (image generation system), which includes an image designation device, an image processing device, an image synthesis device and an image display device. The image designation device designates an original image as a processing target. The image processing device processes the original image to generate a processed image. The image synthesis device generates an entire image by replacing a partial area of ​​the image with a corresponding partial area of ​​the processed image. The image display device displays the entire image or a portion of the entire image (including a boundary).

[0003] It can be seen that the image display device of Patent Document 1 can generate a new image based on an original image. However, it is difficult for the image display device to generate an image suitable for machine learning.

[0004] Reference List

[0005] Patent Literature

[0006] Patent Document 1: JP 2006-3603A Summary of the invention

[0007] The object of the present disclosure is to provide an image generation system, an image generation method, and a program, each of which can generate an image suitable for machine learning.

[0008] An image generation system according to one aspect of the present disclosure includes a first image acquirer, a second image acquirer, and an image processor. The first image acquirer acquires a first image by photographing a first object. The second image acquirer acquires a second image by photographing a second object. The image processor performs image transformation processing and superposition processing. The image transformation processing includes: based on the first image, generating a transformed image by performing image processing on an extracted portion, the extracted portion forming a predetermined portion of the first object. The superposition processing includes: generating a superposition image by superimposing the transformed image on the second image. The image transformation processing includes: a process of dividing the extracted portion into a plurality of segments; and a process of changing at least one parameter selected from the group consisting of grayscale, position, size, and orientation of at least one segment belonging to the plurality of segments.

[0009] An image generation method according to another aspect of the present disclosure includes a first image acquisition process, a second image acquisition process, an image transformation process, and an overlay process. The first image acquisition process includes: acquiring a first image by photographing a first object. The second image acquisition process includes: acquiring a second image by photographing a second object. The image transformation process includes: generating a transformed image by performing image processing on an extracted portion based on the first image, the extracted portion forming a predetermined portion of the first object. The overlay process includes: generating an overlay image by overlaying the transformed image on the second image. The image transformation process includes: a process of dividing the extracted portion into a plurality of segments; and a process of changing at least one parameter selected from the group consisting of grayscale, position, size, and orientation of at least one segment belonging to the plurality of segments.

[0010] A program according to still another aspect of the present disclosure is designed to cause one or more processors of a computer system to execute the above-mentioned image generating method. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 is a block diagram of an image generation system according to an exemplary embodiment;

[0012] Figure 2 is a schematic representation showing an exemplary first image for use in an image generation system;

[0013] Figure 3 is a schematic representation showing an exemplary second image for use in an image generation system;

[0014] Figure 4 A to Figure 4 D is a schematic representation showing an exemplary image generated by the image generation system;

[0015] Figure 5 is a schematic representation showing an exemplary overlay image generated by an image generation system;

[0016] Figure 6 is a flowchart illustrating an exemplary procedure of processing performed by the image generation system; and

[0017] Figure 7 A to Figure 7 FIG. E is a schematic representation showing an exemplary image generated by the image generation system according to the first variation. DETAILED DESCRIPTION

[0018] (Example)

[0019] An image generation system 5 according to an exemplary embodiment will now be described with reference to the accompanying drawings. Note that the exemplary embodiments to be described below are merely exemplary embodiments of the various embodiments of the present disclosure and should not be construed as limiting. On the contrary, the exemplary embodiments may be easily modified in various ways according to design choices or any other factors without departing from the scope of the present disclosure. The drawings referenced in the following description of the embodiments are all schematic representations. Therefore, the ratios of the sizes (including thickness) of the various constituent elements shown in the drawings do not always reflect their actual size ratios.

[0020] (Overview)

[0021] like Figure 1 As shown, the image generation system 5 according to this embodiment generates a superimposed image P4 based on the first image P1 and the second image P2. The superimposed image P4 is used as a method for generating a superimposed image about an object (for example, a second object 2 (reference Figure 3 ) is the learning data of the learning model 82 of the corresponding object). That is, the superimposed image P4 is the learning data for generating a model through machine learning.

[0022] As used herein, a "model" refers to a program designed to identify the state of an object to be identified in response to the input of input information about the object to be identified (object) and output a recognition result. In addition, as used herein, a "learning model" refers to a model that completes machine learning using learning data. In addition, the "learning data (set)" used herein refers to a data set that combines input information (images) to be input to the model and labels attached to the input information, i.e., the so-called "training data". That is, in this embodiment, the learning model 82 is a model that has been machine-learned through supervised learning.

[0023] The learning model 82 used herein may include, for example, a model using a neural network or a model generated by deep learning using a multi-layer neural network. Examples of neural networks may include convolutional neural networks (CNNs) and Bayesian neural networks (BNNs). The learning model 82 may be implemented by, for example, installing the learning neural network into an integrated circuit such as an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA). However, the learning model 82 is not necessarily a model generated by deep learning. Alternatively, the learning model 82 may also be a model generated by, for example, a support vector machine or a decision tree.

[0024] In this embodiment, the object to be identified may be, for example, a welding product. Figure 54 is an exemplary superimposed image P4 (learning data) in which the object 4 is photographed. The object 4 and the object to be recognized are welding products. The object 4 includes a first base metal 41, a second base metal 42, and a weld bead 43.

[0025] When two or more welding base materials (for example, the first base metal 41 and the second base metal 42 in this example) are welded together via a metal welding material, a weld bead 43 is formed in a boundary B1 (welding point) between the first base metal 41 and the second base metal 42. The size and shape of the weld bead 43 mainly depend on the welding material. The object 4 also includes a defective portion 44. In the following description, a point having a defective portion 44 will hereinafter be referred to as a "defect generating point E4". Figure 5 , the defect generation point E4 is included in the second base metal 42 .

[0026] Therefore, when an image representing an object to be identified (hereinafter referred to as "object") is input as an inspection image P5, the learning model 82 identifies the state of the object and outputs the result of the identification. Specifically, as a recognition result, the learning model 82 outputs information indicating whether the object is a defective product or a non-defective (i.e., good) product, and if the object is a defective product, information about the type of defect is output. That is, the learning model 82 is used to determine whether the object is a good product. In other words, the learning model 82 is used to perform a welding appearance test to determine whether welding has been completed correctly.

[0027] A determination as to whether an object is good or defective may be made depending on, for example, whether the length of the weld bead, the height of the weld bead, the elevation angle of the weld bead, the throat depth of the weld bead, the excess metal of the weld bead, and the displacement of the weld point of the weld bead (including the degree of displacement of the starting point of the weld bead) fall within their respective tolerance ranges. For example, if at least one of these parameters listed above fails to fall within its tolerance range, the object is determined to be a defective product. Alternatively, a determination as to whether an object is good or defective may also be made depending on, for example, whether the object has any undercuts and whether the weld bead has any defective portions (e.g., whether the weld bead has any pits, whether the weld bead has any spattering, and whether the weld bead has any protrusions). For example, if at least one of these defects listed above is found, the object is determined to be a defective product.

[0028] In order to perform machine learning on the model, a large number of image data items on the object to be identified (including defective products) need to be collected as learning data. However, if the object to be identified is proven to be defective with a low frequency of occurrence on the production line of the object, the learning data required to generate a learning model 82 with high recognizability is often short. Therefore, in order to overcome this problem, machine learning on the model can be performed by performing data enhancement processing on the learning data (i.e., the first image P1 and the second image P2) obtained by actually photographing the object to increase the number of learning data items. As used herein, data enhancement processing refers to, for example, a process of increasing the number of learning data items by performing various types of processing such as synthesis, translation, enlargement or reduction (expansion or contraction), rotation, flipping, or addition of noise on the learning data. According to this embodiment, at least one superimposed image P4 (which is considered by the inventor to be many superimposed images P4) is generated by performing data enhancement processing, and it is used as learning data. In addition, according to this embodiment, a superimposed image P4 is generated by performing a process of superimposing (i.e., synthesizing) a plurality of original images (i.e., a plurality of learning data items) that have not yet been image-processed by the image generation system 5 to perform these original images together.

[0029] Note that the multiple original images (i.e., the first image P1 and the second image P2) used to generate the superimposed image P4 are not necessarily used as the learning data for generating the learning model 82. That is, the learning data for generating the learning model 82 may consist of only the multiple superimposed images P4, or may include the first image P1, the second image P2, and other images not generated by the image generation system 5 in addition to the at least one superimposed image P4. That is, the learning data for generating the learning model 82 may include or may not include the original images that have not been image-processed by the image generation system 5. In addition, the learning data for generating the learning model 82 may include images generated by a system other than the image generation system 5.

[0030] like Figure 1As shown, the image generation system 5 according to the embodiment includes a first image acquirer 51, a second image acquirer 52, and an image processor 53. The first image acquirer 51 acquires a first image P1 by photographing a first object 1. The second image acquirer 52 acquires a second image P2 by photographing a second object 2. The image processor 53 performs image transformation processing (processing 72, 73) and superimposition processing 74. The image transformation processing includes generating a transformed image P3 by performing image processing on a predetermined extracted portion 140 of the first object 1 based on the first image P1. The superimposition processing 74 includes generating a superimposed image P4 by superimposing the transformed image P3 on the second image P2. The image transformation processing includes: a process of dividing the extracted portion 140 into a plurality of segments 141; and a process of changing at least one parameter from the group consisting of grayscale, position, size, and orientation of at least one segment 141 belonging to the plurality of segments 141.

[0031] This embodiment enables generation of an image suitable for machine learning (superimposed image P4). Specifically, before generating the superimposed image P4 by superimposing the transformed image P3 on the second image P2, a process of dividing the extraction portion 140 into a plurality of segments 141 is performed, and a process of changing at least one parameter selected from a group consisting of grayscale, position, size, and orientation of at least one segment 141 (hereinafter referred to as "transformation process") is also performed. That is, the transformation process is performed based on the segment 141. This makes it easier to determine the parameters (setting information 81) that are decisive factors for the transformation process and generate the superimposed image P4 desired by the user, for example, compared to a case where the extraction portion 140 is not divided. This helps to improve the accuracy of machine learning using the superimposed image P4.

[0032] The function of the image generation system 5 can also be implemented as an image generation method. The image generation method according to this embodiment includes a first image acquisition process, a second image acquisition process, an image transformation process (processes 72, 73) and an overlay process 74. The first image acquisition process includes: acquiring a first image P1 by photographing a first object 1. The second image acquisition process includes: acquiring a second image P2 by photographing a second object 2. The image transformation process includes: generating a transformed image P3 by image processing a predetermined extraction portion 140 of the first object 1 based on the first image P1. The overlay process 74 includes: generating an overlay image P4 by overlaying the transformed image P3 on the second image P2. The image transformation process includes: a process of dividing the extraction portion 140 into a plurality of segments 141; and a process of changing at least one parameter from the group consisting of grayscale, position, size and orientation of at least one segment 141 belonging to the plurality of segments 141.

[0033] The image generation method preferably further includes a setting information generation process. The setting information generation process includes: generating setting information 81 (refer to Figure 1 ).

[0034] In addition, the image generation method is used on a computer system (image generation system 5). That is, the image generation method can also be implemented as a program. The program according to this embodiment is designed to cause one or more processors of a computer system to execute the image generation method according to this embodiment. The program can be stored on a computer-readable non-transitory storage medium.

[0035] (Details)

[0036] Next, the image generating system 5 according to this embodiment will be described in further detail.

[0037] (1) Overall configuration

[0038] Figure 1 The image generation system 5 shown includes a computer system including a memory and one or more processors. At least some functions of the image generation system 5 are performed by causing the processor of the computer system to execute a program stored in the memory of the computer system. The program can be stored in the memory. Alternatively, the program can also be downloaded via a telecommunications line (e.g., the Internet), or distributed after being stored in a non-transitory storage medium (e.g., a memory card).

[0039] The image generation system 5 may be installed inside a factory as a place where welding is performed. Alternatively, at least some constituent elements of the image generation system 5 may be installed outside the factory (for example, at a commercial facility located at a different site from the factory).

[0040] As described above, the image generation system 5 has a function of increasing the number of learning data items by performing data enhancement processing on the original image (learning data) as described above. In the following description, a person who uses the image generation system 5 will be referred to as a "user" hereinafter. The user may be, for example, an operator or a supervisor who monitors a manufacturing process such as a welding process step in a factory.

[0041] In this embodiment, the learning model 82 is generated by machine learning as described above. The learning model 82 can be implemented as any type of artificial intelligence or system. In this case, the algorithm of machine learning can be, for example, a neural network. However, the machine learning algorithm is not necessarily a neural network, but can also be, for example, extreme gradient boosting (XGB) regression, random forest, decision tree, logistic regression, support vector machine (SVM), naive Bayes classifier or k nearest neighbor method. Alternatively, the machine learning algorithm can also be, for example, a Gaussian mixture model (GMM) or k-means clustering.

[0042] In addition, the learning model 82 is not necessarily generated by machine learning for classifying the inspection image into two categories consisting of non-defective products and defective products. Alternatively, the learning model 82 may also be generated by machine learning for classifying the inspection image into multiple categories including non-defective products, pits, spatters, convexities, burn-throughs, and undercuts. As used herein, pits, spatters, convexities, burn-throughs, and undercuts are corresponding types of defects. Alternatively, the learning model 82 may also be generated by machine learning involving object detection and segmentation for locating defective portions on the inspection image and detecting the type of defect.

[0043] In this embodiment, the learning method may be supervised learning, for example. However, the learning method is not necessarily supervised learning, but may also be unsupervised learning or reinforcement learning.

[0044] exist Figure 1 In the example shown, the image generation system 5 includes a storage device 63 for storing learning data. The storage device 63 includes a programmable non-volatile memory, such as an electrically erasable programmable read-only memory (EEPROM). Alternatively, the storage device 63 may also be a memory built into the image generation system 5. Alternatively, the storage device 63 may also be provided outside the image generation system 5.

[0045] like Figure 1 As shown, the image generation system 5 includes a first image acquirer 51, a second image acquirer 52, an image processor 53, a setting information inputter 54, a user interface 55, a setting information generator 56, a display outputter 57, and a display device 58. The image generation system 5 also includes an image outputter 59, a learner 60, a determiner 61, an inspection image acquirer 62, and a storage device 63.

[0046] Among these constituent elements, at least the user interface 55, the display device 58, and the storage device 63 each have a substantial configuration. On the other hand, the first image acquirer 51, the second image acquirer 52, the image processor 53, the setting information inputter 54, the setting information generator 56, the display outputter 57, the image outputter 59, the learner 60, the determiner 61, and the inspection image acquirer 62 merely represent respective functions to be executed by one or more processors of the image generation system 5, and do not necessarily have a substantial configuration.

[0047] (2) First Image Acquisition Device

[0048] The first image acquirer 51 acquires the first image P1. Figure 2 As shown, the first image P1 is an image generated by photographing the first object 1. The first image acquirer 51 may acquire the first image P1 from an external device disposed outside the image generation system 5 or a storage device 63 of the image generation system 5, whichever is appropriate. Figure 1 In the example shown, the first image acquirer 51 acquires the first image P1 from an external device provided outside the image generation system 5. For example, the first image acquirer 51 may acquire the first image P1 from a computer server.

[0049] In addition, an image capturing device for generating the first image P1 by photographing the first object 1 may be provided for the image generating system 5 or provided outside the image generating system 5, whichever is appropriate.

[0050] The first object 1 is a defective product. As used herein, a "defective product" refers to an item that has developed a defect. A user of the image generation system 5 can appropriately determine what state of the item should be regarded as a state in which a defect has developed.

[0051] The first image P1 is an image (i.e., a defective product image) generated by photographing at least the defect generation point E1 of the first object 1. However, the range covered by the first image P1 is not limited to the defect generation point E1, but may also include points of the first object 1 other than the defect generation point E1. Figure 2 In the example shown, the range covered by the first image P1 is the entire first object 1 .

[0052] The first object 1 includes a first base metal 11, a second base metal 12, and a weld bead 13. The first base metal 11, the second base metal 12, and the weld bead 13 have the same structure as the first base metal 41, the second base metal 42, and the weld bead 43 of the above-mentioned object 4, and thus description thereof will be omitted herein. However, the first object 1 has another defective portion 14 having a shape different from the defective portion 44 at a point different from the point where the object 4 has the defective portion 44 (i.e., the defect generating point E4). More specifically, the defective portion 14 exists on the first base metal 11.

[0053] (2) Second Image Acquisition Device

[0054] The second image acquirer 52 acquires the second image P2. Figure 3 As shown, the second image P2 is an image generated by photographing the second object 2. The second image acquirer 52 may acquire the second image P2 from an external device disposed outside the image generation system 5 or from a storage device 63 of the image generation system 5, whichever is appropriate. Figure 1 In the example shown, the second image acquirer 52 acquires the second image P2 from an external device provided outside the image generation system 5. For example, the second image acquirer 52 may acquire the second image P2 from a computer server.

[0055] In addition, an image capturing device for generating the second image P2 by photographing the second object 2 may be provided for the image generating system 5 or provided outside the image generating system 5, whichever is appropriate.

[0056] The second object 2 is a non-defective product. As used herein, a "non-defective product" refers to an item that has not yet developed defects. Figure 2 In the example shown, the range covered by the second image P2 is the entire second object 2. However, this is only an example and should not be construed as limiting. Alternatively, the range covered by the second image P2 may also be only a portion of the second object 2.

[0057] The second object 2 includes a first base metal 21, a second base metal 22, and a weld bead 23. The first base metal 21, the second base metal 22, and the weld bead 23 have the same structures as the first base metal 41, the second base metal 42, and the weld bead 43 of the above-mentioned object 4, respectively, so their description will be omitted herein. However, the second object 2 does not have a portion corresponding to the defective portion 44.

[0058] (4) First image and second image

[0059] The first image P1 may be, for example, a distance image including coordinate information in the depth direction (i.e., the direction from the image capture device to the first object 1). The second image P2 may be, for example, a distance image including coordinate information in the depth direction (i.e., the direction from the image capture device to the second object 2). The coordinate information in the depth direction may be represented, for example, by grayscale. Specifically, the higher the density of the points of interest in the distance image, the deeper the point of interest is located. Conversely, the lower the density of the points of interest in the distance image, the deeper the point of interest may be located.

[0060] The image capture device for generating the distance image is a distance image sensor such as a line sensor camera. The image capture device sequentially captures a plurality of objects one by one, thereby generating a plurality of images. According to the user's instruction, the first image P1 and the second image P2 are selected from the plurality of images generated by the image capture device. The image generation system 5 preferably includes an operation unit for accepting his or her instruction about the selection. For example, the user interface 55 can be used as the operation unit.

[0061] (5) Image Processor

[0062] The image processor 53 may be implemented as, for example, a digital signal processor (DSP) or a field programmable gate array (FPGA). The image processor 53 performs an extraction process 71, an image transformation process (processes 72, 73), and an overlay process 74. The image processor 53 performs the extraction process 71, the image transformation process (processes 72, 73), and the overlay process 74 according to the setting information 81. As described later, the setting information 81 may be input by a user, or may be automatically generated by the setting information generator 56, whichever is appropriate.

[0063] In the following description of the embodiment, the image generated by the image conversion process (process 72, 73) will be referred to as "converted image P3" hereinafter. The image generated as an intermediate product during the image conversion process (process 72, 73) will also be referred to as "converted image P3" hereinafter. In addition, the image generated by the superposition process 74 will be referred to as "superposition image P4" hereinafter.

[0064] The extraction portion 140 is a portion of the first object 1. The extraction process 71 is to extract the first image P1 (reference Figure 2 ) in the first object 1 photographed in the extraction part 140. That is, Figure 4 As shown in A, an extracted image representing the extracted portion 140 is generated based on the first image P1.

[0065] In this embodiment, the extraction portion 140 corresponds to the defect portion 14. The defect portion 14 corresponds to the defect generation point E1. That is, the first image P1 is an image in which the defect generation point E1 of the first object 1 has been photographed. The second image P2 is an image in which the second object 2 as a non-defective product has been photographed. The extraction portion 140 covers at least a portion (for example, all in this embodiment) of the defect generation point E1.

[0066] The process 72 includes a deformation process and a segmentation process. Either the deformation process or the segmentation process may be performed before the other. In the following description of the embodiment, the segmentation process shall be performed after at least a part of the deformation process has been performed first.

[0067] The deformation process is a process of deforming the extraction portion 140 by bending the extraction portion 140. More specifically, the deformation process is a process of deforming the extraction portion 140 according to the shape of the second object 2 captured in the second image P2. In addition, the deformation process may also include a process of expanding or compressing the extraction portion 140 in a predetermined direction. In addition, the deformation process may also include a process of flipping (for example, mirror-inverting) the extraction portion 140. By performing the deformation process on the extraction image, a shape such as Figure 4 The transformed image P3 such as the transformed image P3 shown in B. Then, the superimposition process 74 includes setting the extraction part 140 according to the shape of the second object 2.

[0068] Deforming the extraction portion 140 according to the shape of the second object 2 may, for example, transform the linear extraction portion 140 into a curved extraction portion, or transform the curved extraction portion 140 into a linear extraction portion, whichever is appropriate. Alternatively, the deformation process may also transform the curved extraction portion 140 into a curved extraction portion 140 having a shape different from that of the extraction portion 140 that has not been deformed. Alternatively, any type of deformation other than the above-mentioned deformation may also be performed on the extraction portion 140.

[0069] Processing 72 may include processing for extracting the contour or edge of at least a portion of the second object 2 captured in the second image P2. For example, a portion in the second image P2 where the brightness change is significantly greater than a threshold value may be extracted as a contour or edge. In addition, when performing the deformation processing, the image processor 53 may deform the extracted portion 140 by bending the extracted portion 140 along the contour or edge. That is, in the image transformation processing, deforming the extracted portion 140 according to the shape of the second object 2 captured in the second image P2 may be deforming the extracted portion 140 along the contour or edge of at least a portion of the second object 2 captured in the second image P2. In this case, the overlay processing 74 includes setting the extracted portion 140 along the contour or edge of at least a portion of the second object 2. Figure 4 In B, it has been Figure 5 The contour or edge of the upper right portion to the lower right portion of the contour of the weld bead 43 of the second object 2 is shown to deform the extraction portion 140 .

[0070] The segmentation process is a process of dividing the extraction portion 140 into a plurality of segments 141. The extracted image is subjected to deformation processing and then segmentation processing to generate a plurality of segments such as Figure 4 As can be seen, the image transformation process includes dividing the extracted portion 140 into a plurality of segmented segments 141. Figure 4 In C, the boundary between each pair of segment segments 141 is indicated by a rectangular frame line. Figure 4 D is Figure 4 An enlarged view of a portion of C.

[0071] The process 73 includes a process of changing at least one parameter selected from the group consisting of the grayscale of the extraction portion 140, the position of the extraction portion 140, the size of the extraction portion 140, and the orientation of the extraction portion 140. That is, the image transformation process includes a process of changing at least one parameter selected from the group consisting of the grayscale of the extraction portion 140, the position of the extraction portion 140, the size of the extraction portion 140, and the orientation of the extraction portion 140. If the first image P1 is a range image, the coordinates of the extraction portion 140 in the depth direction are changed by changing the grayscale of the extraction portion 140. Changing the position, size, and orientation of the extraction portion 140 causes the position, size, and orientation of the transformed image P3 to change relative to the second object 2 when the transformed image P3 is superimposed on the second image P2 during the superimposition process 74.

[0072] Process 73 allows grayscale to be changed based on the segment 141. In addition, if deformation processing is performed after the segmentation processing, during the deformation processing, the rotation center C1 of each of the plurality of segments 141 is arranged adjacent to another segment 141, such as Figure 4 That is, in this case, the deformation process can change the orientation of at least some segments 141 by rotating at least the segments 141 around the rotation center C1. Alternatively, some segments 141 can be moved relative to other segments 141 (on the XY plane). In this case, the XY plane intersects the rotation axis (i.e., the rotation center C1) at right angles. Optionally, the size can be changed from one segment 141 to another segment 141.

[0073] The superimposition processing 74 includes: generating a superimposed image P4 by superimposing the transformed image P3 on the second image P2. That is, the superimposed image P4 is generated by the image transformation processing. Figure 4 The transformed image P3 shown in C is then superimposed on the second image P2 (reference Figure 3 ), generate Figure 5 The overlay image P4 is shown.

[0074] In this case, the transformed image P3 is an image generated by performing image processing on the defective portion 14 of the first object 1. Therefore, the object 4 photographed in the superimposed image P4 includes the defective portion 44 generated by performing image processing on the defective portion 14. That is, the superimposed image P4 is an image presenting at least the defect generation point E4 of the object 4 (i.e., a defective product image).

[0075] In addition, the superimposed image P4 is a three-dimensional image in which the depth is represented as grayscale. That is, the superimposed image P4 represents the coordinate information of the transformed image P3 and the second image P2 in the depth direction as grayscale.

[0076] The superimposition process 74 preferably includes an interpolation process that interpolates the boundary between the transformed image P3 and the second image P2 to smoothly connect the transformed image P3 to the second image P2. This allows a more natural superimposed image P4 to be generated. The interpolation process can be performed as linear interpolation, for example.

[0077] (6) Setting information

[0078] Next, the setting information 81 for defining the processing to be performed by the image processor 53 will be described. The setting information 81 is information for use in the processing of generating the superimposed image P4 based on the first image P1 and the second image P2. More specifically, the setting information 81 includes information of at least one processing selected from the group consisting of the extraction processing 71, the image conversion processing (processing 72, 73) and the superimposition processing 74.

[0079] The setting information inputter 54 acquires the setting information 81. The setting information inputter 54 acquires the setting information 81 from the user interface 55 which accepts a user's operation of inputting the setting information 81. The user interface 55 includes at least one selected from the group consisting of, for example, a mouse, a keyboard, and a touch panel.

[0080] The setting information 81 includes one or more pieces of information selected from the following first information to sixth information. The first information that may be included in the setting information 81 is information for determining the range of the extraction portion 140 in the first image P1. The second information that may be included in the setting information 81 is information for determining the number of segmented segments of the extraction portion 140 in the image transformation process. The third information that may be included in the setting information 81 is information for inputting a change in at least one parameter selected from the group consisting of the grayscale of the extraction portion 140, the position of the extraction portion 140, the size of the extraction portion 140, and the orientation of the extraction portion 140 in the image transformation process. The fourth information that may be included in the setting information 81 is information for determining the mixing ratio of the transformation image P3 and the second image P2 in the superposition process 74. The fifth information that may be included in the setting information 81 is information about at least one parameter selected from the group consisting of the corresponding grayscale, position, size, and orientation (rotation angle) of the plurality of segmented segments 141. The sixth information that may be included in the setting information 81 is information about the expansion ratio in the process of expanding or compressing the extraction portion 140 in a predetermined direction.

[0081] The image processor 53 may define the range selected by the user using the user interface 55 as the range of the extraction portion 140. The image processor 53 may also define the number of segmented segments input by the user using the user interface 55 as the number of segmented segments of the extraction portion 140, to generate the number of segmented segments 141 specified by the number of segmented segments. The image processor 53 may, for example, change the grayscale, position, size, and orientation of each segmented segment 141 or the entire extraction portion 140 according to the information input by the user using the user interface 55. For example, the image processor 53 may also superimpose the transformed image P3 on the second image P2 according to the blending ratio input by the user using the user interface 55. The blending ratio may, for example, be the ratio of the corresponding α values ​​of the transformed image P3 and the second image P2. The image processor 53 superimposes the transformed image P3 on the second image P2 by α blending.

[0082] The setting information generator 56 generates the setting information 81. The setting information generator 56 may define the range of the extraction portion 140 in the first image P1 using, for example, a predetermined learning model for detecting the defective portion 14 (extraction portion 140) from an image. In addition, for example, the setting information generator 56 determines the number of segments of the extraction portion 140 according to the size of the extraction portion 140.

[0083] Alternatively, randomness may be imparted to the setting information 81 generated by the setting information generator 56. For example, the setting information generator 56 may randomly determine at least one of the position, size, or orientation of the extraction portion 140 (transformed image P3) relative to the second image P2.

[0084] Note that the phrase "random" used herein does not necessarily mean that all events occur with the same probability. The setting information generator 56 can, for example, randomly set the parameters for determining the position of the extraction portion 140 by referring to information about the probability of occurrence of defects in each of the plurality of regions on the second object 2, so that the higher the probability of occurrence in a region, the more likely the region is to be selected as the position of the extraction portion 140.

[0085] Optionally, the setting information generator 56 may attach a label to the superimposed image P4. The setting information generator 56 may determine the label to be attached to the superimposed image P4, for example, based on the label attached to the first image P1. Specifically, if the label attached to the first image P1 is a "defective product" label, and the extracted portion 140 of the first image P1 corresponds to the defect generation point E1, the setting information generator 56 may attach the "defective product" label to the superimposed image P4. In this case, the label may include the type of defect, which may be the same as the type of defect of the first image P1.

[0086] (7) Display output device and display device

[0087] The display outputter 57 outputs information to the display device 58. In response, the display device 58 performs a display operation according to the information that the display device 58 has received from the display outputter 57.

[0088] The display device 58 includes a display. The display may be, for example, a liquid crystal display or an organic electroluminescent (EL) display. The display device 58 may, for example, display the first image P1, the second image P2, the transformed image P3, and the superimposed image P4. When the user is inputting the setting information 81 into the user interface 55, the display device 58 may be used as an output interface for performing a display operation on the setting information 81. When the first image P1 is displayed on the display device 58, the user may, for example, define the range of the extraction portion 140 by operating the user interface 55 to move a cursor displayed on the display device 58. In addition, the user may also, for example, input the grayscale or orientation of the extraction portion 140 or the corresponding α values ​​of the transformed image P3 and the second image P2 by moving the cursor to a slider displayed on the display device 58 and performing a drag operation.

[0089] In addition, the display outputter 57 also outputs information about the plurality of segment segments 141 to the display device 58. The display device 58 displays the plurality of segment segments 141 based on the information about the plurality of segment segments 141 that the display device 58 has acquired from the display outputter 57. This allows the user to select his or her desired segment segment 141 and input setting information 81 about the segment segment 141 thus selected.

[0090] In addition, the display device 58 also displays the determination result 83 provided by the determiner 61 (to be described later).

[0091] (8) Type of defect

[0092] In this embodiment, the first object 1 is an article formed by welding together two or more welding base materials (for example, the first base metal 11 and the second base metal 12 in this embodiment.) That is, the first object 1 is a welding product.

[0093] Examples of the types of defects generated by the welding product include pits, spatters, protrusions, burn-throughs, and undercuts. The extraction portion 140 covers at least a portion of the defect generation point E1, in which the welding product has generated at least one defect selected from the group consisting of pits, spatters, protrusions, burn-throughs, and undercuts. In this embodiment, the extraction portion 140 covers the entire defect generation point E1, and the defect is an undercut. The grayscale of the extraction portion 140 corresponds to the depth of the undercut.

[0094] As used herein, a "pit" refers to a depression created by the weld bead 13. As used herein, a "sputter" refers to a spherical or truncated cone-shaped protrusion created by the weld bead 13. As used herein, a "protrusion" refers to a cylindrical protrusion created by the weld bead 13. As used herein, a "burn-through" refers to a missing portion of the weld bead 13 that has been melted. As used herein, an "undercut" refers to a depression created around the weld bead 13.

[0095] The extracted portion 140 is not necessarily the defective portion 14 but may be a portion without a defect. Alternatively, the extracted portion 140 may include the defective portion 14 and a portion around the defective portion 14. Alternatively, the extracted portion 140 may include a plurality of defective portions 14.

[0096] Specifically, if the defect generated in the first object 1 is a defect generated in a narrow range (e.g., a pit, spatter, or protrusion), the extraction portion 140 preferably covers not only a single defect portion 14 but also a portion around the defect portion 14 or another defect portion 14. This ensures a sufficient length of the extraction portion 140, thereby making the process of bending the extraction portion 140 and the process of dividing the extraction portion 140 more efficient.

[0097] (9) Machine Learning and Pass / Fail Decisions

[0098] The image outputter 59 outputs the superimposed image P4 generated by the image processor 53 to the learner 60. The learner 60 uses the superimposed image P4 as learning data (or learning data set) to perform machine learning. In this way, the learner 60 generates a learning model 82. As described above, the learner 60 can use not only the superimposed image P4 but also the first image P1 and the second image P2 as learning data.

[0099] A learning data set is generated by attaching not only a "non-defective" or "defective" label to each of a plurality of image data items, but also a label indicating the type and location of the defect in the case of a defective product. The operation of attaching the label can be performed, for example, by a user via the user interface 55. Alternatively, the operation of attaching the label can also be performed by the setting information generator 56. The learner 60 generates a learning model 82 by machine learning the state of the object (i.e., the non-defective state, the defective state, the type of defect, and the location of the defect).

[0100] Alternatively, the learner 60 may attempt to improve the performance of the learning model 82 by relearning using a learning data set including newly acquired learning data. For example, if a new type of defect is detected in an object, the learner 60 may be caused to relearn about the new type of defect.

[0101] For example, on a production line in a factory, an image capture device photographs an object to generate an inspection image P5. More specifically, the image capture device photographs an object on which a weld bead has been formed by actually performing a welding process, thereby generating an inspection image P5. The inspection image acquirer 62 acquires the inspection image P5 from the image capture device. The determiner 61 uses the learning model 82 generated by the learner 60 to make a pass / fail determination on the inspection image P5 (object) acquired by the inspection image acquirer 62. In addition, if the object is a defective product, the determiner 61 also determines what type of defect has been detected and where the defect is located. The determiner 61 outputs a determination result 83. For example, the determination result 83 may be output to the display device 58. In response, the display device 58 displays the determination result 83. This allows the user to check the determination result 83 on the display device 58. Alternatively, the manufacturing device may also be controlled so that the object identified as a defective product by the determiner 61 is discarded before being passed to the next processing step. For example, the determination result 83 may be output to a data server and stored in the data server.

[0102] As described above, the image generation system 5 includes the inspection image acquirer 62 for acquiring the inspection image P5 and the determiner 61 for making a pass / fail determination on the inspection image P5 using the learning model 82. The learning model 82 is generated based on the superimposed image P4 generated by the image processor 53.

[0103] (10) Operation process

[0104] Next, we will refer to Figure 6 The flow of processing that allows the image generation system 5 to generate the superimposed image P4 is described. Note that Figure 6 The processes shown are examples only and should not be construed as limiting. Alternatively, the processes may be performed in a different order than shown. Figure 6 The processing steps shown can be omitted appropriately. Figure 6 Some of the processing steps are shown, and / or additional processing steps may be performed as desired.

[0105] The setting information 81 acquired in steps ST2 to ST5 and ST7 may be input by the user via the user interface 55, or generated by the setting information generator 56. Alternatively, some setting information 81 may be input by the user via the user interface 55, and other setting information 81 may be generated by the setting information generator 56.

[0106] First, the first image acquirer 51 acquires the first image P1 (in step ST1). Next, the image processor 53 acquires the setting information 81 about the extraction setting, and performs the extraction process 71 based on the extraction setting (in step ST2). In this way, an extracted image (refer to Figure 4 As used herein, setting information 81 regarding extraction settings refers to information for defining the range of the extraction portion 140 in the first image P1.

[0107] Next, the image processor 53 acquires the setting information 81 about the deformation setting, and performs deformation processing based on the deformation setting (in step ST3). In this way, a deformed image (refer to Figure 4 B). As used herein, setting information 81 regarding deformation setting refers to information to be referred to in order to deform the extraction portion 140 by bending the extraction portion 140, and may include, for example, information indicating a bending point and a bending angle.

[0108] Subsequently, the image processor 53 acquires setting information 81 about the segmentation setting, and performs segmentation processing based on the segmentation setting (in step ST4 ). As used herein, the setting information 81 about the segmentation setting includes, for example, information for determining the number of segmentation segments of the extraction section 140 .

[0109] Next, the image processor 53 acquires the setting information 81 about the transformation setting, and performs the transformation process based on the transformation setting (in step ST5). As used herein, the setting information 81 about the transformation setting refers to information for inputting a change of at least one parameter selected from the group consisting of the grayscale of the extraction portion 140, the position of the extraction portion 140, the size of the extraction portion 140, and the orientation of the extraction portion 140. The transformation process is a process of changing at least one parameter selected from the group consisting of the grayscale of the extraction portion 140, the position of the extraction portion 140, the size of the extraction portion 140, and the orientation of the extraction portion 140. Optionally, the transformation process allows the grayscale, position, size, and orientation (rotation angle) to be changed based on the segmented segment 141.

[0110] Next, the second image acquirer 52 acquires the second image P2 (in step ST6). In addition, the image processor 53 acquires the setting information 81 about the superimposition setting, and performs the superimposition process based on the superimposition setting (in step ST7). The setting information 81 about the superimposition setting includes, for example, information for determining the mixing ratio of the conversion image P3 and the second image P2 in the superimposition process 74.

[0111] Thereafter, the image processor 53 outputs the superimposed image P4 generated by the superimposition process 74 (in step ST8 ).

[0112] The image processor 53 determines whether a predetermined number (or more than a predetermined number) of superimposed images P4 have been output (in step ST9). If the predetermined number of superimposed images P4 have been output, the image processor 53 ends the process of generating the superimposed images P4. On the other hand, if the predetermined number of superimposed images P4 have not been output, the process returns to the process step ST1. The predetermined number of superimposed images P4 are generated by repeatedly performing a series of process steps ST1 to ST8.

[0113] The minimum required number of the first image P1 is 1, and the minimum required number of the second image P2 is also 1. When one superimposed image P4 is generated, and when another superimposed image P4 is generated, at least one of the first image P1 or the second image P2 may be changed.

[0114] Alternatively, when generating another superimposed image P4, one superimposed image P4 generated by the image processor 53 may be used as the first image P1 or the second image P2.

[0115] (11) Advantages

[0116] The image generation system 5 according to this embodiment can generate a superimposed image P4 suitable for machine learning. Specifically, the image generation system 5 deforms the extraction portion 140 according to the shape of the second object 2 photographed in the second image P2, thereby making the superimposed image P4 a more natural image than in the case where the image representing the extraction portion 140 is superimposed on the second image P2 without such deformation. That is, this allows the superimposed image P4 to reproduce the defects that will actually occur in the second object 2. This makes the learning model 82 generated by using the superimposed image P4 such a model that allows the user to accurately determine whether there are any defects and detect the type of defects (if any).

[0117] In addition, the image representing the extraction portion 140 is subjected to image processing based on the segmented segments 141. For example, this makes it easier to determine the parameters (i.e., the setting information 81) for determining the processing for performing image processing on the image representing the extraction portion 140, compared with the case where the extraction portion 140 is not divided, thereby making it easier to generate the superimposed image P4 desired by the user. This contributes to improving the accuracy of machine learning using the superimposed image P4.

[0118] (First variant)

[0119] Next, we will refer to Figure 7 A to Figure 7 E describes a first variation. The image generation system 5 according to the first variation has the same configuration as its counterpart according to the above-described exemplary embodiment. Therefore, any constituent element of the first variation having the same function as the counterpart of the above-described exemplary embodiment will be designated by the same reference numeral as that of the counterpart, and its description will be omitted herein.

[0120] As in the above-described exemplary embodiment, the setting information 81 for use in the process of generating the superimposed image P4 based on the first image P1 and the second image P2 may be input by the user via the user interface 55, or may be generated by the setting information generator 56. Alternatively, some of the setting information 81 may be input by the user via the user interface 55, and other of the setting information 81 may be generated by the setting information generator 56.

[0121] In this first modification, after having performed the segmentation process of dividing the extraction portion 140 into a plurality of segments 141 , the image processor 53 performs a process of deforming the extraction portion 140 in accordance with the shape of the second object 2 captured in the second image P2 .

[0122] First, as in the above-described exemplary embodiment, the image processor 53 performs a process of extracting the extraction portion 140 from the first object 1 captured in the first image P1 (refer to Figure 2As a result, an extraction image is generated by the extraction portion 140, such as Figure 7 As shown in A. Alternatively, the image processor 53 may appropriately perform processing for flipping (mirror-reversing) the extraction portion 140.

[0123] Next, the image processor 53 performs processing to expand or compress the extracted portion 140 in a predetermined direction. As a result, a transformed image P3 is generated, such as Figure 7 As shown in B. The expansion and compression processing can be appropriately omitted.

[0124] Then, the image processor 53 performs segmentation processing. As a result, a transformed image P3 is generated, such as Figure 7 As shown in C.

[0125] The image processor 53 also performs image processing on the image of the extraction portion 140 based on the segmented segments 141. The image processor 53 performs at least a process of deforming the extraction portion 140 according to the shape of the second object 2 captured in the second image P2 (hereinafter referred to as "bending process").

[0126] The rotation center C1 of each of the plurality of segments 141 is arranged adjacent to another segment 141 (refer to Figure 7 E). The bending process includes deforming the extracted portion 140 by rotating at least some of the segments 141 around their rotation center C1. As a result of the bending process, a transformed image P3 is generated, such as Figure 7 As shown in D.

[0127] Alternatively, the bending process may include a process of correcting the transformed image P3 after having rotated at least some of the segments 141. For example, the transformed image P3 may be corrected to smoothly connect the plurality of segments 141 together.

[0128] The image processor 53 also performs a transformation process (process 73) on at least some of the segmented segments 141. The transformation process is a process of changing at least one parameter selected from the group consisting of the grayscale of the extracted portion 140, the position of the extracted portion 140, the size of the extracted portion 140, and the orientation of the extracted portion 140. In this case, the transformation process allows the grayscale, position, size, and orientation to be changed on a segmented segment 141 basis.

[0129] After performing the transformation process, the image processor 53 superimposes the transformed image P3 on the second image P2, thereby generating a Figure 5 The overlay image P4 is shown.

[0130] As described above, according to this modification, the extraction portion 140 is divided into a plurality of segments 141, and at least some of the segments 141 are rotated, thereby completing the bending process. Even if the user determines and inputs the setting information 81 about the bending process, this allows the setting information 81 to be easily determined by reducing the amount of information required to determine the setting information 81.

[0131] (Other Modifications of Exemplary Embodiment)

[0132] Next, other variations of the exemplary embodiment will be listed one by one. Note that the variations to be described below can be appropriately combined and adopted. Alternatively, the variations to be described below can also be adopted in combination with the first variation described above.

[0133] The learning model 82 is not necessarily a model for use in welding appearance testing, but may be a model for use in various other types of inspections. In addition, the learning model 82 is not necessarily a model for inspection purposes, but may be a model for use in various types of image recognition.

[0134] The agent that executes the extraction process 71 is not necessarily the image processor 53 , but may be provided outside the image generation system 5 .

[0135] At least one of the user interface 55 , the display device 58 , the learner 60 , or the determiner 61 may be provided outside the image generating system 5 .

[0136] Display device 58 may be a mobile communication device such as a smart phone or tablet computer.

[0137] The images processed by the image generation system 5 (including the first image P1, the second image P2, the transformed image P3, the superimposed image P4 and the inspection image P5) are not necessarily three-dimensional images but may also be two-dimensional images or even four-dimensional or more dimensional images.

[0138] The superimposed image P4 generated based on the first image P1 and the second image P2 is not necessarily a defective product image, but may also be a non-defective product image.

[0139] The first object 1 photographed in the first image P1 may be an object having the same or different shape as the second object 2 photographed in the second image P2 .

[0140] The first image P1 and the second image P2 may be the same image.

[0141] The first image P1 and the second image P2 may be defective product images or non-defective product images, whichever is appropriate. Alternatively, one of the first image P1 and the second image P2 may be a non-defective product image, and the other may be a defective product image.

[0142] The first image P1 may be an image generated by photographing only a portion of the first object 1. The second image P2 may be an image generated by photographing only a portion of the second object 2.

[0143] The image processor 53 may extract a plurality of extraction portions 140. In this case, a plurality of conversion images P3 are generated.

[0144] The image processor 53 can generate a plurality of transformed images P3 from a single extraction portion 140 .

[0145] The superimposition process 74 may include causing the image processor 53 to superimpose the plurality of transformed images P3 on the second image P2.

[0146] In the transformed image P3 , the plurality of segments 141 are not necessarily connected together. Alternatively, some of the segments 141 may be provided separately from other segments 141 .

[0147] The rotation center C1 of the partition 141 may be disposed at a position away from the partition 141 .

[0148] The first image P1 , the second image P2 , the converted image P3 , the superimposed image P4 , and the inspection image P5 may be brightness image data that expresses the brightness of an object by grayscale.

[0149] In the above exemplary embodiments, "grayscale" means the density of a single color (eg, black). Alternatively, "grayscale" may also mean the corresponding density of a plurality of different colors (such as the three colors of RGB).

[0150] The range in which the transformed image P3 is placed on the second image P2 may be defined by the user by operating the user interface 55. For example, the range in which the transformed image P3 is placed on the second image P2 may be selected from the group consisting of the first base metal 21, the second base metal 22, and the weld bead 23. If the first base metal 21 has been selected as the range in which the transformed image P3 is placed on the second image P2, the image processor 53 may set the transformed image P3 at a randomly selected position on the first base metal 21.

[0151] The image generation system 5 according to the present disclosure or the agent for executing the image generation method according to the present disclosure includes a computer system. The computer system may include a processor and a memory as its main hardware components. The computer system performs at least some functions of the image generation system 5 according to the present disclosure by causing the processor to execute the program stored in the memory of the computer system, or acts as an agent for executing the image generation method according to the present disclosure. The program may be stored in the memory of the computer system in advance. Alternatively, the program may be downloaded via a telecommunication line, or the program may be recorded in some non-temporary storage media such as a memory card, an optical disk, or a hard disk drive (any of which is readable by the computer system) and then distributed. The processor of the computer system may be composed of a single or multiple electronic circuits including a semiconductor integrated circuit (IC) or a large-scale integrated circuit (LSI). As used herein, "integrated circuits" such as IC or LSI are referred to by different names according to their degree of integration. Examples of integrated circuits such as IC or LSI include integrated circuits referred to as "system LSI", "very large-scale integrated circuit (VLSI)" and "ultra-large-scale integrated circuit (ULSI)". Alternatively, a field programmable gate array (FPGA) programmed after manufacturing LSI or a reconfigurable logic device that allows the connection or circuit part inside LSI to be reconfigured can also be used as a processor. These electronic circuits can be integrated together on a single chip or distributed on multiple chips, whichever is appropriate. These multiple chips can be gathered together in a single device or distributed in multiple devices without restriction. As used herein, "computer system" includes a microcontroller, which includes one or more processors and one or more memories. Therefore, the microcontroller can also be implemented as a single or multiple electronic circuit including a semiconductor integrated circuit or a large-scale integrated circuit.

[0152] In addition, in the above-described embodiment, multiple functions of the image generation system 5 are integrated together in a single device. However, this is not a necessary configuration of the image generation system 5. Alternatively, these constituent elements of the image generation system 5 may be distributed in a plurality of different devices. Alternatively, at least some functions of the image generation system 5 (e.g., at least some functions of at least one of the image processor 53, the learner 60, or the determiner 61) may also be implemented as a server or a cloud computing system. On the contrary, multiple functions of the image generation system 5 may be integrated together in a single device.

[0153] (Restate the main points)

[0154] The above-described exemplary embodiments and their modifications are specific implementations of the following aspects of the present disclosure.

[0155] An image generation system (5) according to a first aspect includes a first image acquirer (51), a second image acquirer (52) and an image processor (53). The first image acquirer (51) acquires a first image (P1) by photographing a first object (1). The second image acquirer (52) acquires a second image (P2) by photographing a second object (2). The image processor (53) performs image transformation processing and superimposition processing (74). The image transformation processing includes: based on the first image (P1), generating a transformed image (P3) by performing image processing on an extraction part (140), the extraction part (140) forming a predetermined part of the first object (1). The superimposition processing (74) includes: generating a superimposed image (P4) by superimposing the transformed image (P3) on the second image (P2). The image transformation process includes: a process of dividing the extraction part (140) into a plurality of segments (141); and a process of changing at least one parameter from the group consisting of grayscale, position, size and orientation of at least one segment (141) belonging to the plurality of segments (141).

[0156] This configuration enables generation of an image suitable for machine learning (superimposed image (P4)). Specifically, before generating the superimposed image (P4) by superimposing the transformed image (P3) on the second image (P2), a process of dividing the extraction portion (140) into a plurality of segments (141) is performed, and a process of changing at least one parameter selected from the group consisting of the grayscale, position, size and orientation of at least one segment (141) (transformation process) is also performed. That is, the transformation process is performed based on the segment (141). This makes it easier to determine the parameters (setting information (81)) that are decisive factors for the transformation process and generate the superimposed image (P4) desired by the user, for example, compared to a case where the extraction portion (140) is not divided. This helps to improve the accuracy of machine learning using the superimposed image (P4).

[0157] The image generation system (5) according to the second aspect which can be implemented in combination with the first aspect further includes a setting information inputter (54). The setting information inputter (54) acquires setting information (81) about a process of generating a superimposed image (P4) based on the first image (P1) and the second image (P2). The setting information inputter (54) acquires the setting information (81) from a user interface (55) which accepts an operation performed by a user to input the setting information (81).

[0158] This configuration allows the user to specify setting information (81).

[0159] The image generation system (5) according to the third aspect which can be implemented in combination with the first aspect or the second aspect further includes a setting information generator (56). The setting information generator (56) generates setting information (81) about a process of generating a superimposed image (P4) based on the first image (P1) and the second image (P2).

[0160] This configuration enables the setting information (81) to be generated even without causing the user to specify the setting information (81).

[0161] In an image generation system (5) according to the fourth aspect that can be implemented in combination with the second aspect or the third aspect, the setting information (81) includes one or more pieces of information selected from the following first information to fourth information. The first information that can be included in the setting information (81) is information for defining the range of the extraction part (140) in the first image (P1). The second information that can be included in the setting information (81) is information for determining the number of segments of the extraction part (140) in the image transformation process. The third information that can be included in the setting information (81) is information for changing at least one parameter selected from the group consisting of grayscale, position, size and orientation of at least one segment (141) in the image transformation process. The fourth information that can be included in the setting information (81) is information for determining the mixing ratio of the transformation image (P3) and the second image (P2) in the superposition process (74).

[0162] This configuration allows the conversion image (P3) to be generated according to the contents of the setting information (81).

[0163] In the image generation system (5) according to the fifth aspect which can be implemented in combination with any one of the first to fourth aspects, the first image (P1) is an image generated by photographing a defect generation point (E1) of the first object (1). The second image (P2) is an image generated by photographing a second object (2) which is a non-defective product. The extraction section (140) includes at least a part of the defect generation point (E1).

[0164] This configuration allows a defective product image to be generated as a superimposed image (P4).

[0165] In the image generation system (5) according to the sixth aspect which can be implemented in combination with the fifth aspect, the first object (1) is a welding product. The extraction portion (140) includes at least a part of the defect generation point (E1) which presents at least one form selected from the group consisting of a pit, spatter, protrusion, burn-through and undercut, all of which can exist in the welding product.

[0166] This configuration allows a defective product image of a welded product to be generated as a superimposed image (P4).

[0167] The image generation system (5) according to the seventh aspect, which can be implemented in combination with any one of the first to sixth aspects, further includes an image outputter (59). The image outputter (59) outputs the superimposed image (P4) generated by the image processor (53) to the learner (60). The learner (60) performs machine learning using the superimposed image (P4) as learning data.

[0168] This configuration allows a high-precision learning model (82) to be generated through machine learning based on the superimposed image (P4).

[0169] The image generation system (5) according to the eighth aspect, which can be implemented in combination with any one of the first to seventh aspects, further includes an inspection image acquirer (62) and a determiner (61). The inspection image acquirer (62) acquires the inspection image (P5). The determiner (61) uses the learning model (82) to make a pass / fail determination on the inspection image (P5). The learning model (82) is generated based on the superimposed image (P4) that has been generated by the image processor (53).

[0170] This configuration allows a pass / fail decision to be made with high accuracy by using a learning model (82) that has been generated based on the superimposed image (P4).

[0171] In the image generating system (5) according to the ninth aspect which can be implemented in combination with any one of the first to eighth aspects, the superimposed image (P4) is a three-dimensional image in which depth is represented as grayscale.

[0172] This configuration allows machine learning to take into account depth information.

[0173] The image generation system (5) according to the tenth aspect which can be implemented in combination with any one of the first to ninth aspects further includes a display output device (57). The display output device (57) outputs information about the plurality of segments (141) to a display device (58). The display device (58) displays the plurality of segments (141) based on the information about the plurality of segments (141) acquired from the display output device (57).

[0174] This configuration allows a user to identify multiple segments (141).

[0175] In the image generation system (5) according to the eleventh aspect which can be implemented in combination with any one of the first to tenth aspects, the image transformation processing includes making each of the multiple segments (141) rotatable relative to at least another segment of the multiple segments (141).

[0176] This configuration allows the image representing the extracted portion (140) to be curved by rotating the segment (141).

[0177] In an image generating system (5) according to the twelfth aspect which can be implemented in combination with the eleventh aspect, the image transformation processing includes setting the rotation center (C1) of each segment among the multiple segments (141) to be adjacent to at least another segment among the multiple segments (141).

[0178] This configuration allows the segments (141) to be rotationally deformed while two adjacent segments (141) remain connected to each other.

[0179] Note that the constituent elements according to the second aspect to the twelfth aspect are not essential constituent elements of the image generating system (5) but may be appropriately omitted.

[0180] The image generation method according to the thirteenth aspect includes a first image acquisition process, a second image acquisition process, an image transformation process and an overlay process (74). The first image acquisition process includes: acquiring a first image (P1) by photographing a first object (1). The second image acquisition process includes: acquiring a second image (P2) by photographing a second object (2). The image transformation process includes: generating a transformation image (P3) by image processing an extraction portion (140) based on the first image (P1), the extraction portion (140) forming a predetermined portion of the first object (1). The overlay process (74) includes: generating an overlay image (P4) by overlaying the transformation image (P3) on the second image (P2). The image transformation process includes: a process of dividing the extraction portion (140) into a plurality of segments (141); and a process of changing at least one parameter from the group consisting of grayscale, position, size and orientation of at least one segment (141) belonging to the plurality of segments (141).

[0181] This method enables the generation of images suitable for machine learning (ie, superimposed images (P4)).

[0182] The image generation method according to the fourteenth aspect which can be implemented in combination with the thirteenth aspect also includes a setting information generation process, which setting information generation process includes generating setting information (81) about a process of generating a superimposed image (P4) based on the first image (P1) and the second image (P2).

[0183] This method enables the setting information (81) to be generated even without causing the user to specify the setting information (81).

[0184] Note that the features according to the fourteenth aspect are not essential features of the image generating method, but may be appropriately omitted.

[0185] The program according to the fifteenth aspect is designed to cause one or more processors of a computer system to execute the image generating method according to the thirteenth aspect or the fourteenth aspect.

[0186] This procedure enables the generation of images suitable for machine learning (ie, superimposed images (P4)).

[0187] Note that these are not the only aspects of the present disclosure, but various configurations (including variations) of the image generation system (5) according to the above-described exemplary embodiments may also be implemented as, for example, an image generation method, a (computer) program, or a non-transitory storage medium having a program stored thereon.

[0188] Reference numerals list

[0189] 1First object

[0190] 2 Second object

[0191] 5 Image Generation System

[0192] 51 First Image Acquisition Device

[0193] 52 Second image acquisition device

[0194] 53 Image Processor

[0195] 54 Set up information input device

[0196] 55 User Interface

[0197] 56 Setting information generator 57 Display output device

[0198] 58 Display devices

[0199] 59 Image Output Device

[0200] 60 Learner

[0201] 61 Determinator

[0202] 62 Check image acquisition device 74 Overlay processing

[0203] 81 Setting information

[0204] 82 Learning Model

[0205] 140 Extraction part 141 Segmentation segment C1 Rotation center E1 Defect generation point P1 First image P2 Second image P3 Transformation image P4 Superimposed image P5 Detection image.

Claims

1. An image generation system, include: A first image acquirer is configured to acquire a first image by photographing a first object; A second image acquirer is configured to acquire a second image by photographing a second object; as well as an image processor configured to perform image transformation processing and superimposition processing, the image transformation processing comprising generating a transformed image by performing image processing on an extracted portion based on the first image, the extracted portion forming a predetermined portion of the first object, and the superimposition processing comprising generating a superimposed image by superimposing the transformed image on the second image, The image transformation process comprises: The process of dividing the extracted part into a plurality of segments; as well as A process of changing at least one parameter selected from the group consisting of grayscale, position, size, and orientation of at least one segment belonging to the plurality of segments.

2. The image generation system according to claim 1, further comprising a setting information inputter configured to: acquire setting information about a process of generating the superimposed image based on the first image and the second image, in, The setting information inputter is configured to acquire the setting information from a user interface configured to accept an operation performed by a user to input the setting information. 3 . The image generating system according to claim 1 , further comprising a setting information generator configured to generate setting information regarding a process of generating the superimposed image based on the first image and the second image.

4. The image generation system according to claim 2 or 3, in, The setting information includes one or more pieces of information selected from the group consisting of: information for defining the range of the extracted portion in the first image; Information for determining the number of segments into which the extracted portion is divided in the image transformation process; information for inputting a change in at least one parameter selected from the group consisting of grayscale, position, size and orientation of the at least one segment in the image transformation process; as well as Information for determining a mixing ratio of the converted image and the second image in the superimposition process.

5. The image generation system according to any one of claims 1 to 4, in, The first image is an image generated by photographing a defect occurrence point of the first object, The second image is an image generated by photographing a second object that is a non-defective product, and The extraction portion includes at least a portion of the defect occurrence point.

6. The image generation system according to claim 5, in, The first object is a welding product, and The extracted portion includes at least a portion of a defect generation point that takes the form of at least one selected from the group consisting of a pit, spatter, a protrusion, a burn-through, and an undercut present in the welded product.

7. The image generation system according to any one of claims 1 to 6, further comprising an image outputter configured to output the superimposed image generated by the image processor to a learner, wherein the learner is configured to perform machine learning using the superimposed image as learning data.

8. The image generation system according to any one of claims 1 to 7, further comprising: include: an inspection image acquirer configured to acquire an inspection image; as well as A determiner is configured to make a pass / fail determination on the inspection image using a learning model generated based on the superimposed image that has been generated by the image processor.

9. The image generation system according to any one of claims 1 to 8, in, The overlay image is a three-dimensional image in which depth is represented as grayscale.

10. The image generation system according to any one of claims 1 to 9, further comprising a display output device configured to output information about the plurality of segment segments to a display device, in, The display device is configured to display the plurality of segmented segments according to the information on the plurality of segmented segments acquired from the display outputter.

11. The image generation system according to any one of claims 1 to 10, in, The image transformation process includes enabling each segment of the plurality of segments to rotate relative to at least another segment of the plurality of segments.

12. The image generation system according to claim 11, in, The image transformation process includes setting a rotation center of each of the plurality of segments to be adjacent to at least another segment of the plurality of segments.

13. A method for generating an image, include: A first image acquisition process includes acquiring a first image by photographing a first object; A second image acquisition process includes acquiring a second image by photographing a second object; image transformation processing, including generating a transformed image by performing image processing on an extracted portion based on the first image, the extracted portion forming a predetermined portion of the first object; as well as superimposing processing, comprising generating a superimposed image by superimposing the transformed image on the second image, The image transformation process comprises: The process of dividing the extracted part into a plurality of segments; as well as A process of changing at least one parameter selected from the group consisting of grayscale, position, size, and orientation of at least one segment belonging to the plurality of segments.

14. The image generation method according to claim 13, further comprising a setting information generation process, wherein the setting information generation process include: Setting information about a process of generating the superimposed image based on the first image and the second image is generated.

15. A program designed to cause one or more processors of a computer system to execute the image generation method according to claim 13 or 14.

Citation Information

Patent Citations

  • Image processing method and apparatus, computer product and storage medium

    CN107729948A

  • Picture processor

    JP1995220066A

  • Learning data generating device, discrimination model generating device, and program

    JP2020027424A

  • Information processing apparatus, information processing method and program

    JP2020060883A

  • Data generation system, data generation method, data generation device, and additional learning requirement assessment device

    WO2021193347A1