Image processing device
The image processing device integrates rule-based and machine learning tools on a unified interface, sharing datasets and performing sequential or parallel processing to reduce user effort and enhance processing accuracy and efficiency.
Patent Information
- Application Number
- JP2023034683
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-07
- Publication Date
- 2024-09-20
AI Technical Summary
Existing image processing systems lack a unified interface for configuring both rule-based and machine learning tools, requiring users to set up each tool separately, increasing effort and complexity.
An image processing device that generates a user interface screen displaying settings windows for both rule-based and machine learning tools, allowing them to share a common dataset, and performs processing sequentially or in parallel to reduce user effort.
Enables seamless integration of rule-based and machine learning tools on a common interface, reducing user setup effort and improving the accuracy and efficiency of image processing by sharing datasets and performing sequential or parallel processing.
Smart Images

Figure 2024126362000001
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an image processing device configured to be capable of executing image processing using machine learning tools and image processing using rule-based tools. [Background technology]
[0002] For example, as an inspection device for visually inspecting a workpiece, an inspection device configured to execute various measurement processes on a target image acquired by an imaging unit and detect defects and the presence or absence of positional deviation of the workpiece based on the results of the measurement processes is known (see, for example, Patent Document 1). The inspection device of Patent Document 1 allows the user to manually configure the processing procedure. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2015-021760 A Summary of the Invention [Problem to be solved by the invention]
[0004] Incidentally, in addition to image processing using a rule-based tool in which a processing procedure is manually constructed as in Patent Document 1, image processing software capable of using image processing tools based on machine learning models is also being considered.
[0005] When processing images using rule-based tools, images are processed according to pre-set rules, so only one image needs to be set up. However, when processing images using machine learning tools, multiple images need to be set up in order to train the machine learning model.
[0006] Because of the difference in the setup procedures between rule-based tools and machine learning tools, no method has been proposed for setting up rule-based tools and machine learning tools on the same interface, which means that users who want to use both rule-based tools and machine learning tools have to go through the trouble of setting them up.
[0007] The present disclosure has been made in consideration of these points, and its purpose is to reduce the user's workload by making it possible to configure both rule-based tools and machine learning tools on a common interface. [Means for solving the problem]
[0008] In order to achieve the above-mentioned object, the image processing device of the present embodiment includes a UI generation unit that generates a user interface screen that displays a setting window for setting image processing and displays it on a display unit, an input for placing a machine learning tool that indicates image processing using a machine learning model and a rule-based tool that indicates image processing according to predetermined rules in the setting window of the user interface screen, an input unit that accepts input of a common dataset composed of a plurality of images to be referenced by the machine learning tool and the rule-based tool, and an image processing unit that performs one of the image processing using the machine learning tool and the image processing using the rule-based tool on the dataset and performs the other processing on the dataset after performing the one processing.
[0009] That is, for example, when it is desired to correct the position of an image with a rule-based tool and then execute image processing with a machine learning tool, a position correction tool, which is an example of a rule-based tool, and a machine learning tool are arranged in a setting window of a user interface screen displayed on a display unit, and a data set is referred to by the position correction tool and the machine learning tool. The image processing unit executes image position correction processing with the rule-based tool for the data set, and then executes image processing with the machine learning tool for the same data set, thereby reducing the user's effort in setting. The image processing with the machine learning tool may include learning processing of a machine learning model. In addition, image processing with the rule-based tool may be executed after image processing with the machine learning tool.
[0010] The UI generation unit can also generate a user interface screen in which a dataset window that displays images included in the dataset referenced by both the machine learning tool and the rule-based tool arranged on the setting window is displayed alongside the setting window, thereby enabling a user to check images in the dataset commonly referenced by the machine learning tool and the rule-based tool on the same user interface screen, thereby improving convenience.
[0011] The image processing unit can generate a plurality of processed images by executing the image processing by the rule-based tool on the plurality of images constituting the dataset. In this case, the UI generating unit generates a user interface screen in which the plurality of processed images are displayed in the dataset window, thereby enabling a user to check whether the image processing by the rule-based tool has been correctly executed on the images to be trained by a machine learning model.
[0012] The image processing unit may be configured to execute the image processing by the machine learning tool on the plurality of processed images to output an inference result for each of the processed images. In this case, the UI generating unit generates a user interface screen in which the plurality of processed images and the inference result corresponding to each processed image are displayed in the dataset window, so that a user can confirm the inference result based on the image after the rule-based processing that the machine learning model actually used as the basis for inference.
[0013] The image processing unit can also train the machine learning model on the multiple images displayed in the data set window and the results of executing the image processing by the rule-based tool on the multiple images, and execute the image processing by the rule-based tool on an inspection target image in which a workpiece is captured. In this case, the image processing using the learned machine learning model is executed on the inspection target image based on the execution result of the image processing by the rule-based tool, so that the same processing of the rule-based tool as that during learning can be executed on the inspection target image. This allows the machine learning tool to be executed according to the learning result, thereby improving the accuracy of the machine learning tool.
[0014] The image processing unit can extract features from each of the plurality of images included in the data set, detect the position of a workpiece included in each image based on the extracted features, and perform position correction based on the detected position of the workpiece so that the position and orientation of the workpiece in each image to be image-processed by the machine learning tool are common. In this case, the efficiency and accuracy of image processing by the machine learning tool can be improved by performing image processing by the machine learning tool on the plurality of images whose positions have been corrected. The position correction may be a coordinate conversion process of the image itself, or a process of correcting the position of a learning target area by the machine learning tool. In addition, when the image processing unit performs a normalized correlation (pattern) search, a luminance value can be used as a feature, and when the image processing unit performs a geometric search, an edge can be used as a feature.
[0015] The input unit may be configured to be able to accept a designation of a target area of image processing by the machine learning tool in an image included in the data set. In this case, the image processing unit performs the position correction so that the position of the workpiece detected in each image is included in the designated target area, and can perform image processing by the machine learning tool on the target area of each image of the data set. This makes it possible to narrow down the target area of image processing by the machine learning tool, thereby improving the efficiency and accuracy of image processing by the machine learning tool. In addition, when it is desired to subject only a portion of the workpiece in the image to image processing by the machine learning tool, the unnecessary portion can be excluded from the judgment target by specifying the target area in advance. In addition, when only the target area is to be learned during learning of a machine learning model, the learning effect can be improved by excluding the portion other than the target area.
[0016] The UI generation unit can also generate a user interface screen in which the images of the dataset are displayed in the dataset window with the workpiece detected in each image by the position correction included in the target area, thereby making it easy to confirm that the region of interest of each image constituting the dataset is included in the target area of image processing by a machine learning tool.
[0017] The image processing by the rule-based tool according to the predetermined rules may be a preprocessing for emphasizing a characteristic region in an input image. In this case, the image processing unit performs the preprocessing on the multiple images constituting the data set to generate multiple preprocessed images in which the characteristic region of each image is emphasized, and performs image processing by the machine learning tool or learning processing of the machine learning model on the multiple preprocessed images. In other words, by performing processing by a rule-based tool such as contrast adjustment, it is possible to emphasize a part to be distinguished, and the difficulty of judgment in the image processing by the machine learning tool to be performed thereafter can be reduced.
[0018] The UI generating unit can also generate a user interface screen in which an indicator indicating that the machine learning tool and the rule-based tool arranged on the setting window both refer to the dataset is displayed on the setting window. This allows a user to easily understand which dataset the machine learning tool and the rule-based tool share, improving convenience. The indicator may be, for example, a frame indicating one group, a line connecting tools, an arrow, or the like.
[0019] The input unit can also accept a user input for making the first machine learning tool and the first rule-based tool arranged in the setting window refer to a first data set consisting of a plurality of images, and for making the second machine learning tool and the second rule-based tool arranged in the setting window refer to a second data set consisting of a plurality of images. In this case, the UI generation unit can generate a user interface screen in which a first indicator indicating that the first machine learning tool and the first rule-based tool arranged in the setting window both refer to the first data set and a second indicator indicating that the second machine learning tool and the second rule-based tool arranged in the setting window both refer to the second data set are displayed on the setting window. That is, when there are multiple data sets, such as when inspecting multiple areas of a workpiece, the tools that refer to the data sets corresponding to each area can be displayed on the user interface screen in a distinguished manner, thereby improving convenience. Note that the present invention can also include a form in which the third machine learning tool and the third rule-based tool both refer to the third data set, and in this case, a third indicator indicating that the third machine learning tool and the third rule-based tool both refer to the third data set may be displayed on the setting window. Effect of the Invention
[0020] As described above, both the rule-based tool and the machine learning tool can be set on a common interface, reducing the workload of the user. [Brief description of the drawings]
[0021] [Figure 1] 1 is a schematic diagram illustrating a configuration of an image processing device according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a block diagram showing a hardware configuration of the image processing device. [Diagram 3] FIG. 13 is a diagram illustrating an example of processing a work image using a machine learning model. [Figure 4] 11 is a flowchart showing an example of an inspection setting procedure of the image processing device. [Diagram 5] FIG. 13 is a diagram illustrating an example of a setting user interface screen. [Figure 6] This is a view equivalent to FIG. 5 with an imaging tool added. [Figure 7] This figure is equivalent to Figure 5 with AI tools added. [Figure 8] FIG. 5 corresponds to FIG. 5 with another tool added. [Figure 9] This is a figure corresponding to FIG. 5 where the dataset was accepted. [Figure 10] 10 is a flowchart illustrating an example of a process performed when the image processing apparatus is in operation. [Figure 11] FIG. 13 is a diagram showing a setting user interface screen for executing a rule-based tool after executing an AI tool. [Figure 12] 13 is a flowchart showing a process for executing a rule-based tool after executing an AI tool. [Figure 13] FIG. 13 is a diagram showing a setting user interface screen when multiple AI tools are combined. [Figure 14] FIG. 13 is a diagram showing a setting user interface screen that is displayed when setting a target area for image processing. [Figure 15] FIG. 15 is a view equivalent to FIG. 14 after position correction processing. [Figure 16] FIG. 13 is a diagram showing a user interface screen for settings when an AI tool is selected. [Figure 17] FIG. 13 is a diagram showing a setting user interface screen when a plurality of imaging units are provided. [Figure 18] FIG. 13 is a diagram showing an example of an image capture setting window. [Figure 19] FIG. 13 is a diagram showing an example of a multiple capture setting window. [Figure 20] FIG. 13 is a diagram illustrating another example of the indicator. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0022] Hereinafter, the preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. Note that the following description of the preferred embodiments is merely illustrative in nature and is not intended to limit the present invention, its applications, or its uses.
[0023] 1 is a schematic diagram showing the configuration of an image processing device 1 according to an embodiment of the present invention. The image processing device 1 is a device for determining the quality of a work image acquired by imaging a workpiece to be inspected, such as various parts or products, and can be used in production sites such as factories. Specifically, a machine learning model is constructed inside the image processing device 1, and this machine learning model is generated by learning a plurality of learning images.
[0024] 2, the image processing device 1 includes a control unit 2 which is the main body of the device, an imaging unit 3, a display device (display section) 4, and a personal computer 5. The personal computer 5 is not essential and can be omitted. The personal computer 5 can be used instead of the display device 4 to display various information and images, and the functions of the personal computer 5 can be incorporated into the control unit 2 or the display device 4.
[0025] In Fig. 1, the control unit 2, the imaging unit 3, the display device 4, and the personal computer 5 are described as an example of the configuration of the image processing device 1, but any two or more of these can be combined and integrated. For example, the control unit 2 and the imaging unit 3 can be integrated, or the control unit 2 and the display device 4 can be integrated. In addition, the control unit 2 can be divided into a plurality of units and some of them can be incorporated into the imaging unit 3 or the display device 4, or the imaging unit 3 can be divided into a plurality of units and some of them can be incorporated into the other units. By using the image processing device 1, all the steps of the image processing method according to the present invention can be executed.
[0026] (Configuration of imaging unit 3) As shown in FIG. 2, the imaging unit 3 includes a camera module (imaging section) 14 and an illumination module (illumination section) 15, and is a unit that performs acquisition of a workpiece image. The camera module 14 includes an AF motor 14a that drives the imaging optical system, and an imaging board 14b. The AF motor 14a is a part that performs automatic focus adjustment by driving the lens of the imaging optical system, and can perform focus adjustment by a method such as contrast autofocus that has been well known in the past. The imaging board 14b includes a CMOS sensor 14c as a light receiving element that receives light incident from the imaging optical system. The CMOS sensor 14c is an imaging sensor configured to be able to acquire a color image. Instead of the CMOS sensor 14c, a light receiving element such as a CCD sensor can be used.
[0027] The lighting module 15 includes an LED (light-emitting diode) 15a as a light-emitting body that illuminates an imaging area including a workpiece, and an LED driver 15b that controls the LED 15a. The timing, duration, and amount of light emitted by the LED 15a can be arbitrarily controlled by the LED driver 15b. The LED 15a may be provided integrally with the imaging unit 3, or may be provided separately from the imaging unit 3 as an external lighting unit.
[0028] (Configuration of display device 4) The display device 4 has a display panel formed of, for example, a liquid crystal panel or an organic EL panel, and is controlled by a processor 13c or a display control unit 13a of the control unit 2 described later. Work images and various user interface screens output from the control unit 2 are displayed on the display device 4. In addition, if the personal computer 5 has a display panel, the display panel of the personal computer 5 can be used in place of the display device 4.
[0029] (operation equipment) Examples of operation devices for a user to operate the image processing device 1 include, but are not limited to, the keyboard 51 and mouse 52 of the personal computer 5, and may be any device configured to be able to accept various operations by the user. For example, a pointing device such as the touch panel 41 of the display device 4 is also included in the operation devices.
[0030] User operations on the keyboard 51 and mouse 52 can be detected by the control unit 2. The touch panel 41 is a conventionally known touch-type operation panel equipped with, for example, a pressure sensor, and user touch operations can be detected by the control unit 2. The same applies when other pointing devices are used.
[0031] (Configuration of control unit 2) The control unit 2 includes a main board 13, a connector board 16, a communication board 17, and a power supply board 18. The main board 13 includes a display control unit (UI generation unit) 13a, an input unit 13b, and a processor (image processing unit) 13c. The display control unit 13a, which will be described in detail later, is a unit that generates a user interface screen or the like that displays a setting window for setting image processing to be executed by the image processing device 1. The various user interface screens generated by the display control unit 13a are displayed on the display device 4.
[0032] The display control unit 13a and the input unit 13b can be configured, for example, by a processing device mounted on the main board 13. Moreover, the display control unit 13a, the input unit 13b, and the processor 13c may be configured by one processing device, or the display control unit 13a, the input unit 13b, and the processor 13c may be configured by separate processing devices.
[0033] The display control unit 13a, the input unit 13b, and the processor 13c control the operation of each connected board and module. For example, the processor 13c outputs a lighting control signal that controls turning on / off the LED 15a to the LED driver 15b of the lighting module 15. The LED driver 15b switches the LED 15a on / off and adjusts the lighting time according to the lighting control signal from the processor 13c, and adjusts the light amount of the LED 15a.
[0034] Moreover, the processor 13c outputs an imaging control signal to control the CMOS sensor 14c to the imaging board 14b of the camera module 14. The CMOS sensor 14c starts imaging in response to the imaging control signal from the processor 13c, and adjusts the exposure time to an arbitrary time to perform imaging. That is, the imaging unit 3 images the field of view of the CMOS sensor 14c in response to the imaging control signal output from the processor 13c, and if a workpiece is present within the field of view, the workpiece is imaged. However, if an object other than the workpiece is present within the field of view, the object can also be imaged. For example, the image processing device 1 can capture a good product image corresponding to a good product and a defective product image corresponding to a defective product by the imaging unit 3 as learning images for a machine learning model. The learning images do not have to be images captured by the imaging unit 3, and may be images captured by other cameras or the like.
[0035] On the other hand, when the image processing device 1 is in operation, the workpiece can be imaged by the imaging unit 3. The CMOS sensor 14c is configured to be able to output a live image, that is, a currently captured image, at any time at a short frame rate.
[0036] When the CMOS sensor 14c finishes capturing an image, the image signal output from the imaging unit 3 is input to the processor 13c of the main board 13 for processing, and is stored in the memory 13d of the main board 13. Specific details of the processing by the processor 13c of the main board 13 will be described later. The main board 13 may be provided with a processing device such as an FPGA or a DSP. Alternatively, the processor 13c may be an integrated device such as an FPGA or a DSP.
[0037] The connector board 16 is a part that receives power from the outside via a power connector (not shown) provided on the power interface 16a. The power supply board 18 is a part that distributes the power received by the connector board 16 to each board and module, and specifically distributes power to the lighting module 15, the camera module 14, the main board 13, and the communication board 17. The power supply board 18 includes an AF motor driver 181. The AF motor driver 181 supplies driving power to the AF motor 14a of the camera module 14 to realize autofocus. The AF motor driver 181 adjusts the power supplied to the AF motor 14a in response to an AF control signal from the processor 13c of the main board 13.
[0038] The communication board 17 is a part that executes communication between the main board 13 and the display device 4 and the personal computer 5, and communication between the main board 13 and an external control device (not shown). An example of the external control device is a programmable logic controller. The communication may be wired or wireless, and either form of communication can be realized by a conventionally known communication module.
[0039] The control unit 2 is provided with a storage device (storage unit) 19 consisting of, for example, a solid state drive, a hard disk drive, or the like. The storage device 19 stores a program file 80, a setting file, and the like (software) for enabling the hardware to execute each control and process described below. The program file 80 and the setting file can be stored in a storage medium 90 such as an optical disk, and the program file 80 and the setting file stored in the storage medium 90 can be installed in the control unit 2. The program file 80 may be downloaded from an external server using a communication line. In addition, the storage device 19 can also store, for example, the image data and parameters for constructing a machine learning model of the image processing device 1.
[0040] (Type of image processing) The image processing device 1 is configured to be capable of performing both image processing according to a predetermined rule and image processing using a machine learning model. Image processing according to a predetermined rule can be called rule-based image processing. In rule-based image processing, a user manually constructs a processing procedure. A tool that indicates image processing according to a predetermined rule is called a rule-based tool, and the rule-based tool includes, for example, a pre-processing tool that adjusts the contrast of a workpiece image, a position correction tool that corrects the position and posture of the workpiece, a dimension and geometry tool that extracts the dimensions and geometric shape of the workpiece, and a defect tool that extracts defects on the outer surface of the workpiece. The defect tool is an example of a normal inspection tool that indicates image inspection based on a predetermined rule.
[0041] On the other hand, image processing using a machine learning model can be called AI-based image processing that enables image processing by having a machine learning model learn images and teacher data. In image processing using a machine learning model, first, a plurality of images (learning images) and teacher data are input to a machine learning model to learn and generate a trained machine learning model, and an input image is input to the trained machine learning model, and image processing such as classification processing, judgment processing, detection processing, and positioning processing is performed by the machine learning model. In this embodiment, the learning processing using the machine learning model is included in the image processing. A tool showing image processing using a machine learning model is called a machine learning tool (AI tool), and the machine learning tool includes a classification tool showing a classification process of classifying an input image into one of a plurality of classes using a machine learning model, a judgment tool showing a judgment process of judging the quality of an input image using a machine learning model, a detection tool showing a detection process of detecting objects or defects included in an input image using a machine learning model, and a positioning tool showing a positioning process of positioning an object included in an input image using a machine learning model.
[0042] The processor 13c can construct a machine learning model by reading the parameters stored in the storage device 19. As shown in FIG. 3, the machine learning model includes a neural network, an autoencoder, an SVM (support vector machine), and the like. The processor 13c inputs a workpiece image obtained by capturing an image of a workpiece to be inspected to the neural network constructed as described above. This is a pre-stage process. When the workpiece image is input to the neural network, the neural network performs feature extraction, and the extracted feature amount is input to an autoencoder and / or a support vector machine that executes a post-stage process. The neural network that performs feature extraction in the pre-stage process may be a convolutional neural network that has been trained in advance, or may be a convolutional neural network that is configured to be able to additionally learn using automatic learning, which will be described later. In addition, in the machine learning model shown in FIG. 3, a configuration may be adopted in which a plurality of feature amounts (feature maps) with different scales are extracted from a plurality of layers of the convolutional neural network, and the plurality of feature amounts are each input to an autoencoder and / or a support vector machine.
[0043] The autoencoder generates and outputs an anomaly map (heat map) based on the input feature amount. The processor 13c executes a determination process to determine whether the workpiece image belongs to the first class or the second class based on the anomaly map output from the autoencoder. For example, the first class can be a good product class, and an image belonging to the first class can be a good product image obtained by capturing an image of a good product, and the second class can be a defective product class, and an image belonging to the second class can be a defective product image obtained by capturing an image of a defective product.
[0044] On the other hand, the support vector machine executes a classification process for classifying the workpiece image into a plurality of classes based on the input feature amount. The plurality of classes includes the first class and the second class, and this enables the processor 13c to classify the workpiece image into a non-defective class and a defective class. The plurality of classes may include a third class, a fourth class, etc., and the number of classes is not particularly limited.
[0045] The machine learning model according to this embodiment is not limited to an autoencoder or an SVM, and other machine learning models may be used.
[0046] The processor 13c of the image processing device 1 executes the above judgment process and classification process, thereby making it possible to determine whether the workpiece is a good or defective product. The image processing device 1 having such functions can also be called an appearance inspection device or the like, since it can inspect the appearance of the workpiece. The workpiece to be inspected by the image processing device 1 may be the entire workpiece, or only a part of the workpiece. Furthermore, one workpiece may include multiple inspection objects. Furthermore, a workpiece image may include multiple workpieces.
[0047] (Inspection settings of image processing device 1) Next, the inspection settings of the image processing device 1 will be described. The inspection settings refer to the settings for image processing. Fig. 4 is a flowchart showing an example of the procedure for the inspection settings of the image processing device 1, which is executed when the user performs an operation to start the inspection settings. The operation to start the inspection settings is, for example, an operation of a start button, and when the input unit 13b detects that the operation has been performed with the mouse 52 or the like, the flowchart in Fig. 4 starts.
[0048] In step SA1, the display control unit 13a generates a setting user interface screen 100 shown in Fig. 5 and displays it on the display device 4. The setting user interface screen 100 is provided with a setting window 101, a selected image display area 102, and a dataset window 103. The setting window 101 is a window for setting image processing. The dataset window 103 is an area for displaying a list of datasets made up of multiple images in thumbnail format. The selected image display area 102 is an area for enlarging and displaying an image selected from the multiple images displayed in the dataset window 103.
[0049] In step SA2, addition of the imaging tool 110 is accepted as shown in Fig. 6. When the user selects the imaging tool 110 with the mouse 52 or the like, the input unit 13b accepts the selection operation of the imaging tool 110 as a user input. When the input unit 13b accepts the selection operation of the imaging tool 110, the processor 13c specifies that the imaging tool 110 has been selected and places the imaging tool 110 at the beginning of the main routine. Then, as shown in Fig. 6, the display control unit 13a generates a setting user interface screen 100 in which the imaging tool 110 is placed at the top of the main routine of the setting window 101, and causes the display device 4 to display the screen.
[0050] In step SA3 of the flowchart shown in FIG. 4, the addition of the AI classification tool 111 is accepted as shown in FIG. 7. In this embodiment, a case where the addition of the AI classification tool 111, which is one of the AI tools, is accepted will be described, but the same applies to the case where the addition of other AI tools is accepted. That is, the AI classification tool 111 is a tool that can input a learning image to a machine learning model, make the machine learning model learn, and execute classification processing after learning. When the user selects the AI classification tool 111 with the mouse 52 or the like, the input unit 13b accepts the selection operation of the AI classification tool 111 as a user input. When the input unit 13b accepts the selection operation of the AI classification tool 111, the processor 13c specifies that the AI classification tool 111 has been selected and arranges the AI classification tool 111 below the imaging tool 110 of the main routine. Then, as shown in FIG. 7, the display control unit 13a generates a setting user interface screen 100 in which the AI classification tool 111 is arranged below the imaging tool 110 of the main routine in the setting window 101, and displays it on the display device 4.
[0051] Along with generating the AI classification tool 111, the display control unit 13a generates a frame 112 surrounding the AI classification tool 111 and displays it on the setting window 101. This frame 112 is an example of an indicator that indicates that the machine learning tool and the rule-based tool arranged on the setting window 101 both refer to a common data set.
[0052] In step SA4, as shown in Fig. 8, addition of another tool is accepted. Specifically, when a user's operation of putting another tool into frame 112 is detected, input unit 13b accepts the operation as an operation of adding another tool. Processor 13c identifies which tool has been added.
[0053] The other tools added to the frame 112 may be machine learning tools or rule-based tools. In this embodiment, a position correction tool that corrects the position and orientation of the workpiece included in the image is added in step SA4. The position correction tool is an example of a rule-based tool. The tools added to the frame 112 are not limited to the position correction tool described above, and may be, for example, a tool for measuring dimensions, a tool for extracting edges, etc. Furthermore, the number of tools added to the frame 112 is not particularly limited. A group is formed by multiple tools arranged in one frame 112.
[0054] In step SA5, a data set made up of a plurality of images is accepted, as shown in Fig. 9. The data set may be made up of a plurality of workpiece images captured by the imaging tool 110, or may be made up of a plurality of images stored in, for example, the storage device 19. When making up a data set from a plurality of stored images, it is sufficient to operate the mouse 52 or the like to specify the storage destination, and read in the plurality of images from the storage destination.
[0055] The input unit 13b accepts a data set designation operation as a user input. When the input unit 13b accepts a data set designation operation, the processor 13c identifies that a data set has been designated. Then, as shown in FIG. 9, the display control unit 13a generates a setting user interface screen 100 in which a plurality of images 120 constituting the data set are displayed in thumbnail format in the data set window 103, and causes the display device 4 to display the screen. When the user selects any one of the images 120 displayed in the data set window 103, the display control unit 13a generates and displays a selected mark 121 so as to surround the selected image 120. The selection operation of any one of the images 120 can be performed by, for example, the mouse 52, and the processor 13c identifies the one image 120 selected by the user. When the processor 13c identifies the one image 120 selected by the user, the display control unit 13a causes the one image 120 to be enlarged and displayed in the selected image display area 102. It should be noted that steps SA2, SA3, SA4, and SA5 may be executed in any order.
[0056] In step SA6, the designation of the AI tool and the rule-based tool that share the data set is accepted. The acceptance of the designation in this step is possible by referring to the result of step SA4. That is, the tool added to the frame 112 surrounding the AI classification tool 111 is set as a tool that refers to a common data set. The operation of adding a tool to the frame 112 surrounding the AI classification tool 111 is a user input for making the machine learning tool and the rule-based tool arranged in the setting window 101 refer to the common data set. This user input is accepted by the input unit 13b. That is, the display control unit 13a generates a user interface screen 100 in which the data set window 103, which displays images included in the data set that is referred to by both the machine learning tool and the rule-based tool arranged on the setting window 101, is displayed side by side with the setting window 101, and displays it on the display device 4. Therefore, the user can check the images in the data set that is commonly referred to by the machine learning tool and the rule-based tool on the same user interface screen 100, improving convenience.
[0057] In step SA7, image processing is performed on the data set using a rule-based tool. In step SA8, image processing is performed on the data set after image processing using the rule-based tool using an AI tool. That is, the processor 13c performs image position correction processing on the data set using a rule-based tool, and then performs image processing on the same data set using a machine learning tool, thereby reducing the user's effort in setting.
[0058] In this example, as shown in FIG. 9, the rule-based tool is the position correction tool 113, the AI tool is the AI classification tool 111, and the position correction tool 113 is arranged on top. Therefore, before image processing by the AI classification tool 111, position correction processing is performed on the data set in step SA7. To specifically explain the position correction tool 113, when image processing by the position correction tool 113 is performed, the processor 13c first extracts feature amounts from each of the multiple images included in the data set. After extracting feature amounts from each of the multiple images, the processor 13c detects the position of the workpiece included in each image based on the extracted feature amounts. The processor 13c performs position correction based on the detected position of the workpiece so that the position and orientation of the workpiece in each image to be subjected to image processing by the AI classification tool 111 are common. When the processor 13c performs a normalized correlation (pattern) search, the brightness value can be used as the feature amount, and when the processor 13c performs a geometric search, the edge can be used as the feature amount.
[0059] After the position correction is performed, the data set after the position correction process is input to the machine learning model in step SA8, and learning of the machine learning model is performed. As a result, a machine learning model capable of classification processing is generated. Note that a similar procedure can be used to generate a machine learning model capable of judgment processing, detection processing, positioning processing, and the like in addition to classification processing.
[0060] (Operation of image processing device 1) Next, the operation of the image processing device 1 will be described. FIG. 10 is a flowchart showing an example of the process during operation of the image processing device 1, which is started after the user issues an instruction to start operation after the above settings are completed. In step SB1 after the start, the processor 13c executes the imaging tool 110 at a predetermined timing. The predetermined timing is, for example, the timing when an imaging trigger signal is input from an external device or the timing when an imaging trigger signal is generated in the image processing device 1. When the image processing device 1 is operated at a site where multiple workpieces are transported sequentially on a transport line, the timing when the workpieces reach a predetermined position may be the predetermined timing. When the imaging tool 110 is executed at a predetermined timing, the imaging unit 3 captures the workpiece. As a result, the workpiece image is acquired as an input image. When the imaging unit 3 executes imaging multiple times, multiple input images are acquired.
[0061] In step SB2, image processing is performed by the rule-based tool on the input image acquired in step SB1. In step SB3, image processing is performed by the AI tool on the input image after image processing by the rule-based tool. In this example, as shown in FIG. 9, since the rule-based tool is the position correction tool 113 and the AI tool is the AI classification tool 111, position correction processing is performed on the input image in step SB2, and then the input image after position correction processing is input to the machine learning model in step SB3 and classified. Thereafter, in step SB4, the classification result by the machine learning model is output. The classification result is displayed on, for example, the display device 4 and stored in the storage device 19.
[0062] In this way, the processor 13c generates a trained machine learning model by having the machine learning model learn the multiple images displayed in the data set window 103 of the setting user interface screen 100 and the results of executing image processing by the rule-based tool on the multiple images. The processor 13c then executes image processing by the rule-based tool on an input image that is an inspection target image in which a workpiece is captured, and thereafter, based on the results of executing image processing by the rule-based tool, executes image processing using the trained machine learning model on the input image.
[0063] In the above example, image processing by an AI tool is performed on an input image on which position correction processing has been performed, but this is not limited to the above. The position correction result (position correction data) obtained by executing the position correction processing may be obtained from the position correction tool 113, the obtained position correction result may be transferred to the AI tool, and image processing may be performed by the AI tool based on the transferred position correction result.
[0064] (Execution order of AI tools and rule-based tools) In the above example, image processing is performed by the rule-based tool and then by the AI tool, but this order may be reversed, i.e., image processing by the rule-based tool may be performed after image processing by the AI tool.
[0065] Hereinafter, an example of executing image processing by a rule-based tool after image processing by an AI tool will be described based on the setting user interface screen 100 shown in Fig. 11. In this example, a spring and a screw exist as workpieces, and a workpiece image of the spring and a workpiece image of the screw are input as input images to the image processing device 1 during operation. An AI classification tool 111 is added as an AI tool, and this AI classification tool 111 is configured with a machine learning model that classifies input images into spring images of springs and screw images of screws.
[0066] In the frame 112 surrounding the AI classification tool 111, a flaw tool (spring) 131 and a flaw tool (screw) 132 are added as normal inspection tools, and the flaw tool (spring) 131 and the flaw tool (screw) 132 are arranged under the AI classification tool 111. That is, since the workpiece includes both springs and screws, the user adds "T0004: flaw tool (spring)" as a flaw detection tool for springs that detects flaws occurring in the springs in the images classified as spring images by the AI classification tool 111, and "T0005: flaw tool (screw)" as a flaw detection tool for screws that detects flaws occurring in the screws in the images classified as screw images by the AI classification tool 111. In addition, a dimension tool for springs that measures the dimensions of springs and a dimension tool for screws that measures the dimensions of screws may be added, and these dimension tools are also rule-based tools. For example, a dimension tool for measuring the outer diameter can be used for springs, and a tool for measuring the total length can be used for screws.
[0067] The flaw tool (spring) 131 is a normal inspection tool corresponding to one of the classes classified by the AI classification tool 111. The flaw tool (screw) 132 is a normal inspection tool corresponding to the other class classified by the AI classification tool 111. In this way, the input unit 13b can arrange the AI classification tool 111 and the normal inspection tools 131 and 132 corresponding to each of the multiple classes classified by the AI classification tool 111 in the setting window 101, and accept user input for causing the AI classification tool 111 and the multiple normal inspection tools 131 and 132 arranged in the setting window 101 to refer to a common data set composed of multiple images.
[0068] As shown in the flowchart of Fig. 12, when setting up the inspection, a plurality of screw images and a plurality of spring images are prepared in advance. A data set is made up of these multiple images. As shown in Fig. 11, the AI classification tool 111, the flaw tool (spring) 131, and the flaw tool (screw) 132 are in the frame 112, so the data set is shared by the AI classification tool 111, the flaw tool (spring) 131, and the flaw tool (screw) 132.
[0069] In step SC1 during the setting, the data set is input to the machine learning model and learning of the machine learning model is executed, thereby generating a machine learning model capable of classifying images of springs and images of screws.
[0070] During operation, an input image acquired by executing the imaging tool is input in step SC1 to the AI classification tool 111. As a result of image processing by the AI classification tool 111, as shown in step SC2, if the input image is a screw image, it is classified as a screw image, whereas if the input image is a spring image, it is classified as a spring image.
[0071] Thereafter, in step SC3, image processing is performed by the flaw tool (screw) 132 on the images classified as screw images by the AI classification tool 111, and image processing is performed by the flaw tool (spring) 131 on the images classified as spring images by the AI classification tool 111. In this manner, the processor 13c classifies each image constituting the data set into one of a plurality of classes by the AI classification tool 111 arranged in the setting window 101, and performs image inspection of the classified images by the normal inspection tools 131, 132 corresponding to the classified class.
[0072] In step SC4, the result of image processing by the flaw tool (screw) 132 is output, and the result of image processing by the flaw tool (screw) 131 is also output. At this time, the display control unit 13a can generate a user interface screen 100 in which the result of classification processing by the AI classification tool 111 and the result of image inspection by the normal inspection tools 131 and 132 are displayed in the data set window 103, so that the results can be presented to the user.
[0073] (Combination of multiple AI tools) The image processing device 1 can also use only the AI tool without using the rule-based tool. Fig. 13 shows a setting user interface screen 100 in the case where a plurality of AI tools are combined. In a frame 112, an AI positioning tool 141, an AI defect detection tool 142, and an AI defect classification tool 143 are added as AI tools. The AI positioning tool 141 is arranged at the top, and the AI defect classification tool 143 is arranged at the bottom, and this arrangement order corresponds to the order of processing.
[0074] That is, the AI positioning tool 141 executes image processing to move the inspection target area to the center by the machine learning model, and the image in which the inspection target area has been moved to the center by the image processing of the AI positioning tool 141 is input to the AI defect detection tool 142. The AI defect detection tool 142 executes image processing to detect defective parts in the input image by the machine learning model, and the defective parts extracted by the image processing of the AI defect detection tool 142 are input to the AI defect classification tool 143. The AI defect classification tool 143 executes image processing to classify the type of defect by the machine learning model. The types of defects include, for example, scratches, stains, etc.
[0075] In this example, since there are multiple types of AI tools, when training the machine learning model, training data is prepared for the AI positioning tool 141, training data for the AI defect detection tool 142, and training data for the AI defect classification tool 143.
[0076] (Details of position correction) When performing position correction, the user can specify a target area for image processing by the AI classification tool 111. As shown in the setting user interface screen 100 shown in FIG. 14, when the position correction tool 113 is selected, an image selected from the multiple images displayed in the data set window 103 is displayed in the selected image display area 102. In the selected image display area 102, a region designation frame 150 for designating a target area for image processing by the AI classification tool 111 is superimposed on the image. The position, size, aspect ratio, etc. of the region designation frame 150 on the image can be changed by the user operating the mouse 52. When the entire workpiece in the image is to be the target area for image processing, the user operates the mouse 52 to change the position, size, aspect ratio, etc. of the region designation frame 150 so that the region designation frame 150 surrounds the entire workpiece and is as small as possible. When only a part of the workpiece is to be the target area for image processing, the user operates the mouse 52 to change the position, size, aspect ratio, etc. of the region designation frame 150 so that the region designation frame 150 surrounds only a part of the workpiece. After the change, when the user performs a confirm operation, the input unit 13b accepts the area surrounded by the area designation frame 150 as the target area for image processing. In other words, the input unit 13b is configured to be able to accept the designation of the target area for image processing by the machine learning tool in the image included in the data set, so that unnecessary parts can be excluded from the judgment target. Also, when only the target area is to be learned during learning of the machine learning model, the learning effect can be improved by excluding parts other than the target area.
[0077] When the input unit 13b accepts the designation of the target area for image processing, the processor 13c performs position correction so that the position of the workpiece detected in each image is included in the target area designated by the user. Specifically, the processor 13c performs position correction processing by the position correction tool 113 on each of the multiple images constituting the data set, thereby generating multiple processed images. FIG. 15 shows the setting user interface screen 100 after the position correction processing by the position correction tool 113 is performed. The target areas of all of the multiple images displayed in the data set window 103 are corrected by the position correction so that they have the same orientation, and these images are the processed images. In this way, the display control unit 13a generates the setting user interface screen 100 in which multiple processed images are displayed in the data set window 103, so that the user can check whether image processing by the rule-based tool has been correctly performed on the image before inputting it to the machine learning model. According to this setting user interface screen 100, when a workpiece is detected in each image by the position correction, the multiple images of the data set can be displayed in the data set window 103 with the detected workpiece included in the target area.
[0078] After performing position correction, image processing using a machine learning tool is performed on the target region of each image in the dataset displayed in the dataset window 103.
[0079] (Details on selecting AI tools) FIG. 16 shows a user interface screen 100 for setting when an AI tool is selected. A first icon 160 is attached to each image of the dataset displayed in the dataset window 103. The first icon 160 indicates a good image, a defective image, a learning image, and a verification image. When a "circle" is attached to the upper right of the first icon 160, it indicates that the image is a good image, a learning image, and a verification image. When a "circle" is attached to the lower left of the first icon 160, it indicates that the image is a good image and a verification image. When a "x" is attached to the upper right of the first icon 160, it indicates that the image is a defective image, a learning image, and a verification image. When a "x" is attached to the lower left of the first icon 160, it indicates that the image is a defective image and a verification image. Furthermore, a second icon 161 is also attached to each image of the dataset displayed in the dataset window 103, indicating that the image is used for learning. The first icon 160 and the second icon 161 may have any form as long as they are capable of displaying the above information.
[0080] The processor 13c executes image processing by a machine learning tool on the multiple processed images after the position correction process is executed, thereby outputting the inference result of each processed image. The display control unit 13a generates a setting user interface screen 100 in which multiple processed images and inference results corresponding to each processed image are displayed in a data set window 103. That is, the data set window 103 is provided with an inference result display area 165. In the inference result display area 165, the number of images inferred as good products and the number of images determined as bad products are displayed in a table format as an inference result obtained by inputting a verification image from among the images in the data set into a machine learning model and performing image processing. In addition, the inference result display area 165 also displays the number of learning images to be trained by the machine learning model in a form in which good product images and bad product images can be distinguished. Furthermore, the inference result display area 165 also displays the number of unclassified images. By displaying the setting user interface screen 100 shown in FIG. 16, the user can confirm the inference result based on the image after the rule-based process that the machine learning model actually used as the basis for inference.
[0081] (Feature area emphasis processing) Image processing using rule-based tools can also be used as a pre-processing step to enhance characteristic regions in the input image, such as contrast adjustment, which can enhance characteristic regions.
[0082] In this case, the processor 13c performs preprocessing for emphasizing characteristic regions on the multiple images constituting the dataset, thereby generating multiple preprocessed images in which the characteristic regions of each image are emphasized. As in the case of the position correction process, the display control unit 13a generates a setting user interface screen 100 in which the multiple preprocessed images in which the characteristic regions are emphasized are displayed in the dataset window 103.
[0083] After executing preprocessing for emphasizing the characteristic regions, the processor 13c executes image processing by a machine learning tool or learning processing of a machine learning model on the multiple preprocessed images. That is, by executing preprocessing for emphasizing the characteristic regions, it is possible to emphasize the parts to be discriminated by the machine learning model, and it is possible to lower the difficulty of judgment in the image processing by the machine learning tool executed thereafter.
[0084] (Example of using multiple imaging units) In the above-mentioned examples, the case where one imaging unit 3 is provided has been described, but this is not limiting, and this embodiment can also be applied to the case where multiple imaging units 3 are provided. Fig. 17 is a diagram showing a setting user interface screen 100 when multiple imaging units 3 are provided. The imaging fields of view of the multiple imaging units 3 are set so as to capture images of different parts of the same workpiece, and therefore, in this example, multiple locations on one workpiece can be inspected simultaneously.
[0085] When the user selects the imaging tool 110 on the setting user interface screen 100 using the mouse 52 or the like, the display control unit 13a generates an imaging setting window 200 as shown in Fig. 18 and displays it on the display device 4. The imaging setting window 200 is provided with a camera configuration setting area 201, a camera number display area 202 in which a number unique to the imaging unit 3 is displayed, a camera model display area 203 in which the model of the imaging unit 3 is displayed, a multiple imaging setting area 204, and the like.
[0086] When the user operates the setting button 204a provided in the multiple capture setting area 204 using the mouse 52 or the like, the display control unit 13a generates a multiple capture setting window 210 as shown in FIG. 19 and displays it on the display device 4. The multiple capture setting window 210 is provided with an image capture count setting area 211 for setting the number of captures, and a camera validity setting area 212. In the camera validity setting area 212, when the number of captures set in the image capture count setting area 211 is, for example, two, it is set which imaging unit 3 is to perform the first capture and the second capture. In this example, two imaging units 3, "CAM1" and "CAM2", are used, and it is set that the first capture is performed by "CAM1" and the second capture is performed by "CAM2". This is an example, and the number of captures may be set to three or more, and three or more imaging units 3 may be used.
[0087] Also, as shown in FIG. 17, two groups, i.e., "AI group 0001" and "AI group 0002", are set based on a user operation. Specifically, the first group is set by placing the first position correction tool 113A and the first AI defect detection tool 142A in the first frame 112A. In order to have the first position correction tool 113A and the first AI defect detection tool 142A refer to the first data set tool 118A indicating a first data set composed of a plurality of images, the first data set tool 118A is placed in the first frame 112A. The first position correction tool 113A is a first rule-based tool indicating image processing according to a predetermined rule, and the first AI defect detection tool 142A is a first machine learning tool indicating image processing using a machine learning model.
[0088] Further, a second group is set by placing the second position correction tool 113B and the second AI defect detection tool 142B in the second frame 112B. In order to have the second position correction tool 113B and the second AI defect detection tool 142B refer to the second data set tool 118B indicating a second data set composed of a plurality of images, the second data set tool 118B is placed in the second frame 112B. The second position correction tool 113B is a second rule-based tool indicating image processing according to a predetermined rule, and the second AI defect detection tool 142B is a second machine learning tool indicating image processing using a machine learning model.
[0089] In this way, the input unit 13b places the first AI defect detection tool 142A and the second AI defect detection tool 142B, as well as the first position correction tool 113A and the second position correction tool 113B in the setting window 101, and accepts user input for causing the first AI defect detection tool 142A and the first position correction tool 113A placed in the setting window 101 to refer to the first data set tool 118A, and for causing the second AI defect detection tool 142B and the second position correction tool 113B placed in the setting window 101 to refer to the second data set tool 118B, which is different from the first data set tool 118A.
[0090] When two groups are set, the display control unit 13a generates the first frame 112A and the second frame 112B and displays them in the setting window 101, so that the user can easily and accurately determine which tool belongs to which group and which tool belongs to which group. That is, the display control unit 13a generates a user interface screen 100 in which the first frame 112A is displayed on the setting window 101 as a first indicator indicating that the first AI defect detection tool 142A and the first position correction tool 113A arranged on the setting window 101 both refer to the first data set tool 118A. Furthermore, the display control unit 13a generates a user interface screen 100 in which the second frame 112B is displayed on the setting window 101 as a second indicator indicating that the second AI defect detection tool 142B and the second position correction tool 113B arranged on the setting window 101 both refer to the second data set tool 118B.
[0091] When setting up the image processing device 1, if "CAM1" is the first imaging unit and "CAM2" is the second imaging unit, a first data set tool 118A is composed of a plurality of images captured by the first imaging unit, and a second data set tool 118B is composed of a plurality of images captured by the second imaging unit. A first AI defect detection tool 142A is trained by the plurality of images constituting the first data set tool 118A, and a second AI defect detection tool 142B is trained by the plurality of images constituting the second data set tool 118B.
[0092] During operation of the image processing device 1, the first position correction tool 113A performs image processing on an input image captured by the first imaging unit, and the first AI defect detection tool 142A performs image processing on the input image after the first position correction tool 113A has performed image processing to determine whether or not there is a defect. The second position correction tool 113B performs image processing on an input image captured by the second imaging unit, and the second AI defect detection tool 142B performs image processing on the input image after the second position correction tool 113B has performed image processing to determine whether or not there is a defect. The results output from the first AI defect detection tool 142A and the results output from the second AI defect detection tool 142B are integrated to make a final pass / fail determination.
[0093] (indicator) In each of the above examples, the indicators indicating that the machine learning tool and the rule-based tool placed on the setting window 101 both refer to a dataset are frame 112 (shown in FIG. 7), first frame 112A, and second frame 112B (shown in FIG. 17), but the indicators may also be lines, arrows, etc. connecting the tools.
[0094] 20 , when the position correction tool 113 and the AI defect detection tool 142 are arranged on the setting window 101, a data set tool 118 referred to by the position correction tool 113 and the AI defect detection tool 142 may also be arranged on the setting window 101, and a line 101a connecting the data set tool 118 and the position correction tool 113 and a line 101b connecting the data set tool 118 and the AI defect detection tool 142 may be made displayable. For example, when a user operates the mouse 52 to associate the data set tool 118 with the position correction tool 113, the operation is accepted by the input unit 13b and the display control unit 13a displays the line 101a on the setting window 101, and when a user operates the data set tool 118 with the AI defect detection tool 142, the operation is accepted by the input unit 13b and the display control unit 13a displays the line 101b on the setting window 101. The lines 101a and 101b are indicators that indicate that the position correction tool 113 and the AI defect detection tool 142 both refer to a common data set tool 118. Moreover, instead of the lines 101a and 101b, an arrow or the like may be used as an indicator.
[0095] In the above embodiment, an example was shown in which frame 112 and line 101a are displayed as indicators to indicate that the machine learning tools and rule-based tools arranged on setting window 101 refer to a common dataset, but a mode in which no indicator is displayed is not excluded. That is, when setting window 101 includes multiple tools that refer to a common dataset and other tools that do not refer to the dataset, the multiple tools may be arranged relatively closer to each other compared to the other tools to indicate that the multiple tools refer to a common dataset.
[0096] In addition, the means for making a plurality of tools refer to a common data set is not limited to the above-mentioned example. For example, a first tool may be made to refer to a data set, and a data set window showing the data set may be displayed on a user interface screen, and a second tool on a setting window may be selected to make the second tool refer to the data set. As another means, when a data set is input first and then tools are sequentially arranged on the setting window, the data set may be automatically referred to for each tool sequentially arranged on the setting window. As another means, when a tool is first arranged on the setting window and then a data set is input, all tools arranged on the setting window may automatically refer to the data set.
[0097] The above-described embodiment is merely illustrative in all respects and should not be construed as limiting. Furthermore, all modifications and variations within the scope of the claims are within the scope of the present invention. [Industrial Applicability]
[0098] As described above, the image processing device according to the present disclosure can be used, for example, when performing visual inspection of industrial products. [Explanation of symbols]
[0099] 1 Image processing device 4 Display device (display section) 13a Display control section (UI generation section) 13b Input section 13c Processor (Image Processing Unit) 100 User Interface Screens 103 Dataset Window
Claims
1. An image processing device configured to be able to perform image processing using a machine learning tool and image processing using a rule-based tool, a UI generation unit that generates a user interface screen that displays a setting window for setting image processing and displays the screen on a display unit; an input unit that receives an input for placing a machine learning tool that indicates image processing using a machine learning model and a rule-based tool that indicates image processing according to a predetermined rule in the setting window of the user interface screen, and an input of a common data set consisting of a plurality of images to be referenced by the machine learning tool and the rule-based tool; an image processing unit that performs one of the image processing by the machine learning tool and the image processing by the rule-based tool on the data set, and then performs the other processing on the data set after the one processing has been performed; An image processing device comprising:
2. 2. The image processing device according to claim 1, the UI generation unit generates a user interface screen in which a dataset window displaying images included in the dataset referenced by both the machine learning tool and the rule-based tool arranged on the setting window is displayed alongside the setting window. Image processing device.
3. 3. The image processing device according to claim 2, the image processing unit generates a plurality of processed images by performing the image processing using the rule-based tool on the plurality of images that make up the data set; the UI generation unit generates a user interface screen in which the plurality of processed images are displayed in the dataset window. Image processing device.
4. 3. The image processing device according to claim 2, the image processing unit executes the image processing by the machine learning tool on the plurality of processed images, and outputs an inference result for each processed image; the UI generation unit generates a user interface screen in which the plurality of processed images and the inference results corresponding to each processed image are displayed in the dataset window. Image processing device.
5. 3. The image processing device according to claim 2, The image processing unit causing the machine learning model to learn the plurality of images displayed in the dataset window and the results of performing the image processing on the plurality of images by the rule-based tool; performing the image processing using the rule-based tool on an inspection target image obtained by capturing an image of a workpiece; performing the image processing using the machine learning model on the inspection target image based on the execution result of the image processing by the rule-based tool; Image processing device.
6. 3. The image processing device according to claim 2, The image processing unit extracting features from each of the plurality of images included in the data set, and detecting the position of a workpiece included in each image based on the extracted features; Based on the detected position of the workpiece, position correction is performed so that the position and orientation of the workpiece in each image that is the subject of image processing by the machine learning tool are common; performing image processing using the machine learning tool on the position-corrected images; Image processing device.
7. 7. The image processing device according to claim 6, the input unit is configured to be able to accept designation of a target area of image processing by the machine learning tool in an image included in the dataset; The image processing unit performs the position correction so that the position of the workpiece detected in each image is included in the specified target area, and performs image processing using the machine learning tool on the target area of each image in the data set. Image processing device.
8. 8. The image processing device according to claim 7, the UI generation unit generates a user interface screen in which the plurality of images of the data set are displayed in the data set window, with the workpiece detected in each image by the position correction being included in the target area. Image processing device.
9. 2. The image processing device according to claim 1, the image processing by the rule-based tool in accordance with the predetermined rule is preprocessing for emphasizing a feature region in an input image; The image processing unit performing the preprocessing on the plurality of images constituting the data set to generate a plurality of preprocessed images in which characteristic regions of each image are emphasized; performing image processing by the machine learning tool or learning processing of the machine learning model on the plurality of preprocessed images; Image processing device.
10. 2. The image processing device according to claim 1, the UI generation unit generates a user interface screen in which an indicator indicating that the machine learning tool and the rule-based tool arranged on the setting window both refer to the dataset is displayed on the setting window. Image processing device.
11. 2. The image processing device according to claim 1, The input unit placing a first machine learning tool and a second machine learning tool that indicate image processing using a machine learning model, and a first rule-based tool and a second rule-based tool that indicate image processing according to a predetermined rule, in the setting window; causing the first machine learning tool and the first rule-based tool placed in the setting window to refer to a first dataset consisting of a plurality of images; and accepting user input for causing the second machine learning tool and the second rule-based tool placed in the setting window to refer to a second dataset consisting of a plurality of images; The UI generation unit generating a user interface screen that displays, on the setting window, a first indicator indicating that the first machine learning tool and the first rule-based tool arranged on the setting window both refer to the first dataset, and a second indicator indicating that the second machine learning tool and the second rule-based tool arranged on the setting window both refer to the second dataset; Image processing device.
12. 3. The image processing device according to claim 2, The image processing unit performing the image processing using the machine learning tool on the plurality of images constituting the dataset; performing the image processing using the rule-based tool on the plurality of images on which the image processing using the machine learning tool has been performed; Image processing device.
13. 13. The image processing device according to claim 12, the machine learning tool includes a classification tool that performs a classification process to classify an input image into one of a plurality of classes using the machine learning model; the rule-based tool includes a general inspection tool that indicates image inspection based on a predetermined rule; The input unit placing the classification tool and the normal inspection tools corresponding to each of the plurality of classes in the setting window, and receiving a user input for causing the classification tool and the plurality of normal inspection tools placed in the setting window to refer to the data set composed of a plurality of images; The image processing unit classifying each image constituting the data set into one of the plurality of classes using the classification tool arranged in the setting window, and performing image inspection on the classified images using the normal inspection tool corresponding to the classified class; The UI generation unit generating a user interface screen in which the results of the classification process by the classification tool and the results of the image inspection by the normal inspection tool are displayed in the data set window; Image processing device.
14. 2. The image processing device according to claim 1, the input unit accepts a user input for causing the machine learning tool and the rule-based tool to refer to the dataset; Image processing device.
15. An image processing method for performing image processing using a machine learning tool and image processing using a rule-based tool, generating a user interface screen that displays a setting window for setting image processing, and displaying the screen on a display unit; receiving input for placing a machine learning tool that indicates image processing using a machine learning model and a rule-based tool that indicates image processing according to a predetermined rule in the setting window of the user interface screen, and input of a common dataset consisting of a plurality of images to be referenced by the machine learning tool and the rule-based tool; performing one of the image processing by the machine learning tool and the image processing by the rule-based tool on the data set, and then performing the other processing on the data set after performing the one processing; An image processing method comprising:
Citation Information
Patent Citations
Three-dimensional image processor, three-dimensional image processing method, three-dimensional image processing program, computer-readable recording medium, and recording apparatus
JP2015021760A
Cited By
Information processing system, information processing method, and program
WO2026069754A1
