WO2022021027A1 - Target tracking method and apparatus, unmanned aerial vehicle, system, and readable storage medium - Google Patents

Target tracking method and apparatus, unmanned aerial vehicle, system, and readable storage medium Download PDF

Info

Publication number
WO2022021027A1
WO2022021027A1 PCT/CN2020/104971 CN2020104971W WO2022021027A1 WO 2022021027 A1 WO2022021027 A1 WO 2022021027A1 CN 2020104971 W CN2020104971 W CN 2020104971W WO 2022021027 A1 WO2022021027 A1 WO 2022021027A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
tracked
information
detection information
objects
Prior art date
Application number
PCT/CN2020/104971
Other languages
French (fr)
Chinese (zh)
Inventor
丁旭
郭亚娜
张李亮
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to CN202080007155.1A priority Critical patent/CN113228103A/en
Priority to PCT/CN2020/104971 priority patent/WO2022021027A1/en
Publication of WO2022021027A1 publication Critical patent/WO2022021027A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/246Analysis of motion using feature-based methods, e.g. the tracking of corners or segments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20084Artificial neural networks [ANN]

Definitions

  • the present application relates to the technical field of target tracking, and in particular, to a target tracking method, device, unmanned aerial vehicle, system and readable storage medium.
  • UAVs can achieve tracking and shooting of targets, for example, tracking and shooting people, vehicles, animals, etc.
  • the existing target tracking algorithms are usually carried out in the two-dimensional plane of the image, mainly using the two-dimensional image information of the target.
  • the target is tracked.
  • due to the occurrence of occlusion and interleaving it is impossible to accurately track the target by only tracking the target through the two-dimensional image information of the target, which may easily lead to the loss of the tracked target. Therefore, how to accurately track the target and prevent the loss of the tracked target is an urgent problem to be solved at present.
  • the embodiments of the present application provide a target tracking method, device, unmanned aerial vehicle, system, and readable storage medium, which aim to accurately track the target and prevent the tracked target.
  • an embodiment of the present application provides a target tracking method, including:
  • first target detection information includes the target to be tracked
  • second target detection information includes the position of the target to be tracked in the current captured image information and second size information
  • the target to be tracked is tracked and photographed according to the first target detection information and the second target detection information.
  • an embodiment of the present application further provides a target tracking device, which is applied to an unmanned aerial vehicle, where the unmanned aerial vehicle includes a photographing device, and the target tracking device includes a memory and a processor;
  • the memory for storing computer programs
  • the processor is configured to execute the computer program, and when executing the computer program, implement the steps of the target tracking method described above.
  • an embodiment of the present application further provides an unmanned aerial vehicle, where the unmanned aerial vehicle includes a photographing device, a memory, and a processor;
  • the memory for storing computer programs
  • the processor is configured to execute the computer program, and when executing the computer program, implement the steps of the target tracking method described above.
  • an embodiment of the present application further provides a control system, the control system includes a control terminal and the drone according to any one of the embodiments of the present application, the control terminal is used to control the Drone operates.
  • an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the above-mentioned The steps of the object tracking method.
  • the embodiments of the present application provide a target tracking method, device, unmanned aerial vehicle, system, and readable storage medium.
  • Target detection obtaining first target detection information and second target detection information of the target to be tracked, and then tracking and shooting the target to be tracked based on the first target detection information and second target detection information of the target to be tracked, thereby avoiding other target objects. It can accurately track the target, prevent the loss of the tracked target, and greatly improve the accuracy of target tracking.
  • FIG. 1 is a schematic structural diagram of implementing a control system provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of steps of a target tracking method provided by an embodiment of the present application
  • Fig. 3 is the sub-step schematic flow chart of the target tracking method in Fig. 2;
  • FIG. 4 is a schematic flowchart of steps of another target tracking method provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a target tracking scenario provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a scene including multiple target objects in a captured image provided by an embodiment of the present application
  • FIG. 7 is a schematic block diagram of the structure of a target tracking device provided by an embodiment of the present application.
  • FIG. 8 is a schematic block diagram of the structure of an unmanned aerial vehicle provided by an embodiment of the present application.
  • UAVs can achieve tracking and shooting of targets, for example, tracking and shooting people, vehicles, animals, etc.
  • the existing target tracking algorithms are usually carried out in the two-dimensional plane of the image, mainly using the two-dimensional image information of the target.
  • the target is tracked.
  • due to the occurrence of occlusion and interleaving it is impossible to accurately track the target by only tracking the target through the two-dimensional image information of the target, which may easily lead to the loss of the tracked target. Therefore, how to accurately track the target and prevent the loss of the tracked target is an urgent problem to be solved at present.
  • FIG. 1 is a schematic structural diagram of implementing a control system provided by an embodiment of the present application.
  • the control system 100 includes a control terminal 110 and an unmanned aerial vehicle 120.
  • the control terminal 110 is connected to the unmanned aerial vehicle 120 in communication and is used to control the flight of the unmanned aerial vehicle 120, and the unmanned aerial vehicle 120 is used for the target to be tracked.
  • the tracking is performed, and the image captured by the tracking is sent to the control terminal 110 for display by using the wireless image transmission technology.
  • the control terminal 110 includes a display device 111, and the display device 111 is used to display the image captured by the drone.
  • the display device 111 includes a display screen disposed on the control terminal 110 or a display independent of the control terminal 110, and the display independent of the control terminal 110 may include a mobile phone, a tablet computer, a personal computer, etc. Other electronic equipment with a display screen.
  • the display screen includes an LED display screen, an OLED display screen, an LCD display screen, and the like.
  • the drone 120 includes a photographing device 121, and the photographing device 121 is used for photographing the target to be tracked, obtaining a current photographed image, and sending the current photographed image to the drone, and the drone detects the target to be tracked according to the current photographed image.
  • the photographing device 121 may include one camera, that is, a monocular photographing scheme; and may also include two cameras, that is, a binocular photographing scheme.
  • UAV 120 may be a rotorcraft.
  • drone 120 may be a multi-rotor aircraft that may include multiple rotors.
  • a plurality of rotors can be rotated to generate lift for the drone 120 .
  • the rotors may be propulsion units that allow the drone 120 to move freely in the air.
  • the rotors may rotate at the same rate and/or may generate the same amount of lift or thrust.
  • the rotors may freely rotate at different rates, producing different amounts of lift or thrust and/or allowing the drone 120 to rotate.
  • one, two, three, four, five, six, seven, eight, nine, ten or more rotors may be provided on the drone 120 .
  • the rotors may be arranged with their axes of rotation parallel to each other. In some cases, the axes of rotation of the rotors may be at any angle relative to each other, which may affect the motion of the drone 120 .
  • the drone 120 may include multiple rotors.
  • the rotors may be connected to the body of the drone 120, which may contain a control unit, inertial measurement unit (IMU), processor, battery, power supply, and/or other sensors.
  • the rotor may be connected to the body by one or more arms or extensions branching off from the central portion of the body.
  • one or more arms may extend radially from the central body of the drone 120 and may have rotors at or near the ends of the arms.
  • the UAV 120 may be, for example, a quad-rotor UAV, a hexa-rotor UAV, or an octa-rotor UAV.
  • it can also be a fixed-wing UAV, or a combination of a rotary-wing type and a fixed-wing UAV, which is not limited here.
  • control system in FIG. 1 is only used to explain the target tracking method provided by the embodiment of the present application, but does not constitute a limitation on the application scenario of the target tracking method provided by the embodiment of the present application.
  • FIG. 2 is a schematic flowchart of steps of a target tracking method provided by an embodiment of the present application.
  • the target tracking method can be applied in the UAV to accurately track the target and prevent the tracking target from being lost.
  • UAVs include rotary-wing UAVs, such as quad-rotor UAVs, hexa-rotor UAVs, octa-rotor UAVs, fixed-wing UAVs, or both rotary-wing and fixed-wing UAVs. The combination is not limited here.
  • the target tracking method includes steps S101 to S103 .
  • S102 performing target detection on the target to be tracked in the currently captured image, to obtain first target detection information and second target detection information of the target to be tracked;
  • S103 Perform tracking and photographing of the target to be tracked according to the first target detection information and the second target detection information.
  • the image of the spatial region where the target to be tracked is captured by the photographing device can obtain the current captured image including the target to be tracked, and the current captured image can be obtained.
  • the target to be tracked in the target detection is carried out to obtain the first target detection information and the second target detection information of the target to be tracked, so that the target to be tracked can be tracked and photographed according to the first target detection information and the second target detection information.
  • the first target detection information is the information of the target to be tracked in three-dimensional space, including the first size information of the target to be tracked in the world coordinate system and the angle information of the target to be tracked relative to the UAV, and the second target detection information
  • the information of the target to be tracked in the two-dimensional image space includes position information and second size information of the target to be tracked in the current captured image.
  • the angle information of the target to be tracked relative to the UAV includes the yaw angle, pitch angle and roll angle of the target to be tracked relative to the UAV
  • the first size information includes the angle of the target to be tracked in the world coordinate system.
  • the second size information includes length information, width information and/or height information of the target to be tracked in the current captured image
  • the first target detection information also includes the target to be tracked in the camera coordinate system
  • the position information of the target to be tracked in the camera coordinate system can be converted into the position information of the target to be tracked in the world coordinate system through the conversion relationship between the camera coordinate system and the world coordinate system.
  • the method of performing target detection on the target to be tracked in the current captured image, and obtaining the first target detection information and the second target detection information of the target to be tracked may be: inputting the current captured image into a preset 3D target.
  • the detection model is processed to obtain first target detection information of the target to be tracked; the current captured image is input into a preset 2D target detection model for processing to obtain second target detection information of the target to be tracked.
  • the 3D target detection model is a pre-trained first neural network model
  • the 2D target detection model is a pre-trained second neural network model.
  • the first neural network model is different from the second neural network model.
  • the first neural network model Any one of the convolutional neural network models CNN, RCNN, Fast RCNN, and Faster RCNN is included, and the second neural network model includes any one of the convolutional neural network models CNN, RCNN, Fast RCNN, and Faster RCNN.
  • the method of training the first neural network model to obtain the 3D target detection model may be: acquiring first training sample data, wherein the first training sample data includes a plurality of first images and each first image The first target detection information of the target to be tracked in ; the first neural network model is iteratively trained according to the first training sample data, until the iteratively trained first neural network model converges, and a 3D target detection model is obtained.
  • the detection information and corresponding images are used to train the first neural network model, which can solve the problem that the existing 3D target detection algorithm cannot be reused on the UAV, so that the UAV can detect the target to be tracked based on the 3D target detection model. , which is convenient for the follow-up drone to track and shoot the target to be tracked, which greatly improves the user experience.
  • the method of training the second neural network model to obtain the 2D target detection model may be: acquiring second training sample data, wherein the second training sample data includes a plurality of second images and each The second target detection information of the target to be tracked in the two images; the second neural network model is iteratively trained according to the second training sample data, until the iteratively trained second neural network model converges, and a 2D target detection model is obtained.
  • a 2D target detection model can be obtained, so that the UAV can Target detection can be performed on the target to be tracked based on the 2D target detection model, which is convenient for the follow-up UAV to track and shoot the target to be tracked, which greatly improves the user experience.
  • step S103 specifically includes: sub-steps S1031 to S1032.
  • S1031. Predict the target position coordinates of the target to be tracked in the world coordinate system according to the first target detection information and the second target detection information.
  • the preset target tracking algorithm After obtaining the first target detection information and the second target detection information of the target to be tracked, the preset target tracking algorithm is used to process the first target detection information and the second target detection information, so that the world coordinates of the target to be tracked can be predicted. The coordinates of the target position at the next moment under the system.
  • the preset target tracking algorithm includes any one of a mean shift algorithm, a Kalman filter algorithm, a particle filter algorithm, and a moving target modeling algorithm. In some other embodiments, other target tracking algorithms may also be used, which are not limited herein.
  • the target position coordinates of the target to be tracked in the world coordinate system can be accurately predicted, which is convenient for tracking the target to be tracked, and can overcome the problem of tracking only based on image information.
  • the resulting problems of wrong tracking and tracking loss greatly improve the tracking accuracy.
  • the method of predicting the target position coordinates of the target to be tracked in the world coordinate system may be: according to the first target detection information and the preset target tracking algorithm, Predict the first candidate position coordinates of the target to be tracked in the world coordinate system; according to the second target detection information and the preset target tracking algorithm, predict the second candidate position coordinates of the target to be tracked in the world coordinate system; According to the first candidate position The coordinates and the second candidate position coordinates determine the target position coordinates of the target to be tracked in the world coordinate system.
  • the first target detection information is the information of the target to be tracked in the three-dimensional space
  • the second target detection information is the information of the target to be tracked in the two-dimensional image space.
  • the target position coordinates of the target to be tracked in the world coordinate system can be accurately predicted, which is convenient for tracking the target to be tracked, and can overcome the problem of only tracking the target.
  • the problem of wrong tracking and tracking loss caused by tracking according to the image information greatly improves the tracking accuracy.
  • the method of determining the target position coordinates of the target to be tracked in the world coordinate system may be: obtaining the first preset coefficient and the second preset coefficient; Calculate the product of the first preset coefficient and the first candidate position coordinate to obtain the first weighted position coordinate, and calculate the product of the second preset coefficient and the second candidate position coordinate to obtain the second weighted position coordinate; The coordinates are added to the second weight position coordinates to obtain the target position coordinates of the target to be tracked in the world coordinate system.
  • the sum of the first preset coefficient and the second preset coefficient is 1, and the first preset coefficient and the second preset coefficient may be set based on the actual situation, which is not specifically limited in this embodiment of the present application.
  • the first preset coefficient is 0.65
  • the second preset coefficient is 0.35.
  • control the UAV After predicting the target position coordinates of the target to be tracked in the world coordinate system, control the UAV to track and shoot the target to be tracked based on the target position coordinates, so that the target to be tracked is always located at the center of the shooting screen of the shooting device, and no one is there.
  • the drone is stationary relative to the target to be tracked and/or the distance between the drone and the target to be tracked is always a fixed distance.
  • the first target detection information of the target to be tracked includes the position information of the target to be tracked in the camera coordinate system
  • the method of controlling the drone to track and photograph the target to be tracked according to the target position coordinates may be: The position information of the target in the camera coordinate system is converted into the first position information of the target to be tracked in the world coordinate system; the second position information of the UAV is obtained, and the to-be-tracked information is determined according to the first position information and the second position information
  • the second position information of the drone can be based on the position information collected by the positioning device of the drone at the current moment, and the positioning device includes a global positioning system (Global Positioning System, GPS) positioning device and a real-time kinematic (Real-time kinematic) positioning device. , RTK) any of the positioning devices.
  • GPS Global Positioning System
  • RTK real-time kinematic
  • the method of controlling the drone to track and photograph the target to be tracked may be: according to the target position coordinates of the target to be tracked in the world coordinate system and the second position of the drone information, determine the distance prediction value between the UAV and the target to be tracked when the position of the target to be tracked is at the position corresponding to the target position coordinates; determine the difference between the target distance and the distance prediction value, and based on the target distance and the distance
  • the difference between the predicted value and the second position information of the UAV determines the target position of the UAV; control the UAV to fly from the current position to the target position, and track and shoot the target to be tracked at the target position, so that no one When the drone reaches the target position, the distance between the drone and the target to be tracked is the target distance.
  • the method of controlling the drone to track and photograph the target to be tracked may be: determining the movement speed of the target to be tracked according to the first target detection information of the target to be tracked; Track the movement speed of the target, control the drone to track and shoot the target to be tracked, so that the drone is stationary relative to the target to be tracked, that is, control the drone to fly at the same flight speed as the movement speed, so that the drone is relative to the target to be tracked.
  • the target is stationary.
  • the method of controlling the drone to track and photograph the target to be tracked may be: determining the movement speed of the target to be tracked according to the first target detection information of the target to be tracked; Track the target position coordinates, movement speed and target distance of the target, and control the drone to track and shoot the target to be tracked, so that the drone is stationary relative to the target to be tracked, and the distance between the drone and the target to be tracked is always the target distance .
  • the process of tracking and shooting the target to be tracked by the drone it is ensured that the drone is stationary relative to the target to be tracked, and the distance between the drone and the target to be tracked is always the target distance, so that the drone can shoot the target by the shooting device. Track goals and improve user experience.
  • the method of determining the movement speed of the target to be tracked may be: acquiring the first target detection information of the target to be tracked in the camera coordinate system of the target to be tracked.
  • the position coordinates of the target to be tracked in the camera coordinate system are converted into the current position coordinates of the target to be tracked in the world coordinate system;
  • the historical position coordinates of the target to be tracked in the world coordinate system are obtained, and based on the target to be tracked
  • the historical position coordinates of the target to be tracked in the world coordinate system are the position coordinates of the target to be tracked in the
  • the movement speed of the target to be tracked may also be determined according to the second target detection information of the target to be tracked, or, according to the first target detection information and the second target detection information of the target to be tracked, comprehensively determine the target to be tracked.
  • the movement speed of the target that is, the first movement speed of the target to be tracked is determined based on the first target detection information of the target to be tracked, and the second movement speed of the target to be tracked is determined based on the second target detection information of the target to be tracked, and then Based on the first movement speed and the second movement speed of the target to be tracked, the final movement speed of the target to be tracked is determined.
  • the movement speed of the target to be tracked is comprehensively determined by using the first target detection information and the second target detection information, so that the accuracy of the movement speed of the target to be tracked can be improved.
  • the method of determining the final movement speed of the target to be tracked may be: calculating the first preset coefficient corresponding to the first movement speed and the first movement speed. The product of the speed is calculated, and the product of the second preset coefficient corresponding to the second movement speed and the second movement speed is calculated. After obtaining the two products, the sum of the two products is used as the final movement speed of the target to be tracked.
  • the first preset coefficient and the second preset coefficient may be set based on actual conditions, which are not specifically limited in this embodiment of the present application. Using the first preset coefficient and the second preset coefficient can adjust the degree of influence of the first target detection information and the second target detection information on the moving speed of the target to be tracked, so the moving speed of the target to be tracked can be more accurately determined.
  • the method of controlling the drone to track and photograph the target to be tracked according to the target position coordinates may be: according to the target position coordinates, determine the target attitude of the shooting device on the drone; control the drone to treat the target according to the target attitude.
  • the tracking target is tracked and photographed, so that the target to be tracked is always located at the center of the photographing screen of the photographing device.
  • the process of tracking and shooting the target to be tracked by the drone it is ensured that the target to be tracked is always located in the center of the shooting screen of the shooting device, which is convenient for the user to watch and control the shooting device of the drone to shoot the target to be tracked, which greatly improves the user experience.
  • the method of determining the target posture of the photographing device on the UAV may be: converting the target position coordinates into the first pixel coordinates in the image coordinate system, and obtaining the center of the photographing screen.
  • the second pixel coordinates of the position ; according to the first pixel coordinates and the second pixel coordinates, determine the orientation information of the target to be tracked relative to the central position of the shooting screen, and determine the position information of the target to be tracked relative to the central position of the shooting screen according to the position information.
  • the target posture of the photographing device on the drone is such that when the posture of the photographing device of the drone is the target posture, the target to be tracked is located in the center of the photographing screen.
  • the method of controlling the drone to track and photograph the target to be tracked according to the target posture may be: adjusting the posture of the photographing device on the drone to the target posture, so that the target to be tracked is always located on the photographing screen of the photographing device. central location.
  • the posture of the photographing device can be changed by adjusting the gimbal equipped with the photographing device, the posture of the photographing device can also be changed by adjusting the flying attitude of the drone, or the gimbal and the drone can be adjusted simultaneously. the flight attitude to change the attitude of the camera.
  • the first target detection information and the second target detection information of the target to be tracked are obtained by acquiring the current captured image obtained by capturing the target to be tracked by the camera, and performing target detection on the target to be tracked in the current captured image.
  • Target detection information and then track and shoot the target to be tracked based on the first target detection information and the second target detection information of the target to be tracked, thereby avoiding the interference of other target objects, accurately tracking the target, and preventing the loss of the tracked target.
  • FIG. 4 is a schematic flowchart of steps of another target tracking method provided by an embodiment of the present application.
  • the target tracking method includes steps S201 to S204.
  • S202 performing target detection on the target to be tracked in the currently captured image, to obtain first target detection information and second target detection information of the target to be tracked;
  • the target to be tracked can be tracked according to the image features of the target to be tracked in the current captured image based on the target tracking algorithm.
  • the target tracking algorithm includes any one of a mean shift algorithm, a Kalman filter algorithm, a particle filter algorithm, and a moving target modeling algorithm. In some other embodiments, other target tracking algorithms may also be used, which are not limited herein.
  • the drone 200 uses the photographing device 201 to photograph the target to be tracked (vehicle A) to obtain a current photographed image including the vehicle A.
  • the drone 200 acquires the current photographed image that includes the vehicle A, and tracks and photographes the vehicle A according to the current photographed image, and sends the current photographed image of the tracking photograph to the control terminal 100 for display, and the target to be tracked at the location.
  • a tracking mark is displayed on the display device, such as the positioning frame of the vehicle displayed by the display device 101 of the control terminal 100 in FIG. 5 .
  • the process of tracking vehicle A if in the process of tracking vehicle A, if multiple vehicles appear in the current captured image, such as vehicle 1, vehicle 2, vehicle 3 and vehicle 4, where vehicle 3 and vehicle 3 Vehicle 4 is again the same type of vehicle. Assuming that one vehicle in vehicle 3 and vehicle 4 is the target to be tracked (vehicle A), since there are multiple vehicles in the current captured image where vehicle A is located, it also includes the same vehicle as vehicle A, so if there is occlusion at this time Or staggered and other reasons, may lead to the tracking loss of the target to be tracked.
  • the situation in which the tracking of the target to be tracked is lost includes: it is impossible to distinguish which vehicle is the target to be tracked or the wrong target object is tracked.
  • a current photographed image obtained by photographing the target to be tracked by the photographing device is acquired; target detection is performed on the target to be tracked in the current photographed image, and the first target detection information and the second target detection information of the target to be tracked are obtained.
  • Target detection information when it is determined that the current captured image includes multiple target objects, the target to be tracked is determined from the plurality of target objects according to the first target detection information of the multiple target objects; according to the first target detection information of the target to be tracked and the first target detection information 2.
  • the target detection information is used to track and shoot the target to be tracked.
  • the first target detection information includes the angle information of the target to be tracked relative to the UAV, that is, the angle information of different target objects relative to the UAV is likely to be different, so in the process of tracking the target to be tracked, when the When there are multiple target objects, the target to be tracked can be determined by using the angle information of the target object relative to the UAV in the first target detection information, which can overcome the problems of wrong tracking and tracking caused by tracking only based on image information, for example, To avoid the problem of mistracking caused by the indistinguishability of two targets with the same or similar image features, the accuracy of target tracking can be improved.
  • the method of determining the target to be tracked from the plurality of target objects according to the first target detection information of the plurality of target objects may be: according to the first target detection information of the plurality of target objects, motion information; determine the motion information of the target to be tracked according to the first target detection information of the target to be tracked; calculate the similarity between the target to be tracked and a plurality of the target objects according to the motion information of the target to be tracked and the motion information of multiple target objects degree; the target to be tracked is determined from multiple target objects according to the similarity.
  • target objects may be of similar or identical types, such as pedestrians of similar height, fat and thinness, or vehicles of similar models, or identical vehicles, the image features of these target objects are relatively similar, so the image features are used for If tracked, it may be indistinguishable.
  • the motion information corresponding to different target objects has different probabilities. Therefore, in the target tracking process, when multiple target objects appear, the motion information is used to determine the target to be tracked, thereby improving the accuracy of target tracking.
  • the motion information includes position information and/or velocity information.
  • the target to be tracked is determined from multiple target objects, and the target object corresponding to the maximum sum value can be determined as the target to be tracked according to the sum of the position similarity and the speed similarity. .
  • the method of determining the target to be tracked from the plurality of target objects according to the similarity between the target to be tracked and the plurality of target objects may be: obtaining a first preset weight corresponding to the position similarity and a second preset weight corresponding to the speed similarity ; Determine the target to be tracked from a plurality of target objects according to the position similarity, the speed similarity, the first preset weight and the second preset weight.
  • the first preset weight and the second preset weight may be set based on actual conditions, which are not specifically limited in this embodiment of the present application.
  • the method of determining the target to be tracked from the multiple target objects may be: calculating the position similarity and the first preset weight.
  • the product of a preset weight, and the product of the calculated speed similarity and the second preset weight then calculate the sum of the two products, and use the sum of the two products as the final similarity between the target to be tracked and the target object, and the largest
  • the target object corresponding to the final similarity is determined as the target to be tracked.
  • the first preset weight corresponding to the position similarity is smaller than the second preset weight corresponding to the speed similarity. Since the position information has a small change in the captured images before and after frames, while the speed information is basically unchanged in the captured images of the previous and subsequent frames, by setting different weight ratios to increase the ratio of speed similarity, it is possible to improve the accuracy of tracking target determination. accuracy, thereby improving the accuracy of target tracking.
  • the image features of the target to be tracked are determined according to the current captured image; according to the similarity between the target to be tracked and multiple target objects and the image features of the targets to be tracked, the target to be tracked is determined from the multiple target objects, that is, From a plurality of target objects, find the target object with the highest similarity to the target to be tracked and the closest image feature as the target to be tracked.
  • a target object similar to the target to be tracked is determined from a plurality of target objects according to the image features of the target to be tracked; In the object, determine the target to be tracked. First, the target objects similar to the target to be tracked are determined from the image features of the target to be tracked, and then the target objects similar to the target to be tracked are determined according to the similarity between the target to be tracked and the multiple target objects.
  • the target to be tracked can be quickly and accurately determined.
  • the image features include one or more of color features, distribution position features, texture features, and contour features corresponding to the target in the captured image.
  • the method of determining the target to be tracked from the plurality of target objects according to the similarity between the target to be tracked and the plurality of target objects may be: according to the similarity between the target to be tracked and the plurality of target objects and the The Reid feature of the target determines the target to be tracked from a plurality of target objects; wherein, the Reid feature is the feature of the target to be tracked identified from the current captured image using the pedestrian re-identification technology.
  • the target to be tracked is determined from the multiple target objects, which can make up for the visual limitation of the UAV's photographing device and improve the accuracy of the target to be tracked. accuracy, thereby improving the accuracy of target tracking.
  • the target to be tracked is obtained according to the current captured image.
  • the image features of the tracking target and the image features of multiple target objects according to the image features of the target to be tracked and the image features of the multiple target objects, determine whether there are target objects similar to the target to be tracked in the multiple target objects;
  • the target to be tracked is determined from the plurality of target objects according to the first target detection information of the plurality of target objects.
  • the target to be tracked can be re-tracked from the perspective of image feature recognition. If there are at least two target objects similar to the target to be tracked among the multiple target objects, the target tracking may be lost due to occlusion or intersection. Therefore, the first target detection information needs to be used for further determination, which can improve the The tracking accuracy of the target to be tracked.
  • the target to be tracked when the target to be tracked is tracked, a current photographed image obtained by photographing the target to be tracked by a photographing device is acquired; target detection information and second target detection information; when it is determined that the current captured image includes multiple target objects, the target to be tracked is determined from the plurality of target objects according to the first target detection information of the multiple target objects;
  • the first target detection information and the second target detection information are used to track and shoot the target to be tracked, which can overcome the problems of wrong tracking and lost tracking caused by tracking only according to the image information, and improve the accuracy of the tracking target.
  • FIG. 7 is a schematic structural block diagram of a target tracking apparatus provided by an embodiment of the present application.
  • the target tracking device applies a drone, and the drone includes a photographing device.
  • the target tracking device 300 includes a processor 301 and a memory 302 , and the processor 301 and the memory 302 are connected through a bus 303 , such as It is the I2C (Inter-integrated Circuit) bus.
  • I2C Inter-integrated Circuit
  • the processor 301 may be a micro-controller unit (Micro-controller Unit, MCU), a central processing unit (Central Processing Unit, CPU) or a digital signal processor (Digital Signal Processor, DSP) or the like.
  • MCU Micro-controller Unit
  • CPU Central Processing Unit
  • DSP Digital Signal Processor
  • the memory 302 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) magnetic disk, an optical disk, a U disk, a mobile hard disk, and the like.
  • ROM Read-Only Memory
  • the memory 302 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) magnetic disk, an optical disk, a U disk, a mobile hard disk, and the like.
  • the processor 301 is used for running the computer program stored in the memory 302, and implements the following steps when executing the computer program:
  • first target detection information includes the target to be tracked
  • second target detection information includes the position information of the target to be tracked on the two-dimensional image plane and second size information
  • the target to be tracked is tracked and photographed according to the first target detection information and the second target detection information.
  • the performing target detection on the target to be tracked in the currently captured image to obtain first target detection information and second target detection information of the target to be tracked includes:
  • the currently captured image is input into a preset 2D target detection model for processing, so as to obtain second target detection information of the target to be tracked.
  • the processor is further configured to implement the following steps:
  • first training sample data includes a plurality of first images and first target detection information of the target to be tracked in each of the first images
  • the first neural network model is iteratively trained according to the first training sample data, until the iteratively trained first neural network model converges, and the 3D target detection model is obtained.
  • the processor is further configured to implement the following steps:
  • the second training sample data includes a plurality of second images and second target detection information of the target to be tracked in each of the second images
  • the second neural network model is iteratively trained according to the second training sample data, until the second neural network model after the iterative training converges, and the 2D target detection model is obtained.
  • the first neural network model includes convolutional neural network models CNN, RCNN, Fast RCNN and Faster RCNN.
  • the angle information of the target to be tracked relative to the UAV includes a yaw angle, a pitch angle and a roll angle of the target to be tracked relative to the UAV.
  • the first size information includes length information, width information and/or height information of the target to be tracked in the world coordinate system
  • the second size information includes the target to be tracked in the Length information, width information and/or height information in the currently captured image.
  • the tracking and shooting of the target to be tracked according to the first target detection information and the second target detection information includes:
  • the UAV is controlled to track and photograph the target to be tracked according to the target position coordinates.
  • predicting the target position coordinates of the target to be tracked in the world coordinate system according to the first target detection information and the second target detection information includes:
  • the first target detection information and the preset target tracking algorithm predict the first candidate position coordinates of the target to be tracked in the world coordinate system
  • the second target detection information and the preset target tracking algorithm predict the second candidate position coordinates of the target to be tracked in the world coordinate system
  • the target position coordinates of the to-be-tracked target in the world coordinate system are determined.
  • the second target detection information includes position information of the target to be tracked in a camera coordinate system, and the drone is controlled to track the target to be tracked according to the target position coordinates.
  • filming including:
  • the drone is controlled to track and photograph the target to be tracked, so that the distance between the drone and the target to be tracked is always the target distance.
  • the UAV is controlled to track and photograph the target to be tracked according to the target position coordinates and the target distance, so that the distance between the UAV and the target to be tracked is always
  • the target distance includes:
  • the drone According to the target position coordinates, movement speed and target distance of the target to be tracked, the drone is controlled to track and photograph the target to be tracked, so that the drone is stationary relative to the target to be tracked, and the The distance between the drone and the target to be tracked is always the target distance.
  • controlling the UAV to track and photograph the target to be tracked according to the target position coordinates includes:
  • the UAV is controlled to track and photograph the target to be tracked according to the target posture, so that the target to be tracked is always located at the center of the photographed image of the photographing device.
  • the tracking and shooting of the target to be tracked according to the first target detection information and the second target detection information includes:
  • the target to be tracked is determined from the plurality of target objects according to the first target detection information of the plurality of target objects;
  • the target to be tracked is tracked and photographed according to the first target detection information and the second target detection information of the target to be tracked.
  • the determining the target to be tracked from the plurality of target objects according to the first target detection information of the plurality of target objects includes:
  • the target to be tracked is determined from the plurality of target objects according to the similarity.
  • the motion information includes position information and/or velocity information; and the similarity includes position similarity and/or velocity similarity.
  • the determining the target to be tracked from the plurality of target objects according to the similarity includes:
  • the target to be tracked is determined from the plurality of target objects according to the position similarity and/or the speed similarity.
  • the determining the target to be tracked from the plurality of target objects according to the similarity includes:
  • the target to be tracked is determined from the plurality of target objects according to the position similarity, the speed similarity, the first preset weight and the second preset weight.
  • the determining the target to be tracked from the plurality of target objects according to the similarity includes:
  • the to-be-tracked target is determined from a plurality of the target objects according to the similarity and the image feature of the to-be-tracked target.
  • the determining the target to be tracked from a plurality of the target objects according to the similarity and the image feature of the target to be tracked includes:
  • the target to be tracked is determined from target objects similar to the target to be tracked according to the similarity.
  • the determining the target to be tracked from the plurality of target objects according to the similarity includes:
  • the target to be tracked is determined from a plurality of the target objects
  • the Reid feature is the feature of the target to be tracked identified from the currently captured image using the pedestrian re-identification technology.
  • the method before determining the target to be tracked from the plurality of target objects according to the first target detection information of the plurality of target objects, the method further includes:
  • the currently captured image includes multiple target objects
  • the image features of the target to be tracked and the image features of a plurality of the target objects determine whether there is a target object similar to the target to be tracked in the plurality of target objects;
  • the target object to be tracked is determined from the plurality of target objects according to the first target detection information of the plurality of target objects Track the target.
  • FIG. 8 is a schematic structural block diagram of an unmanned aerial vehicle provided by an embodiment of the present application.
  • the drone 400 includes a processor 401, a memory 402, and a photographing device 403.
  • the processor 401, the memory 402, and the photographing device 403 are connected through a bus 404, such as I2C (Inter-integrated Circuit). bus.
  • the UAV can be a rotary-wing UAV, such as a quad-rotor UAV, a hexa-rotor UAV, an octa-rotor UAV, or a fixed-wing UAV, or a rotary-wing and fixed-wing unmanned aerial vehicle.
  • the combination of man and machine is not limited here.
  • the processor 401 may be a micro-controller unit (Micro-controller Unit, MCU), a central processing unit (Central Processing Unit, CPU), or a digital signal processor (Digital Signal Processor, DSP) or the like.
  • MCU Micro-controller Unit
  • CPU Central Processing Unit
  • DSP Digital Signal Processor
  • the memory 402 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) magnetic disk, an optical disk, a U disk, or a mobile hard disk, and the like.
  • ROM Read-Only Memory
  • the memory 402 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) magnetic disk, an optical disk, a U disk, or a mobile hard disk, and the like.
  • the processor 401 is used for running the computer program stored in the memory 402, and implements the following steps when executing the computer program:
  • first target detection information includes the target to be tracked
  • second target detection information includes the position information of the target to be tracked on the two-dimensional image plane and second size information
  • the target to be tracked is tracked and photographed according to the first target detection information and the second target detection information.
  • the performing target detection on the target to be tracked in the currently captured image to obtain first target detection information and second target detection information of the target to be tracked includes:
  • the currently captured image is input into a preset 2D target detection model for processing, so as to obtain second target detection information of the target to be tracked.
  • the processor is further configured to implement the following steps:
  • first training sample data includes a plurality of first images and first target detection information of the target to be tracked in each of the first images
  • the first neural network model is iteratively trained according to the first training sample data, until the first neural network model after the iterative training converges, and the 3D target detection model is obtained.
  • the processor is further configured to implement the following steps:
  • the second training sample data includes a plurality of second images and second target detection information of the target to be tracked in each of the second images
  • the second neural network model is iteratively trained according to the second training sample data, until the iteratively trained second neural network model converges, and the 2D target detection model is obtained.
  • the first neural network model includes convolutional neural network models CNN, RCNN, Fast RCNN and Faster RCNN.
  • the angle information of the target to be tracked relative to the UAV includes a yaw angle, a pitch angle and a roll angle of the target to be tracked relative to the UAV.
  • the first size information includes length information, width information and/or height information of the target to be tracked in the world coordinate system
  • the second size information includes the target to be tracked in the Length information, width information and/or height information in the currently captured image.
  • the tracking and shooting of the target to be tracked according to the first target detection information and the second target detection information includes:
  • the UAV is controlled to track and photograph the target to be tracked according to the target position coordinates.
  • predicting the target position coordinates of the target to be tracked in the world coordinate system according to the first target detection information and the second target detection information includes:
  • the first target detection information and the preset target tracking algorithm predict the first candidate position coordinates of the target to be tracked in the world coordinate system
  • the second target detection information and the preset target tracking algorithm predict the second candidate position coordinates of the target to be tracked in the world coordinate system
  • the target position coordinates of the to-be-tracked target in the world coordinate system are determined.
  • the second target detection information includes position information of the target to be tracked in a camera coordinate system, and the drone is controlled to track the target to be tracked according to the target position coordinates.
  • filming including:
  • the drone is controlled to track and photograph the target to be tracked, so that the distance between the drone and the target to be tracked is always the target distance.
  • the UAV is controlled to track and photograph the target to be tracked according to the target position coordinates and the target distance, so that the distance between the UAV and the target to be tracked is always
  • the target distance includes:
  • the drone According to the target position coordinates, movement speed and target distance of the target to be tracked, the drone is controlled to track and photograph the target to be tracked, so that the drone is stationary relative to the target to be tracked, and the The distance between the drone and the target to be tracked is always the target distance.
  • controlling the UAV to track and photograph the target to be tracked according to the target position coordinates includes:
  • the UAV is controlled to track and photograph the target to be tracked according to the target posture, so that the target to be tracked is always located at the center of the photographed image of the photographing device.
  • the tracking and shooting of the target to be tracked according to the first target detection information and the second target detection information includes:
  • the target to be tracked is determined from the plurality of target objects according to the first target detection information of the plurality of target objects;
  • the target to be tracked is tracked and photographed according to the first target detection information and the second target detection information of the target to be tracked.
  • the determining the target to be tracked from the plurality of target objects according to the first target detection information of the plurality of target objects includes:
  • the target to be tracked is determined from the plurality of target objects according to the similarity.
  • the motion information includes position information and/or velocity information; and the similarity includes position similarity and/or velocity similarity.
  • the determining the target to be tracked from a plurality of the target objects according to the similarity includes:
  • the target to be tracked is determined from the plurality of target objects according to the position similarity and/or the speed similarity.
  • the determining the target to be tracked from the plurality of target objects according to the similarity includes:
  • the target to be tracked is determined from the plurality of target objects according to the position similarity, the speed similarity, the first preset weight and the second preset weight.
  • the determining the target to be tracked from the plurality of target objects according to the similarity includes:
  • the to-be-tracked target is determined from a plurality of the target objects according to the similarity and the image feature of the to-be-tracked target.
  • the determining the target to be tracked from a plurality of the target objects according to the similarity and the image feature of the target to be tracked includes:
  • the target to be tracked is determined from target objects similar to the target to be tracked according to the similarity.
  • the determining the target to be tracked from the plurality of target objects according to the similarity includes:
  • the target to be tracked is determined from a plurality of the target objects
  • the Reid feature is the feature of the target to be tracked identified from the currently captured image using the pedestrian re-identification technology.
  • the method before determining the target to be tracked from the plurality of target objects according to the first target detection information of the plurality of target objects, the method further includes:
  • the currently captured image includes multiple target objects
  • the image features of the target to be tracked and the image features of a plurality of the target objects determine whether there is a target object similar to the target to be tracked in the plurality of target objects;
  • the target object to be tracked is determined from the plurality of target objects according to the first target detection information of the plurality of target objects Track the target.
  • An embodiment of the present application further provides a control system, where the control system includes the unmanned aerial vehicle according to any one of the foregoing embodiments and a control terminal, where the control terminal is used to control the flight of the unmanned aerial vehicle.
  • the control system 100 includes an unmanned aerial vehicle 120 and a control terminal 110 , and the control terminal 110 is used to control the flying of the unmanned aerial vehicle 120 to track a target.
  • Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, the computer program includes program instructions, and the processor executes the program instructions, so as to realize the provision of the above embodiments.
  • the steps of the target tracking method are described in detail below.
  • the computer-readable storage medium may be an internal storage unit of the UAV described in any of the foregoing embodiments, such as a hard disk or a memory of the UAV.
  • the computer-readable storage medium can also be an external storage device of the drone, such as a plug-in hard disk equipped on the drone, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, flash memory card (Flash Card), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Biomedical Technology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)

Abstract

A target tracking method and apparatus, an unmanned aerial vehicle, a system, and a readable storage medium. The method comprises: obtaining the currently captured image; performing target detection on a target to be tracked in the currently captured image to obtain first target detection information and second target detection information of the target to be tracked; and according to the first target detection information and the second target detection information, tracking and photographing the target to be tracked. This method improves the accuracy of tracking the target.

Description

目标跟踪方法、装置、无人机、系统及可读存储介质Target tracking method, device, unmanned aerial vehicle, system and readable storage medium 技术领域technical field
本申请涉及目标跟踪技术领域,尤其涉及一种目标跟踪方法、装置、无人机、系统及可读存储介质。The present application relates to the technical field of target tracking, and in particular, to a target tracking method, device, unmanned aerial vehicle, system and readable storage medium.
背景技术Background technique
目前,无人机可以实现对目标进行跟踪拍摄,例如,跟踪拍摄人、车、动物等,现有的目标跟踪算法通常是在图像的二维平面内进行,主要利用目标的二维图像信息对目标进行跟踪拍摄。在一些情况下,由于遮挡和交错等情况的出现,仅通过目标的二维图像信息对目标进行跟踪是无法准确地跟踪目标的,容易导致跟踪的目标丢失。因此,如何准确地跟踪目标,防止跟踪的目标丢失是目前亟待解决的问题。At present, UAVs can achieve tracking and shooting of targets, for example, tracking and shooting people, vehicles, animals, etc. The existing target tracking algorithms are usually carried out in the two-dimensional plane of the image, mainly using the two-dimensional image information of the target. The target is tracked. In some cases, due to the occurrence of occlusion and interleaving, it is impossible to accurately track the target by only tracking the target through the two-dimensional image information of the target, which may easily lead to the loss of the tracked target. Therefore, how to accurately track the target and prevent the loss of the tracked target is an urgent problem to be solved at present.
发明内容SUMMARY OF THE INVENTION
基于此,本申请实施例提供了一种目标跟踪方法、装置、无人机、系统及可读存储介质,旨在准确地跟踪目标,防止跟踪的目标。Based on this, the embodiments of the present application provide a target tracking method, device, unmanned aerial vehicle, system, and readable storage medium, which aim to accurately track the target and prevent the tracked target.
第一方面,本申请实施例提供了一种目标跟踪方法,包括:In a first aspect, an embodiment of the present application provides a target tracking method, including:
获取所述拍摄装置拍摄待跟踪目标得到的当前拍摄图像;acquiring the current shot image obtained by the shooting device shooting the target to be tracked;
对所述当前拍摄图像中的所述待跟踪目标进行目标检测,得到所述待跟踪目标的第一目标检测信息和第二目标检测信息,其中,所述第一目标检测信息包括所述待跟踪目标在世界坐标系下的第一尺寸信息和所述待跟踪目标相对于所述无人机的角度信息,所述第二目标检测信息包括所述待跟踪目标在所述当前拍摄图像内的位置信息和第二尺寸信息;Perform target detection on the target to be tracked in the currently captured image to obtain first target detection information and second target detection information of the target to be tracked, wherein the first target detection information includes the target to be tracked The first size information of the target in the world coordinate system and the angle information of the target to be tracked relative to the UAV, the second target detection information includes the position of the target to be tracked in the current captured image information and second size information;
根据所述第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄。The target to be tracked is tracked and photographed according to the first target detection information and the second target detection information.
第二方面,本申请实施例还提供了一种目标跟踪装置,应用于无人机,所述无人机包括拍摄装置,所述目标跟踪装置包括存储器和处理器;In a second aspect, an embodiment of the present application further provides a target tracking device, which is applied to an unmanned aerial vehicle, where the unmanned aerial vehicle includes a photographing device, and the target tracking device includes a memory and a processor;
所述存储器,用于存储计算机程序;the memory for storing computer programs;
所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如上所述的目标跟踪方法的步骤。The processor is configured to execute the computer program, and when executing the computer program, implement the steps of the target tracking method described above.
第三方面,本申请实施例还提供了一种无人机,所述无人机包括拍摄装置、存储器和处理器;In a third aspect, an embodiment of the present application further provides an unmanned aerial vehicle, where the unmanned aerial vehicle includes a photographing device, a memory, and a processor;
所述存储器,用于存储计算机程序;the memory for storing computer programs;
所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如上所述的目标跟踪方法的步骤。The processor is configured to execute the computer program, and when executing the computer program, implement the steps of the target tracking method described above.
第四方面,本申请实施例还提供了一种控制系统,所述控制系统包括控制终端和如本申请实施例提供的任一项所述的无人机,所述控制终端用于控制所述无人机运行。In a fourth aspect, an embodiment of the present application further provides a control system, the control system includes a control terminal and the drone according to any one of the embodiments of the present application, the control terminal is used to control the Drone operates.
第五方面,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如上所述的目标跟踪方法的步骤。In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the above-mentioned The steps of the object tracking method.
本申请实施例提供了一种目标跟踪方法、装置、无人机、系统及可读存储介质,通过获取拍摄装置拍摄待跟踪目标得到的当前拍摄图像,并对当前拍摄图像中的待跟踪目标进行目标检测,得到待跟踪目标的第一目标检测信息和第二目标检测信息,然后基于待跟踪目标的第一目标检测信息和第二目标检测信息对待跟踪目标进行跟踪拍摄,进而可以避免其他目标对象的干扰,能够准确地跟踪目标,防止跟踪的目标丢失,极大地提高了目标跟踪的准确率。The embodiments of the present application provide a target tracking method, device, unmanned aerial vehicle, system, and readable storage medium. Target detection, obtaining first target detection information and second target detection information of the target to be tracked, and then tracking and shooting the target to be tracked based on the first target detection information and second target detection information of the target to be tracked, thereby avoiding other target objects. It can accurately track the target, prevent the loss of the tracked target, and greatly improve the accuracy of target tracking.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not limiting of the present application.
附图说明Description of drawings
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. For those of ordinary skill, other drawings can also be obtained from these drawings without any creative effort.
图1是实施本申请实施例提供的一种控制系统的结构示意图;FIG. 1 is a schematic structural diagram of implementing a control system provided by an embodiment of the present application;
图2是本申请实施例提供的一种目标跟踪方法的步骤示意流程图;2 is a schematic flowchart of steps of a target tracking method provided by an embodiment of the present application;
图3是图2中的目标跟踪方法的子步骤示意流程图;Fig. 3 is the sub-step schematic flow chart of the target tracking method in Fig. 2;
图4是本申请实施例提供的另一种目标跟踪方法的步骤示意流程图;4 is a schematic flowchart of steps of another target tracking method provided by an embodiment of the present application;
图5是本申请的实施例提供的目标跟踪的场景示意图;5 is a schematic diagram of a target tracking scenario provided by an embodiment of the present application;
图6是本申请的实施例提供的拍摄图像中包括多个目标对象的场景示意图;6 is a schematic diagram of a scene including multiple target objects in a captured image provided by an embodiment of the present application;
图7是本申请实施例提供的一种目标跟踪装置的结构示意性框图;7 is a schematic block diagram of the structure of a target tracking device provided by an embodiment of the present application;
图8是本申请实施例提供的一种无人机的结构示意性框图。FIG. 8 is a schematic block diagram of the structure of an unmanned aerial vehicle provided by an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowcharts shown in the figures are for illustration only, and do not necessarily include all contents and operations/steps, nor do they have to be performed in the order described. For example, some operations/steps can also be decomposed, combined or partially combined, so the actual execution order may be changed according to the actual situation.
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and features in the embodiments may be combined with each other without conflict.
目前,无人机可以实现对目标进行跟踪拍摄,例如,跟踪拍摄人、车、动物等,现有的目标跟踪算法通常是在图像的二维平面内进行,主要利用目标的二维图像信息对目标进行跟踪拍摄。在一些情况下,由于遮挡和交错等情况的出现,仅通过目标的二维图像信息对目标进行跟踪是无法准确地跟踪目标的,容易导致跟踪的目标丢失。因此,如何准确地跟踪目标,防止跟踪的目标丢失是目前亟待解决的问题。At present, UAVs can achieve tracking and shooting of targets, for example, tracking and shooting people, vehicles, animals, etc. The existing target tracking algorithms are usually carried out in the two-dimensional plane of the image, mainly using the two-dimensional image information of the target. The target is tracked. In some cases, due to the occurrence of occlusion and interleaving, it is impossible to accurately track the target by only tracking the target through the two-dimensional image information of the target, which may easily lead to the loss of the tracked target. Therefore, how to accurately track the target and prevent the loss of the tracked target is an urgent problem to be solved at present.
基于上述问题,本申请实施例提供一种目标跟踪方法、装置、无人机、系统及可读存储介质,该目标跟踪方法可以应用于无人机、也可以应用于目标跟踪装置,还可以应用于控制系统。请参阅图1,图1是实施本申请实施例提供的一种控制系统的结构示意图。如图1所示,该控制系统100包括控制终端110和无人机120,控制终端110与无人机120通信连接,用于控制无人机120的飞行,无人机120用于对待跟踪目标进行跟踪,将跟踪拍摄的图像,利用无线图传技术发送至控制终端110进行显示。Based on the above problems, embodiments of the present application provide a target tracking method, device, unmanned aerial vehicle, system, and readable storage medium. The target tracking method can be applied to unmanned aerial vehicles, target tracking devices, and other in the control system. Please refer to FIG. 1 . FIG. 1 is a schematic structural diagram of implementing a control system provided by an embodiment of the present application. As shown in FIG. 1 , the control system 100 includes a control terminal 110 and an unmanned aerial vehicle 120. The control terminal 110 is connected to the unmanned aerial vehicle 120 in communication and is used to control the flight of the unmanned aerial vehicle 120, and the unmanned aerial vehicle 120 is used for the target to be tracked. The tracking is performed, and the image captured by the tracking is sent to the control terminal 110 for display by using the wireless image transmission technology.
具体地,控制终端110包括显示装置111,显示装置111用于显示无人机拍摄的图像。需要说明的是,显示装置111包括设置在控制终端110上的显示屏或者独立于控制终端110的显示器,独立于控制终端110的显示器可以包括手机、平板电脑或者个人电脑等,或者也可以是带有显示屏的其他电子设备。其中,该显示屏包括LED显示屏、OLED显示屏、LCD显示屏等等。Specifically, the control terminal 110 includes a display device 111, and the display device 111 is used to display the image captured by the drone. It should be noted that the display device 111 includes a display screen disposed on the control terminal 110 or a display independent of the control terminal 110, and the display independent of the control terminal 110 may include a mobile phone, a tablet computer, a personal computer, etc. Other electronic equipment with a display screen. Among them, the display screen includes an LED display screen, an OLED display screen, an LCD display screen, and the like.
无人机120包括拍摄装置121,拍摄装置121用于对待跟踪目标进行拍摄,得到当前拍摄图像,并将当前拍摄图像发给无人机,由无人机根据当前拍摄图 像对待跟踪目标进行检测。拍摄装置121具体可以包括一个摄像头,即单目拍摄方案;也可以包括两个摄像头,即双目拍摄方案。The drone 120 includes a photographing device 121, and the photographing device 121 is used for photographing the target to be tracked, obtaining a current photographed image, and sending the current photographed image to the drone, and the drone detects the target to be tracked according to the current photographed image. Specifically, the photographing device 121 may include one camera, that is, a monocular photographing scheme; and may also include two cameras, that is, a binocular photographing scheme.
无人机120可以是旋翼飞机。在某些情形下,无人机120可以是可包括多个旋翼的多旋翼飞行器。多个旋翼可旋转而为无人机120产生提升力。旋翼可以是推进单元,可使得无人机120在空中自由移动。旋翼可按相同速率旋转和/或可产生相同量的提升力或推力。旋翼可按不同的速率随意地旋转,产生不同量的提升力或推力和/或允许无人机120旋转。在某些情形下,在无人机120上可提供一个、两个、三个、四个、五个、六个、七个、八个、九个、十个或更多个旋翼。这些旋翼可布置成其旋转轴彼此平行。在某些情形下,旋翼的旋转轴可相对于彼此呈任意角度,从而可影响无人机120的运动。UAV 120 may be a rotorcraft. In some cases, drone 120 may be a multi-rotor aircraft that may include multiple rotors. A plurality of rotors can be rotated to generate lift for the drone 120 . The rotors may be propulsion units that allow the drone 120 to move freely in the air. The rotors may rotate at the same rate and/or may generate the same amount of lift or thrust. The rotors may freely rotate at different rates, producing different amounts of lift or thrust and/or allowing the drone 120 to rotate. In some cases, one, two, three, four, five, six, seven, eight, nine, ten or more rotors may be provided on the drone 120 . The rotors may be arranged with their axes of rotation parallel to each other. In some cases, the axes of rotation of the rotors may be at any angle relative to each other, which may affect the motion of the drone 120 .
无人机120可包括多个旋翼。旋翼可连接至无人机120的本体,无人机120的本体可包含控制单元、惯性测量单元(inertial measuring unit,IMU)、处理器、电池、电源和/或其他传感器。旋翼可通过从本体中心部分分支出来的一个或多个臂或延伸而连接至本体。例如,一个或多个臂可从无人机120的中心本体放射状延伸出来,而且在臂末端或靠近末端处可具有旋翼。示例性的,无人机120可例如为四旋翼无人机、六旋翼无人机、八旋翼无人机。当然,也可以是固定翼无人机,还可以是旋翼型与固定翼无人机的组合,在此不作限定。The drone 120 may include multiple rotors. The rotors may be connected to the body of the drone 120, which may contain a control unit, inertial measurement unit (IMU), processor, battery, power supply, and/or other sensors. The rotor may be connected to the body by one or more arms or extensions branching off from the central portion of the body. For example, one or more arms may extend radially from the central body of the drone 120 and may have rotors at or near the ends of the arms. Exemplarily, the UAV 120 may be, for example, a quad-rotor UAV, a hexa-rotor UAV, or an octa-rotor UAV. Of course, it can also be a fixed-wing UAV, or a combination of a rotary-wing type and a fixed-wing UAV, which is not limited here.
以下,将结合图1中的控制系统对本申请的实施例提供的目标跟踪方法进行详细介绍。需知,图1中的控制系统仅用于解释本申请实施例提供的目标跟踪方法,但并不构成对本申请实施例提供的目标跟踪方法应用场景的限定。Hereinafter, the target tracking method provided by the embodiments of the present application will be described in detail with reference to the control system in FIG. 1 . It should be noted that the control system in FIG. 1 is only used to explain the target tracking method provided by the embodiment of the present application, but does not constitute a limitation on the application scenario of the target tracking method provided by the embodiment of the present application.
请参阅图2,图2是本申请实施例提供的一种目标跟踪方法的步骤示意流程图。该目标跟踪方法可以应用在无人机中,用于准确地跟踪目标,防止跟踪的目标丢失。无人机包括旋翼型无人机,例如四旋翼无人机、六旋翼无人机、八旋翼无人机,也可以是固定翼无人机,还可以是旋翼型与固定翼无人机的组合,在此不作限定。Please refer to FIG. 2. FIG. 2 is a schematic flowchart of steps of a target tracking method provided by an embodiment of the present application. The target tracking method can be applied in the UAV to accurately track the target and prevent the tracking target from being lost. UAVs include rotary-wing UAVs, such as quad-rotor UAVs, hexa-rotor UAVs, octa-rotor UAVs, fixed-wing UAVs, or both rotary-wing and fixed-wing UAVs. The combination is not limited here.
具体地,如图2所示,该目标跟踪方法包括步骤S101至步骤S103。Specifically, as shown in FIG. 2 , the target tracking method includes steps S101 to S103 .
S101、获取所述拍摄装置拍摄待跟踪目标得到的当前拍摄图像;S101, acquiring a current shot image obtained by the shooting device shooting a target to be tracked;
S102、对所述当前拍摄图像中的所述待跟踪目标进行目标检测,得到所述待跟踪目标的第一目标检测信息和第二目标检测信息;S102, performing target detection on the target to be tracked in the currently captured image, to obtain first target detection information and second target detection information of the target to be tracked;
S103、根据所述第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄。S103. Perform tracking and photographing of the target to be tracked according to the first target detection information and the second target detection information.
在对待跟踪目标进行跟踪时,需要获取包含待跟踪目标的当前拍摄图像, 具体可以通过拍摄装置拍摄待跟踪目标所在空间区域的图像,得到包含待跟踪目标得到的当前拍摄图像,并对当前拍摄图像中的待跟踪目标进行目标检测,得到待跟踪目标的第一目标检测信息和第二目标检测信息,以便根据第一目标检测信息和第二目标检测信息对待跟踪目标进行跟踪拍摄。其中,第一目标检测信息为待跟踪目标在三维空间内的信息,包括待跟踪目标在世界坐标系下的第一尺寸信息和待跟踪目标相对于无人机的角度信息,第二目标检测信息为待跟踪目标在二维图像空间内的信息,包括待跟踪目标在当前拍摄图像内的位置信息和第二尺寸信息。通过综合考虑待跟踪目标在三维空间内的信息和待跟踪目标在二维图像空间内的信息,可以准确地对待跟踪目标进行跟踪,防止待跟踪目标丢失。When tracking the target to be tracked, it is necessary to obtain the current captured image containing the target to be tracked. Specifically, the image of the spatial region where the target to be tracked is captured by the photographing device can obtain the current captured image including the target to be tracked, and the current captured image can be obtained. The target to be tracked in the target detection is carried out to obtain the first target detection information and the second target detection information of the target to be tracked, so that the target to be tracked can be tracked and photographed according to the first target detection information and the second target detection information. The first target detection information is the information of the target to be tracked in three-dimensional space, including the first size information of the target to be tracked in the world coordinate system and the angle information of the target to be tracked relative to the UAV, and the second target detection information The information of the target to be tracked in the two-dimensional image space includes position information and second size information of the target to be tracked in the current captured image. By comprehensively considering the information of the target to be tracked in the three-dimensional space and the information of the target to be tracked in the two-dimensional image space, the target to be tracked can be tracked accurately and the loss of the target to be tracked can be prevented.
在一实施例中,待跟踪目标相对于无人机的角度信息包括待跟踪目标相对于无人机的yaw角、pitch角和roll角,第一尺寸信息包括待跟踪目标在世界坐标系下的长度信息、宽度信息和/或高度信息,第二尺寸信息包括待跟踪目标在当前拍摄图像内的长度信息、宽度信息和/或高度信息,第一目标检测信息还包括待跟踪目标在相机坐标系下的位置信息,通过相机坐标系与世界坐标系之间的转换关系可以将待跟踪目标在相机坐标系下的位置信息转换为待跟踪目标在世界坐标系下的位置信息。In one embodiment, the angle information of the target to be tracked relative to the UAV includes the yaw angle, pitch angle and roll angle of the target to be tracked relative to the UAV, and the first size information includes the angle of the target to be tracked in the world coordinate system. Length information, width information and/or height information, the second size information includes length information, width information and/or height information of the target to be tracked in the current captured image, and the first target detection information also includes the target to be tracked in the camera coordinate system The position information of the target to be tracked in the camera coordinate system can be converted into the position information of the target to be tracked in the world coordinate system through the conversion relationship between the camera coordinate system and the world coordinate system.
在一实施例中,对当前拍摄图像中的待跟踪目标进行目标检测,得到待跟踪目标的第一目标检测信息和第二目标检测信息的方式可以为:将当前拍摄图像输入预设的3D目标检测模型进行处理,得到待跟踪目标的第一目标检测信息;将当前拍摄图像输入预设的2D目标检测模型进行处理,得到待跟踪目标的第二目标检测信息。其中,3D目标检测模型为预先训练好的第一神经网络模型,2D目标检测模型为预先训练好的第二神经网络模型,第一神经网络模型与第二神经网络模型不同,第一神经网络模型包括卷积神经网络模型CNN、RCNN、Fast RCNN和Faster RCNN中的任一项,第二神经网络模型包括卷积神经网络模型CNN、RCNN、Fast RCNN和Faster RCNN中的任一项。In one embodiment, the method of performing target detection on the target to be tracked in the current captured image, and obtaining the first target detection information and the second target detection information of the target to be tracked may be: inputting the current captured image into a preset 3D target. The detection model is processed to obtain first target detection information of the target to be tracked; the current captured image is input into a preset 2D target detection model for processing to obtain second target detection information of the target to be tracked. Among them, the 3D target detection model is a pre-trained first neural network model, and the 2D target detection model is a pre-trained second neural network model. The first neural network model is different from the second neural network model. The first neural network model Any one of the convolutional neural network models CNN, RCNN, Fast RCNN, and Faster RCNN is included, and the second neural network model includes any one of the convolutional neural network models CNN, RCNN, Fast RCNN, and Faster RCNN.
在一实施例中,对第一神经网络模型进行训练得到3D目标检测模型的方式可以为:获取第一训练样本数据,其中,第一训练样本数据包括多个第一图像以及每个第一图像中的待跟踪目标的第一目标检测信息;根据第一训练样本数据对第一神经网络模型进行迭代训练,直到迭代训练后的第一神经网络模型收敛,得到3D目标检测模型。通过包括待跟踪目标相对于无人机的yaw角、pitch角和roll角、待跟踪目标在相机坐标系下的位置信息和待跟踪目标在世界 坐标系下的第一尺寸信息等的第一目标检测信息和对应的图像对第一神经网络模型进行训练,能够解决现有的3D目标检测算法无法在无人机上复用的问题,使得无人机能够基于3D目标检测模型对待跟踪目标进行目标检测,便于后续无人机对待跟踪目标进行跟踪拍摄,极大地提高了用户体验。In one embodiment, the method of training the first neural network model to obtain the 3D target detection model may be: acquiring first training sample data, wherein the first training sample data includes a plurality of first images and each first image The first target detection information of the target to be tracked in ; the first neural network model is iteratively trained according to the first training sample data, until the iteratively trained first neural network model converges, and a 3D target detection model is obtained. By including the yaw angle, pitch angle and roll angle of the target to be tracked relative to the UAV, the position information of the target to be tracked in the camera coordinate system, and the first size information of the target to be tracked in the world coordinate system, etc. The detection information and corresponding images are used to train the first neural network model, which can solve the problem that the existing 3D target detection algorithm cannot be reused on the UAV, so that the UAV can detect the target to be tracked based on the 3D target detection model. , which is convenient for the follow-up drone to track and shoot the target to be tracked, which greatly improves the user experience.
在一实施例中,对第二神经网络模型进行训练得到2D目标检测模型的方式可以为:获取第二训练样本数据,其中,所述第二训练样本数据包括多个第二图像以及每个第二图像中的待跟踪目标的第二目标检测信息;根据第二训练样本数据对第二神经网络模型进行迭代训练,直到迭代训练后的第二神经网络模型收敛,得到2D目标检测模型。通过包括待跟踪目标在所述当前拍摄图像内的位置信息和第二尺寸信息的第二目标检测信息和对应的图像对第二神经网络模型进行训练,能够得到2D目标检测模型,使得无人机能够基于2D目标检测模型对待跟踪目标进行目标检测,便于后续无人机对待跟踪目标进行跟踪拍摄,极大地提高了用户体验。In one embodiment, the method of training the second neural network model to obtain the 2D target detection model may be: acquiring second training sample data, wherein the second training sample data includes a plurality of second images and each The second target detection information of the target to be tracked in the two images; the second neural network model is iteratively trained according to the second training sample data, until the iteratively trained second neural network model converges, and a 2D target detection model is obtained. By training the second neural network model with the second target detection information including the position information and the second size information of the target to be tracked in the current captured image and the corresponding image, a 2D target detection model can be obtained, so that the UAV can Target detection can be performed on the target to be tracked based on the 2D target detection model, which is convenient for the follow-up UAV to track and shoot the target to be tracked, which greatly improves the user experience.
在一实施例中,如图3所示,步骤S103具体包括:子步骤S1031至S1032。In an embodiment, as shown in FIG. 3 , step S103 specifically includes: sub-steps S1031 to S1032.
S1031、根据所述第一目标检测信息和第二目标检测信息,预测所述待跟踪目标在世界坐标系下的目标位置坐标。S1031. Predict the target position coordinates of the target to be tracked in the world coordinate system according to the first target detection information and the second target detection information.
在获取到待跟踪目标的第一目标检测信息和第二目标检测信息后,通过预设目标跟踪算法对第一目标检测信息和第二目标检测信息进行处理,能够预测得到待跟踪目标在世界坐标系下的下一时刻的目标位置坐标。其中,预设目标跟踪算法包括均值漂移算法、Kalman滤波算法、粒子滤波算法、对运动目标建模算法中任意一种。在其他一些实施例中,还可以使用其他目标跟踪算法,在此不做限定。通过融合待跟踪目标的第一目标检测信息和第二目标检测信息,能够准确地预测待跟踪目标在世界坐标系下的目标位置坐标,便于对待跟踪目标进行跟踪,能够克服仅根据图像信息进行跟踪导致的错跟和跟丢的问题,极大地提高了跟踪的准确性。After obtaining the first target detection information and the second target detection information of the target to be tracked, the preset target tracking algorithm is used to process the first target detection information and the second target detection information, so that the world coordinates of the target to be tracked can be predicted. The coordinates of the target position at the next moment under the system. The preset target tracking algorithm includes any one of a mean shift algorithm, a Kalman filter algorithm, a particle filter algorithm, and a moving target modeling algorithm. In some other embodiments, other target tracking algorithms may also be used, which are not limited herein. By fusing the first target detection information and the second target detection information of the target to be tracked, the target position coordinates of the target to be tracked in the world coordinate system can be accurately predicted, which is convenient for tracking the target to be tracked, and can overcome the problem of tracking only based on image information. The resulting problems of wrong tracking and tracking loss greatly improve the tracking accuracy.
在一实施例中,根据第一目标检测信息和第二目标检测信息,预测待跟踪目标在世界坐标系下的目标位置坐标的方式可以为:根据第一目标检测信息和预设目标跟踪算法,预测待跟踪目标在世界坐标系下的第一候选位置坐标;根据第二目标检测信息和预设目标跟踪算法,预测待跟踪目标在世界坐标系下的第二候选位置坐标;根据第一候选位置坐标和第二候选位置坐标,确定待跟踪目标在世界坐标系下的目标位置坐标。其中,第一目标检测信息为待跟踪目标在三维空间内的信息,第二目标检测信息为待跟踪目标在二维图像空间内的信 息。通过融合待跟踪目标在世界坐标系下的信息和待跟踪目标当前拍摄图像内的信息,能够准确地预测待跟踪目标在世界坐标系下的目标位置坐标,便于对待跟踪目标进行跟踪,能够克服仅根据图像信息进行跟踪导致的错跟和跟丢的问题,极大地提高了跟踪的准确性。In one embodiment, according to the first target detection information and the second target detection information, the method of predicting the target position coordinates of the target to be tracked in the world coordinate system may be: according to the first target detection information and the preset target tracking algorithm, Predict the first candidate position coordinates of the target to be tracked in the world coordinate system; according to the second target detection information and the preset target tracking algorithm, predict the second candidate position coordinates of the target to be tracked in the world coordinate system; According to the first candidate position The coordinates and the second candidate position coordinates determine the target position coordinates of the target to be tracked in the world coordinate system. Wherein, the first target detection information is the information of the target to be tracked in the three-dimensional space, and the second target detection information is the information of the target to be tracked in the two-dimensional image space. By fusing the information of the target to be tracked in the world coordinate system and the information in the current captured image of the target to be tracked, the target position coordinates of the target to be tracked in the world coordinate system can be accurately predicted, which is convenient for tracking the target to be tracked, and can overcome the problem of only tracking the target. The problem of wrong tracking and tracking loss caused by tracking according to the image information greatly improves the tracking accuracy.
在一实施例中,根据第一候选位置坐标和第二候选位置坐标,确定待跟踪目标在世界坐标系下的目标位置坐标的方式可以为:获取第一预设系数和第二预设系数;计算第一预设系数与第一候选位置坐标的乘积,得到第一权重位置坐标,并计算第二预设系数与第二候选位置坐标的乘积,得到第二权重位置坐标;将第一权重位置坐标与第二权重位置坐标相加,得到待跟踪目标在世界坐标系下的目标位置坐标。其中,第一预设系数与第二预设系数之和为1,第一预设系数和第二预设系数可基于实际情况进行设置,本申请实施例对此不做具体限定,例如,第一预设系数为0.65,第二预设系数为0.35。In one embodiment, according to the first candidate position coordinates and the second candidate position coordinates, the method of determining the target position coordinates of the target to be tracked in the world coordinate system may be: obtaining the first preset coefficient and the second preset coefficient; Calculate the product of the first preset coefficient and the first candidate position coordinate to obtain the first weighted position coordinate, and calculate the product of the second preset coefficient and the second candidate position coordinate to obtain the second weighted position coordinate; The coordinates are added to the second weight position coordinates to obtain the target position coordinates of the target to be tracked in the world coordinate system. The sum of the first preset coefficient and the second preset coefficient is 1, and the first preset coefficient and the second preset coefficient may be set based on the actual situation, which is not specifically limited in this embodiment of the present application. The first preset coefficient is 0.65, and the second preset coefficient is 0.35.
S1032、根据所述目标位置坐标控制所述无人机对所述待跟踪目标进行跟踪拍摄。S1032. Control the drone to track and photograph the target to be tracked according to the target position coordinates.
在预测到待跟踪目标在世界坐标系下的目标位置坐标后,基于该目标位置坐标控制无人机对待跟踪目标进行跟踪拍摄,使得待跟踪目标始终位于拍摄装置的拍摄画面的中央位置、无人机相对待跟踪目标静止和/或无人机与待跟踪目标之间的距离始终为固定距离。After predicting the target position coordinates of the target to be tracked in the world coordinate system, control the UAV to track and shoot the target to be tracked based on the target position coordinates, so that the target to be tracked is always located at the center of the shooting screen of the shooting device, and no one is there. The drone is stationary relative to the target to be tracked and/or the distance between the drone and the target to be tracked is always a fixed distance.
在一实施例中,待跟踪目标的第一目标检测信息包括待跟踪目标在相机坐标系下的位置信息,根据目标位置坐标控制无人机对待跟踪目标进行跟踪拍摄的方式可以为:将待跟踪目标在相机坐标系下的位置信息转换为待跟踪目标在世界坐标系下的第一位置信息;获取无人机的第二位置信息,并根据第一位置信息和第二位置信息,确定待跟踪目标与无人机之间的目标距离;根据目标位置坐标和目标距离,控制无人机对待跟踪目标进行跟踪拍摄,使得无人机与待跟踪目标之间的距离始终为目标距离。其中,无人机的第二位置信息可以根据无人机的定位装置在当前时刻采集到的位置信息,定位装置包括全球定位系统(Global Positioning System,GPS)定位装置和实时动态(Real-time kinematic,RTK)定位装置中的任一项。通过目标位置坐标和目标距离,控制无人机对待跟踪目标进行跟踪拍摄能够保证无人机与待跟踪目标之间的距离始终为目标距离,提高用户体验。In one embodiment, the first target detection information of the target to be tracked includes the position information of the target to be tracked in the camera coordinate system, and the method of controlling the drone to track and photograph the target to be tracked according to the target position coordinates may be: The position information of the target in the camera coordinate system is converted into the first position information of the target to be tracked in the world coordinate system; the second position information of the UAV is obtained, and the to-be-tracked information is determined according to the first position information and the second position information The target distance between the target and the UAV; according to the target position coordinates and the target distance, the UAV is controlled to track and shoot the target to be tracked, so that the distance between the UAV and the target to be tracked is always the target distance. Among them, the second position information of the drone can be based on the position information collected by the positioning device of the drone at the current moment, and the positioning device includes a global positioning system (Global Positioning System, GPS) positioning device and a real-time kinematic (Real-time kinematic) positioning device. , RTK) any of the positioning devices. Through the target position coordinates and target distance, controlling the drone to track and shoot the target to be tracked can ensure that the distance between the drone and the target to be tracked is always the target distance, improving user experience.
在一实施例中,根据目标位置坐标和目标距离,控制无人机对待跟踪目标进行跟踪拍摄的方式可以为:根据待跟踪目标在世界坐标系下的目标位置坐标 和无人机的第二位置信息,确定待跟踪目标的位置处于目标位置坐标对应的位置时无人机与待跟踪目标之间的距离预测值;确定该目标距离与该距离预测值的差值,并基于目标距离与该距离预测值的差值和无人机的第二位置信息,确定无人机的目标位置;控制无人机由当前位置飞行至目标位置,并在该目标位置对待跟踪目标进行跟踪拍摄,使得无人机达到目标位置时无人机与待跟踪目标之间的距离为该目标距离。In one embodiment, according to the target position coordinates and the target distance, the method of controlling the drone to track and photograph the target to be tracked may be: according to the target position coordinates of the target to be tracked in the world coordinate system and the second position of the drone information, determine the distance prediction value between the UAV and the target to be tracked when the position of the target to be tracked is at the position corresponding to the target position coordinates; determine the difference between the target distance and the distance prediction value, and based on the target distance and the distance The difference between the predicted value and the second position information of the UAV determines the target position of the UAV; control the UAV to fly from the current position to the target position, and track and shoot the target to be tracked at the target position, so that no one When the drone reaches the target position, the distance between the drone and the target to be tracked is the target distance.
在一实施例中,根据目标位置坐标和目标距离,控制无人机对待跟踪目标进行跟踪拍摄的方式可以为:根据待跟踪目标的第一目标检测信息,确定待跟踪目标的运动速度;根据待跟踪目标的运动速度,控制无人机对待跟踪目标进行跟踪拍摄,使得无人机相对待跟踪目标静止,即控制无人机按照与该运动速度相同的飞行速度飞行,使得无人机相对待跟踪目标静止。通过在无人机跟踪拍摄待跟踪目标的过程中,保证无人机相对待跟踪目标静止,便于无人机通过拍摄装置拍摄待跟踪目标,提高用户体验。In one embodiment, according to the target position coordinates and the target distance, the method of controlling the drone to track and photograph the target to be tracked may be: determining the movement speed of the target to be tracked according to the first target detection information of the target to be tracked; Track the movement speed of the target, control the drone to track and shoot the target to be tracked, so that the drone is stationary relative to the target to be tracked, that is, control the drone to fly at the same flight speed as the movement speed, so that the drone is relative to the target to be tracked. The target is stationary. During the process of tracking and photographing the target to be tracked by the drone, it is ensured that the drone is stationary relative to the target to be tracked, so that the drone can shoot the target to be tracked through the photographing device, thereby improving user experience.
在一实施例中,根据目标位置坐标和目标距离,控制无人机对待跟踪目标进行跟踪拍摄的方式可以为:根据待跟踪目标的第一目标检测信息,确定待跟踪目标的运动速度;根据待跟踪目标的目标位置坐标、运动速度和目标距离,控制无人机对待跟踪目标进行跟踪拍摄,使得无人机相对待跟踪目标静止,且无人机与待跟踪目标之间的距离始终为目标距离。通过在无人机跟踪拍摄待跟踪目标的过程中,保证无人机相对待跟踪目标静止,且无人机与待跟踪目标之间的距离始终为目标距离,便于无人机通过拍摄装置拍摄待跟踪目标,提高用户体验。In one embodiment, according to the target position coordinates and the target distance, the method of controlling the drone to track and photograph the target to be tracked may be: determining the movement speed of the target to be tracked according to the first target detection information of the target to be tracked; Track the target position coordinates, movement speed and target distance of the target, and control the drone to track and shoot the target to be tracked, so that the drone is stationary relative to the target to be tracked, and the distance between the drone and the target to be tracked is always the target distance . During the process of tracking and shooting the target to be tracked by the drone, it is ensured that the drone is stationary relative to the target to be tracked, and the distance between the drone and the target to be tracked is always the target distance, so that the drone can shoot the target by the shooting device. Track goals and improve user experience.
在一实施例中,根据待跟踪目标的第一目标检测信息,确定待跟踪目标的运动速度的方式可以为:获取待跟踪目标的第一目标检测信息中的待跟踪目标在相机坐标系下的位置坐标,并将待跟踪目标在相机坐标系下的位置坐标转换为待跟踪目标在世界坐标系下的当前位置坐标;获取待跟踪目标在世界坐标系下的历史位置坐标,并基于待跟踪目标在世界坐标系下的当前位置坐标和历史位置坐标,确定待跟踪目标的运动距离;根据待跟踪目标在世界坐标系下的当前位置坐标的第一采集时刻和历史位置坐标的第二采集时刻,确定待跟踪目标的运动时长;根据待跟踪目标的运动距离和运动时长,确定待跟踪目标的运动速度。其中,待跟踪目标在世界坐标系下的历史位置坐标为在上一个时刻确定的待跟踪目标在世界坐标系下的位置坐标。In one embodiment, according to the first target detection information of the target to be tracked, the method of determining the movement speed of the target to be tracked may be: acquiring the first target detection information of the target to be tracked in the camera coordinate system of the target to be tracked. The position coordinates of the target to be tracked in the camera coordinate system are converted into the current position coordinates of the target to be tracked in the world coordinate system; the historical position coordinates of the target to be tracked in the world coordinate system are obtained, and based on the target to be tracked Determine the moving distance of the target to be tracked based on the current position coordinates and historical position coordinates in the world coordinate system; according to the first collection moment of the current position coordinates of the target to be tracked in the world coordinate system and the second collection moment of the historical position coordinates, Determine the movement duration of the target to be tracked; determine the movement speed of the target to be tracked according to the movement distance and movement duration of the target to be tracked. Wherein, the historical position coordinates of the target to be tracked in the world coordinate system are the position coordinates of the target to be tracked in the world coordinate system determined at the last moment.
在一实施例中,也可以根据待跟踪目标的第二目标检测信息,确定待跟踪 目标的运动速度,或者,根据待跟踪目标的第一目标检测信息和第二目标检测信息,综合确定待跟踪目标的运动速度,即基于待跟踪目标的第一目标检测信息,确定待跟踪目标的第一运动速度,并基于待跟踪目标的第二目标检测信息,确定待跟踪目标的第二运动速度,然后基于待跟踪目标的第一运动速度和第二运动速度,确定待跟踪目标的最终运动速度。通过第一目标检测信息和第二目标检测信息,综合确定待跟踪目标的运动速度,可以提高待跟踪目标的运动速度的准确性。In one embodiment, the movement speed of the target to be tracked may also be determined according to the second target detection information of the target to be tracked, or, according to the first target detection information and the second target detection information of the target to be tracked, comprehensively determine the target to be tracked. The movement speed of the target, that is, the first movement speed of the target to be tracked is determined based on the first target detection information of the target to be tracked, and the second movement speed of the target to be tracked is determined based on the second target detection information of the target to be tracked, and then Based on the first movement speed and the second movement speed of the target to be tracked, the final movement speed of the target to be tracked is determined. The movement speed of the target to be tracked is comprehensively determined by using the first target detection information and the second target detection information, so that the accuracy of the movement speed of the target to be tracked can be improved.
在一实施例中,基于待跟踪目标的第一运动速度和第二运动速度,确定待跟踪目标的最终运动速度的方式可以为:计算第一运动速度对应的第一预设系数与第一运动速度的乘积,并计算第二运动速度对应的第二预设系数与第二运动速度的乘积,在得到两个乘积之后,将两个乘积的和作为待跟踪目标的最终运动速度。其中,第一预设系数和第二预设系数可基于实际情况进行设置,本申请实施例对此不做具体限定。利用第一预设系数和第二预设系数可以调整第一目标检测信息和第二目标检测信息对待跟踪目标的运动速度的影响程度,因此能够更为准确地确定待跟踪目标的运动速度。In one embodiment, based on the first movement speed and the second movement speed of the target to be tracked, the method of determining the final movement speed of the target to be tracked may be: calculating the first preset coefficient corresponding to the first movement speed and the first movement speed. The product of the speed is calculated, and the product of the second preset coefficient corresponding to the second movement speed and the second movement speed is calculated. After obtaining the two products, the sum of the two products is used as the final movement speed of the target to be tracked. The first preset coefficient and the second preset coefficient may be set based on actual conditions, which are not specifically limited in this embodiment of the present application. Using the first preset coefficient and the second preset coefficient can adjust the degree of influence of the first target detection information and the second target detection information on the moving speed of the target to be tracked, so the moving speed of the target to be tracked can be more accurately determined.
在一实施例中,根据目标位置坐标控制无人机对待跟踪目标进行跟踪拍摄的方式可以为:根据该目标位置坐标,确定无人机上的拍摄装置的目标姿态;根据目标姿态控制无人机对待跟踪目标进行跟踪拍摄,使得待跟踪目标始终位于拍摄装置的拍摄画面的中央位置。通过在无人机跟踪拍摄待跟踪目标的过程中,保证待跟踪目标始终位于拍摄装置的拍摄画面的中央位置,便于用户观看和控制无人机的拍摄装置对待跟踪目标进行拍摄,极大地提高了用户体验。In one embodiment, the method of controlling the drone to track and photograph the target to be tracked according to the target position coordinates may be: according to the target position coordinates, determine the target attitude of the shooting device on the drone; control the drone to treat the target according to the target attitude. The tracking target is tracked and photographed, so that the target to be tracked is always located at the center of the photographing screen of the photographing device. During the process of tracking and shooting the target to be tracked by the drone, it is ensured that the target to be tracked is always located in the center of the shooting screen of the shooting device, which is convenient for the user to watch and control the shooting device of the drone to shoot the target to be tracked, which greatly improves the user experience.
在一实施例中,根据该目标位置坐标,确定无人机上的拍摄装置的目标姿态的方式可以为:将该目标位置坐标转换为图像坐标系下的第一像素坐标,并获取拍摄画面的中央位置的第二像素坐标;根据第一像素坐标和第二像素坐标,确定待跟踪目标相对于拍摄画面的中央位置的方位信息,并根据待跟踪目标相对于拍摄画面的中央位置的方位信息,确定无人机上的拍摄装置的目标姿态,使得当无人机的拍摄装置的姿态为该目标姿态时待跟踪目标位于拍摄画面的中央位置。In one embodiment, according to the target position coordinates, the method of determining the target posture of the photographing device on the UAV may be: converting the target position coordinates into the first pixel coordinates in the image coordinate system, and obtaining the center of the photographing screen. The second pixel coordinates of the position; according to the first pixel coordinates and the second pixel coordinates, determine the orientation information of the target to be tracked relative to the central position of the shooting screen, and determine the position information of the target to be tracked relative to the central position of the shooting screen according to the position information. The target posture of the photographing device on the drone is such that when the posture of the photographing device of the drone is the target posture, the target to be tracked is located in the center of the photographing screen.
在一实施例中,根据目标姿态控制无人机对待跟踪目标进行跟踪拍摄的方式可以为:将无人机上的拍摄装置的姿态调整为该目标姿态,使得待跟踪目标始终位于拍摄装置的拍摄画面的中央位置。其中,可以通过调整搭载拍摄装置的云台来改变拍摄装置的姿态,也可以通过调整无人机的飞行姿态来改变拍摄 装置的姿态,还可以通过同时调整搭载拍摄装置的云台和无人机的飞行姿态来改变拍摄装置的姿态。In one embodiment, the method of controlling the drone to track and photograph the target to be tracked according to the target posture may be: adjusting the posture of the photographing device on the drone to the target posture, so that the target to be tracked is always located on the photographing screen of the photographing device. central location. Among them, the posture of the photographing device can be changed by adjusting the gimbal equipped with the photographing device, the posture of the photographing device can also be changed by adjusting the flying attitude of the drone, or the gimbal and the drone can be adjusted simultaneously. the flight attitude to change the attitude of the camera.
上述实施例提供的目标跟踪方法,通过获取拍摄装置拍摄待跟踪目标得到的当前拍摄图像,并对当前拍摄图像中的待跟踪目标进行目标检测,得到待跟踪目标的第一目标检测信息和第二目标检测信息,然后基于待跟踪目标的第一目标检测信息和第二目标检测信息对待跟踪目标进行跟踪拍摄,进而可以避免其他目标对象的干扰,能够准确地跟踪目标,防止跟踪的目标丢失,极大地提高了目标跟踪的准确率。In the target tracking method provided by the above-mentioned embodiments, the first target detection information and the second target detection information of the target to be tracked are obtained by acquiring the current captured image obtained by capturing the target to be tracked by the camera, and performing target detection on the target to be tracked in the current captured image. Target detection information, and then track and shoot the target to be tracked based on the first target detection information and the second target detection information of the target to be tracked, thereby avoiding the interference of other target objects, accurately tracking the target, and preventing the loss of the tracked target. Greatly improves the accuracy of target tracking.
请参阅图4,图4是本申请实施例提供的另一种目标跟踪方法的步骤示意流程图。Please refer to FIG. 4. FIG. 4 is a schematic flowchart of steps of another target tracking method provided by an embodiment of the present application.
如图4所示,该目标跟踪方法包括步骤S201至S204。As shown in FIG. 4 , the target tracking method includes steps S201 to S204.
S201、获取所述拍摄装置拍摄待跟踪目标得到的当前拍摄图像;S201, acquiring a current shot image obtained by the shooting device shooting a target to be tracked;
S202、对所述当前拍摄图像中的所述待跟踪目标进行目标检测,得到所述待跟踪目标的第一目标检测信息和第二目标检测信息;S202, performing target detection on the target to be tracked in the currently captured image, to obtain first target detection information and second target detection information of the target to be tracked;
S203、当确定所述当前拍摄图像包括多个目标对象时,根据多个所述目标对象的第一目标检测信息从多个所述目标对象中确定所述待跟踪目标;S203. When it is determined that the currently captured image includes multiple target objects, determine the target to be tracked from the multiple target objects according to the first target detection information of the multiple target objects;
S204、根据所述待跟踪目标的第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄。S204 , tracking and photographing the target to be tracked according to the first target detection information and the second target detection information of the target to be tracked.
一般情况下,在获取包含待跟踪目标的当前拍摄图像之后,即可以基于目标跟踪算法,根据当前拍摄图像中待跟踪目标的图像特征对待跟踪目标进行跟踪。然而由于在实际跟踪过程中,常常会出现与该跟踪目标类似的目标对象的影响,并且还可能会有遮挡和交错等情况的出现,因此会导致待跟踪目标的跟踪丢失。其中,目标跟踪算法包括均值漂移算法、Kalman滤波算法、粒子滤波算法、对运动目标建模算法中任意一种。在其他一些实施例中,还可以使用其他目标跟踪算法,在此不做限定。In general, after the current captured image containing the target to be tracked is acquired, the target to be tracked can be tracked according to the image features of the target to be tracked in the current captured image based on the target tracking algorithm. However, in the actual tracking process, the influence of a target object similar to the tracking target often occurs, and occlusion and interleaving may also occur, so the tracking of the target to be tracked is lost. The target tracking algorithm includes any one of a mean shift algorithm, a Kalman filter algorithm, a particle filter algorithm, and a moving target modeling algorithm. In some other embodiments, other target tracking algorithms may also be used, which are not limited herein.
示例性的,如图5所示,无人机200通过拍摄装置201对待跟踪目标(车辆A)进行拍摄,得到包括该车辆A的当前拍摄图像。无人机200获取该包含该车辆A的当前拍摄图像,并根据当前拍摄图像对车辆A进行跟踪拍摄,并将跟踪拍摄的当前拍摄图像发送给控制终端100进行显示,以及在定位的待跟踪目标上显示跟踪标识,如图5中控制终端100的显示装置101显示的车辆的定位框。Exemplarily, as shown in FIG. 5 , the drone 200 uses the photographing device 201 to photograph the target to be tracked (vehicle A) to obtain a current photographed image including the vehicle A. The drone 200 acquires the current photographed image that includes the vehicle A, and tracks and photographes the vehicle A according to the current photographed image, and sends the current photographed image of the tracking photograph to the control terminal 100 for display, and the target to be tracked at the location. A tracking mark is displayed on the display device, such as the positioning frame of the vehicle displayed by the display device 101 of the control terminal 100 in FIG. 5 .
示例性的,如图6所示,如果在对车辆A进行跟踪的过程中,若当前拍摄 图像中出现多个车辆,比如为车辆1、车辆2、车辆3和车辆4,其中,车辆3和车辆4又是相同类型的车辆。假设车辆3和车辆4中有一辆车是待跟踪目标(车辆A),由于车辆A所在的当前拍摄图像中出现多辆车辆,还包括与车辆A完全相同的车辆,由此若此时出现遮挡或交错等原因,可能会导致待跟踪目标跟踪丢失的情况出现。其中,待跟踪目标跟踪丢失的情况包括:无法区别哪一个车辆为待跟踪目标或者跟踪到错误的目标对象。Exemplarily, as shown in FIG. 6 , if in the process of tracking vehicle A, if multiple vehicles appear in the current captured image, such as vehicle 1, vehicle 2, vehicle 3 and vehicle 4, where vehicle 3 and vehicle 3 Vehicle 4 is again the same type of vehicle. Assuming that one vehicle in vehicle 3 and vehicle 4 is the target to be tracked (vehicle A), since there are multiple vehicles in the current captured image where vehicle A is located, it also includes the same vehicle as vehicle A, so if there is occlusion at this time Or staggered and other reasons, may lead to the tracking loss of the target to be tracked. The situation in which the tracking of the target to be tracked is lost includes: it is impossible to distinguish which vehicle is the target to be tracked or the wrong target object is tracked.
为此,在对待跟踪目标进行跟踪时,获取拍摄装置拍摄待跟踪目标得到的当前拍摄图像;对当前拍摄图像中的待跟踪目标进行目标检测,得到待跟踪目标的第一目标检测信息和第二目标检测信息;当确定当前拍摄图像包括多个目标对象时,根据多个目标对象的第一目标检测信息从多个目标对象中确定待跟踪目标;根据待跟踪目标的第一目标检测信息和第二目标检测信息对待跟踪目标进行跟踪拍摄。由于第一目标检测信息包括待跟踪目标相对于无人机的角度信息,也即不同的目标对象相对于无人机的角度信息大概率存在不同,因此在跟踪待跟踪目标的过程中,当出现多个目标对象时,使用第一目标检测信息中的目标对象相对于无人机的角度信息可以确定待跟踪目标,能够克服仅根据图像信息进行跟踪导致的错跟和跟丢的问题,例如,避免出现图像特征相同或相似的两个目标难以区分而导致的错跟问题,由此可以提高目标跟踪的准确率。To this end, when the target to be tracked is tracked, a current photographed image obtained by photographing the target to be tracked by the photographing device is acquired; target detection is performed on the target to be tracked in the current photographed image, and the first target detection information and the second target detection information of the target to be tracked are obtained. Target detection information; when it is determined that the current captured image includes multiple target objects, the target to be tracked is determined from the plurality of target objects according to the first target detection information of the multiple target objects; according to the first target detection information of the target to be tracked and the first target detection information 2. The target detection information is used to track and shoot the target to be tracked. Since the first target detection information includes the angle information of the target to be tracked relative to the UAV, that is, the angle information of different target objects relative to the UAV is likely to be different, so in the process of tracking the target to be tracked, when the When there are multiple target objects, the target to be tracked can be determined by using the angle information of the target object relative to the UAV in the first target detection information, which can overcome the problems of wrong tracking and tracking caused by tracking only based on image information, for example, To avoid the problem of mistracking caused by the indistinguishability of two targets with the same or similar image features, the accuracy of target tracking can be improved.
在一实施例中,根据多个目标对象的第一目标检测信息从多个目标对象中确定待跟踪目标的方式可以为:根据多个目标对象的第一目标检测信息,确定多个目标对象的运动信息;根据待跟踪目标的第一目标检测信息确定待跟踪目标的运动信息;根据待跟踪目标的运动信息和多个目标对象的运动信息,计算待跟踪目标与多个所述目标对象的相似度;根据相似度从多个目标对象中确定待跟踪目标。由于不同的目标对象有可能类型比较类似或者完全相同,比如差不多身高和胖瘦的行人,或者类似车型的车辆,或者完全相同的车辆,导致这些目标对象的图像特征比较相近,因此根据图像特征进行跟踪的话,可能无法区分。但是不同的目标对象对应的运动信息大概率存在不同,因此在目标跟踪过程,当出现多个目标对象时,使用运动信息确定待跟踪目标,由此可以提高目标跟踪的准确率。In an embodiment, the method of determining the target to be tracked from the plurality of target objects according to the first target detection information of the plurality of target objects may be: according to the first target detection information of the plurality of target objects, motion information; determine the motion information of the target to be tracked according to the first target detection information of the target to be tracked; calculate the similarity between the target to be tracked and a plurality of the target objects according to the motion information of the target to be tracked and the motion information of multiple target objects degree; the target to be tracked is determined from multiple target objects according to the similarity. Since different target objects may be of similar or identical types, such as pedestrians of similar height, fat and thinness, or vehicles of similar models, or identical vehicles, the image features of these target objects are relatively similar, so the image features are used for If tracked, it may be indistinguishable. However, the motion information corresponding to different target objects has different probabilities. Therefore, in the target tracking process, when multiple target objects appear, the motion information is used to determine the target to be tracked, thereby improving the accuracy of target tracking.
在一实施例中,由于运动信息包括位置信息和/或速度信息。相应地,待跟踪目标与目标对象的相似度包括位置相似度和/或速度相似度。由此,根据待跟踪目标与多个目标对象的相似度从多个目标对象中确定待跟踪目标的方式可以为:根据待跟踪目标与多个目标对象的位置相似度,从多个目标对象中确定待 跟踪目标;或者,根据待跟踪目标与多个目标对象的速度相似度,从多个目标对象中确定待跟踪目标;再或者,根据待跟踪目标与多个目标对象的位置相似度和速度相似度,从多个目标对象中确定待跟踪目标。需要说明的是,根据位置相似度和速度相似度,从多个目标对象中确定待跟踪目标,可以根据位置相似度和速度相似度之和,确定最大的和值对应的目标对象为待跟踪目标。In one embodiment, the motion information includes position information and/or velocity information. Correspondingly, the similarity between the target to be tracked and the target object includes position similarity and/or velocity similarity. Therefore, the method of determining the target to be tracked from the plurality of target objects according to the similarity between the target to be tracked and the plurality of target objects may be: Determine the target to be tracked; or, determine the target to be tracked from the plurality of target objects according to the speed similarity between the target to be tracked and the plurality of target objects; or, according to the position similarity and speed of the target to be tracked and the plurality of target objects Similarity, to determine the target to be tracked from multiple target objects. It should be noted that, according to the position similarity and speed similarity, the target to be tracked is determined from multiple target objects, and the target object corresponding to the maximum sum value can be determined as the target to be tracked according to the sum of the position similarity and the speed similarity. .
在一实施例中,为了提高待跟踪目标确定的准确率。根据待跟踪目标与多个目标对象的相似度从多个目标对象中确定待跟踪目标的方式可以为:获取位置相似度对应的第一预设权重,以及速度相似度对应的第二预设权重;根据位置相似度、速度相似度、第一预设权重和第二预设权重,从多个目标对象中确定所述待跟踪目标。其中,第一预设权重和第二预设权重可基于实际情况进行设置,本申请实施例对此不做具体限定。In one embodiment, in order to improve the accuracy of determining the target to be tracked. The method of determining the target to be tracked from the plurality of target objects according to the similarity between the target to be tracked and the plurality of target objects may be: obtaining a first preset weight corresponding to the position similarity and a second preset weight corresponding to the speed similarity ; Determine the target to be tracked from a plurality of target objects according to the position similarity, the speed similarity, the first preset weight and the second preset weight. The first preset weight and the second preset weight may be set based on actual conditions, which are not specifically limited in this embodiment of the present application.
在一实施例中,根据位置相似度、速度相似度、第一预设权重和第二预设权重,从多个目标对象中确定所述待跟踪目标的方式可以为:计算位置相似度与第一预设权重的乘积,以及计算速度相似度与第二预设权重的乘积;再计算两个乘积之和,将两个乘积之和作为待跟踪目标与目标对象的最终相似度,将最大的最终相似度对应的目标对象确定为待跟踪目标。利用预设权重可以调整位置信息和速度信息之间的影响大小,因此能够更为准确地确定待跟踪目标,进而提高目标跟踪的准确率。In an embodiment, according to the position similarity, the speed similarity, the first preset weight and the second preset weight, the method of determining the target to be tracked from the multiple target objects may be: calculating the position similarity and the first preset weight. The product of a preset weight, and the product of the calculated speed similarity and the second preset weight; then calculate the sum of the two products, and use the sum of the two products as the final similarity between the target to be tracked and the target object, and the largest The target object corresponding to the final similarity is determined as the target to be tracked. By using the preset weight, the size of the influence between the position information and the speed information can be adjusted, so the target to be tracked can be more accurately determined, thereby improving the accuracy of target tracking.
在一实施例中,位置相似度对应的第一预设权重小于速度相似度对应的第二预设权重。由于位置信息在前后帧拍摄图像中有较小的变化,而速度信息在前后帧拍摄图像中则基本不变,因此通过设置不同权重比例,提高速度相似度的占比,可以提高跟踪目标确定的准确率,进而提高目标跟踪的准确率。In one embodiment, the first preset weight corresponding to the position similarity is smaller than the second preset weight corresponding to the speed similarity. Since the position information has a small change in the captured images before and after frames, while the speed information is basically unchanged in the captured images of the previous and subsequent frames, by setting different weight ratios to increase the ratio of speed similarity, it is possible to improve the accuracy of tracking target determination. accuracy, thereby improving the accuracy of target tracking.
在一实施例中,根据当前拍摄图像确定待跟踪目标的图像特征;根据待跟踪目标与多个目标对象的相似度和待跟踪目标的图像特征,从多个目标对象中确定待跟踪目标,即从多个目标对象中,找出与该待跟踪目标相似度最高以及图像特征最近的目标对象作为待跟踪目标。通过结合待跟踪目标的图像特征和待跟踪目标与多个目标对象的相似度,能够进一步地准确地确定待跟踪目标,进而提高目标跟踪的准确率。In one embodiment, the image features of the target to be tracked are determined according to the current captured image; according to the similarity between the target to be tracked and multiple target objects and the image features of the targets to be tracked, the target to be tracked is determined from the multiple target objects, that is, From a plurality of target objects, find the target object with the highest similarity to the target to be tracked and the closest image feature as the target to be tracked. By combining the image features of the target to be tracked and the similarity between the target to be tracked and multiple target objects, the target to be tracked can be further accurately determined, thereby improving the accuracy of target tracking.
在一实施例中,根据待跟踪目标的图像特征从多个目标对象中,确定与待跟踪目标相似的目标对象;根据待跟踪目标与多个目标对象的相似度从与待跟踪目标相似的目标对象中,确定待跟踪目标。先通过待跟踪目标的图像特征从多个目标对象中,确定与待跟踪目标相似的目标对象,再根据待跟踪目标与多 个目标对象的相似度从与待跟踪目标相似的目标对象中,确定待跟踪目标,能够了快速以及准确地确定待跟踪目标。其中,该图像特征包括目标在拍摄图像中对应的颜色特征、分布位置特征、纹理特征、轮廓特征中一种或多种。In one embodiment, a target object similar to the target to be tracked is determined from a plurality of target objects according to the image features of the target to be tracked; In the object, determine the target to be tracked. First, the target objects similar to the target to be tracked are determined from the image features of the target to be tracked, and then the target objects similar to the target to be tracked are determined according to the similarity between the target to be tracked and the multiple target objects. The target to be tracked can be quickly and accurately determined. Wherein, the image features include one or more of color features, distribution position features, texture features, and contour features corresponding to the target in the captured image.
在一实施例中,根据待跟踪目标与多个目标对象的相似度从多个目标对象中确定所述待跟踪目标的方式可以为:根据待跟踪目标与多个目标对象的相似度和待跟踪目标的Reid特征,从多个目标对象中确定待跟踪目标;其中,该Reid特征为采用行人重识别技术从当前拍摄图像识别出的待跟踪目标的特征。通过待跟踪目标与多个目标对象的相似度和待跟踪目标的Reid特征,从多个目标对象中确定待跟踪目标,可以弥补无人机的拍摄装置的视觉局限,以及提高待跟踪目标确定的准确率,进而提高目标跟踪的准确率。In one embodiment, the method of determining the target to be tracked from the plurality of target objects according to the similarity between the target to be tracked and the plurality of target objects may be: according to the similarity between the target to be tracked and the plurality of target objects and the The Reid feature of the target determines the target to be tracked from a plurality of target objects; wherein, the Reid feature is the feature of the target to be tracked identified from the current captured image using the pedestrian re-identification technology. Through the similarity between the target to be tracked and multiple target objects and the Reid feature of the target to be tracked, the target to be tracked is determined from the multiple target objects, which can make up for the visual limitation of the UAV's photographing device and improve the accuracy of the target to be tracked. accuracy, thereby improving the accuracy of target tracking.
在一实施例中,根据多个目标对象的第一目标检测信息从多个目标对象中确定所述待跟踪目标之前,当确定当前拍摄图像包括多个目标对象时,根据当前拍摄图像,获取待跟踪目标的图像特征和多个目标对象的图像特征;根据待跟踪目标的图像特征和多个目标对象的图像特征,确定多个目标对象中是否存在与待跟踪目标相似的目标对象;当确定多个目标对象中存在至少两个与待跟踪目标相似的目标对象时,根据多个目标对象的第一目标检测信息从多个目标对象中确定待跟踪目标。若多个目标对象中只存在一个与待跟踪目标相似的目标对象,即使出现目标跟踪丢失的情况,也可以从图像特征识别的角度重新对该待跟踪目标进行跟踪。若多个目标对象中存在至少两个与待跟踪目标相似的目标对象,才有可能因为遮挡或交叉等原因造成目标跟踪丢失,因此需要使用第一目标检测信息进行进一步地确定,由此可以提高待跟踪目标的跟踪的准确率。In an embodiment, before the target to be tracked is determined from the plurality of target objects according to the first target detection information of the plurality of target objects, when it is determined that the current captured image includes multiple target objects, the target to be tracked is obtained according to the current captured image. The image features of the tracking target and the image features of multiple target objects; according to the image features of the target to be tracked and the image features of the multiple target objects, determine whether there are target objects similar to the target to be tracked in the multiple target objects; When there are at least two target objects similar to the target to be tracked among the target objects, the target to be tracked is determined from the plurality of target objects according to the first target detection information of the plurality of target objects. If there is only one target object similar to the target to be tracked among the multiple target objects, even if the target tracking is lost, the target to be tracked can be re-tracked from the perspective of image feature recognition. If there are at least two target objects similar to the target to be tracked among the multiple target objects, the target tracking may be lost due to occlusion or intersection. Therefore, the first target detection information needs to be used for further determination, which can improve the The tracking accuracy of the target to be tracked.
上述实施例提供的目标跟踪方法,在对待跟踪目标进行跟踪时,获取拍摄装置拍摄待跟踪目标得到的当前拍摄图像;对当前拍摄图像中的待跟踪目标进行目标检测,得到待跟踪目标的第一目标检测信息和第二目标检测信息;当确定当前拍摄图像包括多个目标对象时,根据多个目标对象的第一目标检测信息从多个目标对象中确定待跟踪目标;根据待跟踪目标的第一目标检测信息和第二目标检测信息对待跟踪目标进行跟踪拍摄,能够克服仅根据图像信息进行跟踪导致的错跟和跟丢的问题,提高跟踪目标的准确性。In the target tracking method provided by the above embodiment, when the target to be tracked is tracked, a current photographed image obtained by photographing the target to be tracked by a photographing device is acquired; target detection information and second target detection information; when it is determined that the current captured image includes multiple target objects, the target to be tracked is determined from the plurality of target objects according to the first target detection information of the multiple target objects; The first target detection information and the second target detection information are used to track and shoot the target to be tracked, which can overcome the problems of wrong tracking and lost tracking caused by tracking only according to the image information, and improve the accuracy of the tracking target.
请参阅图7,图7是本申请实施例提供的一种目标跟踪装置的结构示意性框图。Please refer to FIG. 7 . FIG. 7 is a schematic structural block diagram of a target tracking apparatus provided by an embodiment of the present application.
该目标跟踪装置应用无人机,该无人机包括拍摄装置,如图7所示,目标 跟踪装置300包括处理器301和存储器302,处理器301和存储器302通过总线303连接,该总线303比如为I2C(Inter-integrated Circuit)总线。The target tracking device applies a drone, and the drone includes a photographing device. As shown in FIG. 7 , the target tracking device 300 includes a processor 301 and a memory 302 , and the processor 301 and the memory 302 are connected through a bus 303 , such as It is the I2C (Inter-integrated Circuit) bus.
具体地,处理器301可以是微控制单元(Micro-controller Unit,MCU)、中央处理单元(Central Processing Unit,CPU)或数字信号处理器(Digital Signal Processor,DSP)等。Specifically, the processor 301 may be a micro-controller unit (Micro-controller Unit, MCU), a central processing unit (Central Processing Unit, CPU) or a digital signal processor (Digital Signal Processor, DSP) or the like.
具体地,存储器302可以是Flash芯片、只读存储器(ROM,Read-Only Memory)磁盘、光盘、U盘或移动硬盘等。Specifically, the memory 302 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) magnetic disk, an optical disk, a U disk, a mobile hard disk, and the like.
其中,所述处理器301用于运行存储在存储器302中的计算机程序,并在执行所述计算机程序时实现如下步骤:Wherein, the processor 301 is used for running the computer program stored in the memory 302, and implements the following steps when executing the computer program:
获取所述拍摄装置拍摄待跟踪目标得到的当前拍摄图像;acquiring the current shot image obtained by the shooting device shooting the target to be tracked;
对所述当前拍摄图像中的所述待跟踪目标进行目标检测,得到所述待跟踪目标的第一目标检测信息和第二目标检测信息,其中,所述第一目标检测信息包括所述待跟踪目标在世界坐标系下的第一尺寸信息和所述待跟踪目标相对于所述无人机的角度信息,所述第二目标检测信息包括所述待跟踪目标在二维图像平面的位置信息和第二尺寸信息;Perform target detection on the target to be tracked in the currently captured image to obtain first target detection information and second target detection information of the target to be tracked, wherein the first target detection information includes the target to be tracked The first size information of the target in the world coordinate system and the angle information of the target to be tracked relative to the UAV, the second target detection information includes the position information of the target to be tracked on the two-dimensional image plane and second size information;
根据所述第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄。The target to be tracked is tracked and photographed according to the first target detection information and the second target detection information.
在一实施例中,所述对所述当前拍摄图像中的所述待跟踪目标进行目标检测,得到所述待跟踪目标的第一目标检测信息和第二目标检测信息,包括:In an embodiment, the performing target detection on the target to be tracked in the currently captured image to obtain first target detection information and second target detection information of the target to be tracked includes:
将所述当前拍摄图像输入预设的3D目标检测模型进行处理,得到所述待跟踪目标的第一目标检测信息;Inputting the currently captured image into a preset 3D target detection model for processing to obtain first target detection information of the target to be tracked;
将所述当前拍摄图像输入预设的2D目标检测模型进行处理,得到所述待跟踪目标的第二目标检测信息。The currently captured image is input into a preset 2D target detection model for processing, so as to obtain second target detection information of the target to be tracked.
在一实施例中,所述处理器还用于实现以下步骤:In one embodiment, the processor is further configured to implement the following steps:
获取第一训练样本数据,其中,所述第一训练样本数据包括多个第一图像以及每个所述第一图像中的待跟踪目标的第一目标检测信息;acquiring first training sample data, wherein the first training sample data includes a plurality of first images and first target detection information of the target to be tracked in each of the first images;
根据所述第一训练样本数据对第一神经网络模型进行迭代训练,直到迭代训练后的第一神经网络模型收敛,得到所述3D目标检测模型。The first neural network model is iteratively trained according to the first training sample data, until the iteratively trained first neural network model converges, and the 3D target detection model is obtained.
在一实施例中,所述处理器还用于实现以下步骤:In one embodiment, the processor is further configured to implement the following steps:
获取第二训练样本数据,其中,所述第二训练样本数据包括多个第二图像以及每个所述第二图像中的待跟踪目标的第二目标检测信息;acquiring second training sample data, wherein the second training sample data includes a plurality of second images and second target detection information of the target to be tracked in each of the second images;
根据所述第二训练样本数据对第二神经网络模型进行迭代训练,直到迭代 训练后的第二神经网络模型收敛,得到所述2D目标检测模型。The second neural network model is iteratively trained according to the second training sample data, until the second neural network model after the iterative training converges, and the 2D target detection model is obtained.
在一实施例中,所述第一神经网络模型包括卷积神经网络模型CNN、RCNN、Fast RCNN和Faster RCNN。In one embodiment, the first neural network model includes convolutional neural network models CNN, RCNN, Fast RCNN and Faster RCNN.
在一实施例中,所述待跟踪目标相对于所述无人机的角度信息包括所述待跟踪目标相对于所述无人机的yaw角、pitch角和roll角。In one embodiment, the angle information of the target to be tracked relative to the UAV includes a yaw angle, a pitch angle and a roll angle of the target to be tracked relative to the UAV.
在一实施例中,所述第一尺寸信息包括所述待跟踪目标在世界坐标系下的长度信息、宽度信息和/或高度信息,所述第二尺寸信息包括所述待跟踪目标在所述当前拍摄图像内的长度信息、宽度信息和/或高度信息。In one embodiment, the first size information includes length information, width information and/or height information of the target to be tracked in the world coordinate system, and the second size information includes the target to be tracked in the Length information, width information and/or height information in the currently captured image.
在一实施例中,所述根据所述第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄,包括:In one embodiment, the tracking and shooting of the target to be tracked according to the first target detection information and the second target detection information includes:
根据所述第一目标检测信息和第二目标检测信息,预测所述待跟踪目标在世界坐标系下的目标位置坐标;Predicting the target position coordinates of the target to be tracked in the world coordinate system according to the first target detection information and the second target detection information;
根据所述目标位置坐标控制所述无人机对所述待跟踪目标进行跟踪拍摄。The UAV is controlled to track and photograph the target to be tracked according to the target position coordinates.
在一实施例中,所述根据所述第一目标检测信息和第二目标检测信息,预测所述待跟踪目标在世界坐标系下的目标位置坐标,包括:In one embodiment, predicting the target position coordinates of the target to be tracked in the world coordinate system according to the first target detection information and the second target detection information includes:
根据所述第一目标检测信息和预设目标跟踪算法,预测所述待跟踪目标在世界坐标系下的第一候选位置坐标;According to the first target detection information and the preset target tracking algorithm, predict the first candidate position coordinates of the target to be tracked in the world coordinate system;
根据所述第二目标检测信息和预设目标跟踪算法,预测所述待跟踪目标在世界坐标系下的第二候选位置坐标;According to the second target detection information and the preset target tracking algorithm, predict the second candidate position coordinates of the target to be tracked in the world coordinate system;
根据所述第一候选位置坐标和第二候选位置坐标,确定所述待跟踪目标在世界坐标系下的目标位置坐标。According to the first candidate position coordinates and the second candidate position coordinates, the target position coordinates of the to-be-tracked target in the world coordinate system are determined.
在一实施例中,所述第二目标检测信息包括所述待跟踪目标在相机坐标系下的位置信息,所述根据所述目标位置坐标控制所述无人机对所述待跟踪目标进行跟踪拍摄,包括:In one embodiment, the second target detection information includes position information of the target to be tracked in a camera coordinate system, and the drone is controlled to track the target to be tracked according to the target position coordinates. filming, including:
将所述待跟踪目标在相机坐标系下的位置信息转换为所述待跟踪目标在世界坐标系下的第一位置信息;Converting the position information of the target to be tracked under the camera coordinate system into the first position information of the target to be tracked under the world coordinate system;
获取所述无人机的第二位置信息,并根据所述第一位置信息和第二位置信息,确定所述待跟踪目标与所述无人机之间的目标距离;Acquiring the second position information of the UAV, and determining the target distance between the target to be tracked and the UAV according to the first position information and the second position information;
根据所述目标位置坐标和目标距离,控制所述无人机对所述待跟踪目标进行跟踪拍摄,使得所述无人机与待跟踪目标之间的距离始终为所述目标距离。According to the target position coordinates and the target distance, the drone is controlled to track and photograph the target to be tracked, so that the distance between the drone and the target to be tracked is always the target distance.
在一实施例中,所述根据所述目标位置坐标和目标距离,控制所述无人机对所述待跟踪目标进行跟踪拍摄,使得所述无人机与待跟踪目标之间的距离始 终为所述目标距离,包括:In one embodiment, the UAV is controlled to track and photograph the target to be tracked according to the target position coordinates and the target distance, so that the distance between the UAV and the target to be tracked is always The target distance includes:
根据所述第一目标检测信息,确定所述待跟踪目标的运动速度;determining the movement speed of the target to be tracked according to the first target detection information;
根据所述待跟踪目标的目标位置坐标、运动速度和目标距离,控制所述无人机对所述待跟踪目标进行跟踪拍摄,使得所述无人机相对所述待跟踪目标静止,且所述无人机与待跟踪目标之间的距离始终为所述目标距离。According to the target position coordinates, movement speed and target distance of the target to be tracked, the drone is controlled to track and photograph the target to be tracked, so that the drone is stationary relative to the target to be tracked, and the The distance between the drone and the target to be tracked is always the target distance.
在一实施例中,所述根据所述目标位置坐标控制所述无人机对所述待跟踪目标进行跟踪拍摄,包括:In one embodiment, the controlling the UAV to track and photograph the target to be tracked according to the target position coordinates includes:
根据所述目标位置坐标,确定所述无人机上的拍摄装置的目标姿态;Determine the target posture of the photographing device on the UAV according to the target position coordinates;
根据所述目标姿态控制所述无人机对所述待跟踪目标进行跟踪拍摄,使得所述待跟踪目标始终位于所述拍摄装置的拍摄画面的中央位置。The UAV is controlled to track and photograph the target to be tracked according to the target posture, so that the target to be tracked is always located at the center of the photographed image of the photographing device.
在一实施例中,所述根据所述第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄,包括:In one embodiment, the tracking and shooting of the target to be tracked according to the first target detection information and the second target detection information includes:
当确定所述当前拍摄图像包括多个目标对象时,根据多个所述目标对象的第一目标检测信息从多个所述目标对象中确定所述待跟踪目标;When it is determined that the currently captured image includes a plurality of target objects, the target to be tracked is determined from the plurality of target objects according to the first target detection information of the plurality of target objects;
根据所述待跟踪目标的第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄。The target to be tracked is tracked and photographed according to the first target detection information and the second target detection information of the target to be tracked.
在一实施例中,所述根据多个所述目标对象的第一目标检测信息从多个所述目标对象中确定所述待跟踪目标,包括:In an embodiment, the determining the target to be tracked from the plurality of target objects according to the first target detection information of the plurality of target objects includes:
根据多个所述目标对象的第一目标检测信息,确定多个所述目标对象的运动信息;determining the motion information of a plurality of the target objects according to the first target detection information of the plurality of target objects;
根据所述待跟踪目标的第一目标检测信息确定所述待跟踪目标的运动信息;Determine the motion information of the to-be-tracked target according to the first target detection information of the to-be-tracked target;
根据所述待跟踪目标的运动信息和多个所述目标对象的运动信息,计算所述待跟踪目标与多个所述目标对象的相似度;According to the motion information of the target to be tracked and the motion information of a plurality of the target objects, calculate the similarity between the target to be tracked and the plurality of target objects;
根据所述相似度从多个所述目标对象中确定所述待跟踪目标。The target to be tracked is determined from the plurality of target objects according to the similarity.
在一实施例中,所述运动信息包括位置信息和/或速度信息;所述相似度包括位置相似度和/或速度相似度。In one embodiment, the motion information includes position information and/or velocity information; and the similarity includes position similarity and/or velocity similarity.
在一实施例中,所述根据所述相似度从多个所述目标对象中确定所述待跟踪目标,包括:In an embodiment, the determining the target to be tracked from the plurality of target objects according to the similarity includes:
根据所述位置相似度和/或速度相似度,从多个所述目标对象中确定所述待跟踪目标。The target to be tracked is determined from the plurality of target objects according to the position similarity and/or the speed similarity.
在一实施例中,所述根据所述相似度从多个所述目标对象中确定所述待跟踪目标,包括:In an embodiment, the determining the target to be tracked from the plurality of target objects according to the similarity includes:
获取所述位置相似度对应的第一预设权重,以及所述速度相似度对应的第二预设权重;obtaining a first preset weight corresponding to the position similarity, and a second preset weight corresponding to the speed similarity;
根据所述位置相似度、速度相似度、第一预设权重和第二预设权重,从多个所述目标对象中确定所述待跟踪目标。The target to be tracked is determined from the plurality of target objects according to the position similarity, the speed similarity, the first preset weight and the second preset weight.
在一实施例中,所述根据所述相似度从多个所述目标对象中确定所述待跟踪目标,包括:In an embodiment, the determining the target to be tracked from the plurality of target objects according to the similarity includes:
根据所述当前拍摄图像确定所述待跟踪目标的图像特征;Determine the image feature of the target to be tracked according to the current captured image;
根据所述相似度和所述待跟踪目标的图像特征,从多个所述目标对象中确定所述待跟踪目标。The to-be-tracked target is determined from a plurality of the target objects according to the similarity and the image feature of the to-be-tracked target.
在一实施例中,所述根据所述相似度和所述待跟踪目标的图像特征,从多个所述目标对象中确定所述待跟踪目标,包括:In an embodiment, the determining the target to be tracked from a plurality of the target objects according to the similarity and the image feature of the target to be tracked includes:
根据所述待跟踪目标的图像特征从多个所述目标对象中,确定与所述待跟踪目标相似的目标对象;Determine a target object similar to the to-be-tracked target from a plurality of the target objects according to the image feature of the to-be-tracked target;
根据所述相似度从与所述待跟踪目标相似的目标对象中,确定所述待跟踪目标。The target to be tracked is determined from target objects similar to the target to be tracked according to the similarity.
在一实施例中,所述根据所述相似度从多个所述目标对象中确定所述待跟踪目标,包括:In an embodiment, the determining the target to be tracked from the plurality of target objects according to the similarity includes:
根据所述相似度和所述待跟踪目标的Reid特征,从多个所述目标对象中确定所述待跟踪目标;According to the similarity and the Reid feature of the target to be tracked, the target to be tracked is determined from a plurality of the target objects;
其中,所述Reid特征为采用行人重识别技术从所述当前拍摄图像识别出的所述待跟踪目标的特征。Wherein, the Reid feature is the feature of the target to be tracked identified from the currently captured image using the pedestrian re-identification technology.
在一实施例中,所述根据多个所述目标对象的第一目标检测信息从多个所述目标对象中确定所述待跟踪目标之前,还包括:In an embodiment, before determining the target to be tracked from the plurality of target objects according to the first target detection information of the plurality of target objects, the method further includes:
当确定所述当前拍摄图像包括多个目标对象时,根据所述当前拍摄图像,获取所述待跟踪目标的图像特征和多个所述目标对象的图像特征;When it is determined that the currently captured image includes multiple target objects, acquire image features of the target to be tracked and image features of multiple target objects according to the current captured image;
根据所述待跟踪目标的图像特征和多个所述目标对象的图像特征,确定多个所述目标对象中是否存在与所述待跟踪目标相似的目标对象;According to the image features of the target to be tracked and the image features of a plurality of the target objects, determine whether there is a target object similar to the target to be tracked in the plurality of target objects;
当确定多个所述目标对象中存在至少两个与所述待跟踪目标相似的目标对象时,根据多个所述目标对象的第一目标检测信息从多个所述目标对象中确定所述待跟踪目标。When it is determined that there are at least two target objects similar to the target to be tracked in the plurality of target objects, the target object to be tracked is determined from the plurality of target objects according to the first target detection information of the plurality of target objects Track the target.
需要说明的是,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的目标跟踪装置的具体工作过程,可以参考前述目标跟踪方 法实施例中的对应过程,在此不再赘述。It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of the description, for the specific working process of the target tracking device described above, reference may be made to the corresponding process in the above-mentioned embodiment of the target tracking method. Repeat.
请参阅图8,图8是本申请实施例提供的一种无人机的结构示意性框图。Please refer to FIG. 8. FIG. 8 is a schematic structural block diagram of an unmanned aerial vehicle provided by an embodiment of the present application.
如图8所示,该无人机400包括处理器401、存储器402和拍摄装置403,处理器401、存储器402和拍摄装置403通过总线404连接,该总线404比如为I2C(Inter-integrated Circuit)总线。其中,无人机可以为旋翼型无人机,例如四旋翼无人机、六旋翼无人机、八旋翼无人机,也可以是固定翼无人机,还可以是旋翼型与固定翼无人机的组合,在此不作限定。As shown in FIG. 8 , the drone 400 includes a processor 401, a memory 402, and a photographing device 403. The processor 401, the memory 402, and the photographing device 403 are connected through a bus 404, such as I2C (Inter-integrated Circuit). bus. Among them, the UAV can be a rotary-wing UAV, such as a quad-rotor UAV, a hexa-rotor UAV, an octa-rotor UAV, or a fixed-wing UAV, or a rotary-wing and fixed-wing unmanned aerial vehicle. The combination of man and machine is not limited here.
具体地,处理器401可以是微控制单元(Micro-controller Unit,MCU)、中央处理单元(Central Processing Unit,CPU)或数字信号处理器(Digital Signal Processor,DSP)等。Specifically, the processor 401 may be a micro-controller unit (Micro-controller Unit, MCU), a central processing unit (Central Processing Unit, CPU), or a digital signal processor (Digital Signal Processor, DSP) or the like.
具体地,存储器402可以是Flash芯片、只读存储器(ROM,Read-Only Memory)磁盘、光盘、U盘或移动硬盘等。Specifically, the memory 402 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) magnetic disk, an optical disk, a U disk, or a mobile hard disk, and the like.
其中,所述处理器401用于运行存储在存储器402中的计算机程序,并在执行所述计算机程序时实现如下步骤:Wherein, the processor 401 is used for running the computer program stored in the memory 402, and implements the following steps when executing the computer program:
获取所述拍摄装置拍摄待跟踪目标得到的当前拍摄图像;acquiring the current shot image obtained by the shooting device shooting the target to be tracked;
对所述当前拍摄图像中的所述待跟踪目标进行目标检测,得到所述待跟踪目标的第一目标检测信息和第二目标检测信息,其中,所述第一目标检测信息包括所述待跟踪目标在世界坐标系下的第一尺寸信息和所述待跟踪目标相对于所述无人机的角度信息,所述第二目标检测信息包括所述待跟踪目标在二维图像平面的位置信息和第二尺寸信息;Perform target detection on the target to be tracked in the currently captured image to obtain first target detection information and second target detection information of the target to be tracked, wherein the first target detection information includes the target to be tracked The first size information of the target in the world coordinate system and the angle information of the target to be tracked relative to the UAV, the second target detection information includes the position information of the target to be tracked on the two-dimensional image plane and second size information;
根据所述第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄。The target to be tracked is tracked and photographed according to the first target detection information and the second target detection information.
在一实施例中,所述对所述当前拍摄图像中的所述待跟踪目标进行目标检测,得到所述待跟踪目标的第一目标检测信息和第二目标检测信息,包括:In an embodiment, the performing target detection on the target to be tracked in the currently captured image to obtain first target detection information and second target detection information of the target to be tracked includes:
将所述当前拍摄图像输入预设的3D目标检测模型进行处理,得到所述待跟踪目标的第一目标检测信息;Inputting the currently captured image into a preset 3D target detection model for processing to obtain first target detection information of the target to be tracked;
将所述当前拍摄图像输入预设的2D目标检测模型进行处理,得到所述待跟踪目标的第二目标检测信息。The currently captured image is input into a preset 2D target detection model for processing, so as to obtain second target detection information of the target to be tracked.
在一实施例中,所述处理器还用于实现以下步骤:In one embodiment, the processor is further configured to implement the following steps:
获取第一训练样本数据,其中,所述第一训练样本数据包括多个第一图像以及每个所述第一图像中的待跟踪目标的第一目标检测信息;acquiring first training sample data, wherein the first training sample data includes a plurality of first images and first target detection information of the target to be tracked in each of the first images;
根据所述第一训练样本数据对第一神经网络模型进行迭代训练,直到迭代 训练后的第一神经网络模型收敛,得到所述3D目标检测模型。The first neural network model is iteratively trained according to the first training sample data, until the first neural network model after the iterative training converges, and the 3D target detection model is obtained.
在一实施例中,所述处理器还用于实现以下步骤:In one embodiment, the processor is further configured to implement the following steps:
获取第二训练样本数据,其中,所述第二训练样本数据包括多个第二图像以及每个所述第二图像中的待跟踪目标的第二目标检测信息;acquiring second training sample data, wherein the second training sample data includes a plurality of second images and second target detection information of the target to be tracked in each of the second images;
根据所述第二训练样本数据对第二神经网络模型进行迭代训练,直到迭代训练后的第二神经网络模型收敛,得到所述2D目标检测模型。The second neural network model is iteratively trained according to the second training sample data, until the iteratively trained second neural network model converges, and the 2D target detection model is obtained.
在一实施例中,所述第一神经网络模型包括卷积神经网络模型CNN、RCNN、Fast RCNN和Faster RCNN。In one embodiment, the first neural network model includes convolutional neural network models CNN, RCNN, Fast RCNN and Faster RCNN.
在一实施例中,所述待跟踪目标相对于所述无人机的角度信息包括所述待跟踪目标相对于所述无人机的yaw角、pitch角和roll角。In one embodiment, the angle information of the target to be tracked relative to the UAV includes a yaw angle, a pitch angle and a roll angle of the target to be tracked relative to the UAV.
在一实施例中,所述第一尺寸信息包括所述待跟踪目标在世界坐标系下的长度信息、宽度信息和/或高度信息,所述第二尺寸信息包括所述待跟踪目标在所述当前拍摄图像内的长度信息、宽度信息和/或高度信息。In one embodiment, the first size information includes length information, width information and/or height information of the target to be tracked in the world coordinate system, and the second size information includes the target to be tracked in the Length information, width information and/or height information in the currently captured image.
在一实施例中,所述根据所述第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄,包括:In one embodiment, the tracking and shooting of the target to be tracked according to the first target detection information and the second target detection information includes:
根据所述第一目标检测信息和第二目标检测信息,预测所述待跟踪目标在世界坐标系下的目标位置坐标;Predicting the target position coordinates of the target to be tracked in the world coordinate system according to the first target detection information and the second target detection information;
根据所述目标位置坐标控制所述无人机对所述待跟踪目标进行跟踪拍摄。The UAV is controlled to track and photograph the target to be tracked according to the target position coordinates.
在一实施例中,所述根据所述第一目标检测信息和第二目标检测信息,预测所述待跟踪目标在世界坐标系下的目标位置坐标,包括:In one embodiment, predicting the target position coordinates of the target to be tracked in the world coordinate system according to the first target detection information and the second target detection information includes:
根据所述第一目标检测信息和预设目标跟踪算法,预测所述待跟踪目标在世界坐标系下的第一候选位置坐标;According to the first target detection information and the preset target tracking algorithm, predict the first candidate position coordinates of the target to be tracked in the world coordinate system;
根据所述第二目标检测信息和预设目标跟踪算法,预测所述待跟踪目标在世界坐标系下的第二候选位置坐标;According to the second target detection information and the preset target tracking algorithm, predict the second candidate position coordinates of the target to be tracked in the world coordinate system;
根据所述第一候选位置坐标和第二候选位置坐标,确定所述待跟踪目标在世界坐标系下的目标位置坐标。According to the first candidate position coordinates and the second candidate position coordinates, the target position coordinates of the to-be-tracked target in the world coordinate system are determined.
在一实施例中,所述第二目标检测信息包括所述待跟踪目标在相机坐标系下的位置信息,所述根据所述目标位置坐标控制所述无人机对所述待跟踪目标进行跟踪拍摄,包括:In one embodiment, the second target detection information includes position information of the target to be tracked in a camera coordinate system, and the drone is controlled to track the target to be tracked according to the target position coordinates. filming, including:
将所述待跟踪目标在相机坐标系下的位置信息转换为所述待跟踪目标在世界坐标系下的第一位置信息;Converting the position information of the target to be tracked under the camera coordinate system into the first position information of the target to be tracked under the world coordinate system;
获取所述无人机的第二位置信息,并根据所述第一位置信息和第二位置信 息,确定所述待跟踪目标与所述无人机之间的目标距离;Obtain the second position information of the unmanned aerial vehicle, and determine the target distance between the target to be tracked and the unmanned aerial vehicle according to the first position information and the second position information;
根据所述目标位置坐标和目标距离,控制所述无人机对所述待跟踪目标进行跟踪拍摄,使得所述无人机与待跟踪目标之间的距离始终为所述目标距离。According to the target position coordinates and the target distance, the drone is controlled to track and photograph the target to be tracked, so that the distance between the drone and the target to be tracked is always the target distance.
在一实施例中,所述根据所述目标位置坐标和目标距离,控制所述无人机对所述待跟踪目标进行跟踪拍摄,使得所述无人机与待跟踪目标之间的距离始终为所述目标距离,包括:In one embodiment, the UAV is controlled to track and photograph the target to be tracked according to the target position coordinates and the target distance, so that the distance between the UAV and the target to be tracked is always The target distance includes:
根据所述第一目标检测信息,确定所述待跟踪目标的运动速度;determining the movement speed of the target to be tracked according to the first target detection information;
根据所述待跟踪目标的目标位置坐标、运动速度和目标距离,控制所述无人机对所述待跟踪目标进行跟踪拍摄,使得所述无人机相对所述待跟踪目标静止,且所述无人机与待跟踪目标之间的距离始终为所述目标距离。According to the target position coordinates, movement speed and target distance of the target to be tracked, the drone is controlled to track and photograph the target to be tracked, so that the drone is stationary relative to the target to be tracked, and the The distance between the drone and the target to be tracked is always the target distance.
在一实施例中,所述根据所述目标位置坐标控制所述无人机对所述待跟踪目标进行跟踪拍摄,包括:In one embodiment, the controlling the UAV to track and photograph the target to be tracked according to the target position coordinates includes:
根据所述目标位置坐标,确定所述无人机上的拍摄装置的目标姿态;Determine the target posture of the photographing device on the UAV according to the target position coordinates;
根据所述目标姿态控制所述无人机对所述待跟踪目标进行跟踪拍摄,使得所述待跟踪目标始终位于所述拍摄装置的拍摄画面的中央位置。The UAV is controlled to track and photograph the target to be tracked according to the target posture, so that the target to be tracked is always located at the center of the photographed image of the photographing device.
在一实施例中,所述根据所述第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄,包括:In one embodiment, the tracking and shooting of the target to be tracked according to the first target detection information and the second target detection information includes:
当确定所述当前拍摄图像包括多个目标对象时,根据多个所述目标对象的第一目标检测信息从多个所述目标对象中确定所述待跟踪目标;When it is determined that the currently captured image includes a plurality of target objects, the target to be tracked is determined from the plurality of target objects according to the first target detection information of the plurality of target objects;
根据所述待跟踪目标的第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄。The target to be tracked is tracked and photographed according to the first target detection information and the second target detection information of the target to be tracked.
在一实施例中,所述根据多个所述目标对象的第一目标检测信息从多个所述目标对象中确定所述待跟踪目标,包括:In an embodiment, the determining the target to be tracked from the plurality of target objects according to the first target detection information of the plurality of target objects includes:
根据多个所述目标对象的第一目标检测信息,确定多个所述目标对象的运动信息;determining the motion information of a plurality of the target objects according to the first target detection information of the plurality of target objects;
根据所述待跟踪目标的第一目标检测信息确定所述待跟踪目标的运动信息;Determine the motion information of the to-be-tracked target according to the first target detection information of the to-be-tracked target;
根据所述待跟踪目标的运动信息和多个所述目标对象的运动信息,计算所述待跟踪目标与多个所述目标对象的相似度;According to the motion information of the target to be tracked and the motion information of a plurality of the target objects, calculate the similarity between the target to be tracked and the plurality of target objects;
根据所述相似度从多个所述目标对象中确定所述待跟踪目标。The target to be tracked is determined from the plurality of target objects according to the similarity.
在一实施例中,所述运动信息包括位置信息和/或速度信息;所述相似度包括位置相似度和/或速度相似度。In one embodiment, the motion information includes position information and/or velocity information; and the similarity includes position similarity and/or velocity similarity.
在一实施例中,所述根据所述相似度从多个所述目标对象中确定所述待跟 踪目标,包括:In one embodiment, the determining the target to be tracked from a plurality of the target objects according to the similarity includes:
根据所述位置相似度和/或速度相似度,从多个所述目标对象中确定所述待跟踪目标。The target to be tracked is determined from the plurality of target objects according to the position similarity and/or the speed similarity.
在一实施例中,所述根据所述相似度从多个所述目标对象中确定所述待跟踪目标,包括:In an embodiment, the determining the target to be tracked from the plurality of target objects according to the similarity includes:
获取所述位置相似度对应的第一预设权重,以及所述速度相似度对应的第二预设权重;obtaining a first preset weight corresponding to the position similarity, and a second preset weight corresponding to the speed similarity;
根据所述位置相似度、速度相似度、第一预设权重和第二预设权重,从多个所述目标对象中确定所述待跟踪目标。The target to be tracked is determined from the plurality of target objects according to the position similarity, the speed similarity, the first preset weight and the second preset weight.
在一实施例中,所述根据所述相似度从多个所述目标对象中确定所述待跟踪目标,包括:In an embodiment, the determining the target to be tracked from the plurality of target objects according to the similarity includes:
根据所述当前拍摄图像确定所述待跟踪目标的图像特征;Determine the image feature of the target to be tracked according to the current captured image;
根据所述相似度和所述待跟踪目标的图像特征,从多个所述目标对象中确定所述待跟踪目标。The to-be-tracked target is determined from a plurality of the target objects according to the similarity and the image feature of the to-be-tracked target.
在一实施例中,所述根据所述相似度和所述待跟踪目标的图像特征,从多个所述目标对象中确定所述待跟踪目标,包括:In an embodiment, the determining the target to be tracked from a plurality of the target objects according to the similarity and the image feature of the target to be tracked includes:
根据所述待跟踪目标的图像特征从多个所述目标对象中,确定与所述待跟踪目标相似的目标对象;Determine a target object similar to the to-be-tracked target from a plurality of the target objects according to the image feature of the to-be-tracked target;
根据所述相似度从与所述待跟踪目标相似的目标对象中,确定所述待跟踪目标。The target to be tracked is determined from target objects similar to the target to be tracked according to the similarity.
在一实施例中,所述根据所述相似度从多个所述目标对象中确定所述待跟踪目标,包括:In an embodiment, the determining the target to be tracked from the plurality of target objects according to the similarity includes:
根据所述相似度和所述待跟踪目标的Reid特征,从多个所述目标对象中确定所述待跟踪目标;According to the similarity and the Reid feature of the target to be tracked, the target to be tracked is determined from a plurality of the target objects;
其中,所述Reid特征为采用行人重识别技术从所述当前拍摄图像识别出的所述待跟踪目标的特征。Wherein, the Reid feature is the feature of the target to be tracked identified from the currently captured image using the pedestrian re-identification technology.
在一实施例中,所述根据多个所述目标对象的第一目标检测信息从多个所述目标对象中确定所述待跟踪目标之前,还包括:In an embodiment, before determining the target to be tracked from the plurality of target objects according to the first target detection information of the plurality of target objects, the method further includes:
当确定所述当前拍摄图像包括多个目标对象时,根据所述当前拍摄图像,获取所述待跟踪目标的图像特征和多个所述目标对象的图像特征;When it is determined that the currently captured image includes multiple target objects, acquire image features of the target to be tracked and image features of multiple target objects according to the current captured image;
根据所述待跟踪目标的图像特征和多个所述目标对象的图像特征,确定多个所述目标对象中是否存在与所述待跟踪目标相似的目标对象;According to the image features of the target to be tracked and the image features of a plurality of the target objects, determine whether there is a target object similar to the target to be tracked in the plurality of target objects;
当确定多个所述目标对象中存在至少两个与所述待跟踪目标相似的目标对象时,根据多个所述目标对象的第一目标检测信息从多个所述目标对象中确定所述待跟踪目标。When it is determined that there are at least two target objects similar to the target to be tracked in the plurality of target objects, the target object to be tracked is determined from the plurality of target objects according to the first target detection information of the plurality of target objects Track the target.
需要说明的是,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的无人机的具体工作过程,可以参考前述目标跟踪方法实施例中的对应过程,在此不再赘述。It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the UAV described above may refer to the corresponding process in the foregoing embodiment of the target tracking method. Repeat.
本申请实施例还提供了一种控制系统,所述控制系统包括如上述实施例提供的任一项所述的无人机和控制终端,所述控制终端用于控制无人机飞行。比如,如图1所示,控制系统100包括无人机120和控制终端110,控制终端110用于控制无人机120飞行,用于对目标进行跟踪。An embodiment of the present application further provides a control system, where the control system includes the unmanned aerial vehicle according to any one of the foregoing embodiments and a control terminal, where the control terminal is used to control the flight of the unmanned aerial vehicle. For example, as shown in FIG. 1 , the control system 100 includes an unmanned aerial vehicle 120 and a control terminal 110 , and the control terminal 110 is used to control the flying of the unmanned aerial vehicle 120 to track a target.
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序中包括程序指令,所述处理器执行所述程序指令,实现上述实施例提供的目标跟踪方法的步骤。Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, the computer program includes program instructions, and the processor executes the program instructions, so as to realize the provision of the above embodiments. The steps of the target tracking method.
其中,所述计算机可读存储介质可以是前述任一实施例所述的无人机的内部存储单元,例如所述无人机的硬盘或内存。所述计算机可读存储介质也可以是所述无人机的外部存储设备,例如所述无人机上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。Wherein, the computer-readable storage medium may be an internal storage unit of the UAV described in any of the foregoing embodiments, such as a hard disk or a memory of the UAV. The computer-readable storage medium can also be an external storage device of the drone, such as a plug-in hard disk equipped on the drone, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, flash memory card (Flash Card), etc.
应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should be understood that the terms used in the specification of the present application herein are for the purpose of describing particular embodiments only and are not intended to limit the present application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural unless the context clearly dictates otherwise.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It will also be understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalents within the technical scope disclosed in the present application. Modifications or substitutions shall be covered by the protection scope of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (65)

  1. 一种目标跟踪方法,其特征在于,应用于无人机,所述无人机包括拍摄装置,所述方法包括:A target tracking method, characterized in that it is applied to an unmanned aerial vehicle, wherein the unmanned aerial vehicle comprises a photographing device, and the method comprises:
    获取所述拍摄装置拍摄待跟踪目标得到的当前拍摄图像;acquiring the current shot image obtained by the shooting device shooting the target to be tracked;
    对所述当前拍摄图像中的所述待跟踪目标进行目标检测,得到所述待跟踪目标的第一目标检测信息和第二目标检测信息,其中,所述第一目标检测信息包括所述待跟踪目标在世界坐标系下的第一尺寸信息和所述待跟踪目标相对于所述无人机的角度信息,所述第二目标检测信息包括所述待跟踪目标在所述当前拍摄图像内的位置信息和第二尺寸信息;Perform target detection on the target to be tracked in the currently captured image to obtain first target detection information and second target detection information of the target to be tracked, wherein the first target detection information includes the target to be tracked The first size information of the target in the world coordinate system and the angle information of the target to be tracked relative to the UAV, the second target detection information includes the position of the target to be tracked in the current captured image information and second size information;
    根据所述第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄。The target to be tracked is tracked and photographed according to the first target detection information and the second target detection information.
  2. 根据权利要求1所述的目标跟踪方法,其特征在于,所述对所述当前拍摄图像中的所述待跟踪目标进行目标检测,得到所述待跟踪目标的第一目标检测信息和第二目标检测信息,包括:The target tracking method according to claim 1, wherein the target detection is performed on the target to be tracked in the currently captured image to obtain first target detection information and a second target of the target to be tracked. Detection information, including:
    将所述当前拍摄图像输入预设的3D目标检测模型进行处理,得到所述待跟踪目标的第一目标检测信息;Inputting the currently captured image into a preset 3D target detection model for processing to obtain first target detection information of the target to be tracked;
    将所述当前拍摄图像输入预设的2D目标检测模型进行处理,得到所述待跟踪目标的第二目标检测信息。The currently captured image is input into a preset 2D target detection model for processing, so as to obtain second target detection information of the target to be tracked.
  3. 根据权利要求2所述的目标跟踪方法,其特征在于,所述方法还包括:The target tracking method according to claim 2, wherein the method further comprises:
    获取第一训练样本数据,其中,所述第一训练样本数据包括多个第一图像以及每个所述第一图像中的待跟踪目标的第一目标检测信息;acquiring first training sample data, wherein the first training sample data includes a plurality of first images and first target detection information of the target to be tracked in each of the first images;
    根据所述第一训练样本数据对第一神经网络模型进行迭代训练,直到迭代训练后的第一神经网络模型收敛,得到所述3D目标检测模型。The first neural network model is iteratively trained according to the first training sample data, until the iteratively trained first neural network model converges, and the 3D target detection model is obtained.
  4. 根据权利要求2所述的目标跟踪方法,其特征在于,所述方法还包括:The target tracking method according to claim 2, wherein the method further comprises:
    获取第二训练样本数据,其中,所述第二训练样本数据包括多个第二图像以及每个所述第二图像中的待跟踪目标的第二目标检测信息;acquiring second training sample data, wherein the second training sample data includes a plurality of second images and second target detection information of the target to be tracked in each of the second images;
    根据所述第二训练样本数据对第二神经网络模型进行迭代训练,直到迭代训练后的第二神经网络模型收敛,得到所述2D目标检测模型。The second neural network model is iteratively trained according to the second training sample data, until the iteratively trained second neural network model converges, and the 2D target detection model is obtained.
  5. 根据权利要求3所述的目标跟踪方法,其特征在于,所述第一神经网络模型包括卷积神经网络模型CNN、RCNN、Fast RCNN和Faster RCNN。The target tracking method according to claim 3, wherein the first neural network model comprises a convolutional neural network model CNN, RCNN, Fast RCNN and Faster RCNN.
  6. 根据权利要求1所述的目标跟踪方法,其特征在于,所述待跟踪目标相对于所述无人机的角度信息包括所述待跟踪目标相对于所述无人机的yaw角、pitch角和roll角。The target tracking method according to claim 1, wherein the angle information of the target to be tracked relative to the drone comprises a yaw angle, a pitch angle and a pitch angle of the target to be tracked relative to the drone. roll angle.
  7. 根据权利要求1所述的目标跟踪方法,其特征在于,所述第一尺寸信息包括所述待跟踪目标在世界坐标系下的长度信息、宽度信息和/或高度信息,所述第二尺寸信息包括所述待跟踪目标在所述当前拍摄图像内的长度信息、宽度信息和/或高度信息。The target tracking method according to claim 1, wherein the first size information includes length information, width information and/or height information of the target to be tracked in a world coordinate system, and the second size information Including length information, width information and/or height information of the target to be tracked in the current captured image.
  8. 根据权利要求1至7中任一项所述的目标跟踪方法,其特征在于,所述根据所述第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄,包括:The target tracking method according to any one of claims 1 to 7, wherein the tracking and photographing the target to be tracked according to the first target detection information and the second target detection information comprises:
    根据所述第一目标检测信息和第二目标检测信息,预测所述待跟踪目标在世界坐标系下的目标位置坐标;Predicting the target position coordinates of the target to be tracked in the world coordinate system according to the first target detection information and the second target detection information;
    根据所述目标位置坐标控制所述无人机对所述待跟踪目标进行跟踪拍摄。The drone is controlled to track and photograph the target to be tracked according to the target position coordinates.
  9. 根据权利要求8所述的目标跟踪方法,其特征在于,所述根据所述第一目标检测信息和第二目标检测信息,预测所述待跟踪目标在世界坐标系下的目标位置坐标,包括:The target tracking method according to claim 8, wherein the predicting the target position coordinates of the target to be tracked in the world coordinate system according to the first target detection information and the second target detection information comprises:
    根据所述第一目标检测信息和预设目标跟踪算法,预测所述待跟踪目标在世界坐标系下的第一候选位置坐标;According to the first target detection information and the preset target tracking algorithm, predict the first candidate position coordinates of the target to be tracked in the world coordinate system;
    根据所述第二目标检测信息和预设目标跟踪算法,预测所述待跟踪目标在世界坐标系下的第二候选位置坐标;According to the second target detection information and the preset target tracking algorithm, predict the second candidate position coordinates of the target to be tracked in the world coordinate system;
    根据所述第一候选位置坐标和第二候选位置坐标,确定所述待跟踪目标在世界坐标系下的目标位置坐标。According to the first candidate position coordinates and the second candidate position coordinates, the target position coordinates of the to-be-tracked target in the world coordinate system are determined.
  10. 根据权利要求8所述的目标跟踪方法,其特征在于,所述第二目标检测信息包括所述待跟踪目标在相机坐标系下的位置信息,所述根据所述目标位置坐标控制所述无人机对所述待跟踪目标进行跟踪拍摄,包括:The target tracking method according to claim 8, wherein the second target detection information includes position information of the target to be tracked in a camera coordinate system, and the control of the unmanned person according to the target position coordinates The camera tracks and shoots the target to be tracked, including:
    将所述待跟踪目标在相机坐标系下的位置信息转换为所述待跟踪目标在世界坐标系下的第一位置信息;Converting the position information of the target to be tracked under the camera coordinate system into the first position information of the target to be tracked under the world coordinate system;
    获取所述无人机的第二位置信息,并根据所述第一位置信息和第二位置信息,确定所述待跟踪目标与所述无人机之间的目标距离;Acquiring the second position information of the UAV, and determining the target distance between the target to be tracked and the UAV according to the first position information and the second position information;
    根据所述目标位置坐标和目标距离,控制所述无人机对所述待跟踪目标进行跟踪拍摄,使得所述无人机与待跟踪目标之间的距离始终为所述目标距离。According to the target position coordinates and the target distance, the drone is controlled to track and photograph the target to be tracked, so that the distance between the drone and the target to be tracked is always the target distance.
  11. 根据权利要求10所述的目标跟踪方法,其特征在于,所述根据所述目 标位置坐标和目标距离,控制所述无人机对所述待跟踪目标进行跟踪拍摄,使得所述无人机与待跟踪目标之间的距离始终为所述目标距离,包括:The target tracking method according to claim 10, wherein, according to the target position coordinates and target distance, the drone is controlled to track and photograph the to-be-tracked target, so that the drone is connected to the target. The distance between the targets to be tracked is always the target distance, including:
    根据所述第一目标检测信息,确定所述待跟踪目标的运动速度;determining the movement speed of the target to be tracked according to the first target detection information;
    根据所述待跟踪目标的目标位置坐标、运动速度和目标距离,控制所述无人机对所述待跟踪目标进行跟踪拍摄,使得所述无人机相对所述待跟踪目标静止,且所述无人机与待跟踪目标之间的距离始终为所述目标距离。According to the target position coordinates, movement speed and target distance of the target to be tracked, the drone is controlled to track and photograph the target to be tracked, so that the drone is stationary relative to the target to be tracked, and the The distance between the drone and the target to be tracked is always the target distance.
  12. 根据权利要求8所述的目标跟踪方法,其特征在于,所述根据所述目标位置坐标控制所述无人机对所述待跟踪目标进行跟踪拍摄,包括:The target tracking method according to claim 8, wherein the controlling the UAV to track and photograph the target to be tracked according to the target position coordinates comprises:
    根据所述目标位置坐标,确定所述无人机上的拍摄装置的目标姿态;Determine the target posture of the photographing device on the UAV according to the target position coordinates;
    根据所述目标姿态控制所述无人机对所述待跟踪目标进行跟踪拍摄,使得所述待跟踪目标始终位于所述拍摄装置的拍摄画面的中央位置。The UAV is controlled to track and photograph the target to be tracked according to the target posture, so that the target to be tracked is always located at the center of the photographed image of the photographing device.
  13. 根据权利要求1至7中任一项所述的目标跟踪方法,其特征在于,所述根据所述第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄,包括:The target tracking method according to any one of claims 1 to 7, wherein the tracking and photographing the target to be tracked according to the first target detection information and the second target detection information comprises:
    当确定所述当前拍摄图像包括多个目标对象时,根据多个所述目标对象的第一目标检测信息从多个所述目标对象中确定所述待跟踪目标;When it is determined that the currently captured image includes a plurality of target objects, the target to be tracked is determined from the plurality of target objects according to the first target detection information of the plurality of target objects;
    根据所述待跟踪目标的第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄。The target to be tracked is tracked and photographed according to the first target detection information and the second target detection information of the target to be tracked.
  14. 根据权利要求13所述的目标跟踪方法,其特征在于,所述根据多个所述目标对象的第一目标检测信息从多个所述目标对象中确定所述待跟踪目标,包括:The target tracking method according to claim 13, wherein the determining the target to be tracked from the plurality of target objects according to the first target detection information of the plurality of target objects comprises:
    根据多个所述目标对象的第一目标检测信息,确定多个所述目标对象的运动信息;determining the motion information of a plurality of the target objects according to the first target detection information of the plurality of target objects;
    根据所述待跟踪目标的第一目标检测信息确定所述待跟踪目标的运动信息;Determine the motion information of the to-be-tracked target according to the first target detection information of the to-be-tracked target;
    根据所述待跟踪目标的运动信息和多个所述目标对象的运动信息,计算所述待跟踪目标与多个所述目标对象的相似度;According to the motion information of the target to be tracked and the motion information of a plurality of the target objects, calculate the similarity between the target to be tracked and the plurality of target objects;
    根据所述相似度从多个所述目标对象中确定所述待跟踪目标。The target to be tracked is determined from the plurality of target objects according to the similarity.
  15. 根据权利要求14所述的目标跟踪方法,其特征在于,所述运动信息包括位置信息和/或速度信息;所述相似度包括位置相似度和/或速度相似度。The target tracking method according to claim 14, wherein the motion information includes position information and/or velocity information; and the similarity includes position similarity and/or velocity similarity.
  16. 根据权利要求15所述的目标跟踪方法,其特征在于,所述根据所述相似度从多个所述目标对象中确定所述待跟踪目标,包括:The target tracking method according to claim 15, wherein the determining the target to be tracked from a plurality of the target objects according to the similarity comprises:
    根据所述位置相似度和/或速度相似度,从多个所述目标对象中确定所述待 跟踪目标。The target to be tracked is determined from the plurality of target objects according to the position similarity and/or the speed similarity.
  17. 根据权利要求15所述的目标跟踪方法,其特征在于,所述根据所述相似度从多个所述目标对象中确定所述待跟踪目标,包括:The target tracking method according to claim 15, wherein the determining the target to be tracked from a plurality of the target objects according to the similarity comprises:
    获取所述位置相似度对应的第一预设权重,以及所述速度相似度对应的第二预设权重;obtaining a first preset weight corresponding to the position similarity, and a second preset weight corresponding to the speed similarity;
    根据所述位置相似度、速度相似度、第一预设权重和第二预设权重,从多个所述目标对象中确定所述待跟踪目标。The target to be tracked is determined from the plurality of target objects according to the position similarity, the speed similarity, the first preset weight and the second preset weight.
  18. 根据权利要求14所述的目标跟踪方法,其特征在于,所述根据所述相似度从多个所述目标对象中确定所述待跟踪目标,包括:The target tracking method according to claim 14, wherein the determining the target to be tracked from the plurality of target objects according to the similarity comprises:
    根据所述当前拍摄图像确定所述待跟踪目标的图像特征;Determine the image feature of the target to be tracked according to the current captured image;
    根据所述相似度和所述待跟踪目标的图像特征,从多个所述目标对象中确定所述待跟踪目标。The to-be-tracked target is determined from a plurality of the target objects according to the similarity and the image feature of the to-be-tracked target.
  19. 根据权利要求18所述的目标跟踪方法,其特征在于,所述根据所述相似度和所述待跟踪目标的图像特征,从多个所述目标对象中确定所述待跟踪目标,包括:The target tracking method according to claim 18, wherein the determining the target to be tracked from a plurality of the target objects according to the similarity and the image feature of the target to be tracked comprises:
    根据所述待跟踪目标的图像特征从多个所述目标对象中,确定与所述待跟踪目标相似的目标对象;Determine a target object similar to the to-be-tracked target from a plurality of the target objects according to the image feature of the to-be-tracked target;
    根据所述相似度从与所述待跟踪目标相似的目标对象中,确定所述待跟踪目标。The target to be tracked is determined from target objects similar to the target to be tracked according to the similarity.
  20. 根据权利要求14所述的目标跟踪方法,其特征在于,所述根据所述相似度从多个所述目标对象中确定所述待跟踪目标,包括:The target tracking method according to claim 14, wherein the determining the target to be tracked from the plurality of target objects according to the similarity comprises:
    根据所述相似度和所述待跟踪目标的Reid特征,从多个所述目标对象中确定所述待跟踪目标;According to the similarity and the Reid feature of the target to be tracked, the target to be tracked is determined from a plurality of the target objects;
    其中,所述Reid特征为采用行人重识别技术从所述当前拍摄图像识别出的所述待跟踪目标的特征。Wherein, the Reid feature is the feature of the target to be tracked identified from the currently captured image using the pedestrian re-identification technology.
  21. 根据权利要求13所述的目标跟踪方法,其特征在于,所述根据多个所述目标对象的第一目标检测信息从多个所述目标对象中确定所述待跟踪目标之前,还包括:The target tracking method according to claim 13, wherein before determining the target to be tracked from the plurality of target objects according to the first target detection information of the plurality of target objects, the method further comprises:
    当确定所述当前拍摄图像包括多个目标对象时,根据所述当前拍摄图像,获取所述待跟踪目标的图像特征和多个所述目标对象的图像特征;When it is determined that the currently captured image includes multiple target objects, acquire image features of the target to be tracked and image features of multiple target objects according to the current captured image;
    根据所述待跟踪目标的图像特征和多个所述目标对象的图像特征,确定多个所述目标对象中是否存在与所述待跟踪目标相似的目标对象;According to the image features of the target to be tracked and the image features of a plurality of the target objects, determine whether there is a target object similar to the target to be tracked in the plurality of target objects;
    当确定多个所述目标对象中存在至少两个与所述待跟踪目标相似的目标对象时,根据多个所述目标对象的第一目标检测信息从多个所述目标对象中确定所述待跟踪目标。When it is determined that there are at least two target objects similar to the target to be tracked in the plurality of target objects, the target object to be tracked is determined from the plurality of target objects according to the first target detection information of the plurality of target objects Track the target.
  22. 一种目标跟踪装置,其特征在于,应用于无人机,所述无人机包括拍摄装置,所述目标跟踪装置包括存储器和处理器;A target tracking device, characterized in that it is applied to an unmanned aerial vehicle, wherein the unmanned aerial vehicle includes a photographing device, and the target tracking device includes a memory and a processor;
    所述存储器,用于存储计算机程序;the memory for storing computer programs;
    所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is configured to execute the computer program and implement the following steps when executing the computer program:
    获取所述拍摄装置拍摄待跟踪目标得到的当前拍摄图像;acquiring the current shot image obtained by the shooting device shooting the target to be tracked;
    对所述当前拍摄图像中的所述待跟踪目标进行目标检测,得到所述待跟踪目标的第一目标检测信息和第二目标检测信息,其中,所述第一目标检测信息包括所述待跟踪目标在世界坐标系下的第一尺寸信息和所述待跟踪目标相对于所述无人机的角度信息,所述第二目标检测信息包括所述待跟踪目标在二维图像平面的位置信息和第二尺寸信息;Perform target detection on the target to be tracked in the currently captured image to obtain first target detection information and second target detection information of the target to be tracked, wherein the first target detection information includes the target to be tracked The first size information of the target in the world coordinate system and the angle information of the target to be tracked relative to the UAV, the second target detection information includes the position information of the target to be tracked on the two-dimensional image plane and second size information;
    根据所述第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄。The target to be tracked is tracked and photographed according to the first target detection information and the second target detection information.
  23. 根据权利要求22所述的目标跟踪装置,其特征在于,所述对所述当前拍摄图像中的所述待跟踪目标进行目标检测,得到所述待跟踪目标的第一目标检测信息和第二目标检测信息,包括:The target tracking device according to claim 22, wherein, by performing target detection on the target to be tracked in the currently captured image, first target detection information and a second target of the target to be tracked are obtained. Inspection information, including:
    将所述当前拍摄图像输入预设的3D目标检测模型进行处理,得到所述待跟踪目标的第一目标检测信息;Inputting the currently captured image into a preset 3D target detection model for processing to obtain first target detection information of the target to be tracked;
    将所述当前拍摄图像输入预设的2D目标检测模型进行处理,得到所述待跟踪目标的第二目标检测信息。The currently captured image is input into a preset 2D target detection model for processing, so as to obtain second target detection information of the target to be tracked.
  24. 根据权利要求23所述的目标跟踪装置,其特征在于,所述处理器还用于实现以下步骤:The target tracking device according to claim 23, wherein the processor is further configured to implement the following steps:
    获取第一训练样本数据,其中,所述第一训练样本数据包括多个第一图像以及每个所述第一图像中的待跟踪目标的第一目标检测信息;acquiring first training sample data, wherein the first training sample data includes a plurality of first images and first target detection information of the target to be tracked in each of the first images;
    根据所述第一训练样本数据对第一神经网络模型进行迭代训练,直到迭代训练后的第一神经网络模型收敛,得到所述3D目标检测模型。The first neural network model is iteratively trained according to the first training sample data, until the iteratively trained first neural network model converges, and the 3D target detection model is obtained.
  25. 根据权利要求23所述的目标跟踪装置,其特征在于,所述处理器还用于实现以下步骤:The target tracking device according to claim 23, wherein the processor is further configured to implement the following steps:
    获取第二训练样本数据,其中,所述第二训练样本数据包括多个第二图像 以及每个所述第二图像中的待跟踪目标的第二目标检测信息;Obtain the second training sample data, wherein, the second training sample data includes a plurality of second images and the second target detection information of the target to be tracked in each of the second images;
    根据所述第二训练样本数据对第二神经网络模型进行迭代训练,直到迭代训练后的第二神经网络模型收敛,得到所述2D目标检测模型。The second neural network model is iteratively trained according to the second training sample data, until the iteratively trained second neural network model converges, and the 2D target detection model is obtained.
  26. 根据权利要求24所述的目标跟踪装置,其特征在于,所述第一神经网络模型包括卷积神经网络模型CNN、RCNN、Fast RCNN和Faster RCNN。The target tracking device according to claim 24, wherein the first neural network model comprises convolutional neural network models CNN, RCNN, Fast RCNN and Faster RCNN.
  27. 根据权利要求22所述的目标跟踪装置,其特征在于,所述待跟踪目标相对于所述无人机的角度信息包括所述待跟踪目标相对于所述无人机的yaw角、pitch角和roll角。The target tracking device according to claim 22, wherein the angle information of the target to be tracked relative to the UAV comprises a yaw angle, a pitch angle and a pitch angle of the target to be tracked relative to the UAV. roll angle.
  28. 根据权利要求22所述的目标跟踪装置,其特征在于,所述第一尺寸信息包括所述待跟踪目标在世界坐标系下的长度信息、宽度信息和/或高度信息,所述第二尺寸信息包括所述待跟踪目标在所述当前拍摄图像内的长度信息、宽度信息和/或高度信息。The target tracking device according to claim 22, wherein the first size information comprises length information, width information and/or height information of the target to be tracked in a world coordinate system, and the second size information Including length information, width information and/or height information of the target to be tracked in the current captured image.
  29. 根据权利要求22至28中任一项所述的目标跟踪装置,其特征在于,所述根据所述第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄,包括:The target tracking device according to any one of claims 22 to 28, wherein the tracking and photographing the target to be tracked according to the first target detection information and the second target detection information comprises:
    根据所述第一目标检测信息和第二目标检测信息,预测所述待跟踪目标在世界坐标系下的目标位置坐标;Predicting the target position coordinates of the target to be tracked in the world coordinate system according to the first target detection information and the second target detection information;
    根据所述目标位置坐标控制所述无人机对所述待跟踪目标进行跟踪拍摄。The UAV is controlled to track and photograph the target to be tracked according to the target position coordinates.
  30. 根据权利要求29所述的目标跟踪装置,其特征在于,所述根据所述第一目标检测信息和第二目标检测信息,预测所述待跟踪目标在世界坐标系下的目标位置坐标,包括:The target tracking device according to claim 29, wherein the predicting the target position coordinates of the target to be tracked in the world coordinate system according to the first target detection information and the second target detection information comprises:
    根据所述第一目标检测信息和预设目标跟踪算法,预测所述待跟踪目标在世界坐标系下的第一候选位置坐标;According to the first target detection information and the preset target tracking algorithm, predict the first candidate position coordinates of the target to be tracked in the world coordinate system;
    根据所述第二目标检测信息和预设目标跟踪算法,预测所述待跟踪目标在世界坐标系下的第二候选位置坐标;According to the second target detection information and the preset target tracking algorithm, predict the second candidate position coordinates of the target to be tracked in the world coordinate system;
    根据所述第一候选位置坐标和第二候选位置坐标,确定所述待跟踪目标在世界坐标系下的目标位置坐标。According to the first candidate position coordinates and the second candidate position coordinates, the target position coordinates of the to-be-tracked target in the world coordinate system are determined.
  31. 根据权利要求29所述的目标跟踪装置,其特征在于,所述第二目标检测信息包括所述待跟踪目标在相机坐标系下的位置信息,所述根据所述目标位置坐标控制所述无人机对所述待跟踪目标进行跟踪拍摄,包括:The target tracking device according to claim 29, wherein the second target detection information includes position information of the target to be tracked in a camera coordinate system, and the control of the unmanned person according to the target position coordinates The camera tracks and shoots the target to be tracked, including:
    将所述待跟踪目标在相机坐标系下的位置信息转换为所述待跟踪目标在世界坐标系下的第一位置信息;Converting the position information of the target to be tracked under the camera coordinate system into the first position information of the target to be tracked under the world coordinate system;
    获取所述无人机的第二位置信息,并根据所述第一位置信息和第二位置信息,确定所述待跟踪目标与所述无人机之间的目标距离;Acquiring the second position information of the UAV, and determining the target distance between the target to be tracked and the UAV according to the first position information and the second position information;
    根据所述目标位置坐标和目标距离,控制所述无人机对所述待跟踪目标进行跟踪拍摄,使得所述无人机与待跟踪目标之间的距离始终为所述目标距离。According to the target position coordinates and the target distance, the drone is controlled to track and photograph the target to be tracked, so that the distance between the drone and the target to be tracked is always the target distance.
  32. 根据权利要求31所述的目标跟踪装置,其特征在于,所述根据所述目标位置坐标和目标距离,控制所述无人机对所述待跟踪目标进行跟踪拍摄,使得所述无人机与待跟踪目标之间的距离始终为所述目标距离,包括:The target tracking device according to claim 31, wherein the drone is controlled to track and photograph the target to be tracked according to the target position coordinates and the target distance, so that the drone and the target The distance between the targets to be tracked is always the target distance, including:
    根据所述第一目标检测信息,确定所述待跟踪目标的运动速度;determining the movement speed of the target to be tracked according to the first target detection information;
    根据所述待跟踪目标的目标位置坐标、运动速度和目标距离,控制所述无人机对所述待跟踪目标进行跟踪拍摄,使得所述无人机相对所述待跟踪目标静止,且所述无人机与待跟踪目标之间的距离始终为所述目标距离。According to the target position coordinates, movement speed and target distance of the target to be tracked, the drone is controlled to track and photograph the target to be tracked, so that the drone is stationary relative to the target to be tracked, and the The distance between the drone and the target to be tracked is always the target distance.
  33. 根据权利要求29所述的目标跟踪装置,其特征在于,所述根据所述目标位置坐标控制所述无人机对所述待跟踪目标进行跟踪拍摄,包括:The target tracking device according to claim 29, wherein the controlling the drone to track and photograph the target to be tracked according to the target position coordinates comprises:
    根据所述目标位置坐标,确定所述无人机上的拍摄装置的目标姿态;Determine the target posture of the photographing device on the UAV according to the target position coordinates;
    根据所述目标姿态控制所述无人机对所述待跟踪目标进行跟踪拍摄,使得所述待跟踪目标始终位于所述拍摄装置的拍摄画面的中央位置。The UAV is controlled to track and photograph the target to be tracked according to the target posture, so that the target to be tracked is always located at the center of the photographed image of the photographing device.
  34. 根据权利要求22至28中任一项所述的目标跟踪装置,其特征在于,所述根据所述第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄,包括:The target tracking device according to any one of claims 22 to 28, wherein the tracking and photographing the target to be tracked according to the first target detection information and the second target detection information comprises:
    当确定所述当前拍摄图像包括多个目标对象时,根据多个所述目标对象的第一目标检测信息从多个所述目标对象中确定所述待跟踪目标;When it is determined that the currently captured image includes a plurality of target objects, the target to be tracked is determined from the plurality of target objects according to the first target detection information of the plurality of target objects;
    根据所述待跟踪目标的第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄。The target to be tracked is tracked and photographed according to the first target detection information and the second target detection information of the target to be tracked.
  35. 根据权利要求34所述的目标跟踪装置,其特征在于,所述根据多个所述目标对象的第一目标检测信息从多个所述目标对象中确定所述待跟踪目标,包括:The target tracking device according to claim 34, wherein the determining the target to be tracked from the plurality of target objects according to the first target detection information of the plurality of target objects comprises:
    根据多个所述目标对象的第一目标检测信息,确定多个所述目标对象的运动信息;determining the motion information of a plurality of the target objects according to the first target detection information of the plurality of target objects;
    根据所述待跟踪目标的第一目标检测信息确定所述待跟踪目标的运动信息;Determine the motion information of the to-be-tracked target according to the first target detection information of the to-be-tracked target;
    根据所述待跟踪目标的运动信息和多个所述目标对象的运动信息,计算所述待跟踪目标与多个所述目标对象的相似度;According to the motion information of the target to be tracked and the motion information of a plurality of the target objects, calculate the similarity between the target to be tracked and the plurality of target objects;
    根据所述相似度从多个所述目标对象中确定所述待跟踪目标。The target to be tracked is determined from the plurality of target objects according to the similarity.
  36. 根据权利要求35所述的目标跟踪装置,其特征在于,所述运动信息包括位置信息和/或速度信息;所述相似度包括位置相似度和/或速度相似度。The target tracking device according to claim 35, wherein the motion information includes position information and/or velocity information; and the similarity includes position similarity and/or velocity similarity.
  37. 根据权利要求36所述的目标跟踪装置,其特征在于,所述根据所述相似度从多个所述目标对象中确定所述待跟踪目标,包括:The target tracking device according to claim 36, wherein the determining the target to be tracked from the plurality of target objects according to the similarity comprises:
    根据所述位置相似度和/或速度相似度,从多个所述目标对象中确定所述待跟踪目标。The target to be tracked is determined from the plurality of target objects according to the position similarity and/or the speed similarity.
  38. 根据权利要求36所述的目标跟踪装置,其特征在于,所述根据所述相似度从多个所述目标对象中确定所述待跟踪目标,包括:The target tracking device according to claim 36, wherein the determining the target to be tracked from the plurality of target objects according to the similarity comprises:
    获取所述位置相似度对应的第一预设权重,以及所述速度相似度对应的第二预设权重;obtaining a first preset weight corresponding to the position similarity, and a second preset weight corresponding to the speed similarity;
    根据所述位置相似度、速度相似度、第一预设权重和第二预设权重,从多个所述目标对象中确定所述待跟踪目标。The target to be tracked is determined from the plurality of target objects according to the position similarity, the speed similarity, the first preset weight and the second preset weight.
  39. 根据权利要求35所述的目标跟踪装置,其特征在于,所述根据所述相似度从多个所述目标对象中确定所述待跟踪目标,包括:The target tracking apparatus according to claim 35, wherein the determining the target to be tracked from a plurality of the target objects according to the similarity comprises:
    根据所述当前拍摄图像确定所述待跟踪目标的图像特征;Determine the image feature of the target to be tracked according to the current captured image;
    根据所述相似度和所述待跟踪目标的图像特征,从多个所述目标对象中确定所述待跟踪目标。The to-be-tracked target is determined from a plurality of the target objects according to the similarity and the image feature of the to-be-tracked target.
  40. 根据权利要求39所述的目标跟踪装置,其特征在于,所述根据所述相似度和所述待跟踪目标的图像特征,从多个所述目标对象中确定所述待跟踪目标,包括:The target tracking device according to claim 39, wherein the determining the target to be tracked from a plurality of the target objects according to the similarity and the image feature of the target to be tracked comprises:
    根据所述待跟踪目标的图像特征从多个所述目标对象中,确定与所述待跟踪目标相似的目标对象;Determine a target object similar to the to-be-tracked target from a plurality of the target objects according to the image feature of the to-be-tracked target;
    根据所述相似度从与所述待跟踪目标相似的目标对象中,确定所述待跟踪目标。The target to be tracked is determined from target objects similar to the target to be tracked according to the similarity.
  41. 根据权利要求35所述的目标跟踪装置,其特征在于,所述根据所述相似度从多个所述目标对象中确定所述待跟踪目标,包括:The target tracking apparatus according to claim 35, wherein the determining the target to be tracked from a plurality of the target objects according to the similarity comprises:
    根据所述相似度和所述待跟踪目标的Reid特征,从多个所述目标对象中确定所述待跟踪目标;According to the similarity and the Reid feature of the target to be tracked, the target to be tracked is determined from a plurality of the target objects;
    其中,所述Reid特征为采用行人重识别技术从所述当前拍摄图像识别出的所述待跟踪目标的特征。Wherein, the Reid feature is the feature of the target to be tracked identified from the currently captured image using the pedestrian re-identification technology.
  42. 根据权利要求34所述的目标跟踪装置,其特征在于,所述根据多个所述目标对象的第一目标检测信息从多个所述目标对象中确定所述待跟踪目标之 前,还包括:The target tracking device according to claim 34, wherein before the target to be tracked is determined from a plurality of the target objects according to the first target detection information of the plurality of target objects, it further comprises:
    当确定所述当前拍摄图像包括多个目标对象时,根据所述当前拍摄图像,获取所述待跟踪目标的图像特征和多个所述目标对象的图像特征;When it is determined that the currently captured image includes multiple target objects, acquire image features of the target to be tracked and image features of multiple target objects according to the current captured image;
    根据所述待跟踪目标的图像特征和多个所述目标对象的图像特征,确定多个所述目标对象中是否存在与所述待跟踪目标相似的目标对象;According to the image features of the target to be tracked and the image features of a plurality of the target objects, determine whether there is a target object similar to the target to be tracked in the plurality of target objects;
    当确定多个所述目标对象中存在至少两个与所述待跟踪目标相似的目标对象时,根据多个所述目标对象的第一目标检测信息从多个所述目标对象中确定所述待跟踪目标。When it is determined that there are at least two target objects similar to the target to be tracked in the plurality of target objects, the target object to be tracked is determined from the plurality of target objects according to the first target detection information of the plurality of target objects Track the target.
  43. 一种无人机,其特征在于,所述无人机包括拍摄装置、存储器和处理器;An unmanned aerial vehicle, characterized in that the unmanned aerial vehicle comprises a photographing device, a memory and a processor;
    所述存储器,用于存储计算机程序;the memory for storing computer programs;
    所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is configured to execute the computer program and implement the following steps when executing the computer program:
    获取所述拍摄装置拍摄待跟踪目标得到的当前拍摄图像;acquiring the current shot image obtained by the shooting device shooting the target to be tracked;
    对所述当前拍摄图像中的所述待跟踪目标进行目标检测,得到所述待跟踪目标的第一目标检测信息和第二目标检测信息,其中,所述第一目标检测信息包括所述待跟踪目标在世界坐标系下的第一尺寸信息和所述待跟踪目标相对于所述无人机的角度信息,所述第二目标检测信息包括所述待跟踪目标在二维图像平面的位置信息和第二尺寸信息;Perform target detection on the target to be tracked in the currently captured image to obtain first target detection information and second target detection information of the target to be tracked, wherein the first target detection information includes the target to be tracked The first size information of the target in the world coordinate system and the angle information of the target to be tracked relative to the UAV, the second target detection information includes the position information of the target to be tracked on the two-dimensional image plane and second size information;
    根据所述第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄。The target to be tracked is tracked and photographed according to the first target detection information and the second target detection information.
  44. 根据权利要求43所述的无人机,其特征在于,所述对所述当前拍摄图像中的所述待跟踪目标进行目标检测,得到所述待跟踪目标的第一目标检测信息和第二目标检测信息,包括:The unmanned aerial vehicle according to claim 43, wherein the target detection is performed on the target to be tracked in the currently captured image to obtain the first target detection information and the second target of the target to be tracked. Inspection information, including:
    将所述当前拍摄图像输入预设的3D目标检测模型进行处理,得到所述待跟踪目标的第一目标检测信息;Inputting the currently captured image into a preset 3D target detection model for processing to obtain first target detection information of the target to be tracked;
    将所述当前拍摄图像输入预设的2D目标检测模型进行处理,得到所述待跟踪目标的第二目标检测信息。The currently captured image is input into a preset 2D target detection model for processing, so as to obtain second target detection information of the target to be tracked.
  45. 根据权利要求44所述的无人机,其特征在于,所述处理器还用于实现以下步骤:The unmanned aerial vehicle of claim 44, wherein the processor is further configured to implement the following steps:
    获取第一训练样本数据,其中,所述第一训练样本数据包括多个第一图像以及每个所述第一图像中的待跟踪目标的第一目标检测信息;acquiring first training sample data, wherein the first training sample data includes a plurality of first images and first target detection information of the target to be tracked in each of the first images;
    根据所述第一训练样本数据对第一神经网络模型进行迭代训练,直到迭代训练后的第一神经网络模型收敛,得到所述3D目标检测模型。The first neural network model is iteratively trained according to the first training sample data, until the iteratively trained first neural network model converges, and the 3D target detection model is obtained.
  46. 根据权利要求44所述的无人机,其特征在于,所述处理器还用于实现以下步骤:The unmanned aerial vehicle of claim 44, wherein the processor is further configured to implement the following steps:
    获取第二训练样本数据,其中,所述第二训练样本数据包括多个第二图像以及每个所述第二图像中的待跟踪目标的第二目标检测信息;acquiring second training sample data, wherein the second training sample data includes a plurality of second images and second target detection information of the target to be tracked in each of the second images;
    根据所述第二训练样本数据对第二神经网络模型进行迭代训练,直到迭代训练后的第二神经网络模型收敛,得到所述2D目标检测模型。The second neural network model is iteratively trained according to the second training sample data, until the iteratively trained second neural network model converges, and the 2D target detection model is obtained.
  47. 根据权利要求45所述的无人机,其特征在于,所述第一神经网络模型包括卷积神经网络模型CNN、RCNN、Fast RCNN和Faster RCNN。The unmanned aerial vehicle of claim 45, wherein the first neural network model comprises convolutional neural network models CNN, RCNN, Fast RCNN and Faster RCNN.
  48. 根据权利要求43所述的无人机,其特征在于,所述待跟踪目标相对于所述无人机的角度信息包括所述待跟踪目标相对于所述无人机的yaw角、pitch角和roll角。The drone according to claim 43, wherein the angle information of the target to be tracked relative to the drone comprises a yaw angle, a pitch angle and a pitch angle of the target to be tracked relative to the drone. roll angle.
  49. 根据权利要求43所述的无人机,其特征在于,所述第一尺寸信息包括所述待跟踪目标在世界坐标系下的长度信息、宽度信息和/或高度信息,所述第二尺寸信息包括所述待跟踪目标在所述当前拍摄图像内的长度信息、宽度信息和/或高度信息。The drone according to claim 43, wherein the first size information includes length information, width information and/or height information of the target to be tracked in a world coordinate system, and the second size information Including length information, width information and/or height information of the target to be tracked in the current captured image.
  50. 根据权利要求43至49中任一项所述的无人机,其特征在于,所述根据所述第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄,包括:The drone according to any one of claims 43 to 49, wherein the tracking and photographing the target to be tracked according to the first target detection information and the second target detection information includes:
    根据所述第一目标检测信息和第二目标检测信息,预测所述待跟踪目标在世界坐标系下的目标位置坐标;predicting the target position coordinates of the target to be tracked in the world coordinate system according to the first target detection information and the second target detection information;
    根据所述目标位置坐标控制所述无人机对所述待跟踪目标进行跟踪拍摄。The UAV is controlled to track and photograph the target to be tracked according to the target position coordinates.
  51. 根据权利要求50所述的无人机,其特征在于,所述根据所述第一目标检测信息和第二目标检测信息,预测所述待跟踪目标在世界坐标系下的目标位置坐标,包括:The unmanned aerial vehicle according to claim 50, wherein, predicting the target position coordinates of the target to be tracked in the world coordinate system according to the first target detection information and the second target detection information, comprising:
    根据所述第一目标检测信息和预设目标跟踪算法,预测所述待跟踪目标在世界坐标系下的第一候选位置坐标;According to the first target detection information and the preset target tracking algorithm, predict the first candidate position coordinates of the target to be tracked in the world coordinate system;
    根据所述第二目标检测信息和预设目标跟踪算法,预测所述待跟踪目标在世界坐标系下的第二候选位置坐标;According to the second target detection information and the preset target tracking algorithm, predict the second candidate position coordinates of the target to be tracked in the world coordinate system;
    根据所述第一候选位置坐标和第二候选位置坐标,确定所述待跟踪目标在世界坐标系下的目标位置坐标。According to the first candidate position coordinates and the second candidate position coordinates, the target position coordinates of the to-be-tracked target in the world coordinate system are determined.
  52. 根据权利要求50所述的无人机,其特征在于,所述第二目标检测信息包括所述待跟踪目标在相机坐标系下的位置信息,所述根据所述目标位置坐标控制所述无人机对所述待跟踪目标进行跟踪拍摄,包括:The unmanned aerial vehicle according to claim 50, wherein the second target detection information includes position information of the target to be tracked in a camera coordinate system, and the unmanned aerial vehicle is controlled according to the target position coordinates. The camera tracks and shoots the target to be tracked, including:
    将所述待跟踪目标在相机坐标系下的位置信息转换为所述待跟踪目标在世界坐标系下的第一位置信息;Converting the position information of the target to be tracked under the camera coordinate system into the first position information of the target to be tracked under the world coordinate system;
    获取所述无人机的第二位置信息,并根据所述第一位置信息和第二位置信息,确定所述待跟踪目标与所述无人机之间的目标距离;Acquiring the second position information of the UAV, and determining the target distance between the target to be tracked and the UAV according to the first position information and the second position information;
    根据所述目标位置坐标和目标距离,控制所述无人机对所述待跟踪目标进行跟踪拍摄,使得所述无人机与待跟踪目标之间的距离始终为所述目标距离。According to the target position coordinates and the target distance, the drone is controlled to track and photograph the target to be tracked, so that the distance between the drone and the target to be tracked is always the target distance.
  53. 根据权利要求52所述的无人机,其特征在于,所述根据所述目标位置坐标和目标距离,控制所述无人机对所述待跟踪目标进行跟踪拍摄,使得所述无人机与待跟踪目标之间的距离始终为所述目标距离,包括:The unmanned aerial vehicle according to claim 52, wherein the unmanned aerial vehicle is controlled to track and photograph the target to be tracked according to the target position coordinates and the target distance, so that the unmanned aerial vehicle and the The distance between the targets to be tracked is always the target distance, including:
    根据所述第一目标检测信息,确定所述待跟踪目标的运动速度;determining the movement speed of the target to be tracked according to the first target detection information;
    根据所述待跟踪目标的目标位置坐标、运动速度和目标距离,控制所述无人机对所述待跟踪目标进行跟踪拍摄,使得所述无人机相对所述待跟踪目标静止,且所述无人机与待跟踪目标之间的距离始终为所述目标距离。According to the target position coordinates, movement speed and target distance of the target to be tracked, the drone is controlled to track and photograph the target to be tracked, so that the drone is stationary relative to the target to be tracked, and the The distance between the drone and the target to be tracked is always the target distance.
  54. 根据权利要求50所述的无人机,其特征在于,所述根据所述目标位置坐标控制所述无人机对所述待跟踪目标进行跟踪拍摄,包括:The drone according to claim 50, wherein the controlling the drone to track and photograph the target to be tracked according to the target position coordinates comprises:
    根据所述目标位置坐标,确定所述无人机上的拍摄装置的目标姿态;Determine the target attitude of the photographing device on the UAV according to the target position coordinates;
    根据所述目标姿态控制所述无人机对所述待跟踪目标进行跟踪拍摄,使得所述待跟踪目标始终位于所述拍摄装置的拍摄画面的中央位置。The UAV is controlled to track and photograph the target to be tracked according to the target posture, so that the target to be tracked is always located at the center of the photographed image of the photographing device.
  55. 根据权利要求43至49中任一项所述的无人机,其特征在于,所述根据所述第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄,包括:The drone according to any one of claims 43 to 49, wherein the tracking and photographing the target to be tracked according to the first target detection information and the second target detection information includes:
    当确定所述当前拍摄图像包括多个目标对象时,根据多个所述目标对象的第一目标检测信息从多个所述目标对象中确定所述待跟踪目标;When it is determined that the current captured image includes a plurality of target objects, the target to be tracked is determined from the plurality of target objects according to the first target detection information of the plurality of target objects;
    根据所述待跟踪目标的第一目标检测信息和第二目标检测信息对所述待跟踪目标进行跟踪拍摄。The target to be tracked is tracked and photographed according to the first target detection information and the second target detection information of the target to be tracked.
  56. 根据权利要求55所述的无人机,其特征在于,所述根据多个所述目标对象的第一目标检测信息从多个所述目标对象中确定所述待跟踪目标,包括:The drone according to claim 55, wherein the determining the target to be tracked from the plurality of target objects according to the first target detection information of the plurality of target objects comprises:
    根据多个所述目标对象的第一目标检测信息,确定多个所述目标对象的运动信息;determining the motion information of a plurality of the target objects according to the first target detection information of the plurality of target objects;
    根据所述待跟踪目标的第一目标检测信息确定所述待跟踪目标的运动信息;Determine the motion information of the to-be-tracked target according to the first target detection information of the to-be-tracked target;
    根据所述待跟踪目标的运动信息和多个所述目标对象的运动信息,计算所述待跟踪目标与多个所述目标对象的相似度;Calculate the similarity between the to-be-tracked target and a plurality of the target objects according to the motion information of the target to be tracked and the motion information of a plurality of the target objects;
    根据所述相似度从多个所述目标对象中确定所述待跟踪目标。The target to be tracked is determined from the plurality of target objects according to the similarity.
  57. 根据权利要求56所述的无人机,其特征在于,所述运动信息包括位置信息和/或速度信息;所述相似度包括位置相似度和/或速度相似度。The drone according to claim 56, wherein the motion information includes position information and/or velocity information; and the similarity includes position similarity and/or velocity similarity.
  58. 根据权利要求57所述的无人机,其特征在于,所述根据所述相似度从多个所述目标对象中确定所述待跟踪目标,包括:The drone according to claim 57, wherein the determining the target to be tracked from the plurality of target objects according to the similarity comprises:
    根据所述位置相似度和/或速度相似度,从多个所述目标对象中确定所述待跟踪目标。The target to be tracked is determined from the plurality of target objects according to the position similarity and/or the speed similarity.
  59. 根据权利要求57所述的无人机,其特征在于,所述根据所述相似度从多个所述目标对象中确定所述待跟踪目标,包括:The drone according to claim 57, wherein the determining the target to be tracked from the plurality of target objects according to the similarity comprises:
    获取所述位置相似度对应的第一预设权重,以及所述速度相似度对应的第二预设权重;obtaining a first preset weight corresponding to the position similarity, and a second preset weight corresponding to the speed similarity;
    根据所述位置相似度、速度相似度、第一预设权重和第二预设权重,从多个所述目标对象中确定所述待跟踪目标。The target to be tracked is determined from the plurality of target objects according to the position similarity, the speed similarity, the first preset weight and the second preset weight.
  60. 根据权利要求56所述的无人机,其特征在于,所述根据所述相似度从多个所述目标对象中确定所述待跟踪目标,包括:The drone according to claim 56, wherein the determining the target to be tracked from the plurality of target objects according to the similarity comprises:
    根据所述当前拍摄图像确定所述待跟踪目标的图像特征;Determine the image feature of the target to be tracked according to the current captured image;
    根据所述相似度和所述待跟踪目标的图像特征,从多个所述目标对象中确定所述待跟踪目标。The to-be-tracked target is determined from a plurality of the target objects according to the similarity and the image feature of the to-be-tracked target.
  61. 根据权利要求60所述的无人机,其特征在于,所述根据所述相似度和所述待跟踪目标的图像特征,从多个所述目标对象中确定所述待跟踪目标,包括:The drone according to claim 60, wherein the determining the target to be tracked from a plurality of the target objects according to the similarity and the image feature of the target to be tracked comprises:
    根据所述待跟踪目标的图像特征从多个所述目标对象中,确定与所述待跟踪目标相似的目标对象;Determine a target object similar to the to-be-tracked target from a plurality of the target objects according to the image features of the to-be-tracked target;
    根据所述相似度从与所述待跟踪目标相似的目标对象中,确定所述待跟踪目标。The target to be tracked is determined from target objects similar to the target to be tracked according to the similarity.
  62. 根据权利要求56所述的无人机,其特征在于,所述根据所述相似度从多个所述目标对象中确定所述待跟踪目标,包括:The drone according to claim 56, wherein the determining the target to be tracked from the plurality of target objects according to the similarity comprises:
    根据所述相似度和所述待跟踪目标的Reid特征,从多个所述目标对象中确定所述待跟踪目标;According to the similarity and the Reid feature of the target to be tracked, the target to be tracked is determined from a plurality of the target objects;
    其中,所述Reid特征为采用行人重识别技术从所述当前拍摄图像识别出的所述待跟踪目标的特征。Wherein, the Reid feature is the feature of the target to be tracked identified from the currently captured image using the pedestrian re-identification technology.
  63. 根据权利要求55所述的无人机,其特征在于,所述根据多个所述目标对象的第一目标检测信息从多个所述目标对象中确定所述待跟踪目标之前,还包括:The unmanned aerial vehicle according to claim 55, wherein before determining the target to be tracked from the plurality of target objects according to the first target detection information of the plurality of target objects, the method further comprises:
    当确定所述当前拍摄图像包括多个目标对象时,根据所述当前拍摄图像,获取所述待跟踪目标的图像特征和多个所述目标对象的图像特征;When it is determined that the currently captured image includes multiple target objects, acquire image features of the target to be tracked and image features of multiple target objects according to the current captured image;
    根据所述待跟踪目标的图像特征和多个所述目标对象的图像特征,确定多个所述目标对象中是否存在与所述待跟踪目标相似的目标对象;According to the image features of the target to be tracked and the image features of a plurality of the target objects, determine whether there is a target object similar to the target to be tracked in the plurality of target objects;
    当确定多个所述目标对象中存在至少两个与所述待跟踪目标相似的目标对象时,根据多个所述目标对象的第一目标检测信息从多个所述目标对象中确定所述待跟踪目标。When it is determined that there are at least two target objects similar to the target to be tracked in the plurality of target objects, the target object to be tracked is determined from the plurality of target objects according to the first target detection information of the plurality of target objects Track the target.
  64. 一种控制系统,其特征在于,所述控制系统包括控制终端和如权利要求43至63中任一项所述的无人机,所述控制终端用于控制所述无人机运行。A control system, characterized in that, the control system comprises a control terminal and the drone according to any one of claims 43 to 63, wherein the control terminal is used to control the operation of the drone.
  65. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如权利要求1-21中任一项所述的目标跟踪方法的步骤。A computer-readable storage medium, characterized in that, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the method described in any one of claims 1-21. The steps of the target tracking method described above.
PCT/CN2020/104971 2020-07-27 2020-07-27 Target tracking method and apparatus, unmanned aerial vehicle, system, and readable storage medium WO2022021027A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202080007155.1A CN113228103A (en) 2020-07-27 2020-07-27 Target tracking method, device, unmanned aerial vehicle, system and readable storage medium
PCT/CN2020/104971 WO2022021027A1 (en) 2020-07-27 2020-07-27 Target tracking method and apparatus, unmanned aerial vehicle, system, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/104971 WO2022021027A1 (en) 2020-07-27 2020-07-27 Target tracking method and apparatus, unmanned aerial vehicle, system, and readable storage medium

Publications (1)

Publication Number Publication Date
WO2022021027A1 true WO2022021027A1 (en) 2022-02-03

Family

ID=77086022

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/104971 WO2022021027A1 (en) 2020-07-27 2020-07-27 Target tracking method and apparatus, unmanned aerial vehicle, system, and readable storage medium

Country Status (2)

Country Link
CN (1) CN113228103A (en)
WO (1) WO2022021027A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114492677A (en) * 2022-04-06 2022-05-13 中国科学院自动化研究所 Unmanned aerial vehicle countermeasure method and device
CN115222814A (en) * 2022-06-02 2022-10-21 珠海云洲智能科技股份有限公司 Rescue equipment guiding method and device, terminal equipment and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114549578A (en) * 2021-11-05 2022-05-27 北京小米移动软件有限公司 Target tracking method, device and storage medium
CN114281096A (en) * 2021-11-09 2022-04-05 中时讯通信建设有限公司 Unmanned aerial vehicle tracking control method, device and medium based on target detection algorithm
CN116486290B (en) * 2023-06-21 2023-09-05 成都庆龙航空科技有限公司 Unmanned aerial vehicle monitoring and tracking method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506956A (en) * 2016-11-17 2017-03-15 歌尔股份有限公司 Based on the track up method of unmanned plane, track up apparatus and system
WO2018027339A1 (en) * 2016-08-06 2018-02-15 SZ DJI Technology Co., Ltd. Copyright notice
CN109191504A (en) * 2018-08-01 2019-01-11 南京航空航天大学 A kind of unmanned plane target tracking
CN109661631A (en) * 2018-03-27 2019-04-19 深圳市大疆创新科技有限公司 Control method, device and the unmanned plane of unmanned plane
CN110347186A (en) * 2019-07-17 2019-10-18 中国人民解放军国防科技大学 Ground moving target autonomous tracking system based on bionic binocular linkage
CN110675431A (en) * 2019-10-08 2020-01-10 中国人民解放军军事科学院国防科技创新研究院 Three-dimensional multi-target tracking method fusing image and laser point cloud

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101690502B1 (en) * 2015-04-07 2016-12-28 (주)코아텍 System for tracking using drone
CN107128492B (en) * 2017-05-05 2019-09-20 成都通甲优博科技有限责任公司 A kind of unmanned plane tracking, device and unmanned plane based on number of people detection
CN107748860A (en) * 2017-09-01 2018-03-02 中国科学院深圳先进技术研究院 Method for tracking target, device, unmanned plane and the storage medium of unmanned plane
CN108399642B (en) * 2018-01-26 2021-07-27 上海深视信息科技有限公司 General target following method and system fusing rotor unmanned aerial vehicle IMU data
CN110347035A (en) * 2018-04-08 2019-10-18 北京京东尚科信息技术有限公司 Method for autonomous tracking and device, electronic equipment, storage medium
CN108898628A (en) * 2018-06-21 2018-11-27 北京纵目安驰智能科技有限公司 Three-dimensional vehicle object's pose estimation method, system, terminal and storage medium based on monocular

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018027339A1 (en) * 2016-08-06 2018-02-15 SZ DJI Technology Co., Ltd. Copyright notice
CN106506956A (en) * 2016-11-17 2017-03-15 歌尔股份有限公司 Based on the track up method of unmanned plane, track up apparatus and system
CN109661631A (en) * 2018-03-27 2019-04-19 深圳市大疆创新科技有限公司 Control method, device and the unmanned plane of unmanned plane
CN109191504A (en) * 2018-08-01 2019-01-11 南京航空航天大学 A kind of unmanned plane target tracking
CN110347186A (en) * 2019-07-17 2019-10-18 中国人民解放军国防科技大学 Ground moving target autonomous tracking system based on bionic binocular linkage
CN110675431A (en) * 2019-10-08 2020-01-10 中国人民解放军军事科学院国防科技创新研究院 Three-dimensional multi-target tracking method fusing image and laser point cloud

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114492677A (en) * 2022-04-06 2022-05-13 中国科学院自动化研究所 Unmanned aerial vehicle countermeasure method and device
CN115222814A (en) * 2022-06-02 2022-10-21 珠海云洲智能科技股份有限公司 Rescue equipment guiding method and device, terminal equipment and storage medium
CN115222814B (en) * 2022-06-02 2023-09-01 珠海云洲智能科技股份有限公司 Rescue equipment guiding method and device, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN113228103A (en) 2021-08-06

Similar Documents

Publication Publication Date Title
WO2022021027A1 (en) Target tracking method and apparatus, unmanned aerial vehicle, system, and readable storage medium
CN112567201B (en) Distance measuring method and device
US11749124B2 (en) User interaction with an autonomous unmanned aerial vehicle
US11460844B2 (en) Unmanned aerial image capture platform
US11861892B2 (en) Object tracking by an unmanned aerial vehicle using visual sensors
US20210133996A1 (en) Techniques for motion-based automatic image capture
WO2019104571A1 (en) Image processing method and device
WO2018098704A1 (en) Control method, apparatus, and system, unmanned aerial vehicle, and mobile platform
JP2018526641A (en) System and method for laser depth map sampling
CN106973221B (en) Unmanned aerial vehicle camera shooting method and system based on aesthetic evaluation
WO2020014987A1 (en) Mobile robot control method and apparatus, device, and storage medium
WO2021217430A1 (en) System and method for operating a movable object based on human body indications
WO2019051832A1 (en) Movable object control method, device and system
WO2021081774A1 (en) Parameter optimization method and apparatus, control device, and aircraft
CN110187720A (en) Unmanned plane guidance method, device, system, medium and electronic equipment
WO2020024182A1 (en) Parameter processing method and apparatus, camera device and aircraft
WO2021217450A1 (en) Target tracking method and device, and storage medium
CN111194433A (en) Method and system for composition and image capture
WO2022021028A1 (en) Target detection method, device, unmanned aerial vehicle, and computer-readable storage medium
WO2020019175A1 (en) Image processing method and apparatus, and photographing device and unmanned aerial vehicle
WO2022082440A1 (en) Method, apparatus and system for determining target following strategy, and device and storage medium
WO2021016875A1 (en) Aerial vehicle landing method, unmanned aerial vehicle, and computer-readable storage medium
WO2022246608A1 (en) Method for generating panoramic video, apparatus, and mobile platform
US20210256732A1 (en) Image processing method and unmanned aerial vehicle
WO2022126397A1 (en) Data fusion method and device for sensor, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20947249

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20947249

Country of ref document: EP

Kind code of ref document: A1