Target detection method, target detection device, robot and storage medium

By using the preset encoding and decoding model and the foreground prediction module in the target detection model, the known and unknown object categories on the robot's driving route are detected, which solves the problem of insufficient detection of unknown objects in the existing technology and improves the safety of the robot's driving. sex.

CN118628797APending Publication Date: 2024-09-10UBTECH ROBOTICS CORP LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410683577.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing target detection models are unable to detect unknown object categories, resulting in increased safety risks when the robot is driving.

Method used

By acquiring the environment image during the current driving process of the robot and inputting it into the target object detection model, this model is based on the preset encoding and decoding model and foreground prediction module, which can detect foreground objects of known and unknown object categories, and generate detection records to Guide the robot to avoid obstacles and drive.

Benefits of technology

It realizes the detection of unknown object categories and avoids obstacles, reducing the safety risks during robot driving.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628797A
    Figure CN118628797A
Patent Text Reader

Abstract

The invention discloses a target detection method, a target detection device, a robot and a storage medium. The method comprises the following steps: acquiring a current environment image of the robot in a current driving process; the current environment image is input to a target object detection model, so that the target object detection model outputs a foreground object category and a foreground object position according to the current environment image, and the target object detection model is obtained based on a preset coding and decoding model and a foreground prediction module; the foreground prediction module is used for predicting whether an object in the current environment image is a foreground object, wherein the foreground object category comprises a known foreground object category which is marked in advance and an unknown foreground object category which is not marked in advance. According to the method, the foreground object of the known foreground object category and the foreground object of the unknown foreground object category are detected based on the target object detection model constructed by the preset coding and decoding model and the foreground prediction module, and the safety risk in the robot driving process is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of robot obstacle avoidance technology, and in particular, relates to a target detection method, a target detection device, a robot and a storage medium. Background Art

[0002] In recent years, with the development of artificial intelligence (AI), more and more AI technologies have been applied to the field of robot obstacle avoidance technology. Object detection is a common AI technology application in the field of robot obstacle avoidance technology.

[0003] At present, target detection is a process of detecting objects on the robot's driving route based on a target detection model to obtain the object category and object position. The target detection model is obtained by training the preset encoding and decoding based on a training set with labeled known object categories.

[0004] However, when the object category of an object on the robot's driving route is an unknown object category, the target detection model will not be able to detect the object. When the robot continues to drive along the driving route, the robot will collide with the object, increasing the safety risk during the robot's driving process. Summary of the invention

[0005] In view of this, the embodiments of the present application provide a target detection method, a target detection device, a robot and a storage medium to overcome the above problems of the prior art.

[0006] In a first aspect, an embodiment of the present application provides a target detection method, comprising: obtaining a current environment image during the current driving process of a robot; inputting the current environment image into a target object detection model, so that the target object detection model outputs foreground object information according to the current environment image, the target object detection model is obtained based on a preset encoding and decoding model and a foreground prediction module, the foreground prediction module is used to predict whether an object in the current environment image is a foreground object, the foreground object information includes a foreground object category and a foreground object position, the foreground object category includes a known foreground object category that has been pre-labeled and an unknown foreground object category that has not been pre-labeled.

[0007] Among them, in some optional embodiments, before obtaining the current environment image of the robot during its current driving process, the target detection method also includes: obtaining historical environment images during the robot's historical driving process; obtaining a corresponding sample set based on the historical environment image, and the sample set includes a training set and a test set; constructing an initial object detection model based on the preset encoding and decoding model and the foreground prediction module; inputting the training set into the initial object detection model for training to obtain a target object detection model.

[0008] Among them, in some optional embodiments, constructing an initial object detection model based on the preset encoding and decoding model and the foreground prediction module includes: fusing the positive and negative sample matching module of the preset encoding and decoding model and the foreground prediction module to obtain an initial object detection model.

[0009] Among them, in some optional embodiments, the obtaining of historical environment images during the historical driving process of the robot includes: obtaining historical environment videos during the historical driving process of the robot; and performing frame extraction processing on the historical environment videos to obtain historical environment images.

[0010] Among them, in some optional embodiments, obtaining the corresponding sample set according to the historical environment image includes: annotating the historical environment image to obtain an annotated image; and dividing the annotated image according to a preset division rule to obtain a sample set.

[0011] Among them, in some optional embodiments, the target detection method also includes: generating and storing a detection record including the current environment image, the foreground object category and the foreground object position.

[0012] Among them, in some optional embodiments, the target detection method also includes: determining the target driving route of the robot according to the foreground object information; and controlling the robot to drive according to the target driving route.

[0013] In the second aspect, the embodiment of the present application provides a target detection device, which includes a current image acquisition module and an image input module. The current image acquisition module is used to acquire the current environment image of the robot during its current driving process; the image input module is used to input the current environment image into a target object detection model, so that the target object detection model outputs foreground object information according to the current environment image, the target object detection model is obtained based on a preset encoding and decoding model and a foreground prediction module, the foreground prediction module is used to predict whether an object in the current environment image is a foreground object, the foreground object information includes a foreground object category and a foreground object position, and the foreground object category includes a known foreground object category that has been pre-labeled and an unknown foreground object category that has not been pre-labeled.

[0014] In a third aspect, an embodiment of the present application provides a robot comprising a memory; one or more processors coupled to the memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the target detection method provided in the first aspect above.

[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the target detection method provided in the first aspect above.

[0016] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer device, enables the computer device to execute the target detection method provided in the first aspect above.

[0017] The solution provided by the present application obtains the current environment image of the robot during its current driving process, and inputs the current environment image into a target object detection model, so that the target object detection model outputs foreground object information according to the current environment image. The target object detection model is obtained based on a preset encoding and decoding model and a foreground prediction module. The foreground prediction module is used to predict whether an object in the current environment image is a foreground object. The foreground object information includes a foreground object category and a foreground object position. The foreground object category includes a known foreground object category that has been pre-labeled and an unknown foreground object category that has not been pre-labeled. The target object detection model constructed based on the preset encoding and decoding model and the foreground prediction module is implemented to detect the current environment image, and foreground objects of the known foreground object category and foreground objects of the unknown foreground object category in the current environment image can be detected, which is beneficial for the robot to avoid obstacles according to the detected foreground objects of the known foreground object category and the foreground objects of the unknown foreground object category, thereby helping to reduce safety risks during the robot's driving process. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 A schematic diagram of a scenario of a target detection system provided in an embodiment of the present application is shown.

[0020] Figure 2 A schematic diagram of a flow chart of a target detection method provided in an embodiment of the present application is shown.

[0021] Figure 3 A structural schematic diagram of a target object detection model in the target detection method provided in an embodiment of the present application is shown.

[0022] Figure 4Another flow chart of the target detection method provided in an embodiment of the present application is shown.

[0023] Figure 5 A structural block diagram of a target detection device provided in an embodiment of the present application is shown.

[0024] Figure 6 A functional block diagram of the robot provided in an embodiment of the present application is shown.

[0025] Figure 7 A computer-readable storage medium provided in an embodiment of the present application for storing or carrying a program code for implementing a target detection method provided in an embodiment of the present application is shown.

[0026] Figure 8 A computer program product provided in an embodiment of the present application and used for storing or carrying program codes for implementing the target detection method provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0027] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described below are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0028] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0029] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0030] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0031] In addition, in the description of the present application, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0032] In recent years, with the development of artificial intelligence (AI), more and more AI technologies have been applied to the field of robot obstacle avoidance technology. Object detection is a common AI technology application in the field of robot obstacle avoidance technology.

[0033] At present, target detection is a process of detecting objects on the robot's driving route based on a target detection model to obtain the object category and object position. The target detection model is obtained by training a preset encoding and decoding model based on a training set with labeled known object categories.

[0034] However, when the object category of an object on the robot's driving route is an unknown object category, the target detection model will not be able to detect the object. When the robot continues to drive along the driving route, the robot will collide with the object, increasing the safety risk during the robot's driving process.

[0035] In response to the above problems, the target detection method, target detection device, robot and storage medium provided in the embodiments of the present application obtain the current environment image of the robot during its current driving process, and input the current environment image into the target object detection model, so that the target object detection model outputs foreground object information according to the current environment image. The target object detection model is obtained based on a preset encoding and decoding model and a foreground prediction module. The foreground prediction module is used to predict whether an object in the current environment image is a foreground object. The foreground object information includes a foreground object category and a foreground object position. The foreground object category includes a known foreground object category that has been pre-labeled and an unknown foreground object category that has not been pre-labeled. The target object detection model constructed based on the preset encoding and decoding model and the foreground prediction module is implemented to detect the current environment image, and foreground objects of the known foreground object category and foreground objects of the unknown foreground object category in the current environment image can be detected, which is beneficial for the robot to avoid obstacles according to the detected foreground objects of the known foreground object category and the foreground objects of the unknown foreground object category, thereby helping to reduce safety risks during the robot's driving process.

[0036] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0037] See also Figure 1 , which shows a schematic diagram of an application scenario of the target detection system provided in an embodiment of the present application, which may include a robot 100 and a processing device 200, wherein the robot 100 is communicatively connected to the processing device 200 and exchanges data with the processing device 200.

[0038] Among them, the robot 100 can be any one of a logistics robot, a warehousing robot, a delivery robot, an auxiliary walking robot, a companion robot, an intelligent walking robot, a guide robot or a cleaning robot, etc. The type of robot 100 is not limited here and can be set according to actual needs.

[0039] The processing device 200 may be a terminal device or a server, etc. The type of the processing device 200 is not limited here and may be specifically configured according to actual needs.

[0040] The terminal device can be a mobile terminal device (for example, any one of a mobile phone, a personal digital assistant (PDA), a tablet personal computer (Tablet PC), a laptop computer, a smart watch, a smart bracelet or a wearable device, etc.), or a fixed terminal device (desktop computer, smart panel, etc.), etc.

[0041] The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or any one of the cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), big data or artificial intelligence platforms, etc.

[0042] In some embodiments, the robot 100 can be integrated with the processing device 200 to form an integrated device. For example, the processing device 200 can be embedded inside the robot 100 and form an integrated device together with the robot 100. In addition, the robot 100 can also be separately and independently configured from the processing device 200, which is not limited here.

[0043] See also Figure 2 , which shows a flow chart of a target detection method provided by an embodiment of the present application. In a specific embodiment, the target detection method can be applied to Figure 1 The processing device 200 in the target detection system shown in FIG. Figure 2 The process shown is described in detail, and the target detection method may include the following steps S110 to S120.

[0044] Step S110: Acquire the current environment image of the robot during its current driving process.

[0045] In an embodiment of the present application, the processing device can detect the robot state of the robot, and when it is detected that the robot state of the robot is a moving state, obtain the current environment image of the robot during the current driving process.

[0046] The robot state may include a motion state and a static state, etc. The type of the robot state is not limited here and can be set according to actual needs.

[0047] In some embodiments, the robot may include a camera, which is communicatively connected to the processing device and exchanges data with the processing device.

[0048] The processing device can detect the robot state of the robot, and when it is detected that the robot state is in motion, it can send a first acquisition instruction to the camera. The camera receives and responds to the first acquisition instruction, acquires images of the environment during the robot's driving process, obtains the current environment image, and sends the current environment image to the processing device. The processing device receives the current environment image returned by the camera.

[0049] Among them, the camera can be any one of a white light camera, an infrared camera, a laser camera, etc. The type of camera is not limited here and can be set according to actual needs.

[0050] In some embodiments, the target detection system may further include a camera, which is used to collect images of the environment during the robot's driving process. The camera may be connected to the processing device via a network, and exchange data with the processing device via the network.

[0051] The processing device can detect the robot state of the robot, and when it is detected that the robot state is in motion, it can send a second acquisition instruction to the camera through the network. The camera receives and responds to the second acquisition instruction, acquires images of the environment during the robot's driving process, obtains the current environment image, and sends the current environment image to the processing device through the network. The processing device receives the current environment image returned by the camera.

[0052] Among them, the network can be any one of a ZigBee network, a Bluetooth (BT) network, a Wireless Fidelity (Wi-Fi) network, a Thread network, a Long Range Radio (LoRa) network, a Low-Power Wide-Area Network (LPWAN), an infrared network, a Narrow Band Internet of Things (NB-IoT), a Controller Area Network (CAN), a Digital Living Network Alliance (DLNA) network, a Wide Area Network (WAN), a Local Area Network (LAN), a Metropolitan Area Network (MAN) or a Wireless Personal Area Network (WPAN), etc. The type of network is not limited here and can be set according to actual needs.

[0053] Regarding the process of the above-mentioned processing device detecting the robot state of the robot, in some embodiments, the processing device can obtain the robot signal of the robot, match the robot signal with a preset signal, obtain the signal matching degree, and determine the robot state of the robot based on the signal matching degree.

[0054] When the signal matching degree is greater than or equal to the signal matching degree threshold, the robot state is determined to be a moving state; when the signal matching degree is less than the signal matching degree threshold, the robot state is determined to be a stationary state.

[0055] The robot signal may include at least any one of a voltage signal, a current signal, a speed signal, etc., which is not limited here.

[0056] The preset signal can be a signal used to indicate that the robot is in a motion state. The signal matching threshold can be a minimum signal matching degree used to characterize that the robot state is in a motion state. The signal matching threshold can be a signal matching degree pre-set by the user, or a signal matching degree automatically generated by a processing device according to a detection process of multiple target detections, etc., which is not limited here.

[0057] Step S120: inputting the current environment image into the target object detection model, so that the target object detection model outputs foreground object information according to the current environment image.

[0058] In an embodiment of the present application, after the processing device obtains the current environment image during the current driving process of the robot, the current environment image can be input into the target object detection model. The target object detection model receives and responds to the current environment image, and outputs foreground object information according to the current environment image. The target object detection model can be obtained based on a preset encoding and decoding model and a foreground prediction module. The foreground prediction module can be used to predict whether the object in the current environment image is a foreground object. The foreground object information may include the foreground object category and the foreground object position. The foreground object category may include a known foreground object category that has been pre-labeled and an unknown foreground object category that has not been pre-labeled. The target object detection model constructed based on the preset encoding and decoding model and the foreground prediction module is implemented to detect the current environment image, and foreground objects of the known foreground object category and foreground objects of the unknown foreground object category in the current environment image can be detected, which is beneficial for the robot to avoid obstacles according to the detected foreground objects of the known foreground object category and the foreground objects of the unknown foreground object category, thereby helping to reduce safety risks during the robot's driving process.

[0059] Among them, Figure 3 As shown, the preset encoding and decoding model may include an input module, a backbone module, a deformable encoder module, a deformable decoder module, a positive and negative sample matching module, and an output module connected in sequence.

[0060] The input module can be used to input the environment image into the Backbone module, and input the initialization matrix (query) into the Deformable Decoder module; the Backbone module can be used to extract features from the environment image to obtain initial features; the Deformable Encoder module can be used to encode the initial features to obtain encoded features; the Deformable Decoder module can be used to fuse the initialization matrix and the encoded features to obtain fused features, and decode the fused features to obtain decoded features; the positive and negative sample matching module can be used to match the decoded features with the ground truth (GT) of the objects in the environment image to obtain matching samples; the output module can be used to output the object category and object position according to the matching samples.

[0061] The query may be a matrix preset by the user, or a matrix automatically generated by a processing device according to a detection process of multiple target detections, etc., which is not limited here.

[0062] The number of queries can be one or more. The dimension of each query can be set by the user according to actual needs. For example, the dimension of each query can be set to 1*512.

[0063] The matching samples may include positive samples and negative samples. The positive and negative sample matching module may be used to match the decoding features with the GT based on the Hungarian Matching Algorithm, and determine the decoding features that match the GT as positive samples, and determine the decoding features that do not match the GT as negative samples. Each GT has a decoding feature to match it.

[0064] Output modules can include classification (f cls ) output submodule and regression (f bbox ) Output submodule, f cls The output submodule can be used to output object categories based on positive samples and negative samples, f bbox The output submodule can be used to output the object position based on the positive samples and negative samples.

[0065] Outlook obj ) module can be connected to the positive and negative sample matching module of the preset encoding and decoding model. During the model training process, f obj The module can be used to determine the object corresponding to the decoded feature that matches the GT as a foreground object, and set the object category label corresponding to the foreground object to 1, and determine the object corresponding to the decoded feature that does not match the GT as a background object, and set the object category label of the background object to 0.

[0066] f cls The output submodule can also be used to output known foreground object categories and unknown foreground object categories based on positive samples, negative samples, and object category labels. cls The output submodule will f obj The class scores predicted by the module and f cls The final score obtained by multiplying the category scores predicted by the output submodules is determined as the final category score of the foreground object.

[0067] As an example, if the object corresponding to the decoded feature is a background object, then f obj The category scores of background objects predicted by the module are close to 0, regardless of f cls The output submodule predicts the category score of the background object, and the final category score is close to 0.

[0068] In some embodiments, the processing device inputs the current environment image into the target object detection model, so that after the target object detection model outputs foreground object information based on the current environment image, the target driving route of the robot can be determined based on the foreground object information, and the robot can be controlled to drive according to the driving route, thereby controlling the robot to avoid obstacles based on the foreground object information and improving the driving safety of the robot.

[0069] Wherein, there is no foreground object corresponding to the foreground object information on the target driving route. The processing device can determine the target driving route of the robot according to the position of the foreground object, the driving direction of the robot and the driving speed of the robot.

[0070] In some embodiments, the processing device inputs the current environment image into the target object detection model, so that after the target object detection model outputs foreground object information based on the current environment image, a detection record including the current environment image, foreground object category and foreground object position can be generated, and the detection record is stored so that the user can trace the detection process of target detection on the current environment image according to the detection record, thereby improving the user experience during the target detection process.

[0071] The solution provided in this embodiment obtains the current environment image of the robot during its current driving process, and inputs the current environment image into the target object detection model, so that the target object detection model outputs foreground object information according to the current environment image. The target object detection model is obtained based on a preset encoding and decoding model and a foreground prediction module. The foreground prediction module is used to predict whether an object in the current environment image is a foreground object. The foreground object information includes a foreground object category and a foreground object position. The foreground object category includes a known foreground object category that has been pre-labeled and an unknown foreground object category that has not been pre-labeled. The target object detection model constructed based on the preset encoding and decoding model and the foreground prediction module is implemented to detect the current environment image, and foreground objects of the known foreground object category and foreground objects of the unknown foreground object category in the current environment image can be detected, which is beneficial for the robot to avoid obstacles according to the detected foreground objects of the known foreground object category and the foreground objects of the unknown foreground object category, thereby helping to reduce safety risks during the robot's driving process.

[0072] See also Figure 4 , which shows a flow chart of a target detection method provided by another embodiment of the present application. In a specific embodiment, the target detection method can be applied to Figure 1 The processing device 200 in the target detection system shown in FIG. Figure 4 The process shown is described in detail, and the target detection method may include the following steps S210 to S260.

[0073] Step S210: Acquire historical environment images during the robot's historical driving process.

[0074] In this embodiment, the processing device may detect the robot state of the robot, and when it is detected that the robot state of the robot is a moving state, a historical environment image during the historical driving process of the robot may be acquired.

[0075] Specifically, the processing device can detect the robot state of the robot, and when it is detected that the robot state is in motion, it can obtain the historical environment video of the robot's historical driving process, and perform frame extraction processing on the historical environment video to obtain a historical environment image.

[0076] Among them, the processing device can perform frame extraction processing on the historical environment video according to the shooting time of the historical environment video, or can perform frame extraction processing on the historical environment video according to a preset time interval, etc., which is not limited here.

[0077] The preset time interval may be a time interval preset by a user, or a time interval automatically generated by a processing device according to a detection process of multiple target detections, etc., which is not limited here.

[0078] As an implementation mode, the processing device pre-stores historical environment videos of the robot during its historical driving process. The processing device can detect the robot state of the robot, and when it is detected that the robot state of the robot is in a moving state, it can read the pre-stored historical environment video and perform frame extraction processing on the historical environment video to obtain a historical environment image.

[0079] As an implementation method, the robot pre-stores historical environment videos during the robot's historical driving process. The processing device can detect the robot state of the robot, and when it is detected that the robot state of the robot is a moving state, it can send an acquisition instruction to the robot. The robot receives and responds to the acquisition instruction, and sends the pre-stored historical environment video to the processing device. The processing device receives the historical environment video returned by the robot, and performs frame extraction processing on the historical environment video to obtain a historical environment image.

[0080] As an implementation method, the processing device can detect the robot state of the robot, and when it is detected that the robot state is in motion, it can generate upload prompt information, and receive the historical environment video of the robot's historical driving process uploaded by the user according to the upload prompt information, and perform frame extraction processing on the historical environment video to obtain a historical environment image.

[0081] The upload prompt information may be at least any one of text prompt information, sound prompt information, or light prompt information, and is not limited here.

[0082] Step S220: Obtain a corresponding sample set according to the historical environment image.

[0083] In this embodiment, after the processing device obtains the historical environment images during the historical driving process of the robot, it can obtain the corresponding sample set according to the historical environment images. The sample set may include a training set and a test set.

[0084] Specifically, after the processing device obtains the historical environment images during the historical driving process of the robot, it can annotate the historical environment images to obtain annotated images, and divide the annotated images according to preset division rules to obtain a sample set.

[0085] When the processing device annotates the historical environment image, it mainly annotates the known foreground object category and foreground object position in the historical environment image. For example, the processing device can annotate the foreground object category in the historical environment image with an annotation box, and annotate the corner point coordinates of the annotation box.

[0086] The preset division rule may be an artificial division rule. For example, the preset division rule may be an artificial division rule of training set: test set = 5:1. When the number of historical environment images is 30,000, the number of training sets is 25,000 and the number of test sets is 5,000. The preset division rule may be an artificial division rule of training set: test set = 11:1. When the number of historical environment images is 48,000, the number of training sets is 44,000 and the number of test sets is 4,000. The division method of the preset division rule is not limited here, and can be set according to actual needs.

[0087] Step S230: constructing an initial object detection model based on the preset encoding and decoding model and foreground prediction module.

[0088] In this embodiment, after the processing device obtains the corresponding sample set according to the historical environment image, it can build an initial object detection model based on the preset encoding and decoding model and foreground prediction module.

[0089] Specifically, after the processing device obtains the corresponding sample set based on the historical environment image, it can fuse the positive and negative sample matching module and the foreground prediction module of the preset encoding and decoding model to obtain an initial object detection model. The foreground prediction module can be used to label the foreground objects in the historical environment image, which can improve the learning ability of the initial object detection model to learn the categories of unknown foreground objects, and is conducive to increasing the ability of the target object detection model to predict the categories of unknown foreground objects that have not been pre-labeled.

[0090] Step S240: input the training set to the initial object detection model for training to obtain a target object detection model.

[0091] In this embodiment, after the processing device constructs an initial object detection model based on a preset encoding and decoding model and a foreground prediction module, a training set can be input into the initial object detection model. The initial object detection model receives and responds to the training set, and is trained according to the training set to obtain a target object detection model.

[0092] Step S250: Acquire the current environment image during the current driving process of the robot.

[0093] Step S260: input the current environment image to the target object detection model, so that the target object detection model outputs foreground object information according to the current environment image.

[0094] In this embodiment, step S250 and step S260 may refer to the contents of the corresponding steps in the aforementioned embodiment, which will not be described in detail here.

[0095] The solution provided in this embodiment obtains historical environment images during the robot's historical driving process, obtains corresponding sample sets based on the historical environment images, and constructs an initial object detection model based on a preset encoding and decoding model and a foreground prediction module, and inputs a training set to the initial object detection model for training to obtain a target object detection model, and obtains the current environment image during the robot's current driving process, and inputs the current environment image to the target object detection model, so that the target object detection model outputs foreground object information according to the current environment image, and realizes detection of the current environment image by the target object detection model constructed based on the preset encoding and decoding model and the foreground prediction module, and can detect foreground objects of known foreground object categories and foreground objects of unknown foreground object categories in the current environment image, which is beneficial for the robot to avoid obstacles according to the detected foreground objects of known foreground object categories and foreground objects of unknown foreground object categories, thereby helping to reduce safety risks during the robot's driving process.

[0096] Furthermore, the foreground prediction module can be used to label foreground objects in historical environment images, which can improve the learning ability of the initial object detection model to learn unknown foreground object categories, and is conducive to increasing the ability of the target object detection model to predict unknown foreground object categories that have not been pre-labeled.

[0097] See also Figure 5 , which shows a target detection device 300 provided by an embodiment of the present application. The target detection device 300 can be applied to Figure 1 The processing device 200 in the target detection system shown in FIG. Figure 5 The target detection device 300 shown is described in detail. The target detection device 300 may include a current image acquisition module 310 and an image input module 320.

[0098] The current image acquisition module 310 can be used to acquire the current environment image during the current driving process of the robot; the image input module 320 can be used to input the current environment image into the target object detection model, so that the target object detection model outputs foreground object information according to the current environment image. The target object detection model can be obtained based on a preset encoding and decoding model and a foreground prediction module. The foreground prediction module can be used to predict whether an object in the current environment image is a foreground object. The foreground object information may include the foreground object category and the foreground object position. The foreground object category may include a known foreground object category that has been pre-labeled and an unknown foreground object category that has not been pre-labeled.

[0099] In some implementations, the object detection apparatus 300 may further include a historical image acquisition module, a sample set acquisition module, a construction module, and a training set input module.

[0100] The historical image acquisition module can be used to acquire the historical environment images of the robot during its historical driving process before the current image acquisition module 310 acquires the current environment image during the robot's current driving process; the sample set acquisition module can be used to acquire the corresponding sample set based on the historical environment image, and the sample set may include a training set and a test set; the construction module can be used to construct an initial object detection model based on a preset encoding and decoding model and a foreground prediction module; the training set input module can be used to input the training set into the initial object detection model for training to obtain a target object detection model.

[0101] In some embodiments, a building block can include a fusion unit.

[0102] The fusion unit can be used to fuse the positive and negative sample matching module and the foreground prediction module of the preset encoding and decoding model to obtain an initial object detection model.

[0103] In some implementations, the historical image acquisition module may include an acquisition unit and a processing unit.

[0104] The acquisition unit can be used to acquire the historical environment video during the historical driving process of the robot; the processing unit can be used to perform frame extraction processing on the historical environment video to obtain the historical environment image.

[0105] In some implementations, the sample set acquisition module may include a labeling unit and a dividing unit.

[0106] The labeling unit can be used to label the historical environment image to obtain a labeled image; the division unit can be used to divide the labeled image according to a preset division rule to obtain a sample set.

[0107] In some implementations, the object detection apparatus 300 may further include a generation module.

[0108] The generation module can be used to generate and store detection records including the current environment image, foreground object category and foreground object position.

[0109] In some implementations, the object detection device 300 may further include a determination module and a control module.

[0110] The determination module can be used to determine the target driving route of the robot according to the foreground object information; the control module can be used to control the robot to drive according to the target driving route.

[0111] The solution provided in this embodiment obtains the current environment image of the robot during its current driving process, and inputs the current environment image into the target object detection model, so that the target object detection model outputs foreground object information according to the current environment image. The target object detection model is obtained based on a preset encoding and decoding model and a foreground prediction module. The foreground prediction module is used to predict whether an object in the current environment image is a foreground object. The foreground object information includes a foreground object category and a foreground object position. The foreground object category includes a known foreground object category that has been pre-labeled and an unknown foreground object category that has not been pre-labeled. The target object detection model constructed based on the preset encoding and decoding model and the foreground prediction module is implemented to detect the current environment image, and foreground objects of the known foreground object category and foreground objects of the unknown foreground object category in the current environment image can be detected, which is beneficial for the robot to avoid obstacles according to the detected foreground objects of the known foreground object category and the foreground objects of the unknown foreground object category, thereby helping to reduce safety risks during the robot's driving process.

[0112] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. Any processing method described in the method embodiment can be implemented by the corresponding processing module in the device embodiment, and will not be repeated one by one in the device embodiment.

[0113] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0114] See also Figure 6, which shows a functional block diagram of a robot 500 provided by an embodiment of the present application, the robot 500 may include one or more of the following components: a memory 510, a processor 520, and one or more applications, wherein the one or more applications may be stored in the memory 510 and configured to be executed by the one or more processors 520, and the one or more applications are configured to execute the method described in the aforementioned method embodiment.

[0115] The memory 510 may include a random access memory (RAM) or a read-only memory (ROM). The memory 510 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 510 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as obtaining a current environment image, inputting a current environment image, outputting foreground object information, obtaining a target object detection model, predicting whether an object is a foreground object, obtaining a historical environment image, obtaining a sample set, building an initial object detection model, inputting a training set, training an initial object detection model, fusing positive and negative sample modules and a foreground prediction module, obtaining an initial object detection model, obtaining a historical environment video, performing frame extraction, obtaining a historical environment image, marking a historical environment image, obtaining a marked image, dividing a marked image, obtaining a sample set, determining a target driving route, and controlling the robot to drive, etc.), instructions for implementing the following various method embodiments, etc. The storage data area can also store data created by the robot 500 during use (such as the robot, current environment image, target object detection model, foreground object information, preset encoding and decoding model, foreground prediction module, object, foreground object, foreground object category, foreground object position, known foreground object category, unknown foreground object category, historical environment image, sample set, training set, test set, initial object detection model, positive and negative sample matching module, historical environment video, annotated image, preset division rules and target driving route), etc.

[0116] The processor 520 may include one or more processing cores. The processor 520 uses various interfaces and lines to connect various parts of the entire robot 500, and executes various functions and processes data of the robot 500 by running or executing instructions, programs, code sets or instruction sets stored in the memory 510, and calling data stored in the memory 510. Optionally, the processor 520 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), programmable logic array (PLA), etc. The processor 520 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 520, but may be implemented separately through a communication chip.

[0117] Please refer to Figure 7 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable storage medium 600 stores a program code 610, which can be called by a processor to execute the method described in the above method embodiment.

[0118] The computer readable storage medium 600 can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 600 includes a non-transitory computer-readable storage medium. The computer readable storage medium 600 has storage space for program code 610 that performs any method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code 610 can be compressed, for example, in an appropriate form.

[0119] Please refer to Figure 8, which shows a structural block diagram of a computer program product 700 provided in an embodiment of the present application. The computer program product 700 includes a computer program / instruction 710, and the computer program / instruction 710 is stored in a computer-readable storage medium of a computer device. When the computer program product 700 is run on a computer device, a processor of the computer device reads the computer program / instruction 710 from the computer-readable storage medium, and the processor executes the computer program / instruction 710, so that the computer device performs the method described in the above method embodiment.

[0120] The solution provided in this embodiment obtains the current environment image of the robot during its current driving process, and inputs the current environment image into the target object detection model, so that the target object detection model outputs foreground object information according to the current environment image. The target object detection model is obtained based on a preset encoding and decoding model and a foreground prediction module. The foreground prediction module is used to predict whether an object in the current environment image is a foreground object. The foreground object information includes a foreground object category and a foreground object position. The foreground object category includes a known foreground object category that has been pre-labeled and an unknown foreground object category that has not been pre-labeled. The target object detection model constructed based on the preset encoding and decoding model and the foreground prediction module is implemented to detect the current environment image, and foreground objects of the known foreground object category and foreground objects of the unknown foreground object category in the current environment image can be detected, which is beneficial for the robot to avoid obstacles according to the detected foreground objects of the known foreground object category and the foreground objects of the unknown foreground object category, thereby helping to reduce safety risks during the robot's driving process.

[0121] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A target detection method, characterized in that: include: Get the current environment image of the robot during its current driving process; The current environment image is input into a target object detection model so that the target object detection model outputs foreground object information according to the current environment image. The target object detection model is obtained based on a preset encoding and decoding model and a foreground prediction module. The foreground prediction module is used to predict whether an object in the current environment image is a foreground object. The foreground object information includes a foreground object category and a foreground object position. The foreground object category includes a known foreground object category that has been pre-labeled and an unknown foreground object category that has not been pre-labeled.

2. The target detection method according to claim 1, characterized in that: Before acquiring the current environment image during the current driving process of the robot, the target detection method further includes: Obtain historical environment images during the robot's historical driving process; According to the historical environment image, a corresponding sample set is obtained, wherein the sample set includes a training set and a test set; Based on the preset encoding and decoding model and the foreground prediction module, construct an initial object detection model; The training set is input into the initial object detection model for training to obtain a target object detection model.

3. The target detection method according to claim 2, characterized in that: The initial object detection model is constructed based on the preset encoding and decoding model and the foreground prediction module, including: The positive and negative sample matching module of the preset encoding and decoding model and the foreground prediction module are integrated to obtain an initial object detection model.

4. The target detection method according to claim 2, characterized in that: The obtaining of historical environment images during the historical driving process of the robot includes: Obtain historical environment videos during the robot's historical driving process; The historical environment video is subjected to frame extraction processing to obtain a historical environment image.

5. The target detection method according to claim 2, characterized in that: The step of obtaining a corresponding sample set according to the historical environment image includes: Annotating the historical environment image to obtain an annotated image; The labeled image is divided according to a preset division rule to obtain a sample set.

6. The target detection method according to claim 1, characterized in that: Also includes: Generate and store a detection record including the current environment image, the foreground object category and the foreground object position.

7. The target detection method according to any one of claims 1 to 6, characterized in that: Also includes: Determining a target driving route of the robot according to the foreground object information; The robot is controlled to travel according to the target travel route.

8. A target detection device, characterized in that: include: The current image acquisition module is used to acquire the current environment image of the robot during its current driving process; An image input module is used to input the current environment image into a target object detection model so that the target object detection model outputs foreground object information according to the current environment image. The target object detection model is obtained based on a preset encoding and decoding model and a foreground prediction module. The foreground prediction module is used to predict whether an object in the current environment image is a foreground object. The foreground object information includes a foreground object category and a foreground object position. The foreground object category includes a known foreground object category that has been pre-labeled and an unknown foreground object category that has not been pre-labeled.

9. A robot, characterized in that: include: Memory; One or more processors coupled to the memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by one or more processors, and the one or more applications are configured to execute the target detection method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, and the program codes can be called by a processor to execute the target detection method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Open set target detection method and device based on foreground subspace

    CN116229159A

  • Robot navigation method, robot navigation device, robot and storage medium

    CN117889857A

  • Automatic obstacle avoidance method and device for inspection robot, terminal and storage medium

    CN118034325A