Teaching data generation device, teaching data generation program, and teaching data generation method

The teaching data generation device addresses the challenge of creating robust deep learning models for workpiece detection by using a reference image to generate teaching data under varying conditions, reducing annotation time and improving environmental adaptability.

WO2024189844A1PCT designated stage expired Publication Date: 2024-09-19FANUC LTD

Patent Information

Application Number
PCT/JP2023/010121
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-15
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

Deep learning models require a large number of training images and annotations to recognize workpieces accurately, and they often struggle with variations in environment, leading to decreased detection success rates when deployed in different conditions.

Method used

A teaching data generation device and method that uses a reference image captured by a camera to generate teaching data for a learning model, where the device includes a teaching input unit for annotation, a reference teaching data storage unit, and a generation unit that applies reference teaching data to multiple images captured under varying conditions, such as changing exposure times or robot movements, to create robust teaching data.

Benefits of technology

This approach significantly reduces the time and effort required for annotation and enhances the model's resistance to environmental changes, enabling effective workpiece detection across various environments by generating a large amount of teaching data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023010121_19092024_PF_FP_ABST
    Figure JP2023010121_19092024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention generates a learning model that is robust against changes in environment, in order to be able to handle detection of a workpiece in various environments. Provided is a teaching data generation device that generates teaching data for generating a learning model which detects a workpiece, which is a detection target, via deep learning, said teaching data generation device comprising: a teaching input unit that performs teaching regarding a workpiece captured in a reference image captured in advance by a camera; a reference teaching data storage unit that stores, as reference teaching data, data relating to the workpiece for which teaching was performed; an acquisition unit that causes the camera to capture images of the workpiece while changing one or more image capture conditions, and thereby acquires a plurality of images; and a generation unit that applies the reference teaching data to the acquired plurality of images and generates teaching data for the plurality of images.
Need to check novelty before this filing date? Find Prior Art

Description

Teaching data generating device, teaching data generating program, and teaching data generating method

[0001] The present disclosure relates to a teaching data generation device, a teaching data generation program, and a teaching data generation method that generate teaching data for generating a learning model for detecting a workpiece to be detected.

[0002] In deep learning, to create a learning model that can recognize workpieces from images, images of workpieces for training are captured in the same environment, annotated, and trained. Generating a learning model with high recognition accuracy requires the collection of a large number of training images. However, in actual work sites, workpiece positions and orientations vary widely. To detect workpieces in as many orientations as possible, the target workpieces must be placed and imaged in a wide variety of positions and orientations when capturing training images. Furthermore, to teach the learning model correct recognition results, annotation work must also be performed on the images used for training. Annotation refers to the process of pointing out the area of ​​the target workpiece to be found in the image. For example, a technology has been proposed in which artificial images are generated as training data from design data or shape data rather than actual captured images, and the training data is then augmented and trained. See, for example, Patent Document 1.

[0003] Japanese Patent Application Laid-Open No. 2019-057250

[0004] However, even with the technology described in Patent Literature 1, a large number of learning images are still required for deep learning, and annotation of all images is required, which is a tedious task. Furthermore, if a learning model is trained using images captured under the same environment and then detection is performed in a different environment (e.g., a brighter environment), the detection success rate may decrease.

[0005] Therefore, it is desirable to generate a learning model that is robust to environmental changes so that it can detect objects in a variety of environments.

[0006] One aspect of the teaching data generation device disclosed herein is a teaching data generation device that generates teaching data for generating a learning model that detects a workpiece to be detected using deep learning, and includes: a teaching input unit that teaches a workpiece that is imaged in a reference image captured in advance by a camera; a reference teaching data storage unit that stores data related to the taught workpiece as reference teaching data; an acquisition unit that acquires multiple images by having the camera image the workpiece while changing one or more imaging conditions; and a generation unit that applies the reference teaching data to the acquired multiple images to generate teaching data for the multiple images.

[0007] One aspect of the teaching data generation program of the present disclosure is to generate teaching data for generating a learning model that detects a target workpiece through deep learning by making a computer function as: a teaching input unit that teaches a workpiece captured in a reference image captured in advance by a camera; a reference teaching data storage unit that stores data related to the taught workpiece as reference teaching data; an acquisition unit that acquires multiple images by having the camera capture images of the workpiece while changing one or more imaging conditions; and a generation unit that applies the reference teaching data to the acquired multiple images to generate teaching data for the multiple images.

[0008] One aspect of the teaching data generation method disclosed herein is a teaching data generation method for generating teaching data for generating a learning model that detects a workpiece to be detected using deep learning, and includes an instruction input step for instructing a workpiece that has been imaged in a reference image captured in advance by a camera, a reference teaching data storage step for storing data related to the instructed workpiece as reference teaching data, an acquisition step for acquiring multiple images by having the camera image the workpiece while changing one or more imaging conditions, and a generation step for applying the reference teaching data to the acquired multiple images to generate teaching data for the multiple images.

[0009] 10 is a diagram showing an example of the configuration of a teach data generation system according to a first embodiment; FIG. 11 is a diagram showing an example of an image captured by a camera; FIG. 12 is a functional block diagram showing an example of the functional configuration of a teach data generation device; FIG. 13 is a diagram showing an example of a display of reference teach data taught in a reference image; FIG. 14 is a diagram showing an example of a plurality of images captured by a camera with exposure time changed; FIG. 15 is a diagram showing an example of a case where reference teach data is applied to the image of FIG. 5; FIG. 16 is a flowchart explaining the generation process of a teach data generation device; FIG. 17 is a diagram showing an example of the configuration of a teach data generation system according to a second embodiment; FIG. 18 is a functional block diagram showing an example of the functional configuration of a teach data generation device; FIG. 19 is a diagram showing an example of a plurality of images captured by a camera at each imaging position according to the operation of a robot; FIG. 19 is a diagram showing an example of a case where reference teach data is applied to the image of FIG. 10;

[0010] First and second embodiments of the teaching data generation device will be described in detail with reference to the drawings. The teaching data generation device of each embodiment teaches a workpiece captured in a reference image captured by a camera in advance, stores data related to the taught workpiece as reference teaching data, and acquires multiple images by having the camera capture images of the workpiece while changing one or more imaging conditions. The teaching data generation devices of each embodiment share a common configuration in that they apply the reference teaching data as teaching data for each of the acquired multiple images. However, in generating teaching data, in the first embodiment, the imaging condition is to have the camera capture the workpiece while changing the exposure time without moving the workpiece, thereby acquiring multiple images, and the reference teaching data is applied as teaching data for each of the acquired multiple images. In contrast, in the second embodiment, the camera is mounted on a robot, and reference posture data indicating the robot's posture when the camera captured the reference image is stored. In the second embodiment, the imaging condition is to have the camera capture the workpiece at each imaging position corresponding to the robot's operation without moving the workpiece, thereby acquiring multiple images, and acquiring posture data of the robot when each of the multiple images was captured. The second embodiment differs from the first embodiment in that the amount of change between the robot posture data and the reference posture data when each of the multiple images is captured is calculated, and teaching data for the workpiece in each of the multiple images is generated based on the calculated amount of change. Below, the first embodiment will be described in detail first, and then the second embodiment will be described, focusing on the differences from the first embodiment.

[0011] First Embodiment FIG. 1 is a diagram illustrating an example of the configuration of a teaching data generation system according to a first embodiment. Here, the example illustrates a case in which multiple closely spaced cardboard boxes are used as workpieces. The present invention can also be applied to objects of any shape other than cardboard boxes. As shown in FIG. 1 , the teaching data generation system 1 includes a teaching data generation device 10, a robot control device 20, a robot 30, a camera 40, multiple cardboard boxes 50, and a pallet 60. The teaching data generation device 10, the robot control device 20, the robot 30, and the camera 40 may be directly connected to each other via a connection interface (not shown). The teaching data generation device 10, the robot control device 20, the robot 30, and the camera 40 may be connected to each other via a network (not shown), such as a local area network (LAN) or the Internet. In this case, the teaching data generation device 10, the robot control device 20, the robot 30, and the camera 40 each include a communication unit (not shown) for communicating with each other via such a connection. 1 depicts the teach data generation device 10 and the robot control device 20 independently, and in this case the teach data generation device 10 may be configured, for example, by a computer. However, the configuration is not limited to this, and for example, the teach data generation device 10 may be implemented inside the robot control device 20 and integrated with the robot control device 20, as described below.

[0012] The robot control device 20 is a device known to those skilled in the art for controlling the operation of the robot 30. For example, the robot control device 20 acquires detection results of the cardboard boxes 50 by inputting images captured by a camera 40 (described later) into a learning model generated by performing machine learning (deep learning) using teaching data generated by a teaching data generation device 10 (described later). The robot control device 20 selects one of the multiple cardboard boxes 50 based on the acquired detection results. The robot control device 20 generates a control signal for controlling the operation of the robot 30 to move the hand 31 of the robot 30 to a pick-up position for the selected cardboard box 50. The robot control device 20 then outputs the generated control signal to the robot 30, causing the robot 30 to pick up the selected cardboard box 50. Note that the robot control device 20 may include a teaching data generation device 10 (described later).

[0013] The robot 30 operates under the control of the robot control device 20. The robot 30 includes a base for rotating around a vertical axis, a movable and rotating arm, and a hand 31 attached to the arm for holding the cardboard boxes 50. While FIG. 1 shows an air suction-type pick-up hand attached to the hand 31 of the robot 30, a grip-type pick-up hand may also be attached. In response to a control signal output from the robot control device 20, the robot 30 drives the arm and hand 31 to move the hand 31 to the pick-up position for the selected cardboard box 50, and then picks the selected cardboard box 50 from the pallet 60. The destination of the picked cardboard box 50 is not shown. The specific configuration of the robot 30 is well known to those skilled in the art, so a detailed description will be omitted.

[0014] Furthermore, the teaching data generating device 10 and the robot control device 20 are assumed to have performed calibration in advance to associate the machine coordinate system for controlling the robot 30 with the camera coordinate system of the detection results indicating the position, posture, and external shape information of the cardboard box 50.

[0015] The camera 40 is a digital camera or the like, and captures a two-dimensional image of the area where multiple cardboard boxes 50 densely packed on a pallet 60 are projected onto a plane perpendicular to the optical axis of the camera 40 based on commands from the teaching data generation device 10 (described later). The camera 40 may be installed in a facility such as a factory and capture images of the cardboard boxes 50 on the pallet 60 from directly above. FIG. 2 is a diagram showing an example of an image 45 captured by the camera 40. As shown in FIG. 2, the image 45 shows six cardboard boxes 50 arranged on the pallet 60 captured by the camera 40 from directly above. The image 45 captured by the camera 40 may be a visible light image such as an RGB color image, a grayscale image, or a depth image. The camera 40 may be configured to include an infrared sensor to capture thermal images, or an ultraviolet sensor to capture ultraviolet images for inspecting scratches, spots, etc. on the surface of an object. The camera 40 may be configured to include an X-ray camera sensor to capture X-ray images, or an ultrasonic sensor to capture ultrasound images.

[0016] The cardboard boxes 50 are placed in a densely stacked state on a pallet 60. As described above, the workpiece is not limited to the cardboard boxes 50, but may be anything that can be held by the hand 31 attached to the arm of the robot 30, and the shape and the like of the workpiece are not particularly limited.

[0017] <Teaching data generating device 10> Fig. 3 is a functional block diagram showing an example of the functional configuration of the teaching data generating device 10. The teaching data generating device 10 is a computer known to those skilled in the art, and as shown in Fig. 3, has a control unit 11, an input unit 12, a display unit 13, and a storage unit 14. The control unit 11 also has an acquisition unit 110 and a generation unit 111.

[0018] <Input Unit 12> The input unit 12 is, for example, a keyboard or a touch panel disposed on the display unit 13 described later. The input unit 12 serves as an instruction input unit and receives from the user instructions (annotations) for the positions of each of the multiple cardboard boxes 50 captured in a reference image of the multiple cardboard boxes 50 captured in advance by the camera 40. Specifically, when the display unit 13 described later displays the image 45 of FIG. 2 as the reference image, the input unit 12 receives from the user the positions of each vertex of the shape of each of the multiple cardboard boxes 50 as reference instruction data. In the following description, the image 45 of FIG. 2 captured in advance by the camera 40 under imaging conditions such as an appropriate exposure time will be described as the reference image 45.

[0019] <Display Unit 13> The display unit 13 is, for example, a liquid crystal display. The display unit 13 displays, for example, a reference image 45 of a plurality of cardboard boxes 50 captured in advance by the camera 40. When the display unit 13 receives the positions of each vertex of the shape of each of the plurality of cardboard boxes 50 from the user via the input unit 12, the display unit 13 may display each of the plurality of cardboard boxes 50 as a polygon (for example, a rectangle indicated by a dashed line) as shown in FIG. 4 based on instructions from a display control unit (not shown).

[0020] <Storage Unit 14> The storage unit 14 is a solid state drive (SSD) or a hard disk drive (HDD), etc. The storage unit 14 may store a generation program that generates teaching data for each image of a plurality of cardboard boxes 50 captured by changing the imaging conditions of the camera 40. The storage unit 14 also has a reference teaching data storage unit 141. As described above, the reference teaching data storage unit 141 stores, for example, the positions of each of the plurality of cardboard boxes 50 in the reference image 45 received from the user by the input unit 12, as reference teaching data.

[0021] <Control Unit 11> The control unit 11 includes a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), a CMOS (Complementary Metal-Oxide-Semiconductor) memory, and the like, which are configured to be able to communicate with each other via a bus and are well known to those skilled in the art. The CPU is a processor that controls the entire teaching data generation device 10. The CPU reads system programs and application programs stored in the ROM via the bus and controls the entire teaching data generation device 10 in accordance with the system programs and application programs. As a result, as shown in FIG. 3 , the control unit 11 is configured to realize the functions of the acquisition unit 110 and the generation unit 111. Various data, such as temporary calculation data and display data, is stored in the RAM. The CMOS memory is backed up by a battery (not shown) and is configured as a non-volatile memory that retains its stored state even when the power to the teaching data generating device 10 is turned off.

[0022] The acquisition unit 110 acquires multiple images by having the camera 40 capture multiple cardboard boxes 50 while changing one or more imaging conditions. Specifically, the acquisition unit 110 acquires multiple captured images by having the camera 40 capture multiple cardboard boxes 50 while changing the exposure time so that the entire image changes from a crushed-black image to a blown-out white image, without moving the cardboard boxes 50, for example. FIG. 5 is a diagram showing an example of multiple images captured by the camera 40 while changing the exposure time. In FIG. 5, images 70a to 70f are images with long exposure times. In this way, the teaching data generation device 10 can acquire multiple images of multiple cardboard boxes 50 illuminated in various ways.

[0023] Since the camera 40 and the multiple cardboard boxes 50 are not moving, the generation unit 111 applies the reference teaching data stored in the reference teaching data storage unit 141 to each of the multiple acquired images 70a-70f to generate teaching data for the multiple images 70a-70f. Specifically, the generation unit 111 reads the teaching data for the multiple cardboard boxes 50 in the reference image 45 from the reference teaching data storage unit 141 and applies the read teaching data for the multiple cardboard boxes 50 as teaching data for each of the images 70a-70f to generate the teaching data. FIG. 6 is a diagram showing an example in which the reference teaching data is applied to the images 70a-70f of FIG. 5. As shown in FIG. 6, the same teaching data as the reference image 45 indicated by the dashed rectangle is generated for each of the images 70a-70f. The teaching data generation device 10 (generation unit 111) then outputs the generated teaching data for the images 70a-70f to the robot control device 20. The robot control device 20 can generate / update a learning model that is more resistant to environmental changes by performing machine learning (deep learning) using the received teaching data of the images 70a-70f. Furthermore, the teaching data generation device 10 can significantly reduce the time required for annotation work by applying the teaching data (annotation data) of one reference image 45 to multiple images 70a-70f.

[0024] <Generation Process of Teach Data Generator 10> Next, the flow of the generation process of the teach data generator 10 will be described with reference to Fig. 7. Fig. 7 is a flowchart illustrating the generation process of the teach data generator 10. The flow shown here is executed every time an instruction to generate teach data is received.

[0025] In step S11, the acquisition unit 110 causes the camera 40 to capture reference images 45 of a plurality of cardboard boxes 50 under appropriate imaging conditions such as an appropriate exposure time.

[0026] In step S12, the acquisition unit 110 acquires the reference image 45 captured in step S11.

[0027] In step S13, the display unit 13 displays the reference image 45 acquired in step S12, and the input unit 12 receives from the user instructions (annotations) for the positions of the respective cardboard boxes 50 as the positions of the vertices of a polygon in the displayed reference image 45. The input unit 12 stores the received instruction data for the positions of the respective cardboard boxes 50 in the reference instruction data storage unit 141 as reference instruction data.

[0028] In step S14, the acquisition unit 110 causes the camera 40 to capture images of a plurality of cardboard boxes 50 while changing the exposure time without moving the cardboard boxes 50 as an image capturing condition, and acquires a plurality of captured images 70a to 70f.

[0029] In step S15, the generation unit 111 generates the reference teaching data stored in the reference teaching data storage unit 141 in step S13 by applying it as teaching data for each of the plurality of images 70a to 70f acquired in step S14.

[0030] As described above, the teach data generation device 10 according to the first embodiment generates teach data by applying the teach data (annotation data) of one reference image 45 to multiple images 70a-70f. This allows the teach data generation device 10 to easily generate a large amount of teach data, thereby generating a learning model that is resistant to environmental changes so that it can handle workpiece detection in a variety of environments. Furthermore, by applying the teach data (annotation data) of one reference image 45 to multiple images 70a-70f, the teach data generation device 10 can significantly reduce the time required for annotation work. The first embodiment has been described above.

[0031] Second Embodiment Next, a second embodiment will be described. In the first embodiment, the teach data generation device 10 acquires multiple images by having the camera 40 capture images of the workpiece while changing the exposure time without moving the workpiece as an imaging condition, and applies reference teach data as teach data for each of the acquired multiple images. In contrast, in the second embodiment, the camera 40 is mounted on the robot 30, and the teach data generation device 10A stores reference posture data indicating the posture of the robot when the camera 40 captured the reference image. The teach data generation device 10A acquires multiple images by having the camera 40 capture images of the workpiece at each imaging position corresponding to the operation of the robot 30 without moving the workpiece as an imaging condition, and acquires posture data of the robot 30 when each of the multiple images was captured. The teach data generation device 10A then calculates the amount of change between the posture data of the robot 30 and the reference posture data when each of the multiple images was captured, and generates teach data for the workpiece in each of the multiple images based on the calculated amount of change, which is different from the first embodiment. As a result, the teaching data generation device 10A according to the second embodiment can easily generate a large amount of teaching data, thereby generating a learning model that is resistant to environmental changes so as to be able to detect workpieces in a variety of environments. The second embodiment will be described below.

[0032] FIG. 8 is a diagram illustrating an example of the configuration of a teaching data generation system according to the second embodiment. Elements having similar functions to those of the teaching data generation system 1 of FIG. 1 are designated by the same reference numerals, and detailed description thereof will be omitted. As shown in FIG. 8 , the teaching data generation system 1 includes a teaching data generation device 10A, a robot control device 20, a robot 30, a camera 40, multiple cardboard boxes 50, and a pallet 60, similar to the first embodiment. The robot control device 20, the robot 30, and the camera 40 have similar functions to the robot control device 20, the robot 30, and the camera 40 in the first embodiment. However, in the second embodiment, the camera 40 is mounted on the tip of the arm of the robot 30. The multiple cardboard boxes 50 and the pallet 60 are similar to the multiple cardboard boxes 50 and the pallet 60 in the first embodiment.

[0033] <Teacher Data Generating Device 10A> Figure 9 is a functional block diagram showing an example of the functional configuration of the teach data generating device 10A. Note that elements having functions similar to those of the teach data generating device 10 in Figure 3 are assigned the same reference numerals, and detailed description thereof will be omitted. As shown in Figure 9, the teach data generating device 10A has a control unit 11a, an input unit 12, a display unit 13, and a storage unit 14a. The control unit 11a also has an acquisition unit 110a and a generation unit 111a. The input unit 12 and the display unit 13 have functions similar to those of the input unit 12 and the display unit 13 in the first embodiment.

[0034] <Storage Unit 14a> The storage unit 14a is an SSD, HDD, or the like, similar to the storage unit 14 in the first embodiment. The storage unit 14a may store a generation program or the like that generates teaching data for each of the images of the multiple cardboard boxes 50 captured by the camera 40 at each imaging position corresponding to the operation of the robot 30 under the control of the robot control device 20. The storage unit 14a also includes a reference teaching data storage unit 141 and a reference posture storage unit 142. The reference teaching data storage unit 141 is similar to the reference teaching data storage unit 141 in the first embodiment. The reference posture storage unit 142 stores, as a reference posture, the posture of the robot 30, i.e., the angle of each joint axis of the robot 30, when the camera 40 captures the reference image 45 from a position directly above the multiple cardboard boxes 50.

[0035] <Control Unit 11a> The control unit 11a includes a CPU, ROM, RAM, CMOS memory, etc., which are configured to be able to communicate with each other via a bus and are well known to those skilled in the art. The CPU is a processor that controls the entire teach data generation device 10A. The CPU reads system programs and application programs stored in the ROM via the bus and controls the entire teach data generation device 10A in accordance with the system programs and application programs. As a result, as shown in FIG. 9, the control unit 11a is configured to realize the functions of the acquisition unit 110a and the generation unit 111a.

[0036] The acquisition unit 110a acquires, for example, multiple images of the multiple cardboard boxes 50 captured by the camera 40 at each imaging position corresponding to the robot 30's movement under control of the robot control device 20, without moving the cardboard boxes 50 as an imaging condition. The acquisition unit 110a also acquires, from the robot control device 20, the posture of the robot 30 at the time each of the multiple images was captured, i.e., the angle of each joint axis of the robot 30, as posture data. FIG. 10 is a diagram illustrating an example of multiple images captured by the camera 40 at each imaging position corresponding to the robot 30's movement. Note that in FIG. 10, multiple images 75a to 75c are assumed to have been captured with the same exposure time. As shown in FIG. 10, image 75a is an image captured with the robot 30 in a posture where the camera 40 is rotated clockwise directly above the multiple cardboard boxes 50 from which the reference image 45 was captured. Image 75b is an image captured with the robot 30 in a posture where the camera 40 is rotated counterclockwise directly above the multiple cardboard boxes 50 from which the reference image 45 was captured. Image 75c is an image captured with the robot 30 in a position where the camera 40 is moved to a position shifted from the position directly above the plurality of cardboard boxes 50 at which the reference image 45 was captured. In this way, the teaching data generation device 10A can acquire a plurality of images of the plurality of cardboard boxes 50 viewed from various directions, i.e., with various lighting conditions.

[0037] The generation unit 111a calculates the amount of change between the posture data of the robot 30 when each of the multiple images 75a to 75c is captured and the reference posture data in the reference posture storage unit 142. The generation unit 111a generates teaching data for each of the cardboard boxes 50 in each of the multiple images 75a to 75c based on the calculated amount of change and the reference teaching data. Specifically, the generation unit 111a calculates the imaging position of each of the images 75a to 75c using forward kinematics from the posture data of the robot 30 when each of the images 75a to 75c was captured. The generation unit 111a also calculates the imaging position of the reference image 45 using forward kinematics from the reference posture data in the reference posture storage unit 142. The generation unit 111a calculates the amount of change in the imaging position from the difference between the calculated imaging position of each of the images 75a to 75c and the imaging position of the reference image 45. The generation unit 111a corrects the positions of the vertices of each of the multiple cardboard boxes 50 in the reference teaching data stored in the reference teaching data storage unit 141 by the calculated change in imaging position, and generates teaching data representing the positions of the vertices of each cardboard box 50 in each of the images 75a to 75c. FIG. 11 illustrates an example in which the reference teaching data is applied to images 75a to 75c in FIG. 10 . As shown in FIG. 11 , teaching data indicated by dashed rectangles is generated for each of the images 75a to 75c. The teaching data generation device 10A (the generation unit 111a) then outputs the generated teaching data for the images 75a to 75c to the robot control device 20. The robot control device 20 performs machine learning (deep learning) using the received teaching data for the images 75a to 75c, thereby generating and updating a learning model that is more resistant to environmental changes. In this way, the teaching data generating device 10A can apply the teaching data (annotation data) of one reference image 45 to multiple images 75a to 75c, thereby significantly reducing the time required for annotation work.

[0038] <Generation Process of Teach Data Generator 10A> Next, the flow of the generation process of the teach data generator 10A will be described with reference to Fig. 12. Fig. 12 is a flowchart illustrating the generation process of the teach data generator 10A. The flow shown here is executed each time an instruction to generate teach data is received. Note that the processes of steps S21 and S23 are similar to the processes of steps S11 and S13 in Fig. 7, and therefore will not be described again.

[0039] In step S22, the acquisition unit 110a acquires the reference image 45 captured in step S21 and the posture of the robot 30 when the reference image 45 was captured as reference posture data.

[0040] In step S24, the acquisition unit 110a acquires multiple images 75a to 75c of multiple cardboard boxes 50 captured by the camera 40 at each imaging position corresponding to the operation of the robot 30 based on control by the robot control device 20, without moving the cardboard boxes 50 as an imaging condition.

[0041] In step S25, the generation unit 111a calculates the amount of change in the imaging position from the difference between the posture data of the robot 30 when each of the multiple images 75a to 75c was captured and the reference posture data in the reference posture storage unit 142.

[0042] In step S26, the generating unit 111a corrects the reference teaching data in the reference teaching data storage unit 141 by the amount of change in the imaging position calculated in step S25, and generates the corrected data as teaching data for each of the multiple images 75a to 75c.

[0043] As described above, the teach data generation device 10A according to the second embodiment acquires teach data (annotation data) for one reference image 45 and reference posture data indicating the posture of the robot at the time of image capture. The teach data generation device 10A applies the teach data for the reference image 45 to each of images 75a-75c captured at an imaging position corresponding to the robot 30's operation, based on the amount of change between the posture data of the robot 30 and the reference posture data when each of the images 75a-75c was captured. This allows the teach data generation device 10A to generate a learning model that is robust to environmental changes so that it can detect workpieces in a variety of environments. Furthermore, the teach data generation device 10A can significantly reduce the time required for annotation work. The second embodiment has been described above.

[0044] <Modification of Second Embodiment> In the second embodiment, the acquisition unit 110a acquires multiple images of the cardboard box 50 captured by the camera 40 at each imaging position corresponding to the movement of the robot 30 under control of the robot control device 20 without moving the cardboard box 50 as an imaging condition. However, this is not limited to this. For example, the acquisition unit 110a may acquire multiple images of the cardboard box 50 captured by the camera 40 at each imaging position corresponding to the movement of the robot 30 by changing the exposure time without moving the cardboard box 50 as an imaging condition. In this way, the teaching data generation device 10A can easily generate a larger amount of teaching data when generating a learning model that is robust to environmental changes so as to be able to detect workpieces in various environments.

[0045] As described above in the first and second embodiments, the teaching data generation devices 10, 10A of the present disclosure can easily generate large amounts of teaching data, thereby generating a learning model that is resistant to environmental changes so that it can respond to the detection of workpieces in various environments.

[0046] <Modifications> In the first and second embodiments described above, the teaching data generation devices 10 and 10A are devices separate from the robot control device 20. However, the present invention is not limited to this. For example, the teaching data generation devices 10 and 10A may be implemented inside the robot control device 20 and integrated with the robot control device 20.

[0047] Note that the functions included in the teaching data generation devices 10 and 10A in the first and second embodiments can be realized by hardware, software, or a combination of these. Here, "realized by software" means that the functions are realized by a computer reading and executing a program.

[0048] The program can be stored and supplied to a computer using various types of non-transitory computer-readable media. Non-transitory computer-readable media include various types of tangible storage media. Examples of non-transitory computer-readable media include magnetic recording media (e.g., flexible disks, magnetic tapes, hard disk drives), magneto-optical recording media (e.g., magneto-optical disks), CD-ROMs (Read Only Memory), CD-Rs, CD-R / Ws, and semiconductor memories (e.g., mask ROMs, PROMs (Programmable ROMs), EPROMs (Erasable PROMs), flash ROMs, and RAMs). The program may be provided to the computer by various types of transient computer-readable media. Examples of transient computer-readable media include electrical signals, optical signals, and electromagnetic waves. The transient computer-readable media can provide the program to the computer via a wired communication path such as an electrical wire or optical fiber, or via a wireless communication path.

[0049] The step of writing a program to be recorded on a recording medium includes not only processes that are performed in chronological order, but also processes that are not necessarily performed in chronological order but are executed in parallel or individually. The step of writing the program may also be performed by cloud computing.

[0050] Although the present disclosure has been described in detail, the present disclosure is not limited to the individual embodiments described above. Various additions, substitutions, modifications, partial deletions, etc. are possible in these embodiments without departing from the gist of the present disclosure or the spirit of the present disclosure derived from the content of the claims and their equivalents. These embodiments can also be implemented in combination. For example, in the above-described embodiments, the order of each operation and the order of each process are shown as examples and are not limited to these. The same applies when numerical values ​​or mathematical expressions are used to describe the above-described embodiments.

[0051] The following supplementary notes are further disclosed regarding the above-described embodiments and modified examples. (Supplementary Note 1) A teaching data generation device (10) is a teaching data generation device that generates teaching data for generating a learning model that detects a workpiece (50) to be detected by deep learning, and includes a teaching input unit (12) that teaches the workpiece (50) captured in a reference image captured in advance by a camera (40), a reference teaching data storage unit (141) that stores data related to the taught workpiece (50) as reference teaching data, an acquisition unit (110) that causes the camera (40) to capture images of the workpiece (50) while changing one or more imaging conditions to acquire multiple images, and a generation unit (111) that applies the reference teaching data to the acquired multiple images to generate teaching data for the multiple images. (Supplementary Note 2) In the teaching data generation device (10) of Supplementary Note 1, the acquisition unit (110) acquires a plurality of images by having the camera (40) capture images of the workpiece (50) while changing the exposure time without moving the workpiece (50) as an imaging condition, and the generation unit (111) applies the reference teaching data as teaching data for each of the acquired plurality of images. (Supplementary Note 3) In the teaching data generation device (10A) of Supplementary Note 1 or Supplementary Note 2, the camera (40) is mounted on the robot (30) and further includes a reference posture storage unit (142) that stores the posture of the robot (30) when the camera (40) captures a reference image as reference posture data, the acquisition unit (110a) acquires a plurality of images by having the camera (40) capture images of the workpiece (50) at each of the imaging positions corresponding to the operation of the robot (30) without moving the workpiece (50) as an imaging condition, and acquires posture data indicating the posture of the robot (30) when each of the plurality of images was captured, and the generation unit (111a) calculates the amount of change between the posture data of the robot (30) when each of the plurality of images was captured and the reference posture data, and generates teaching data of the workpiece (50) in each of the plurality of images based on the calculated amount of change and the reference teaching data.(Supplementary Note 4) In order to generate teaching data for generating a learning model that detects a workpiece to be detected by deep learning, the teaching data generation program causes a computer to function as a teaching input unit (12) that teaches a workpiece (50) that is imaged in a reference image captured in advance by a camera (40), a reference teaching data storage unit (141) that stores data related to the taught workpiece (50) as reference teaching data, an acquisition unit (110) that acquires multiple images by having the camera (40) image the workpiece (50) while changing one or more imaging conditions, and a generation unit (111) that applies the reference teaching data to the multiple acquired images to generate teaching data for the multiple images. (Supplementary Note 5) The teaching data generation method is a teaching data generation method for generating teaching data for generating a learning model that detects a workpiece to be detected by deep learning, and includes an instruction input step of teaching a workpiece (50) that is imaged in a reference image that is previously captured by a camera (40), a reference teaching data storage step of storing data related to the taught workpiece (50) as reference teaching data, an acquisition step of having the camera (40) image the workpiece (40) while changing one or more imaging conditions to acquire multiple images, and a generation step of applying the reference teaching data to the acquired multiple images to generate teaching data for the multiple images.

[0052] REFERENCE SIGNS LIST 1 Teaching data generation system 10, 10A Teaching data generation device 11, 11a Control unit 110, 110a Acquisition unit 111, 111a Generation unit 12 Input unit 13 Display unit 14, 14a Storage unit 141 Reference teaching data storage unit 142 Reference posture storage unit 20 Robot control device 30 Robot 31 Hand 40 Camera 50 Cardboard 60 Pallet

Claims

1. A teaching data generation device that generates teaching data for generating a learning model that detects a target workpiece through deep learning, comprising: a teaching input unit that teaches a workpiece that is imaged in a reference image captured in advance by a camera; a reference teaching data storage unit that stores data related to the taught workpiece as reference teaching data; an acquisition unit that acquires a plurality of images by having the camera image the workpiece while changing one or more imaging conditions; and a generation unit that applies the reference teaching data to the acquired plurality of images to generate teaching data for the plurality of images.

2. The teaching data generation device of claim 1, wherein the acquisition unit acquires the multiple images by changing the exposure time without moving the workpiece as the imaging condition and having the camera capture the image of the workpiece, and the generation unit applies the reference teaching data as teaching data for each of the multiple images acquired.

3. A teaching data generation device as described in claim 1 or claim 2, wherein the camera is mounted on a robot and further comprises a reference posture memory unit which stores the posture of the robot when the camera captures the reference image as reference posture data, the acquisition unit acquires the multiple images by having the camera capture the workpiece at each of the imaging positions corresponding to the movement of the robot without moving the workpiece as an imaging condition, and acquires posture data indicating the posture of the robot when each of the multiple images was captured, and the generation unit calculates the amount of change between the posture data of the robot when each of the multiple images was captured and the reference posture data, and generates teaching data of the workpiece in each of the multiple images based on the calculated amount of change and the reference teaching data.

4. A teaching data generation program for causing a computer to function as: a teaching input unit that teaches a workpiece captured in a reference image captured in advance by a camera, a reference teaching data storage unit that stores data relating to the taught workpiece as reference teaching data, an acquisition unit that acquires multiple images by having the camera capture images of the workpiece while changing one or more imaging conditions, in order to generate teaching data for generating a learning model that detects a target workpiece through deep learning.

5. A teaching data generation method for generating teaching data for generating a learning model for detecting a target workpiece through deep learning, comprising: a teaching input step for teaching a workpiece captured in a reference image captured in advance by a camera; a reference teaching data storage step for storing data relating to the taught workpiece as reference teaching data; an acquisition step for acquiring a plurality of images by having the camera capture images of the workpiece while changing one or more imaging conditions; and a generation step for applying the reference teaching data to the acquired plurality of images to generate teaching data for the plurality of images.

Citation Information

Patent Citations

  • Imaging apparatus

    JP2007028236A

  • Annotation device

    JP2021071878A

  • Fluorescent penetrant inspection system and method

    US20200167905A1

Cited By

  • Carton positioning method and device, electronic equipment and robot

    CN121147317A