Target following method and device
By using the historical trajectory and topological map of movable service equipment to predict the current trajectory of the target, and combining visual and millimeter wave information to perform depth-first traversal search, the problem of the device losing track of the target under light changes and occlusions is solved, and fast and accurate tracking is achieved. Target retrieved.
Patent Information
- Application Number
- CN202310172141.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-17
- Publication Date
- 2024-08-30
AI Technical Summary
Existing movable service equipment has difficulty detecting the following target when light changes, movement angle changes, multiple interfering targets, and occlusions occur, resulting in the equipment losing track of the target and being unable to retrieve it in time.
By using the target's historical trajectory and topological map to predict the target's current trajectory, combined with visual and millimeter wave sensor information, a depth-first traversal search is performed to quickly retrieve the target.
When the target is not detected within the preset time, the target position is predicted based on historical and current sensor information, which improves the accuracy and efficiency of target following and reduces the occurrence of lost tracking.
Smart Images

Figure CN118567339A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a target tracking method and device. Background Art
[0002] With the rapid development of mobile service equipment (such as robots), users have more and more demands for mobile service equipment. Most of the existing mobile service equipment has the function of target following (for example, robots follow target people). However, in the case of light changes, motion angle changes, multiple interference targets, and occlusion, the mobile service equipment is easy to fail to detect the target to be followed, resulting in the mobile service equipment losing the target and being unable to find the target in time. Summary of the invention
[0003] In view of the above, it is necessary to provide a target following method and device. When the target is not detected within a preset time, the current trajectory of the target is predicted based on the historical trajectory of the target and the topological map, and the target is searched based on the current trajectory and retrieved in time.
[0004] In the first aspect, an embodiment of the present application provides a target following method, which is applied to a mobile service device. The target following method includes: if the target is not detected within a preset time, determining the historical trajectory of the target based on historical sensor information, and the historical sensor information includes visual information and millimeter wave information acquired by the mobile service device; determining a topological map of the environment where the target is located based on current sensor information; predicting the current trajectory of the target based on the historical trajectory and the topological map; and searching for the target based on the current trajectory.
[0005] By adopting the above technical solution, in the case of losing the target, the current trajectory of the target is predicted based on the historical trajectory of the target and the topological map, and the target is searched based on the current trajectory to quickly find the target.
[0006] In a possible implementation of the first aspect above, the target following method also includes: determining target features based on the historical sensor information, the target features including appearance features of the follow target; determining the current potential position of the target based on the historical trajectory; obtaining candidate target features within the current potential position, the candidate target features including appearance features of the candidate target; if the target features match the candidate target features, determining that the candidate target at the current potential position is the target to be followed.
[0007] By adopting the above technical solution, when searching for candidate targets based on the predicted position or trajectory, the candidate targets that match the target are found by matching the features of the follow target and the candidate targets, so as to facilitate finding the follow target from the candidate targets.
[0008] In a possible implementation of the first aspect above, the target feature further includes motion information of a follow-up target, and the candidate target feature further includes motion information of the candidate target.
[0009] By adopting the above technical solution, the target's appearance features and motion information are combined to match the candidate targets. By combining the target's appearance features and motion information, the follow-up target can be accurately determined from multiple candidate targets, and the accuracy of determining the follow-up target can also be improved.
[0010] In a possible implementation of the first aspect above, searching for the target based on the current trajectory includes: acquiring the current position of the mobile service device; planning the movement trajectory of the mobile service device based on the current position and the current trajectory; and searching for the target based on the movement trajectory.
[0011] By adopting the above technical solution, the movement home of the mobile service device is planned according to the current position of the mobile service device and the predicted current trajectory of the target, so as to quickly find the target.
[0012] In a possible implementation of the first aspect above, the historical trajectory includes an area that the target has reached and a movement pattern of the target in the area.
[0013] By adopting the above technical solution and combining the area reached by the target and the movement pattern of the target in the previous area, the current trajectory of the target can be predicted more accurately.
[0014] In a possible implementation of the first aspect above, the target following method further includes: determining a motion mode of the target based on the historical sensor information and a preset interactive multi-model.
[0015] By adopting the above technical solution, the target's motion pattern can be accurately determined through interactive multi-models, so that the target's current trajectory can be predicted more accurately.
[0016] In a possible implementation of the first aspect, determining the historical trajectory of the target based on historical sensor information includes: determining the spatial characteristics and time series characteristics of the target based on the visual information; determining the motion information of the target based on the millimeter wave information; and determining the historical trajectory of the target based on the spatial characteristics, time series characteristics, and motion information. In this way, the time and space characteristic information of the target is obtained by preprocessing the data information, and the historical trajectory of the target can be determined more accurately in combination with the millimeter wave information.
[0017] In a possible implementation of the first aspect, determining the topological map of the target environment based on the current sensor information includes: determining a traversable space based on the current sensor information; performing convex hull decomposition on the traversable space to obtain a plurality of convex hull spaces; and determining a topological map based on the plurality of convex hull spaces. In this way, the topological map is determined by the convex hull method.
[0018] In a possible implementation of the first aspect, the current trajectory includes a plurality of nodes, each of which is located at the center of the convex hull space; searching for the target based on the current trajectory includes: determining the state information of the node based on the convex hull space, the state information including the probability that the target is located at the node, the position of the node, and the relative direction between the target and the node; searching for the target based on the state information. In this way, the target is searched by traversing the topological nodes in depth first, so that the target can be quickly retrieved, thereby improving the efficiency of retrieval.
[0019] In a possible implementation of the first aspect above, before predicting the current trajectory of the target based on the target historical trajectory and the topological map, the target following method also includes: obtaining the end point of the target and the current position of the movable service device; planning the movement trajectory of the movable service device based on the end point and the current position; and searching for the target based on the movement trajectory.
[0020] In a second aspect, an embodiment of the present application provides a mobile service device, comprising: one or more processors; a storage device for storing one or more programs; when the one or at least one program is executed by the one or more processors, the one or more processors implement the target tracking method as described in any one of the first aspects.
[0021] In a third aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the target following method as described in any one of the first aspects is implemented.
[0022] It should be understood that the technical effects brought about by any design in the second to third aspects can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A schematic diagram of an application scenario of a target following method.
[0024] Figure 2 A flowchart of a target following method provided in an embodiment of the present application.
[0025] Figure 3A schematic diagram of convex hull decomposition of space provided in an embodiment of the present application.
[0026] Figure 4 A schematic diagram of a navigable channel in a convex hull decomposition provided in an embodiment of the present application.
[0027] Figure 5 A schematic diagram of a topology tree provided in an embodiment of the present application.
[0028] Figure 6 A flowchart of a target following method provided in an embodiment of the present application.
[0029] Figure 7 A schematic diagram of the use process of a mobile service device for target following provided in an embodiment of the present application.
[0030] Figure 8 A schematic diagram of a target retrieval process provided in an embodiment of the present application.
[0031] Fig. 9 A module diagram of a mobile service device provided in an embodiment of the present application.
[0032] Fig.10 A hardware schematic diagram of a mobile service device according to an embodiment of the present application. DETAILED DESCRIPTION
[0033] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, words such as "exemplary" or "for example" are used to identify examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way.
[0034] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art in the present application. The terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. It should be understood that in the present application, unless otherwise specified, "a plurality of" refers to two or more than two, and "and / or" includes any and all combinations of one or more of the associated listed items.
[0035] The following first introduces relevant terms and concepts that may be involved in the embodiments of the present application.
[0036] 1. Topological Map
[0037] Refers to a statistical map in cartography, an abstract map that keeps the relative position relationship between points and lines correct but not necessarily the shape, area, distance, and direction of the figure. It is an abstract structure that reflects some properties of geometric figures or space that remain unchanged after continuous changes in shape. In this article, it specifically refers to the connectivity relationship of the traversable area of space.
[0038] 2. Kinematics
[0039] The movement of the robot is in accordance with the basic kinematic principles of the robot body. The robot following process in this article will produce movements that are in accordance with the robot kinematics, which requires the motion compensation sensor generated by the robot body.
[0040] 3. Spatial association
[0041] When a robot follows multiple targets, it needs to maintain a separate ID for each target to distinguish objects in space, so it is necessary to associate each object.
[0042] 4. Convex Hull
[0043] Decompose the space into multiple convex polygon representations, each convex polygon is the convex hull.
[0044] In order to better understand the target following method and device disclosed in the embodiments of the present application, the application scenario of the target following method of the present application is first described below.
[0045] Figure 1 It is a schematic diagram of an application scenario of the target following method provided in an embodiment of the present application.
[0046] like Figure 1 As shown, the target following method provided in the embodiment of the present application can be applied to a mobile service device. Figure 1 The movable service device is a robot. It can be understood that in other embodiments, the movable service device may also be other devices with target following function, such as unmanned aircraft.
[0047] Figure 1 The robot in the figure is located in an office area, which includes multiple rooms. The robot is equipped with a camera and a radar. The robot obtains visual information of the surrounding environment through the camera and obtains millimeter wave information of the surrounding environment through the radar. The robot locks one or more targets (such as user A in the figure) through visual information and millimeter wave information and follows the target.
[0048] Figure 1In a T-shaped corridor in the room of user A, when user A moves from the current position to Figure 1 When the robot is in the three optional positions 1, 2, and 3, the camera and radar of the robot R are blocked by the wall and cannot sense the user A, resulting in the loss of the target user A. How the robot R can quickly find the target user A and follow the user again is an urgent problem to be solved by the existing mobile service equipment.
[0049] Figure 2 is a flow chart of a target following method provided in an embodiment of the present application. The target following method provided in an embodiment of the present application is applied to a mobile service device, such as Figure 1 For ease of understanding, the following embodiments are described by taking the mobile service device as a robot as an example. The target following method provided in the embodiment of the present application includes the following steps:
[0050] S201, if the target is not detected within a preset time, the target historical trajectory is determined based on historical sensor information.
[0051] Among them, the historical sensor information includes visual information and millimeter wave information obtained by the robot in the process of following the target. The visual information can be obtained by the visual sensor or camera installed on the robot, and the millimeter wave information can be obtained by the radar installed on the robot.
[0052] Specifically, in the process of following the target, the robot may not be able to detect the target within the preset time due to occlusion, light changes, changes in motion perspective, multiple interfering targets, etc. The robot determines the historical trajectory of the target based on the sensor information obtained in the process of following the target.
[0053] Among them, the preset time can be greater than 5 seconds. Of course, the preset time can be set according to the actual application scenario, and can also be fixed by the user.
[0054] In some embodiments, the historical trajectory includes the area that the target has passed through, for example, Figure 1 User A arrives at optional location 1 from the current location.
[0055] Furthermore, the historical trajectory also includes the movement mode of the target when passing through the above-mentioned area. The movement mode includes uniform motion, uniformly accelerated motion, uniform angular velocity motion, etc. By determining the user's movement mode, it is convenient to predict the area where the target is going or predict the user's current position based on the user's historical position. For example, user A walks through the corridor of the room at a uniform speed, and user B runs to the door in a hurry. At this time, the user's movement mode is uniformly accelerated motion.
[0056] Further, the method of determining the movement mode of the target includes:
[0057] Determine the target's motion pattern based on historical sensor information and interactive multiple models.
[0058] Specifically, the motion patterns of the targets are mostly irregular, and the interactive multi-model method is adopted to mix multiple motion models so that the motion pattern of the target can be determined more accurately.
[0059] The following is an implementation method of using interactive multi-models to determine the target motion mode provided in an embodiment of the present application:
[0060] x=(p x , p y , v x , v y ); x k =F j *x k-1 +B j *u k ;
[0061] z k =H*x k +v k ; z r =(ρ,θ,v r );z cam =(U,V);
[0062] Among them, x is the state quantity, (p x , p y , v x , v y are the position and velocity of the target in the x and y directions respectively; k is the motion equation of the target, which can represent the motion mode of the target as a uniform motion model or a uniform acceleration model. k is the equation corresponding to the current motion mode of the target, z r is the output of the radar, i.e., millimeter wave information; z cam The data output by visual data perception is preprocessed to obtain the data output by the visual sensor (such as a camera) cam In this way, the target's motion pattern can be determined through the above mathematical model.
[0063] It can be understood that in some embodiments, when at least one of the visual sensor and the radar fails to detect the target, the robot can accurately determine the motion pattern of the target based on the acquired sensor information and the above-mentioned interactive multi-model model.
[0064] For example, if the visual sensor does not detect the target, z cam It is set to 0, and the millimeter wave information sensed by the radar is used as input, and combined with the above interactive multi-model to determine the movement mode of the target.
[0065] S202: Determine a topological map of the target environment based on current sensor information.
[0066] Specifically, when the robot does not detect the target, a topological map is constructed at the robot's current position (i.e., the position where the robot last detected the target) based on the millimeter wave information sensed by the robot's radar and the visual information sensed by the visual sensor, so as to predict the potential trajectory of the target based on the topological map.
[0067] In some embodiments, the robot determines the traversable space based on the current sensor information, such as the ranging information Depth output by the radar and the color plus depth information RGBD output by the visual sensor, where the traversable space can be an area without obstacles or an area where the robot or target can traverse. Then, the convex hull decomposition of the traversable space is performed based on the ranging information in the millimeter wave information output by the radar, such as Figure 3 As shown, the space is decomposed into convex hulls to obtain multiple polygons, which are the convex hulls. Figure 3 The boxes are obstacles and the lines are passable passages. Figure 4 As shown, the traversable space is decomposed into multiple convex hulls. Then each convex hull space is connected, the center of each convex hull is a node, and multiple nodes form a trajectory. Then, Figure 5 The connections between nodes are established in the form of a topological tree as shown, generating a spatial connectivity map, namely a topological map.
[0068] Figure 5 The target can start from node 1 and can choose to move to node 21 or node 22. If the target moves from node 1 to node 21, then after passing node 21, it can move to node 31 or node 32; if the target moves from node 1 to node 22, then after passing node 22, it can move to node 33.
[0069] The topological map can be constructed by using the convex hull method and based on the existing sensor information.
[0070] Among them, the topological map includes the passage information of the environment, such as the area in the room that is free of obstacles and can be passed by the target or robot.
[0071] In some embodiments, the environment where the target is located includes multiple spaces, and the topological map also includes connectivity information between the multiple spaces, such as door C between room A and room B for achieving connectivity.
[0072] In some embodiments, during the process of the robot following the target, both the target and the robot have reached the current area before, and step S202 includes:
[0073] Build a topology map based on historical sensor information and current sensor information.
[0074] That is, by combining historical sensor information and current sensor information, a more complete and accurate topological map corresponding to the current location can be constructed.
[0075] It can be understood that in the process of the robot searching for the lost target, the robot will update the constructed topological map based on the retrieved sensor information to ensure the accuracy and timeliness of the topological map.
[0076] S203: predicting the current trajectory of the target based on the historical trajectory of the target and the topological map.
[0077] Specifically, the traversable area in the current environment is determined based on the topological map. The historical trajectory includes the area passed by the target when the robot follows the target. The target's current possible location or possible area is predicted based on the area passed by the target and the traversable area in the current environment.
[0078] For example, based on the user's historical trajectory, it is determined that user A passes by the door, and based on the passable area in the topological map and the user's historical trajectory, it is determined that the user passes through the door and enters the room, resulting in the robot not detecting user A. It can be predicted that user A's current location is inside the room.
[0079] In some embodiments, before step S203, the robot has acquired the destination area of the target through voice or other instructions. Then, when the robot fails to detect the target, the robot's motion trajectory can be planned according to the destination area, and the target can be searched according to the motion trajectory.
[0080] Specifically, when the robot fails to detect the target within a preset time, but has obtained the target's destination area (e.g., the kitchen), the robot plans a motion trajectory (or motion route) from the current position to the kitchen, and the robot moves to the destination area according to the motion trajectory. During the movement, the robot's radar and visual sensors continuously obtain sensor information around the motion trajectory, and detect whether there are targets around based on the sensor information, so as to realize the search for the target during the movement.
[0081] Before step S203, the target following method further includes:
[0082] Obtaining the target end point and the current position of the robot;
[0083] Plan the robot's motion trajectory based on the end point and current position;
[0084] Search for targets based on motion trajectories.
[0085] S204, searching for a target based on the current trajectory.
[0086] Specifically, after the target is not detected within a preset time, the current trajectory of the target is predicted based on the topological map and the historical trajectory of the target, and then the robot searches for the target based on the current trajectory of the target until the target is found and followed.
[0087] In this way, after the target is not detected within a preset time, the historical trajectory of the target is determined based on the historical sensor information, and a topological map is constructed based on the current sensor information. Then, the current trajectory of the target is predicted based on the topological map and sensor information, and then the target is searched based on the current trajectory of the target to quickly retrieve the lost target.
[0088] In some embodiments, after determining the current trajectory of the target, the robot's motion trajectory is planned according to the robot's current position and current trajectory, the robot moves according to the motion trajectory, and acquires sensor information in real time during the movement, and searches for the target according to the sensor information. Step S204 includes:
[0089] Get the current location of the mobile service device;
[0090] Plan the movement trajectory of the mobile service device based on the current position and current trajectory;
[0091] Search for targets based on motion trajectories.
[0092] It is understandable that, in the process of the robot following a target, if there are multiple interference targets with similar appearance to the target at the same time, the robot is likely to confuse the following target with the interference target, causing the robot to follow the wrong target or lose the target. Based on the above problem, in the process of following a target, the robot of the embodiment of the present application obtains the target characteristics and the historical trajectory of the target, predicts the current potential position of the target based on the historical trajectory of the target, and then matches the target characteristics in the current potential position with the characteristics of the following target to determine a candidate target that matches the following target, thereby avoiding confusion between the following target and the interference target.
[0093] See also Figure 6 , then the target following method further includes:
[0094] S601. Determine target features based on historical sensor information.
[0095] Specifically, the target features are determined based on the sensor information obtained by the robot when following the target, wherein the target features may be information such as the color, skeleton, face, etc. of the target, that is, the appearance features of the target.
[0096] In some embodiments, the received visual data information is processed by a deep neural network (DNN) to obtain initial target features; the initial target features are then processed in time series by a recurrent neural network (RNN) to obtain sequence features of the target with time and space, that is, target features.
[0097] That is, the robot can fuse the various features in the image information based on the image information within a certain time or space related to the target obtained during the process of following the target, and process it through a deep neural network to obtain the characteristics of the target in time and space.
[0098] Furthermore, in the process of following the target, the robot also uses the sensor information acquired in real time to update the target features so that the target features stored by the robot are consistent with the actual features of the target. Then after step S601, it also includes:
[0099] Update target features based on sensor information acquired in real time.
[0100] For example, the robot follows target A. After A enters indoors from outdoors, he takes off his red coat and only wears a white shirt and black pants. In the process of following target A from outdoors to indoors, the robot updates the locally stored target features according to the feature changes of target A to ensure that the target features stored by the robot are consistent with the actual features of the target.
[0101] S602: Determine the current potential location of the target based on the historical trajectory.
[0102] Among them, the target's current potential position is the position where the target may be at the current moment. The target's current potential position may be multiple, such as position A, position B and position C. The target's current potential position may also be an area, such as the area in front of the refrigerator in the living room.
[0103] See also Figure 1 , the target's current location is Figure 1 In a T-shaped corridor as shown, the target's current potential position can be Figure 1 One of the three positions: position 1, position 2 and position 3.
[0104] Among them, the historical trajectory includes the area where the target passes and the movement pattern in the passed area. The movement pattern may include movement speed and movement direction. In this way, the robot can predict the target's position at the next moment based on the target's current position, or predict the target's position at the next moment based on the most recently detected position of the target.
[0105] In some embodiments, the potential location of the target is also related to the structure of the space where the target is located, and S602 includes:
[0106] Determine the target's current potential location based on historical trajectories and topological maps.
[0107] S603: Obtain candidate target features of the current potential position.
[0108] Specifically, the robot obtains sensor information within the current potential position based on its radar and visual sensors, and then detects whether there is a candidate target within the current potential position. If no candidate target exists, the robot continues to detect the next current potential position. If a candidate target is detected within the current potential position, the target features of the candidate target at the current potential position are determined based on the sensor information obtained in real time, wherein the candidate target at the current potential position may be one or more.
[0109] For example, the current potential location is area A, which includes three targets, all of which are candidate targets. Then, the target features of the three targets are acquired through sensor information.
[0110] S604: If the target feature matches the candidate target feature, determine the candidate target at the current potential position as the target to be followed.
[0111] Specifically, by matching the candidate target feature and the target feature in the current potential position, if the candidate target feature and the target feature match, the candidate target is determined to be the target to be followed.
[0112] In this way, in the process of following the target, by predicting the position of the target and matching the target within the predicted position with the characteristics of the followed target, the target to be followed can be determined from multiple targets, the confusion of multiple similar targets can be reduced, and the accuracy of target following can be improved.
[0113] In some embodiments, the target features include appearance features of the target, and the candidate target features include appearance features of the candidate targets, such as the color of the user's clothes, the user's height, and the user's face shape.
[0114] It is understandable that during the process of the robot following the target, due to the influence of factors such as the shooting angle of the robot's camera and the location of the target, the sensor information obtained by the robot cannot display all the features of the target. For example, since the robot is close to the user it is following, the robot's camera can only capture the pants of the target user, and cannot capture the user's entire body and the user's facial features. If matching is performed based only on the captured appearance features, it is easy to cause confusion among multiple targets. For example, if multiple users wear the same type of pants, the robot cannot distinguish which pants owner is the target to be followed. In the process of following the target, the embodiment of the present application is also used to obtain the target's motion information based on historical sensor information, where the motion information may include motion speed and motion direction.
[0115] Furthermore, the target feature also includes motion information of the target, and the candidate target feature also includes motion information of the candidate target.
[0116] In this way, when matching the target features with the candidate target features in the current potential position, if the appearance features of the candidate target are similar to those of the current target, or the complete appearance features of the candidate target cannot be accurately obtained through the visual sensor or radar, the motion information of the candidate target can be matched with the motion information of the target, and the two can be combined to determine the candidate target corresponding to the candidate target features that match the target features. By combining the two features, the matching accuracy can be improved, and when there are multiple candidate targets in the current potential position or when the robot cannot fully obtain the appearance features of multiple candidate targets, the accurate candidate target can be selected through the matching method.
[0117] In some embodiments, in order to improve the accuracy of matching the target feature with the candidate target in the current potential position, a combined optimization method may be used to match the features of multiple targets, that is, by combining and optimizing the matching of the features of multiple targets to confirm the candidate target that matches the target feature.
[0118] The following is a mathematical model for matching using a combination optimization method provided in an embodiment of the present application:
[0119] (w t , z t , z′ t ), matching decision-related variables;
[0120] Cost function;
[0121] Constraint 1:
[0122] Constraint 2:
[0123] Constraint 3;
[0124] In the above mathematical model, z t is the candidate target feature of the current potential position, z′ t is the target feature determined based on historical sensor information, z t and z′ t As the input of the above model, w t is the associated combination of features of multiple targets, T is the time window for matching, t is the time for matching, n is the number of targets to be followed, and m is the number of candidate targets. The followed target and candidate targets are matched through the above constraints and cost function to determine the candidate targets that match the followed target.
[0125] See also Figure 7 , is a schematic diagram of the use process of a mobile service device for target following provided in an embodiment of the present application.
[0126] Figure 7 In the example of a mobile service device being a robot, the robot usage process includes the following steps:
[0127] Step 1: The robot waits for voice commands;
[0128] Specifically, the robot is in a standby waiting state in the initial state, then the robot receives a voice command from the target, the robot responds to the target, and then the robot interacts with the target (for example, obtains the visual features of the target person), obtains the appearance features of the target through interaction and follows it.
[0129] Among them, the appearance feature template can be the target's clothing features (clothing color, structure), the target person's skeleton, facial features, etc., that is, the target's external features.
[0130] Step 2: Fusion tracking;
[0131] Specifically, visual information is obtained through the robot's visual sensor, millimeter wave information is obtained through radar, and then the visual information and millimeter wave information are fused, and then the target is followed based on the fused information.
[0132] When the robot is following a target, if the robot detects the target and determines the target motion information based on visual information and millimeter wave information, and then plans the robot's motion information based on the target motion information, the robot follows the target based on its corresponding motion information.
[0133] Furthermore, when the robot is following a target, the robot is also used to control the direction of its pan / tilt platform so as to detect the target through visual sensors and radars and obtain sensor information corresponding to the target.
[0134] During the process of following the target, if the robot fails to detect the target within the preset time, Figure 2 The target is retrieved using the target following method described in , and then the retrieved target is followed.
[0135] Furthermore, the robot successfully searches for the target to follow and tracks the target again;
[0136] Step 3: Online topology construction and update;
[0137] When following the target, the robot obtains visual information and millimeter wave information in real time, builds a topological map based on the visual information and millimeter wave information, and periodically updates the constructed topological map based on the latest visual information and millimeter wave information.
[0138] Step 4: End the following;
[0139] If the robot receives an end instruction for voice following, or the robot fails to detect the target and cannot successfully retrieve the target, the robot ends following.
[0140] See also Figure 8 , Figure 8 A schematic diagram of a target retrieval process provided in an embodiment of the present application. Target retrieval includes the following steps:
[0141] 1. Whether the target is detected.
[0142] Specifically, if the robot detects a target, it builds a topological map based on the sensor information, predicts the target's trajectory based on the topological map and the target's historical trajectory, and obtains sensor information in the corresponding area based on the predicted trajectory to achieve tracking of the target.
[0143] If the robot does not detect the target to follow, it will perform target retrieval.
[0144] 2. Retrieve the target.
[0145] First, determine whether the robot has reached the destination of the target: the destination is the location where the target is about to go;
[0146] If the robot reaches the destination, it plans the motion trajectory based on the destination, the current position of the robot and the constructed topological map. The robot then moves to the destination based on the motion trajectory, and obtains sensor information in real time while moving toward the destination. It searches for the target based on the sensor information until the target is detected, and then follows the target. The sensor information includes millimeter wave information and visual information.
[0147] If the robot does not reach the destination of the target, it predicts the current trajectory of the target based on the topological map and historical trajectory, and plans the robot's motion trajectory based on the current trajectory of the target. The robot then moves along the motion trajectory, obtains sensor information in real time during the movement, and searches for the target based on the sensor information until the target is detected, and then follows the target.
[0148] In the above scenarios, if the robot finds the target, it will follow the target again; if the robot fails to find the target, it will send a voice request for help. If the voice request for help fails, the task will be terminated.
[0149] See also Fig. 9 , is a schematic diagram of a module of a mobile service device provided in an embodiment of the present application, the mobile service device can execute Figure 2 The goal shown follows the steps associated with the method.
[0150] Fig. 9 The mobile service equipment in the system senses the environment and target information based on visual sensors and millimeter radars to obtain sensor information, which includes millimeter wave information and visual information. The sensor information is then fused and the target is tracked based on the fused information. At the same time, a topological map of the environment is established and updated in real time based on the acquired sensor information.
[0151] Fig. 9 The mobile service equipment includes a sensor module, a spatiotemporal correlation module, a tracking and solving module, a topological map module and a target prediction and retrieval module.
[0152] The sensor module includes a visual sensor and a radar, wherein the visual sensor may be a camera corresponding to the mobile service device, and is used to obtain target information and environment information where the target is located;
[0153] Radar is used to obtain millimeter wave information of the target.
[0154] The spatial association module is used to obtain the sensing information input by the sensor module in real time to determine the current target tracking information, and is also used to associate the historical sensor information and current sensor information corresponding to the target.
[0155] like Fig. 9As shown, first, the spatial association module receives the visual data information input by the visual sensor, and processes the received visual data information through the deep neural network (DNN) to obtain the target features; then the target features are processed in time series through the recurrent neural network (RNN) to obtain the target's sequence features with time and space, and the sequence features are a kind of implicit features (Hidden feature) represented by the network.
[0156] The spatiotemporal correlation module is also used to receive motion information of targets in the environment sent by the radar, and detect targets in the image based on the motion information combined with the visual data information sent by the image sensor. By combining the visual sensor and radar, the visual computing power and power consumption can be reduced.
[0157] Specifically, the millimeter wave information provided by the radar determines the target's spatial motion information. Combining the target's spatial motion information with the visual target information determined by the image information provided by the visual sensor, the target can be distinguished and the target in the current tracking information and the historical tracking information can be associated:
[0158] First, the target motion information x=(p x , p y , v x , v y ); predict the next moment's position of the target based on the target's motion information;
[0159] Then, the sequence features within a preset time are obtained, and the target features are updated in real time according to the sequence features, wherein the target features include the appearance features of the target, such as color, skeleton, and face.
[0160] The principle of combinatorial optimization is used to match the features of the candidate target at the next moment with the target features, so as to achieve continuous recognition of the target.
[0161] The Tracking Solver module is used to fuse visual information and millimeter wave information to determine the historical trajectory of the target.
[0162] Specifically, an interactive multi-model method can be used to solve target tracking. The target's motion pattern can be determined by mixing multiple motion models. Compared with a single uniform motion / uniform acceleration / uniform angular velocity model, it is more advantageous in dealing with irregular target motion.
[0163] The topological mapping module is used to build a topological map online and update the built topological map in real time to predict the target trajectory, thereby assisting in quickly finding the target after it is lost.
[0164] The topological map module includes free space extraction and convex hull extraction.
[0165] The traversable space extraction is used to determine the traversable space according to the input sensor information (the sensor information may be the distance measurement information Depth or the color plus depth information RGBD).
[0166] Convex hull extraction is used to obtain the robot's navigable channel based on the input sensor information (ranging information) through the convex hull decomposition method of the space.
[0167] Target prediction and retrieval module: used to retrieve lost targets.
[0168] Specifically, when the robot fails to detect the target within the preset time, it determines that the target has been lost, and searches based on the robot's current location information, topological map, and historical trajectory of the target, that is, searching the nodes on the topological map in a depth-first traversal manner, and moving to each node position in turn according to the probability value in the node. At the same time, according to the direction information in the node, the robot's pan-tilt steering is adjusted on the route, and the robot searches and retrieves the target while moving. During the search process, the candidate target is matched in real time based on the fusion of millimeter-wave radar and visual information until the candidate target is determined to be the target to be followed.
[0169] In some embodiments, if the robot can follow multiple targets, the sensor information corresponding to the multiple targets assigns corresponding identifiers to the multiple targets, and the appearance features and motion information of the multiple targets are associated with the identifiers. In the process of following the multiple targets, the targets sensed by the robot can be matched with the appearance features and motion information of the targets associated with the identifiers to determine the targets that match the appearance features and motion information of the targets associated with the identifiers, thereby finding the targets associated with the corresponding identifiers from the multiple targets in a timely manner.
[0170] Furthermore, when at least one of the sensors or radars fails, sensor information, such as visual image information, millimeter wave information, or partial image information of the target, can be obtained. Combined with the target's historical trajectory, appearance characteristics, and motion information, the target can still be followed, and multiple followed targets can be distinguished.
[0171] In some embodiments, when the robot is following a target, it can determine the target's behavior habits based on the areas the target has visited or the routes it has taken, and then predict the user's current trajectory based on the user's behavior habits, which can improve the accuracy of the prediction of the current trajectory. Fig.10 , Fig.10 This is a structural diagram of the mobile service device 100 provided in the embodiment of the present application. Fig.10 As shown, the mobile service device 110 includes: a processor 10, a radar 20, a visual sensor 30 and a memory 40. The memory 40 and the processor 10 can be connected via a bus. Of course, in actual use, the memory 40 and the processor 10 may not be a bus structure, but may be other structures, such as a star structure, which is not specifically limited in this application.
[0172] Optionally, the processor 10 may specifically be a central processing unit, an application specific integrated circuit (ASIC), one or more integrated circuits for controlling program execution, a hardware circuit developed using a field programmable gate array (FPGA), a baseband processor, etc.
[0173] Optionally, the processor 10 may include at least one processing core.
[0174] Optionally, the memory 40 may include a read-only memory (ROM), a random access memory (RAM) and a disk memory. The memory 40 is used to store data required by the processor 10 when it is running. The number of the memory 40 is one or more.
[0175] In this embodiment, the radar 20 is disposed on the body of the mobile service device 100 and is connected to the processor 10. The radar 20 is used to collect millimeter wave data within the radar sensing range in real time.
[0176] The visual sensor 30 is disposed on the body of the mobile service device 100 and is connected to the processor 10. The visual sensor 30 is used to collect visual images within a sensing range in real time, and the sensing range can be a radar sensing range or a visual sensor sensing range. Of course, the visual sensor 20 and the radar 20 are independent of each other and can work independently when one of them fails.
[0177] Optionally, the visual sensor 30 is a camera.
[0178] Optionally, the radar 20 and the visual sensor 30 may be arranged on the same axis or the same horizontal line of the body, so that the radar 20 and the visual sensor 30 can collect data in the same area.
[0179] Optionally, the processor 10 is used to execute the aforementioned Figure 2 and Figure 6 The processor 10 is also used to execute the steps in the above-mentioned embodiments.
[0180] The mobile service device is used as a tracking device for tracking a target object. The mobile service device 100 may be, but is not limited to, an automatic guided vehicle or an intelligent robot.
[0181] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program codes. These computer program codes may be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a particular manner.
[0182] An embodiment of the present application also provides a mobile service device, comprising: one or more processors; a storage device for storing one or more programs; when the one or at least one program is executed by the one or more processors, the one or more processors implement the target tracking method as described in the above embodiment.
[0183] This embodiment further provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on a mobile service device, the mobile service device executes the above-mentioned related method steps to implement the target following method in the above-mentioned embodiment.
[0184] This embodiment further provides a computer program product. When the computer program product is run on a mobile service device, the mobile service device is enabled to execute the above-mentioned related steps to implement the target following method in the above-mentioned embodiment.
[0185] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory so that the chip executes the target following method in the above-mentioned method embodiments.
[0186] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0187] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the module or the division of modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0188] The modules described as separate components may or may not be physically separated, and the components shown as modules may be one physical module or multiple physical modules, that is, they may be located in one place or distributed in multiple different places. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0189] 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.
[0190] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0191] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A target following method, characterized in that: Applied to a mobile service device, the target following method comprises: If the target is not detected within a preset time, determining a historical trajectory of the target based on historical sensor information, wherein the historical sensor information includes visual information and millimeter wave information acquired by the mobile service device; Determine a topological map of the environment where the target is located based on current sensor information; Predicting a current trajectory of the target based on the historical trajectory and the topological map; The target is searched for according to the current trajectory.
2. The target following method according to claim 1, characterized in that: The target following method further comprises: Determining target features based on the historical sensor information, the target features including appearance features of a follow target; Determining a potential current location of the target based on the historical trajectory; Acquire candidate target features within the current potential position, wherein the candidate target features include appearance features of the candidate target; If the target feature matches the candidate target feature, the candidate target at the current potential position is determined as the target to be followed.
3. The target following method according to claim 2, characterized in that: The target feature also includes motion information of the follow-up target, and the candidate target feature also includes motion information of the candidate target.
4. The target following method according to any one of claims 1 to 3, characterized in that: The searching for the target according to the current trajectory comprises: Obtaining the current location of the mobile service device; Planning a movement trajectory of the mobile service device according to the current position and the current trajectory; Search for targets based on motion trajectories.
5. The target following method according to any one of claims 1 to 4, characterized in that: The historical trajectory includes the area that the target has reached and the movement pattern of the target in the area.
6. The target following method according to claim 5, characterized in that: The target following method further comprises: The motion mode of the target is determined based on the historical sensor information and the preset interactive multi-model.
7. The target following method according to any one of claims 1 to 6, characterized in that: Determining the historical trajectory of the target based on historical sensor information includes: Determining the spatial characteristics and time series characteristics of the target based on the visual information; Determining motion information of the target according to the millimeter wave information; The historical trajectory of the target is determined according to the spatial features, the time series features and the motion information.
8. The target following method according to claim 1, characterized in that: Determining the topological map of the target environment based on the current sensor information includes: Determining a traversable space based on the current sensor information; Performing convex hull decomposition on the traversable space to obtain a plurality of convex hull spaces; A topological map is determined according to the plurality of convex hull spaces.
9. The target following method according to claim 8, characterized in that: The current trajectory includes a plurality of nodes, each of which is located at the center of the convex hull space; and searching for the target according to the current trajectory includes: Determining state information of the node according to the convex hull space, the state information including the probability that the target is located at the node, the position of the node, and the relative direction between the target and the node; The target is searched for according to the status information.
10. The target following method according to claim 1, characterized in that: Before predicting the current trajectory of the target according to the historical trajectory of the target and the topological map, the target following method further includes: Acquire the destination of the target and the current position of the mobile service device; Planning a movement trajectory of the mobile service device according to the destination and the current position; The target is searched for according to the motion trajectory.
11. A mobile service device, characterized in that: The movable service equipment comprises: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the target following method according to any one of claims 1 to 10.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the target following method according to any one of claims 1 to 10 is implemented.
