Method and device for updating target detection model

By constructing a three-dimensional model of the target object and generating a synthetic image, the target detection model is automatically updated, which solves the problem of degradation of detection accuracy of the target detection model in the existing technology, and achieves efficient and accurate model update and is suitable for automated picking tasks in intelligent warehousing. High-frequency product update scenarios.

CN113610968BActive Publication Date: 2024-09-20BEIJING JINGDONG QIANSHITECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110957524.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-17
Publication Date
2024-09-20
Estimated Expiration
2041-08-17

AI Technical Summary

Technical Problem

In the e-commerce scenario, the detection accuracy of existing target detection models degrades over time due to frequent product updates. The process of retraining the model is time-consuming and laborious, and it is difficult to meet the demand for efficient updates.

Method used

By constructing a three-dimensional model of the target object, generating synthetic images as training samples, using machine learning algorithms to train the target detection model, and updating the detection model to improve detection accuracy.

Benefits of technology

It realizes the automatic update of the target detection model, improves the accuracy and convenience of detection results, and is suitable for high-frequency product update scenarios in automated picking tasks in intelligent warehousing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113610968B
    Figure CN113610968B
Patent Text Reader

Abstract

The present application discloses a method and device for updating a target detection model. A specific implementation of the method includes: constructing a three-dimensional model of a target object based on image data of the target object at multiple angles; generating a synthetic image including a target object representing the target object based on the three-dimensional model; using the synthetic image as a sample image and the target object as a label to obtain a training sample and generate a training sample set; training a target detection model through the training sample set to obtain an updated target detection model. The present application provides a method for automatically generating training data and automatically updating a target detection model, which improves the convenience of updating a target detection model and the accuracy of detection results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and specifically to a method and device for updating a target detection model. Background Art

[0002] In the field of intelligent warehouse automation, the method of picking robots performing picking tasks has a good application prospect. Picking robots performing picking tasks means that picking robots pick up target objects to designated locations based on visual guidance. High-precision target detection is the core technical foundation of this application scenario. Target detection technology based on deep learning is a relatively practical technology at present. Deep learning technology for target detection belongs to the category of supervised learning. The basic process is: (1) batch collection of scene data in advance; (2) manual labeling of data; (3) training of target detection model; (4) deployment of trained target detection model to online applications. It is understandable that target detection models generally have timeliness issues. For example, in e-commerce scenarios, products are frequently updated, and the accuracy of target detection models trained based on early data will degrade over time. If the above target detection model acquisition process is re-executed, although the model can be restored to its accuracy, the process is time-consuming and labor-intensive. Summary of the invention

[0003] The embodiments of the present application provide a method and device for updating a target detection model.

[0004] In a first aspect, an embodiment of the present application provides a method for updating a target detection model, comprising: constructing a three-dimensional model of a target object based on image data of the target object at multiple angles; generating a synthetic image including a target object representing the target object based on the three-dimensional model; using the synthetic image as a sample image and the target object as a label to obtain training samples and generate a training sample set; training a target detection model through the training sample set to obtain an updated target detection model, wherein the target detection model is used to characterize the correspondence between an input image and a detection result corresponding to the target object in the input image.

[0005] In some embodiments, the above-mentioned construction of a three-dimensional model of the target object based on image data of the target object at multiple angles includes: in the process of controlling the picking robot to perform a picking task for the target object based on the detection result of the target object in the input image by the target detection model, collecting two-dimensional image data and three-dimensional image data of the target object at multiple angles in a preset information collection position by a first image acquisition device; and constructing a three-dimensional model of the target object based on the two-dimensional image data and the three-dimensional image data.

[0006] In some embodiments, the above-mentioned generation of a synthetic image of a target object representing the target object based on the three-dimensional model includes: determining the coordinate system correspondence between a second image acquisition device corresponding to the picking robot, a preset information acquisition position and a first image acquisition device; determining an adjusted three-dimensional model of the three-dimensional model under the perspective of the second image acquisition device according to the coordinate system correspondence; generating a synthetic image of the target object corresponding to the target object according to the adjusted three-dimensional model and a preset background image representing the picking scene of the picking robot.

[0007] In some embodiments, the method also includes: determining the weight of the target object; and generating a synthetic image including a target object corresponding to the target object based on the adjusted three-dimensional model and the preset background image representing the picking scene of the picking robot, including: generating a synthetic image including a target object corresponding to the target object based on the adjusted three-dimensional model, the preset background image, the weight, the preset resolution of the synthetic image, and the parameters of the second image acquisition device.

[0008] In some embodiments, the above-mentioned training of the target detection model by the training sample set to obtain an updated target detection model includes: in response to determining that the detection accuracy of the target detection model is lower than a preset threshold, using a machine learning algorithm to train the target detection model by the training sample set to obtain an updated target detection model.

[0009] In some embodiments, the above method further includes: performing target detection on subsequent input images through the updated target detection model to obtain detection results; and controlling the picking robot to perform the picking task according to the detection results.

[0010] In a second aspect, an embodiment of the present application provides an updating device for a target detection model, comprising: a construction unit, configured to construct a three-dimensional model of a target object based on image data of the target object at multiple angles; an image generation unit, configured to generate a synthetic image including a target object representing the target object based on the three-dimensional model; a sample generation unit, configured to use the synthetic image as a sample image and the target object as a label to obtain training samples and generate a training sample set; an updating unit, configured to train the target detection model through the training sample set to obtain an updated target detection model, wherein the target detection model is used to characterize the correspondence between an input image and a detection result corresponding to the target object in the input image.

[0011] In some embodiments, the construction unit is further configured to: in the process of controlling the picking robot to perform a picking task for the target object based on the detection result of the target object in the input image by the target detection model, collect two-dimensional image data and three-dimensional image data of the target object at multiple angles at a preset information collection position through a first image acquisition device; and construct a three-dimensional model of the target object based on the two-dimensional image data and the three-dimensional image data.

[0012] In some embodiments, the image generation unit is further configured to: determine the coordinate system correspondence between the second image acquisition device corresponding to the picking robot, the preset information acquisition position and the first image acquisition device; determine the adjusted three-dimensional model of the three-dimensional model under the perspective of the second image acquisition device according to the coordinate system correspondence; and generate a composite image of the target object corresponding to the target object according to the adjusted three-dimensional model and the preset background image representing the picking scene of the picking robot.

[0013] In some embodiments, the above-mentioned device also includes: a determination unit, configured to determine the weight of the target object; and an image generation unit, further configured to: generate a composite image of the target object corresponding to the target object based on the adjusted three-dimensional model, the preset background image, the weight, the preset resolution of the composite image, and the parameters of the second image acquisition device.

[0014] In some embodiments, the updating unit is further configured to: in response to determining that the detection accuracy of the target detection model is lower than a preset threshold, use a machine learning algorithm to train the target detection model with a training sample set to obtain an updated target detection model.

[0015] In some embodiments, the above-mentioned device also includes: an obtaining unit, configured to perform target detection on subsequent input images through an updated target detection model to obtain a detection result; and an execution unit, configured to control the picking robot to perform a picking task according to the detection result.

[0016] In a third aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the first aspect is implemented.

[0017] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by one or more processors, the one or more processors implement the method described in any implementation manner of the first aspect.

[0018] The target detection model updating method and device provided in the embodiments of the present application construct a three-dimensional model of the target object based on image data of the target object at multiple angles; generate a synthetic image including a target object representing the target object based on the three-dimensional model; use the synthetic image as a sample image and the target object as a label to obtain training samples and generate a training sample set; train the target detection model with the training sample set to obtain an updated target detection model, thereby providing a method for automatically generating training data and automatically updating the target detection model, thereby improving the convenience of updating the target detection model and the accuracy of the detection results. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0020] Figure 1 is an exemplary system architecture diagram in which an embodiment of the present application may be applied;

[0021] Figure 2 is another exemplary system architecture diagram to which an embodiment of the present application may be applied;

[0022] Figure 3 is a flowchart of an embodiment of a method for updating a target detection model according to the present application;

[0023] Figure 4 is a schematic diagram of an application scenario of the method for updating the target detection model according to this embodiment;

[0024] Figure 5 is a flowchart of another embodiment of a method for updating a target detection model according to the present application;

[0025] Figure 6 is a structural diagram of an embodiment of a device for updating a target detection model according to the present application;

[0026] Figure 7 It is a structural diagram of a computer system suitable for implementing the embodiments of the present application. DETAILED DESCRIPTION

[0027] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0028] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0029] Figure 1 An exemplary architecture 100 is shown to which the method and apparatus for updating the target detection model of the present application can be applied.

[0030] like Figure 1 As shown, the system architecture 100 may include image acquisition devices 101, 102, networks 103, 104, a control device 105 and a picking robot 106. The communication connection between the image acquisition devices 101, 102 and the control device 105 and the picking robot 106 constitutes a topological network, and the networks 103, 104 are used to provide a medium for the communication link between the image acquisition devices 101, 102 and the control device 105 and the picking robot 106. The networks 103, 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0031] The image acquisition devices 101 and 102 may be hardware devices or software with 2D image acquisition functions, 3D image acquisition functions, and information transmission functions. When the image acquisition devices 101 and 102 are hardware, they may be various electronic devices that support network connection, image acquisition, interaction, display, processing, and other functions, including but not limited to 2D cameras, 3D cameras, smart phones, tablet computers, and desktop computers, etc. When the image acquisition devices 101 and 102 are software, they may be installed in the electronic devices listed above. They may be implemented as multiple software or software modules, for example, to provide distributed services, or they may be implemented as a single software or software module. No specific limitation is made here.

[0032] The control device 105 may be a server that provides various services, for example, a server that automatically generates training data and automatically updates the target detection model in the process of controlling the picking robot to perform the picking task based on the detection result of the target object in the image to be detected by the target detection model. As an example, the control device 105 may be a cloud server. Specifically, the control device 105 obtains the detection result of the target object in the image to be detected through the target detection model, and controls the picking robot to perform the picking task according to the detection result; and in the process of the picking robot performing the picking task, the image data of the picked target object at multiple angles is obtained, and a three-dimensional model of the target object is constructed to obtain training data, and then the target detection model is updated through the training data.

[0033] It should be noted that the control device can be hardware or software. When the control device is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the control device is software, it can be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0034] The picking robot may be any robot having a picking function, such as a multi-degree-of-freedom robotic arm.

[0035] like Figure 2 As shown, another exemplary architecture 200 of the target detection model update system is shown, including a first image acquisition device 201, a second image acquisition device 202, a third image acquisition device 203, a control device 204 and a picking robot 205.

[0036] The third image acquisition device 203 is arranged at the picking station, where a turnover box containing the target object to be picked is placed, and the third image acquisition device 203 is used to acquire an image of the target object corresponding to the target object in the turnover box. The control device 204 is used to use the image acquired by the third image acquisition device 203 as an input image of the target detection model to obtain the detection result, and then control the picking robot to perform the picking task (transfer the target object from the picking station to the stacking position) according to the detection result.

[0037] The second image acquisition device 202 is correspondingly arranged on the picking robot. The first image acquisition device 201 is arranged at a preset information acquisition position. The preset information acquisition position can be any position that the picking robot passes through during the movement process of picking the target object. For example, the preset position is set close to the picking station where the target object to be picked is placed. The first image acquisition device 201 is used to obtain image data of the target object at multiple angles in response to determining that the picking robot picks the target object and moves to the preset information acquisition position during the process of the picking robot picking the target object from the picking station to the stacking position; the control device 204 is further used to construct a three-dimensional model of the target object according to the image data of the target object at multiple angles to generate training data and update the target detection model.

[0038] The target detection model updating method provided in the embodiment of the present application may be executed by a control device, and accordingly, all parts (such as various units) included in the target detection model updating device may be arranged in the control device.

[0039] It should be understood that Figure 1 The number of image acquisition devices, networks, control devices, and picking robots is merely illustrative. Depending on the implementation requirements, any number of image acquisition devices, networks, control devices, and picking robots may be provided. When the electronic device on which the target detection model update method runs does not need to transmit data with other electronic devices, the system architecture may only include the electronic device (e.g., control device) on which the target detection model update method runs.

[0040] Continue to refer Figure 3, a process 300 of an embodiment of a method for updating a target detection model is shown, comprising the following steps:

[0041] Step 301 : constructing a three-dimensional model of the target object based on image data of the target object at multiple angles.

[0042] In this embodiment, the execution subject of the target detection model update method (for example Figure 1 The terminal device or server in the image processing unit can obtain the image data of the target object at multiple angles remotely or locally through a wired connection network or a wireless connection network, and then construct a three-dimensional model of the target object based on the image data of the target object at multiple angles.

[0043] The target detection model is used to characterize the correspondence between the input image and the detection result corresponding to the target object in the input image, and can be trained based on a neural network model with target detection function, including but not limited to convolutional neural network, residual neural network, recurrent neural network. It should be noted that the target detection model is a pre-trained model that has been put into use in the picking scene.

[0044] The image to be detected is input into the target detection model, and a detection frame indicating the target object in the image to be detected can be determined, and then the image acquisition device (such as Figure 2 The position information of the target object at the picking station in the real environment is determined by the calibration information of the third image acquisition device 203). Then, the picking robot can be controlled to pick the target object at the position represented by the determined position information.

[0045] The target object may be various physical objects. As an example, the target object is various commodities.

[0046] The image data includes 2D (2-dimension) image data and 3D image data. As an example, the 2D image data is an RGB (red, green, blue) image, and the 3D image data is point cloud image data.

[0047] In this embodiment, image data of the target object at multiple angles can be obtained by shooting with multiple groups of cameras at different positions, wherein each group of cameras includes a 2D camera and a 3D camera.

[0048] In this embodiment, the execution entity may input image data of the target object at multiple angles into a shared network model for 3D modeling (for example, Reality Capture released by Capturing Reality) to obtain a three-dimensional model of the target object.

[0049] In some optional implementations of the present embodiment, the execution subject may perform step 301 in the following manner: first, in the process of controlling the picking robot to perform the picking task for the target object according to the detection result of the target object in the input image by the target detection model, two-dimensional image data and three-dimensional image data of the target object at multiple angles at a preset information collection position are collected by a first image acquisition device; and then, a three-dimensional model of the target object is constructed according to the two-dimensional image data and the three-dimensional image data.

[0050] Specifically, a preset information collection position is set between the picking station and the stacking position, and a first image acquisition device including a plurality of cameras is set around the preset information collection position. In the process of the picking robot picking the target object at the picking station and moving it to the stacking position according to the detection result of the target detection model, in response to reaching the preset information collection position, the target object is temporarily placed at the preset information collection position, so that the first image acquisition device can acquire two-dimensional image data and three-dimensional image data of the target object at multiple angles.

[0051] Step 302: Generate a synthetic image of a target object representing the target object according to the three-dimensional model.

[0052] In this embodiment, the execution subject may generate a synthetic image including a target object representing the target object according to the three-dimensional model.

[0053] As an example, the execution subject inputs the 3D model of the target object into an image synthesis tool (such as Keyshot), sets a background image for the 3D model, and obtains a synthesized image. Specifically, multiple synthesized images can be generated for the 3D model of the same target object based on different angles of the 3D model and / or different background images.

[0054] In order to obtain a more realistic synthetic image, the target detection model updated based on the training data obtained from the synthetic image is more suitable for Figure 2 The real scene of the picking robot workstation shown in the figure, in some optional implementations of this embodiment, the execution subject can perform the above step 302 in the following manner:

[0055] First, determine the coordinate system correspondence between the second image acquisition device corresponding to the picking robot, the preset information acquisition position and the first image acquisition device.

[0056] The second image acquisition device, the preset information acquisition position and the first image acquisition device are sequentially provided with corresponding coordinate systems. The above-mentioned execution subject can determine the coordinate system correspondence between the second image acquisition device, the preset information acquisition position and the first image acquisition device corresponding to the picking robot through a calibration algorithm.

[0057] Second, according to the corresponding relationship of the coordinate systems, the adjusted three-dimensional model of the three-dimensional model under the viewing angle of the second image acquisition device is determined.

[0058] The three-dimensional model is adjusted to the perspective of the second image acquisition device corresponding to the picking robot to fully fit the real scene of the picking robot workstation.

[0059] Third, a synthetic image including a target object corresponding to the target object is generated according to the adjusted three-dimensional model and a preset background image representing a picking scene of the picking robot.

[0060] As an example, the target objects at the picking station are generally placed in a turnover box, and the preset background image may be a background image including a turnover box object corresponding to an empty turnover box. In this way, the authenticity of the synthesized image can be further improved.

[0061] In some optional implementations of this embodiment, the execution subject may also determine the weight of the target object. As an example, a weight sensor is set at a preset information collection position to obtain the weight of the target object.

[0062] In this implementation, the execution subject may perform the third step in the following manner:

[0063] A synthetic image including a target object corresponding to the target object is generated according to the adjusted three-dimensional model, the preset background image, the weight, the preset resolution of the synthetic image, and the parameters of the second image acquisition device.

[0064] The preset resolution is used to characterize the resolution of the desired composite image, and the parameters of the second image acquisition device characterize its internal reference data.

[0065] Specifically, the above-mentioned execution entity inputs the adjusted three-dimensional model, preset background image, weight, preset resolution of the synthetic image, parameters of the second image acquisition device and other data as input data into a virtual physics engine tool (such as pybullet) to obtain a synthetic image.

[0066] It should be noted that the generated synthetic image may include multiple target objects of the same type, or may include multiple target objects of different types. As an example, the different types of targets may be multiple targets currently picked. During the picking process of multiple targets, the adjusted three-dimensional model and weight information of each target object obtained by the above-mentioned execution subject can be used to obtain a synthetic image of multiple target objects of different types through a virtual physics engine tool, so as to obtain a target detection model with higher detection accuracy through training data composed of synthetic images.

[0067] Step 303: Using the synthesized image as a sample image and the target object as a label, a training sample is obtained to generate a training sample set.

[0068] In this embodiment, the execution subject may synthesize an image as a sample image, use the target object as a label, obtain a training sample, and generate a training sample set.

[0069] The synthetic image is synthesized based on the three-dimensional model, in which the target object can be obtained naturally, thus eliminating the need for manual labeling and expanding the training sample set used to update the target detection model.

[0070] Step 304: train the target detection model using the training sample set to obtain an updated target detection model.

[0071] In this embodiment, the above-mentioned execution entity can train the target detection model through the training sample set to obtain an updated target detection model.

[0072] Specifically, first, untrained training samples are selected from the training sample set, and the sample images in the selected training samples are input into the target detection model. The labels corresponding to the input training samples are used as the expected outputs to obtain the actual outputs of the target detection model. Then, the loss between the actual output and the label is calculated. Finally, the gradient is calculated based on the loss, and the parameters of the target detection model are updated based on the gradient descent method and the stochastic gradient descent method.

[0073] The execution subject may cyclically execute the update process until a preset end condition is obtained to obtain an updated target detection model, wherein the preset end condition may be, for example, that the number of training times exceeds a preset number threshold, the training time exceeds a preset time threshold, and the loss tends to converge.

[0074] In some optional implementations of this embodiment, the execution subject may perform step 304 in the following manner:

[0075] In response to determining that the detection accuracy of the target detection model is lower than a preset threshold, a machine learning algorithm is used to train the target detection model using a training sample set to obtain an updated target detection model.

[0076] The preset threshold value can be specifically set according to the actual situation. For example, when the picking task requires a higher detection accuracy, a higher preset threshold value can be set; when the picking task requires a lower detection accuracy, a lower preset threshold value can be set.

[0077] As an example, the above-mentioned execution entity can input the synthetic image into an unupdated target detection model to obtain the detection frame of the target object actually output by the target detection model; then determine the IoU (Intersection-over-Union) between the actually output detection frame and the detection frame corresponding to the label, and take the average of the IoUs corresponding to multiple synthetic images to determine the detection accuracy of the target detection model.

[0078] In some optional implementations of this embodiment, after obtaining the updated target detection model, the above-mentioned execution entity performs target detection on subsequent input images through the updated target detection model to obtain detection results; and controls the picking robot to perform the picking task according to the detection results.

[0079] Continue to see Figure 4 , Figure 4 FIG. 4 is a schematic diagram 400 of an application scenario of the method for updating the target detection model according to the present embodiment. Figure 4 In the application scenario, an image acquisition device 401, an image acquisition device 402, a server 403 and a picking robot 404 are included, and a target detection model is set in the server 403. The image acquisition device 401 is set at the picking station, captures the target object at the picking station to obtain the image to be detected, and performs target detection through the target detection model to obtain the detection result, and then controls the picking robot to pick up the target object and move it to the stacking position. In the process of the picking robot performing the picking task for the target object, the image acquisition device 402 is used to collect image data of the target object at a preset information collection position at multiple angles. After obtaining the image data at multiple angles, the server first constructs a three-dimensional model of the target object according to the image data of the target object at multiple angles; then, according to the three-dimensional model, a synthetic image including a target object representing the target object is generated; the synthetic image is used as a sample image and the target object is used as a label to obtain a training sample and generate a training sample set; then, the target detection model is trained through the training sample set to obtain an updated target detection model.

[0080] The method provided by the above-mentioned embodiments of the present application constructs a three-dimensional model of the target object based on image data of the target object at multiple angles; generates a synthetic image including a target object representing the target object based on the three-dimensional model; uses the synthetic image as a sample image and the target object as a label to obtain training samples and generate a training sample set; trains the target detection model through the training sample set to obtain an updated target detection model, thereby providing a method for automatically generating training data and automatically updating the target detection model, thereby improving the convenience of updating the target detection model and the accuracy of the detection results.

[0081] Continue to refer Figure 5, shows a schematic process 500 of an embodiment of a method for updating a target detection model according to the present application, comprising the following steps:

[0082] Step 501, in the process of controlling the picking robot to perform the picking task for the target object based on the detection result of the target object in the input image by the target detection model, the first image acquisition device collects the two-dimensional image data, three-dimensional image data and weight of the target object at multiple angles at a preset information acquisition position.

[0083] Step 502: construct a three-dimensional model of the target object according to the two-dimensional image data and the three-dimensional image data.

[0084] Step 503: Determine the coordinate system correspondence between the second image acquisition device corresponding to the picking robot, the preset information acquisition position and the first image acquisition device.

[0085] Step 504: Determine the adjusted three-dimensional model of the three-dimensional model under the viewing angle of the second image acquisition device according to the coordinate system correspondence.

[0086] Step 505 , generating a synthetic image including the target object corresponding to the target object according to the adjusted three-dimensional model, the preset background image, the weight, the preset resolution of the synthetic image, and the parameters of the second image acquisition device.

[0087] Step 506: Using the synthesized image as a sample image and the target object as a label, a training sample is obtained to generate a training sample set.

[0088] Step 507: train the target detection model using the training sample set to obtain an updated target detection model.

[0089] The target detection model is used to characterize the corresponding relationship between the input image and the detection result corresponding to the target object in the input image.

[0090] Step 508: Perform target detection on subsequent input images using the updated target detection model to obtain detection results.

[0091] Step 509: Control the picking robot to perform the picking task according to the detection result.

[0092] It can be seen from this embodiment that Figure 3 Compared with the corresponding embodiments, process 500 of the target detection model updating method in this embodiment specifically illustrates the construction process of the synthetic image and the application process of the updated target detection model, and provides a closed-loop continuous learning method for the target detection model. A training sample set is constructed based on a three-dimensional model of the target object, which is suitable for targets of all shapes and improves the universality and detection accuracy of the target detection model.

[0093] Continue to refer Figure 6 As an implementation of the methods shown in the above figures, the present application provides an embodiment of a device for updating a target detection model. Figure 3 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0094] like Figure 6 As shown, the updating device of the target detection model includes: a construction unit 601, which is configured to construct a three-dimensional model of the target object according to image data of the target object at multiple angles; an image generation unit 602, which is configured to generate a synthetic image including a target object representing the target object according to the three-dimensional model; a sample generation unit 603, which is configured to obtain training samples using the synthetic image as a sample image and the target object as a label, and generate a training sample set; an updating unit 604, which is configured to train the target detection model through the training sample set to obtain an updated target detection model, wherein the target detection model is used to characterize the correspondence between the input image and the detection result corresponding to the target object in the input image.

[0095] In some optional implementations of the present embodiment, the construction unit 601 is further configured to: in the process of controlling the picking robot to perform a picking task for the target object based on the detection result of the target object in the input image by the target detection model, collect two-dimensional image data and three-dimensional image data of the target object at multiple angles at a preset information collection position through a first image acquisition device; and construct a three-dimensional model of the target object based on the two-dimensional image data and the three-dimensional image data.

[0096] In some optional implementations of the present embodiment, the image generation unit 602 is further configured to: determine the coordinate system correspondence between the second image acquisition device corresponding to the picking robot, the preset information acquisition position and the first image acquisition device; determine the adjusted three-dimensional model of the three-dimensional model under the perspective of the second image acquisition device according to the coordinate system correspondence; and generate a composite image of the target object corresponding to the target object according to the adjusted three-dimensional model and the preset background image representing the picking scene of the picking robot.

[0097] In some optional implementations of this embodiment, the above-mentioned device also includes: a determination unit (not shown in the figure), configured to determine the weight of the target object; and an image generation unit 602, further configured to: generate a composite image of the target object corresponding to the target object based on the adjusted three-dimensional model, the preset background image, the weight, the preset resolution of the composite image, and the parameters of the second image acquisition device.

[0098] In some optional implementations of this embodiment, the update unit 604 is further configured to: in response to determining that the detection accuracy of the target detection model is lower than a preset threshold, use a machine learning algorithm to train the target detection model with a training sample set to obtain an updated target detection model.

[0099] In some optional implementations of the present embodiment, the above-mentioned device also includes: an obtaining unit (not shown in the figure), configured to perform target detection on subsequent input images through an updated target detection model to obtain detection results; an execution unit (not shown in the figure), configured to control the picking robot to perform the picking task according to the detection results.

[0100] In this embodiment, a construction unit in a target detection model updating device constructs a three-dimensional model of the target object based on image data of the target object at multiple angles; an image generation unit generates a synthetic image including a target object representing the target object based on the three-dimensional model; a sample generation unit uses the synthetic image as a sample image and the target object as a label to obtain training samples and generate a training sample set; and an updating unit trains the target detection model through the training sample set to obtain an updated target detection model, wherein the target detection model is used to characterize the correspondence between the input image and the detection result corresponding to the target object in the input image, thereby providing a device for automatically generating training data and automatically updating the target detection model, thereby improving the convenience of updating the target detection model and the accuracy of the detection results.

[0101] Reference below Figure 7 , which shows a device suitable for implementing the embodiments of the present application (eg Figure 1 Schematic diagram of the structure of a computer system 700 of the devices 101, 102, 105, 106 shown. Figure 7 The device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0102] like Figure 7 As shown, the computer system 700 includes a processor (e.g., CPU, central processing unit) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The processor 701, ROM 702, and RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0103] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.

[0104] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 709, and / or installed from a removable medium 711. When the computer program is executed by the processor 701, the above-mentioned functions defined in the method of the present application are executed.

[0105] It should be noted that the computer-readable medium of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0106] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the client computer, partially on the client computer, as a separate software package, partially on the client computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the client computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0107] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the device, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0108] The units involved in the embodiments described in the present application may be implemented by software or by hardware. The described units may also be arranged in a processor, for example, may be described as: a processor comprising a construction unit, an image generation unit, a sample generation unit, and an update unit. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances. For example, the update unit may also be described as "a unit that trains a target detection model through a training sample set to obtain an updated target detection model".

[0109] As another aspect, the present application also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the device, the computer device: constructs a three-dimensional model of the target object according to the image data of the target object at multiple angles; generates a synthetic image including a target object representing the target object according to the three-dimensional model; uses the synthetic image as a sample image and the target object as a label to obtain a training sample and generate a training sample set; trains the target detection model through the training sample set to obtain an updated target detection model, wherein the target detection model is used to characterize the corresponding relationship between the input image and the detection result corresponding to the target object in the input image.

[0110] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

Claims

1. A method for updating a target detection model, wherein the updating system of the target detection model comprises a first image acquisition device arranged at a preset information acquisition position, a second image acquisition device arranged on a picking robot, a third image acquisition device arranged at a picking station, and the picking robot, wherein the first image acquisition device is used for acquiring image data of the target object at multiple angles in response to determining that the picking robot picks the target object and moves it to the preset information acquisition position during the process of the picking robot picking the target object from the picking station to the stacking position, wherein the method comprises: Constructing a three-dimensional model of the target object according to the image data of the target object at multiple angles; Generating a synthetic image including a target object representing the target object according to the three-dimensional model, including: determining a coordinate system correspondence between a second image acquisition device corresponding to the picking robot, the preset information acquisition position, and the first image acquisition device; determining an adjusted three-dimensional model of the three-dimensional model under the perspective of the second image acquisition device according to the coordinate system correspondence; generating a synthetic image including the target object corresponding to the target object according to the adjusted three-dimensional model and a preset background image representing a picking scene of the picking robot; Using the synthetic image as a sample image and the target object as a label, obtaining a training sample and generating a training sample set; The target detection model is trained by using the training sample set to obtain an updated target detection model, wherein the target detection model is used to characterize the correspondence between the input image captured by the third image acquisition device and the detection result corresponding to the target object in the input image.

2. The method according to claim 1, wherein: The step of constructing a three-dimensional model of the target object according to the image data of the target object at multiple angles includes: In the process of controlling the picking robot to perform a picking task for the target object according to the detection result of the target object in the input image by the target detection model, two-dimensional image data and three-dimensional image data of the target object at a preset information collection position at multiple angles are collected by a first image acquisition device; A three-dimensional model of the target object is constructed based on the two-dimensional image data and the three-dimensional image data.

3. The method according to claim 1, wherein: Also includes: determining the weight of the target object; as well as The step of generating a composite image including a target object corresponding to the target object according to the adjusted three-dimensional model and a preset background image representing a picking scene of the picking robot comprises: A synthetic image including a target object corresponding to the target object is generated according to the adjusted three-dimensional model, the preset background image, the weight, the preset resolution of the synthetic image, and the parameters of the second image acquisition device.

4. The method according to claim 1, wherein: The step of training the target detection model by using the training sample set to obtain an updated target detection model includes: In response to determining that the detection accuracy of the target detection model is lower than a preset threshold, the target detection model is trained using the training sample set using a machine learning algorithm to obtain an updated target detection model.

5. The method according to any one of claims 1 to 4, wherein: Also includes: Performing target detection on subsequent input images through the updated target detection model to obtain detection results; The picking robot is controlled to perform the picking task according to the detection result.

6. An updating device for a target detection model, the updating system of the target detection model comprising a first image acquisition device arranged at a preset information acquisition position, a second image acquisition device arranged on a picking robot, a third image acquisition device arranged at a picking station and the picking robot, the first image acquisition device being used for acquiring image data of the target object at multiple angles in response to determining that the picking robot picks the target object and moves it to the preset information acquisition position during the process of the picking robot picking the target object from the picking station to the stacking position, the device comprising: A construction unit, configured to construct a three-dimensional model of the target object according to image data of the target object at multiple angles; The image generating unit is configured to generate a synthetic image including a target object representing the target object according to the three-dimensional model, including: determining a coordinate system correspondence between a second image acquisition device corresponding to the picking robot, the preset information acquisition position, and the first image acquisition device; determining an adjusted three-dimensional model of the three-dimensional model under the perspective of the second image acquisition device according to the coordinate system correspondence; generating a synthetic image including the target object corresponding to the target object according to the adjusted three-dimensional model and a preset background image representing a picking scene of the picking robot; A sample generating unit is configured to use the synthetic image as a sample image and the target object as a label to obtain a training sample and generate a training sample set; An updating unit is configured to train the target detection model through the training sample set to obtain an updated target detection model, wherein the target detection model is used to characterize the correspondence between the input image captured by the third image acquisition device and the detection result corresponding to the target object in the input image.

7. The device according to claim 6, wherein: The construction unit is further configured to: In the process of controlling the picking robot to perform the picking task for the target object in the input image according to the detection result of the target detection model, two-dimensional image data and three-dimensional image data of the target object at a preset information collection position at multiple angles are collected by a first image acquisition device; and a three-dimensional model of the target object is constructed according to the two-dimensional image data and the three-dimensional image data.

8. The device according to claim 6, wherein: Also includes: a determining unit configured to determine the weight of the target object; as well as The image generation unit is further configured to: A synthetic image including a target object corresponding to the target object is generated according to the adjusted three-dimensional model, the preset background image, the weight, the preset resolution of the synthetic image, and the parameters of the second image acquisition device.

9. The device according to claim 6, wherein: The updating unit is further configured to: In response to determining that the detection accuracy of the target detection model is lower than a preset threshold, the target detection model is trained using the training sample set using a machine learning algorithm to obtain an updated target detection model.

10. The device according to any one of claims 6 to 9, wherein: Also includes: An obtaining unit is configured to perform target detection on a subsequent input image through the updated target detection model to obtain a detection result; The execution unit is configured to control the picking robot to execute the picking task according to the detection result.

11. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

12. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.