Image processing device, method for controlling image processing device, and program

The image processing device efficiently monitors and analyzes production abnormalities by processing specific image regions at different times, reducing processing load and enabling quick countermeasures for system stability.

JP7532075B2Active Publication Date: 2024-08-13CANON KK
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2020075402
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-04-21
Publication Date
2024-08-13
Estimated Expiration
2040-04-21

AI Technical Summary

Technical Problem

Existing image processing technologies struggle to efficiently monitor and analyze abnormalities in production environments, leading to increased processing load and delayed analysis of abnormality causes, which can result in system inefficiencies and potential operational halts.

Method used

An image processing device that performs image processing on specific regions of images taken at different times, allowing for efficient monitoring of abnormalities and subsequent analysis of their causes by displaying images from before the abnormality detection, thereby reducing regular processing load and enabling quick countermeasures.

Benefits of technology

This approach enables efficient analysis of abnormality causes by minimizing regular processing load and allowing for rapid response to system abnormalities, ensuring system efficiency and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007532075000001
    Figure 0007532075000001
  • Figure 0007532075000002
    Figure 0007532075000002
  • Figure 0007532075000003
    Figure 0007532075000003
Patent Text Reader

Abstract

To efficiently analyze a cause of a system failure.SOLUTION: An image processing apparatus includes: monitoring means which applies image processing on a first area in each of a plurality of images obtained by imaging an object to be monitored at different times to monitor whether a failure has occurred in the object to be monitored; and analyzing means which analyzes a cause of a failure, when the failure has been detected, by applying image processing on a second area, which is different from the first area, in an image captured earlier than the time where the failure is detected.SELECTED DRAWING: Figure 11
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an image processing apparatus, a control method for an image processing apparatus, and a program. [Background technology]

[0002] Technologies are being used to control robots such as gripping devices, robot arms, and actuators to perform various tasks on workpieces for the purposes of product production, quality check, transportation, etc. Technologies are also being used to monitor equipment and work conditions as well as measure the position and inspection of workpieces by performing image processing on image data obtained by photographing or recording a workpiece using an imaging device such as a camera. The use of the above technologies makes constant visual monitoring unnecessary and allows the switching of control instructions for the robot device and operation correction, etc., making it possible to build a system that can perform a wider variety of desired tasks.

[0003] Also, by switching the content of image processing, different processing can be performed on one image data. As a technology for switching the content of image processing, the technology of Patent Document 1 has been proposed. In the technology of Patent Document 1, a specified part in an image is identified, and different image processing is performed depending on the identification result. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2017-004258 A Summary of the Invention [Problem to be solved by the invention]

[0005] For example, in a production site or the like, the area that is the subject of image processing to efficiently detect abnormalities such as crumbling or spilling of the workpiece is often the area around the serving table on which the workpiece is served. For this reason, when monitoring for abnormalities in a production site or the like, it is preferable to monitor the area around the serving table on which the workpiece is served as the monitoring area. On the other hand, in order to analyze with high accuracy the cause of the occurrence of an abnormality such as crumbling or spilling of the workpiece, it is preferable to perform image processing on multiple different areas that are likely to cause trouble in an image before the abnormality is detected, with each of these areas being analysis areas.

[0006] Therefore, in image processing of either the monitoring area for monitoring anomalies or the monitoring area for analyzing the cause of anomalies, the target areas and times are different, making it difficult to appropriately monitor anomalies and analyze the anomalies. In this case, the time required to analyze the cause of a problem occurring in the system becomes longer, the operating efficiency of the system decreases, and in some cases, the system may stop operating. On the other hand, if image processing is performed constantly with all areas required for analyzing the cause of anomalies as targets of image processing, the load of image processing increases. As a result, problems such as delays in calculation processing occur. The technology of Patent Document 1 does not solve such problems.

[0007] An object of the present invention is to efficiently analyze the cause of a system abnormality. [Means for solving the problem]

[0008] In order to achieve the above-mentioned object, the image processing device of the present invention is characterized by comprising a monitoring means for applying image processing to a first area in each of a plurality of images of the monitored object taken at different times to monitor whether an abnormality has occurred in the monitored object, and an analysis means for analyzing the cause of the abnormality when the occurrence of the abnormality is detected by applying image processing to a second area different from the first area in an image taken before the time the abnormality was detected. Effect of the Invention

[0009] According to the present invention, the cause of a system abnormality can be analyzed efficiently. [Brief description of the drawings]

[0010] [Figure 1] FIG. 1 illustrates an example of an overall configuration of a system. [Diagram 2] 4 is a flowchart showing the flow of processing of the entire system. [Diagram 3] FIG. 1 illustrates an example of an image processing device. [Figure 4] FIG. 13 is a diagram showing an example of a flowchart creation screen. [Diagram 5] FIG. 13 is a diagram showing an example of a monitoring state when workpieces are normally loaded. [Figure 6] FIG. 13 is a diagram showing an example of a monitoring state when a load collapse occurs in the workpieces. [Figure 7] FIG. 13 is a diagram showing an example of an operation setting screen. [Figure 8] FIG. 13 is a diagram showing an example of a created flowchart. [Figure 9] FIG. 13 is a diagram illustrating an example of a detailed setting screen. [Figure 10] FIG. 13 is a diagram showing an image of multiple frames and anomaly detection. [Figure 11] FIG. 13 is a diagram showing an example of a screen showing the results of an analysis process. [Figure 12] 13 is a flowchart showing the flow of a monitoring process and an analysis process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. However, the configurations described in the following embodiments are merely examples, and the scope of the present invention is not limited to the configurations described in the embodiments.

[0012] Hereinafter, the present embodiment will be described with reference to the drawings. FIG. 1 is a diagram showing an example of the overall configuration of a system according to the present embodiment. The system in FIG. 1 is a system installed, for example, at a production site. The system in FIG. 1 includes an image processing device 101, cameras 102 to 104, a robot 105, and a system control device 110. The system control device 110 can transmit instructions to the image processing device 101 and the robot 105. The image processing device 101 and the robot 105 can operate, stop, etc. based on instructions received from the system control device 110. This controls the entire system.

[0013] The image processing device 101 sets and executes image processing related to this embodiment. The image processing device 101 may perform image processing different from that of this embodiment. The cameras 102 to 104 are imaging devices that capture different areas and acquire images. The image processing device 101 may be built in any of the cameras 102 to 104, or may be built in the system control device 110. The image processing device 101, the cameras 102 to 104, the robot 105, and the system control device 110 may be configured as one unit. In the following, each device will be described as being configured separately. The image processing device 101 may also have the function of the system control device 110. In this case, the system control device 110 is not necessary, and the image processing device 101 executes the function of the system control device 110.

[0014] The robot 105 includes a built-in robot control device that controls the operation of the robot 105. The robot 105 in FIG. 1 has an arm that employs a two-axis joint structure and an end effector attached to the tip of the arm. In the example in FIG. 1, the end effector is a robot hand as a gripping mechanism. The arm may have a one-axis joint structure or a multi-joint structure with three or more axes. The end effector may be an adsorption mechanism that adsorbs an object. The end effector may be a combination of a gripping mechanism and an adsorption mechanism. The robot 105 may also be an orthogonal robot or the like. Each mechanism of the robot 105 described above operates based on instructions from a device such as the system control device 110.

[0015] Although the robot 105 will be described as operating based on instructions from the system control device 110, the robot 105 may operate based on instructions from an external linkage system, or may perform a predetermined operation at a predetermined cycle. Furthermore, the operation of the robot 105 may be controlled based on the results of image processing by the image processing device 101.

[0016] The cameras 102-104 capture images according to arbitrary procedures and shooting parameters, and transmit the captured images (image data) to the image processing device 101. The image processing device 101 performs image processing on the received images, and outputs the results of the image processing. The cameras 102-104 can change various shooting parameters such as pan / tilt, zoom magnification, focal length, aperture, and signal amplification rate. The cameras 102-104 may change the various shooting parameters described above based on instructions from the image processing device 101.

[0017] The system control device 110 transmits an instruction (control instruction) to the robot 105. Upon receiving the instruction, the robot 105 changes its posture so that it can grasp the workpiece 107 placed on the workbench 106. After the robot 105 moves to a predetermined posture, the cameras 102-104 take images. The image processing device 101 acquires the images taken by the cameras 102-104.

[0018] The camera 102 mainly photographs the workpiece 107 placed on the workbench 106. The image processing device 101 performs image processing on the image photographed by the camera 102 and measures the position and orientation of the workpiece 107 placed on the workbench 106. After measuring the position and orientation of the workpiece 107, the image processing device 101 returns the measurement result to the system control device 110. The system control device 110 performs processing to correct the gripping position of the robot 105 according to the returned measurement result. The system control device 110 transmits the processing result to the robot 105. The robot 105 corrects the gripping position based on the received processing result, and aligns and loads the workpiece 107 on the serving tray 108. The serving tray 108 may be stationary or may be transported, for example, by a belt conveyor or the like.

[0019] The camera 103 mainly photographs the robot 105. The image processing device 101 can perform image processing on the image taken by the camera 103 and inspect the behavior, position, and the like of the robot 105. The camera 104 mainly photographs the workpiece 109 loaded on the serving tray 108. The robot 105 performs so-called pick-and-place, that is, picking up the workpiece 107 placed on the workbench 106 and loading it on the serving tray 108. When the robot 105 performs pick-and-place, the image processing device 101 may, for example, perform image processing on the image taken by the camera 104 to determine the type of the workpiece 107 or to perform quality inspection, such as whether the workpiece 107 has a defect. The image processing device 101 may also change the position of the workpiece 107 loaded on the serving tray 108 by the robot 105. The workpieces placed on the workbench 106 are referred to as workpieces 107, and the workpieces loaded on the serving tray 108 are referred to as workpieces 109. A predetermined number of the workpieces 109 are aligned and loaded on the serving tray 108. The image processing device 101 may also perform image processing using images captured by the camera 103, and inspect the behavior, position, and so on of the robot 105. The workpieces 107 and 109 are examples of objects to be monitored. The object to be monitored may be something other than a workpiece.

[0020] In industrial applications, as shown in FIG. 1, repetitive operations such as pick-and-place of a robot 105 are often performed. When the image processing device 101 and the cameras 102-104 are used as visual aids for the robot 105 and a transport device, the operation of the entire system is preset in the system control device 110. Furthermore, the timing, parameters, and composition of images captured by the cameras 102-104 are preset in advance so that image processing by the image processing device 101 is suitably performed. For example, as shown in FIG. 1, several cameras are installed near an area (work area) where the robot 105 works, and each camera captures a predetermined work area. The cameras 102-104 transmit the captured images to the image processing device 101 at all times or as needed. The image processing device 101 stores the images received from the cameras 102-104. This allows the image processing device 101 to store a plurality of images captured at different times and acquired from the cameras 102-104. Furthermore, the image processing device 101 can refer to or delete each stored image as necessary.

[0021] Here, the coordinates of the work table 106, the serving table 108, etc. can be taught to the robot 105. The image processing device 101 can acquire images and perform image processing using the timing and time when the robot 105 passes through the taught points. The taught points are stored, for example, in the robot 105, the system control device 110, etc. Furthermore, the image processing device 101, etc. may store shooting parameters (exposure, shooting angle, zoom magnification, etc.) corresponding to the taught points, or a method of determining the shooting parameters (use of fixed values, automatic exposure, automatic focus, etc.). The cameras 102 to 104 may perform shooting using the shooting parameters corresponding to the taught points.

[0022] The image processing device 101 stores image processing parameters, contents, etc. For example, the image processing device 101 stores image processing parameters, contents, etc. when the robot 105 grasps the workpiece 107. The image processing device 101 also stores image processing parameters, contents, etc. when the robot 105 grasps the workpiece 107 and when it lifts up the workpiece 107. The image processing device 101 also stores image processing parameters, contents, etc. when the robot 105 moves the workpiece 107 from the workbench 106 to above the serving tray 108. The image processing device 101 also stores image processing parameters, contents, etc. when checking the availability of the serving tray 108 and the occurrence of abnormalities related to the work such as spillage.

[0023] FIG. 2 is a flowchart showing the flow of processing of the entire system. The system according to this embodiment operates according to a flowchart created by a user using the image processing device 101. However, the system according to this embodiment may also operate according to a flowchart created by a user in a predetermined device other than the image processing device 101. Furthermore, the operation of the system according to this embodiment may be realized by a user selecting, on a GUI (Graphical User Interface), a package function that includes pre-prepared combined flowcharts prepared in advance in a standard format by function or purpose. Furthermore, the operation of the system according to this embodiment may be realized by adjusting parameters.

[0024] The flowchart in FIG. 2 shows a series of steps from when the robot 105 takes out the workpieces 107 from the workbench 106 to when it places them in an aligned state on the serving tray 108. When the system starts to operate, the cameras 102 to 104 start taking pictures. The cameras 102 to 104 transmit the captured images to the image processing device 101 all the time or as needed. The image processing device 101 stores the received images. In S202, the system control device 110 instructs the robot 105 to move above the workbench 106, and the robot 105 moves based on the received instruction. At this time, for example, the robot 105 moves to a position where the gripping mechanism at the tip can grip the workpiece 107.

[0025] Next, the system control device 110 instructs the image processing device 101 to perform image processing. In S203, the image processing device 101 performs image processing on the images acquired from the cameras 102 to 104 in accordance with the instruction. The image processing device 101 measures whether or not the workpiece 107 is placed on the workbench 106, and the position, phase, etc. of the workpiece 107, based on the image acquired from the camera 102. Furthermore, the image processing device 101 measures whether or not the workpiece 109 is placed on the serving tray 108, and the position, phase, etc. of the workpiece 109, based on the image acquired from the camera 104. The image processing device 101 transmits the measurement result to the system control device 110. This enables the system control device 110 to detect the occurrence of an abnormality in the vicinity of the workbench 106 or the serving tray 108.

[0026] In S204, the system control device 110 corrects and controls the robot 105 based on the result of the image processing measured in S203. At this time, the system control device 110 moves the robot 105 above the workpiece 107 and controls the rotation of an end effect such as a robot hand and restricts the operation of the robot 105. The system control device 110 may also determine the status of the workpiece 107 and the workbench 106 and instruct the robot 105 to change the operating speed or stop the system operation.

[0027] In S205, the robot 105 moves to a position where the robot hand or the like can grasp the workpiece 107 based on an instruction from the system control device 110. Specifically, the robot 105 moves to above (directly above, etc.) the workpiece 107. In S206, the robot 105 controls the opening and closing of the robot hand as an end effector based on the instruction received from the system control device 110, and grasps (picks) the workpiece 107.

[0028] Next, in S207, the robot 105 moves so that the work 107 is positioned above the serving tray 108 based on an instruction from the system controller 110. In S208, the image processing device 101 performs image processing on the image acquired from the camera 104 based on an instruction from the system controller 110, and measures the position and attitude of the serving tray 108. Then, the image processing device 101 calculates information on the position of the serving tray 108 on which the work 107 is to be placed, and transmits the calculation result to the system controller 110. In S209, the robot 105 moves to a position where the work 109 can be loaded at the height of the serving position on the serving tray 108 based on an instruction from the system controller 110. At this time, the system controller 110 may determine the serving position based on the number of times pick-and-place is repeated, the number of loaded pieces acquired from outside, etc.

[0029] In S210, the robot 105 places the workpiece 109 based on instructions from the system controller 110. As a result, the workpiece 109 is loaded onto the serving tray 108. In S211, the robot 105 moves above the serving tray 108 based on instructions from the system controller 110. In S212, the system controller 110 determines whether the number of tasks performed by the robot 105 has reached a predetermined number. If the system controller 110 determines NO in S212, it returns the flow to S202. On the other hand, if the system controller 110 determines YES in S212, it ends the processing in FIG. 2. The predetermined number of tasks can be set to any number of times.

[0030] In the above, the cameras 102-104 and the image processing device 101 can be used not only as the vision of the robot 105 but also to monitor the working status of the system. For example, the cameras 102-104 and the image processing device 101 can play a role in monitoring whether or not the work 107 placed on the work table 106 or the work 109 loaded on the serving tray 108 has collapsed. In addition, the cameras 102-104 and the image processing device 101 can constantly monitor whether or not an abnormality that may cause an impediment to the work of the robot 105 has occurred in the vicinity of the working area where the robot 105 works (for example, the work table 106, the serving tray 108, etc.).

[0031] Next, the image processing device 101 will be described. FIG. 3 is a diagram showing an example of the image processing device 101. The image processing device 101 is connected to the cameras 102 to 104, a display device 301, and an input device 302. The display device 301 is a cathode ray tube, a liquid crystal panel, or the like that displays an image. The input device 302 is a keyboard, a mouse, a touch panel, an input operation controller, a gesture input device, or the like. The display device 301 can display a GUI screen, and can be operated by the input device 302. The display device 301 and the input device 302 may be an integrated device such as a touch panel display. The display device 301 and the input device 302 may also constitute a part of the image processing device 101.

[0032] In the example of Fig. 3, the image processing device 101 has interfaces 303 corresponding to each of the cameras 102 to 104, the display device 301, and the input device 302. In Fig. 3, the interfaces are expressed as "I / F". Each interface 303 may be an interface that complies with a standard suitable for communication with each device. For example, the interface 303 is configured by a network interface, a serial communication interface, or the like.

[0033] The image processing device 101 has a control unit 304 and a storage unit 305. Each interface 303, the control unit 304, and the storage unit 305 are mutually connected by an internal bus. The control unit 304 controls the entire image processing device 101. The control unit 304 also functions as a calculation unit that performs calculations for image processing. The control unit 304 has, for example, a CPU and a processor for image processing. For example, a non-volatile memory device such as a ROM, a RAM, or an EEPROM, or an external storage device (such as a storage device composed of a HDD or semiconductor elements) can be applied to the storage unit 305. The storage unit 305 may be composed of a file area, a virtual storage area, or the like of each of the above storage devices. The CPU of the control unit 304 executes a program stored in the storage unit 305 to realize the processing of this embodiment.

[0034] The data storage area 306 is composed of a RAM area in the storage unit 305, a file area or a virtual storage area of ​​an external storage device, etc. The data storage area 306 is capable of temporarily storing processing data, and temporarily stores setting parameters for image processing, etc. The storage unit 305 also stores an image processing program 307 for carrying out the image processing of this embodiment. The image processing program 307 is software for changing settings for image processing, etc., in response to various operations performed using the input device 302, and for executing image processing. Information on changes to the settings for image processing can be stored in the storage unit 305 or the data storage area 306, and can also be deleted.

[0035] The image processing program 307 is composed of software that realizes various functions. The image processing function 308 is a main function of the image processing program 307 that realizes image processing. The image processing function 308 can use an image processing library 309. The image processing library 309 is implemented, for example, as a statically or dynamically linked library. The image processing setting function 310 determines the behavior of the processing realized by the image processing program 307 in accordance with various operations set from the input device 302 or the like.

[0036] Furthermore, the image processing program 307 includes various I / O (input / output) routine functions. The external device control function 311 is a function for controlling an external device. The saved data generation function 312 is a function for generating saved data. The instruction reception function 313 is a function for receiving the contents of an operation performed using the input device 302 and recognizing the contents of the operation. The memory control function 314 is a function for temporarily storing data in the RAM area of ​​the memory unit 305, the cache area of ​​the control unit 304, etc. The display screen generation function 315 is a function for generating a display screen to be displayed on the display device 301.

[0037] Each function of the image processing program 307 is stored in the storage unit 305 in the form of an application (utility) program or a subroutine configured as a statically or dynamically linked library, thereby implementing each function of the image processing program 307. The control unit 304 that executes the image processing program 307 corresponds to a monitoring means, an analysis means, and a display control means.

[0038] The image processing device 101 performs, for example, control of the cameras 102 to 104 and image processing, etc., by the control unit 304 executing the image processing program 307. The image processing device 101 also accepts a user operation using the input device 302 and receives an instruction from an external control device (such as the system control device 110). The control unit 304 calls each function or library of the image processing program 307 in response to the above-mentioned user operation or an instruction from the external control device, and performs arithmetic processing. Then, the image processing device 101 transmits the result of the image processing to the system control device 110. The image processing device 101 can also accumulate (log) the result of the image processing as a log in an external storage device, the storage unit 305, etc. Also, for example, the image processing setting function 310 of the image processing device 101 may generate a screen in which the result of the image processing is superimposed on the screen configuration, and display the generated screen on the display device 301.

[0039] Next, a flowchart creation screen for constructing the image processing program 307 will be described. FIG. 4 is a diagram showing an example of the flowchart creation screen. The flowchart creation screen corresponds to the first screen. The control unit 304 executes the image processing program 307 constructed by a flowchart or the like created on the flowchart creation screen, thereby realizing the execution of the processes of S203 and S208 in FIG. 2. The flowchart creation screen is displayed on the display device 301. On the flowchart creation screen, the user can freely set the contents of the process performed by the image processing program 307 using the input device 302. The image processing program 307 may also be constructed by a separate device different from the image processing device 101. In this case, the image processing device 101 acquires the image processing program 307 from the separate device and stores it in the storage unit 305. The image processing program 307 may also be realized by the user selecting a package function on a GUI that includes a combined flowchart prepared in advance in a fixed format according to function or purpose, or by adjusting parameters.

[0040] As shown in FIG. 4, the flowchart creation screen is mainly divided into a parts list area 401 and a flowchart area 402. The parts list area 401 is an area that displays a list of multiple processing parts that indicate the contents of processing. The processing parts correspond to processing units. The processing parts are not limited to the example of FIG. 4. The user can select processing parts from the parts list area 401 using a mouse or the like as the input device 302, and perform an operation of connecting the processing parts with a line in the flowchart area 402. For example, the user can use the mouse to operate the mouse pointer 400P and drag and drop the processing parts into the flowchart area 402. Then, the user performs an operation of connecting each processing part in the flowchart area 402 with a line. Based on these operations, the control unit 304 can create a flowchart based on the user operations.

[0041] A flowchart in the flowchart area 402 in FIG. 4 will be described. The flowchart in the flowchart area 402 is a GUI flowchart created by a user. "Accept" in S404 is a process in which the image processing device 101 accepts an image processing instruction from the system control device 110. The processing part of S404 may be set in advance as an initial value in the flowchart area 402. At this time, a flowchart of the image processing may be specified, or parameters for executing the image processing or the time of the image data to be used may be specified. "Image acquisition" in S405 is a process for acquiring and storing images from the cameras 102 to 104. The image data acquired in the process of S405 may be the latest image data among the image data stored in the storage unit 305 or the external storage device, or may be image data at a time (measurement time) specified by the system control device 110.

[0042] The "presence inspection" in S406 is a process for inspecting the presence or absence of a workpiece on the acquired image data. A method for inspecting the presence or absence of a workpiece is provided by the image processing library 309. For example, the presence or absence inspection of a workpiece may be performed based on the area of ​​the extracted workpiece after extracting the workpiece using luminance information, color information, etc. Also, the presence or absence inspection of a workpiece may be performed by pattern matching using shape feature information of the shading distribution or luminance gradient. Furthermore, the presence or absence inspection of a workpiece may be performed by extracting pixels with a luminance gradient equal to or greater than a certain level as edge information, and using the position, center of gravity, inclination, etc. of the extracted edge.

[0043] The "determination process" of S407 is a process for determining whether the processing result of the "presence check" of S406 falls within the threshold range of the created flowchart. For example, assume that the area of ​​a workpiece is extracted by the "presence check" process of S406. In this case, the process of S407 is a process for determining to what extent the area of ​​the extracted workpiece exists within a predetermined region. In this embodiment, whether an abnormality has occurred in the system is detected based on the processing result of the "determination process" of S407. The "result record" of S408 is a process for recording the execution results of the processes of S405 and S406 and the processing result of S407, etc.

[0044] For example, when the process of S408 is executed, the start time of the process of S404 and the contents of a predetermined execution option may be stored. When the process of S408 is executed, the image data acquired in the process of S405 may be stored, and the shooting time, image size, shooting parameters, etc. of the image data may be stored. When the process of S408 is executed, the area, shading information, gradient information, color information, etc. of the work extracted in the process of S406 may be stored. Furthermore, when the process of S408 is executed, the processing result of the flowchart by the process of S407 may be stored. The above various data are stored in the data storage area 306, the RAM area, the cache area of ​​the control unit 304, etc.

[0045] The "reply" process of S409 is a process for outputting various data stored by executing the process of S408 and terminating the flowchart. The processing part of S409 may be set in advance as an initial value in the flowchart area 402. When the process of S409 is executed, a process may be executed to output the processing result to the system control device 110, a process may be executed to store the processing result in the data storage area 306, or a process may be executed to display the processing result on the display device 301. The various data stored in the data storage area 306, the RAM area of ​​the storage unit 305, the cache area of ​​the control unit 304, etc., may be referred to or deleted.

[0046] Therefore, the user can create any flowchart by selecting desired processing parts from the parts list area 401 and adding them to the flowchart area 402. In the example of Fig. 4, a flowchart 403 is generated that is composed of each processing part (S404 to S409) in the flowchart area 402. That is, the image processing device 101 generates the image processing program 307 based on the flowchart created by the user's operation. This increases the degree of freedom in designing the image processing program 307.

[0047] Here, it is assumed that one of the processing parts in the flowchart 403 in Fig. 4 is selected by a user operation. The processing part may be selected by, for example, double-clicking the mouse serving as the input device 302. When the control unit 304 receives the operation to select a processing part, it transitions the screen displayed on the display device 301 to a detailed setting screen for setting detailed processing of the selected processing part. Details of the detailed setting screen will be described later.

[0048] The flowchart 403 in Fig. 4 is an example of a flowchart created based on a user operation, and may be, for example, a flowchart using a "conditional branch" processing part. In this case, the flowchart created is a flowchart that executes different processes depending on the conditions. The flowchart creation screen in Fig. 4 includes a list box 421, an OK button 422, and a close button 423.

[0049] List box 421 is provided for adding a new flowchart or selecting a flowchart that has already been created. When adding a new flowchart, the name of the new flowchart can be input in list box 421. In the example of FIG. 4, a flowchart can be added or selected in a pull-down menu format by a user operation on list box 421. In this embodiment, multiple flowcharts are created on the flowchart creation screen. Each of the multiple created flowcharts is associated with a name that identifies the flowchart. For example, the name "Flow1" is associated with flowchart 403 in the example of FIG. 4.

[0050] The OK button 422 is a button for confirming the flowchart displayed in the flowchart area 402. When the OK button 422 is pressed, the control unit 304 generates the flowchart displayed in the flowchart area 402. As described above, on the flowchart creation screen, a plurality of different flowcharts are created based on a user operation. The control unit 304 generates a plurality of flowcharts according to the plurality of flowcharts that have been created. The close button 410 is a button for closing the flowchart creation screen.

[0051] As described above, the cameras 102-104 and the image processing device 101 can be used to monitor the working status of the system. For example, the cameras 102-104 and the image processing device 101 monitor whether or not the work 107 placed on the workbench 106 and the work 109 loaded on the serving tray 108 have collapsed. The cameras 102-104 and the image processing device 101 also monitor whether or not the robot 105 is moving in a manner that deviates from a predetermined operation.

[0052] Hereinafter, the regular monitoring of the system by the image processing program 307 and the analysis process of the cause of the abnormality when an abnormality occurs will be described. FIG. 5 is a diagram showing an example of a monitoring state when the workpiece 109 is normally loaded on the serving tray 108. The camera 104 captures the workpiece 109 loaded on the serving tray 108. In the image data 501 captured by the camera 104, a monitoring area 502 is indicated by a dashed line. The monitoring area 502 is an example of a first area. Here, it is assumed that the image processing device 101 constantly acquires image data from the cameras 102 to 104. The control unit 304 of the image processing device 101 uses shading information, contour extraction, pattern matching, etc. to determine whether the workpiece 109 is stably loaded based on whether the workpiece 109 has entered the monitoring area 502.

[0053] Similar to the processing of the processing part 406, the control unit 304 performs image processing on the acquired image data, calculates the position of the workpiece, and determines whether the calculated position of the workpiece has entered the monitoring area 502. When the control unit 304 determines that the calculated position of the workpiece has entered the monitoring area 502, it detects that an abnormality has occurred.

[0054] The control unit 304 may change the size of the monitoring area 502 depending on the time of shooting by the cameras 102 to 104. For example, assume that the system operates all day. During the day, it is considered that many workers are engaged in work around the system. For this reason, the workers may enter the monitoring area 502. In this case, an abnormality is falsely detected. Therefore, the control unit 304 may narrow the monitoring area 502 to a predetermined range during the day (for example, the time when the workers are set to work). On the other hand, at night, the possibility of a false detection of an abnormality due to the workers entering the monitoring area 502 is low. Therefore, the control unit 304 may widen the monitoring area 502 to a predetermined range during night (for example, the time other than the time when the workers are set to work). The control unit 304 may also change image processing parameters such as an abnormality detection threshold and contour detection sensitivity depending on the time of shooting. For example, since it is expected that the environmental fluctuations are large during the day, the control unit 304 may narrow the detection threshold to reduce the sensitivity of anomaly detection and suppress overdetection. Also, since it is expected that the environmental fluctuations are small during the night, the control unit 304 may widen the detection threshold to increase the detection sensitivity.

[0055] Fig. 6 is a diagram showing an example of a monitoring state when workpieces loaded on the serving tray 108 collapse. In the example of Fig. 6, the workpiece 109 in the second row from the bottom has fallen due to the collapse of the load and has entered the monitoring area 502. At this time, as shown in the example of Fig. 6, the control unit 304 can detect that the workpiece 109 has entered the monitoring area 502 by applying image processing to the image data captured by the camera 104. In other words, the control unit 304 can detect a system abnormality. When the control unit 304 detects a system abnormality, it further performs image processing (analysis processing) to analyze the cause of the abnormality.

[0056] Next, an analysis process for monitoring an abnormality and analyzing the cause of the abnormality will be described. FIG. 7 is a diagram showing an example of an operation setting screen for setting an operation when an abnormality occurs. The screen in FIG. 7 corresponds to the second screen. In the screen (GUI) in FIG. 7, a list box 701 is a selection item for selecting which of the cameras 102 to 104 is to be displayed as a live video. In the example in FIG. 7, the list box 701 can select a camera for displaying a live video in a pull-down menu format. For example, a user can select a camera from the list box 701 by operating a mouse as the input device 302 with a mouse pointer 700P. The setting button 702 is a button for displaying the video of the camera selected in the list box 701 in the video display area 703. In the example in FIG. 7, the live video of the camera 104 is displayed in the video display area 703.

[0057] The list box 704 is a setting item for setting a flowchart (first flowchart) of image processing for monitoring that is periodically executed in the system. As described above, a plurality of flowcharts are generated on the flowchart creation screen of FIG. 4, and a name is associated with each of the plurality of flowcharts and stored. The list box 704 is a selection item for selecting any of the flowcharts as a flowchart for monitoring whether an abnormality has occurred in the system. For example, the user can use a mouse to select any of the created flowcharts from the pull-down menu of the list box 704. The example of FIG. 7 shows an example in which "Flow1" is selected as a flowchart for monitoring whether an abnormality has occurred in the system. The check box 706 is provided for setting whether or not to monitor the system.

[0058] Tab 707 is a setting item for setting the operation of the analysis process when an abnormality is detected. The number of tabs 707 can be added and deleted. For example, when an operation to add or delete the number of tabs 707 is performed, control unit 304 performs control to add or delete the number of tabs 707. When there are multiple tabs 707, it is also possible to set a different operation when an abnormality is detected for each of the multiple tabs. In the example of FIG. 7, the number of tabs 707 is two.

[0059] Among the tabs 707, the tab "Action 1 in Abnormal State" includes a first list box 710, a second list box 711, and a check box 712. "Action 2 in Abnormal State" may have a similar configuration, or a different configuration. The number of tabs and the number of list boxes may be any number.

[0060] The first list box 710 and the second list box 711 are provided for selecting a flowchart (second flowchart) of an analysis process when an abnormality is detected. For example, the user can use a mouse to select one of a plurality of already created flowcharts from the first list box 710 and the second list box 711 in a pull-down menu format. In the example of FIG. 7, "Flow2" and "Flow5" are selected as already created flowcharts. Therefore, on one screen (GUI of FIG. 7), it is possible to set a first flowchart for image processing for monitoring and a plurality of second flowcharts for image processing for analyzing the cause of an abnormality in association with each other.

[0061] When performing analysis processing, the control unit 304 executes the image processing program 307 based on the flowcharts of "Flow2" and "Flow5". The control unit 304 may process "Flow2" and "Flow5" in parallel or sequentially. A check box 712 is provided for setting whether or not to stop the system when an abnormality is detected. When the check box 712 is checked, the system is stopped, and when the check box is not checked, the system is not stopped.

[0062] The control unit 304 may change the priority of execution between "Flow2" and "Flow5" or switch tabs depending on the degree of occurrence of an abnormality. For example, it is assumed that the check box 712 is checked in the "Abnormal Operation 1" tab among the tabs 707, and the check box 712 is not checked in the "Abnormal Operation 2" tab. In this case, if the degree of abnormality detected based on "Flow1" is less than a predetermined degree, the control unit 304 preferentially executes the flowchart of "Flow5" that does not involve stopping the system. In this case, the system can maintain an operating state.

[0063] Also, assume that the control unit 304 extracts the area of ​​the workpiece from the image data based on the flowchart of "Flow1". At this time, if the area of ​​the detected workpiece is smaller than a predetermined area and the rate of change is lower than a predetermined rate, it is assumed that the loading state of the workpiece is stable. In this case, since the type of the workpiece is likely to be different, the control unit 304 may preferentially execute a flowchart for inspecting the type of workpiece as an analysis process. On the other hand, if the area of ​​the detected workpiece is equal to or larger than a predetermined area and the rate of change is higher than a predetermined rate, the control unit 304 determines that the workpiece has collapsed. In this case, the control unit 304 may preferentially execute a flowchart for inspecting the inclination of the workpiece as an analysis process. In other words, the control unit 304 sets which of the flowcharts "Flow2" and "Flow5" is to be preferentially executed according to the result of executing the flowchart of "Flow1".

[0064] 7, a test execution button 713 is a button for test-executing the system monitoring operation and the operation when an abnormality occurs. An online button 714 is a button for switching the system monitoring operation and the operation when an abnormality occurs to a state where the system waits online until an instruction is received from an external device. A log display area 715 is an area for displaying information about events such as abnormalities that occur in the system as a log during the system monitoring operation.

[0065] Fig. 8 is a diagram showing an example of a created flowchart. Fig. 8 shows three flowcharts, "Flow1", "Flow2", and "Flow5", which are selected in Fig. 7. "Flow1" in Fig. 8(A) is a flowchart for monitoring the system and detecting anomalies. The processes in S801 to S806 are similar to the processes in S404 to S409 shown in Fig. 4.

[0066] "Flow 2" in FIG. 8(B) is a flowchart of an analysis process for inspecting the type of workpiece. The "reception" process of S811 is the same as the process of S404 in FIG. 4. However, "Flow 2" is a flowchart for accepting processing when an abnormality occurs. Therefore, when the control unit 304 executes the process of S811 in the flowchart of "Flow 2", it may also output information such as numerical information, position information, and judgment time as the image processing result based on the previous flowchart of "Flow 1". In addition, the control unit 304 may output each piece of information to the system control device 110, for example.

[0067] S812 is a process of "detection of a change in judgment" included in the parts list area 401 of FIG. 4. Here, the control unit 304 recognizes the time when the predetermined judgment value in the flowchart changes by a certain amount as the time when an abnormality occurs in the system. The time when the predetermined judgment value changes by a certain amount may be the time when the predetermined judgment value starts to change by a certain amount. In this case, the time when an abnormality occurs in the system is the time when the abnormality begins to occur in the system. The judgment value is accumulated in the data storage area 306 or the like. When executing the process of S812, the control unit 304 may refer to the accumulated judgment value data and judge whether the judgment value has changed by a certain amount. The threshold value for making the judgment in S812 may be arbitrarily settable or may be obtained from an external device. In addition, the threshold value for making the judgment in S812 may be dynamically changed by statistical analysis of the accumulated judgment value data.

[0068] S813 is an "image acquisition" process. When executing the process of S813, the control unit 304 acquires an image to be subjected to image processing. At this time, the control unit 304 acquires image data at the time detected in the process of S812 (the time when an abnormality occurred in the system). This allows the control unit 304 to acquire image data at a time before the abnormality was detected by executing the "Flow1" flowchart as image data at the time when the abnormality occurred.

[0069] S814 is a process of "read data code" included in the parts list area 401 in FIG. 4. When executing the process of S814, the control unit 304 reads the data code of the workpiece by performing image processing on the acquired image data. The data code is, for example, a one-dimensional code, a two-dimensional code, or data based on a combination pattern of characters and figures. The method of reading the data code may be provided by the image processing library 309. For example, the control unit 304 may extract the data code using brightness information, color information, etc., and then perform a data code reading process. The data code may be affixed to the workpiece or engraved on the workpiece.

[0070] S815 is a "determination process". When executing the process of S815, the control unit 304 determines whether the data code read in the process of S814 corresponds to the dictionary data or work type stored in the data storage area 306 or the RAM area of ​​the storage unit 305. If the read data code does not correspond to the dictionary data or work type stored in advance, the control unit 304 recognizes that the determination process of S815 is abnormal. Similarly, if the control unit 304 fails to read the data code in the process of S814, the control unit 304 recognizes that the determination process of S815 is abnormal. The process of S816 is the same as the process of S412 in FIG. 4, and the process of S817 is the same as the process of S407 in FIG. 4.

[0071] "Flow5" in FIG. 8(C) is a flowchart of an analysis process for inspecting the inclination of a workpiece. Among the processes of S812 to S827 in FIG. 8(C), the process of S824 is different from "Flow2" in FIG. 8(B). The processes other than S824 are the same as "Flow2" in FIG. 8(B). However, the process of "detecting a change in judgment" in S822 may be the same as S812 in "Flow2" in FIG. 8(B), or may be different. For example, the process of "detecting a change in judgment" in S822 may be a process of approximating the accumulated judgment value data to a straight line or a curve within a certain section, and detecting the time when the slope of the straight line or the curve exceeds a certain amount as the time when an abnormality occurs in the system. The process of "detecting a change in judgment" in S822 may be a process of statistically processing the accumulated judgment value data, calculating the fluctuation range of the data using standard deviation or the like, and detecting the time when the fluctuation range value deviates from the reference value by a certain amount as the time when an abnormality occurs.

[0072] S824 is a process of "tilt inspection" included in the parts list area 401 in Fig. 4. The method of tilt inspection may be provided by the image processing library 309. When executing the process of S824, the control unit 304 may, for example, extract an intensity gradient of an image and perform tilt calculation using an approximation line of the extracted intensity gradient. Furthermore, when executing the process of S824, the control unit 304 may perform pattern matching or the like based on predefined feature information and calculate the tilt using matching information that is a result of the pattern matching.

[0073] Next, the detailed setting screen will be described. FIG. 9 is a diagram showing an example of a detailed setting screen for the processing of the presence / absence inspection. The detailed setting screen corresponds to the third screen. The detailed setting screen is a screen for performing settings for each processing part in the parts list area 401. The detailed setting screen may also be dynamically generated according to the configurable items. The detailed setting screen of FIG. 9 is a GUI for calculating the position and orientation of the workpiece by an image processing method using shading information and performing the presence / absence inspection of the workpiece. In the detailed setting screen of FIG. 9, the processing area to be targeted by the processing of the corresponding processing part can be set. In the example of FIG. 9, the area in which the presence / absence inspection of the workpiece is performed is the processing area.

[0074] For example, a processing area is also set for the "data code reading" process of S814. In this case, the processing area is set around the area on the serving tray 108 where the workpieces are to be loaded. Also, for example, a processing area is also set for the "tilt inspection" process of S824. Since the area subject to the tilt inspection is the workpieces from the second tier from the bottom onwards loaded on the serving tray 108, the processing area is set around the second tier from the bottom loaded on the serving tray 108. The setting of the processing area is not limited to the above example. The processing area subject to the "data code reading" process of S814 and the processing area subject to the "tilt inspection" process of S824 are both different from the monitoring area 502.

[0075] Selection item 901 in the detailed setting screen in Fig. 9 is a list item for selecting an image. When the user presses selection item 901 with the mouse, control unit 304 causes display device 301 to display in list form the file names of the images stored in storage unit 305 and the character string "camera image." The file name of the image is information that identifies the image, but information that identifies the image may be something other than the file name.

[0076] When the user performs an operation to select the file name of an arbitrary image from the displayed list, the control unit 304 registers the image corresponding to the selected file name as an image for setting. In the example of Fig. 9, an image with the file name "Master Image" is selected as the image for setting. The setting item 902 is an item for specifying the camera that will take the image. In the example of Fig. 9, it is shown that the image will be taken by the camera 104.

[0077] A setting image is displayed in the image display area 907. In the detailed setting screen of FIG. 9, a setting item 903 is an item for setting the shape of the area. In the setting item 903, a shape such as a rectangle, a circle, an ellipse, or an annulus can be selected as the shape of the area. In the example of FIG. 9, options are presented in a list format displayed in a pull-down menu, and the shape of the area is set based on a user operation. The shape of the area may be a combination of the above shapes, or a predetermined area may be added or subtracted. In addition, the shape of the area may be freely set by the user drawing it with a mouse.

[0078] FIG. 9 shows an example of setting rectangular areas 907A to 907C. The rectangular areas 907A to 907C are the same as the monitoring area 502 described above. As shown in FIG. 9, the rectangular areas 907A and 907C have the same height, and the rectangular area 907B is an area that connects the rectangular areas 907A and 907C. The setting item 904 is an item for setting one rectangular area in the xy coordinate system of the setting image (image data). In the setting item 904, numerical values ​​can be input into the x coordinate and y coordinate of the upper left corner and the x coordinate and y coordinate of the lower right corner of the rectangular area. When the user performs an operation of inputting numerical values ​​into each coordinate, one rectangular area is set based on the input numerical values. Here, an image coordinate system is applied in which the upper left corner of the image data is the origin, the horizontal direction is the x axis, and the vertical direction is the y axis.

[0079] Coordinates of the setting item 904 may be adjusted by pressing a count up button and a count down button instead of inputting a numerical value. When one rectangular area is set, the control unit 304 superimposes the set rectangular area on the image data of the setting image displayed in the image display area 907. This allows the user to set rectangular areas 907A to 907C while visually checking the setting image in the image display area 907.

[0080] Next, the setting of the workpiece presence / absence inspection will be described. The setting item 905 is an item for setting an inspection method. In the example of FIG. 9, it is shown that the inspection of the presence / absence of the workpiece is performed based on "area". For example, rectangular areas 907A to 907C form a section in a concave shape. The control unit 304 can detect the area of ​​the workpiece by performing image processing on the image data displayed in the image display area 907. The setting item 906 is an item for setting a detection threshold for inspecting whether or not the workpiece is present in the above section. The detection threshold may be an absolute value of the area, or may be a ratio of the area of ​​the workpiece to the section. The area of ​​the workpiece by image processing may be detected based on the area of ​​pixels that fall within a specific shading range or color density range. In addition, the setting item 911 is an item for setting a threshold for detecting a change. The setting item 911 will be described in detail later.

[0081] The test execution button 908 is a button for executing test photography. When the user presses the test execution button 908, the control unit 304 causes photography to be performed by the camera 104 registered in the setting item 902. The camera to be used in the setting item 902 may be registered in advance or can be switched. When the image processing device 101 acquires an image captured by the camera 104, the control unit 304 detects a workpiece inside a partition formed by rectangular areas 907A to 907C. This allows the control unit 304 to inspect the presence or absence of a workpiece based on whether the area of ​​the workpiece in the partition is equal to or greater than a detection threshold.

[0082] The OK button 909 is a button for saving the various settings described above. When the user presses the OK button 909, the control unit 304 associates the information set in each setting item with the image processing program 307 and stores it in the storage unit 305. When the image processing program 307 is executed or when settings are to be made again, the control unit 304 reads out the information of each setting item stored in the storage unit 305. The cancel button 910 is a button for discarding the information of each setting item. When the user presses the cancel button 910, the control unit 304 discards the information set in each setting item.

[0083] As described above, the control unit 304 generates a plurality of flowcharts based on the contents created on the flowchart creation screen. Also, the control unit 304 generates a flowchart for monitoring whether an abnormality has occurred in the system, and a plurality of flowcharts to be executed when an abnormality has been detected in the system, based on the contents set on the operation setting screen. Then, the control unit 304 generates an image processing program 307 constructed from the various flowcharts described above. Then, the control unit 304 executes the image processing program 307 to perform a monitoring process for abnormality detection and an analysis process for analyzing the cause of the abnormality.

[0084] Next, monitoring of whether an abnormality has occurred in the system will be described. FIG. 10 is a diagram showing an image of a plurality of frames and abnormality detection. Frames 1 to 6 in FIG. 10 are frames (image data) captured by camera 104. FIG. 10 shows an example in which abnormality detection is performed based on the above-mentioned flowchart of "Flow1". The number of frames is not limited to six. Each frame is stored in storage unit 305 or the like. The area indicated by the dashed line in each frame is the above-mentioned monitoring area 502. The monitoring area 502 is formed by rectangular areas 907A to 907C in FIG. 9.

[0085] Frame 1 shows a situation in which a workpiece is loaded onto the serving tray 108 by the end effector of the robot 105. The control unit 304 executes the flowchart of "Flow1", and extracts the area of ​​the workpiece that has invaded the monitoring area 502 by executing the process of S407. Here, in the example of FIG. 9, the detection threshold is set to "100". In frame 1, the area of ​​the workpiece that has invaded the monitoring area 502 is "0". Therefore, the control unit 304 determines that the system is normal because the area of ​​the workpiece that has invaded the monitoring area 502 is equal to or less than the detection threshold.

[0086] In frames 2 to 5, the end effector of the robot 105 is retracted. The control unit 304 executes the flowchart of "Flow1" to determine whether an abnormality has occurred in the system. Here, it is assumed that the loading position of the second workpiece from the bottom loaded on the serving tray 108 was not appropriate or that the workpiece was tilted. As a result, the area of ​​the workpiece (the second workpiece from the bottom) invading the monitoring area 502 gradually increases from frame 2 onwards. In frame 6, the area of ​​the workpiece invading the monitoring area 502 is "110". Therefore, the control unit 304 detects an abnormality in the system because the area of ​​the workpiece invading the monitoring area 502 has exceeded the detection threshold.

[0087] Here, the control unit 304 detects an abnormality in frame 6 by executing the flowchart of "Flow1". However, it is possible that the time at which the abnormality occurred is a time prior to frame 6. For this reason, in order to analyze the cause of the abnormality, it is preferable to perform analysis processing on images with a time prior to the time at which the abnormality was detected by executing the flowchart of "Flow1".

[0088] S812 in "Flow 2" and S822 in "Flow 5" in Fig. 8 are processes for detecting a change in judgment. In setting item 911 in Fig. 9, the threshold for the change in judgment value is set to "10". In this case, the control unit 304 detects the time when the change in the area of ​​the workpiece invading the monitoring area 502 becomes equal to or exceeds the change threshold of "10" between the previous and next frames as the change point (the time when an abnormality occurs). In the example of Fig. 10, at the time of frame 3, the change in the area of ​​the workpiece invading the monitoring area 502 is "13", which is equal to or exceeds the change threshold. In this case, the control unit 304 detects that an abnormality has occurred in the system in frame 3.

[0089] The control unit 304 may thin out frames for which the process of the flowchart of "Flow1" is to be executed. For example, the control unit 304 may thin out odd-numbered frames and execute the process of the flowchart of "Flow1" only for even-numbered frames. This reduces the processing load. The control unit 304 may also thin out frames when executing the process of detecting a change in the determination result. For example, when odd-numbered frames are thinned out, the control unit 304 may detect that an abnormality has started to occur in the system at the time of a frame in which the amount of change in the even-numbered frames becomes equal to or greater than a threshold amount of change. In this case, the control unit 304 detects that an abnormality has started to occur in the system at the time of frame 4. Furthermore, when the control unit 304 thins out frames and detects that an abnormality has started to occur in the system, it may also execute the process of the flowchart of "Flow1" for the thinned out odd-numbered frames that have not been processed. In this case, the control unit 304 detects that an abnormality has started to occur in the system at the time of frame 3. In other words, after the control unit 304 detects that an abnormality has started to occur in the system, the control unit 304 executes the process of the flowchart of "Flow1" for the unprocessed frames. This reduces the processing load and enables detailed abnormality detection.

[0090] As described above, when an abnormality is detected, the control unit 304 executes the flowcharts of the analysis processes "Flow2" and "Flow5" to analyze the cause of the detected abnormality. FIG. 11 is a diagram showing an example of a screen showing the result of the analysis process. Here, it is assumed that the control unit 304 detects that an abnormality has started to occur in the system at the time of frame 3. The result display screen 1101 in FIG. 11(A) is a screen displayed on the display device 301 when the control unit 304 executes the flowchart of "Flow2". The result display screen 1111 in FIG. 11(B) is a screen displayed on the display device 301 when the control unit 304 executes the flowchart of "Flow5".

[0091] The control unit 304 may display the result display screens 1101 and 1111 when it detects that an abnormality has begun to occur. The control unit 304 may also display the result display screens 1101 and 1111 in response to pressing a specific button on the operation screen, a part on the flowchart, or the like. First, the result display screen 1101 will be described. The result display screen 1101 includes a selection item 1102. The selection item 1102 is an item for switching the flowchart. In the example of FIG. 11, the flowcharts can be switched in a pull-down menu format. That is, the result display screen 1101 and the result display screen 1111 can be switched.

[0092] In FIG. 11(A), since "Flow2" is selected, the result of executing the flow chart of "Flow2" is displayed on the result display screen 1101. The image display area 1103 is an area for displaying frames. In the example of FIG. 11(A), frame 3 is displayed. An area 1104 indicated by a dashed line in the image display area 1103 is a processing area. The processing area is set as an area where workpiece loading work is performed. In other words, it is an area different from the monitoring area 502. The flow chart of "Flow2" includes the process of "data code reading" in S814. The control unit 304 executes the process of "data code reading" to display the data code reading results 1105 and 1106 on the result display screen 1101. At this time, the control unit 304 may refer to the detected data code with the data registered in advance, count the registered items, and display the count result 1107 on the image display area 1103. For example, if unregistered products are mixed in, the size and weight of the work may differ, which may cause the load to collapse. The control unit 304 performs analysis processing by executing the flowchart of "Flow2" and can display the cause of the abnormality as shown in Figure 11(A).

[0093] In FIG. 11B, since "Flow5" is selected, the result of executing the flow chart of "Flow5" is displayed on the result display screen 1111. The description of the same parts as in FIG. 11A is omitted. The area 1114 indicated by the two-dot chain line in the image display area 1113 is the processing area. The processing area is set to the second or subsequent tier from the bottom among the multiple works loaded on the serving tray 108. The area 1114 is an area different from the monitoring area 502. The flow chart of "Flow5" includes the process of "tilt inspection" in S824. The control unit 304 executes the process of "tilt inspection" to display the detection result of the tilt of the work as a numerical value on the result display screen 1111. At this time, the control unit 304 may determine whether tilt has occurred based on whether the detected tilt is within the range of the tilt tolerance registered in advance. For example, if the gripping of the workpiece by the robot 105 or the control operation of the robot 105 is unstable or has low accuracy, the workpieces loaded on the serving tray 108 may become unstable, which may result in the load collapsing, collision, falling, etc. The control unit 304 performs analysis processing by executing the flowchart of "Flow5" and can display the cause of the abnormality as shown in Fig. 11(B).

[0094] Furthermore, the control unit 304 may perform the above-mentioned analysis process not only on frame 3 in which an abnormality was detected, but also on a number of frames before and after frame 3. This makes it possible to analyze the tendency of an abnormality to occur.

[0095] Next, the overall process flow of the monitoring process and the analysis process will be described. Fig. 12 is a flowchart showing the flow of the monitoring process and the analysis process. The control unit 304 generates each flowchart based on the contents set on the above-mentioned flowchart creation screen, operation setting screen, and detailed setting screen. The control unit 304 generates an image processing program 307 constructed by each flowchart, and stores it in the storage unit 305.

[0096] Then, in S1201, the control unit 304 reads out the image processing program 307 from the storage unit 305 and executes it. In S1202, the control unit 304 acquires each image from the storage unit 305. In S1203, the control unit 304 executes the above-mentioned flowchart of "Flow 1" to monitor whether an abnormality has occurred in the system. In S1204, the control unit 304 judges whether an abnormality has been detected. If the control unit 304 judges YES in S1204, the control unit 304 advances the process to S1205. In S1205, the control unit 304 analyzes the cause of the abnormality. At this time, the control unit 304 executes, for example, the above-mentioned flowcharts of "Flow 2" and "Flow 5" to analyze the cause of the abnormality. If the control unit 304 judges NO in S1204, the control unit 304 advances the flow to S1206. In S1206, the control unit 304 displays a result display screen such as that shown in FIG. 11(A) or (B). Then, in S1207, the control unit 304 determines whether to end the process in Fig. 12. The control unit 304 may determine to end the process, for example, when a predetermined end condition is satisfied. If the control unit 304 determines NO in S1207, the flow returns to S1202. If the control unit 304 determines YES in S1207, the control unit 304 ends the process in Fig. 12.

[0097] As described above, in this embodiment, the image processing device performs image processing on a specific image area during the operation of the system, thereby constantly monitoring the status of the system. Then, when an abnormality is detected, the image processing device performs image processing on another image area in the image data going back to the time when the abnormality occurred. This allows the cause of the abnormality to be analyzed with high accuracy. In addition, the flowchart for monitoring the abnormality and the flowchart for analyzing the cause of the abnormality are associated with each other. This allows the abnormality to be constantly monitored, and multiple complex analysis processes to be performed only when an abnormality is detected, thereby reducing the processing load of the regular system. In addition, it is possible to quickly refer to images before and after the timing when the abnormality occurred, and it is possible to quickly implement subsequent countermeasures. Furthermore, it is possible to set which analysis process is to be prioritized according to the detection contents and the detection time. This allows even an image processing device with a small data storage capacity to analyze the cause of the abnormality from the detection contents set as more important. Therefore, in this embodiment, the cause of the abnormality in the system can be analyzed efficiently. Therefore, the user can efficiently recover and maintain the system.

[0098] Although the preferred embodiments of the present invention have been described above, the present invention is not limited to the above-mentioned embodiments, and various modifications and changes are possible within the scope of the gist of the present invention. The present invention can also be realized by supplying a program that realizes one or more functions of the above-mentioned embodiments to a system or device via a network or storage medium, and having one or more processors of a computer in the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that realizes one or more functions. [Explanation of symbols]

[0099] 101 Image processing device 102~104 Camera 105 Robot 107, 109 Work 110 System control device 304 Control Unit 305 Storage section 307 Image Processing Program

Claims

1. a monitoring means for monitoring whether an abnormality has occurred in the monitoring object by performing image processing on a first region in each of a plurality of images of the monitoring object captured at different times; an analysis means for analyzing a cause of the abnormality by performing image processing on a second region, which is different from the first region, in an image before the time when the abnormality is detected, when the occurrence of the abnormality is detected; An image processing device comprising:

2. 2. The image processing apparatus according to claim 1, wherein the size of the first area is changed depending on the time when the surveillance object is photographed.

3. 3. The image processing apparatus according to claim 1, wherein a parameter for image processing for the first area is changed according to a time when the surveillance object is photographed.

4. The image processing device according to any one of claims 1 to 3, characterized in that a first flowchart for image processing for monitoring whether an abnormality has occurred in the object to be monitored and a plurality of second flowcharts for image processing for analyzing the cause of the abnormality can be created by user operation.

5. 5. The image processing apparatus according to claim 4, wherein, of the plurality of second flowcharts, a second flowchart that does not involve a system shutdown is executed with priority.

6. 5. The image processing apparatus according to claim 4, wherein a second flowchart to be executed preferentially from among the plurality of second flowcharts is set according to a result of execution of the first flowchart.

7. 7. The image processing apparatus according to claim 4, wherein the first flowchart and the plurality of second flowcharts can be set in association with each other on one screen.

8. 8. The image processing apparatus according to claim 4, wherein the screens showing the results of executing each of the plurality of second flowcharts are switchable.

9. The image processing device according to any one of claims 1 to 8, characterized in that the monitoring means acquires an image at a time when a judgment value for judging whether the abnormality has occurred has changed by a certain amount as an image prior to the time when the abnormality was detected.

10. 10. The image processing apparatus according to claim 9, wherein the monitoring means acquires the plurality of images by thinning them out.

11. 11. The image processing apparatus according to claim 1, wherein the monitoring target is a workpiece on which a robot is working.

12. an image processing device comprising: a display control means for controlling a display device to display a first screen for creating a plurality of different flowcharts, and a second screen for setting a first flowchart for image processing for monitoring anomalies from the plurality of flowcharts, and a plurality of second flowcharts for image processing for analyzing the cause of the anomaly.

13. the first flowchart is a flowchart for monitoring whether an abnormality has occurred in the monitoring target by performing image processing on a first region in each of a plurality of images of the monitoring target captured at different times; 13. The image processing device according to claim 12, wherein the second flowchart is a flowchart for, when the occurrence of the abnormality is detected, performing image processing on a second region, which is different from the first region, in an image prior to the point in time when the abnormality is detected, to analyze a cause of the abnormality.

14. 14. The image processing apparatus according to claim 12, wherein the display control means causes the display device to display, for each of the plurality of flowcharts, a third screen on which settings for each process of the corresponding flowchart are made.

15. a step of performing image processing on a first region in each of a plurality of images of the monitoring target captured at different times, thereby monitoring whether an abnormality has occurred in the monitoring target; When the occurrence of the abnormality is detected, performing image processing on a second region, which is different from the first region, in an image before the time point when the abnormality is detected, to analyze a cause of the abnormality; 13. A method for controlling an image processing device, comprising:

16. 15. A program for causing a computer to execute each of the means of the image processing apparatus according to claim 1.

Citation Information

Patent Citations

  • Cargo collapse detection method and device

    JP2007179301A

  • Luggage compartment monitoring device

    JP2016020211A

  • Image processing apparatus, image processing method, and program

    JP2017004258A

  • Control device, abnormality detection system, control method for control device, and control program

    JP2019133426A