[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2024218987A1 - Programming device, setting adjustment method, and program - Google Patents

Programming device, setting adjustment method, and program Download PDF

Info

Publication number
WO2024218987A1
WO2024218987A1 PCT/JP2023/016009 JP2023016009W WO2024218987A1 WO 2024218987 A1 WO2024218987 A1 WO 2024218987A1 JP 2023016009 W JP2023016009 W JP 2023016009W WO 2024218987 A1 WO2024218987 A1 WO 2024218987A1
Authority
WO
WIPO (PCT)
Prior art keywords
setting
adjustment
priority
image processing
setting items
Prior art date
Application number
PCT/JP2023/016009
Other languages
French (fr)
Japanese (ja)
Inventor
順一郎 吉田
Original Assignee
ファナック株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ファナック株式会社 filed Critical ファナック株式会社
Priority to PCT/JP2023/016009 priority Critical patent/WO2024218987A1/en
Publication of WO2024218987A1 publication Critical patent/WO2024218987A1/en

Links

Images

Definitions

  • This disclosure relates to a programming device, and a setting adjustment method and program executed on the programming device.
  • Patent Documents 1 and 2 describe examples of the configuration of an image processing device that can present a setting screen for setting measurement conditions.
  • One aspect of the present disclosure is a programming device that includes a program creation unit that provides a function for creating an image processing program that executes image processing on an image captured by a visual sensor, and a setting unit that accepts settings related to the image processing, and the setting unit displays a plurality of adjustment purposes related to the image processing on a display screen in a selectable manner, and displays one or more setting items related to one adjustment purpose selected from the plurality of adjustment purposes in a manner that allows the user to recognize the priority according to the one selected adjustment purpose.
  • FIG. 1 is a diagram illustrating a configuration of an image processing system including a programming device according to an embodiment.
  • FIG. 2 is a functional block diagram of a programming device and an image processing device.
  • FIG. 11 is a diagram showing an example of a setting screen serving as a user interface for programming.
  • 13A and 13B are diagrams showing an example of an image processing program that is set and displayed in a processing flow display area.
  • 5 is a diagram showing examples of setting items associated with each functional module constituting an image processing program.
  • FIG. 13A and 13B are diagrams showing examples of adjustment purposes displayed selectably in an adjustment purpose selection area.
  • FIG. 13 is a diagram showing an example of a display mode of setting items displayed in a setting area when an adjustment purpose "increase processing speed" is selected.
  • FIG. 13 is a diagram showing an example in which functional modules including setting items to which priorities according to adjustment purposes have been assigned are highlighted in a processing flow display area in which the processing flow of an image processing program is displayed.
  • FIG. 4 is a flowchart showing a basic operation of a process for adjusting a setting item of an image processing program.
  • FIG. 1 is a diagram showing the configuration of an image processing system 100 including a programming device according to one embodiment.
  • the image processing system 100 includes a programming device 10, an image processing device 20 connected to the programming device 10, and a visual sensor 30 and a lighting device 31 connected to the image processing device 20.
  • the image processing system 100 is configured to capture an image of an object 90 using the visual sensor 30, and to perform various image processing such as detection and inspection of the object 90 on the captured image.
  • the programming device 10 provides a function for creating various programs related to the capture of images by the visual sensor 30 and image processing of the captured images.
  • the image processing device 20 is responsible for the function of controlling the visual sensor 30 and the lighting device 31 and performing image processing based on commands from the programming device 10.
  • programming an image processing program includes creating a program using command statements, function modules, icons, etc., as well as completing the function of the image processing program by setting and adjusting configuration items.
  • the programming device 10 can be any information processing device, such as a tablet terminal.
  • the programming device 10 may have a hardware configuration as a general computer having a processor 11, memory (ROM, RAM, non-volatile memory, etc.), a storage unit 12, a display unit 13, an operation unit 14, an input/output interface, a network interface, etc. (see FIG. 2).
  • the display unit 13 may be a flat panel display (such as a liquid crystal display).
  • the operation unit 14 may be a touch panel input device integrated with the display.
  • the visual sensor 30 may be a two-dimensional camera that captures grayscale or color images, or a stereo camera or three-dimensional sensor that can obtain distance images.
  • the image processing device 20 holds a model pattern of the object, and can perform image processing to detect the object by pattern matching between the object in the captured image and the model pattern.
  • the image processing device 20 may be configured as a device dedicated to image processing, or may be configured as a general-purpose information processing device such as a PC (personal computer).
  • the image processing device 20 may have a hardware configuration as a general computer having a processor 21, memory (ROM, RAM, non-volatile memory, etc.), a storage unit 22, an input/output interface, a network interface, etc. (see FIG. 2).
  • the image processing device 20 may further have a display unit and an operation unit as hardware components.
  • FIG. 1 an example is shown in which the image processing device 20 is configured as a device separate from the programming device 10, but the functions of the image processing device 20 may be built into the programming device 10.
  • FIG. 2 shows a functional block diagram of the programming device 10 and the image processing device 20.
  • the programming device 10 includes a program creation unit 111, a program execution unit 112, a setting unit 113, a processing time acquisition unit 114, and a status analysis unit 115. These functional blocks may be realized by the processor 11 of the programming device 10 executing software.
  • FIG. 2 also shows the memory unit 12 of the programming device 10.
  • the memory unit 12 may be configured, for example, from a non-volatile memory or a hard disk drive.
  • the program creation unit 111 provides a function for creating various programs, such as programs related to capturing images by the visual sensor 30 and image processing of the captured images. For example, the program creation unit 111 displays a program creation screen for creating programs and accepts user input for programming. The program creation unit 111 may be configured to accept programming based on input of text-based commands, as well as programming based on functional modules or icons. The program creation unit 111 also has a function for registering the created programs in the storage unit 12.
  • the program execution unit 112 provides a function for executing the created program.
  • the program execution unit 112 sends commands based on the program to the image processing device 20 to perform image capture and image processing.
  • the setting unit 113 displays various setting items related to image processing, and provides a function for accepting input of setting values for the setting items.
  • the setting unit 113 has a function for displaying selectable adjustment purposes for image processing so that an operator can efficiently set parameters for image processing, and for displaying setting items related to the selected adjustment purpose in response to the adjustment purpose selected by the operator.
  • the setting unit 113 has a function for displaying one or more setting items related to one adjustment purpose selected from multiple adjustment purposes, so that the priority according to the selected adjustment purpose can be recognized. This allows the operator to recognize the priority according to the adjustment purpose for the setting items related to the selected adjustment purpose, and allows efficient setting.
  • information associating the setting items related to the adjustment purpose with the priority of the setting items related to the adjustment purpose according to the adjustment purpose may be set in advance and stored in the storage unit 12, for example.
  • the priority information has a data structure as shown in Table 1 below. Note that in the priority information shown in Table 1 below, adjustment purpose A is associated with setting items A1 and A2, which are related setting items, and the priority of those setting items A1 and A2 according to adjustment purpose A. Also, in the priority information shown in Table 1 below, adjustment purpose B is associated with setting items B1 and B2, which are related setting items, and the priority of those setting items B1 and B2 according to adjustment purpose B.
  • the setting unit 113 can use such priority information to display one or more setting items related to one adjustment purpose selected from multiple adjustment purposes in such a way that the priority according to the selected adjustment purpose can be recognized.
  • the processing time acquisition unit 114 can acquire from the processing time measurement unit 123 the processing time actually required for each functional unit related to image processing when image processing is executed in the image processing device 20. For example, the processing time acquisition unit 114 can acquire the time required for processing to search for the angle of an object as one functional unit in pattern matching for detecting the object.
  • the status analysis unit 115 cooperates with the image processing device 20 and has the function of acquiring and analyzing the status related to the execution of the image processing program.
  • the storage unit 12 stores programs, various settings related to image processing programs, priority information, etc.
  • the image processing device 20 includes a visual sensor control unit 121, an image processing unit 122, and a processing time measurement unit 123. These functional blocks may be realized by the processor 21 of the image processing device 20 executing software.
  • FIG. 2 also shows the memory unit 22 of the image processing device 20.
  • the memory unit 22 may be configured, for example, from a non-volatile memory or a hard disk drive.
  • the visual sensor control unit 121 controls the visual sensor 30 in accordance with commands sent from the programming device 10.
  • the image processing unit 122 has the function of executing various image processing operations on the image captured by the visual sensor 30.
  • the processing time measurement unit 123 provides a function of measuring the actual processing time for each function corresponding to each setting item when image processing is performed by the image processing unit 122.
  • the function of the processing time measurement unit 123 can be realized, for example, by incorporating a function in the image processing program that obtains the processing start time and processing end time for each function from an internal timer and calculates the processing time.
  • the storage unit 22 stores various information such as image data, various setting information related to image processing, and model data of the object.
  • FIG. 3 shows an example of a setting screen 200 as a user interface for programming.
  • the setting screen 200 also functions as a program creation screen.
  • the setting screen 200 is provided by the program creation unit 111 and the setting unit 113.
  • the program creation unit 111 and the setting unit 113 display the setting screen 200 on the display unit 13.
  • the program creation unit 111 and the setting unit 113 also accept input to the setting screen 200 via the operation unit 14.
  • the setting screen 200 includes an image display area 211, an adjustment purpose selection area 212, a processing flow display area 213, and a setting area 214.
  • the image display area 211 is an area for displaying the image captured by the visual sensor 30.
  • the programming device 10 program execution unit 112 executes an image processing program and acquires an image G of the object 90 captured by the visual sensor 30 from the image processing device 20, and displays it in the image display area 211.
  • the worker can check the image used for image processing (inspection, etc.) on the image display area 211.
  • Image G is an example of an image showing three objects 90 in the situation shown in Figure 1.
  • the adjustment purpose selection area 212 is an area for displaying a list of adjustment purposes related to the image processing program and accepting the selection of an adjustment purpose.
  • the setting unit 113 displays a list of multiple selectable adjustment purposes in the adjustment purpose selection area 212.
  • the setting unit 113 accepts a user operation to select one adjustment purpose from the list of adjustment purposes.
  • the processing flow display area 213 is an area for setting and displaying the processing flow of the image processing program.
  • the program creation unit 111 can provide a function that enables an operator to perform programming by arranging icons representing functional modules in the processing flow display area 213 along the processing flow. An operator can perform programming by selecting a desired functional icon from a list of functional module icons prepared in advance and arranging it in the processing flow display area 213.
  • the setting area 214 is an area for displaying setting items related to the image processing program and for inputting or adjusting the setting items.
  • the setting unit 113 has a function for displaying setting items related to a functional module selected in the processing flow display area 213 and accepting settings for those setting items. Furthermore, the setting unit 113 has a function for displaying, in the setting area 214, one or more setting items related to an adjustment purpose selected in the adjustment purpose selection area 212, so that the priority according to the selected adjustment purpose can be recognized.
  • FIG. 4 shows an example of an image processing program P1 that is set and displayed in the processing flow display area 213.
  • the image processing program P1 is a program for inspecting an object.
  • the image processing program P1 includes an imaging function M1, a pattern matching function M2, a length measurement function M3, and a pass/fail determination function M4.
  • the imaging function M1 corresponds to a function of capturing an image of an object using the visual sensor 30.
  • the pattern matching function M2 corresponds to a function of detecting an object from the captured image by pattern matching using a model pattern of the object.
  • the length measurement function M3 corresponds to a function of measuring the length of an inspection target portion on an object recognized by pattern matching. An example of the length measurement function M3 is a process of measuring the length between opposing sides when the object is box-shaped.
  • the pass/fail judgment function M4 corresponds to a function of making a pass/fail judgment on the length measured by the length measurement function M3.
  • the operator can perform programming by arranging the functional modules in the process flow display area 213 in order and setting and adjusting the necessary setting items for each functional module.
  • the setting unit 113 has a function of displaying the setting items of the functional module selected in the process flow display area 213 in the setting area 214 and accepting settings for those setting items.
  • the setting unit 113 displays in the setting area 214 the setting items associated with the functional module selected in the processing flow display area 213 and accepts the settings.
  • Information associating each functional module with its related setting items is stored in advance in the storage unit 12.
  • the imaging function M1 includes the following setting items related to it: camera selection, exposure time, illumination intensity, number of images taken, imaging area, and image reduction ratio.
  • the screen of the setting items displayed in the setting area 214 in response to the selection of the imaging function M1 is referred to as a setting item screen 301.
  • the setting unit 113 has a function of displaying these setting items in the setting area 214 and accepting settings for these setting items.
  • Fig. 5 shows an example in which the setting values are input for these setting items as follows: Camera selection: Camera 1 Exposure time: 200 ms Lighting Intensity: 100% Number of shots: 1 Imaging area: 1280 x 1024 pixels Image reduction ratio: 1/2
  • the pattern matching function M2 includes, as its associated setting items, model setting, score threshold, contrast threshold, size threshold, angle threshold, upper limit of detection number, and detection time limit.
  • the screen of setting items displayed in the setting area 214 in response to the selection of the pattern matching function M2 is referred to as a setting item screen 302.
  • the setting unit 113 has a function of displaying these setting items in the setting area 214 and accepting settings for these setting items.
  • Figure 5 shows an example in which the setting values are input for these setting items as follows: Model Settings: Set score threshold: 75% Contrast threshold: 50 Size Threshold: 90 to 120% Angle threshold: -30 to +30 deg Detection limit: 5 Detection time limit: 30 seconds
  • the length measurement function M3 includes input, measurement region setting, contrast threshold, and length threshold as its associated setting items.
  • the screen of setting items displayed in the setting area 214 in response to the selection of the length measurement function M3 is referred to as a setting item screen 303.
  • the setting unit 113 has a function of displaying these setting items in the setting area 214 and accepting settings for these setting items.
  • Figure 5 shows an example in which the following setting values are input for these setting items: Input: Pattern match Measurement area setting: Already set Contrast threshold: 50 Length threshold: 100 to 100 pixels
  • the pass/fail judgment function M4 includes input, judgment criteria, and judgment as its associated setting items.
  • the screen of setting items displayed in the setting area 214 in response to the selection of the pass/fail judgment function M4 is referred to as the setting item screen 304.
  • the setting unit 113 has a function of displaying these setting items in the setting area 214 and accepting settings for these setting items.
  • Figure 5 shows an example in which the following setting values are input for these setting items.
  • the program creation unit 111 and the setting unit 113 can provide basic programming functions, such as setting an image processing program in the processing flow display area 213, displaying setting items in the setting area 214, and accepting setting input.
  • the setting unit 113 to display one or more setting items related to one adjustment purpose selected in the adjustment purpose selection area 212 so that the priority according to the selected adjustment purpose can be recognized.
  • FIG. 6 shows an example of selectable adjustment purposes displayed in the adjustment purpose selection area 212.
  • the adjustment purposes displayed here are set based on the results of a prior analysis of what kind of adjustments workers involved in image processing generally want to make.
  • the multiple adjustment purposes are as follows: 1. "Standard” 2. “I want to speed up processing.” 3. “I want to take measures against false positives.” 4. “I want to take measures against undetected viruses.” 5. “I want to improve detection accuracy.” 6. “I want to limit adjustments.” Contains:
  • the adjustment purpose "standard” is an item that is selected when the operator desires standard parameter settings for the image processing program.
  • the setting unit 113 may, for example, set predetermined standard values as values for each setting item for the image processing program set in the processing flow display area 213, and display them in the setting area 214.
  • the adjustment objective "I want to increase the processing speed” is an item that is selected when the operator wishes to increase the processing speed of the image processing program.
  • the setting unit 113 displays one or more setting items related to this adjustment objective in the setting area 214 so that the priority according to this adjustment objective can be recognized.
  • the adjustment purpose "I want to take measures against false detection” is an item that is selected when the operator wishes to improve false detections in the image processing program.
  • false detection refers to an event in which the image processing program detects an object that is not the target object as the target object.
  • the setting unit 113 displays one or more setting items related to this adjustment purpose in the setting area 214 so that the priority according to this adjustment purpose can be recognized.
  • the adjustment purpose "I want to take measures against non-detection” is an item that is set when the operator wishes to improve the non-detection of the image processing program.
  • “non-detection” refers to an event in which the image processing program is unable to detect an object that should have been detected.
  • the setting unit 113 displays one or more setting items related to this adjustment purpose in the setting area 214 so that the priority according to this adjustment purpose can be recognized.
  • the adjustment purpose "I want to improve detection accuracy” is an item that is set when the operator desires more accurate detection.
  • the setting unit 113 displays one or more setting items related to this adjustment purpose in the setting area 214 so that the priority according to this adjustment purpose can be recognized.
  • the adjustment purpose "I want to limit adjustment” is an item that is selected when the operator wishes to perform settings in a state in which the setting items to be adjusted are limited and only the necessary setting items are subject to adjustment.
  • the setting unit 113 displays one or more setting items related to this adjustment purpose in the setting area 214 so that the priority according to this adjustment purpose can be recognized.
  • FIG. 7 shows an example of the display mode of the setting items displayed in the setting area 214 when the adjustment objective "I want to speed up processing speed" is selected when image processing program P1 is set in the processing flow display area 213.
  • the setting area 214 displays, in a recognizable manner, the setting items that should be given priority in accordance with the adjustment objective "I want to speed up processing speed” out of the setting items related to each functional module of image processing program P1.
  • the setting item screen 301 displayed in the setting area 214 is in the display mode indicated by the reference symbol 301a in FIG. 7.
  • camera selection, exposure time, lighting intensity, number of times of imaging, imaging area, and image reduction ratio, the exposure time, number of times of imaging, imaging area, and image reduction ratio are related to the processing speed.
  • the imaging area is a setting item that specifies the area of the imaging area that is to be acquired as an image. By setting the imaging area to a small value, the processing time can be shortened.
  • the image reduction ratio is a setting item that specifies the degree to which the image is compressed.
  • exposure time, number of captures, capture area, and image reduction ratio, exposure time and image reduction ratio are particularly closely related to the processing speed of image processing, so among these four setting items, “exposure time” and “image reduction ratio” have the highest priority. Therefore, among the above four setting items, “exposure time” and “image reduction ratio” are displayed with even more emphasis. Further emphasis of “exposure time” and “image reduction ratio” may be achieved, for example, by changing the size, thickness, color, font, etc. of the characters.
  • the setting item screen 302 displayed in the setting area 214 is in the display mode indicated by the reference symbol 302a in FIG. 7.
  • the size threshold and angle threshold are related to the processing speed.
  • a process is performed to search the image for a feature that is the same as the taught feature (model feature). At this time, the search is performed while rotating the model feature and changing its size.
  • the "angle threshold" specifies the allowable angle range for the feature to rotate during this search.
  • the size threshold specifies the allowable range of the feature size during this search. For example, if the size threshold is set to 100%, only features of the same size as the model feature are searched, and the processing becomes faster. In this way, among the setting items of the pattern matching function M2, the size threshold and angle threshold are related to the processing speed. Therefore, on the setting item screen 302a for the pattern matching function M2, these two setting items, the size threshold and the angle threshold, are highlighted compared to the other setting items.
  • the operator can recognize which setting items should be prioritized and their priorities according to the adjustment objective, such as "I want to speed up processing," and can efficiently make appropriate settings according to the adjustment objective.
  • the degree of emphasis may be set by further taking into consideration the difference in effectiveness.
  • the degrees of effectiveness (priority) of improving the processing speed for the exposure time, the number of images captured, the imaging area, the image reduction rate, the size threshold, and the angle threshold are assumed to be in the following order: (Exposure time, image reduction ratio)>(Number of images taken, image area)>(Size threshold, angle threshold)
  • the setting unit 113 may display the exposure time and image reduction ratio with the strongest emphasis, then the number of times images are captured and the captured area with the second strongest emphasis, and the size threshold and angle threshold with the third strongest emphasis.
  • the setting item screens 301a, 302a, 303, and 304 shown in FIG. 7 may be displayed simultaneously in window format in the setting area 214 in response to the selection of "I want to increase the processing speed" in the adjustment objective selection area 212 when the image processing program P1 is set in the processing flow display area 213.
  • examples of the manner in which the setting items to be preferentially set are displayed in a recognizable manner include the following: - Emphasize the setting items that should be set with priority by underlining, adding a border or other image. - The priority level is indicated by the number of marks and displayed next to the setting item. - Hide or weaken the display of settings other than those that should be set as a priority.
  • the term "weak display” used here means displaying text with a lowered emphasis by lightening the text color, reducing the text size, etc.
  • the pattern match setting "Score threshold” specifies the threshold for the degree of match calculated for the target on the image in pattern matching. Increasing the score threshold of pattern matching has the effect of reducing false positives.
  • the pattern match setting "Contrast threshold” specifies the contrast threshold for the background of the features on the image (e.g., the contour of the target). Increasing the contrast threshold of pattern matching makes it possible to subject only clearly visible features to pattern matching, which has the effect of reducing false positives.
  • the pattern match setting "Model setting” is a setting item for teaching model features. For example, re-executing model setting and increasing model features (e.g., increasing the number of edge points that represent model features) is a measure to reduce false positives. Reducing the size threshold of pattern matching is effective in reducing false positives. In addition, for example, increasing the exposure time of the imaging function so that unnecessary features are not captured on the image has the effect of reducing false positives.
  • the "score threshold” and “contrast threshold” are particularly effective in reducing false positives, and therefore the setting unit 113 may assign a higher priority to the "score threshold” and “contrast threshold” of the above five setting items than to the other setting items. Therefore, the setting unit 113 may display the "score threshold” and "contrast threshold” of the above five setting items with even greater emphasis.
  • the operator can recognize the setting items that should be prioritized according to the adjustment objective and their priorities, and can efficiently make appropriate settings according to the adjustment objective.
  • Lowering the "score threshold” of the pattern matching function has the effect of reducing undetected cases.
  • Lowering the "contrast threshold” of the pattern matching function has the effect of reducing undetected cases.
  • Increasing the width of the "size threshold” of the pattern matching function has the effect of reducing undetected cases.
  • Adjusting the "exposure time" of the imaging function so that the necessary features of the object are revealed has the effect of reducing undetected cases.
  • the "score threshold” and “contrast threshold” are particularly effective in reducing non-detection, and therefore the setting unit 113 may assign a higher priority to the "score threshold” and "contrast threshold” than to the other setting items among the above four setting items. Therefore, the setting unit 113 may display the "score threshold” and "contrast threshold” among the above four setting items that are effective in preventing non-detection with even more emphasis.
  • the operator can recognize the setting items that should be prioritized according to the adjustment objective and their priorities, and can efficiently make appropriate settings according to the adjustment objective.
  • the setting unit 113 may assign a higher priority to "Model setting” and "Contrast threshold” than to the other setting items among these three setting items. Therefore, the setting unit 113 may display "Model setting” and "Contrast threshold” with even more emphasis among the above three setting items that are effective in terms of improving detection accuracy.
  • the adjustment purpose "I want to limit adjustment” is selected when it is desired to limit the setting items so that only necessary setting items are set. For example, in a situation where an operator changes only the pass/fail judgment criteria in the daily operation of the image processing system 100, it may be desired to operate only this setting item and exclude other setting items from the operation targets. In this case, for example, in response to the selection of the adjustment purpose "I want to limit adjustment", - Only the "judgment criteria" for pass/fail judgment will be displayed as a configurable setting item. - Only the "criteria” for pass/fail judgment will be highlighted.
  • This adjustment purpose "I want to limit adjustments" allows an inexperienced worker to take over the setting know-how of an experienced worker as priority information. For example, if priority information is created so that setting items that do not need to be adjusted are not set when an image processing program is executed, an inexperienced worker can select the adjustment purpose "I want to limit adjustments" to make adjustments while excluding setting items that do not need to be adjusted from the settings.
  • the setting unit 113 may have a function to display a functional module in the process flow display area 213 so that the user can recognize it when there is a setting item with a priority assigned according to the selected adjustment purpose for a certain functional module.
  • FIG. 8 shows an example in which a functional module including a setting item with a priority assigned according to the adjustment purpose is highlighted in the process flow display area 213 in which the process flow of the image processing program P1 is displayed.
  • the adjustment purpose is "to increase the processing speed”
  • the "imaging function M1" and the "pattern matching function M2" include setting items with a priority assigned, and these "imaging function M1" and “pattern matching function M2" are highlighted.
  • the processing blocks of the imaging function M1 and the pattern matching function M2 are highlighted by thickening the borders.
  • Other methods for highlighting the processing blocks in the process flow display area 213 may be used.
  • the setting unit 113 may display, with a stronger emphasis, functional blocks including setting items that should be set with higher priority among the functional blocks that should be highlighted in the processing flow display area 213.
  • FIG. 8 shows an example in which the processing block of the imaging function M1 is displayed with more emphasis than the processing block of the pattern matching function M2 because the imaging function M1 includes setting items with a higher priority than the pattern matching function M2.
  • the processing block of the imaging function M1 is displayed with a thicker frame than the processing block of the pattern matching function M2.
  • the setting unit 113 sets the priority of one or more setting items related to the selected adjustment purpose according to preset priority information.
  • the setting unit 113 may have a function of switching the priority set according to the priority information according to various situations related to the setting or execution of the image processing program. Note that switching the priority may include assigning a priority to a setting item to which a priority has not been assigned (i.e., a setting item to which a priority has been assigned zero), or canceling the priority of a setting item to which a priority has been assigned.
  • the setting unit 113 may have one or more of the following functions (F1) to (F3).
  • (F1) A function for switching the priority of setting items based on the actual processing time for each function of the image processing program.
  • F2 A function for switching the priority of each setting item in the image processing program according to the current setting value of the setting item.
  • F3 A function for switching the priority of setting items according to the execution status of the image processing program.
  • the processing time acquisition unit 114 can acquire the processing time per function when the image processing program P1 is executed from the image processing device 20 (processing time measurement unit 123). For example, it is assumed that the processing time acquisition unit 114 has determined that angle search is dominant in pattern matching (or in the entire image processing) from the measured values of processing time per function, such as angle search and size search in pattern matching.
  • the setting unit 113 may set the "angle threshold" of the pattern matching function M2 as the setting item with the highest priority, or may switch the priority of the "angle threshold” to a value higher than the current value.
  • the setting unit 113 determines, from the measured value of the processing time for each function, - Set the priority of the setting item that corresponds to the function that takes the longest time to process to the highest priority, - Raise the priority of settings that correspond to functions that take longer to process than other functions, or The priority of a setting item corresponding to a function whose processing time is shorter than that of other functions may be lowered.
  • the setting items to which priority has been assigned by the priority information include the pattern matching score threshold and the contrast threshold.
  • Setting the score threshold high is effective in taking measures against false detection, but if the current score threshold is already set to a high value, there is no room left for adjusting the score threshold. In such a situation, the setting unit 113 may lower the priority of the score threshold, or cancel the assignment of priority to the score threshold. That is, the setting unit 113 may lower the emphasis level of the score threshold, or may not perform emphasis display. In addition, in a situation where there is no room left for adjusting the score threshold, the importance of adjusting the contrast threshold increases. Therefore, the setting unit 113 may, for example, switch the priority of the contrast threshold to a higher value, so that the priority of the contrast threshold becomes higher than the priority of the score threshold.
  • a first example of the function (F3) will be described.
  • the purpose of adjustment is to "take measures against non-detection.”
  • the setting unit 113 may assign priority to the exposure time and the illumination intensity so that they are adjusted.
  • the situation where the captured image is dark overall may be determined, for example, by the state analysis unit 115 acquiring and analyzing an image obtained by executing an image processing program from the image processing device 20 (image processing unit 122).
  • the state analysis unit 115 may determine the degree of brightness of the entire image based on, for example, a histogram of the luminance values of each pixel of the captured image.
  • the setting unit 113 may additionally apply the function (F2) described above, assign priority only to the illumination intensity, and display only the illumination intensity in an emphasized manner.
  • the setting unit 113 may assign a priority to the setting item of the model setting or switch the priority of the model setting to a higher value in order to prompt re-registration of the model of the pattern matching function for the adjustment purpose of "improving detection accuracy".
  • the state of stability of the detection result of the object's position can be realized by the state analysis unit 115 acquiring the detection result of the object when the image processing program is executed multiple times from the image processing device 20 (image processing unit 122) and analyzing the detection position of the object based on the detection results. For example, in a situation where the position where the object is placed is constant, when the variation in the detection position of the object over multiple times is equal to or greater than a certain value, the state analysis unit 115 may determine that the detection result of the object's position is unstable.
  • This function allows the priority state (degree of emphasis) of the setting items displayed in the setting area 214 to be switched to contents that reflect the settings and execution status of the image processing program.
  • FIG. 9 is a flowchart showing the basic operations of a process (setting adjustment method) for adjusting the setting items of an image processing program provided by the programming device 10.
  • This setting item adjustment process is executed under the control of the processor 11 of the programming device 10.
  • the setting unit 113 displays a list of adjustment objects selectable in a first area (adjustment object selection area 212) on the setting screen 200 (step S1).
  • the setting unit 113 displays one or more setting items related to the selected adjustment purpose in the second area (setting area 214) so that the priority according to the selected adjustment purpose can be recognized (step S2).
  • the setting unit 113 then accepts adjustment operations for the one or more setting items in the second area (setting area 214) (step S3).
  • the setting unit 113 displays in the setting area 214 the setting items that should be preferentially set according to the adjustment purpose in a recognizable manner.
  • the setting unit 113 may have a function of displaying guidance information for the setting items that should be preferentially set.
  • Information that associates the setting items with the guidance information may be stored in advance in the storage unit 12, and the setting unit 113 may be configured to display the guidance information based on this information.
  • the setting item screen 301a shown in FIG. - Display a message saying “We recommend shortening the exposure time” as guidance information next to the setting item "Exposure time”.
  • Such guidance information may be constantly displayed next to the setting item, for example in a balloon display format, or may be displayed in a pop-up format when the cursor is placed over the setting item. By displaying guidance information in this manner, the worker can adjust the setting items more easily and efficiently.
  • the operator can easily and efficiently make settings according to the adjustment purpose by simply selecting the adjustment purpose when programming the image processing program.
  • the functional allocation in the functional block diagram of the programming device 10 and image processing device 20 shown in FIG. 2 is an example, and various examples of functional allocation are possible.
  • the image processing system 100 can also be applied to a robot system configured to detect an object using a visual sensor and handle it using a robot.
  • the functions of the image processing device 20 and the programming device 10 may be incorporated into the robot control device.
  • the functions of the image processing device 20 and the entire functions of the programming device 10 may be incorporated into a teaching device connected to the robot control device.
  • the functional blocks in the functional block diagram of the programming device shown in FIG. 2 may be realized by one or more processors of the programming device executing various software stored in a storage device, or may be realized by a configuration mainly consisting of hardware such as an ASIC (Application Specific Integrated Circuit).
  • the functional blocks in the functional block diagram of the image processing device shown in FIG. 2 may be realized by one or more processors of the image processing device executing various software stored in a storage device, or may be realized by a configuration mainly consisting of hardware such as an ASIC (Application Specific Integrated Circuit).
  • the programs for executing various processes such as the setting item adjustment process of FIG. 9 in the above-mentioned embodiment can be recorded on various computer-readable recording media (for example, semiconductor memory such as ROM, EEPROM, flash memory, magnetic recording media, and optical disks such as CD-ROM and DVD-ROM).
  • semiconductor memory such as ROM, EEPROM, flash memory, magnetic recording media, and optical disks such as CD-ROM and DVD-ROM.
  • a programming device comprising: a program creation unit (111) that provides a function for creating an image processing program that executes image processing on an image captured by a visual sensor (30); and a setting unit (113) that accepts settings related to the image processing, wherein the setting unit (113) displays a plurality of adjustment purposes related to the image processing in a selectable manner on a display screen, and displays one or more setting items related to one adjustment purpose selected from the plurality of adjustment purposes in a manner that allows a priority according to the selected adjustment purpose to be recognized.
  • Appendix 2 The programming device (10) described in Appendix 1, wherein the setting unit (113) displays one or more setting items to which a priority has been assigned according to the selected adjustment purpose in a manner that is more emphasized than setting items to which the priority has not been assigned.
  • Appendix 3 The programming device (10) according to claim 1 or 2, wherein the setting unit (113) displays one or more setting items to which a priority corresponding to the selected adjustment purpose has been assigned such that a setting item having a higher priority corresponding to the selected adjustment purpose is more strongly highlighted.
  • the programming device (10) according to any one of appendices 1 to 3, further comprising a memory unit (12) that stores priority information that associates, for each of the multiple adjustment purposes, at least one setting item related to the adjustment purpose with a priority for the at least one setting item according to the adjustment purpose, and the setting unit (113) assigns a priority corresponding to the selected adjustment purpose to one or more setting items related to the selected adjustment purpose based on the priority information.
  • the setting unit (113) switches the priority assigned to one or more setting items related to the selected adjustment purpose based on the priority information, based on the setting or execution state of the image processing program.
  • (Appendix 6) The programming device (10) described in Appendix 5, wherein the setting unit (113) switches the priority assigned to one or more setting items related to the selected adjustment objective based on the priority information, based on current setting values of the one or more setting items related to the selected adjustment objective.
  • (Appendix 7) The programming device (10) described in Appendix 6, wherein the setting unit (113) lowers the priority or cancels the priority of a setting item that is determined to have no room for adjustment based on current setting values of one or more setting items related to the selected adjustment purpose.
  • the programming device (10) described in Appendix 5 further comprises a processing time measurement unit (123) capable of measuring the processing time on a functional basis corresponding to each setting item when the image processing program is executed, and the setting unit (113) switches the priority assigned to one or more setting items related to the selected adjustment purpose based on the priority information, based on the measured value of the processing time on a functional basis corresponding to each setting item when the image processing is executed.
  • (Appendix 10) The programming device (10) according to any one of appendices 1 to 9, wherein the setting unit (113) displays a setting screen including a first area displaying the plurality of adjustment objectives and a second area displaying one or more setting items related to the selected adjustment objective, and a display state of the second area is switched according to a priority corresponding to the selected adjustment objective.
  • the plurality of adjustment purposes include one or more of: increasing processing speed, taking measures against erroneous detection, taking measures against non-detection, improving detection accuracy, or limiting adjustment items.
  • (Appendix 12) The programming device (10) according to any one of appendices 1 to 11, wherein the setting unit (113) additionally displays guidance information corresponding to the selected adjustment purpose for at least one of the one or more setting items displayed so that the priority can be recognized.
  • (Appendix 13) A method for adjusting settings related to image processing in a programming device (10), comprising: displaying a plurality of adjustment objectives related to the image processing in a selectable manner in a first area on a display screen; displaying one or more setting items related to one adjustment objective selected from the plurality of adjustment objectives in a second area on the display screen so that a priority according to the selected one adjustment objective can be recognized; and accepting adjustment operations for the one or more setting items in the second area.
  • Appendix 14 A program for causing a computer processor to execute the steps of: displaying a plurality of adjustment purposes related to image processing in a selectable manner in a first area on a display screen; displaying one or more setting items related to one adjustment purpose selected from the plurality of adjustment purposes in a second area on the display screen so that a priority according to the selected one adjustment purpose can be recognized; and accepting adjustment operations for the one or more setting items in the second area.

Landscapes

  • Studio Devices (AREA)

Abstract

The present invention is a programming device comprising: a program generation part that provides a function to generate an image processing program for executing image processing of an image captured by a visual sensor; and a setting part that receives settings related to the image processing. The setting part displays, in a display screen, a plurality of adjustment purposes related to the image processing in a selectable manner, and displays one or more setting items related to one adjustment purpose selected from the plurality of adjustment purposes so that the priority corresponding to the selected one adjustment purpose can be recognized.

Description

プログラミング装置、設定調整方法、及びプログラムPROGRAMMING DEVICE, SETTING ADJUSTMENT METHOD, AND PROGRAM
 本開示は、プログラミング装置、及び当該プログラミング装置上で実行される設定調整方法及びプログラムに関する。 This disclosure relates to a programming device, and a setting adjustment method and program executed on the programming device.
 カメラで対象物を撮像した画像を画像処理し、対象物の検出や検査を行うように構成された画像処理システムが知られている。これに関し、特許文献1及び2は、計測条件を設定するための設定画面を提示可能な画像処理装置の構成例を記載する。 There is known an image processing system that processes an image of an object captured by a camera and detects and inspects the object. In this regard, Patent Documents 1 and 2 describe examples of the configuration of an image processing device that can present a setting screen for setting measurement conditions.
特開2008-123034号公報JP 2008-123034 A 特開2016-120565号公報JP 2016-120565 A
 上述したような画像処理装置で使用される画像処理プログラムは、なるべく幅広い品種の対象物に対応できるように設定項目が多くなりがちである。そのため、このような画像処理プログラムの作業者が、目的に沿った必要な設定項目を見つけ出して適切に設定を行うことは一般にはスキルを要する難しい作業となる。画像処理プログラムの設定項目の設定、調整等のプログラミングを容易且つ効率的に行うことを可能とする技術が望まれている。 The image processing programs used in image processing devices such as those described above tend to have many setting items so that they can be used for as wide a variety of objects as possible. For this reason, it is generally a difficult task that requires skill for the operator of such image processing programs to find the necessary setting items according to the purpose and set them appropriately. There is a demand for technology that makes it possible to easily and efficiently program the setting items and adjustments of image processing program settings.
 本開示の一態様は、視覚センサにより撮像された画像に対する画像処理を実行する画像処理プログラムを作成するための機能を提供するプログラム作成部と、前記画像処理に係わる設定を受け付ける設定部と、を備え、前記設定部は、表示画面において、前記画像処理に係わる複数の調整目的を選択可能に表示するとともに、前記複数の調整目的から選択された一つの調整目的に関連する1以上の設定項目を、前記選択された一つの調整目的に応じた優先度が認識できるように表示する、プログラミング装置である。 One aspect of the present disclosure is a programming device that includes a program creation unit that provides a function for creating an image processing program that executes image processing on an image captured by a visual sensor, and a setting unit that accepts settings related to the image processing, and the setting unit displays a plurality of adjustment purposes related to the image processing on a display screen in a selectable manner, and displays one or more setting items related to one adjustment purpose selected from the plurality of adjustment purposes in a manner that allows the user to recognize the priority according to the one selected adjustment purpose.
 添付図面に示される本発明の典型的な実施形態の詳細な説明から、本発明のこれらの目的、特徴および利点ならびに他の目的、特徴および利点がさらに明確になるであろう。 These and other objects, features and advantages of the present invention will become more apparent from the detailed description of exemplary embodiments of the present invention illustrated in the accompanying drawings.
一実施形態に係るプログラミン装置を含む画像処理システムの構成を表す図である。1 is a diagram illustrating a configuration of an image processing system including a programming device according to an embodiment. プログラミング装置及び画像処理装置の機能ブロック図である。FIG. 2 is a functional block diagram of a programming device and an image processing device. プログラミングを行うためのユーザインタフェースとしての設定画面の例を示す図である。FIG. 11 is a diagram showing an example of a setting screen serving as a user interface for programming. 処理フロー表示エリアにおいて設定され表示されている画像処理プログラムの例を示す図である。13A and 13B are diagrams showing an example of an image processing program that is set and displayed in a processing flow display area. 画像処理プログラムを構成する各機能モジュールに対応付けられた設定項目の例を示す図である。5 is a diagram showing examples of setting items associated with each functional module constituting an image processing program. FIG. 調整目的選択エリアに選択可能に表示された調整目的の例を示す図である。13A and 13B are diagrams showing examples of adjustment purposes displayed selectably in an adjustment purpose selection area. 調整目的「処理速度を早くしたい」が選択された場合に、設定エリアに表示される設定項目の表示態様の例を示す図である。FIG. 13 is a diagram showing an example of a display mode of setting items displayed in a setting area when an adjustment purpose "increase processing speed" is selected. 画像処理プログラムの処理フローが表示された処理フロー表示エリアにおいて、調整目的に応じた優先度が付与された設定項目が含まれる機能モジュールを強調して表示した例を示す図である。13 is a diagram showing an example in which functional modules including setting items to which priorities according to adjustment purposes have been assigned are highlighted in a processing flow display area in which the processing flow of an image processing program is displayed. FIG. 画像処理プログラムの設定項目の調整のための処理の基本動作を表すフローチャートである。4 is a flowchart showing a basic operation of a process for adjusting a setting item of an image processing program.
 次に、本開示の実施形態について図面を参照して説明する。参照する図面において、同様の構成部分または機能部分には同様の参照符号が付けられている。理解を容易にするために、これらの図面は縮尺を適宜変更している。また、図面に示される形態は本発明を実施するための一つの例であり、本発明は図示された形態に限定されるものではない。 Next, an embodiment of the present disclosure will be described with reference to the drawings. In the drawings, similar components or functional parts are given similar reference symbols. The scale of these drawings has been appropriately changed to facilitate understanding. Furthermore, the form shown in the drawings is one example for implementing the present invention, and the present invention is not limited to the form shown.
 図1は一実施形態に係るプログラミング装置を含む画像処理システム100の構成を表す図である。図1に示すように画像処理システム100は、プログラミング装置10と、プログラミング装置10に接続された画像処理装置20と、画像処理装置20に接続された視覚センサ30及び照明装置31とを含む。画像処理システム100は、視覚センサ30により対象物90を撮像し、撮像した画像に対して対象物90の検出、検査等の様々な画像処理を実行可能に構成されている。画像処理システム100において、プログラミング装置10は、視覚センサ30による撮像及び撮像された画像に対する画像処理に係わる様々なプログラムの作成を行う機能を提供する。画像処理装置20は、プログラミング装置10からの指令に基づき視覚センサ30及び照明装置31の制御及び画像処理を行う機能を担う。 FIG. 1 is a diagram showing the configuration of an image processing system 100 including a programming device according to one embodiment. As shown in FIG. 1, the image processing system 100 includes a programming device 10, an image processing device 20 connected to the programming device 10, and a visual sensor 30 and a lighting device 31 connected to the image processing device 20. The image processing system 100 is configured to capture an image of an object 90 using the visual sensor 30, and to perform various image processing such as detection and inspection of the object 90 on the captured image. In the image processing system 100, the programming device 10 provides a function for creating various programs related to the capture of images by the visual sensor 30 and image processing of the captured images. The image processing device 20 is responsible for the function of controlling the visual sensor 30 and the lighting device 31 and performing image processing based on commands from the programming device 10.
 なお、本明細書において、画像処理プログラムのプログラミングには、命令文、機能モジュール、アイコン等によりプログラムを作成することの他、設定項目の設定や調整を行うことにより画像処理プログラムとしての機能を完成させることを含む。 In this specification, programming an image processing program includes creating a program using command statements, function modules, icons, etc., as well as completing the function of the image processing program by setting and adjusting configuration items.
 プログラミング装置10として、タブレット端末等の各種情報処理装置を用いることができる。プログラミング装置10は、プロセッサ11、メモリ(ROM、RAM、不揮発性メモリ等)、記憶部12、表示部13、操作部14、入出力インタフェース、ネットワークインタフェース等を有する一般的なコンピュータとしてのハードウェア構成を有していても良い(図2参照)。表示部13はフラットパネル型ディスプレイ(液晶ディスプレイ等)であってもよい。操作部14は、ディスプレイと一体化されたタッチパネル式の入力装置であってもよい。 The programming device 10 can be any information processing device, such as a tablet terminal. The programming device 10 may have a hardware configuration as a general computer having a processor 11, memory (ROM, RAM, non-volatile memory, etc.), a storage unit 12, a display unit 13, an operation unit 14, an input/output interface, a network interface, etc. (see FIG. 2). The display unit 13 may be a flat panel display (such as a liquid crystal display). The operation unit 14 may be a touch panel input device integrated with the display.
 視覚センサ30は、濃淡画像やカラー画像を撮像する2次元カメラでも、距離画像を取得できるステレオカメラや3次元センサでもよい。画像処理装置20は、対象物のモデルパターンを保持しており、撮像画像中の対象とモデルパターンとのパターンマッチングにより対象物を検出する画像処理を実行することができる。 The visual sensor 30 may be a two-dimensional camera that captures grayscale or color images, or a stereo camera or three-dimensional sensor that can obtain distance images. The image processing device 20 holds a model pattern of the object, and can perform image processing to detect the object by pattern matching between the object in the captured image and the model pattern.
 画像処理装置20は、画像処理専用の装置として構成されていてもよく、或いは、PC(パーソナルコンピュータ)等の汎用の情報処理装置により構成されていてもよい。画像処理装置20は、プロセッサ21、メモリ(ROM、RAM、不揮発性メモリ等)、記憶部22、入出力インタフェース、ネットワークインタフェース等を有する一般的なコンピュータとしてのハードウェア構成を有していても良い(図2参照)。画像処理装置20は、ハードウェア構成要素として、更に、表示部や操作部を有していてもよい。 The image processing device 20 may be configured as a device dedicated to image processing, or may be configured as a general-purpose information processing device such as a PC (personal computer). The image processing device 20 may have a hardware configuration as a general computer having a processor 21, memory (ROM, RAM, non-volatile memory, etc.), a storage unit 22, an input/output interface, a network interface, etc. (see FIG. 2). The image processing device 20 may further have a display unit and an operation unit as hardware components.
 図1では、画像処理装置20はプログラミング装置10とは別の装置として構成されている例を示しているが、画像処理装置20としての機能がプログラミング装置10内に搭載されていてもよい。 In FIG. 1, an example is shown in which the image processing device 20 is configured as a device separate from the programming device 10, but the functions of the image processing device 20 may be built into the programming device 10.
 図2は、プログラミング装置10及び画像処理装置20の機能ブロック図を示す。 FIG. 2 shows a functional block diagram of the programming device 10 and the image processing device 20.
 図2に示すように、プログラミング装置10は、プログラム作成部111と、プログラム実行部112と、設定部113と、処理時間取得部114と、状態解析部115とを備える。これらの機能ブロックは、プログラミング装置10のプロセッサ11がソフトウェアを実行することで実現されるものであってもよい。また、図2には、プログラミング装置10の記憶部12を示す。記憶部12は、例えば不揮発性メモリ、或いはハードディスクドライブにより構成されていてもよい。 As shown in FIG. 2, the programming device 10 includes a program creation unit 111, a program execution unit 112, a setting unit 113, a processing time acquisition unit 114, and a status analysis unit 115. These functional blocks may be realized by the processor 11 of the programming device 10 executing software. FIG. 2 also shows the memory unit 12 of the programming device 10. The memory unit 12 may be configured, for example, from a non-volatile memory or a hard disk drive.
 プログラム作成部111は、視覚センサ30による撮像及び撮像画像に対する画像処理に関するプログラム等の各種プログラムを作成するための機能を提供する。例えば、プログラム作成部111は、プログラム作成のためのプログラム作成画面を表示し、プログラミングのためのユーザ入力を受け付ける。プログラム作成部111は、テキストベースの命令文の入力によるプログラミングのほか、機能モジュールやアイコンベースでのプログラミングを受け付けるように構成されていてもよい。また、プログラム作成部111は、作成したプログラムを記憶部12に登録する機能を備える。 The program creation unit 111 provides a function for creating various programs, such as programs related to capturing images by the visual sensor 30 and image processing of the captured images. For example, the program creation unit 111 displays a program creation screen for creating programs and accepts user input for programming. The program creation unit 111 may be configured to accept programming based on input of text-based commands, as well as programming based on functional modules or icons. The program creation unit 111 also has a function for registering the created programs in the storage unit 12.
 プログラム実行部112は、作成されたプログラムを実行する機能を提供する。プログラム実行部112は、プログラムに基づく指令を画像処理装置20に送出して撮像や画像処理を実行させる。 The program execution unit 112 provides a function for executing the created program. The program execution unit 112 sends commands based on the program to the image processing device 20 to perform image capture and image processing.
 設定部113は、画像処理に関する各種設定項目を表示すると共に、設定項目に対する設定値の入力を受け付ける機能を提供する。設定部113は、作業者が画像処理のパラメータ設定を効率的に行うことができるように、画像処理の調整目的を選択可能に表示し、作業者による調整目的の選択に応じて、選択された調整目的に関連する設定項目を表示する機能を有する。更に、設定部113は、複数の調整目的から選択された一つの調整目的に関連する1以上の設定項目を、選択された一つの調整目的に応じた優先度が認識できるように表示する機能を有する。これにより、作業者は、選択した調整目的に関連する設定項目について調整目的に応じた優先度を認識することができ、効率的に設定を行うことができる。 The setting unit 113 displays various setting items related to image processing, and provides a function for accepting input of setting values for the setting items. The setting unit 113 has a function for displaying selectable adjustment purposes for image processing so that an operator can efficiently set parameters for image processing, and for displaying setting items related to the selected adjustment purpose in response to the adjustment purpose selected by the operator. Furthermore, the setting unit 113 has a function for displaying one or more setting items related to one adjustment purpose selected from multiple adjustment purposes, so that the priority according to the selected adjustment purpose can be recognized. This allows the operator to recognize the priority according to the adjustment purpose for the setting items related to the selected adjustment purpose, and allows efficient setting.
 各調整目的に対し、当該調整目的に関連する設定項目と、当該調整目的に関連する設定項目についての当該調整目的に応じた優先度とを関連付けた情報(以下、優先度情報とも記載する)は、例えば、予め設定され記憶部12に格納されていてもよい。優先度情報は、一例として、以下の表1で示すようなデータ構造を有する。なお、下記表1に示す優先度情報では、調整目的Aに対して、それに関連する設定項目である設定項目A1及びA2と、それら設定項目A1及びA2についての調整目的Aに応じた優先度とが関連付けられている。また、下記表1に示す優先度情報では、調整目的Bに対して、それに関連する設定項目である設定項目B1及びB2と、それら設定項目B1及びB2についての調整目的Bに応じた優先度とが関連付けられている。 For each adjustment purpose, information associating the setting items related to the adjustment purpose with the priority of the setting items related to the adjustment purpose according to the adjustment purpose (hereinafter also referred to as priority information) may be set in advance and stored in the storage unit 12, for example. As an example, the priority information has a data structure as shown in Table 1 below. Note that in the priority information shown in Table 1 below, adjustment purpose A is associated with setting items A1 and A2, which are related setting items, and the priority of those setting items A1 and A2 according to adjustment purpose A. Also, in the priority information shown in Table 1 below, adjustment purpose B is associated with setting items B1 and B2, which are related setting items, and the priority of those setting items B1 and B2 according to adjustment purpose B.
 設定部113は、このような優先度情報を用いて、複数の調整目的から選択された一つの調整目的に関連する1以上の設定項目を、選択された一つの調整目的に応じた優先度が認識できるように表示することができる。 The setting unit 113 can use such priority information to display one or more setting items related to one adjustment purpose selected from multiple adjustment purposes in such a way that the priority according to the selected adjustment purpose can be recognized.
 処理時間取得部114は、画像処理装置20において画像処理が実行される際に当該画像処理に係る各機能単位で実際にかかった処理時間を処理時間測定部123から取得することができる。例えば、処理時間取得部114は、対象物を検出するためのパターンマッチにおける一つの機能単位としての、対象物の角度を検索する処理の所要時間を取得することができる。 The processing time acquisition unit 114 can acquire from the processing time measurement unit 123 the processing time actually required for each functional unit related to image processing when image processing is executed in the image processing device 20. For example, the processing time acquisition unit 114 can acquire the time required for processing to search for the angle of an object as one functional unit in pattern matching for detecting the object.
 状態解析部115は、画像処理装置20と連携し、画像処理プログラムの実行に係わる状態を取得し解析する機能を有する。 The status analysis unit 115 cooperates with the image processing device 20 and has the function of acquiring and analyzing the status related to the execution of the image processing program.
 記憶部12は、プログラム、画像処理のプログラムに関する各種設定、優先度情報等を記憶する。 The storage unit 12 stores programs, various settings related to image processing programs, priority information, etc.
 図2に示すように、画像処理装置20は、視覚センサ制御部121と、画像処理部122と、処理時間測定部123とを備える。これらの機能ブロックは、画像処理装置20のプロセッサ21がソフトウェアを実行することで実現されるものであってもよい。また、図2には、画像処理装置20の記憶部22を示す。記憶部22は、例えば不揮発性メモリ、或いはハードディスクドライブにより構成されていてもよい。 As shown in FIG. 2, the image processing device 20 includes a visual sensor control unit 121, an image processing unit 122, and a processing time measurement unit 123. These functional blocks may be realized by the processor 21 of the image processing device 20 executing software. FIG. 2 also shows the memory unit 22 of the image processing device 20. The memory unit 22 may be configured, for example, from a non-volatile memory or a hard disk drive.
 視覚センサ制御部121は、プログラミング装置10から送られてくる指令に従って視覚センサ30を制御する。画像処理部122は、視覚センサ30が撮像した画像に対する各種画像処理を実行する機能を担う。処理時間測定部123は、画像処理部122による画像処理が実行される場合において、各設定項目に対応する機能単位での実際の処理時間を測定する機能を提供する。処理時間測定部123の機能は、例えば、画像処理プログラム内に、各機能毎の処理開始時間と処理終了時間とを内部タイマから取得して処理時間を求める機能を組み込むことで実現することができる。 The visual sensor control unit 121 controls the visual sensor 30 in accordance with commands sent from the programming device 10. The image processing unit 122 has the function of executing various image processing operations on the image captured by the visual sensor 30. The processing time measurement unit 123 provides a function of measuring the actual processing time for each function corresponding to each setting item when image processing is performed by the image processing unit 122. The function of the processing time measurement unit 123 can be realized, for example, by incorporating a function in the image processing program that obtains the processing start time and processing end time for each function from an internal timer and calculates the processing time.
 記憶部22は、画像データ、画像処理に係わる各種設定情報、対象物のモデルデータ等の各種情報を記憶する。 The storage unit 22 stores various information such as image data, various setting information related to image processing, and model data of the object.
 図3に、プログラミングを行うためのユーザインタフェースとしての設定画面200の例を示す。設定画面200はプログラム作成画面としての機能も備えている。設定画面200は、プログラム作成部111及び設定部113により提供される。プログラム作成部111及び設定部113は、設定画面200を表示部13に表示する。また、プログラム作成部111及び設定部113は、設定画面200に対する操作部14を介した入力を受け付ける。 FIG. 3 shows an example of a setting screen 200 as a user interface for programming. The setting screen 200 also functions as a program creation screen. The setting screen 200 is provided by the program creation unit 111 and the setting unit 113. The program creation unit 111 and the setting unit 113 display the setting screen 200 on the display unit 13. The program creation unit 111 and the setting unit 113 also accept input to the setting screen 200 via the operation unit 14.
 図3に示すように、設定画面200は、画像表示エリア211と、調整目的選択エリア212と、処理フロー表示エリア213と、設定エリア214とを含む。 As shown in FIG. 3, the setting screen 200 includes an image display area 211, an adjustment purpose selection area 212, a processing flow display area 213, and a setting area 214.
 画像表示エリア211は、視覚センサ30が撮像した画像を表示するためのエリアである。例えば、プログラミング装置10(プログラム実行部112)は、画像処理プログラムが実行され視覚センサ30により対象物90が撮像された画像Gを画像処理装置20から取得して画像表示エリア211に表示する。作業者は、画像表示エリア211上で、画像処理(検査等)に使用された画像を確認することができる。画像Gは、図1に示す状況において3つの対象物90が写された画像の例である。 The image display area 211 is an area for displaying the image captured by the visual sensor 30. For example, the programming device 10 (program execution unit 112) executes an image processing program and acquires an image G of the object 90 captured by the visual sensor 30 from the image processing device 20, and displays it in the image display area 211. The worker can check the image used for image processing (inspection, etc.) on the image display area 211. Image G is an example of an image showing three objects 90 in the situation shown in Figure 1.
 調整目的選択エリア212は、画像処理プログラムに係わる調整目的の一覧を表示し、調整目的の選択を受け付けるためのエリアである。設定部113は、調整目的選択エリア212に、複数の調整目的のリストを選択可能に表示する。設定部113は、調整目的のリストから一つの調整目的を選択するユーザ操作を受け付ける。 The adjustment purpose selection area 212 is an area for displaying a list of adjustment purposes related to the image processing program and accepting the selection of an adjustment purpose. The setting unit 113 displays a list of multiple selectable adjustment purposes in the adjustment purpose selection area 212. The setting unit 113 accepts a user operation to select one adjustment purpose from the list of adjustment purposes.
 処理フロー表示エリア213は、画像処理プログラムの処理フローの設定と表示を行うためのエリアである。プログラム作成部111は、作業者が機能モジュールを表すアイコンを処理フロー表示エリア213に処理フローに沿って並べる形でプログラミングを行う機能を提供することができる。作業者は、予め準備されている機能モジュールアイコンのリストから所望の機能アイコンを選択して処理フロー表示エリア213に配置することでプログラミングを行うことができる。 The processing flow display area 213 is an area for setting and displaying the processing flow of the image processing program. The program creation unit 111 can provide a function that enables an operator to perform programming by arranging icons representing functional modules in the processing flow display area 213 along the processing flow. An operator can perform programming by selecting a desired functional icon from a list of functional module icons prepared in advance and arranging it in the processing flow display area 213.
 設定エリア214は、画像処理プログラムに係わる設定項目を表示し、設定項目に対する入力或いは調整を行うためのエリアである。設定部113は、処理フロー表示エリア213上で選択された機能モジュールに関連する設定項目を表示しそれら設定項目に対する設定を受け付ける機能を有する。更に、設定部113は、設定エリア214上で、調整目的選択エリア212で選択された一つの調整目的に関連する1以上の設定項目を、選択された一つの調整目的に応じた優先度が認識できるように表示する機能を有する。 The setting area 214 is an area for displaying setting items related to the image processing program and for inputting or adjusting the setting items. The setting unit 113 has a function for displaying setting items related to a functional module selected in the processing flow display area 213 and accepting settings for those setting items. Furthermore, the setting unit 113 has a function for displaying, in the setting area 214, one or more setting items related to an adjustment purpose selected in the adjustment purpose selection area 212, so that the priority according to the selected adjustment purpose can be recognized.
 図4に、処理フロー表示エリア213において設定され表示されている画像処理プログラムP1の例を示す。画像処理プログラムP1は、対象物の検査を行うためのプログラムである。図4に示すように、画像処理プログラムP1は、撮像機能M1と、パターンマッチ機能M2と、長さ計測機能M3と、合否判定機能M4とを含んでいる。 FIG. 4 shows an example of an image processing program P1 that is set and displayed in the processing flow display area 213. The image processing program P1 is a program for inspecting an object. As shown in FIG. 4, the image processing program P1 includes an imaging function M1, a pattern matching function M2, a length measurement function M3, and a pass/fail determination function M4.
 撮像機能M1は、視覚センサ30により対象物を撮像する機能に対応する。パターンマッチ機能M2は、撮像画像から、対象物のモデルパターンを用いてパターンマッチによる対象物の検出を行う機能に対応する。長さ計測機能M3は、パターンマッチにより認識された対象物上の検査対象箇所の長さを計測する機能に対応する。長さ計測機能M3の例として、対象物が箱状のものである場合に対向する辺と辺の間の長さを計測する処理があり得る。合否判定機能M4は、長さ計測機能M3により計測された長さについて合否判定を行う機能に対応する。 The imaging function M1 corresponds to a function of capturing an image of an object using the visual sensor 30. The pattern matching function M2 corresponds to a function of detecting an object from the captured image by pattern matching using a model pattern of the object. The length measurement function M3 corresponds to a function of measuring the length of an inspection target portion on an object recognized by pattern matching. An example of the length measurement function M3 is a process of measuring the length between opposing sides when the object is box-shaped. The pass/fail judgment function M4 corresponds to a function of making a pass/fail judgment on the length measured by the length measurement function M3.
 作業者は、機能モジュールを処理フロー表示エリア213に順に配置し、各機能モジュールについて必要な設定項目の設定や調整を行うやり方でプログラミングを行うことができる。設定部113は、処理フロー表示エリア213において選択された機能モジュールの設定項目を設定エリア214に表示し、それらの設定項目に対する設定を受け付ける機能を有する。 The operator can perform programming by arranging the functional modules in the process flow display area 213 in order and setting and adjusting the necessary setting items for each functional module. The setting unit 113 has a function of displaying the setting items of the functional module selected in the process flow display area 213 in the setting area 214 and accepting settings for those setting items.
 図5を参照し、画像処理プログラムP1を構成する各機能モジュールに対応付けられた設定項目の例を示す。設定部113は、処理フロー表示エリア213において選択された機能モジュールに対応付けられた設定項目を設定エリア214に表示し設定を受け付ける。各機能モジュールとそれに関連する設定項目とを対応付けた情報は、予め記憶部12に格納されている。 Referring to FIG. 5, an example of setting items associated with each functional module constituting the image processing program P1 is shown. The setting unit 113 displays in the setting area 214 the setting items associated with the functional module selected in the processing flow display area 213 and accepts the settings. Information associating each functional module with its related setting items is stored in advance in the storage unit 12.
 図5に示されるように、撮像機能M1は、それに関連する設定項目として、カメラ選択、露光時間、照明強度、撮像回数、撮像領域、及び画像縮小率を含んでいる。撮像機能M1の選択に応じて設定エリア214に表示される設定項目の画面を設定項目画面301と称することとする。設定部113は、処理フロー表示エリア213上で撮像機能M1が選択されると、これらの設定項目を設定エリア214に表示し、それら設定項目に対する設定を受け付ける機能を有する。図5では、これらの設定項目に対して以下のように設定値が入力されている例を記載している。
カメラ選択:カメラ1
露光時間:200ms
照明強度:100%
撮像回数:1回
撮像領域:1280×1024pixel
画像縮小率:1/2
As shown in Fig. 5, the imaging function M1 includes the following setting items related to it: camera selection, exposure time, illumination intensity, number of images taken, imaging area, and image reduction ratio. The screen of the setting items displayed in the setting area 214 in response to the selection of the imaging function M1 is referred to as a setting item screen 301. When the imaging function M1 is selected on the process flow display area 213, the setting unit 113 has a function of displaying these setting items in the setting area 214 and accepting settings for these setting items. Fig. 5 shows an example in which the setting values are input for these setting items as follows:
Camera selection: Camera 1
Exposure time: 200 ms
Lighting Intensity: 100%
Number of shots: 1 Imaging area: 1280 x 1024 pixels
Image reduction ratio: 1/2
 パターンマッチ機能M2は、それに関連する設定項目として、モデル設定、スコア閾値、コントラスト閾値、サイズ閾値、角度閾値、検出個数上限、及び検出時間制限を含んでいる。マターンマッチ機能M2の選択に応じて設定エリア214に表示される設定項目の画面を設定項目画面302と称することとする。設定部113は、処理フロー表示エリア213上でパターンマッチ機能M2が選択されるとこれらの設定項目を設定エリア214に表示し、それら設定項目に対する設定を受け付ける機能を有する。図5では、これらの設定項目に対して以下のように設定値が入力されている例を記載している。
モデル設定:設定済み
スコア閾値:75%
コントラスト閾値:50
サイズ閾値:90から120%
角度閾値:-30から+30deg
検出個数上限:5
検出時間制限:30秒
The pattern matching function M2 includes, as its associated setting items, model setting, score threshold, contrast threshold, size threshold, angle threshold, upper limit of detection number, and detection time limit. The screen of setting items displayed in the setting area 214 in response to the selection of the pattern matching function M2 is referred to as a setting item screen 302. When the pattern matching function M2 is selected on the process flow display area 213, the setting unit 113 has a function of displaying these setting items in the setting area 214 and accepting settings for these setting items. Figure 5 shows an example in which the setting values are input for these setting items as follows:
Model Settings: Set score threshold: 75%
Contrast threshold: 50
Size Threshold: 90 to 120%
Angle threshold: -30 to +30 deg
Detection limit: 5
Detection time limit: 30 seconds
 長さ計測機能M3は、それに関連する設定項目として、入力、計測部位設定、コントラスト閾値、及び長さ閾値を含む。長さ計測機能M3の選択に応じて設定エリア214に表示される設定項目の画面を設定項目画面303と称することとする。設定部113は、処理フロー表示エリア213上で長さ計測機能M3が選択されるとこれらの設定項目を設定エリア214に表示し、それら設定項目に対する設定を受け付ける機能を有する。図5では、これらの設定項目に対して以下のように設定値が入力されている例を記載している。
・入力:パターンマッチ
・計測部位設定:設定済み
・コントラスト閾値:50
・長さ閾値:100から100pixel
The length measurement function M3 includes input, measurement region setting, contrast threshold, and length threshold as its associated setting items. The screen of setting items displayed in the setting area 214 in response to the selection of the length measurement function M3 is referred to as a setting item screen 303. When the length measurement function M3 is selected on the process flow display area 213, the setting unit 113 has a function of displaying these setting items in the setting area 214 and accepting settings for these setting items. Figure 5 shows an example in which the following setting values are input for these setting items:
Input: Pattern match Measurement area setting: Already set Contrast threshold: 50
Length threshold: 100 to 100 pixels
 合否判定機能M4は、それに関連する設定項目として、入力、判定基準、及び判定を含んでいる。合否判定機能M4の選択に応じて設定エリア214に表示される設定項目の画面を設定項目画面304と称することとする。設定部113は、処理フロー表示エリア213上で合否判定機能M4が選択されるとこれらの設定項目を設定エリア214に表示し、それら設定項目に対する設定を受け付ける機能を有する。図5では、これらの設定項目に対して以下のように設定値が入力されている例を記載している。
・入力:長さ計測
・判定基準:50>入力>25
・判定:範囲内なら合格
The pass/fail judgment function M4 includes input, judgment criteria, and judgment as its associated setting items. The screen of setting items displayed in the setting area 214 in response to the selection of the pass/fail judgment function M4 is referred to as the setting item screen 304. When the pass/fail judgment function M4 is selected in the process flow display area 213, the setting unit 113 has a function of displaying these setting items in the setting area 214 and accepting settings for these setting items. Figure 5 shows an example in which the following setting values are input for these setting items.
Input: Length measurement Criteria: 50>input>25
・Judgment: Pass if within range
 このように、プログラム作成部111及び設定部113は、処理フロー表示エリア213で画像処理プログラムを設定し、設定エリア214上で設定項目を表示して設定入力を受け付けるというプログラミングのため基本機能を提供することができる。 In this way, the program creation unit 111 and the setting unit 113 can provide basic programming functions, such as setting an image processing program in the processing flow display area 213, displaying setting items in the setting area 214, and accepting setting input.
 次に、設定部113が、調整目的選択エリア212で選択された一つの調整目的に関連する1以上の設定項目を、選択された一つの調整目的に応じた優先度が認識できるように表示する機能について説明する。 Next, we will explain the function of the setting unit 113 to display one or more setting items related to one adjustment purpose selected in the adjustment purpose selection area 212 so that the priority according to the selected adjustment purpose can be recognized.
 図6は、調整目的選択エリア212に選択可能に表示された調整目的の例を示す。ここに表示される調整目的は、画像処理に係わる作業者が一般にどのような調整を行うことを望むかを予め分析した結果に基づき設定されている。本例では、複数の調整目的は、
1.「標準」
2.「処理速度を早くしたい」
3.「誤検出対策をしたい」
4.「未検出対策をしたい」
5.「検出精度を良くしたい」
6.「調整を制限したい」
を含んでいる。
6 shows an example of selectable adjustment purposes displayed in the adjustment purpose selection area 212. The adjustment purposes displayed here are set based on the results of a prior analysis of what kind of adjustments workers involved in image processing generally want to make. In this example, the multiple adjustment purposes are as follows:
1. "Standard"
2. "I want to speed up processing."
3. "I want to take measures against false positives."
4. "I want to take measures against undetected viruses."
5. "I want to improve detection accuracy."
6. "I want to limit adjustments."
Contains:
 調整目的「標準」は、画像処理プログラムに関して作業者が標準的なパラメータ設定を望む場合に選択する項目である。調整目的「標準」が選択された場合、設定部113は、例えば、処理フロー表示エリア213上で設定されている画像処理プログラムに関する各設定項目に対する値として予め決められた標準値を設定して設定エリア214に表示してもよい。 The adjustment purpose "standard" is an item that is selected when the operator desires standard parameter settings for the image processing program. When the adjustment purpose "standard" is selected, the setting unit 113 may, for example, set predetermined standard values as values for each setting item for the image processing program set in the processing flow display area 213, and display them in the setting area 214.
 調整目的「処理速度を早くしたい」は、作業者が画像処理プログラムの処理速度を早くすることを望む場合に選択する項目である。設定部113は、調整目的「処理速度を早くしたい」が選択された場合、この調整目的に関連する1以上の設定項目を、この調整目的に応じた優先度が認識できるように設定エリア214に表示する。 The adjustment objective "I want to increase the processing speed" is an item that is selected when the operator wishes to increase the processing speed of the image processing program. When the adjustment objective "I want to increase the processing speed" is selected, the setting unit 113 displays one or more setting items related to this adjustment objective in the setting area 214 so that the priority according to this adjustment objective can be recognized.
 調整目的「誤検出対策をしたい」は、作業者が画像処理プログラムの誤検出を改善することを望む場合に選択する項目である。ここで誤検出とは、画像処理プログラムが、対象物でない対象を対象物として検出する事象を表す。設定部113は、調整目的「誤検出対策をしたい」が選択された場合、この調整目的に関連する1以上の設定項目を、この調整目的に応じた優先度が認識できるように設定エリア214に表示する。 The adjustment purpose "I want to take measures against false detection" is an item that is selected when the operator wishes to improve false detections in the image processing program. Here, false detection refers to an event in which the image processing program detects an object that is not the target object as the target object. When the adjustment purpose "I want to take measures against false detection" is selected, the setting unit 113 displays one or more setting items related to this adjustment purpose in the setting area 214 so that the priority according to this adjustment purpose can be recognized.
 調整目的「未検出対策をしたい」は、作業者が画像処理プログラムの未検出を改善することを望む場合に設定する項目である。ここで、未検出とは、画像処理プログラムが、本来検出されるべき対象物を検出できない事象を表す。設定部113は、調整目的「未検出対策をしたい」が選択された場合、この調整目的に関連する1以上の設定項目を、この調整目的に応じた優先度が認識できるように設定エリア214に表示する。 The adjustment purpose "I want to take measures against non-detection" is an item that is set when the operator wishes to improve the non-detection of the image processing program. Here, "non-detection" refers to an event in which the image processing program is unable to detect an object that should have been detected. When the adjustment purpose "I want to take measures against non-detection" is selected, the setting unit 113 displays one or more setting items related to this adjustment purpose in the setting area 214 so that the priority according to this adjustment purpose can be recognized.
 調整目的「検出精度をよくしたい」は、作業者がより精度の高い検出を望む場合に設定する項目である。設定部113は、調整目的「検出精度をよくしたい」が選択された場合、この調整目的に関連する1以上の設定項目を、この調整目的に応じた優先度が認識できるように設定エリア214に表示する。 The adjustment purpose "I want to improve detection accuracy" is an item that is set when the operator desires more accurate detection. When the adjustment purpose "I want to improve detection accuracy" is selected, the setting unit 113 displays one or more setting items related to this adjustment purpose in the setting area 214 so that the priority according to this adjustment purpose can be recognized.
 調整目的「調整を制限したい」は、作業者が、調整対象となる設定項目が制限され必要な設定項目のみが調整対象となる状態で設定を行うことを望む場合に選択される項目である。設定部113は、調整目的「調整を制限したい」が選択された場合、この調整目的に関連する1以上の設定項目を、この調整目的に応じた優先度が認識できるように設定エリア214に表示する。 The adjustment purpose "I want to limit adjustment" is an item that is selected when the operator wishes to perform settings in a state in which the setting items to be adjusted are limited and only the necessary setting items are subject to adjustment. When the adjustment purpose "I want to limit adjustment" is selected, the setting unit 113 displays one or more setting items related to this adjustment purpose in the setting area 214 so that the priority according to this adjustment purpose can be recognized.
 処理フロー表示エリア213に画像処理プログラムP1が設定されている状況において、調整目的「処理速度を早くしたい」が選択された場合に、設定エリア214に表示される設定項目の表示態様の例を図7に示す。ここでは、予め各設定項目に標準値が設定されている状況で、作業者が処理速度を早くする目的で、この調整目的「処理速度を早くしたい」を選択した場面を想定する。図7に例示するように、設定エリア214には、画像処理プログラムP1の各機能モジュールに関連する設定項目のうち、調整目的「処理速度を早くしたい」に応じて優先的に設定すべき設定項目が認識できるように表示される。 FIG. 7 shows an example of the display mode of the setting items displayed in the setting area 214 when the adjustment objective "I want to speed up processing speed" is selected when image processing program P1 is set in the processing flow display area 213. Here, we consider a situation in which standard values are set in advance for each setting item, and the worker selects this adjustment objective "I want to speed up processing speed" in order to speed up processing speed. As shown in the example in FIG. 7, the setting area 214 displays, in a recognizable manner, the setting items that should be given priority in accordance with the adjustment objective "I want to speed up processing speed" out of the setting items related to each functional module of image processing program P1.
 図7に示すように、処理フロー表示エリア213で撮像機能M1が選択されている場合に設定エリア214に表示される設定項目画面301は、図7において符号301aで示す表示態様となる。撮像機能M1の設定項目であるカメラ選択、露光時間、照明強度、撮像回数、撮像領域、画像縮小率のうち、露光時間、撮像回数、撮像領域、及び画像縮小率が処理速度に係わる。撮像領域は、撮像可能な領域のうち画像として取得する領域を指定する設定項目である。撮像領域を小さく設定することで処理時間を早くすることができる。画像縮小率は、画像を圧縮する度合いを指定する設定項目である。ここでは、画像縮小率の値を小さい値に設定するほど画像は小さくなり、画像処理に要する時間は早くなる。したがって、撮像機能M1に関する設定項目画面301aでは、設定項目としてのカメラ選択、露光時間、照明強度、撮像回数、撮像領域、画像縮小率のうち、露光時間、撮像回数、撮像領域、及び画像縮小率が強調表示されている。強調表示は、例えば、文字の大きさ、太さ、色、フォント等を変えるやり方で行ってもよい。 As shown in FIG. 7, when the imaging function M1 is selected in the processing flow display area 213, the setting item screen 301 displayed in the setting area 214 is in the display mode indicated by the reference symbol 301a in FIG. 7. Of the setting items of the imaging function M1, camera selection, exposure time, lighting intensity, number of times of imaging, imaging area, and image reduction ratio, the exposure time, number of times of imaging, imaging area, and image reduction ratio are related to the processing speed. The imaging area is a setting item that specifies the area of the imaging area that is to be acquired as an image. By setting the imaging area to a small value, the processing time can be shortened. The image reduction ratio is a setting item that specifies the degree to which the image is compressed. Here, the smaller the image reduction ratio is set to, the smaller the image will be, and the shorter the time required for image processing. Therefore, in the setting item screen 301a related to the imaging function M1, of the setting items of the camera selection, exposure time, lighting intensity, number of times of imaging, imaging area, and image reduction ratio, the exposure time, number of times of imaging, imaging area, and image reduction ratio are highlighted. Highlighting may be done, for example, by changing the size, weight, color, font, etc. of the text.
 また、これら4つの設定項目、露光時間、撮像回数、撮像領域、及び画像縮小率の中でも、露光時間と画像縮小率が特に画像処理の処理速度により強く係わるため、これら4つの設定項目のうちでも「露光時間」と「画像縮小率」はいっそう優先度が高い。したがって、上記4つの設定項目のうちでも「露光時間」と「画像縮小率」はいっそう強調して表示される。「露光時間」と「画像縮小率」の更なる強調表示は、例えば、文字の大きさ、太さ、色、フォント等を変えるやり方で行ってもよい。 Furthermore, among these four setting items, exposure time, number of captures, capture area, and image reduction ratio, exposure time and image reduction ratio are particularly closely related to the processing speed of image processing, so among these four setting items, "exposure time" and "image reduction ratio" have the highest priority. Therefore, among the above four setting items, "exposure time" and "image reduction ratio" are displayed with even more emphasis. Further emphasis of "exposure time" and "image reduction ratio" may be achieved, for example, by changing the size, thickness, color, font, etc. of the characters.
 図7に示すように、処理フロー表示エリア213でパターンマッチ機能M2が選択されている場合に設定エリア214に表示される設定項目画面302は、図7において符号302aで示す表示態様となる。パターンマッチ機能M2の設定項目であるモデル設定、スコア閾値、コントラスト閾値、サイズ閾値、角度閾値、検出個数上限、及び検出時間制限のうち、サイズ閾値及び角度閾値が処理速度に係わる。パターンマッチでは、教示した特徴(モデル特徴)と同じ特徴を画像の中から検索する処理が行われる。このとき、モデル特徴を回転させたりサイズを変更しながら探索が行われる。「角度閾値」は、この探索の際に特徴が回転する許容角度範囲を指定する。例えば、角度閾値が±0度に設定されていると特徴が回転していることが考慮されなくなるため探索が早くなる。「サイズ閾値」は、この探索の際に特徴のサイズの許容範囲を指定する。例えば、サイズ閾値を100%に設定すると、モデル特徴と同じサイズの特徴しか検索されなくなるため処理は早くなる。このようにパターンマッチ機能M2の設定項目のうちでは、サイズ閾値、角度閾値は処理速度に関係する。したがって、パターンマッチ機能M2に関する設定項目画面302aでは、この2つの設定項目、サイズ閾値及び角度閾値が他の設定項目と比較して強調表示される。 As shown in FIG. 7, when the pattern matching function M2 is selected in the processing flow display area 213, the setting item screen 302 displayed in the setting area 214 is in the display mode indicated by the reference symbol 302a in FIG. 7. Among the setting items of the pattern matching function M2, namely, model setting, score threshold, contrast threshold, size threshold, angle threshold, upper limit of number of detections, and detection time limit, the size threshold and angle threshold are related to the processing speed. In the pattern matching, a process is performed to search the image for a feature that is the same as the taught feature (model feature). At this time, the search is performed while rotating the model feature and changing its size. The "angle threshold" specifies the allowable angle range for the feature to rotate during this search. For example, if the angle threshold is set to ±0 degrees, the rotation of the feature is not taken into consideration, and the search becomes faster. The "size threshold" specifies the allowable range of the feature size during this search. For example, if the size threshold is set to 100%, only features of the same size as the model feature are searched, and the processing becomes faster. In this way, among the setting items of the pattern matching function M2, the size threshold and angle threshold are related to the processing speed. Therefore, on the setting item screen 302a for the pattern matching function M2, these two setting items, the size threshold and the angle threshold, are highlighted compared to the other setting items.
 このように作業者は、「処理速度を早くしたい」という調整目的に応じて優先的に設定すべき設定項目及びその優先度を認識し、調整目的に応じた的確な設定を効率的に行うことができる。 In this way, the operator can recognize which setting items should be prioritized and their priorities according to the adjustment objective, such as "I want to speed up processing," and can efficiently make appropriate settings according to the adjustment objective.
 なお、画像処理プログラム全体の処理時間を考慮した場合に、撮像機能M1について強調すべき設定項目とパターンマッチ機能M2について強調すべき設定項目との間に有効性に優劣がある場合には、更にその優劣を考慮して強調の度合いを設定するようにしてもよい。例えば、画像処理プログラム全体の処理時間を考慮した場合に、露光時間、撮像回数、撮像領域、画像縮小率、サイズ閾値、及び角度閾値に関して処理速度を向上させる有効性の度合い(優先度)が以下のような順序であるとする。

(露光時間,画像縮小率)>(撮像回数,撮像領域)>(サイズ閾値,角度閾値)

この場合には、設定部113は、露光時間と画像縮小率を最も強い強調度で表示し、次いで撮像回数と撮像領域を2番目に強い協調で表示し、サイズ閾値と角度閾値が3番目の強調度で表示されるようにしてもよい。
In addition, when the processing time of the entire image processing program is taken into consideration, if there is a difference in effectiveness between the setting items to be emphasized for the imaging function M1 and the setting items to be emphasized for the pattern matching function M2, the degree of emphasis may be set by further taking into consideration the difference in effectiveness. For example, when the processing time of the entire image processing program is taken into consideration, the degrees of effectiveness (priority) of improving the processing speed for the exposure time, the number of images captured, the imaging area, the image reduction rate, the size threshold, and the angle threshold are assumed to be in the following order:

(Exposure time, image reduction ratio)>(Number of images taken, image area)>(Size threshold, angle threshold)

In this case, the setting unit 113 may display the exposure time and image reduction ratio with the strongest emphasis, then the number of times images are captured and the captured area with the second strongest emphasis, and the size threshold and angle threshold with the third strongest emphasis.
 長さ計測機能M3については「処理速度を早くしたい」という調整目的に応じて優先的に設定すべき設定項目はないため、長さ計測機能M3に関連して表示される設定項目画面303では特に強調表示は行われない。合否判定機能M4についても「処理速度を早くしたい」という調整目的に応じて優先的に設定すべき設定項目はないため、合否判定機能M4に関連して表示される設定項目画面304では特に強調表示は行われない。 For the length measurement function M3, there is no setting item that should be given priority in accordance with the adjustment purpose of "I want to speed up the processing speed," so no special emphasis is given on the setting item screen 303 displayed in association with the length measurement function M3. For the pass/fail determination function M4, there is no setting item that should be given priority in accordance with the adjustment purpose of "I want to speed up the processing speed," so no special emphasis is given on the setting item screen 304 displayed in association with the pass/fail determination function M4.
 なお、図7に示す設定項目画面301a、302a、303及び304は、処理フロー表示エリア213に画像処理プログラムP1が設定されている状態で、調整目的選択エリア212で「処理速度を早くしたい」が選択されることに応じて、設定エリア214にウィンドウ形式で同時に表示されてもよい。 The setting item screens 301a, 302a, 303, and 304 shown in FIG. 7 may be displayed simultaneously in window format in the setting area 214 in response to the selection of "I want to increase the processing speed" in the adjustment objective selection area 212 when the image processing program P1 is set in the processing flow display area 213.
 なお、優先的に設定すべき設定項目を認識可能に表示する態様の例としては、上述した例以外にも、
・優先的に設定すべき設定項目に下線、枠線その他の画像を付加して強調して表示する、
・優先度の高さをマークの数で表し設定項目に横に表示する、
・優先的に設定すべき設定項目以外の設定項目を非表示又は弱表示にする、
といったやり方があり得る。なお、ここで「弱表示」は、文字の色を薄くする、文字サイズを小さくすること等により強調度を低下させて表示する意味で用いる。
In addition to the above-mentioned example, examples of the manner in which the setting items to be preferentially set are displayed in a recognizable manner include the following:
- Emphasize the setting items that should be set with priority by underlining, adding a border or other image.
- The priority level is indicated by the number of marks and displayed next to the setting item.
- Hide or weaken the display of settings other than those that should be set as a priority.
The term "weak display" used here means displaying text with a lowered emphasis by lightening the text color, reducing the text size, etc.
 調整目的が「誤検出対策をしたい」である場合には、この調整目的に応じて優先的に設定すべきた設定項目として、以下のような設定項目が強調して表示されてもよい。
・パターンマッチ機能の「スコア閾値」
・パターンマッチ機能の「コントラスト閾値」
・パターンマッチ機能の「モデル設定」
・パターンマッチ機能の「サイズ閾値」
・撮像機能の「露光時間」
If the adjustment purpose is "to take measures against erroneous detection," the following setting items may be displayed in an emphasized manner as setting items that should be preferentially set in accordance with this adjustment purpose.
- "Score threshold" for pattern matching function
- "Contrast threshold" for pattern matching function
・"Model Settings" for the Pattern Matching Function
- "Size threshold" for pattern matching function
・"Exposure time" of the imaging function
 パターンマッチの設定項目「スコア閾値」はパターンマッチにおいて画像上の対象について算出される一致度の閾値を指定する。パターンマッチのスコア閾値を高くすることで誤検出を低減する効果がある。パターンマッチの設定項目「コントラスト閾値」は画像上の特徴(例えば、対象物の輪郭)の背景に対するコントラストの閾値を指定する。パターンマッチのコントラストの閾値を高くすることで、はっきりと見える特徴だけをパターンマッチにかけることが可能となり、誤検出を低減する効果がある。パターンマッチの設定項目「モデル設定」は、モデル特徴を教示するための設定項目である。例えば、モデル設定を再度実行し、モデル特徴を増やすこと(例えば、モデル特徴を表すエッジ点の数を増加させること)は誤検出を低減する対策となる。パターンマッチのサイズ閾値を小さくすることは誤検出を低減するうえで効果がある。また、撮像機能の露光時間については、例えば露光時間を長くして画像上に余計な特徴が映らなくなるようにすることは誤検出を低減する効果がある。 The pattern match setting "Score threshold" specifies the threshold for the degree of match calculated for the target on the image in pattern matching. Increasing the score threshold of pattern matching has the effect of reducing false positives. The pattern match setting "Contrast threshold" specifies the contrast threshold for the background of the features on the image (e.g., the contour of the target). Increasing the contrast threshold of pattern matching makes it possible to subject only clearly visible features to pattern matching, which has the effect of reducing false positives. The pattern match setting "Model setting" is a setting item for teaching model features. For example, re-executing model setting and increasing model features (e.g., increasing the number of edge points that represent model features) is a measure to reduce false positives. Reducing the size threshold of pattern matching is effective in reducing false positives. In addition, for example, increasing the exposure time of the imaging function so that unnecessary features are not captured on the image has the effect of reducing false positives.
 誤検出対策に有効な上記5つの設定項目のうち、「スコア閾値」と「コントラストの閾値」が誤検出を低減する観点で特に有効性が高い設定項目であるため、設定部113は、上記5つの設定項目のうち「スコア閾値」と「コントラスト閾値」に他の設定項目よりも高い優先度を付与してもよい。したがって、設定部113は、上記5つの設定項目のうち「スコア閾値」と「コントラスト閾値」をよりいっそう強調して表示してもよい。 Of the above five setting items that are effective in countering false positives, the "score threshold" and "contrast threshold" are particularly effective in reducing false positives, and therefore the setting unit 113 may assign a higher priority to the "score threshold" and "contrast threshold" of the above five setting items than to the other setting items. Therefore, the setting unit 113 may display the "score threshold" and "contrast threshold" of the above five setting items with even greater emphasis.
 このように調整目的「誤検出対策をしたい」に関しても、作業者は、調整目的に応じて優先的に設定すべき設定項目及びその優先度を認識し、調整目的に応じた的確な設定を効率的に行うことができる。 In this way, even when the adjustment objective is "to take measures against false positives," the operator can recognize the setting items that should be prioritized according to the adjustment objective and their priorities, and can efficiently make appropriate settings according to the adjustment objective.
 調整目的が「未検出対策をしたい」である場合には。この調整目的に応じて優先的に設定すべき設定項目として、以下のような設定項目が強調して表示されてもよい。
・パターンマッチ機能の「スコア閾値」
・パターンマッチ機能の「コントラスト閾値」
・パターンマッチ機能の「サイズ閾値」
・撮像機能の「露光時間」
When the adjustment purpose is "to take measures against undetected problems," the following setting items may be displayed with emphasis as setting items that should be preferentially set according to this adjustment purpose.
- "Score threshold" for pattern matching function
- "Contrast threshold" for pattern matching function
- "Size threshold" for pattern matching function
・"Exposure time" of the imaging function
 パターンマッチ機能の「スコア閾値」を低くすることは未検出を低減する効果がある。パターンマッチ機能の「コントラスト閾値」を低くすることは未検出を低減する効果がある。パターンマッチ機能の「サイズ閾値」の幅を大きくすることは、未検出を低減する効果がある。撮像機能の「露光時間」を対象物の必要な特徴が現れるように調整することは、未検出を低減する効果がある。 Lowering the "score threshold" of the pattern matching function has the effect of reducing undetected cases. Lowering the "contrast threshold" of the pattern matching function has the effect of reducing undetected cases. Increasing the width of the "size threshold" of the pattern matching function has the effect of reducing undetected cases. Adjusting the "exposure time" of the imaging function so that the necessary features of the object are revealed has the effect of reducing undetected cases.
 未検出対策に有効な上記4つの設定項目のうちで、「スコア閾値」と「コントラスト閾値」は未検出を低減する観点で特に有効性が高い設定項目であるため、設定部113は、上記4つの設定項目のうちで「スコア閾値」と「コントラスト閾値」に他の設定項目よりも高い優先度を付与してもよい。したがって、設定部113は、未検出対策に有効な上記4つの設定項目のうち「スコア閾値」と「コントラスト閾値」をよりいっそう強調して表示してもよい。 Of the above four setting items that are effective in preventing non-detection, the "score threshold" and "contrast threshold" are particularly effective in reducing non-detection, and therefore the setting unit 113 may assign a higher priority to the "score threshold" and "contrast threshold" than to the other setting items among the above four setting items. Therefore, the setting unit 113 may display the "score threshold" and "contrast threshold" among the above four setting items that are effective in preventing non-detection with even more emphasis.
 このように調整目的「未検出対策をしたい」に関しても、作業者は、調整目的に応じて優先的に設定すべき設定項目及びその優先度を認識し、調整目的に応じた的確な設定を効率的に行うことができる。 In this way, even when the adjustment objective is "to take measures against undetected problems," the operator can recognize the setting items that should be prioritized according to the adjustment objective and their priorities, and can efficiently make appropriate settings according to the adjustment objective.
 調整目的が「検出精度を良くしたい」である場合には、この調整目的に応じて優先的に設定すべき設定項目として、以下のような設定項目が強調して表示されてもよい。
・パターンマッチ機能の「モデル設定」
・パターンマッチ機能の「コントラスト閾値」
・撮像機能の「画像縮小率」
When the adjustment purpose is "to improve detection accuracy," the following setting items may be displayed in an emphasized manner as setting items that should be preferentially set in accordance with this adjustment purpose.
・"Model Settings" for the Pattern Matching Function
- "Contrast threshold" for pattern matching function
・Image reduction ratio for the imaging function
 例えば、パターンマッチ機能の「モデル設定」でモデル特徴を再教示することにより、安定した特徴だけがモデル特徴として含まれるように再教示を行うことは、検出精度を改善するのに有効である。パターンマッチ機能の「コントラスト閾値」を高くすることは、検出精度を向上させる効果がある。撮像の「画像縮小率」を1に近づけることは、画像の解像度を上げることとなるため検出精度の向上に有効である。 For example, re-teaching the model features in the "Model Settings" of the pattern matching function so that only stable features are included as model features is effective in improving detection accuracy. Increasing the "Contrast Threshold" of the pattern matching function has the effect of improving detection accuracy. Increasing the "Image Reduction Ratio" of the image capture to a value closer to 1 increases the image resolution, which is effective in improving detection accuracy.
 検出精度を良くする観点で有効な上記3つの設定項目のうち、「モデル設定」と「コントラスト閾値」が特に検出精度の向上に有効であるため、設定部113は、これら3つの設定項目のうちで「モデル設定」と「コントラスト閾値」に他の設定項目よりも高い優先度を付与してもよい。したがって、設定部113は、検出精度を良くする観点で有効な上記3つの設定項目のうち「モデル設定」と「コントラスト閾値」をよりいっそう強調して表示してもよい。 Of the above three setting items that are effective in terms of improving detection accuracy, "Model setting" and "Contrast threshold" are particularly effective in improving detection accuracy, so the setting unit 113 may assign a higher priority to "Model setting" and "Contrast threshold" than to the other setting items among these three setting items. Therefore, the setting unit 113 may display "Model setting" and "Contrast threshold" with even more emphasis among the above three setting items that are effective in terms of improving detection accuracy.
 調整目的「調整を制限したい」は、設定項目を制限し必要な設定項目のみが設定対象となるようにしたい場合に選択される。例えば、作業者が画像処理システム100の日々の運用で合否判定の判定基準のみを変更するような運用を行っている状況では、この設定項目のみを操作の対象とし、他の設定項目を操作対象から除外することを望む場合がある。この場合、例えば、調整目的「調整を制限したい」が選択されたことに応じて、
・合否判定における「判定基準」のみが設定可能な設定項目として表示されるようにする、
・合否判定における「判定基準」のみが強調表示されるようにする、
・合否判定における「判定基準」以外の設定項目が弱表示(グレイアウト等)されるようにする、
といった表示例があり得る。
このような動作も、選択された一つの調整目的に関連する設定項目を、選択された一つの調整目的に応じた優先度が認識できるように表示する動作例の一つと考えることができる。
The adjustment purpose "I want to limit adjustment" is selected when it is desired to limit the setting items so that only necessary setting items are set. For example, in a situation where an operator changes only the pass/fail judgment criteria in the daily operation of the image processing system 100, it may be desired to operate only this setting item and exclude other setting items from the operation targets. In this case, for example, in response to the selection of the adjustment purpose "I want to limit adjustment",
- Only the "judgment criteria" for pass/fail judgment will be displayed as a configurable setting item.
- Only the "criteria" for pass/fail judgment will be highlighted.
- The settings other than the "Judgment Criteria" for pass/fail judgment will be displayed weakly (grayed out, etc.),
Examples of such displays are possible.
Such an operation can also be considered as an example of an operation for displaying setting items related to one selected adjustment purpose so that the priority according to the selected adjustment purpose can be recognized.
 なお、調整目的「調整を制限したい」が選択された場合に、設定可能な設定項目として強調表示される設定項目が2以上あってもよい。調整目的「調整を制限したい」に関連して設定可能な2以上の設定項目がある場合に、それら2以上の設定項目にこの調整目的に応じた優先度が付加されていてもよい。 When the adjustment purpose "I want to limit adjustments" is selected, there may be two or more setting items that are highlighted as configurable setting items. When there are two or more setting items that can be set in relation to the adjustment purpose "I want to limit adjustments", a priority according to this adjustment purpose may be added to those two or more setting items.
 この調整目的「調整を制限したい」は、経験豊富な作業者による設定のノウハウを優先度情報として経験の浅い作業者の引き継ぐことを可能とする。例えば、画像処理プログラムの実行において調整不要な設定項目が設定されないように優先度情報を作成しておけば、経験の浅い作業者は、調整目的「調整を制限したい」を選択することで調整不要な設定項目を設定の対象から除外した状態で調整を行うことができる。 This adjustment purpose "I want to limit adjustments" allows an inexperienced worker to take over the setting know-how of an experienced worker as priority information. For example, if priority information is created so that setting items that do not need to be adjusted are not set when an image processing program is executed, an inexperienced worker can select the adjustment purpose "I want to limit adjustments" to make adjustments while excluding setting items that do not need to be adjusted from the settings.
 設定部113は、ある機能モジュールに関し、選択された調整目的に応じた優先度が付与された設定項目が存在する場合に、その機能モジュールを処理フロー表示エリア213においてユーザが認識できるように表示する機能を有していてもよい。図8は、画像処理プログラムP1の処理フローが表示された処理フロー表示エリア213において、調整目的に応じた優先度が付与された設定項目が含まれる機能モジュールを強調して表示した例を示す。ここでは、調整目的が「処理速度を早くしたい」である場合において、「撮像機能M1」と「パターンマッチ機能M2」に優先度が付与された設定項目が含まれ、これら「撮像機能M1」と「パターンマッチ機能M2」が強調表示されている例を示す。ここでは、撮像機能M1とパターンマッチ機能M2の処理ブロックの枠線を太くすることで強調表示がされている例を示す。処理フロー表示エリア213において処理ブロックを強調するための他のやり方(例えば、文字サイズや色による強調)が用いられてもよい。 The setting unit 113 may have a function to display a functional module in the process flow display area 213 so that the user can recognize it when there is a setting item with a priority assigned according to the selected adjustment purpose for a certain functional module. FIG. 8 shows an example in which a functional module including a setting item with a priority assigned according to the adjustment purpose is highlighted in the process flow display area 213 in which the process flow of the image processing program P1 is displayed. In this example, when the adjustment purpose is "to increase the processing speed", the "imaging function M1" and the "pattern matching function M2" include setting items with a priority assigned, and these "imaging function M1" and "pattern matching function M2" are highlighted. In this example, the processing blocks of the imaging function M1 and the pattern matching function M2 are highlighted by thickening the borders. Other methods for highlighting the processing blocks in the process flow display area 213 (for example, highlighting by character size or color) may be used.
 なお、設定部113は、処理フロー表示エリア213において強調して表示すべき機能ブロックのうち、より優先して設定すべき設定項目を含む機能ブロックをより強い強調度で表示するようにしてもよい。図8では、撮像機能M1がパターンマッチ機能M2よりも優先度の高い設定項目を含むことから、撮像機能M1の処理ブロックがパターンマッチ機能M2の処理ブロックよりも強調して表示されている例を示している。ここでは、撮像機能M1の処理ブロックがパターンマッチ機能M2の処理ブロックよりも太い枠で表示されている。 The setting unit 113 may display, with a stronger emphasis, functional blocks including setting items that should be set with higher priority among the functional blocks that should be highlighted in the processing flow display area 213. FIG. 8 shows an example in which the processing block of the imaging function M1 is displayed with more emphasis than the processing block of the pattern matching function M2 because the imaging function M1 includes setting items with a higher priority than the pattern matching function M2. Here, the processing block of the imaging function M1 is displayed with a thicker frame than the processing block of the pattern matching function M2.
 上述した実施形態では、設定部113は、予め設定された優先度情報に従って、選択された調整目的に関連する1以上の設定項目の優先度を設定する。設定部113は、優先度情報に従って設定した優先度を、画像処理プログラムの設定又は実行に係わる様々な状況に応じて切り替える機能を有していてもよい。なお、優先度を切り替えることには、優先度を付与していなかった設定項目(すなわち、優先度ゼロであった設定項目)に、優先度を付与すること、或いは、優先度を付与していた設定項目の優先度を解除することが含まれてもよい。これに関し、設定部113は次のような機能(F1)から(F3)の1以上を有していてもよい。
(F1)画像処理プログラムの各機能単位での実際の処理時間に基づいて、設定項目の優先度を切り替える機能。
(F2)画像処理プログラムの各設定項目の現在の設定値に応じて、設定項目の優先度を切り替える機能。
(F3)画像処理プログラムの実行状況に応じて、設定項目の優先度を切り替える機能。
In the above-described embodiment, the setting unit 113 sets the priority of one or more setting items related to the selected adjustment purpose according to preset priority information. The setting unit 113 may have a function of switching the priority set according to the priority information according to various situations related to the setting or execution of the image processing program. Note that switching the priority may include assigning a priority to a setting item to which a priority has not been assigned (i.e., a setting item to which a priority has been assigned zero), or canceling the priority of a setting item to which a priority has been assigned. In this regard, the setting unit 113 may have one or more of the following functions (F1) to (F3).
(F1) A function for switching the priority of setting items based on the actual processing time for each function of the image processing program.
(F2) A function for switching the priority of each setting item in the image processing program according to the current setting value of the setting item.
(F3) A function for switching the priority of setting items according to the execution status of the image processing program.
 上記機能(F1)の例を説明する。一例として、上述した画像処理プログラムP1に関し、選択されている調整目的が「処理速度を早くしたい」であるものとする。この場合、処理時間取得部114は、画像処理プログラムP1を実行させた際の機能単位での処理時間を画像処理装置20(処理時間測定部123)から取得することができる。例えば、処理時間取得部114は、パターンマッチの角度検索やサイズ検索等の機能単位での処理時間の測定値から、パターンマッチにおいて(或いは画像処理全体において)角度検索が支配的になっていると特定したとする。この場合、設定部113は、パターンマッチ機能M2の「角度閾値」を最も優先度の高い設定項目として設定し、或いは「角度閾値」の優先度を現在の値より高い値に切り替えてもよい。 An example of the above function (F1) will be described. As an example, it is assumed that the selected adjustment purpose for the above-mentioned image processing program P1 is "to increase the processing speed." In this case, the processing time acquisition unit 114 can acquire the processing time per function when the image processing program P1 is executed from the image processing device 20 (processing time measurement unit 123). For example, it is assumed that the processing time acquisition unit 114 has determined that angle search is dominant in pattern matching (or in the entire image processing) from the measured values of processing time per function, such as angle search and size search in pattern matching. In this case, the setting unit 113 may set the "angle threshold" of the pattern matching function M2 as the setting item with the highest priority, or may switch the priority of the "angle threshold" to a value higher than the current value.
 このように、設定部113は、各機能単位での処理時間の測定値から、
・処理時間が最も長くなっている機能に対応する設定項目の優先度を最も高くしたり、
・他の機能よりも処理時間が長くなっている機能に対応する設定項目の優先度を上げたり、或いは、
・他の機能よりも処理時間が短くなっている機能に対応する設定項目の優先度を下げたりしてもよい。
In this way, the setting unit 113 determines, from the measured value of the processing time for each function,
- Set the priority of the setting item that corresponds to the function that takes the longest time to process to the highest priority,
- Raise the priority of settings that correspond to functions that take longer to process than other functions, or
The priority of a setting item corresponding to a function whose processing time is shorter than that of other functions may be lowered.
 上記機能(F2)の第一の例を説明する。調整目的が「誤検出対策をしたい」である場合、優先度情報により優先度が付与された設定項目には、パターンマッチングのスコア閾値とコントラスト閾値が含まれる。スコア閾値を高く設定することは誤検出対策に有効であるが、現在のスコア閾値が既に高い値に設定されている場合には、スコア閾値の調整の余地は残されていないこととなる。このような状況の場合、設定部113は、スコア閾値の優先度を低下させる、或いは、スコア閾値に対する優先度の付与を解除するようにしてもよい。すなわち、設定部113は、スコア閾値の強調度を低下させる、或いは、強調表示を行わないようにしてもよい。また、スコア閾値の調整に余地が残されていない状況では、コントラスト閾値の調整の重要性が増すことになる。したがって、設定部113は、例えばコントラスト閾値の優先度をより高い値に切り替えることで、コントラスト閾値の優先度がスコア閾値の優先度よりも高くなるようにしてもよい。 A first example of the above function (F2) will be described. When the purpose of adjustment is "to take measures against false detection," the setting items to which priority has been assigned by the priority information include the pattern matching score threshold and the contrast threshold. Setting the score threshold high is effective in taking measures against false detection, but if the current score threshold is already set to a high value, there is no room left for adjusting the score threshold. In such a situation, the setting unit 113 may lower the priority of the score threshold, or cancel the assignment of priority to the score threshold. That is, the setting unit 113 may lower the emphasis level of the score threshold, or may not perform emphasis display. In addition, in a situation where there is no room left for adjusting the score threshold, the importance of adjusting the contrast threshold increases. Therefore, the setting unit 113 may, for example, switch the priority of the contrast threshold to a higher value, so that the priority of the contrast threshold becomes higher than the priority of the score threshold.
 上記機能(F3)の第一の例を説明する。調整目的は「未検出対策をしたい」であるものとする。例えば、撮像される画像が全体的に暗くなっている状況で、設定部113は、露光時間と照明強度が調整対象となるようにそれらに優先度を付与してもよい。撮像される画像が全体的に暗くなっている状況であることは、例えば、状態解析部115が画像処理プログラムの実行により得られる画像を画像処理装置20(画像処理部122)から取得して解析することで判断するようにしてもよい。状態解析部115は、例えば、撮像画像の各画素の輝度値のヒストグラムに基づき、画像全体の明るさの度合いを判定してもよい。なお、この場合において、露光時間が既に設定可能な上限値になっているときには、設定部113は、上記機能(F2)を追加として適用し、照明強度のみに優先度を付与し、照明強度のみが強調表示されるようにすることもできる。 A first example of the function (F3) will be described. The purpose of adjustment is to "take measures against non-detection." For example, in a situation where the captured image is dark overall, the setting unit 113 may assign priority to the exposure time and the illumination intensity so that they are adjusted. The situation where the captured image is dark overall may be determined, for example, by the state analysis unit 115 acquiring and analyzing an image obtained by executing an image processing program from the image processing device 20 (image processing unit 122). The state analysis unit 115 may determine the degree of brightness of the entire image based on, for example, a histogram of the luminance values of each pixel of the captured image. In this case, when the exposure time has already reached the settable upper limit, the setting unit 113 may additionally apply the function (F2) described above, assign priority only to the illumination intensity, and display only the illumination intensity in an emphasized manner.
 上記機能(F3)の第二の例を記載する。対象物を動かさない状況で繰り返し検出が行われているにもかかわらず対象物の位置の検出結果が安定しない状況であることが判明した場合を想定する。この場合、設定部113は、「検出精度をよくしたい」の調整目的に対して、パターンマッチ機能のモデルの再登録を促すために、モデル設定の設定項目に優先度を付与する、或いはモデル設定の優先度をより高い値に切り替えることを行ってもよい。なお、対象物の位置の検出結果の安定性の状態については、状態解析部115において、画像処理プログラムを複数回にわたって実行した場合の対象物の検出結果を画像処理装置20(画像処理部122)から取得し、それら検出結果に基づき対象物の検出位置を解析することで実現することができる。状態解析部115は、例えば、対象物が配置される位置が一定であるという状況において、複数回にわたる対象物の検出位置のばらつきが一定の値以上である場合に、対象物の位置の検出結果が安定しない状態であると判定してもよい。 A second example of the above function (F3) will be described. Assume that it is found that the detection result of the object's position is unstable even though detection is performed repeatedly without moving the object. In this case, the setting unit 113 may assign a priority to the setting item of the model setting or switch the priority of the model setting to a higher value in order to prompt re-registration of the model of the pattern matching function for the adjustment purpose of "improving detection accuracy". The state of stability of the detection result of the object's position can be realized by the state analysis unit 115 acquiring the detection result of the object when the image processing program is executed multiple times from the image processing device 20 (image processing unit 122) and analyzing the detection position of the object based on the detection results. For example, in a situation where the position where the object is placed is constant, when the variation in the detection position of the object over multiple times is equal to or greater than a certain value, the state analysis unit 115 may determine that the detection result of the object's position is unstable.
 このような機能により、設定エリア214に表示される設定項目の優先度の状態(強調の度合い)を、画像処理プログラムの設定や実行の状況を反映した内容に切り替えることができる。 This function allows the priority state (degree of emphasis) of the setting items displayed in the setting area 214 to be switched to contents that reflect the settings and execution status of the image processing program.
 図9は、プログラミング装置10により提供される、画像処理プログラムの設定項目の調整のための処理(設定調整方法)の基本動作を表すフローチャートである。この設定項目調整処理は、プログラミング装置10のプロセッサ11による制御の下で実行される。はじめに、設定部113は、調整目的のリストを設定画面200上の第1の領域(調整目的選択エリア212)に選択可能に表示する(ステップS1)。 FIG. 9 is a flowchart showing the basic operations of a process (setting adjustment method) for adjusting the setting items of an image processing program provided by the programming device 10. This setting item adjustment process is executed under the control of the processor 11 of the programming device 10. First, the setting unit 113 displays a list of adjustment objects selectable in a first area (adjustment object selection area 212) on the setting screen 200 (step S1).
 次に、設定部113は、選択された一つの調整目的に関連する1以上の設定項目を、選択された一つの調整目的に応じた優先度が認識できるように第2の領域(設定エリア214)に表示する(ステップS2)。そして、設定部113は、第2の領域(設定エリア214)上で、上記1以上の設定項目に対する調整の操作を受け付ける(ステップS3)。この構成により、上述したように、作業者は、調整目的に合致した調整を容易且つ効率的に行うことができる。 Then, the setting unit 113 displays one or more setting items related to the selected adjustment purpose in the second area (setting area 214) so that the priority according to the selected adjustment purpose can be recognized (step S2). The setting unit 113 then accepts adjustment operations for the one or more setting items in the second area (setting area 214) (step S3). With this configuration, as described above, the operator can easily and efficiently make adjustments that match the adjustment purpose.
 上述の実施形態では、設定部113は、調整目的に応じて優先的に設定すべき設定項目を認識可能に設定エリア214に表示する。このような機能に加えて、設定部113は、優先的に設定すべき設定項目に対する設定のガイダンス情報を表示する機能を有していてもよい。設定項目とガイダンス情報とを対応付ける情報が予め記憶部12に記憶され、設定部113は、この情報に基づいてガイダンス情報の表示を行うように構成されていてもよい。 In the above embodiment, the setting unit 113 displays in the setting area 214 the setting items that should be preferentially set according to the adjustment purpose in a recognizable manner. In addition to this function, the setting unit 113 may have a function of displaying guidance information for the setting items that should be preferentially set. Information that associates the setting items with the guidance information may be stored in advance in the storage unit 12, and the setting unit 113 may be configured to display the guidance information based on this information.
 例えば、調整目的が「処理速度を早くした」である場合に、図7に示した設定項目画面301aが表示されている場面で、
・設定項目「露光時間」の横にガイダンス情報として「露光時間を短くすることを推奨します」とのメッセージを表示する、
・設定項目「画像縮小率」の横にガイダンス情報として「画像を更に縮小することを推奨します」とのメッセージを表示する、
といった例があり得る。
For example, when the adjustment purpose is "increasing the processing speed," the setting item screen 301a shown in FIG.
- Display a message saying "We recommend shortening the exposure time" as guidance information next to the setting item "Exposure time".
- Display the message "We recommend you reduce the image further" as guidance information next to the setting item "Image reduction ratio".
Examples include:
 調整目的が「誤検出対策をしたい」である場合には、
・スコア閾値について、「スコア閾値を高くすることを推奨します」、
・コントラスト閾値について、「コントラスト閾値を高くすることを推奨します」、
といったメッセージをガイダンス情報として表示する例があり得る。
If the purpose of the adjustment is to "prevent false positives,"
- Regarding the score threshold, "We recommend that you set the score threshold higher."
- Regarding contrast threshold, "We recommend that you increase the contrast threshold."
Such a message may be displayed as guidance information.
 調整目的が「未検出対策をしたい」である場合には、
・スコア閾値について、「スコア閾値を下げることを推奨します」、
・コントラスト閾値について、「コントラスト閾値を下げることを推奨します」、
といったメッセージをガイダンス情報として表示する例があり得る。
If the purpose of the adjustment is to "take measures against undetected errors,"
- Regarding the score threshold, "We recommend lowering the score threshold."
- Regarding contrast threshold, "We recommend lowering the contrast threshold."
Such a message may be displayed as guidance information.
 調整目的が「検出精度をよくしたい」である場合には、
・モデル設定について、「モデル特徴が増加するように再教示することを推奨します」
・画像縮小率について、「画像縮小率を1に近づけることを推奨します」
といったメッセージをガイダンス情報として表示する例があり得る。
If the purpose of adjustment is to "improve detection accuracy,"
・Regarding model settings, "We recommend re-training to increase model features."
- Regarding image reduction ratio, "We recommend that you set the image reduction ratio as close to 1 as possible."
Such a message may be displayed as guidance information.
 このようなガイダンス情報は、設定項目の側に例えば吹き出し表示形式で常時表示されてもよく、或いは、設定項目にカーソルを重ねたときにプッポアップ形式で表示されてもよい。このようにガイダンス情報を表示することで、作業者は、よりいっそう容易且つ効率的に設定項目の調整を行うことができる。 Such guidance information may be constantly displayed next to the setting item, for example in a balloon display format, or may be displayed in a pop-up format when the cursor is placed over the setting item. By displaying guidance information in this manner, the worker can adjust the setting items more easily and efficiently.
 以上説明したように、本実施形態によれば、作業者は、画像処理プログラムのプログラミングにおいて、調整目的を選択するという簡便な操作を行うのみで、調整目的に応じた設定を容易且つ効率的に行うことができる。 As described above, according to this embodiment, the operator can easily and efficiently make settings according to the adjustment purpose by simply selecting the adjustment purpose when programming the image processing program.
 図2に示したプログラミング装置10と画像処理装置20の機能ブロック図における機能配分は例示であり、機能配分については様々な例があり得る。例えば、図2に示したプログラミング装置10における機能の一部が画像処理装置20に配置される構成例もあり得る。また、画像処理装置20としての機能全体がプログラミング装置10に配置される構成(すなわち、プログラミング装置10と画像処理装置20が一体化される構成)もあり得る。 The functional allocation in the functional block diagram of the programming device 10 and image processing device 20 shown in FIG. 2 is an example, and various examples of functional allocation are possible. For example, there may be a configuration in which some of the functions of the programming device 10 shown in FIG. 2 are arranged in the image processing device 20. There may also be a configuration in which the entire functions of the image processing device 20 are arranged in the programming device 10 (i.e., a configuration in which the programming device 10 and the image processing device 20 are integrated).
 画像処理システム100を、視覚センサにより対象物を検出してロボットによりハンドリングを行うように構成されたロボットシステムに適用することも可能である。この場合、画像処理装置20としての機能及びプログラミング装置10としての機能を、ロボット制御装置に組み込む構成としてもよい。或いは、画像処理装置20としての機能及びプログラミング装置10としての機能全体を、ロボット制御装置に接続された教示装置に組み込む構成としてもよい。 The image processing system 100 can also be applied to a robot system configured to detect an object using a visual sensor and handle it using a robot. In this case, the functions of the image processing device 20 and the programming device 10 may be incorporated into the robot control device. Alternatively, the functions of the image processing device 20 and the entire functions of the programming device 10 may be incorporated into a teaching device connected to the robot control device.
 図2に示したプログラミング装置の機能ブロック図における機能ブロックは、プログラミング装置の1又は複数のプロセッサが、記憶装置に格納された各種ソフトウェアを実行することで実現されても良く、或いは、ASIC(Application Specific Integrated Circuit)等のハードウェアを主体とした構成により実現されても良い。図2に示した画像処理装置の機能ブロック図における機能ブロックは、画像処理装置の1又は複数のプロセッサが、記憶装置に格納された各種ソフトウェアを実行することで実現されても良く、或いは、ASIC(Application Specific Integrated Circuit)等のハードウェアを主体とした構成により実現されても良い。 The functional blocks in the functional block diagram of the programming device shown in FIG. 2 may be realized by one or more processors of the programming device executing various software stored in a storage device, or may be realized by a configuration mainly consisting of hardware such as an ASIC (Application Specific Integrated Circuit). The functional blocks in the functional block diagram of the image processing device shown in FIG. 2 may be realized by one or more processors of the image processing device executing various software stored in a storage device, or may be realized by a configuration mainly consisting of hardware such as an ASIC (Application Specific Integrated Circuit).
 上述した実施形態における図9の設定項目調整処理等の各種の処理を実行するプログラムは、コンピュータに読み取り可能な各種記録媒体(例えば、ROM、EEPROM、フラッシュメモリ等の半導体メモリ、磁気記録媒体、CD-ROM、DVD-ROM等の光ディスク)に記録することができる。 The programs for executing various processes such as the setting item adjustment process of FIG. 9 in the above-mentioned embodiment can be recorded on various computer-readable recording media (for example, semiconductor memory such as ROM, EEPROM, flash memory, magnetic recording media, and optical disks such as CD-ROM and DVD-ROM).
 本開示について詳述したが、本開示は上述した個々の実施形態に限定されるものではない。これらの実施形態は、本開示の要旨を逸脱しない範囲で、または、特許請求の範囲に記載された内容とその均等物から導き出される本開示の趣旨を逸脱しない範囲で、種々の追加、置き換え、変更、部分的削除等が可能である。また、これらの実施形態は、組み合わせて実施することもできる。例えば、上述した実施形態において、各動作の順序や各処理の順序は、一例として示したものであり、これらに限定されるものではない。また、上述した実施形態の説明に数値又は数式が用いられている場合も同様である。 Although the present disclosure has been described in detail, the present disclosure is not limited to the individual embodiments described above. Various additions, substitutions, modifications, partial deletions, etc. are possible to these embodiments without departing from the gist of the present disclosure, or without departing from the spirit of the present disclosure derived from the contents described in the claims and their equivalents. These embodiments can also be implemented in combination. For example, in the above-mentioned embodiments, the order of each operation and the order of each process are shown as examples, and are not limited to these. The same applies when numerical values or formulas are used to explain the above-mentioned embodiments.
 上記実施形態および変形例に関し更に以下の付記を記載する。
 (付記1)
 視覚センサ(30)により撮像された画像に対する画像処理を実行する画像処理プログラムを作成するための機能を提供するプログラム作成部(111)と、前記画像処理に係わる設定を受け付ける設定部(113)と、を備え、前記設定部(113)は、表示画面において、前記画像処理に係わる複数の調整目的を選択可能に表示するとともに、前記複数の調整目的から選択された一つの調整目的に関連する1以上の設定項目を、前記選択された一つの調整目的に応じた優先度が認識できるように表示する、プログラミング装置(10)。
 (付記2)
 前記設定部(113)は、前記選択された一つの調整目的に応じた優先度が付与された1以上の設定項目が、前記優先度が付与されていない設定項目よりも強調されるように表示する、付記1に記載のプログラミング装置(10)。
 (付記3)
 前記設定部(113)は、前記選択された一つの調整目的に応じた優先度が付与された1以上の設定項目について、前記選択された一つの調整目的に応じた優先度が高い設定項目ほど強く強調されるように表示する、付記1又は2に記載のプログラミング装置(10)。
 (付記4)
 前記複数の調整目的の各々に対して、調整目的に関連する少なくとも一つの設定項目と、当該少なくとも一つの設定項目についての当該調整目的に応じた優先度とを関連付けた優先度情報を記憶する記憶部(12)を更に備え、前記設定部(113)は、前記優先度情報に基づいて、前記選択された一つの調整目的に関連する1以上の設定項目について、当該選択された一つの調整目的に応じた優先度を付与する、付記1から3のいずれか一項に記載のプログラミング装置(10)。
 (付記5)
 前記設定部(113)は、前記画像処理プログラムの設定又は実行の状態に基づいて、前記選択された一つの調整目的に関連する1以上の設定項目に対して前記優先度情報に基づいて付与した前記優先度を切り替える、付記4に記載のプログラミング装置(10)。
 (付記6)
 前記設定部(113)は、前記選択された一つの調整目的に関連する1以上の設定項目の現在の設定値に基づいて、前記選択された一つの調整目的に関連する1以上の設定項目に対して前記優先度情報に基づいて付与した前記優先度を切り替える、付記5に記載のプログラミング装置(10)。
 (付記7)
 前記設定部(113)は、前記選択された一つの調整目的に関連する1以上の設定項目の現在の設定値に基づいて、調整の余地が残されていないと判定される設定項目の前記優先度を低下させるか又は前記優先度の付与を解除する、付記6に記載のプログラミング装置(10)。
 (付記8)
 前記画像処理プログラムが実行された場合に各設定項目に対応する機能単位での処理時間を測定可能な処理時間測定部(123)を更に備え、前記設定部(113)は、前記画像処理を実行した場合の各設定項目に対応する機能単位での処理時間の測定値に基づいて、前記選択された一つの調整目的に関連する1以上の設定項目に対して前記優先度情報に基づいて付与した前記優先度を切り替える、付記5に記載のプログラミング装置(10)。
 (付記9)
 前記画像処理プログラムの実行の状態として、前記視覚センサ(30)により撮像された画像の状態、又は、前記画像処理に含まれる対象物の検出結果の安定性の状態を判定する状態解析部(115)を更に備える、付記5に記載のプログラミング装置。
 (付記10)
 前記設定部(113)は、前記複数の調整目的を表示する第1の領域と、前記選択された一つの調整目的に関連する1以上の設定項目を表示する第2の領域とを含む設定画面を表示し、前記第2の領域の表示状態は、前記選択された一つの調整目的に応じた優先度に従って切り替わる、付記1から9のいずれか一項に記載のプログラミング装置(10)。
 (付記11)
 前記複数の調整目的は、処理速度を早くすること、誤検出対策をすること、未検出対策をすること、検出精度を良くすること、又は調整項目を制限すること、の一つ以上を含む、付記1から10のいずれか一項に記載のプログラミング装置(10)。
 (付記12)
 前記設定部(113)は、前記優先度が認識できるように表示した1以上の設定項目の少なくとも一つに対して、前記選択された一つの調整目的に応じたガイダンス情報を付加的に表示する、付記1から11のいずれか一項に記載のプログラミング装置(10)。
 (付記13)
 プログラミング装置(10)において画像処理に関する設定を調整するための方法であって、前記画像処理に係わる複数の調整目的を表示画面上の第1の領域に選択可能に表示し、前記複数の調整目的から選択された一つの調整目的に関連する1以上の設定項目を、前記選択された一つの調整目的に応じた優先度が認識できるように前記表示画面上の第2の領域に表示し、前記第2の領域において前記1以上の設定項目に対する調整の操作を受け付ける、設定調整方法。
 (付記14)
 コンピュータのプロセッサに、画像処理に係わる複数の調整目的を表示画面上の第1の領域に選択可能に表示する手順と、前記複数の調整目的から選択された一つの調整目的に関連する1以上の設定項目を、前記選択された一つの調整目的に応じた優先度が認識できるように前記表示画面上の第2の領域に表示する手順と、前記第2の領域において前記1以上の設定項目に対する調整の操作を受け付ける手順と、を実行させるためのプログラム。
The following additional notes are provided regarding the above embodiment and modifications.
(Appendix 1)
A programming device (10) comprising: a program creation unit (111) that provides a function for creating an image processing program that executes image processing on an image captured by a visual sensor (30); and a setting unit (113) that accepts settings related to the image processing, wherein the setting unit (113) displays a plurality of adjustment purposes related to the image processing in a selectable manner on a display screen, and displays one or more setting items related to one adjustment purpose selected from the plurality of adjustment purposes in a manner that allows a priority according to the selected adjustment purpose to be recognized.
(Appendix 2)
The programming device (10) described in Appendix 1, wherein the setting unit (113) displays one or more setting items to which a priority has been assigned according to the selected adjustment purpose in a manner that is more emphasized than setting items to which the priority has not been assigned.
(Appendix 3)
The programming device (10) according to claim 1 or 2, wherein the setting unit (113) displays one or more setting items to which a priority corresponding to the selected adjustment purpose has been assigned such that a setting item having a higher priority corresponding to the selected adjustment purpose is more strongly highlighted.
(Appendix 4)
The programming device (10) according to any one of appendices 1 to 3, further comprising a memory unit (12) that stores priority information that associates, for each of the multiple adjustment purposes, at least one setting item related to the adjustment purpose with a priority for the at least one setting item according to the adjustment purpose, and the setting unit (113) assigns a priority corresponding to the selected adjustment purpose to one or more setting items related to the selected adjustment purpose based on the priority information.
(Appendix 5)
The setting unit (113) switches the priority assigned to one or more setting items related to the selected adjustment purpose based on the priority information, based on the setting or execution state of the image processing program.
(Appendix 6)
The programming device (10) described in Appendix 5, wherein the setting unit (113) switches the priority assigned to one or more setting items related to the selected adjustment objective based on the priority information, based on current setting values of the one or more setting items related to the selected adjustment objective.
(Appendix 7)
The programming device (10) described in Appendix 6, wherein the setting unit (113) lowers the priority or cancels the priority of a setting item that is determined to have no room for adjustment based on current setting values of one or more setting items related to the selected adjustment purpose.
(Appendix 8)
The programming device (10) described in Appendix 5 further comprises a processing time measurement unit (123) capable of measuring the processing time on a functional basis corresponding to each setting item when the image processing program is executed, and the setting unit (113) switches the priority assigned to one or more setting items related to the selected adjustment purpose based on the priority information, based on the measured value of the processing time on a functional basis corresponding to each setting item when the image processing is executed.
(Appendix 9)
The programming device described in Appendix 5, further comprising a state analysis unit (115) that determines the state of the image captured by the visual sensor (30) or the stability state of the detection result of the object included in the image processing as the execution state of the image processing program.
(Appendix 10)
The programming device (10) according to any one of appendices 1 to 9, wherein the setting unit (113) displays a setting screen including a first area displaying the plurality of adjustment objectives and a second area displaying one or more setting items related to the selected adjustment objective, and a display state of the second area is switched according to a priority corresponding to the selected adjustment objective.
(Appendix 11)
The programming device (10) according to any one of appendices 1 to 10, wherein the plurality of adjustment purposes include one or more of: increasing processing speed, taking measures against erroneous detection, taking measures against non-detection, improving detection accuracy, or limiting adjustment items.
(Appendix 12)
The programming device (10) according to any one of appendices 1 to 11, wherein the setting unit (113) additionally displays guidance information corresponding to the selected adjustment purpose for at least one of the one or more setting items displayed so that the priority can be recognized.
(Appendix 13)
A method for adjusting settings related to image processing in a programming device (10), comprising: displaying a plurality of adjustment objectives related to the image processing in a selectable manner in a first area on a display screen; displaying one or more setting items related to one adjustment objective selected from the plurality of adjustment objectives in a second area on the display screen so that a priority according to the selected one adjustment objective can be recognized; and accepting adjustment operations for the one or more setting items in the second area.
(Appendix 14)
A program for causing a computer processor to execute the steps of: displaying a plurality of adjustment purposes related to image processing in a selectable manner in a first area on a display screen; displaying one or more setting items related to one adjustment purpose selected from the plurality of adjustment purposes in a second area on the display screen so that a priority according to the selected one adjustment purpose can be recognized; and accepting adjustment operations for the one or more setting items in the second area.
 10  プログラミング装置
 11  プロセッサ
 12  記憶部
 13  表示部
 14  操作部
 20  画像処理装置
 21  プロセッサ
 22  記憶部
 30  視覚センサ
 31  照明装置
 90  対象物
 100  画像処理システム
 111  プログラム作成部
 112  プログラム実行部
 113  設定部
 114  処理時間取得部
 115  状態解析部
 121  視覚センサ制御部
 122  画像処理部
 123  処理時間測定部
REFERENCE SIGNS LIST 10 Programming device 11 Processor 12 Memory unit 13 Display unit 14 Operation unit 20 Image processing device 21 Processor 22 Memory unit 30 Visual sensor 31 Lighting device 90 Target object 100 Image processing system 111 Program creation unit 112 Program execution unit 113 Setting unit 114 Processing time acquisition unit 115 Status analysis unit 121 Visual sensor control unit 122 Image processing unit 123 Processing time measurement unit

Claims (14)

  1.  視覚センサにより撮像された画像に対する画像処理を実行する画像処理プログラムを作成するための機能を提供するプログラム作成部と、
     前記画像処理に係わる設定を受け付ける設定部と、を備え、
     前記設定部は、表示画面において、
     前記画像処理に係わる複数の調整目的を選択可能に表示するとともに、
     前記複数の調整目的から選択された一つの調整目的に関連する1以上の設定項目を、前記選択された一つの調整目的に応じた優先度が認識できるように表示する、プログラミング装置。
    a program creation unit that provides a function for creating an image processing program for executing image processing on an image captured by the visual sensor;
    a setting unit that accepts settings related to the image processing,
    The setting unit, on a display screen,
    A plurality of adjustment purposes related to the image processing are displayed in a selectable manner,
    A programming device that displays one or more setting items related to one adjustment objective selected from the plurality of adjustment objectives in such a way that a priority according to the selected one adjustment objective can be recognized.
  2.  前記設定部は、前記選択された一つの調整目的に応じた優先度が付与された1以上の設定項目が、前記優先度が付与されていない設定項目よりも強調されるように表示する、請求項1に記載のプログラミング装置。 The programming device according to claim 1, wherein the setting unit displays one or more setting items to which a priority corresponding to the selected adjustment purpose has been assigned in a more emphasized manner than setting items to which the priority has not been assigned.
  3.  前記設定部は、前記選択された一つの調整目的に応じた優先度が付与された1以上の設定項目について、前記選択された一つの調整目的に応じた優先度が高い設定項目ほど強く強調されるように表示する、請求項1又は2に記載のプログラミング装置。 The programming device according to claim 1 or 2, wherein the setting unit displays one or more setting items to which a priority corresponding to the selected adjustment purpose has been assigned such that the setting item with a higher priority corresponding to the selected adjustment purpose is more strongly emphasized.
  4.  前記複数の調整目的の各々に対して、調整目的に関連する少なくとも一つの設定項目と、当該少なくとも一つの設定項目についての当該調整目的に応じた優先度とを関連付けた優先度情報を記憶する記憶部を更に備え、
     前記設定部は、前記優先度情報に基づいて、前記選択された一つの調整目的に関連する1以上の設定項目について、当該選択された一つの調整目的に応じた優先度を付与する、請求項1から3のいずれか一項に記載のプログラミング装置。
    a storage unit that stores priority information that associates, for each of the plurality of adjustment purposes, at least one setting item related to the adjustment purpose with a priority for the at least one setting item according to the adjustment purpose;
    4. The programming device according to claim 1, wherein the setting unit assigns a priority to one or more setting items related to the selected adjustment purpose based on the priority information, the priority being in accordance with the selected adjustment purpose.
  5.  前記設定部は、前記画像処理プログラムの設定又は実行の状態に基づいて、前記選択された一つの調整目的に関連する1以上の設定項目に対して前記優先度情報に基づいて付与した前記優先度を切り替える、請求項4に記載のプログラミング装置。 The programming device according to claim 4, wherein the setting unit switches the priority assigned to one or more setting items related to the selected adjustment purpose based on the priority information, based on the setting or execution state of the image processing program.
  6.  前記設定部は、前記選択された一つの調整目的に関連する1以上の設定項目の現在の設定値に基づいて、前記選択された一つの調整目的に関連する1以上の設定項目に対して前記優先度情報に基づいて付与した前記優先度を切り替える、請求項5に記載のプログラミング装置。 The programming device according to claim 5, wherein the setting unit switches the priority assigned to one or more setting items related to the selected adjustment purpose based on the priority information, based on the current setting value of the one or more setting items related to the selected adjustment purpose.
  7.  前記設定部は、前記選択された一つの調整目的に関連する1以上の設定項目の現在の設定値に基づいて、調整の余地が残されていないと判定される設定項目の前記優先度を低下させるか又は前記優先度の付与を解除する、請求項6に記載のプログラミング装置。 The programming device according to claim 6, wherein the setting unit lowers the priority or cancels the priority of a setting item that is determined to have no room for adjustment based on the current setting values of one or more setting items related to the selected adjustment purpose.
  8.  前記画像処理プログラムが実行された場合に各設定項目に対応する機能単位での処理時間を測定可能な処理時間測定部を更に備え、
     前記設定部は、前記画像処理を実行した場合の各設定項目に対応する機能単位での処理時間の測定値に基づいて、前記選択された一つの調整目的に関連する1以上の設定項目に対して前記優先度情報に基づいて付与した前記優先度を切り替える、請求項5に記載のプログラミング装置。
    a processing time measurement unit capable of measuring a processing time for each function corresponding to each setting item when the image processing program is executed,
    6. The programming device according to claim 5, wherein the setting unit switches the priority assigned to one or more setting items related to the selected adjustment purpose based on the priority information, based on a measured value of processing time per function corresponding to each setting item when the image processing is executed.
  9.  前記画像処理プログラムの実行の状態として、前記視覚センサにより撮像された画像の状態、又は、前記画像処理に含まれる対象物の検出結果の安定性の状態を判定する状態解析部を更に備える、請求項5に記載のプログラミング装置。 The programming device according to claim 5, further comprising a state analysis unit that determines the state of the image captured by the visual sensor or the stability state of the detection result of the object included in the image processing as the execution state of the image processing program.
  10.  前記設定部は、前記複数の調整目的を表示する第1の領域と、前記選択された一つの調整目的に関連する1以上の設定項目を表示する第2の領域とを含む設定画面を表示し、
     前記第2の領域の表示状態は、前記選択された一つの調整目的に応じた優先度に従って切り替わる、請求項1から9のいずれか一項に記載のプログラミング装置。
    the setting unit displays a setting screen including a first area displaying the plurality of adjustment purposes and a second area displaying one or more setting items related to the selected one adjustment purpose,
    10. The programming device according to claim 1, wherein a display state of the second area is switched according to a priority corresponding to the selected one adjustment purpose.
  11.  前記複数の調整目的は、処理速度を早くすること、誤検出対策をすること、未検出対策をすること、検出精度を良くすること、又は調整項目を制限すること、の一つ以上を含む、請求項1から10のいずれか一項に記載のプログラミング装置。 The programming device according to any one of claims 1 to 10, wherein the multiple adjustment purposes include one or more of: increasing processing speed, taking measures against erroneous detection, taking measures against non-detection, improving detection accuracy, or limiting adjustment items.
  12.  前記設定部は、前記優先度が認識できるように表示した1以上の設定項目の少なくとも一つに対して、前記選択された一つの調整目的に応じたガイダンス情報を付加的に表示する、請求項1から11のいずれか一項に記載のプログラミング装置。 The programming device according to any one of claims 1 to 11, wherein the setting unit additionally displays guidance information corresponding to the selected adjustment purpose for at least one of the one or more setting items displayed so that the priority can be recognized.
  13.  プログラミング装置において画像処理に関する設定を調整するための方法であって、
     前記画像処理に係わる複数の調整目的を表示画面上の第1の領域に選択可能に表示し、
     前記複数の調整目的から選択された一つの調整目的に関連する1以上の設定項目を、前記選択された一つの調整目的に応じた優先度が認識できるように前記表示画面上の第2の領域に表示し、
     前記第2の領域において前記1以上の設定項目に対する調整の操作を受け付ける、設定調整方法。
    1. A method for adjusting image processing settings in a programming device, comprising:
    displaying a plurality of adjustment purposes related to the image processing in a selectable manner in a first area on a display screen;
    displaying one or more setting items related to one adjustment purpose selected from the plurality of adjustment purposes in a second area on the display screen so that a priority according to the one selected adjustment purpose can be recognized;
    A setting adjustment method, comprising: accepting an adjustment operation for the one or more setting items in the second area.
  14.  コンピュータのプロセッサに、
     画像処理に係わる複数の調整目的を表示画面上の第1の領域に選択可能に表示する手順と、
     前記複数の調整目的から選択された一つの調整目的に関連する1以上の設定項目を、前記選択された一つの調整目的に応じた優先度が認識できるように前記表示画面上の第2の領域に表示する手順と、
     前記第2の領域において前記1以上の設定項目に対する調整の操作を受け付ける手順と、を実行させるためのプログラム。
    The computer processor
    a step of displaying a plurality of adjustment purposes related to image processing in a selectable manner in a first area on a display screen;
    a step of displaying one or more setting items related to one adjustment purpose selected from the plurality of adjustment purposes in a second area on the display screen so that a priority according to the one selected adjustment purpose can be recognized;
    a step of accepting an adjustment operation for the one or more setting items in the second area; and a program for executing the step.
PCT/JP2023/016009 2023-04-21 2023-04-21 Programming device, setting adjustment method, and program WO2024218987A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/JP2023/016009 WO2024218987A1 (en) 2023-04-21 2023-04-21 Programming device, setting adjustment method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2023/016009 WO2024218987A1 (en) 2023-04-21 2023-04-21 Programming device, setting adjustment method, and program

Publications (1)

Publication Number Publication Date
WO2024218987A1 true WO2024218987A1 (en) 2024-10-24

Family

ID=93152210

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2023/016009 WO2024218987A1 (en) 2023-04-21 2023-04-21 Programming device, setting adjustment method, and program

Country Status (1)

Country Link
WO (1) WO2024218987A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021033869A (en) * 2019-08-28 2021-03-01 キヤノン株式会社 Electronic equipment, control method of the same, program and storage medium
JP2021144404A (en) * 2020-03-11 2021-09-24 オムロン株式会社 Image processing apparatus, control method, and program
JP2021174316A (en) * 2020-04-27 2021-11-01 横河電機株式会社 Software development environment providing system, software development environment providing method, and software development environment providing program
JP2022107874A (en) * 2021-01-12 2022-07-25 日立建機株式会社 Information processing device and software creation support system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021033869A (en) * 2019-08-28 2021-03-01 キヤノン株式会社 Electronic equipment, control method of the same, program and storage medium
JP2021144404A (en) * 2020-03-11 2021-09-24 オムロン株式会社 Image processing apparatus, control method, and program
JP2021174316A (en) * 2020-04-27 2021-11-01 横河電機株式会社 Software development environment providing system, software development environment providing method, and software development environment providing program
JP2022107874A (en) * 2021-01-12 2022-07-25 日立建機株式会社 Information processing device and software creation support system

Similar Documents

Publication Publication Date Title
US9891817B2 (en) Processing an infrared (IR) image based on swipe gestures
JP6767490B2 (en) Defect inspection equipment, defect inspection methods, and programs
US11378522B2 (en) Information processing apparatus related to machine learning for detecting target from image, method for controlling the same, and storage medium
US20140333585A1 (en) Electronic apparatus, information processing method, and storage medium
JP6243705B2 (en) Edge measurement video tool and interface with automatic parameterization options
US11710250B2 (en) Electronic device, method, and storage medium for setting processing procedure for controlling apparatus
JP2016139180A5 (en)
US11769248B2 (en) Image processing device, image processing method, and image processing non-transitory computer readable medium for verifying detectable range of defect image
JP4784269B2 (en) Image processing device
JP7214432B2 (en) Image processing method, image processing program, recording medium, image processing apparatus, production system, article manufacturing method
WO2024218987A1 (en) Programming device, setting adjustment method, and program
JP2021039167A5 (en)
JP4668059B2 (en) Visual inspection support device, visual inspection support program, and recording medium recording the program
JP6367736B2 (en) Inspection support device
JPWO2018179552A1 (en) ANALYZING DEVICE HAVING TOUCH PANEL DEVICE, ITS DISPLAY CONTROL METHOD, AND PROGRAM
JP2013190952A (en) Program for character recognition and character recognizing device
JP2007178129A5 (en)
KR20180106956A (en) Control apparatus for network camera, control method, and storage medium
WO2021161628A1 (en) Machine learning method, and information processing device for machine learning
WO2009108123A1 (en) Laser pointer based interactive display system and method thereof
JP2022086520A5 (en)
JP2021117152A (en) Image processing device, image processing method, and image processing program
TW202328671A (en) Automatic defect classifier
US20240303982A1 (en) Image processing device and image processing method
JP2012074045A (en) Image inspection system