IMAGE PROCESSING APPARATUS, EDITING METHOD, AND PROGRAM
The image processing device enables efficient customization of image processing flows by allowing separate editing and execution of template and additional data through UI screen switching, addressing the challenge of time-consuming adjustments in existing technologies.
Patent Information
- Application Number
- JP2021036579
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-03-08
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2041-03-08
AI Technical Summary
Existing image processing devices for factory automation require time-consuming adjustments of common template data and additional programs to meet individual user requirements, as the basic program is not adaptable in existing technologies.
An image processing device with an execution unit, editing unit, and presentation unit that allows switching between UI screens to easily adjust image processing flows by combining template and additional data, enabling separate editing and execution of template and additional data to meet individual requirements.
Facilitates easy adjustment of image processing flows by allowing simultaneous checking of results and editing of template and additional data, reducing the time and effort required for customization.
Smart Images

Figure 0007571627000001 
Figure 0007571627000002 
Figure 0007571627000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an image processing device, an editing method, and a program. [Background technology]
[0002] International Publication No. 2011 / 108193 (Patent Document 1) discloses a program creation support device that creates an application program using a basic program management table and an individual requirement management table. The basic program management table manages a plurality of program sequences that constitute a basic program common to users. The individual requirement management table manages program sequences that realize individual requirements that can be defined for each user. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] International Publication No. 2011 / 108193 Summary of the Invention [Problem to be solved by the invention]
[0004] In the field of FA (Factory Automation), image processing devices for automatically inspecting inspection objects such as workpieces are widely used. An image processing flow for inspecting a workpiece is realized by combining various processing items. Therefore, the technology described in Patent Document 1 can be applied to the image processing device. That is, it is conceivable to create an image processing flow by combining template data that defines a common basic program that can be applied to various image processing flows and additional data that defines individual requirements.
[0005] The image processing flow is usually adjusted while checking the image processing results for the image obtained by imaging the workpiece. Depending on the image processing results, it may become necessary to adjust not only additional programs that realize individual requirements but also common template data. However, in the technology described in Patent Document 1, the basic program is common to all users, and therefore it is not expected that it will be adjusted. Therefore, it is time-consuming to adjust the template data.
[0006] The present disclosure has been made in consideration of the above problems, and its purpose is to provide an image processing device, an editing method, and a program that can easily adjust an image processing flow created using common template data and additional data that defines individual requirements. [Means for solving the problem]
[0007] According to an example of the present disclosure, an image processing device includes an execution unit that executes an image processing flow in response to an execution instruction, an editing unit that edits data that defines the image processing flow in response to an editing operation, and a presentation unit that presents a UI screen that supports the execution and editing of the image processing flow. The image processing flow includes a first image processing flow created by combining first template data and first additional data. The first template data indicates a second image processing flow including one or more processing items. The first additional data indicates a third image processing flow including one or more processing items. The first image processing flow is an image processing flow in which the third image processing flow is inserted at a first insertion position of the second image processing flow. The presentation unit is capable of accepting a first launch instruction for a second UI screen that supports the execution and editing of the second image processing flow in a state in which a first UI screen that supports the execution and editing of the first image processing flow is presented, and presents the second UI screen in response to the acceptance of the first launch instruction. The execution unit executes the first image processing flow in response to the execution instruction in a state in which the first UI screen is active. The execution unit executes the second image processing flow in response to the execution instruction when the second UI screen is active. The editing unit edits the first additional data in response to the editing operation when the first UI screen is active. The editing unit edits the first template data in response to the editing operation when the second UI screen is active.
[0008] According to this disclosure, the user performs editing operations on the first template data and the first additional data while checking the image processing results of the first image processing flow and the second image processing flow by switching the active state of the first UI screen and the second UI screen. As a result, the user can easily adjust the first image processing flow created using the common first template data and the first additional data that defines individual requirements.
[0009] In the above disclosure, the presentation unit presents an input screen for inputting authentication information in response to receiving a first launch instruction, and presents a second UI screen in response to successful authentication based on the input information into the input screen.
[0010] According to this disclosure, it is possible to prevent the first template data from being edited by an unauthorized person.
[0011] In the above disclosure, the second image processing flow is created by combining the second template data and the second additional data. The second template data indicates a fourth image processing flow including one or more processing items. The second additional data indicates a fifth image processing flow including one or more processing items. The second image processing flow is an image processing flow in which the fifth image processing flow is inserted at a second insertion position in the fourth image processing flow. The presentation unit is capable of receiving a second launch instruction for a third UI screen that supports execution and editing of the fourth image processing flow in a state in which the first UI screen is presented, and presents the third UI screen in response to the acceptance of the second launch instruction. The execution unit executes the fourth image processing flow in response to the execution instruction in a state in which the third UI screen is active. The editing unit edits the second additional data in response to an editing operation in a state in which the second UI screen is active. The editing unit edits the second template data in response to an editing operation in a state in which the third UI screen is active.
[0012] According to this disclosure, the user can use the third UI screen to edit the second template data, and can use the second UI screen to edit the second additional data to be combined with the second template data.
[0013] In the above disclosure, the image processing flow includes a sixth image processing flow created by combining the first template data and the third additional data. The third additional data indicates a seventh image processing flow including one or more processing items. The sixth image processing flow is an image processing flow in which the seventh image processing flow is inserted at a first insertion position in the second image processing flow. The presentation unit is capable of accepting a third launch instruction of a fourth UI screen that supports execution and editing of the sixth image processing flow while the first UI screen is being presented, and presents the fourth UI screen in response to the acceptance of the third launch instruction. The execution unit executes the sixth image processing flow in response to the execution instruction while the fourth UI screen is active. The editing unit edits the third additional data in response to an editing operation while the fourth UI screen is active.
[0014] According to this disclosure, the user can perform an editing operation on the first template data while also checking the image processing result of a sixth image processing flow that uses the first template data.
[0015] According to an example of the present disclosure, a method for editing an image processing flow in an image processing device includes a step of presenting a UI screen that supports the execution and editing of the image processing flow, a step of executing the image processing flow in response to an execution instruction, and a step of editing data that defines the image processing flow in response to an editing operation. The image processing flow includes a first image processing flow created by combining template data and additional data. The template data indicates a second image processing flow including one or more processing items. The additional data indicates a third image processing flow including one or more processing items. The first image processing flow is an image processing flow in which the third image processing flow is inserted at an insertion position in the second image processing flow. The presenting step includes a step of accepting a first launch instruction of a second UI screen that supports the execution and editing of the second image processing flow in a state in which a first UI screen that supports the execution and editing of the first image processing flow is presented, and a step of presenting the second UI screen in response to the acceptance of the first launch instruction. The executing step includes a step of executing a first image processing flow in response to an execution instruction when the first UI screen is active, and a step of executing a second image processing flow in response to an execution instruction when the second UI screen is active. The editing step includes a step of editing the additional data in response to an editing operation when the first UI screen is active, and a step of editing the template data in response to an editing operation when the second UI screen is active.
[0016] According to an example of the present disclosure, a program causes a computer to execute the above editing method. These disclosures also make it possible to easily adjust an image processing flow created using common template data and additional data that defines individual requirements. Effect of the Invention
[0017] According to the present disclosure, an image processing flow created using common template data and additional data defining individual requirements can be easily adjusted. [Brief description of the drawings]
[0018] [Figure 1] FIG. 1 is a diagram showing an example of a scene to which an image processing device according to an embodiment is applied; [Diagram 2] 1 is a schematic diagram showing an overall configuration of an image processing system including an image processing device according to an embodiment; [Diagram 3] FIG. 2 is a schematic diagram illustrating a hardware configuration of an image processing device. [Figure 4] FIG. 13 is a diagram showing an example of a method for creating an image processing flow by combining template data and additional data. [Diagram 5] FIG. 13 is a diagram illustrating an example of a UI screen presented by the image processing apparatus. [Figure 6] 7A to 7C are diagrams illustrating an example of a method for creating template data according to the embodiment. [Figure 7] FIG. 13 is a diagram showing an example of a window for setting parameter values. [Figure 8] FIG. 4 is a diagram showing an example of template data according to the embodiment; [Figure 9] FIG. 11 is a diagram showing an example of a method for creating additional data according to the embodiment. [Figure 10] FIG. 11 is a diagram showing an example of additional data according to the embodiment. [Figure 11] FIG. 13 is a diagram showing an example of data defining an image processing flow executed based on template data and additional data. [Figure 12] FIG. 13 is a diagram showing an example of an image processing flow for types A and B. [Figure 13] 13A and 13B are diagrams illustrating an example of a UI screen that supports execution and editing of an image processing flow including a common flow and an additional flow. [Figure 14] FIG. 13 is a diagram showing an example of a window for editing parameters. [Figure 15] FIG. 13 is a diagram showing an example of a screen transition when a button 27 is clicked. [Figure 16] FIG. 13 is a diagram showing an example of an input screen for inputting authentication information. [Figure 17]FIG. 13 is a diagram illustrating an example of a UI screen that supports execution and editing of a common flow. [Figure 18] FIG. 13 is a diagram showing an example of a UI screen showing the result of image processing by executing the common flow. [Figure 19] FIG. 13 is a diagram showing another example of a UI screen showing the result of image processing by executing the common flow. [Figure 20] FIG. 13 is a diagram showing an example of a window for editing parameters of a process item “correct position deviation.” [Figure 21] FIG. 11 is a diagram showing an example of a UI screen presented in an image processing device according to Modification 2. [Figure 22] FIG. 13 is a diagram showing an example of a UI screen presented in an image processing device according to Modification 3. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0019] The embodiments of the present invention will be described in detail with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference characters and the description thereof will not be repeated. The modifications described below may be combined as appropriate.
[0020] §1 Examples of application An overview of an image processing device according to the present embodiment will be described. Fig. 1 is a diagram showing an example of a scene in which an image processing device according to the present embodiment is applied. As shown in Fig. 1, an image processing device 100 is connected to a display 200 and a keyboard 300.
[0021] 1, the image processing device 100 includes an execution unit 11, an editing unit 12, and a presentation unit 13. The execution unit 11 executes an image processing flow in response to an execution instruction. The editing unit 12 edits data defining the image processing flow in response to an editing operation. The presentation unit 13 presents, on a display 200, a user interface screen (hereinafter referred to as a "UI screen") that supports the execution and editing of the image processing flow.
[0022] The editing unit 12 has a function of creating an image processing flow by combining template data that can be applied to a plurality of image processing flows with additional data that defines individual requirements.
[0023] The template data indicates an image processing flow (hereinafter referred to as a "common flow") including one or more processing items. The additional data indicates an image processing flow (hereinafter referred to as an "additional flow") including one or more processing items. By combining the template data and the additional data, the editing unit 12 creates an image processing flow in which the additional flow is inserted at the insertion position in the common flow. The insertion position in the common flow is predetermined by the template data.
[0024] The user adjusts the image processing flow created by combining the template data and the additional data while checking the image processing result. Depending on the image processing result, there are cases where the template data and the additional data need to be adjusted. Therefore, the image processing device 100 according to the present embodiment presents a UI screen that makes it easy to edit the template data and the additional data while checking the image processing result.
[0025] As shown in FIG. 1, the presentation unit 13 presents on a display 200 a UI screen 20 that supports the execution and editing of an image processing flow 30 created by combining template data and additional data.
[0026] The image processing flow 30 is created by combining a common flow 31 indicated by the template data and an additional flow 33 indicated by the additional data. In the example shown in Fig. 1, the common flow 31 is a flow in which process items "A" to "C" are executed in this order. The additional flow 33 is a flow in which process items "D" and "E" are executed in this order.
[0027] The additional flow 33 is inserted into the common flow 31 at the insertion position 32 indicated by the template data. In the example shown in Fig. 1, the additional flow 33 is inserted into the common flow 31 at the insertion position 32 between process item "B" and process item "C".
[0028] The UI screen 20 includes a button 21 for executing image processing according to an image processing flow 30 on image data to be processed (hereinafter simply referred to as "image"). In other words, the button 21 is a button for instructing the execution of the image processing flow 30. In response to clicking of the button 21 while the UI screen 20 is active, the execution unit 11 executes image processing according to the image processing flow 30 on the image to be processed, and displays the image processing result on the display 200. Note that the image to be processed may be acquired by imaging with a camera (not shown), or may be read from a storage unit of the image processing device 100.
[0029] The editing unit 12 accepts editing operations on the image processing flow 30 while the UI screen 20 is active. However, the common flow 31 defined by the template data may also be applied to other image processing flows. Therefore, the editing unit 12 does not accept editing operations on the UI screen 20 on one or more process items included in the common flow 31, the execution order of the one or more process items, and the insertion position 32 in the common flow 31, which are indicated by the template data. In other words, the editing unit 12 accepts editing operations on the additional data to be combined with the template data. For example, the editing unit 12 accepts editing operations such as changing, deleting, and adding process items that constitute the additional flow 33.
[0030] The UI screen 20 includes a button 22 for reflecting the edited content in the image processing flow 30. When the button 22 is clicked while the UI screen 20 is active, the editing unit 12 saves the edited additional data.
[0031] In this way, the user can check the image processing result by clicking the button 21 on the UI screen 20 and edit the additional data according to the image processing result. However, the user cannot edit the template data on the UI screen 20. As described above, depending on the image processing result, there are cases where the template data needs to be adjusted. Therefore, while the UI screen 20 is being presented on the display 200, the presentation unit 13 can accept an instruction to launch a UI screen 40 that supports the execution and editing of the common flow 31. In response to the acceptance of the launch instruction, the presentation unit 13 presents the UI screen 40 on the display 200.
[0032] The UI screen 40 includes a button 41 for executing image processing according to the common flow 31 on the image to be processed. That is, the button 41 is a button for instructing execution of the common flow 31. In response to clicking of the button 41 while the UI screen 40 is active, the execution unit 11 executes image processing according to the common flow 31 on the image to be processed, and displays the image processing result on the display 200. Note that the image to be processed may be acquired by imaging with a camera (not shown), or may be read out from a storage unit of the image processing device 100.
[0033] When the UI screen 40 is active, the editing unit 12 accepts editing operations on the common flow 31. That is, the editing unit 12 accepts editing operations on the template data. For example, the editing unit 12 accepts editing operations such as changing, deleting, and adding process items that constitute the common flow 31.
[0034] The UI screen 40 includes a button 42 for reflecting the edited content in the common flow 31. When the button 42 is clicked while the UI screen 40 is active, the editing unit 12 saves the edited template data.
[0035] In this way, in a state where the UI screen 20 is active, the execution unit 11 executes the image processing flow 30 in response to an instruction to execute image processing. In a state where the UI screen 40 is active, the execution unit 11 executes the common flow 31 in response to an instruction to execute image processing. Further, in a state where the UI screen 20 is active, the editing unit 12 edits additional data in response to an editing operation. In a state where the UI screen 40 is active, the editing unit 12 edits template data in response to an editing operation. As a result, the user can switch between the UI screens 20 and 40 and click the buttons 21 and 41 to edit the template data and the additional data while checking the image processing results of the image processing flow 30 and the common flow 31. As a result, the user can easily adjust the image processing flow 30 created using the common template data and the additional data that defines individual requirements.
[0036] §2 Specific Example <A. Overall Configuration of Image Processing System> FIG. 2 is a schematic diagram showing the overall configuration of an image processing system including the image processing apparatus according to the present embodiment. As shown in FIG. 1, the image processing system 1 includes, as main components, an image processing apparatus 100 also referred to as a vision sensor, an imaging unit 8 connected to the image processing apparatus 100, and a PLC (Programmable Logic Controller) 5 capable of communicating with the image processing apparatus 100. As an example, an image processing apparatus 100 integrally configured with a display 200 is shown.
[0037] The image processing apparatus 100 is incorporated in a production line and executes image processing such as inspection of the presence or absence of defects and dirt on an inspection object (hereinafter referred to as "work W"), measurement of the size and arrangement orientation of the work W, and recognition of characters and figures on the surface of the work W. That is, the image processing apparatus 100 executes image processing on an image generated by imaging the work W. The work W is conveyed by a conveyance mechanism 6 such as a belt conveyor and sequentially imaged by the imaging unit 8. The PLC 5 executes control of the conveyance mechanism 6 and the like in cooperation with the image processing apparatus 100.
[0038] For example, a PLC5, other personal computer, or server device transmits a trigger signal indicating the start of execution of an image processing flow to the image processing apparatus 100. In response to the input of the trigger signal, the image processing apparatus 100 executes the image processing flow and outputs a signal indicating the results of inspection, measurement, recognition, etc. of the work W to the PLC5.
[0039] The imaging unit 8 includes, as an example, an imaging device partitioned into a plurality of pixels, such as a CCD (Coupled Charged Device) or CMOS (Complementary Metal Oxide Semiconductor) sensor, in addition to an optical system such as a lens. Image data (hereinafter referred to as "camera image") acquired by imaging by the imaging unit 8 is transmitted to the image processing apparatus 100. Then, the image processing apparatus 100 performs image processing on the camera image captured by the imaging unit 8. An illumination device for irradiating light on the work W imaged by the imaging unit 8 may be further provided.
[0040] When inspecting a plurality of types of work W, the image processing apparatus 100 changes the image processing flow for each type. Therefore, the user sets the image processing flow for each type. However, a plurality of image processing flows respectively corresponding to a plurality of similar types usually include a common flow (common flow). Therefore, the image processing apparatus 100 has a function of creating an image processing flow for each type by combining the common flow and an individual flow (additional flow) set for each type. Thereby, when the common flow has been created, the user can cause the image processing apparatus 100 to execute an image processing flow for inspecting the type by setting an additional flow corresponding to the type.
[0041] <B. Hardware Configuration of Image Processing Apparatus> Fig. 3 is a schematic diagram showing the hardware configuration of the image processing device. As shown in Fig. 3, the image processing device 100 typically has a structure conforming to a general-purpose computer architecture, and realizes various processes as described below by a processor executing a program installed in advance.
[0042] More specifically, the image processing device 100 includes a processor 110 such as a CPU (Central Processing Unit) or MPU (Micro-Processing Unit), a RAM (Random Access Memory) 112, a display controller 114, a system controller 116, an I / O (Input Output) controller 118, a hard disk 120, a camera interface 122, an input interface 124, a PLC interface 126, a communication interface 128, and a memory card interface 130. These components are connected to each other with the system controller 116 at the center so as to be able to communicate data with each other.
[0043] The processor 110 exchanges programs (codes) with the system controller 116 and executes these in a predetermined order to realize the desired computational processing.
[0044] The system controller 116 is connected to the processor 110, RAM 112, display controller 114, and I / O controller 118 via respective buses, and controls the overall processing of the image processing device 100 while exchanging data with each of the components.
[0045] RAM 112 is typically a volatile storage device such as a DRAM (Dynamic Random Access Memory), and stores programs read from hard disk 120, images (image data) acquired by imaging unit 8, processing results for the images, work data, etc.
[0046] The display controller 114 is connected to the display 200, and outputs signals for displaying various types of information to the display 200 in accordance with internal commands from the system controller 116. The display 200 includes, for example, a liquid crystal display, an organic EL (Electro Luminescence) display, an organic EL, or the like.
[0047] The I / O controller 118 controls data exchange with a recording medium and an external device connected to the image processing device 100. More specifically, the I / O controller 118 is connected to a hard disk 120, a camera interface 122, an input interface 124, a PLC interface 126, a communication interface 128, and a memory card interface 130.
[0048] The hard disk 120 is typically a non-volatile magnetic storage device, and in addition to the control program 150 executed by the processor 110, one or more template data 160 and one or more individual data 172 are stored therein. The control program 150 installed on the hard disk 120 is distributed in a state stored in the memory card 106 or the like. Furthermore, images are stored in the hard disk 120. Instead of the hard disk 120, a semiconductor storage device such as a flash memory or an optical storage device such as a DVD-RAM (Digital Versatile Disk Random Access Memory) may be used.
[0049] The individual data 172 includes a template ID 174 that identifies the template data 160 , and additional data 170 to be combined with the template data 160 .
[0050] When the processor 110 executes the control program 150, the execution unit 11, the editing unit 12, and the presentation unit 13 shown in FIG. 1 are realized.
[0051] The camera interface 122 corresponds to an input unit that accepts image data generated by capturing an image of the workpiece W (inspection target), and mediates data transmission between the processor 110 and the imaging unit 8. More specifically, the camera interface 122 can be connected to one or more imaging units 8, and an imaging instruction is output from the processor 110 to the imaging unit 8 via the camera interface 122. As a result, the imaging unit 8 captures an image of the subject, and outputs the generated image to the processor 110 via the camera interface 122.
[0052] The input interface 124 mediates data transmission between the processor 110 and input devices such as the keyboard 300, a mouse, a touch panel, a dedicated console, etc. In other words, the input interface 124 accepts operation commands given by a user operating the input device.
[0053] The PLC interface 126 mediates data transmission between the processor 110 and the PLC 5. More specifically, the PLC interface 126 transmits to the processor 110 information related to the state of the production line controlled by the PLC 5, information related to the workpiece W, and the like.
[0054] The communication interface 128 mediates data transmission between the processor 110 and another personal computer or server device (not shown). The communication interface 128 is typically configured with Ethernet (registered trademark) or USB (Universal Serial Bus). As will be described later, instead of installing a program stored in the memory card 106 in the image processing device 100, a program downloaded from a distribution server or the like may be installed in the image processing device 100 via the communication interface 128.
[0055] The memory card interface 130 mediates data transmission between the processor 110 and the memory card 106, which is a recording medium. That is, the memory card 106 is distributed in a state in which a control program 150 executed by the image processing device 100 and the like are stored, and the memory card interface 130 reads out the control program 150 from the memory card 106. In addition, in response to an internal command from the processor 110, the memory card interface 130 writes the camera image acquired by the imaging unit 8 and / or the processing results in the image processing device 100, and the like, to the memory card 106. The memory card 106 is formed of a general-purpose semiconductor storage device such as an SD (Secure Digital), a magnetic recording medium such as a flexible disk, an optical recording medium such as a CD-ROM (Compact Disk Read Only Memory), and the like.
[0056] When using a computer having a structure conforming to the above-mentioned general-purpose computer architecture, an OS (Operating System) for providing basic computer functions may be installed in addition to an application for providing functions according to the present embodiment. In this case, the program according to the present embodiment may execute processing by calling necessary modules among program modules provided as part of the OS in a predetermined order and / or timing. That is, the program according to the present embodiment itself may not include the above-mentioned modules, and may execute processing in cooperation with the OS.
[0057] Furthermore, the control program 150 according to the present embodiment may be provided by being incorporated into a part of another program. In this case, the program itself does not include the modules included in the other programs to be combined as described above, and the processing is executed in cooperation with the other programs. That is, the control program 150 according to the present embodiment may be in a form incorporated into such other programs.
[0058] Alternatively, some or all of the functions provided by the execution of the control program 150 may be implemented as dedicated hardware circuits.
[0059] <C. Method for Creating Image Processing Flow by Combining Template Data and Additional Data> FIG. 4 is a diagram showing an example of a method for creating an image processing flow by combining template data and additional data.
[0060] The processor 110 operating as the editing unit 12 acquires template data 160 for defining the common flow 31. The template data 160 indicates one or more processing items 50 and the execution order of the one or more processing items 50. The common flow 31 is a flow in which the one or more processing items 50 are arranged according to the execution order. The template data 160 illustrated in FIG. 4 defines a common flow 31 in which the processing items 50a to 50e are arranged in this order.
[0061] The template data 160 further indicates an insertion position 32 where insertion of a new processing item is permitted in the common flow 31. The template data 160 illustrated in FIG. 4 indicates the position between the processing item 50c and the processing item 50d as the insertion position 32.
[0062] The template data 160 is created in advance by, for example, a system engineer (SE), a system integrator (also referred to as "SIer"), a vendor, or the like.
[0063] The processor 110 creates additional data 170 for defining an additional flow 33 to be inserted at the insertion position 32 of the common flow 31. The additional data 170 is created according to the input of, for example, a vendor, an administrator of the production line, a worker of the production line, or the like. As shown in FIG. 4, the processor 110 creates additional data 170A for defining an additional flow 33A corresponding to product type A and additional data 170B for defining an additional flow 33B corresponding to product type B.
[0064] Each of the additional data 170A, 170B indicates one or more process items 52 and an execution order of the one or more process items 52. The additional flow 33 is a flow in which the one or more process items 52 are arranged according to the execution order. The additional data 170A illustrated in Fig. 4 defines the additional flow 33A in which the process items 52a, 52b are arranged in this order. The additional data 170B illustrated in Fig. 4 defines the additional flow 33B in which the process items 52c, 52d are arranged in this order.
[0065] Processor 110 creates, as individual data 172 corresponding to type A, data including additional data 170A and template ID 174 for identifying template data 160. Similarly, processor 110 creates, as individual data 172 corresponding to type B, data including additional data 170B and template ID 174 for identifying template data 160. Processor 110 saves the created individual data 172 on hard disk 120.
[0066] The processor 110 operating as the execution unit 11 executes the image processing flow 30 created by combining the template data 160 and the additional data 170. Specifically, when inspecting a workpiece W of type A, the processor 110 executes the image processing flow 30A in which an additional flow 33A defined by the additional data 170A is inserted into the insertion position 32 of the common flow 31 defined by the template data 160. When inspecting a workpiece W of type B, the processor 110 executes the image processing flow 30B in which an additional flow 33B defined by the additional data 170B is inserted into the insertion position 32 of the common flow 31 defined by the template data 160.
[0067] When the template data 160 has been created, an image processing flow for inspecting the work W of the variety is executed simply by creating additional data 170 for defining an additional flow 33 corresponding to the variety. That is, there is no need to create an image processing flow from scratch including the common flow 31, and the labor required for creating the image processing flow is reduced.
[0068] <D. UI Screen When Creating Template Data and Additional Data> The image processing apparatus 100 presents a UI screen that accepts selection of any processing item from among a plurality of predefined processing items. The user can create the template data 160 and the additional data 170 by selecting and arranging any processing item on the UI screen. Note that the processing item in this specification is a functional unit having a specific use and is also referred to as a "unit". For each processing item, it is possible to specify the processing target and the processing result.
[0069] Note that the users who operate the UI screen include SE, SIer, vendor, production line manager, production line worker, etc. Depending on the design stage of the image processing program, the users who operate the UI screen are different. For example, in the initial stage of designing the image processing flow, SE, SIer, vendor, etc. operate the UI screen to create the template data 160. In the final stage of designing the image processing flow, vendor, manager, worker, etc. operate the UI screen to create the additional data 170.
[0070] FIG. 5 is a diagram showing an example of the UI screen presented by the image processing apparatus. FIG. 5 shows a UI screen 60 displayed in the design of the image processing flow.
[0071] The UI screen 60 includes a work area 61, an object selection area 62, an image display area 63, an insert / add button 64, and a reorder button 65.
[0072] In the object selection area 62, a plurality of objects are listed. The plurality of objects includes objects 400 corresponding to each of a plurality of pre-prepared processing items. The plurality of processing items includes, for example, a processing item that defines an acquisition process for acquiring an image from an imaging unit 8 (see FIG. 1) that can be connected to the image processing apparatus 100, a processing item that defines a search process for an area representing an inspection object in the image, a processing item that defines a process of labeling pixels of a specified color in the image, and the like. The object 400 is used for creating an image processing flow. In FIG. 5, only the object corresponding to "labeling" is given the reference numeral "400", but the objects corresponding to other processing items (for example, "search",..., "circular angle acquisition") are also "object 400".
[0073] Furthermore, in the object selection area 62, an object 402 different from the object 400 is displayed. The object 402 is used for setting an insertion position.
[0074] The user selects desired objects 400 and 402 in the object selection area 62 ((1) select a processing item), and selects the position (order) where the selected object should be added in the work area 61 (addition position). Then, when the user selects the insert / add button 64 ((3) press the insert / add button), the selected object is added to the work area 61 ((4) the object is added). Also, the user can appropriately change the arrangement order of the objects by selecting the order change button 65 after selecting an object in the work area 61.
[0075] The user appropriately repeats this process to set the template data 160 and the additional data 170 for realizing the target image processing flow.
[0076] <E. Method for Creating Template Data> FIG. 6 is a diagram showing an example of a method for creating template data according to an embodiment. As shown in step S1, in the initial state, no object is arranged in the working area 61. Alternatively, in the initial state, an object 400 corresponding to a commonly used process item "camera image input" may be arranged. In this state, the user selects an object 400 displayed in the object selection area 62 (see FIG. 5), whereby one or more objects 400 are added to the working area 61 as shown in step S2. The user selects an object 400 corresponding to a process item constituting the common flow 31. The user also arranges the one or more objects 400 so that the arrangement order of the selected one or more objects 400 matches the execution order of the one or more process items corresponding to the one or more objects 400. In the working area 61 exemplified in FIG. 6, the objects 400a to 400e are arranged in this order along the vertical direction. In the following, when the objects 400a to 400e are not particularly distinguished from each other, each of the objects 400a to 400e is simply referred to as "object 400".
[0077] Furthermore, when the user selects an object 402 displayed in the object selection area 62, one or more objects 402 are added to the working area 61 as shown in step S3. The user places the object 402 in a position that allows the insertion of a new action item. In the working area 61 illustrated in Fig. 6, the object 402 is placed between the objects 400c and 400d. When the object 402 is placed, the object 403 is automatically placed immediately below the object 402.
[0078] Among the multiple process items prepared in advance, there is a process item that is executed using one or more preset parameter values. For such a process item, the user needs to set the one or more parameter values in advance. Therefore, when an object 400 arranged in the working area 61 is selected, the processor 110 displays a window for setting the parameter values required for executing the process item corresponding to the selected object 400.
[0079] FIG. 7 is a diagram showing an example of a window for setting parameter values. The type of parameter is determined in advance according to the processing item. FIG. 7 shows a window 500 corresponding to the object 400a arranged in the working area 61 shown in FIG. 6. The window 500 shown in FIG. 7 includes an input field 502 for setting the values of the parameters "ShutterSpeed" and "Gain", and an input field 504 for setting whether the values can be changed. The user inputs the parameter value in the input field 502, and inputs whether the values can be changed in the input field 504.
[0080] The processor 110 creates template data 160 in accordance with the objects 400 , 402 , 403 arranged in the working area 61 and their arrangement order, and with input into the window 500 corresponding to each object 400 arranged in the working area 61 .
[0081] Fig. 8 is a diagram showing an example of template data 160 according to an embodiment. Fig. 8 shows template data 160 created based on objects 400a-400e, 402, and 403 arranged in working area 61 shown in Fig. 7. Template data 160 shown in Fig. 8 has a table format. However, template data 160 is not limited to the table format.
[0082] As shown in FIG. 8, the template data 160 includes records 14 corresponding to each of the objects 400, 402, and 403 arranged in the working area 61. Hereinafter, the record 14 corresponding to the object 400 is referred to as "record 14_0", the record 14 corresponding to the object 402 is referred to as "record 14_2", and the record 14 corresponding to the object 403 is referred to as "record 14_3". The object 400 arranged in the working area 61 indicates the process item 50 included in the common flow 31. Therefore, the record 14_0 indicates information related to the process item 50. The object 402 arranged in the working area 61 indicates the start point of the insertion position 32 of the common flow 31. Therefore, the record 14_2 indicates information related to the start point of the insertion position 32. The object 403 arranged in the working area 61 indicates the end point of the insertion position 32 of the common flow 31. Therefore, the record 14_3 indicates information related to the end point of the insertion position 32.
[0083] Each record 14 includes a unit number 160a, a unit identification name 160b, a unit ID 160c, a parameter identification name 160d, a setting value 160e, and changeability 160f.
[0084] In the unit identification name 160b of the record 14_0, the name of the process item 50 corresponding to the object 400 is set. In the unit ID 160c of the record 14_0, an ID that identifies the process item 50 corresponding to the object 400 is set.
[0085] When a plurality of identical objects 400, 402 are arranged in the working area 61, the processor 110 may change the unit identifier 160b according to a user input in order to distinguish between the plurality of identical objects.
[0086] In the unit identification names 160b of the records 14_2 and 14_3, the names of the objects 402 and 403 are set, respectively. In the unit IDs 160c of the records 14_2 and 14_3, the IDs corresponding to the objects 402 and 403 are set, respectively.
[0087] When a plurality of identical objects 400, 402 are arranged in the working area 61, the processor 110 assigns a branch number to the ID corresponding to the object in order to distinguish between the plurality of identical objects, and sets the ID with the branch number assigned to the unit ID 160c. Alternatively, the processor 110 may assign different IDs to the plurality of identical objects in order to distinguish between the plurality of identical objects.
[0088] The unit number 160a of each record 14 is set to the arrangement order of the objects 400, 402, 403 in the working area 61. The unit number 160a of record 14_0 indicates the execution order of the process item indicated by the corresponding unit identification name 160b. The unit number 160a of record 14_2 indicates the start point of the insertion position 32 where insertion of a new process item is permitted. The unit number 160a of record 14_3 indicates the end point of the insertion position 32.
[0089] The parameter identification name 160d of record 14_0 is set to the name of a parameter required for executing process item 50 corresponding to object 400. If there are multiple parameters required for executing process item 50, the parameter identification name 160d is set to the name of each of the multiple parameters.
[0090] The setting value 160e of record 14_0 is set to a value (hereinafter referred to as a "default value") input in the input field 502 of the window 500 (see FIG. 7) corresponding to the object 400. The changeability 160f of record 14_0 is set to a value input in the input field 504 of the window 500 (see FIG. 7) corresponding to the object.
[0091] The parameter identification name 160d, the setting value 160e, and the changeability 160f of the records 14_2 and 14_3 are blank.
[0092] The processor 110 stores the created template data 160 in the hard disk 120 .
[0093] <F. Method for Creating Additional Data> FIG. 9 is a diagram showing an example of a method for creating additional data according to an embodiment. As shown in step S11, the processor 110 reads the specified template data 160 from the hard disk 120 and displays the common flow 31 indicated by the read template data 160 in the work area 61. In the work area 61, one or more objects 400 corresponding to each of one or more processing items 50 indicated by the template data 160 are arranged in the execution order. Further, objects 402 and 403 are continuously arranged at the insertion position 32 indicated by the template data 160. In the work area 61 illustrated in FIG. 9, objects 400a to 400e are arranged in this order, and objects 402 and 403 are continuously arranged between object 400c and object 400d.
[0094] The processor 110 makes only the position between the consecutive objects 402 and 403 selectable in the work area 61. In order to make the user recognize the selectable position, the display format of the consecutive objects 402 and 403 is made different from the display format of the other objects. In the work area 61 illustrated in FIG. 9, the objects other than the consecutive objects 402 and 403 are hatched.
[0095] In a state where the common flow 31 is displayed in the work area 61, the user selects the position between the consecutive objects 402 and 403 and selects the object 400 displayed in the object selection area 62 (see FIG. 5). The user selects the object 400 corresponding to the desired processing item constituting the additional flow 33. As a result, as shown in step S12, one or more objects 400 are inserted between object 402 and object 403. In the work area 61 illustrated in FIG. 9, objects 400f and 400g are inserted in this order between object 402 and object 403.
[0096] Next, as shown in step S13, parameter values are set that are required for executing the process item that corresponds to the inserted object 400. The parameter values are set using a window 500 that corresponds to the process item as shown in FIG.
[0097] Next, values of changeable parameters among one or more parameters necessary for executing one or more process items 50 indicated by template data 160 are set. As shown in step S14, processor 110 displays window 510 for setting the values of the changeable parameters. Window 510 includes input fields 512 for setting the values of the changeable parameters. The user inputs the parameter values in input fields 512.
[0098] Processor 110 creates additional data 170 according to object 400 inserted between object 402 and object 403, the order of arrangement of object 400, and input to windows 500, 510. Additional data 170 indicates one or more process items 52 (see FIG. 4) and the order of execution of the one or more process items 52. Furthermore, additional data 170 indicates values of parameters required for execution of the one or more process items 52. In addition, additional data 170 indicates values of parameters set to be changeable (hereinafter referred to as "individual parameters"), among one or more parameters required for execution of one or more process items 50 (see FIG. 4) constituting common flow 31.
[0099] Processor 110 sets the process items corresponding to each of objects 400 inserted between object 402 and object 403 in working area 61 as process items 52 to be added (see FIG. 4). Processor 110 sets the execution order of one or more process items 52 to be added based on the arrangement order of one or more objects 400 inserted between object 402 and object 403. Furthermore, processor 110 sets parameter values required for execution of process items 52 in accordance with an input to window 500. Processor 110 sets individual parameter values of one or more parameters required for execution of one or more process items 50 (see FIG. 4) constituting common flow 31 in accordance with an input to window 510.
[0100] Fig. 10 is a diagram showing an example of additional data 170 according to an embodiment. Fig. 10 shows additional data 170 created based on objects 400f, 400g in working area 61 shown in Fig. 9 and input to windows 500, 510. Additional data 170 shown in Fig. 10 is expressed in a table format. However, additional data 170 is not limited to a table format.
[0101] As shown in FIG. 10, the additional data 170 includes partial data 15 related to the common flow 31 and partial data 16 related to the additional flow 33 .
[0102] The partial data 15 includes a record 17_0 corresponding to each individual parameter. The record 17_0 includes a data type 170a, a unit identification name 170c, a unit ID 170d, a parameter identification name 170e, and a setting value 170f. The unit identification name 170c and the unit ID 170d of the record 17_0 are set with the name and ID of a specified processing item to be executed using the individual parameter, respectively. The parameter identification name 170e of the record 17_0 is set with the name of the individual parameter. The setting value 170f of the record 17_0 is set with the value input in the input field 512 of the window 510 (see FIG. 8).
[0103] The partial data 16 includes a record 17_1 and one or more records 17_2. The record 17_1 corresponds to an object 402 indicating the start point of the insertion position 32 into which the object 400 was inserted in step S12 (see FIG. 9). The one or more records 17_2 correspond to the one or more objects 400 inserted in step S12, respectively.
[0104] The record 17_1 includes a data type 170a indicating "addition," a unit identification name 170c, and a unit ID 170d. The name and ID of the object 402 indicating the start point of the insertion position 32 are set in the unit identification name 170c and the unit ID 170d of the record 17_1, respectively.
[0105] The record 17_2 includes a unit number 170b, a unit identification name 170c, a unit ID 170d, a parameter identification name 170e, a setting value 170f, and changeability 170g.
[0106] The unit identification name 170c and unit ID 170d of record 17_2 are set with the name and ID of process item 52 corresponding to object 400. The unit number 170b of record 17_2 is set with the arrangement order of object 400 between object 402 and object 403. The unit number 170b of record 17_2 indicates the execution order of process item 52 identified by the corresponding unit identification name 170c and unit ID 170d.
[0107] The name of a parameter required for executing the process item 52 corresponding to the object 400 is set in the parameter identification name 170e of the record 17_2. The value entered in the input field 502 of the window 500 (see FIG. 7) corresponding to the object 400 is set in the setting value 170f of the record 17_2. The changeability 170g of the record 17_2 is set to the value entered in the input field 504 of the window 500 corresponding to the object 400.
[0108] The processor 110 creates individual data 172 including the created additional data 170 and a template ID 174 that identifies the specified template data 160, and stores the created individual data 172 in the hard disk 120.
[0109] <Execution of Image Processing Flow Based on Template Data and Additional Data> Next, a method for executing the image processing flow 30 based on the template data 160 and the additional data 170 will be described.
[0110] The processor 110 reads the specified individual data 172. Further, the processor 110 reads the template data 160 identified by the template ID of the read individual data 172 from the hard disk 120. The processor 110 executes an image processing flow 30 in which an additional flow 33 indicated by the additional data 170 is combined with a common flow 31 indicated by the template data 160 based on the read template data 160 and the additional data 170 included in the individual data 172. Specifically, the processor 110 executes an image processing flow 30 in which the additional flow 33 is inserted at an insertion position 32 in the common flow 31.
[0111] FIG. 11 is a diagram showing an example of data that defines an image processing flow executed based on template data and additional data. FIG. 11 shows data that defines an image processing flow 30 executed based on the template data 160 illustrated in FIG. 8 and the additional data 170 illustrated in FIG. 10.
[0112] The processor 110 identifies a record 14_2 having a unit identification name 160b and a unit ID 160c that match the unit identification name 170c and the unit ID 170d of the record 17_1 included in the partial data 16 of the additional data 170 from the template data 160. The processor 110 inserts the record 14_2 included in the partial data 16 of the additional data 170 between the identified record 14_2 and the record 14_3 immediately below it in the template data 160 in the order of the unit number 170b.
[0113] Furthermore, the processor 110 identifies a parameter identification name 160d and a set value 160e corresponding to a changeability 160f indicating "changeable" in the template data 160. The processor 110 extracts a record 17_0 including the same parameter identification name 170e as the identified parameter identification name 160d from the partial data 16 of the additional data 170. The processor 110 changes the set value 160e (default value) identified in the template data 160 to the set value 170f of the record 17_0 extracted from the additional data 170. In this way, the processor 110 uses the value indicated by the additional data 170 instead of the default value indicated by the template data 160 for individual parameters.
[0114] In this way, the processor 110 creates data as shown in FIG. 11 and executes the image processing flow 30 according to the created data.
[0115] <H. Request for adjustment of template data> As shown in FIGS. 8 and 11, the value (default value) of the parameter (e.g., "Gain" of the processing item "Camera Image Input") indicated by the template data 160 is changed by the additional data 170. Therefore, by adjusting the additional data 170, the value of the parameter of the common flow 31 can be changed. However, in another image processing flow 30 that uses the same common flow 31, there may be a desire to change the value of the parameter in the same way. For example, when it becomes necessary to change the conditions at the time of imaging the work W due to a change in the production line environment, it is preferable to adjust the set value 160e (see FIG. 8) of the template data 160 rather than adjusting each additional data 170. Thus, there may be a desire to adjust the template data 160 instead of the additional data 170.
[0116] <I. Problems when editing template data in a UI screen that supports execution and editing of an image processing flow created using template data> In a UI screen for supporting execution and editing of the image processing flow 30 created by combining the template data 160 and the additional data 170, it is conceivable to enable an editing operation of the template data 160 to be accepted. However, when editing the template data 160, it is necessary to confirm the influence on another image processing flow 30 that uses the template data 160.
[0117] A case where the image processing flow 30 corresponding to the work W of type A and the image processing flow 30 corresponding to the work W of type B are created using the same template data 160 will be described.
[0118] When editing template data 160 on a UI screen that supports the execution and editing of an image processing flow 30 corresponding to type A, it becomes necessary to check the image processing results of the common flow 31 after editing for an image of type B. In this case, it is conceivable to check the image processing results of the common flow 31 for the image of type B by executing the image processing flow 30 corresponding to type A for the image of type B. However, depending on the image processing flow 30 corresponding to type A, the common flow 31 may not be executed for the image of type B.
[0119] 12 is a diagram showing an example of image processing flows for types A and B. An image processing flow 30A for inspecting a workpiece W of type A is created by combining template data 160 and additional data 170A. An image processing flow 30B for inspecting a workpiece W of type B is created by combining template data 160 and additional data 170B.
[0120] The template data 160 shown in FIG. 12 shows a common flow 31 in which the process items “image input”, “first inspection”, and “second inspection” are executed in that order, and shows an insertion position 32 between the process item “image input” and the process item “first inspection”.
[0121] 12 include a process item "branch." The process item "branch" included in the added flow 33A moves to the next process item only when the characteristics of the workpiece W of type A are detected, and ends image processing when the characteristics of the workpiece W of type A are not detected. The process item "branch" included in the added flow 33B moves to the next process item only when the characteristics of the workpiece W of type B are detected, and ends image processing when the characteristics of the workpiece W of type A are not detected.
[0122] The image processing flow 30A is created by inserting an additional flow 33A at the insertion position 32 of the common flow 31. Therefore, when an image showing the work W of variety B is input to the image processing flow 30A, the processing ends at the processing item "branch". That is, the processing items "first inspection" and "second inspection" are not performed on the image of variety B.
[0123] Similarly, the image processing flow 30B is created by inserting an additional flow 33B at the insertion position 32 of the common flow 31. Therefore, when an image showing the work W of variety A is input to the image processing flow 30B, the processing ends at the processing item "branch". That is, the processing items "first inspection" and "second inspection" are not performed on the image of variety A.
[0124] Therefore, when editing the template data 160 on the UI screen that supports the execution and editing of the image processing flow 30A corresponding to variety A, there arises a problem that the image processing result of the common flow 31 for the image showing the work W of variety B cannot be confirmed.
[0125] In order to solve the above problem, it is conceivable to redesign the image processing flow 30A corresponding to variety A so that the image processing result of the common flow 31 for the image showing the work W of variety B can be confirmed. That is, the image processing flow 30A is redesigned so that all the processing items of the common flow 31 are executed on the image showing the work W of variety B. However, such a design change is time-consuming.
[0126] <J. Specific Example of Adjustment Method for Template Data and Additional Data> In order to solve the above problems, the image processing apparatus 100 according to the present embodiment presents a UI screen that supports the adjustment of the template data 160 and the additional data 170. With reference to FIGS. 13 to 20, a specific example of the adjustment method for the template data 160 and the additional data 170 will be described.
[0127] FIG. 13 is a diagram showing an example of a UI screen that supports the execution and editing of an image processing flow including a common flow and an additional flow.
[0128] The UI screen 20 illustrated in FIG. 13 includes buttons 21, 22, 26a, 26b, and 27, and areas 23-25.
[0129] Button 22 accepts operations on files. In response to clicking of button 22, processor 110 accepts various file operations. For example, processor 110 accepts a selection operation of individual data 172 in response to operation of button 22. Upon accepting the selection operation of individual data 172, processor 110 reads template data 160 identified by template ID 174 of the individual data 172 and additional data 170 of the individual data 172. Furthermore, processor 110 saves the edited additional data 170 to hard disk 120 in response to operation of button 22.
[0130] In the area 23, one or more processing items constituting the image processing flow 30 to be executed and edited are displayed in the order of execution. The image processing flow 30 shown in Fig. 13 is created by combining a common flow 31 indicated by the template data 160 and an additional flow 33 indicated by the additional data 170. In the area 23, a cursor 23a for selecting one of the one or more processing items displayed is displayed. In Fig. 13, the processing item "display result" included in the additional flow 33 has been selected.
[0131] The button 21 is a button for starting the execution of the image processing flow 30 displayed in the area 23. When the button 21 is clicked, the processor 110 executes the image processing flow 30.
[0132] Areas 24 and 25 display the image processing results. Specifically, area 24 displays an image (hereinafter also referred to as a "measurement image") obtained by executing image processing on an input image. Processor 110 executes image processing flow 30 in response to clicking of button 21, and displays the measurement image in area 24. When a processing item is selected by cursor 23a, processor 110 causes area 24 to display the measurement image obtained by executing image processing from the first processing item to the selected processing item.
[0133] Area 25 displays text information indicating the image processing result. For example, if image processing flow 30 includes a processing item "OCR" and a processing item "result display", an OCR (Optical Character Recognition) process is executed on the image to determine whether or not the recognized character string is a specified character string. Processor 110 causes area 25 to display text information indicating the determination result.
[0134] Button 26a is a button for setting parameters used in executing the process item selected by cursor 23a. When button 26a is clicked, processor 110 presents a window for editing the parameters.
[0135] FIG. 14 is a diagram showing an example of a window for editing parameters. The window 26c shown in FIG. 14 is used for editing parameters used in executing the process item "OCR". The window 26c includes buttons 26d and 26f, a tab group 26e, and an area 26f. The user edits the parameters by operating the button 26d and the tab group 26e. A measurement image is displayed in the area 26f. Therefore, the user can edit the parameters while checking the measurement image. In response to the button 26g being clicked, the processor 110 updates the additional data 170.
[0136] Returning to Fig. 13, button 26b is a button for adding, changing, and deleting a process item for added flow 33. In response to clicking button 26b, processor 110 displays object selection area 62, insert / add button 64, and order change button 65 shown in Fig. 5 within UI screen 20. This allows the user to add, change, and delete a process item for added flow 33. Processor 110 updates additional data 170 in response to an operation on insert / add button 64 and order change button 65.
[0137] In this manner, the buttons 26a, 26b, 26d, and 26f, the tab group 26e, the insert / add button 64, and the order change button 65 are a group of buttons for accepting an editing operation on the additional data 170.
[0138] The button 27 is a button for instructing the start of a UI screen that supports the execution and editing of the common flow 31.
[0139] Fig. 15 is a diagram showing an example of a screen transition when button 27 is clicked. As shown in Fig. 15, in response to clicking button 27, processor 110 displays a window 28 including a list 28a of one or more template data 160 stored in hard disk 120. The user selects template data 160 indicating a common flow 31 to be executed and edited from the list 28a. In response to the user's selection, processor 110 launches a UI screen that supports the execution and editing of the common flow 31.
[0140] It is desirable that editing of the common flow 31 be limited only to those with authority. Therefore, in response to clicking of the button 27, the processor 110 may execute an authentication process. That is, the processor 110 operating as the presenting unit 13 presents an input screen for inputting authentication information in response to receiving an instruction to start a UI screen that supports the execution and editing of the common flow 31. The processor 110 presents a UI screen that supports the execution and editing of the common flow 31 in response to successful authentication based on the information input to the input screen.
[0141] 16 is a diagram showing an example of an input screen for inputting authentication information. Processor 110 presents input screen 29 for inputting authentication information in response to clicking of button 27. Button 27 is a button for instructing the presentation of window 28 including list 28a of one or more template data 160 stored in hard disk 120. Therefore, processor 110 presents input screen 29 in response to receiving an instruction to present list 28a.
[0142] Input screen 29 includes input field 29a for inputting a user name and input field 29b for inputting a password. Processor 110 performs authentication by comparing authentication information previously stored in hard disk 120 with information input into input fields 29a and 29b. If authentication is successful, processor 110 presents window 28 shown in FIG.
[0143] Alternatively, the processor 110 may present the input screen 29 shown in Fig. 16 in response to the selection of template data 160 from the list 28a of the window 28. The processor 110 performs authentication by comparing authentication information pre-stored in the hard disk 120 with the information input into the input fields 29a and 29b. In response to successful authentication, the processor 110 presents a UI screen that supports the execution and editing of the common flow 31.
[0144] 17 is a diagram showing an example of a UI screen that supports the execution and editing of the common flow 31. As shown in FIG. 17, the processor 110 presents a UI screen 40 that supports the execution and editing of the common flow 31, in addition to the UI screen 20.
[0145] The UI screen 40 includes buttons 41, 42, 46a, and 46b, and areas 43-25.
[0146] Button 42 accepts operations on files. In response to clicking of button 42, processor 110 accepts various file operations. For example, in response to operation of button 42, processor 110 saves edited template data 160 in hard disk 120.
[0147] In the area 43, one or more process items constituting the common flow 31 to be executed and edited are displayed in the order of execution. In the area 43, a cursor 43a for selecting one of the one or more process items is displayed. In Fig. 17, the process item "camera image input" included in the common flow 31 is selected.
[0148] The button 41 is a button for starting execution of the common flow 31 displayed in the area 43. When the button 41 is clicked, the processor 110 executes the common flow 31.
[0149] Areas 44 and 45 display the image processing results. Specifically, area 44 displays a measurement image obtained by executing image processing on an input image. Processor 110 executes common flow 31 in response to clicking of button 41, and displays the measurement image in area 44. When a processing item is selected by cursor 43a, processor 110 causes area 44 to display a measurement image obtained by executing image processing from the first processing item to the selected processing item. Area 45 displays text information indicating the image processing result.
[0150] Button 46a is a button for editing the default values of parameters used in executing the process item selected by cursor 43a. When button 46a is clicked, processor 110 displays, for example, window 26c as shown in Fig. 14 (or window 500 shown in Fig. 7). Processor 110 updates setting value 160e (see Fig. 8) of template data 160 in response to an operation on window 26c (or window 500).
[0151] Button 46b is a button for adding, changing, and deleting process items to and from common flow 31. In response to clicking button 46b, processor 110 displays object selection area 62, insert / add button 64, and order change button 65 shown in Fig. 5 within UI screen 40. This allows the user to add, change, and delete process items to and from common flow 31. Processor 110 updates template data 160 in response to operations on insert / add button 64 and order change button 65.
[0152] In this way, buttons 46a, 46b, insert / add button 64, and order change button 65 form a button group for receiving editing operations for template data 160. After receiving the operation of this button group, processor 110 saves the edited template data 160 to hard disk 120 in accordance with the operation of button 42.
[0153] When the editing and saving of the template data 160 is completed, the influence on the image processing flow 30 including the common flow 31 indicated by the template data 160 is usually confirmed. For this purpose, the user clicks the UI screen 20 to switch the UI screen 20 to an active state. This allows the processor 110 to accept an operation on the UI screen 20. For example, the processor 110 reads the edited and saved template data 160 in response to an operation of the button 22 on the UI screen 20. After that, the processor 110 presents the image processing result obtained by executing the image processing flow 30 in the areas 24 and 25 in response to the button 21 being clicked. This allows the user to confirm the influence on the image processing flow 30 by the editing of the template data 160. If it is necessary to edit the template data 160 again, the user clicks the UI screen 40 to switch the UI screen 40 to an active state. This allows the processor 110 to accept an operation on the UI screen 40. In this way, the user can edit the image processing flow 30 and the common flow 31 while checking the image processing results of the image processing flow 30 and the common flow 31 by switching either the UI screen 20 or 40 to the active state.
[0154] FIG. 18 is a diagram showing an example of a UI screen showing the image processing result by executing the common flow. FIG. 19 is a diagram showing another example of a UI screen showing the image processing result by executing the common flow. FIG. 18 shows a UI screen 40 showing the image processing result by executing the common flow 31 when an image showing a workpiece W of type A is input. FIG. 19 shows a UI screen 40 showing the image processing result by executing the common flow 31 when an image showing a workpiece W of type B is input. In the UI screen 40, an image is input only to the common flow 31. Therefore, as shown in FIGS. 18 and 19, a user can input images targeted by each of a plurality of image processing flows 30 including the common flow 31 to the common flow 31 and check the image processing result by executing the common flow 31.
[0155] In the example shown in FIG. 18, an image in which the workpiece W is shown in an upside-down state is input. Therefore, the processing item "position shift correction" is not operating properly. In such a case, the user edits the parameters necessary for executing the processing item "position shift correction". Specifically, the user places the cursor 43a on the processing item "position shift correction" in the area 43 and clicks the button 46a. As a result, the processor 110 presents a window for editing the parameters of the processing item "position shift correction".
[0156] FIG. 20 is a diagram showing an example of a window for editing the parameters of the processing item "position shift correction". The window 46c shown in FIG. 20 includes a checkbox 46d for switching the validity of rotation correction. When the checkbox 46d is checked, the processor 110 edits the template data 160 so as to indicate that rotation correction is valid. The processor 110 stores the edited template data 160 in the hard disk 120 in response to the operation of the button 42 (see FIG. 18). As a result, the processor 110 rotates the image by 180° in the processing item "position shift correction" included in the common flow 31.
[0157] <K. Modification Example> (Modification Example 1) The processor 110 may accept the selection of a plurality of template data 160 from the list 28a of the window 28 (see FIG. 15). When the processor 110 accepts the selection of the plurality of template data 160, the processor 110 activates a plurality of UI screens 40 corresponding to the plurality of template data 160 respectively. As a result, the user can execute and edit the common flow 31 indicated by the template data 160 using the UI screen 40 by actively switching the corresponding UI screen 40 for each of the selected plurality of template data 160.
[0158] For example, the image processing flow 30 may include a plurality of common flows 31. In such a case, the user selects in the window 28 a plurality of template data 160 corresponding to the plurality of common flows 31, respectively.
[0159] (Variation 2) The template data 160 may be made up of other template data and additional data for the other template data.
[0160] FIG. 21 is a diagram showing an example of a UI screen presented in an image processing device according to the second modification.
[0161] 21, the image processing flow 30 is created by combining template data 160 that defines the common flow 31 and additional data 170 that defines the additional flow 33, as in the above embodiment. That is, the image processing flow 30 is an image processing flow in which the additional flow 33 is inserted at insertion position 32 in the common flow 31.
[0162] Furthermore, the common flow 31 is created by combining template data 160_1 that defines another common flow 34 and additional data 170_1 that defines another additional flow 35. In other words, the common flow 31 is an image processing flow in which the additional flow 35 is inserted at an insertion position 36 in the common flow 34. The common flow 34 includes one or more processing items. The template data 160_1 defines the insertion position 36 in the common flow 34. The additional flow 35 includes one or more processing items. The additional data 170_1 defines the insertion position 32 in the additional flow 35.
[0163] In the second modification, the processor 110 operating as the presentation unit 13 accepts an instruction to launch UI screens 40, 40_1 that respectively support the execution and editing of the common flows 31, 34 while presenting the UI screen 20 that supports the execution and editing of the image processing flow 30. In response to the acceptance of the launch instruction, the processor 110 presents the UI screens 40, 40_1.
[0164] The UI screen 40 includes a button 41 for executing image processing on the image to be processed according to the common flow 31. In response to clicking on the button 41 while the UI screen 40 is active, the processor 110 executes image processing on the image to be processed according to the common flow 31, and displays the image processing results on the display 200.
[0165] The processor 110 operating as the editing unit 12 accepts an editing operation for the common flow 31 while the UI screen 40 is active. However, the common flow 31 is created by combining the template data 160_1 and the additional data 170_1. Therefore, the processor 110 does not accept an editing operation for one or more process items included in the common flow 34, the execution order of the one or more process items, and the insertion position 36 in the common flow 34, which are indicated by the template data 160_1, on the UI screen 40. That is, the processor 110 accepts an editing operation for the additional data 170_1 to be combined with the template data 160_1. For example, the processor 110 accepts editing operations such as adding, changing, and deleting a process item for the additional flow 35, changing the default value of a parameter used to execute the process item constituting the additional flow 35, and changing the insertion position 32 in the additional flow 35. Furthermore, the processor 110 also accepts an editing operation for the value of a parameter set to be changeable among the parameters used to execute the process items included in the common flow 34.
[0166] The UI screen 40 includes a button 42 for reflecting the edited content in the additional data 170_1. When the button 42 is clicked while the UI screen 40 is active, the processor 110 saves the edited additional data 170_1.
[0167] The UI screen 40_1 includes a button 41_1 for executing image processing on the image to be processed according to the common flow 34. In response to clicking on the button 41_1 while the UI screen 40_1 is active, the processor 110 executes image processing on the image to be processed according to the common flow 34, and displays the image processing result on the display 200.
[0168] The processor 110 operating as the editing unit 12 accepts editing operations on the common flow 34 while the UI screen 40_1 is active. That is, the processor 110 accepts editing operations on the template data 160_1. For example, the processor 110 accepts editing operations such as changing, deleting, and adding process items constituting the common flow 34, and changing the insertion position 36 in the common flow 34.
[0169] The UI screen 40_1 includes a button 42_1 for reflecting the edited contents in the template data 160_1. When the button 42_1 is clicked while the UI screen 40_1 is active, the processor 110 saves the edited template data 160_1.
[0170] (Variation 3) When the processor 110 operating as the presentation unit 13 is presenting a UI screen 40 that supports the execution and editing of a common flow 31, the processor 110 may also present a UI screen that supports the execution and editing of another image processing flow that uses the common flow 31.
[0171] FIG. 22 is a diagram showing an example of a UI screen presented in an image processing device according to the third modification.
[0172] 22 is created by combining template data 160 with additional data 170_2. The additional data 170_2 indicates an additional flow 33_1 including one or more processing items. The image processing flow 30_1 is an image processing flow in which the additional flow 33_1 is inserted into an insertion position 32 in a common flow 31.
[0173] The processor 110 operating as the presentation unit 13 can accept an instruction to start a UI screen 20_1 that supports the execution and editing of the image processing flow 30_1 while presenting the UI screen 20 and the UI screen 40. In response to the acceptance of the start instruction, the processor 110 presents the UI screen 20_1 that supports the execution and editing of the image processing flow 30_1.
[0174] For example, the processor 110 extracts, from the hard disk 120, individual data 172 including a template ID 174 corresponding to the common flow 31 displayed on the presented UI screen 40. The processor 110 presents a list of the extracted individual data 172, and accepts an instruction to select the individual data 172 as the above-mentioned start instruction. The processor 110 starts up a UI screen 20_1 that supports the execution and editing of an image processing flow 30_1 defined by the selected individual data 172.
[0175] The UI screen 20_1 includes a button 21_1 for executing image processing according to an image processing flow 30_1 on an image to be processed. That is, the button 21_1 is a button for instructing execution of the image processing flow 30_1. The processor 110 operating as the execution unit 11 executes the image processing flow 30_1 in response to clicking of the button 21 while a UI screen for supporting execution and editing of an image processing flow is active.
[0176] The processor 110 operating as the editing unit 12 accepts an editing operation for the image processing flow 30_1 while the UI screen 20_1 is active. However, the common flow 31 can also be applied to other image processing flows. Therefore, the processor 110 accepts editing operations such as changing, deleting, and adding processing items constituting the additional flow 33_1. The processor 110 may edit the additional data 170_2 in response to the editing operation.
[0177] This makes it easier for the user to check the image processing results of another image processing flow 30_1 that uses the common flow 31. Furthermore, the user can edit the additional flow 33_1 that constitutes the image processing flow 30_1 according to the check result.
[0178] (Variation 4) When inspecting the workpiece W, the image processing device 100 usually receives a trigger signal from an external device such as the PLC 5, another personal computer, or a server device, executes the image processing flow 30, and outputs the image processing result to the external device. The common flow 31, which is a part of the image processing flow 30, is insufficient for inspecting the workpiece W. Therefore, it is not preferable to execute the common flow 31 in response to the input of a trigger signal. Furthermore, it is also not preferable to output the image processing result by executing the common flow 31 to the PLC 5, another personal computer, or a server device.
[0179] Therefore, the processor 110 operating as the execution unit 11 may always execute the image processing flow 30 when a trigger signal is input from an external device. That is, even if either the UI screen 20 or 40 is active, the processor 110 executes the image processing flow 30 in response to the input of a trigger signal from the external device and outputs the image processing result to the outside. Alternatively, the processor 110 may receive a trigger signal from the external device only when the UI screen 20 is active, execute the image processing flow 30 in response to the input of the trigger signal, and output the image processing result to the external device. That is, the processor 110 does not receive a trigger signal from the external device when the UI screen 40 is active. In other words, the processor 110 does not execute the common flow 31 even if a trigger signal is input from an external device when the UI screen 40 is active. This avoids the problem that an erroneous signal is transmitted from the image processing device 100 to an external device built on the premise of the image processing flow 30, and the problem that the image processing device 100 performs an erroneous operation in response to an input from an external device.
[0180] Furthermore, even if a processing item defining a signal output to an external device is included in the common flow 31, it is preferable that the processor 110 does not output a signal to the external device when an execution instruction is received on the UI screen 40. This avoids the problem of an erroneous signal being transmitted from the image processing device 100 to an external device built on the premise of the image processing flow 30.
[0181] §3 Supplementary Note As described above, the present embodiment includes the following disclosure.
[0182] (Configuration 1) An image processing device (100), an execution unit (11, 110) that executes an image processing flow in response to an execution instruction; an editing unit (12, 110) that edits data defining the image processing flow in response to an editing operation; a presentation unit (13, 110) that presents a UI screen that supports execution and editing of the image processing flow; the image processing flow includes a first image processing flow (30) created by combining first template data (160) and first additional data (170); The first template data (160) indicates a second image processing flow (31) including one or more processing items, The first additional data (170) indicates a third image processing flow (33) including one or more processing items; The first image processing flow (30) is an image processing flow in which the third image processing flow (33) is inserted into a first insertion position (32) of the second image processing flow (31), The presentation unit (13, 110) In a state where a first UI screen (20) for supporting the execution and editing of the first image processing flow (30) is presented, a first launch instruction for a second UI screen (40) for supporting the execution and editing of the second image processing flow (31) can be accepted; presenting the second UI screen (40) in response to the reception of the first start-up instruction; The execution unit (11, 110) Executing the first image processing flow (30) in response to the execution instruction while the first UI screen (20) is active; While the second UI screen (40) is active, the second image processing flow (31) is executed in response to the execution instruction; The editorial department (12, 110) While the first UI screen (20) is active, editing the first additional data (170) in response to the editing operation; The image processing device (100) edits the first template data (160) in response to the editing operation while the second UI screen (40) is active.
[0183] (Configuration 2) The presentation unit (13, 110) presenting an input screen (29) for inputting authentication information in response to receiving the first start-up instruction; 2. The image processing device (100) according to configuration 1, wherein the second UI screen (40) is presented in response to a successful authentication based on the input information on the input screen (29).
[0184] (Configuration 3) The second image processing flow (31) is created by combining second template data (160_1) and second additional data (170_1), The second template data (160_1) indicates a fourth image processing flow (34) including one or more processing items, The second additional data (170_1) indicates a fifth image processing flow (35) including one or more processing items, the second image processing flow (31) is an image processing flow in which the fifth image processing flow (35) is inserted at a second insertion position (36) in the fourth image processing flow (34); The presentation unit (13, 110) In a state in which the first UI screen (20) is presented, a second launch instruction of a third UI screen (40_1) for supporting execution and editing of the fourth image processing flow (34) can be accepted; presenting the third UI screen (40_1) in response to the reception of the second start-up instruction; The execution unit (11, 110) executes the fourth image processing flow (34) in response to the execution instruction while the third UI screen (40_1) is active; The editorial department (12, 110) while the second UI screen (40) is active, editing the second additional data (170_1) in response to the editing operation; 3. The image processing device (100) according to configuration 1 or 2, wherein, in a state in which the third UI screen (40_1) is active, the second template data (160_1) is edited in response to the editing operation.
[0185] (Configuration 4) the image processing flow includes a sixth image processing flow (30_1) created by combining the first template data (160) and third additional data (170_2); The third additional data (170_2) indicates a seventh image processing flow (33_1) including one or more processing items, The sixth image processing flow (30_1) is an image processing flow in which the seventh image processing flow (33_1) is inserted into the first insertion position (32) in the second image processing flow (31), The presentation unit (13, 110) In a state in which the first UI screen (20) is presented, a third launch instruction of a fourth UI screen (20_1) for supporting execution and editing of the sixth image processing flow (30_1) can be accepted; presenting the fourth UI screen (20_1) in response to the acceptance of the third start-up instruction; The execution unit (11, 110) executes the sixth image processing flow (30_1) in response to the execution instruction while the fourth UI screen (20_1) is active; The image processing device (100) according to any one of configurations 1 to 3, wherein the editing unit (12, 110) edits the third additional data (170_2) in response to the editing operation while the fourth UI screen (20_1) is active.
[0186] (Configuration 5) A method for editing an image processing flow in an image processing device (100), comprising: presenting a UI screen for supporting execution and editing of the image processing flow; Executing the image processing flow in response to an execution instruction; editing data defining the image processing flow in response to an editing operation; The image processing flow includes a first image processing flow (30) created by combining template data (160) and additional data (170); The template data (170) indicates a second image processing flow (31) including one or more processing items, The additional data (170) indicates a third image processing flow (33) including one or more processing items, The first image processing flow (30) is an image processing flow in which the third image processing flow (33) is inserted at an insertion position (32) in the second image processing flow (31), The presenting step includes: receiving a first launch instruction for a second UI screen (40) that supports the execution and editing of the second image processing flow (31) while a first UI screen (20) that supports the execution and editing of the first image processing flow (30) is being presented; presenting the second UI screen (40) in response to receipt of the first start-up instruction; The performing step includes: executing the first image processing flow (30) in response to the execution instruction while the first UI screen (20) is active; and executing the second image processing flow (31) in response to the execution instruction while the second UI screen (40) is active; The editing step includes: editing the additional data (170) in response to the editing operation while the first UI screen (20) is active; and editing the template data (160) in response to the editing operation while the second UI screen (40) is active.
[0187] (Configuration 6) A program for causing a computer to execute the editing method according to configuration 5.
[0188] Although the embodiment of the present invention has been described, the embodiment disclosed herein should be considered as illustrative and not restrictive in all respects. The scope of the present invention is defined by the claims, and it is intended to include all modifications within the scope and meaning equivalent to the claims. [Explanation of symbols]
[0189] 1 image processing system, 5 PLC, 6 transport mechanism, 8 imaging unit, 11 execution unit, 12 editing unit, 13 presentation unit, 14, 17 record, 15, 16 partial data, 20, 40, 60 UI screen, 21, 22, 26a, 26b, 26d, 26f, 26g, 27, 41, 42, 46a, 46b button, 23-25, 26f, 43-45 area, 23a, 43a cursor, 26c, 28, 46c, 500, 510 window, 26e tab group, 28a list, 29 input screen, 29a, 29b, 502, 504, 512 input field, 30, 30A, 30B, 30_1 image processing flow, 31, 34 common flow, 32, 36 Insertion position, 33, 33A, 33B, 33_1, 35 Additional flow, 46d Check box, 50, 50a to 50e, 52, 52a to 52d Processing item, 61 Working area, 62 Object selection area, 63 Image display area, 64 Insert / add button, 65 Order change button, 100 Image processing device, 106 Memory card, 110 Processor, 112 RAM, 114 Display controller, 116 System controller, 118 I / O controller, 120 Hard disk, 122 Camera interface, 124 Input interface, 126 PLC interface, 128 Communication interface, 130 Memory card interface, 150 Control program, 160 Template data, 170, 170A, 170B, 170_1, 170_2 Additional data, 172 Individual data, 174 Template ID, 200 Display, 300 Keyboard, 400, 400a-400g, 402, 403 Objects, W Work.
Claims
1. An image processing device, an execution unit that executes an image processing flow in response to an execution instruction; an editing unit that edits data defining the image processing flow in response to an editing operation; a presentation unit that presents a UI screen that supports execution and editing of the image processing flow, the image processing flow includes a first image processing flow created by combining first template data and first additional data; the first template data indicates a second image processing flow including one or more processing items; the first additional data indicates a third image processing flow including one or more processing items; the first image processing flow is an image processing flow in which the third image processing flow is inserted at a first insertion position of the second image processing flow, The presentation unit is a first launch instruction for a second UI screen for supporting the execution and editing of the second image processing flow is received in a state in which a first UI screen for supporting the execution and editing of the first image processing flow is presented; presenting the second UI screen in response to receiving the first start-up instruction; The execution unit is executes the first image processing flow in response to the execution instruction while the first UI screen is active; executes the second image processing flow in response to the execution instruction while the second UI screen is active; The editorial department: while the first UI screen is active, editing the first additional data in response to the editing operation; The image processing device edits the first template data in response to the editing operation while the second UI screen is active.
2. The presentation unit is presenting an input screen for inputting authentication information in response to receiving the first start-up instruction; The image processing apparatus according to claim 1 , wherein the second UI screen is presented in response to a successful authentication based on the input information on the input screen.
3. the second image processing flow is generated by combining second template data and second additional data; the second template data indicates a fourth image processing flow including one or more processing items; the second additional data indicates a fifth image processing flow including one or more processing items; the second image processing flow is an image processing flow in which the fifth image processing flow is inserted at a second insertion position in the fourth image processing flow, The presentation unit is a second launch instruction for a third UI screen that supports execution and editing of the fourth image processing flow can be received in a state in which the first UI screen is presented; presenting the third UI screen in response to the second start-up instruction; the execution unit executes the fourth image processing flow in response to the execution instruction while the third UI screen is active; The editorial department: while the second UI screen is active, editing the second additional data in response to the editing operation; The image processing device according to claim 1 , wherein the second template data is edited in response to the editing operation while the third UI screen is active.
4. the image processing flow includes a sixth image processing flow created by combining the first template data and third additional data; the third additional data indicates a seventh image processing flow including one or more processing items; the sixth image processing flow is an image processing flow in which the seventh image processing flow is inserted at the first insertion position in the second image processing flow, The presentation unit is a third launch instruction for a fourth UI screen that supports execution and editing of the sixth image processing flow can be accepted in a state in which the first UI screen is presented; presenting the fourth UI screen in response to the acceptance of the third start-up instruction; the execution unit executes the sixth image processing flow in response to the execution instruction while the fourth UI screen is active; The image processing device according to claim 1 , wherein the editing unit edits the third additional data in response to the editing operation while the fourth UI screen is active.
5. A method for editing an image processing flow in an image processing device, comprising: presenting a UI screen for supporting execution and editing of the image processing flow; Executing the image processing flow in response to an execution instruction; editing data defining the image processing flow in response to an editing operation; the image processing flow includes a first image processing flow created by combining template data and additional data; the template data indicates a second image processing flow including one or more processing items; the additional data indicates a third image processing flow including one or more processing items; the first image processing flow is an image processing flow in which the third image processing flow is inserted at an insertion position in the second image processing flow, The presenting step includes: receiving a first launch instruction for a second UI screen that supports execution and editing of the second image processing flow while a first UI screen that supports execution and editing of the first image processing flow is being presented; presenting the second UI screen in response to receiving the first start-up instruction; The performing step includes: executing the first image processing flow in response to the execution instruction while the first UI screen is active; executing the second image processing flow in response to the execution instruction while the second UI screen is active; The editing step includes: editing the additional data in response to the editing operation while the first UI screen is active; and editing the template data in response to the editing operation while the second UI screen is active.
6. A program for causing a computer to execute the editing method according to claim 5.
Citation Information
Patent Citations
Image processing program, image processing method, image processing apparatus and storage medium
CN1680912A
Image processing device, image processing system, image processing program, and image processing method
EP3050507A1
Image history processing program, image history processing method, image history processing device, and recording medium
JP2005301492A
Information processing apparatus, control method of the same, and program
JP2013140572A
Image processing device, image processing system, image processing program, and image processing method
JP2015085190A
