Tool identification device, workpiece processing system, and tool identification method

The tool discrimination device uses differential image analysis to accurately determine tool type and state, addressing cost and accuracy issues in existing methods by simplifying image processing and reducing environmental dependencies.

JP2026105899APending Publication Date: 2026-06-29MAYEKAWA MFG CO LTD

Patent Information

Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
MAYEKAWA MFG CO LTD
Filing Date
2024-12-17
Publication Date
2026-06-29

Smart Images

  • Figure 2026105899000001_ABST
    Figure 2026105899000001_ABST
Patent Text Reader

Abstract

The type and status of the tool can be accurately determined through simple image analysis. [Solution] This application relates to a tool identification device for identifying a tool attached to the tip of a robot arm for processing a workpiece being transported on a transport device. The tool identification device creates differential image data based on first image data of the background and second image data of the tool together with the background. The differential image data is compared with registered image data that has been registered in advance for the tool to determine whether or not a tool condition relating to at least one of the type or state of the tool is satisfied.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a tool discrimination device, a workpiece processing system, and a tool discrimination method.

Background Art

[0002] A workpiece processing system using a robot arm with a tool attached to its tip is known for performing processing on a workpiece. For example, Patent Document 1 discloses a robot arm with a tool corresponding to the processing to be performed on the workpiece attached to its tip.

[0003] In this type of workpiece processing system, it is necessary to attach an appropriate type of tool corresponding to the content of the processing to be performed on the workpiece to the tip of the robot arm in an appropriate state. For example, in Patent Documents 2 to 4, based on image data obtained by imaging the tool attached to the robot arm, a technique for determining whether the tool attached to the tip of the robot arm satisfies a tool condition that defines at least one of the tool type or state is disclosed.

Prior Art Documents

Patent Documents

[0004]

Patent Document 1

Patent Document 2

Patent Document 3

Patent Document 4

Summary of the Invention

Problems to be Solved by the Invention

[0005] In the aforementioned Patent Document 2, image data is obtained by adjusting the position of the tool to be judged so that the reflected light from the tool is maximized, and then capturing the image. Then, by performing a masking process on the image data obtained from the capture, the image region corresponding to the tool is extracted from the image data, and the tool condition is judged based on the sum of the brightness values ​​in the extracted image region. However, in Patent Document 2, it is necessary to create mask data corresponding to each type and state of the tool to be judged in advance, which requires a lot of effort and cost. In addition, since the position of the tool is adjusted using the reflected light from the tool during imaging, ambient light and subtle changes in the position of the tool may change the reflected light, which may affect the accuracy of the judgment.

[0006] Furthermore, Patent Document 3 describes how to determine the type and state of a tool by applying deep learning to image data obtained by capturing the tool. However, Patent Document 3 requires the construction of a separate determination model for each type and state of tool, which increases development costs.

[0007] Furthermore, Patent Document 4 acquires distribution data of a tool attached to a robot arm in a three-dimensional coordinate system and determines the tool conditions based on the distribution data. However, since Patent Document 4 makes the determination based on distribution data in a three-dimensional coordinate system, it is necessary to create criteria for determining the type and state of the tool from the distribution data, which increases development costs.

[0008] At least one embodiment of this disclosure has been made in view of the above circumstances and aims to provide a tool discrimination device, a workpiece processing system, and a tool discrimination method that can accurately determine the type and state of a tool by simple image analysis. [Means for solving the problem]

[0009] A tool discrimination device according to at least one embodiment of this disclosure solves the above problem, A tool identification device for identifying a tool attached to the tip of a robot arm for performing machining operations on a workpiece being transported on a transport device, An image data acquisition unit for acquiring first image data of the background and second image data of the tool together with the background, A differential image data creation unit for creating differential image data based on the first image data and the second image data, A tool condition determination unit for determining whether or not a tool condition relating to at least one of the type or state of the tool is satisfied by comparing the difference image data with registered image data that has been registered in advance in relation to the tool, It is equipped with.

[0010] A workpiece processing system according to at least one embodiment of this disclosure solves the above problems. The tool discrimination device comprises at least one embodiment of the present disclosure.

[0011] A tool determination method according to at least one embodiment of this disclosure solves the above problem. A tool identification method for identifying a tool attached to the tip of a robot arm for performing machining operations on a workpiece being transported on a transport device, A step of acquiring first image data of the background and second image data of the tool together with the background, A step of creating differential image data based on the first image data and the second image data, A step of determining whether or not the tool conditions relating to at least one of the type or state of the tool are satisfied by comparing the difference image data with registered image data that has been registered in advance in relation to the tool, It is equipped with. [Effects of the Invention]

[0012] According to at least one embodiment of the present disclosure, a tool discrimination device, a workpiece processing system, and a tool discrimination method capable of accurately determining the type and state of a tool by simple image analysis can be provided.

Brief Description of the Drawings

[0013] [Figure 1] It is a schematic configuration diagram showing the overall configuration of a workpiece processing system according to an embodiment. [Figure 2] It is a block configuration diagram of the tool discrimination device in FIG. 1. [Figure 3] It is a flowchart showing a tool discrimination method implemented by the tool discrimination unit in FIG. 2. [Figure 4] It is a diagram conceptually showing a process of creating differential image data in step S105 in FIG. 3. [Figure 5A] It is a diagram showing an example of comparison between discrimination image data and registered image data in step S108 in FIG. 3. [Figure 5B] It is a diagram showing another example of comparison between discrimination image data and registered image data in step S108 in FIG. 3. [Figure 6] It is a flowchart showing a method of registering registered image data implemented by the image data registration unit in FIG. 2.

Embodiments for Carrying Out the Invention

[0014] Hereinafter, some embodiments of the present invention will be described with reference to the accompanying drawings. However, the dimensions, materials, shapes, relative arrangements, etc. of the configurations described as embodiments or shown in the drawings are not intended to limit the scope of the present invention, but are merely illustrative examples.

[0015] Figure 1 is a schematic diagram showing the overall configuration of a workpiece processing system 1 according to one embodiment. The workpiece processing system 1 is a system for performing processing on a workpiece 5 using a tool 40 mounted on a robot arm 30. The workpiece 5 is, for example, food products such as agricultural products, livestock products, or marine products, and may be either fresh food or processed food. The processing performed on the workpiece 5 is not limited, but some examples of processing processes will be described, such as cutting, clamping, chucking, or combinations thereof. Other specific examples of processing processes may include pressing, hammering, fluid discharge, or light irradiation of the workpiece 5.

[0016] The workpiece processing system 1 includes a transport device 7 for transporting the workpiece 5, a robot arm 30 for performing processing on the workpiece 5, an imaging device 8 (camera) for imaging the workpiece 5 transported by the transport device 7, a control device 100, and a tool discrimination device 200.

[0017] The conveying device 7 is a belt conveyor configured to convey the workpiece 5 in a substantially horizontal direction. The workpiece 5 conveyed by the conveying device 7 is processed by the robot arm 30 at a predetermined position. At that position, the conveying device 7 also functions as a workbench for processing the workpiece 5.

[0018] The robot arm 30 is an industrial robot realized by a vertical articulated robot, a horizontal articulated robot, or a combination thereof. A tool 40 corresponding to the machining process to be performed on the workpiece 5 is attached to the tip of the robot arm 30. In Figure 1, robot arms 30A, 30B, and 30C, which can operate in conjunction with each other, are shown as the robot arm 30.

[0019] A tool 40 is mounted on the tip of the robot arm 30. The tool 40 includes a clamper 41 for clamping the workpiece 5, a chuck 42 for gripping the workpiece 5, and a knife 43 for cutting the workpiece 5. In Figure 1, the clamper 41 is mounted on the tip of robot arm 30A, the chuck 42 is mounted on the tip of robot arm 30B, and the knife 43 is mounted on the tip of robot arm 30C. Both the clamper 41 and the chuck 42 are connected to actuators (not shown), and their state (e.g., open / closed state, extended / retracted state, etc.) can be changed by driving the actuators. The actuators may be, for example, air cylinders, hydraulic cylinders, or motors.

[0020] The control device 100 is configured for controlling the workpiece processing system 1 and consists of, for example, a CPU (Central Processing Unit), RAM (Random Access Memory), ROM (Read Only Memory), and a computer-readable storage medium. A series of processes for realizing various functions are stored in the storage medium in the form of a program, for example. The CPU reads this program into the RAM and executes information processing and calculations to realize the various functions. The program may be pre-installed in ROM or other storage media, provided in a state where it is stored in a computer-readable storage medium, or distributed via wired or wireless communication means. Computer-readable storage media include magnetic disks, magneto-optical disks, CD-ROMs, DVD-ROMs, semiconductor memory, etc.

[0021] The control device 100 can perform machining on the workpiece 5 on the transport device 7 by controlling the imaging device 8, the robot arm 30, and the tool 40, respectively, and comprises an imaging device control unit 110, an image analysis unit 120, and a robot arm control unit 130.

[0022] The imaging device control unit 110 is configured to control the imaging operation performed by the imaging device 8. Specifically, the imaging device control unit 110 transmits an imaging signal to the imaging device 8 at a predetermined timing to perform the imaging operation of the imaging device 8, and acquires image data from the said imaging operation.

[0023] The image analysis unit 120 is configured to identify the position and orientation of the workpiece 5 included in the image data by analyzing the image data acquired by the imaging device 8. The analysis results from the image analysis unit 120 are sent to the robot arm control unit 130 and used to control the robot arm 30.

[0024] In this embodiment, the imaging device 8 is shown as serving as both an imaging device for capturing image data used when the control device 100 controls the robot arm 30 and the tool 40, respectively, and an imaging device for capturing image data used by the tool discrimination device 200 to discriminate the tool 40. In other embodiments, different imaging devices may be used for capturing image data used when the control device 100 controls the robot arm 30 and the tool 40, respectively, and for capturing image data used by the tool discrimination device 200 to discriminate the tool 40.

[0025] The robot arm control unit 130 is configured to control at least one of the position, orientation, or state of the tool 40 attached to the tip of the robot arm 30 by controlling the robot arm 30. Specifically, the robot arm control unit 130 identifies the position and orientation of the workpiece 5 on the transport device 7 based on the analysis results obtained from the image analysis unit 120, and controls the robot arm 30 so that a predetermined machining process is performed based on the identified position and orientation of the workpiece 5.

[0026] In this way, the control device 100 can perform a predetermined machining process by having the robot arm 30 and the tool 40 cooperate to control the robot arm 30 and the tool 40 based on the position and orientation of the workpiece 5 on the transport device 7, which are determined based on the imaging data captured by the imaging device 8.

[0027] The tool identification device 200 is configured to identify the tool 40 attached to the tip of the robot arm 30. The tool 40 is identified by determining whether the tool 40 actually attached to the tip of the robot arm 30 satisfies tool conditions that define at least one of the appropriate type or state of tool 40 corresponding to the machining process to be performed on the workpiece 5 in the workpiece machining system 1.

[0028] The tool conditions are set according to each of the robot arms 30A, 30B, and 30C. For example, if a clamper 41 in the open position is to be attached to robot arm 30A, the tool type and tool state corresponding to robot arm 30A are "clamper 41" and "open position," respectively. To give another example, if a chuck 42 in the open position is to be attached to robot arm 30B, the tool type and tool state corresponding to robot arm 30B are "chuck 42" and "open position," respectively.

[0029] The attachment of the tool 40 to the tip of the robot arm 30 is performed, for example, as a manual operation by an operator. Therefore, if there is an error in the operator's work of attaching the tool 40 to the tip of the robot arm 30, the tool condition will not be satisfied. As a more specific example, if a tool 40 of a different type than the tool 40 that should be attached is mistakenly attached to the robot arm 30, the tool type will not be satisfied. To give another example, an error may occur in the work of connecting the air cylinder acting as an actuator and the clamper 41 using an air pipe. In this case, when the air cylinder is operated, the clamper 41 should be in the open state but will be in the closed state, and the tool condition will not be satisfied. To give yet another example, if the tool 40 is attached in the wrong orientation in the vertical direction, the tool condition will not be satisfied.

[0030] Figure 2 is a block diagram of the tool discrimination device 200 shown in Figure 1. The tool discrimination device 200 includes a robot arm motion command control unit 202 and an imaging command control unit 204. The robot arm motion command control unit 202 is configured to control the movement of the robot arm 30 via the robot arm control unit 130, which is provided by the control device 100, by transmitting motion commands to the robot arm control unit 130. The imaging command control unit 204 is configured to perform imaging operations by the imaging device 8 via the imaging device control unit 110, which is provided by the control device 100, by transmitting imaging commands to the imaging device control unit 110.

[0031] In this embodiment, the robot arm motion command control unit 202 and the imaging command control unit 204 control the robot arm 30 and the imaging device 8 in conjunction with each other, thereby enabling the acquisition of image data in which the position of the tool 40 attached to the tip of the robot arm 30 is appropriately adjusted relative to the imaging range of the imaging device 8.

[0032] In this embodiment, the tool discrimination device 200 is configured to indirectly control the imaging device 8 and the robot arm 30 via the control device 100 for controlling the workpiece processing system 1 by transmitting commands to the imaging device control unit 110 and the robot arm control unit 130, respectively, via the robot arm motion command control unit 202 and the imaging command control unit 204. This allows the tool discrimination method described later to be implemented using the existing configuration for performing processing on the workpiece 5, thereby effectively reducing the amount of additional configuration required to implement the tool discrimination method.

[0033] Furthermore, the tool discrimination device 200 may directly control the imaging device 8 and the robot arm 30 by transmitting control signals to the imaging device 8 and the robot arm 30 without going through the control device 100.

[0034] Furthermore, the tool discrimination device 200 also includes a tool discrimination unit 206, configured to perform a tool discrimination method for discriminating a tool 40 attached to the tip of the robot arm 30 using image data captured by the cooperation of the imaging device 8 and the robot arm 30 as described above. The tool discrimination unit 206 includes an image data acquisition unit 208, a differential image data creation unit 210, a tool condition determination unit 212, a registered image database 214, and a determination result output unit 216.

[0035] The tool discrimination device 200 also includes an image data registration unit 218 for registering new image data in the registered image database 214 provided by the tool discrimination unit 206. The image data registration unit 218 includes an image data acquisition unit 208, a differential image data creation unit 210, a tool condition acquisition unit 220, and a registration processing unit 222.

[0036] For the sake of explanation, Figure 2 illustrates a case where the image data registration unit 218 includes an image data acquisition unit 208 and a differential image data creation unit 210, overlapping with the tool determination unit 206. However, the image data acquisition unit 208 and the differential image data creation unit 210 may be provided in either the tool condition determination unit 210 or the image data registration unit 218.

[0037] Next, the tool identification method performed by the tool identification unit 206 will be described. The tool identification method is a method for determining at least one of the type or state of the tool 40 attached to the tip of the robot arm 30 in the workpiece processing system 1 having the above configuration. Figure 3 is a flowchart showing the tool identification method performed by the tool identification unit 206 in Figure 2.

[0038] First, the robot arm motion command control unit 202 controls the robot arm 30 so that the tool 40 attached to the tip of the robot arm 30 is at a first position P1 by transmitting motion commands to the robot arm control unit 130 (step S100). The first position P1 is outside the imaging range 8a of the imaging device 8, and is a position where first image data D1 consisting only of the background, without the robot arm 30 and tool 40, can be captured in the imaging data captured by the imaging device 8 in the subsequent step S101.

[0039] Next, the imaging command control unit 204 transmits an imaging command to the imaging device control unit 110, causing the imaging device 8 to capture the first image data D1 (step S101). At this time, the tool 40 attached to the tip of the robot arm 30 is moved to the first position P1 in step S100 and is outside the imaging range 8a of the imaging device 8, so the first image data D1, which includes only the background, is captured.

[0040] Furthermore, the control of the robot arm 30 in step S100 may be performed based on the first reference coordinate system xyz of the imaging device 8. When the robot arm 30 is controlled by the robot arm control unit 130 when performing machining on the workpiece 5 in the workpiece machining system 1, the robot arm 30 is basically controlled based on the second reference coordinate system XYZ of the robot arm 30. In contrast, in step S100, the robot arm 30 may be controlled based on the first reference coordinate system xyz of the imaging device 8. In this case, the position of the tool 40 in the imaging range 8a of the imaging device 8 can be appropriately controlled to be outside the imaging range 8a of the imaging device 8, and when imaging is performed by the imaging device 8 in step S101, a first image data D1 consisting only of the background without the tool 40 can be suitably obtained.

[0041] Next, the robot arm motion command control unit 202 transmits an motion command to the robot arm control unit 130, thereby controlling the robot arm 30 so that the tool 40 attached to the tip of the robot arm 30 is at the second position P2 (step S102). The second position P2 is within the imaging range 8a of the imaging device 8, and is predetermined so that the tool 40 is captured at a predetermined position in the imaging data captured by the imaging device 8 in the subsequent step S103. Note that the second position P2 may also be predetermined as the position to which the tool 40 is moved in step S203 when registering the registered image data Dr, as will be described later with reference to Figure 6.

[0042] Next, the imaging command control unit 204 transmits an imaging command to the imaging device control unit 110, causing the imaging device 8 to capture the second image data D2 (step S103). At this time, the tool 40 attached to the tip of the robot arm 30 is moved to the second position P2 in step S102 and is within the imaging range 8a of the imaging device 8, so the second image data D2 including the tool 40 at the predetermined position is captured.

[0043] In step S102, the control of the robot arm 30 is performed based on the first reference coordinate system xyz of the imaging device 8. When the robot arm 30 is controlled by the robot arm control unit 130 when performing machining on the workpiece 5 in the workpiece machining system 1, the robot arm 30 is basically controlled based on the second reference coordinate system XYZ of the robot arm 30. In contrast, in step S102, the robot arm 30 may be controlled based on the first reference coordinate system xyz of the imaging device 8. In this case, the position of the tool 40 in the imaging range 8a of the imaging device 8 can be precisely controlled to a predetermined position within the imaging range 8a of the imaging device 8, and when imaging is performed by the imaging device 8 in step S103, a second image data D2 in which the tool 40 is included in the predetermined position can be suitably obtained.

[0044] Furthermore, the first image data D1 and the second image data D2 may each be captured within a predetermined time. In other words, the capture of the first image data D1 in step S101 and the capture of the second image data D2 in step S103 may be performed at a sufficiently short time interval within the predetermined time. This makes it less likely for differences to occur in the background (including objects placed on the transport device 7 and dirt attached to the transport device 7) included in the first image data D1 and the second image data D2, respectively. As a result, when creating differential image data Dd from the first image data D1 and the second image data D2, as described later, it is possible to obtain differential image data Dd in which the image region corresponding to the tool 40 is suitably extracted from the second image data D2.

[0045] Furthermore, the first image data D1 and the second image data D2 may be captured while the transport device 7 is stopped. In this case, the transport device 7 is controlled in conjunction with the imaging device 8 and the robot arm 30, so that the transport device 7 is stopped at least temporarily at the time of imaging by the imaging device 8. This makes it less likely for there to be differences in the background (including objects placed on the transport device 7 and dirt attached to the transport device 7) included in the first image data D1 and the second image data D2, respectively. Therefore, when creating differential image data Dd from the first image data D1 and the second image data D2, it is possible to obtain differential image data Dd in which the image region corresponding to the tool 40 is suitably extracted from the second image data D2.

[0046] Next, the first image data D1 captured in step S101 and the second image data D2 captured in step S103 are acquired by the image data acquisition unit 208 (step S104). Then, the difference image data creation unit 210 creates difference image data Dd based on the first image data D1 and the second image data D2 acquired in step S104 (step S105). The difference image data Dd is created as the difference between the first image data D1 and the second image data D2. More specifically, the difference in brightness value is calculated for each pixel of the first image data D1 and the second image data D2, and the difference image data Dd is created as image data having pixels whose brightness value is that difference.

[0047] Here, Figure 4 conceptually illustrates the process of creating the differential image data Dd in step S105 of Figure 3. In this example, the first image data D1 does not show the tool 40, only the transport device 7 as the background, while the second image data D2 shows the tool 40 of a predetermined type and state along with the background. In the differential image data Dd created from these first image data D1 and second image data D2, the background of the first image data D1 is removed from the second image data D2, leaving only the tool 40 shown in the second image data D2.

[0048] Next, the tool condition determination unit 212 extracts the contour of the tool 40 from the differential image data Dd created in step S105 and uses it as discrimination image data Da (step S106). The tool condition determination unit 212 also accesses the registered image database 214 and obtains registered image data Dr corresponding to the tool condition from among the many registered image data stored in the registered image database 214 (step S107). In other words, the registered image data Dr corresponding to the tool condition is obtained by searching the registered image database 214 based on a tool condition that defines at least one of the correct type or state of the tool 40 to be attached to the tip of the robot arm 30.

[0049] Next, the tool condition determination unit 212 compares the discrimination image data Da acquired in step S106 with the registered image data Dr acquired in step S107 to determine whether the tool 40 attached to the tip of the robot arm 30 satisfies the tool conditions (step S108). The comparison between the discrimination image data Da and the registered image data Dr is performed, for example, based on whether the matching rate between the image regions corresponding to the tool 40 contained in both is equal to or greater than a standard value.

[0050] Figures 5A and 5B show examples of matching the discrimination image data Da and the registered image data Dr in step S108 of Figure 3. In the example shown in Figure 5A, the matching rate of the image region corresponding to tool 40A in the discrimination image data Da and tool 40B in the registered image data Dr is above the standard value, so it is determined that the tool condition is satisfied. On the other hand, in the example shown in Figure 5B, the matching rate of the image region corresponding to tool 40A in the discrimination image data Da and tool 40B in the registered image data Dr is below the standard value, so it is determined that the tool condition is not satisfied.

[0051] If the tool conditions are determined to be met (step S108: YES), the tool condition determination unit 212 determines that the tool 40 attached to the tip of the robot arm 30 is correct. On the other hand, if the tool conditions are determined not to be met (step S108: NO), error information indicating this is output from the determination result output unit 216 (step S109).

[0052] Next, we will explain how the registered image data Dr is registered in the registered image database 214 by the image data registration unit 218. Figure 6 is a flowchart showing the method of registering the registered image data Dr as performed by the image data registration unit 218 in Figure 2.

[0053] First, the tool 40 to be registered is attached to the tip of the robot arm 30 (step S200). The tool 40 to be registered is, for example, a tool 40 that requires new registration because registered image data Dr for a tool 40 of the same type and state is not stored in the registered image database 214. Alternatively, the tool 40 to be registered may be a tool 40 for which registered image data Dr for the same type and state is already stored in the registered image database 214, but which requires re-registration in order to update the registered image data Dr.

[0054] Next, similar to steps S100 to S101 described above, the robot arm motion command control unit 202 controls the robot arm 30 to move the tool 40 attached to the tip of the robot arm 30 to the first position P1 (step S201), and the imaging command control unit 204 controls the imaging device 8 to capture the first image data D1 (step S202).

[0055] Next, similar to steps S102 to S103 described above, the robot arm motion command control unit 202 controls the robot arm 30 to move the tool 40 attached to the tip of the robot arm 30 to the second position P2 (step S203), and the imaging command control unit 204 controls the imaging device 8 to capture the second image data D2 (step S204). In step S102 described above, the second position P2 to which the tool 40 is moved in order to identify the tool 40 is predetermined as the second position P2 to which the tool 40 is moved in step S203 when registering the registered image data Dr in this manner.

[0056] Next, similar to step S104 described above, the image data acquisition unit 208 acquires the first image data D1 captured in step S202 and the second image data D2 captured in step S204 (step S205). Then, the difference image data creation unit 210 creates difference image data Dd based on the first image data D1 and the second image data D2 acquired in step S205, similar to step S105 described above (step S206).

[0057] Next, the tool condition acquisition unit 220 acquires tool conditions (step S207). The tool conditions are information regarding the type and state of the tool 40 attached to the tip of the robot arm 30 in step S200, and are input, for example, by the operator who performed the attachment work.

[0058] Next, the registration processing unit 222 associates the differential image data Dd created in step S206 with the tool conditions acquired in step S207 and registers it as registered image data Dr in the registered image database 214 (step S208). The registered image data Dr registered in the registered image database 214 in this way can be searched based on the tool conditions and can be read as needed.

[0059] As described above, according to each embodiment, a difference image data Dd is created based on a first image data D1 capturing the background and a second image data D2 capturing the tool 40 together with the background. The difference image data Dd includes an image region corresponding to the tool 40 from which the background has been removed from the second image data D2. By comparing this with registered image data Dr, which is registered in advance and corresponds to the tool 40 to be identified, it is determined whether the tool 40 included in the difference image data Dd satisfies the tool conditions relating to at least one of the type or state of the tool 40. This makes it possible to suitably determine whether the tool 40 attached to the tip of the robot arm 30 is of the appropriate type and state.

[0060] The contents described in some of the embodiments above can be understood, for example, as follows:

[0061] (1) A tool discrimination device according to one embodiment is: A tool identification device for identifying a tool attached to the tip of a robot arm for performing machining operations on a workpiece being transported on a transport device, An image data acquisition unit for acquiring first image data of the background and second image data of the tool together with the background, A differential image data creation unit for creating differential image data based on the first image data and the second image data, A tool condition determination unit for determining whether or not a tool condition relating to at least one of the type or state of the tool is satisfied by comparing the difference image data with registered image data that has been registered in advance in relation to the tool, It is equipped with.

[0062] According to the embodiment described in (1) above, differential image data is created based on first image data capturing the background and second image data capturing the tool together with the background. The differential image data includes an image region corresponding to the tool from which the background has been removed from the second image data. By comparing this with registered image data that has been registered in advance corresponding to the tool to be identified, it is determined whether the tool included in the differential image data satisfies the tool conditions relating to at least one of the tool type or state. This makes it possible to suitably determine whether the tool attached to the tip of the robot arm is of the appropriate type and state.

[0063] (2) In other embodiments, in the embodiment of (1) above, The first image data is captured when the robot arm moves the tool to a first position outside the imaging range. The second image data is captured when the position of the tool is moved by the robot arm to a second position within the imaging range.

[0064] According to the embodiment of (2) above, first image data and second image data can be suitably obtained by controlling the movement of the tool by the robot arm in conjunction with the imaging operation. Specifically, first image data capturing the background is obtained by imaging with the tool moved to a first position outside the imaging range by the robot arm. Second image data capturing the tool together with the background is obtained by imaging with the tool moved to a second position within the imaging range by the robot arm.

[0065] (3) In other embodiments, in the embodiment of (1) or (2) above, The system further comprises a registered image database in which the registered image data is registered for each of the aforementioned tool conditions, The tool condition determination unit obtains the registered image data by searching the registered image database based on the tool conditions.

[0066] According to the embodiment of (3) above, a registered image database is provided in which registered image data used for tool identification is registered. In the registered image database, registered image data is pre-registered in association with tool conditions relating to at least one of the type or state of the tool, and the registered image data necessary for tool identification can be searched based on the tool conditions.

[0067] (4) In other embodiments, in any one embodiment of (1) to (3) above, The system further includes a registration processing unit for associating the differential image data with the tool conditions and registering it as registered image data in the registered image database.

[0068] According to the embodiment described in (4) above, differential image data created by imaging a tool attached to the tip of a robot arm can be registered in a registered image database in association with the tool conditions corresponding to the tool. The registered image data registered in the registered image database can be used for tool identification by reading it as appropriate, as described above.

[0069] (5) In other embodiments, in any one embodiment of (1) to (4) above, The robot arm is controlled based on the coordinate systems corresponding to the first image data and the second image data.

[0070] According to the embodiment of (5) above, the control of the robot arm during the acquisition of the first image data and the second image data is performed based on the coordinate system corresponding to the first image data and the second image data. As a result, when acquiring the first image data, the robot arm is controlled so that the tool is outside the imaging range, thereby suitably obtaining first image data consisting of a background without the tool. Furthermore, when acquiring the second image data, the robot arm is controlled so that the tool is within the imaging range, thereby suitably obtaining second image data including the tool along with the background.

[0071] (6) In other embodiments, in any one embodiment of (1) to (5) above, The first image data and the second image data are each captured within a predetermined time.

[0072] According to the embodiment of (6) above, since the first image data and the second image data are captured within a predetermined time period (a relatively short time interval), differences in the background contained in each are less likely to occur. Therefore, as the difference between the first image data and the second image data, differential image data can be obtained by suitably extracting the image region corresponding to the tool from the second image data.

[0073] (7) In other embodiments, in any one embodiment of (1) to (6) above, The first image data and the second image data are captured, respectively, while the transport device is stopped.

[0074] According to the embodiment of (7) above, the first image data and the second image data are captured while the transport device is stopped, making it less likely for differences to occur in the background (including objects placed on the transport device and dirt attached to the transport device) contained in the first image data and the second image data, respectively. By using such first image data and second image data, differential image data can be obtained by suitably extracting the image region corresponding to the tool from the second image data as the difference between the first image data and the second image data.

[0075] (8) In other embodiments, in any one embodiment of (1) to (7) above, The first image data and the second image data are captured using an imaging device for imaging the workpiece on the transfer device in order to control at least one of the transfer device or the robot arm.

[0076] According to the embodiment of (8) above, when processing a workpiece, an imaging device is used to image the workpiece, and first image data and second image data used for workpiece identification are captured. This eliminates the need to add a new imaging device for workpiece identification, and the size of the apparatus can be suitably reduced.

[0077] (9) In other embodiments, in any one embodiment of (1) to (8) above, The tool includes at least one of a chuck tool, a clamping tool, or a knife tool.

[0078] According to the embodiment of (9) above, a tool including at least one of a chuck tool, a clamping tool, or a knife tool can be suitably identified.

[0079] (10) A workpiece processing system according to one embodiment is: The device is equipped with a tool discrimination device according to any one of the embodiments described in (1) to (9) above.

[0080] According to the embodiment of (10) above, in a workpiece processing system, the tool attached to the tip of the robot arm for processing the workpiece can be suitably identified.

[0081] (11) A tool identification method relating to one aspect is: A tool identification method for identifying a tool attached to the tip of a robot arm for performing machining operations on a workpiece being transported on a transport device, A step of acquiring first image data of the background and second image data of the tool together with the background, A step of creating differential image data based on the first image data and the second image data, A step of determining whether or not the tool conditions relating to at least one of the type or state of the tool are satisfied by comparing the difference image data with registered image data that has been registered in advance in relation to the tool, It is equipped with.

[0082] According to the embodiment of (11) above, differential image data is created based on first image data capturing the background and second image data capturing the tool together with the background. The differential image data includes an image region corresponding to the tool from which the background has been removed from the second image data. By comparing this differential image data with registered image data that has been registered in advance corresponding to the tool to be identified, it is determined whether the tool included in the differential image data satisfies tool conditions relating to at least one of the tool type or state. This makes it possible to suitably determine whether the tool attached to the tip of the robot arm is of the appropriate type and state. [Explanation of Symbols]

[0083] 1. Workpiece machining system 5 Work 7. Conveying device 8. Imaging device 8a Imaging area 30 (30A, 30B, 30C) Robot Arm 40 Tools 41 Clamper 42 Chuck 43 knives 100 Control device 110 Imaging device control unit 120 Image Analysis Department 130 Robot Arm Control Unit 200 Tool Discrimination Device 202 Robot Arm Motion Command Control Unit 204 Imaging Command Control Unit 206 Tool discrimination unit 208 Image Data Acquisition Unit 210 Differential Image Data Creation Unit 212 Tool Condition Determination Unit 214 Registered Image Database 216 Judgment Result Output Unit 218 Image Data Registration Section 220 Tool Information Acquisition Unit 222 Registration Processing Unit D1 First Image Data D2 Second Image Data Image data for Da discrimination Dd difference image data Dr. Registered Image Data P1 1st position P2 2nd position

Claims

1. A tool identification device for identifying a tool attached to the tip of a robot arm for performing machining operations on a workpiece being transported on a transport device, An image data acquisition unit for acquiring first image data of the background and second image data of the tool together with the background, A differential image data creation unit for creating differential image data based on the first image data and the second image data, A tool condition determination unit for determining whether or not a tool condition relating to at least one of the type or state of the tool is satisfied by comparing the difference image data with registered image data that has been registered in advance in relation to the tool, A tool identification device equipped with the following features.

2. The first image data is captured when the robot arm moves the tool to a first position outside the imaging range. The tool discrimination device according to claim 1, wherein the second image data is captured when the position of the tool is moved by the robot arm to a second position within the imaging range.

3. The system further comprises a registered image database in which the registered image data is registered for each of the aforementioned tool conditions, The tool determination device according to claim 1 or 2, wherein the tool condition determination unit obtains registered image data by searching the registered image database based on the tool conditions.

4. The tool discrimination device according to claim 1 or 2, further comprising a registration processing unit for associating the differential image data with the tool conditions and registering it as registered image data in the registered image database.

5. The tool discrimination device according to claim 1 or 2, wherein the robot arm is controlled based on a coordinate system corresponding to the first image data and the second image data.

6. The tool discrimination device according to claim 1 or 2, wherein the first image data and the second image data are each captured within a predetermined time.

7. The tool discrimination device according to claim 1 or 2, wherein the first image data and the second image data are captured, respectively, while the transport device is stopped.

8. The tool discrimination device according to claim 1 or 2, wherein the first image data and the second image data are captured using an imaging device for imaging the workpiece on the transfer device in order to control at least one of the transfer device or the robot arm.

9. The tool discrimination device according to claim 1 or 2, wherein the tool includes at least one of a chuck tool, a clamping tool, or a knife tool.

10. A workpiece processing system comprising the tool discrimination device described in claim 1 or 2.

11. A tool identification method for identifying a tool attached to the tip of a robot arm for performing machining operations on a workpiece being transported on a transport device, A step of acquiring first image data of the background and second image data of the tool together with the background, A step of creating differential image data based on the first image data and the second image data, A step of determining whether or not the tool conditions relating to at least one of the type or state of the tool are satisfied by comparing the difference image data with registered image data that has been registered in advance in relation to the tool, A tool identification method comprising the following features.