WO2018068771A1 - Target tracking method and system, electronic device, and computer storage medium - Google Patents

Target tracking method and system, electronic device, and computer storage medium Download PDF

Info

Publication number
WO2018068771A1
WO2018068771A1 PCT/CN2017/110745 CN2017110745W WO2018068771A1 WO 2018068771 A1 WO2018068771 A1 WO 2018068771A1 CN 2017110745 W CN2017110745 W CN 2017110745W WO 2018068771 A1 WO2018068771 A1 WO 2018068771A1
Authority
WO
WIPO (PCT)
Prior art keywords
motion
tracking
electronic device
target
time period
Prior art date
Application number
PCT/CN2017/110745
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 纳恩博(北京)科技有限公司
Publication of WO2018068771A1 publication Critical patent/WO2018068771A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/20Movements or behaviour, e.g. gesture recognition
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/10Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
    • G01C21/12Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
    • G01C21/16Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation
    • G01C21/166Mechanical, construction or arrangement details of inertial navigation systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/10Terrestrial scenes

Definitions

  • the application is based on a Chinese patent application with the application number of 201611001901.8, the application date is November 14, 2016, and the Chinese patent application with the application number of 201610891388.8 and the application date of October 12, 2016, and the Chinese patent application is required.
  • the entire contents of this Chinese patent application are hereby incorporated herein by reference.
  • the present invention relates to the field of target tracking, and in particular to a target tracking method, system, electronic device and computer storage medium.
  • target tracking is an indispensable part of most visual systems, and has applications in video surveillance, human-computer interaction, and military fields.
  • the current target tracking technology can detect the accuracy of the tracking system in the case of the target motion mode, the target motion scene, the sudden change of the target external features, and the sudden changes in the shooting of the target when tracking the target.
  • Problems such as the decrease in stability, for example, the vision-based tracking technique has poor stability during long-term tracking, and is easy to lose when the target object suddenly accelerates.
  • the vision-based motion behavior analysis technology it is easy to cause the tracking process.
  • the error is accumulated in the tracking value, so that the closed loop adjustment cannot be formed.
  • Embodiments of the present invention are expected to provide a target tracking method, system, electronic device, and computer Storage media to solve at least the technical problem of low tracking accuracy for long-term visual tracking.
  • a target tracking method applied to a first electronic device, the method comprising: performing a vision-based target tracking to obtain a first tracking result for a tracked target; Determining motion information of the tracked target motion state, and combining the first tracking result, analyzing to obtain a second tracking result for the tracked target; wherein the second tracking result is the same as the first tracking result Or different; the motion information for describing the motion state of the tracked target is obtained based on a measurement by a second electronic device disposed on the tracked target.
  • the motion information includes motion measurement parameters for the tracked target, the motion measurement parameters are recorded in a predetermined storage space of the second electronic device, and the motion measurement parameters include at least: Acceleration and/or angular angular velocity; the first electronic device obtains motion information, including: periodically or aperiodically accessing a predetermined storage space of the second electronic device, and acquiring the second electronic device within a predetermined time period Acquiring the obtained motion measurement parameter; according to the motion information for describing the motion state of the tracked target, combining the first tracking result, analyzing and obtaining the second tracking result for the tracked target, including: Performing statistical analysis on the motion measurement parameter in the time period, obtaining motion description information of the tracked target in a predetermined time period, and correcting the first tracking result according to the motion description information to obtain the second Tracking the result; wherein the motion description information includes at least a motion speed and/or a motion direction.
  • performing statistical analysis on the motion measurement parameter in the predetermined time period to obtain motion description information of the tracked target within a predetermined time period including: combining the second electronic device in a predetermined The motion measurement parameter in the time period and the self-motion measurement parameter of the first electronic device in the predetermined time period, and the analysis obtains the tracked target relative to the first electronic device within the predetermined time period Motion description information.
  • the motion information includes motion description information for the tracked target
  • the motion description information is obtained by the second electronic device according to the motion measurement parameter in the predetermined time period obtained by the acquisition, and the motion measurement parameter includes at least: motion acceleration and/or motion angular velocity, and the motion description information.
  • the motion description information being recorded in a predetermined storage space of the second electronic device; the first electronic device obtaining motion information, including: a periodic or non-periodic access station a predetermined storage space of the second electronic device, acquiring motion description information of the second electronic device in a predetermined time period; and combining the first tracking result according to the motion information for describing the motion state of the tracked target,
  • the obtaining the second tracking result for the tracked target includes: correcting the first tracking result according to the motion description information in the predetermined time period to obtain the second tracking result.
  • the motion description information includes a state probability of the tracked target in different motion directions; and correcting the first tracking result according to the motion description information in the predetermined time period to obtain a second tracking a result, comprising: determining the tracked state according to a state probability of the tracked target in different moving directions, and the tracked target represented by the first tracking result is at least one candidate tracking area in a tracking image The target is in a confidence tracking area in the tracking image, and a second tracking result is generated based on the confidence tracking area; wherein the state probability is used to indicate a probability that the tracked object moves in different directions of motion.
  • the method further includes: when the motion description information in the predetermined time period indicates that the moving direction of the tracked target in a predetermined time period is a first direction, the first time in the predetermined time period a tracking result characterizing that the moving direction of the tracked target is within a predetermined time period is a second direction, the first direction is different from the second direction, and the tracked target is in the first direction within a predetermined time period
  • the moving distance is greater than a preset first distance threshold
  • an alarm prompt message is generated, the alarm prompt The information is used to prompt the first electronic device to drop the tracked target.
  • the method further comprises: re-detecting the tracked target, and performing the vision-based target tracking again.
  • an electronic device comprising: a target tracking unit configured to perform vision-based target tracking to obtain a first tracking result for a tracked target; a processing unit, Configuring, according to the motion information used to describe the motion state of the tracked target, in combination with the first tracking result, analyzing to obtain a second tracking result for the tracked target; wherein the second tracking result is The first tracking result is the same or different; the motion information for describing the motion state of the tracked target is obtained based on measurement by another electronic device disposed on the tracked target.
  • the motion information includes motion measurement parameters for the tracked target, the motion measurement parameters being recorded in a predetermined storage space of the another electronic device, the motion measurement parameters including at least: An acceleration and/or a moving angular velocity; the electronic device further comprising a first reading unit configured to periodically or aperiodically access a predetermined storage space of the another electronic device to acquire the another electronic device at a predetermined time
  • the motion measurement parameter is collected in the segment; the processing unit is configured to perform statistical analysis on the motion measurement parameter in the predetermined time period acquired by the first reading unit, to obtain the tracked target
  • the motion description information in the predetermined time period, the first tracking result is corrected according to the motion description information, and the second tracking result is obtained; wherein the motion description information includes at least a motion speed and/or a motion direction .
  • the processing unit is configured to combine the motion measurement parameter of the another electronic device acquired by the first reading unit with a predetermined time period, and the first electronic device is in the predetermined
  • the self-motion measurement parameter in the time period is analyzed, and the motion description information of the tracked target relative to the first electronic device during the predetermined time period is obtained.
  • the motion information includes motion description information of the tracked target, and the motion description information is used by the another electronic device according to the acquisition for a predetermined time period.
  • the dynamic measurement parameter is obtained by statistical analysis, and the motion measurement parameter includes at least: motion acceleration and/or motion angular velocity, the motion description information includes at least a motion speed and/or a motion direction, and the motion description information is recorded in the other a predetermined storage space of the electronic device;
  • the electronic device further includes a second reading unit configured to periodically or aperiodically access a predetermined storage space of the another electronic device, and acquire the another electronic device at a predetermined The motion description information in the time period;
  • the processing unit is configured to correct the first tracking result according to the motion description information in the predetermined time period acquired by the second reading unit, to obtain the first Second tracking results.
  • the motion description information includes a state probability of the tracked target in different motion directions;
  • the processing unit is configured to be based on a state probability of the tracked target in different motion directions, and Determining, by the first tracking result, the tracked target is at least one candidate tracking area in the tracking image, determining a trusted tracking area of the tracked target in the tracking image, and generating a second tracking based on the trusted tracking area a result; wherein the state probability is used to indicate a probability of the tracked target moving in different directions of motion.
  • the electronic device further includes an alarm unit configured to: when the motion description information in the predetermined time period indicates that the direction of motion of the tracked target within a predetermined time period is a first direction, the predetermined The first tracking result in the time period represents that the moving direction of the tracked target in the predetermined time period is the second direction, the first direction is different from the second direction, and the tracked target is in the predetermined time period
  • the moving distance in the first direction is greater than a preset first distance threshold
  • an alarm prompt message is generated.
  • the alarm prompt information is used to prompt the first electronic device to drop the tracked target.
  • the target tracking unit is further configured to re-detect the tracked target and re-execute the vision-based target tracking after the alarm unit generates the alarm prompt information.
  • a target tracking system includes: an electronic device according to an embodiment of the present invention; and another electronic device disposed on the tracked target, configured The motion information for describing the motion state of the tracked target is obtained based on the measurement.
  • a computer storage medium having stored therein computer executable instructions for performing target tracking according to an embodiment of the present invention method.
  • the first electronic device in the process of tracking the target, may obtain motion information of the target motion state measured by the second electronic device, according to the The motion information is combined with the first tracking result obtained by the first electronic device in real time to obtain a second tracking result of the tracked target, and the motion state of the tracked target is detected in real time.
  • the second tracking result is obtained by combining the motion information of the tracked target measured by the second electronic device, so that the obtained tracking result is more accurate, and the accuracy of the tracking target in the prior art is solved.
  • the problem increases the robustness of visual tracking.
  • FIG. 1 is a flow chart 1 of an optional target tracking method according to an embodiment of the present invention.
  • FIG. 2 is a block diagram of an alternative electronic device in accordance with an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of an optional target tracking system in accordance with an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of an implementation scenario of an optional target tracking method according to an embodiment of the present invention.
  • FIG. 5 is a flow chart 2 of an alternative target tracking method in accordance with an embodiment of the present invention.
  • Visual tracking refers to the detection, extraction, recognition and tracking of moving targets in the image sequence, and obtains the motion parameters of the moving target, such as position, velocity, acceleration and motion trajectory, so as to carry out the next processing and analysis to achieve the motion
  • the behavior of the target is understood to complete a higher level of testing tasks.
  • the Inertial Measurement Unit is a device that measures the three-axis attitude angle (or angular velocity) and acceleration of an object.
  • Gyros and accelerometers are the main components of the IMU, and their accuracy directly affects the accuracy of the inertial system.
  • an IMU consists of three single-axis accelerometers and three single-axis gyroscopes.
  • the accelerometer detects the acceleration of an object's independent three-axis acceleration signal in the carrier coordinate system, while the gyroscope detects the angular velocity of the carrier relative to the navigational coordinate system.
  • the signal measures the angular velocity and acceleration of the object in three dimensions and solves the attitude of the object.
  • an embodiment of a target tracking method is provided, it being noted that the steps illustrated in the flowchart of the figures may be performed in a computer system such as a set of computer executable instructions, and, although The logical order is shown in the flowcharts, but in some cases the steps shown or described may be performed in a different order than the ones described herein.
  • FIG. 1 is a flowchart 1 of an optional target tracking method according to an embodiment of the present invention. As shown in FIG. 1 , the method includes the following steps:
  • Step S102 performing vision-based target tracking to obtain a first tracking result for the tracked target.
  • Step S104 according to the motion information for describing the motion state of the tracked target, combined with the first tracking result, the analysis obtains the second tracking result for the tracked target.
  • the method is applied to a first electronic device, the first electronic device has a target tracking unit, and the target tracking unit is configured to perform vision-based target tracking; the second tracking result is the same as or different from the first tracking result; The motion information of the target motion state is obtained based on the measurement by the second electronic device disposed on the tracked target.
  • the first electronic device in the process of tracking the target, may receive the motion information of the target motion state measured by the second electronic device, and combine the motion information of the target motion state acquired by the second electronic device.
  • the first tracking result obtained by the first electronic device in real time is analyzed to obtain the second tracking result of the tracking target, and the motion state of the tracking target can be detected in real time, and the tracking target is obtained by real-time measurement by the second electronic device set on the tracking target.
  • the first tracking result of the tracking target acquired by the first electronic device, and the second tracking result is obtained by using the motion information to correct the first tracking result, and the second tracking result is obtained by using the foregoing solution, instead of directly
  • the first tracking result of the first electronic device is used as the final result, and the second tracking result is obtained by analyzing the motion information of the tracking target measured by the second electronic device, and the obtained result is more accurate, and the tracking target in the prior art is solved.
  • Low accuracy time increasing the robustness of visual tracking .
  • a mobile device ie, a second electronic device capable of detecting a target motion state may be disposed on the tracking target without cumbersome peripheral devices, and the motion information obtained by the second electronic device is combined with the second The first tracking result obtained by the electronic device obtains the second tracking result, which not only can obtain an accurate tracking result, but also can reduce the tracking cost.
  • the embodiment of the present application is applied to the first electronic device, and the first electronic device may be a mobile device that detects the motion state of the tracking target, and the mobile device may be provided with a target tracking unit, and the target tracking unit may be used for Perform vision-based target tracking.
  • the first electronic device in the above embodiment may have a corresponding tracking system, which may be installed on the first electronic device, and is used to control the operation of each unit of the first electronic device, and the tracking system is directed to the first electronic device.
  • Each unit issues an instruction, which can instruct each unit of the first electronic device to work, such that the first electronic device can track the target, wherein the representation of the instruction can be a data packet or code, each unit in the first electronic device After receiving the instruction, the corresponding task is executed according to the instruction information, so that the second electronic device can be interacted to achieve the function of accurately tracking the target.
  • the first electronic device can be a robot.
  • the vision-based target tracking is performed by the target tracking unit, and the first tracking result for the tracking target is obtained
  • the target tracking unit may be provided with a detecting device, and the detecting device may detect the first position of the tracking target Information and tracking the motion state of the target, which includes the direction of motion and the angle of motion.
  • the detection device detects the position of the tracking target, and acquires the first position of the target. After the target tracking unit acquires the first position of the tracking target, the position information of the first position forms the first data.
  • the data may include coordinate information of the tracking target, a current time, and a distance between the tracking target and the first electronic device, where the coordinate information may be acquired according to a positioning unit in the first electronic device, and the target tracking unit And storing the acquired first data; the target tracking unit transmits the first data to the storage unit of the first electronic device, where the first electronic device acquires After the first data, the detection instruction is sent to the target tracking unit again, and the target tracking unit acquires the second location information of the tracking target again according to the received detection instruction, and the target tracking unit forms the second location information of the acquired tracking target into a second.
  • the target tracking unit sends the acquired second data to the first electronic device, and the first electronic device compares and analyzes according to the first data and the second data to obtain a moving direction, a moving speed, and a current tracking target of the tracking target.
  • Current coordinate data The moving direction of the tracking target may be determined according to the coordinate of the tracking target of the second data relative to the coordinate of the tracking target of the first data, and the moving speed of the tracking target may be determined according to where the first data is located.
  • the time and the time in the second data and the moving distance of the tracking target determine the moving speed of the tracking target when moving between the first data and the second data.
  • the first electronic device forms a first tracking result by using the analyzed moving direction, coordinate information, moving speed, moving time, and the distance between the tracking target and the first electronic device, and the first electronic device stores the first tracking result. And then send the first tracking result to the target tracking unit.
  • the first electronic device may transmit data in a form of wireless transmission, and the system of the first electronic device sends an instruction to the target tracking unit of the first electronic device according to the first tracking result, so that the first electronic device moves,
  • the direction and speed of the movement may be consistent with the moving direction and the moving speed of the tracking target according to the first tracking result, and the tracking speed and direction may be appropriately adjusted, for example, if the distance between the first electronic device and the tracking target is long,
  • the first electronic device can control the tracking speed to exceed the moving speed of the tracking target in the first tracking result when starting, and the tracking speed of the first electronic device can be reduced when the distance between the first electronic device and the tracking target reaches a preset distance It is consistent with the moving speed in the first tracking result.
  • the moving direction of the moving target includes at least one of: forward, backward, stop, left shift, right shift.
  • the target tracking unit in the foregoing embodiment may include radio frequency identification (RFID).
  • RFID radio frequency identification
  • the tracking target in the above embodiment may be mobile, such as a moving person or item.
  • step S104 is performed, and according to the motion information for describing the motion state of the tracking target, combined with the first tracking result, the second tracking result for the tracking target is obtained by analyzing, wherein
  • the motion information for describing the motion state of the tracking target is acquired by a second electronic device disposed on the tracking target, and the second electronic device may include a detecting unit, a processing unit, and a storage unit, and the detecting unit may detect the movement of the tracking target.
  • the detecting operation may be performed according to an instruction issued by a system of the second electronic device, after receiving the instruction, the detecting unit starts detecting the coordinate information of the current second electronic device, and simultaneously acquires information of the tracking target, and the detecting unit Transmitting the information of the tracking target to the storage unit to form first data, where the first data includes the coordinates of the current tracking target, the current time, and the moving direction of the tracking target, and the detecting unit transmits the coordinate information and the current time to form the first data to the second data.
  • Storage unit of electronic device, second electronic device After acquiring the first data, the system sends an instruction to the detecting unit again.
  • the detecting unit can detect the coordinates of the second electronic device and the information of the tracking target again, and the detecting unit transmits the information to the storage unit to form the first data.
  • the second electronic device analyzes the moving angle and the moving speed of the tracking target according to the first data and the second data, and then the second electronic device continuously detects the moving information of the tracking target according to the above manner, and the second electronic device will track the target Information such as the direction of movement, the speed of movement, and the time of change are stored to form second motion data.
  • the second electronic device may read the second motion data by using the reading unit, and after acquiring the second motion data, the first electronic device A tracking result is compared, and a second tracking result is obtained.
  • the second tracking result may be the same as or different from the first tracking result.
  • the first tracking result may not be updated.
  • An electronic device can move according to the first tracking result, and can predict the moving direction and shift of the tracking target according to the first tracking result.
  • the speed of the prediction may be the same as or different from the first tracking result; when the first tracking result is different from the second tracking result, the first electronic device determines the magnitude of the deviation of the result, and the deviation value of the comparison result may be given here.
  • a threshold is set, which is determined according to the motion state of the tracking target (for example, the moving speed is set to 5 m/min), and the difference between the first tracking result and the second tracking result is large (for example, comparison)
  • the first tracking result needs to be changed, wherein the moving direction of the tracking target, the moving speed, the coordinate, and the moving change angle of the tracking target may be updated, and the updated data may be the data in the second tracking result.
  • the data may be adjusted according to the second tracking result. If the difference between the first tracking result and the second tracking result is small, for example, when the difference of the comparison result is lower than the threshold, the first tracking result may not be Update.
  • the result of the “following” of the first electronic device during the tracking process may be obtained, thereby updating the data and changing the first electronic device.
  • target modeling is divided into offline target modeling and online target modeling.
  • Offline target modeling refers to the model that has already trained the tracking target before starting tracking, and whether to identify the tracking target in the real-time tracking process;
  • online target Modeling refers to learning and updating the target model during the tracking process, and simultaneously identifying the tracking target.
  • the second electronic device in the foregoing embodiment may be a mobile communication device (eg, a remote controller, a mobile phone) with an IMU chip built therein, and the device may communicate the IMU information to the first electronic device in real time, where The IMU chip of the second electronic device may be the detecting unit of the above embodiment.
  • a mobile communication device eg, a remote controller, a mobile phone
  • the IMU chip of the second electronic device may be the detecting unit of the above embodiment.
  • the second electronic device may be disposed on the body of the tracking target, and may be an item worn by the tracking target or a hand held by the tracking target.
  • the number of wires may be According to the transmission, it can also be wireless data transmission.
  • the first electronic device may include a photographing device that can capture a tracking target, and the photographing device can transmit the photographed information to the first electronic device in real time, and the photographing device can be a camera.
  • the tracking in the above embodiment may be visual tracking, which may be obtained by a photographing device in the first electronic device, and the photographing device captures a current environment of the first electronic device, wherein the current environment includes Tracking the walking path of the target, the obstacle in the walking direction, the tracking target, the light intensity, if there is an obstacle in the walking direction of the first electronic device, analyzing the coordinates of the obstacle and the size of the obstacle, the current tracking environment
  • the environment between the first electronic device and the tracking target is further included, and the environment between the first electronic device and the tracking target includes an obstacle, a light intensity, and a background when the first electronic device moves toward the tracking target.
  • the motion information includes motion measurement parameters for the tracking target, the motion measurement parameters are recorded in a predetermined storage space of the second electronic device, and the motion measurement parameters include at least: motion acceleration and/or motion angular velocity, the first electronic device Acquiring the motion information, including: periodically or aperiodically accessing a predetermined storage space of the second electronic device, and acquiring a motion measurement parameter collected by the second electronic device in a predetermined time period, where the periodicity refers to the first electronic device A time interval is set, for example, 0.5 seconds, 1 second, 5 seconds, 10 seconds, 20 seconds, etc., after a time interval, the first electronic device acquires tracking target motion change data stored in a predetermined storage space of the second electronic device.
  • the analyzing obtains the second tracking result for the tracking target, including: performing statistical analysis on the motion measurement parameter in the predetermined time period, and obtaining Tracking the motion description information of the target within a predetermined time period, correcting the first tracking result according to the motion description information, and obtaining a second tracking result; wherein the motion description information includes at least a motion speed and/or a motion direction, and may be combined with the second electronic
  • the motion measurement parameter of the device in the predetermined time period and the self-motion measurement parameter of the first electronic device within a predetermined time period, and the comprehensive analysis obtains the tracking target relative to the predetermined time period.
  • the motion description information of the first electronic device includes at least a motion speed and/or a motion direction
  • the first electronic device obtains the second tracking result by continuously acquiring the first tracking result and the motion data analysis of the second electronic device, so that the accuracy of the tracking can be increased by the motion data acquired in real time, thereby accurately Tracking the target also increases the stability of the tracking target.
  • the motion measurement parameter may be continuously updated.
  • the data is newly stored in the predetermined storage space of the second electronic device, and the original data may be The deletion may also be temporarily retained. For example, when the predetermined storage space of the second electronic device is about to be full, the data of the original second electronic device may be deleted.
  • the acceleration in the above embodiment it can be obtained by measuring the speed change information of the tracking target, and after the tracking target changes the traveling speed, the motion acceleration of the tracking target can be calculated.
  • the statistical measurement of the motion measurement parameter of the first electronic device may be performed, and the statistical analysis includes analyzing the position change, the moving direction, and the moving speed of the tracking target measured by the first electronic device, and may pass the second time.
  • the obtained position is compared with the first obtained position to obtain a motion measurement parameter, for example, a screen with a length and a width of 10 meters is set, and the first tracking target is at the center, and the coordinates are (5, 5), and the second The tracking target is at the northernmost center, and its coordinates are (5, 10). It can be judged by analysis that the target moves in the true north direction during the time interval between the first measurement and the second measurement. For 5 meters, the moving distance and the moving time are calculated to calculate the moving speed.
  • the first electronic device can store the motion change data, and after comprehensive analysis, finally obtain the motion description information of the tracking target within a predetermined time period, the predetermined time.
  • the time interval between the first electronic device and the second electronic device is transmitted.
  • the data is acquired by the first electronic device every time interval (for example, 5 seconds).
  • the motion information includes motion description information for the tracking target, the first power
  • the child device obtains motion description information by periodically or aperiodically accessing a predetermined storage space of the second electronic device, and the predetermined storage space of the second electronic device is determined relative to the size of the storage device of the second electronic device. If the predetermined storage space is large, the second electronic device may store motion change information of the plurality of second electronic devices, and if the predetermined storage space is small, for example: 10, the second electronic device may store less second electronic The motion change information of the device, for example, two.
  • the first tracking result is corrected according to the motion description information in the predetermined time period, and finally the second tracking result is obtained.
  • the motion change parameter may be adopted, and the motion change parameter may be adopted.
  • the second tracking result is obtained.
  • the value of the motion change angle may be set within 10 degrees. If the motion direction in the second tracking result changes within the value relative to the motion direction of the first tracking result, the motion direction or angle information of the first tracking result is not used.
  • the motion direction or angle information of the first tracking result may be corrected, and the motion direction or the motion angle in the first tracking result may be changed. Modified to a motion direction or a motion angle in the second motion data acquired according to the second electronic device.
  • a large error may occur when tracking the target, for example, tracking the target in a vision-based tracking technique, and the first tracking result and the second electronic device that can be measured at the first electronic device when the time is extended
  • the second motion data obtained by the measurement is compared with the error, the data of the first tracking result is corrected to ensure the stability during the long-term tracking process.
  • the tracking target when the tracking target suddenly accelerates, the tracking target will be It is easy to lose, when the measured first tracking result is compared with the acquired second motion data, a large error value occurs, and the data of the first tracking result can be corrected (for example, the first electronic device also accelerates the motion, and And correspondingly change the direction of motion) Re-track the target, this will ensure that the tracking target is re-tracked to the target after losing.
  • the first tracking result is corrected according to the motion description information in the predetermined time period, and the second tracking result is obtained, which may be according to the state probability of the tracking target in different motion directions, and the first tracking result.
  • the motion description information includes the state probability of the tracking target in different motion directions, and refers to estimating the target motion direction or speed when performing motion estimation on the tracking target, wherein the target motion direction or speed
  • the estimation may be obtained by the first electronic device according to the second tracking result or the first tracking result, and the estimated target motion direction or speed may be the same as or different from the data of the second tracking result. After tracking the moving direction of the target, the moving area and the moving line of the corresponding tracking target in the next time interval can be obtained.
  • the area in which the tracking target is active may be in a fixed screen, and the next candidate activity area may be sent to the first electronic device according to the second tracking result, where the first electronic device is based on the candidate active area and the tracking target.
  • the active area and the moving route in a certain time interval in the future determine the traveling direction and the traveling speed, thereby improving the accuracy of the tracking.
  • the method may further include: the motion description information in the predetermined time period indicates that the motion direction of the tracking target in the predetermined time period is the first direction, and the first tracking result in the predetermined time period indicates that the tracking target is in the The moving direction in the predetermined time period is the second direction, the first direction is different from the second direction, and the moving distance of the tracking target in the first direction is greater than the preset first distance threshold in the predetermined time period, and the tracking target is at the predetermined time.
  • the moving distance in the second direction in the segment is greater than the preset second distance threshold, an alarm prompt message is generated, and the prompt information is used.
  • the first electronic device is prompted to drop the tracking target.
  • the alarm information is obtained according to the second tracking result
  • the alarm information may be an instruction sent by the processing center of the first electronic device to the target tracking unit, and the target tracking unit may modify the first time after receiving the instruction.
  • Motion data of an electronic device wherein the motion data may be derived according to the second motion data, and if the second tracking result is different from the data of the first tracking result, the first electronic device adjusts its moving direction and motion The speed, for example, speeds up the movement of the first electronic device.
  • the electronic device includes: a target tracking unit 21 configured to perform vision-based target tracking to obtain a tracking target. a first tracking result; the processing unit 22 is configured to: according to the motion information used to describe the motion state of the tracking target, combine the first tracking result, and obtain a second tracking result for the tracking target; wherein, the second tracking result and the first tracking The results are the same or different; the motion information for describing the motion state of the tracking target is obtained based on the measurement by another electronic device disposed on the tracking target.
  • the motion information includes motion measurement parameters for the tracked target, the motion measurement parameters being recorded in a predetermined storage space of the another electronic device, the motion measurement parameters including at least: Acceleration and/or angular velocity of motion;
  • the electronic device further includes a first reading unit configured to periodically or aperiodically access a predetermined storage space of the another electronic device, and acquire the collected by the another electronic device within a predetermined time period.
  • Motion measurement parameters ;
  • the processing unit 22 is configured to perform statistical analysis on the motion measurement parameter in the predetermined time period acquired by the first reading unit, to obtain motion description information of the tracked target in a predetermined time period, And correcting the first tracking result according to the motion description information to obtain the second tracking result; wherein the motion description information includes at least a motion speed and/or a motion direction.
  • the processing unit 22 is configured to combine the other acquired by the first reading unit. Obtaining, by the electronic device, the motion measurement parameter within the predetermined time period and the self-motion measurement parameter of the first electronic device within the predetermined time period, and obtaining the tracked target for the predetermined time period relative to the The motion description information of the first electronic device.
  • the motion information includes motion description information for the tracked target, and the motion description information is statistically analyzed by the another electronic device according to motion measurement parameters within a predetermined time period obtained by the acquisition.
  • the motion measurement parameter comprises at least: motion acceleration and/or motion angular velocity
  • the motion description information includes at least a motion speed and/or a motion direction
  • the motion description information is recorded in a predetermined storage space of the another electronic device in;
  • the electronic device further includes a second reading unit configured to periodically or non-periodically access a predetermined storage space of the another electronic device, and acquire motion description information of the another electronic device within a predetermined time period;
  • the processing unit 22 is configured to correct the first tracking result according to the motion description information in a predetermined time period acquired by the second reading unit, to obtain the second tracking result.
  • the electronic device may receive the motion information of the target motion state measured by the other electronic device, and combine the first electronic information according to the motion information of the target motion state acquired by the other electronic device.
  • the first tracking result obtained by the device in real time is analyzed by the processing unit 22 to obtain a second tracking result of the tracking target, and the target tracking unit 21 is used to detect the motion state of the tracking target in real time, and real time is performed by using another electronic device set on the tracking target.
  • the second tracking result is obtained by combining the motion information of the tracking target measured by another electronic device, and the obtained result is more accurate, which solves the problem of low accuracy when tracking the target in the prior art, and increases the robustness of the visual tracking.
  • the motion description information includes a state of the tracked target in different directions of motion
  • the processing unit 22 is configured to: according to the state probability of the tracked target in different moving directions, and the at least one candidate tracking area of the tracked image represented by the first tracking result in the tracking image Determining a confidence tracking area of the tracked object in the tracking image, and generating a second tracking result based on the confidence tracking area; wherein the state probability is used to indicate that the tracked object is moving in different motion directions Probability.
  • the electronic device further includes an alarm unit configured to: when the motion description information in the predetermined time period indicates that the moving direction of the tracked target within a predetermined time period is a first direction, the first in the predetermined time period
  • the tracking result characterizes that the moving direction of the tracked target in the predetermined time period is a second direction, the first direction is different from the second direction, and the tracked target is in the first direction within a predetermined time period
  • the moving distance is greater than a preset first distance threshold, and when the moving distance of the tracked target in the second direction is greater than a preset second distance threshold within a predetermined time period, an alarm prompt message is generated, and the alarm prompt information is generated. And for prompting the first electronic device to drop the tracked target.
  • the target tracking unit 21 is further configured to re-detect the tracking target and re-execute the vision-based target tracking after the alarm unit generates the alarm prompt information.
  • the target tracking unit 21, the processing unit 22, and the alarm unit in the electronic device may be implemented by a central processing unit (CPU), a digital signal processor (DSP, Digital Signal Processor). a micro-control unit (MCU) or a field-programmable gate array (FPGA); the first reading unit and the second reading unit in the electronic device can be used in practical applications.
  • Communication module including: basic communication suite, operating system, communication module, standardized interface and protocol, etc.
  • transceiver antenna implementation including: basic communication suite, operating system, communication module, standardized interface and protocol, etc.
  • the electronic device provided by the foregoing embodiment is only illustrated by the division of each of the foregoing program modules. In actual applications, the processing allocation may be completed by different program modules as needed.
  • the internal structure of the electronic device is divided into different Program modules to perform all or part of the processing described above.
  • the electronic device and the target tracking method are provided in the same embodiment. For details, refer to the method embodiment, and details are not described herein.
  • Embodiments of the present invention also provide an electronic device including: a processor and a memory for storing a computer program executable on the processor. among them,
  • the memory can be implemented by any type of volatile or non-volatile storage device, or a combination thereof.
  • the non-volatile memory may be a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), or an Erasable Programmable Read (EPROM). Only Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM), Ferromagnetic Random Access Memory (FRAM), Flash Memory, Magnetic Surface Memory , CD-ROM, or Compact Disc Read-Only Memory (CD-ROM); the magnetic surface memory can be a disk storage or a tape storage.
  • the volatile memory can be a random access memory (RAM) that acts as an external cache.
  • RAM Static Random Access Memory
  • SSRAM Synchronous Static Random Access Memory
  • SSRAM Dynamic Random Access
  • DRAM Dynamic Random Access Memory
  • SDRAM Synchronous Dynamic Random Access Memory
  • DDRSDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • ESDRAM enhancement Synchronous Dynamic Random Access Memory
  • SLDRAM Synchronous Dynamic Random Access Memory
  • DRAM Direct Memory Bus Random Access Memory
  • DRRAM Direct) Rambus Random Access Memory
  • the method disclosed in the foregoing embodiments of the present invention may be applied to a processor or implemented by a processor.
  • the processor may be an integrated circuit chip with signal processing capabilities.
  • each step of the above method may be completed by an integrated logic circuit of hardware in a processor or an instruction in a form of software.
  • the above described processor may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, or the like.
  • the processor may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present invention.
  • a general purpose processor can be a microprocessor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiment of the present invention may be directly implemented as a hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a storage medium, the storage medium being located in the memory, the processor reading the information in the memory, and completing the steps of the foregoing methods in combination with the hardware thereof.
  • the processor when the processor is used to run the computer program, performing: performing vision-based target tracking to obtain a first tracking result for the tracked target; according to describing the motion state of the tracked target Motion information, in combination with the first tracking result, analyzing to obtain a second tracking result for the tracked target; wherein the second tracking result is the same as or different from the first tracking result;
  • the motion information of the tracked target motion state is obtained based on the measurement by the second electronic device disposed on the tracked target.
  • the motion information includes motion measurement parameters for the tracked target, the motion measurement parameters are recorded in a predetermined storage space of the second electronic device, and the motion measurement parameters include at least: Acceleration and/or angular velocity of movement;
  • the processor is configured to: periodically or aperiodically access a predetermined storage space of the second electronic device, and acquire the second electronic device at a predetermined time when the computer program is executed Collecting the motion measurement parameters obtained in the segment; performing statistical analysis on the motion measurement parameters in the predetermined time period, Obtaining motion description information of the tracked target within a predetermined time period, correcting the first tracking result according to the motion description information, and obtaining the second tracking result; wherein the motion description information includes at least motion Speed and / or direction of movement.
  • the processor is configured to: when the computer program is executed, perform motion measurement parameters in combination with the second electronic device for a predetermined period of time, and the first electronic device is in the predetermined time period
  • the self-motion measurement parameter within the analysis obtains motion description information of the tracked target relative to the first electronic device during the predetermined time period.
  • the motion information includes motion description information of the tracked target, and the motion description information is obtained by the second electronic device according to the motion measurement parameter in the predetermined time period obtained by the acquisition.
  • the motion measurement parameter includes at least: motion acceleration and/or motion angular velocity
  • the motion description information includes at least a motion speed and/or a motion direction
  • the motion description information is recorded in a predetermined storage space of the second electronic device.
  • the processor is configured to: periodically or non-periodically access a predetermined storage space of the second electronic device, and acquire motion description information of the second electronic device within a predetermined time period; And correcting the first tracking result according to the motion description information in the predetermined time period to obtain the second tracking result.
  • the processor when the processor is configured to run the computer program, performing: a state probability according to the tracked target in different motion directions, and the tracked target represented by the first tracking result Determining, in at least one candidate tracking area in the tracking image, a confidence tracking area of the tracked object in the tracking image, generating a second tracking result based on the trusted tracking area; wherein the state probability is used to represent the Track the probability that a target will move in different directions of motion.
  • the processor when the processor is configured to run the computer program, performing: when the motion description information in the predetermined time period indicates that the moving direction of the tracked target in a predetermined time period is a first direction, The first tracking result within the predetermined time period characterizes the tracked target
  • the moving direction marked in the predetermined time period is a second direction, the first direction is different from the second direction, and the moving distance of the tracked target in the first direction is greater than a preset number in a predetermined time period a distance threshold, when the moving distance of the tracked target in the second direction is greater than a preset second distance threshold in a predetermined time period, generating alarm prompt information, wherein the alarm prompt information is used to prompt the first
  • the electronic device loses the tracked target.
  • the processor when the processor is configured to run the computer program, performing: re-detecting the tracked target after the generating the alert prompt information, and performing the vision-based target tracking again.
  • an embodiment of the present invention further provides a computer readable storage medium, such as a memory including a computer program, which may be executed by a processor of an electronic device to perform the steps of the foregoing method.
  • the computer readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories, such as Mobile phones, computers, tablet devices, personal digital assistants, etc.
  • Embodiments of the present invention provide a computer storage medium, where the computer storage medium stores computer executable instructions for performing: performing vision-based target tracking to obtain a first target for a tracked target Tracking the result; according to the motion information for describing the motion state of the tracked target, combining with the first tracking result, analyzing and obtaining a second tracking result for the tracked target; wherein the second tracking result and the The first tracking result is the same or different; the motion information for describing the motion state of the tracked target is obtained based on the measurement by the second electronic device disposed on the tracked target.
  • the motion information includes motion measurement parameters for the tracked target, the motion measurement parameters are recorded in a predetermined storage space of the second electronic device, and the motion measurement parameters include at least: Acceleration and/or angular velocity of movement; the computer executable instructions for performing: periodically or aperiodically accessing a predetermined storage space of the second electronic device Obtaining the motion measurement parameter collected by the second electronic device in a predetermined time period; performing statistical analysis on the motion measurement parameter in the predetermined time period to obtain the tracked target in a predetermined time period The motion description information is performed, and the first tracking result is corrected according to the motion description information to obtain the second tracking result; wherein the motion description information includes at least a motion speed and/or a motion direction.
  • the computer executable instructions are configured to: combine motion measurement parameters of the second electronic device for a predetermined period of time, and self-motion of the first electronic device during the predetermined time period Measuring parameters, the analysis obtains motion description information of the tracked target relative to the first electronic device during the predetermined time period.
  • the motion information includes motion description information of the tracked target, and the motion description information is obtained by the second electronic device according to the motion measurement parameter in the predetermined time period obtained by the acquisition.
  • the motion measurement parameter includes at least: motion acceleration and/or motion angular velocity
  • the motion description information includes at least a motion speed and/or a motion direction
  • the motion description information is recorded in a predetermined storage space of the second electronic device.
  • the computer executable instructions are configured to: periodically or non-periodically access a predetermined storage space of the second electronic device, and acquire motion description information of the second electronic device within a predetermined time period; The motion description information in a predetermined time period, the first tracking result is corrected, and the second tracking result is obtained.
  • the computer executable instructions are configured to perform: a state probability according to the tracked target in different motion directions, and the tracked target represented by the first tracking result is in a tracking image Determining at least one candidate tracking area, determining a confidence tracking area of the tracked object in the tracking image, generating a second tracking result based on the trusted tracking area; wherein the state probability is used to indicate that the tracked target is different The probability of motion in the direction of motion.
  • the computer executable instructions are for executing: when the predetermined time period
  • the motion description information inside indicates that the moving direction of the tracked target in the predetermined time period is the first direction
  • the first tracking result in the predetermined time period represents that the moving direction of the tracked target in the predetermined time period is a second direction
  • the first direction is different from the second direction
  • the moving distance of the tracked target in the first direction is greater than a preset first distance threshold in a predetermined time period
  • the tracked target is
  • the alarm prompt information is generated, and the alarm prompt information is used to prompt the first electronic device to drop the tracked target.
  • the computer executable instructions are configured to: after the generating the alert prompt information, re-detect the tracked target and re-execute the vision-based target tracking.
  • FIG. 3 is a schematic diagram of an optional target tracking system according to an embodiment of the present invention.
  • the target tracking system includes: the first electronic device 31 and the second electronic device 32 in the above embodiment.
  • the first electronic device 31 is configured to perform a vision-based target tracking, obtain a first tracking result for the tracking target, and according to the motion information for describing the tracking target motion state, combined with the first tracking result, the analysis obtains the tracking target a second tracking result of the target; the second electronic device 32, disposed on the tracking target, configured to obtain motion information for describing a motion state of the tracking target based on the measurement.
  • the motion information includes motion measurement parameters for the tracked target, the motion measurement parameters are recorded in a predetermined storage space of the second electronic device, and the motion measurement parameters include at least:
  • the first electronic device 31 is configured to periodically or non-periodically access a predetermined storage space of the second electronic device, and acquire the second electronic device to acquire the data within a predetermined time period.
  • a tracking result is corrected to obtain the second tracking result; wherein the motion description information includes at least a motion speed and/or a motion direction.
  • the first electronic device 31 is configured to combine the motion measurement parameters of the second electronic device in a predetermined time period and the self-motion measurement parameters of the first electronic device in the predetermined time period, and analyze Obtaining motion description information of the tracked target relative to the first electronic device during the predetermined time period.
  • the motion information includes motion description information of the tracked target, and the motion description information is obtained by the second electronic device according to the motion measurement parameter in the predetermined time period obtained by the acquisition.
  • the motion measurement parameter includes at least: motion acceleration and/or motion angular velocity
  • the motion description information includes at least a motion speed and/or a motion direction
  • the motion description information is recorded in a predetermined storage space of the second electronic device.
  • the first electronic device 31 is configured to periodically or non-periodically access a predetermined storage space of the second electronic device, and acquire motion description information of the second electronic device within a predetermined time period; The motion description information in a predetermined time period, the first tracking result is corrected, and the second tracking result is obtained.
  • the motion description information includes a state probability of the tracked target in different motion directions; the first electronic device 31 is configured to be based on a state probability of the tracked target in different motion directions. And the at least one candidate tracking area in the tracking image of the tracked target represented by the first tracking result, determining a confidence tracking area of the tracked target in the tracking image, and generating a first Two tracking results; wherein the state probability is used to indicate a probability of the tracked target moving in different directions of motion.
  • the first electronic device 31 is configured to: when the motion description information in the predetermined time period indicates that the moving direction of the tracked target in a predetermined time period is a first direction, the predetermined time
  • the first tracking result in the segment characterizes that the moving direction of the tracked target in the predetermined time period is a second direction, the first direction is different from the second direction, and the tracked target is in the predetermined time period
  • the moving distance in the first direction is greater than a preset first distance threshold, and the moving distance of the tracked target in the second direction is greater than the pre-predetermined time period
  • the second distance threshold is set, an alarm prompt message is generated, and the alarm prompt information is used to prompt the first electronic device to drop the tracked target.
  • the first electronic device 31 is configured to re-detect the tracked target and re-execute the vision-based target tracking after the generating the alert prompt information.
  • the first electronic device 31 can obtain the motion information of the target motion state measured by the second electronic device 32, and the motion information of the target motion state acquired according to the second electronic device 32.
  • the second tracking result of the tracking target is obtained, and the motion state of the tracking target is detected in real time, and the second electronic device 32 set on the tracking target is used to measure and obtain the tracking in real time.
  • the motion information of the target is combined with the first tracking result of the tracking target acquired by the first electronic device 31 to obtain a second tracking result. If the first tracking result is corrected by using the motion information, the second tracking result is obtained.
  • the first tracking result of the first electronic device 31 is used as the final result, and the second tracking result is obtained by analyzing the motion information of the tracking target measured by the second electronic device 32, and the obtained result is more accurate, and the prior art is solved.
  • the problem of low accuracy when tracking targets increases the robustness of visual tracking .
  • the tracking target of the solution is a person in the screen, and the measurement environment in which the device is located is a relative screen.
  • the first electronic device is a robot, and the second electronic device is a device that uses an IMU chip.
  • the solution completes the assistance of visual tracking by collecting feedback information sent by the IMU.
  • the robot continuously detects the motion state of the person in the screen by continuously scanning, and the robot has a memory therein, and the memory of the robot can store the state of the motion data of the detected person in the screen and form inside the robot storage space.
  • the first motion data, the second electronic device including the IMU chip is placed on the person inside the screen, and the IMU chip can be checked in real time.
  • the second electronic device includes a storage unit, and the storage unit of the IMU device can store the motion data of the detected motion state of the person to form second motion data, and the robot performs the second motion data returned by the IMU.
  • the robot learns a statistical result through statistical analysis.
  • the robot can analyze the human motion behavior in the screen through the result data, and obtain the target motion information based on the probability, for example, estimating the current movement direction of the sports person.
  • the moving direction includes: forward, backward, stop, left shift, and right shift.
  • the effective motion data in the motion information is integrated into the visual tracking algorithm to achieve the purpose of increasing the tracking target.
  • the position motion direction and the motion speed of the person in the screen can be predicted, and the robot analyzes the motion of the second electronic device carried by the person relative to the robot according to the data returned by the IMU, and the robot can estimate by motion analysis.
  • the movement of the target in the screen which can generate a confidence area, thereby increasing the stability and accuracy of the tracking target.
  • the robot predicts that the pedestrian is moving to the right according to the obtained IMU feedback information, the confidence area appears on the right.
  • the confidence of Rectangle2 is higher, Rectangle1 can be suppressed, and the middle or final filter result of visual tracking is Rectangle2, that is, the person inside the prediction screen will move to the right.
  • the machine can be corrected in time when the visual tracking algorithm of the machine fails. For example, if the robot obtains that the target motion direction is seriously inconsistent with the motion direction estimated based on the visual technology, the robot can make a “follow” judgment. At this time, the robot can re-determine the moving direction and moving speed of the target in the screen through the information returned by the second electronic device of the IMU, so that the robot can correct the future moving direction of the robot through the controller.
  • the visual tracking result shows that the person has been moving to the left in the n frames of video, and the moving distance to the left is greater than the distance threshold.
  • the IMU feedback message indicates that the target has been moving to the right.
  • the visual tracking can be basically judged as “following”, the visual tracking algorithm can be re-initialized, and the moving direction of the robot is re-determined, so that the robot can continue to track the target.
  • the visual tracking algorithm of the above embodiment may include at least the following algorithms: a camshift algorithm, an optical flow tracking algorithm, and a particle filtering algorithm.
  • the robot in the process of tracking the person in the screen, can receive the motion information of the target motion state measured by the second electronic device on the person in the screen, according to the person acquired by the second electronic device
  • the motion information of the motion state is combined with the first tracking result obtained by the robot in real time to obtain the second tracking result of the person, and the motion state of the person is detected in real time, and the motion of the tracking target is obtained by real-time measurement using the second electronic device set on the person.
  • the information is combined with the first tracking result of the person acquired by the robot, and the second tracking result is obtained by analyzing the first tracking result by using the motion information to obtain the second tracking result.
  • the first tracking result of the robot is not directly used.
  • the second tracking result is obtained by analyzing the motion information of the person measured by the second electronic device, and the obtained result is more accurate, which solves the problem of low accuracy when tracking the target in the prior art, and increases the vision. Tracking robustness.
  • FIG. 5 is a second flowchart of an optional target tracking method according to an embodiment of the present invention.
  • a visual tracking algorithm is run on a ground mobile robot with a dynamic balance vehicle as a sports chassis, and the user's motion information is carried through the portable body.
  • IMU's mobile devices (such as mobile phones, wristbands, remote controls, tablets, etc.) feed back to the robot to complete the tracking of the visual tracking and track the mobile device.
  • the method includes:
  • step S501 the robot visual tracking algorithm and the IMU device held by the user are initialized.
  • Step S502 the visual tracking algorithm establishes a target model, and tracks the user online in real time.
  • step S503 the IMU data buffer is periodically accessed during the tracking process, and certain statistical learning is performed on the IMU data in this stage to obtain user motion information based on the probability.
  • the user motion information can be divided into five states: front, back, left, right, and stop.
  • step S504 an image confidence area is obtained.
  • step S505 it is determined whether the confidence region and the user's final motion result are completely different or meet a certain "following" criterion.
  • step S506 If yes, go to step S506, if no, go to step S508.
  • step S506 the visual algorithm model is no longer updated.
  • step S507 the visual algorithm model is reinitialized or pedestrian detected, and the process returns to step S503.
  • step S508 the intermediate or final result of the visual tracking algorithm is corrected.
  • the intermediate or final result of the visual tracking algorithm is corrected by using the confidence region of step S504, thereby improving the accuracy of the visual tracking algorithm.
  • step S509 the visual algorithm updates the model, and returns to step S503.
  • the traveling robot in the process of tracking the target, can receive the motion information of the motion state of the user measured by the IMU-containing mobile device on the user, and combine the motion information of the target motion state acquired by the mobile device.
  • the first tracking result obtained by the robot in real time is analyzed to obtain the second tracking result of the tracking target, and the accurate information for detecting the motion state of the user in real time is obtained, and the moving information is extracted by the above-mentioned IMU-containing mobile device for object motion analysis, which can be predicted.
  • the user's motion direction or motion angle can also find errors in the predicted target motion state that occur during the tracking process, thereby solving the technical problem of low tracking accuracy caused by long-term visual tracking, and increasing the robustness of visual tracking.
  • embodiments of the present invention are not limited to ground mobile robots, but are also applicable to space flight type robots (such as drones).
  • the disclosed technical contents may be implemented in other manners.
  • the embodiment of the electronic device described above is only schematic.
  • the division of the unit may be a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, unit or module, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a ROM, a RAM, a mobile hard disk, a magnetic disk, or an optical disk.
  • the technical solution of the embodiment of the present invention combines the motion information of the tracked target measured by the second electronic device to obtain a second tracking result, so that the obtained tracking result is more accurate, and the problem of low accuracy when tracking the target in the prior art is solved. , increased the robustness of visual tracking.

Abstract

A target tracking method and system, an electronic device, and a computer storage medium. The method comprises: executing vision-based target tracking, and obtaining a first tracking result for a tracked target (S102); according to movement information used for describing a movement state of the tracked target, in combination with the first tracking result, performing analysis to obtain a second tracking result for the tracked target (S104), the second tracking result being the same as or different from the first tracking result, the movement information used for describing the movement state of the tracked target being measurement-based and obtained from a second electronic device (32) arranged on the tracked target.

Description

目标跟踪方法、系统、电子设备和计算机存储介质Target tracking method, system, electronic device and computer storage medium
相关申请的交叉引用Cross-reference to related applications
本申请基于申请号为201611001901.8、申请日为2016年11月14日的中国专利申请、以及申请号为201610891388.8、申请日为2016年10月12日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本申请。The application is based on a Chinese patent application with the application number of 201611001901.8, the application date is November 14, 2016, and the Chinese patent application with the application number of 201610891388.8 and the application date of October 12, 2016, and the Chinese patent application is required. The entire contents of this Chinese patent application are hereby incorporated herein by reference.
技术领域Technical field
本发明涉及目标跟踪领域,具体涉及一种目标跟踪方法、系统、电子设备和计算机存储介质。The present invention relates to the field of target tracking, and in particular to a target tracking method, system, electronic device and computer storage medium.
背景技术Background technique
现有技术中,目标跟踪是绝大多数视觉系统中不可或缺的环节,在视频监控、人机交互和军事领域等都有应用。当前的目标跟踪技术在目标运动方式、目标运动场景、目标外在特征的突然改变以及在跟踪目标时对目标的拍摄出现抖动和光照的突然变化等情况下,会出现检测跟踪系统的准确率和稳定性的下降等问题,例如,基于视觉的跟踪技术在长时间跟踪过程中稳定性差,并且在目标物体突然加速运动时候,容易跟丢,对于基于视觉的运动行为分析技术,容易造成在跟踪过程中跟踪数值出现误差累计,从而无法形成闭环调整等问题。In the prior art, target tracking is an indispensable part of most visual systems, and has applications in video surveillance, human-computer interaction, and military fields. The current target tracking technology can detect the accuracy of the tracking system in the case of the target motion mode, the target motion scene, the sudden change of the target external features, and the sudden changes in the shooting of the target when tracking the target. Problems such as the decrease in stability, for example, the vision-based tracking technique has poor stability during long-term tracking, and is easy to lose when the target object suddenly accelerates. For the vision-based motion behavior analysis technology, it is easy to cause the tracking process. The error is accumulated in the tracking value, so that the closed loop adjustment cannot be formed.
针对上述视觉跟踪的准确性低的问题,目前尚无有效解决方案。In view of the low accuracy of the above visual tracking, there is currently no effective solution.
发明内容Summary of the invention
本发明实施例期望提供一种目标跟踪方法、系统、电子设备和计算机 存储介质,以至少解决长时间视觉跟踪出现的跟踪准确性低的技术问题。Embodiments of the present invention are expected to provide a target tracking method, system, electronic device, and computer Storage media to solve at least the technical problem of low tracking accuracy for long-term visual tracking.
根据本发明实施例的第一方面,提供了一种目标跟踪方法,应用于第一电子设备,该方法包括:执行基于视觉的目标跟踪,获得针对被跟踪目标的第一跟踪结果;根据用于描述所述被跟踪目标运动状态的运动信息,结合所述第一跟踪结果,分析获得针对所述被跟踪目标的第二跟踪结果;其中,所述第二跟踪结果与所述第一跟踪结果相同或不同;所述用于描述所述被跟踪目标运动状态的运动信息由设置于所述被跟踪目标上的第二电子设备基于测量获得。According to a first aspect of the embodiments of the present invention, there is provided a target tracking method, applied to a first electronic device, the method comprising: performing a vision-based target tracking to obtain a first tracking result for a tracked target; Determining motion information of the tracked target motion state, and combining the first tracking result, analyzing to obtain a second tracking result for the tracked target; wherein the second tracking result is the same as the first tracking result Or different; the motion information for describing the motion state of the tracked target is obtained based on a measurement by a second electronic device disposed on the tracked target.
在一实施例中,所述运动信息包括针对所述被跟踪目标的运动测量参数,所述运动测量参数记载在所述第二电子设备的预定存储空间中,所述运动测量参数至少包括:运动加速度和/或运动角速度;所述第一电子设备获得运动信息,包括:周期性或非周期性的访问所述第二电子设备的预定存储空间,获取所述第二电子设备在预定时间段内采集得到的所述运动测量参数;所述根据用于描述被跟踪目标运动状态的运动信息,结合所述第一跟踪结果,分析获得针对被跟踪目标的第二跟踪结果,包括:对所述预定时间段内的所述运动测量参数进行统计分析,获得所述被跟踪目标在预定时间段内的运动描述信息,根据所述运动描述信息对所述第一跟踪结果进行修正,获得所述第二跟踪结果;其中,所述运动描述信息至少包括运动速度和/或运动方向。In an embodiment, the motion information includes motion measurement parameters for the tracked target, the motion measurement parameters are recorded in a predetermined storage space of the second electronic device, and the motion measurement parameters include at least: Acceleration and/or angular angular velocity; the first electronic device obtains motion information, including: periodically or aperiodically accessing a predetermined storage space of the second electronic device, and acquiring the second electronic device within a predetermined time period Acquiring the obtained motion measurement parameter; according to the motion information for describing the motion state of the tracked target, combining the first tracking result, analyzing and obtaining the second tracking result for the tracked target, including: Performing statistical analysis on the motion measurement parameter in the time period, obtaining motion description information of the tracked target in a predetermined time period, and correcting the first tracking result according to the motion description information to obtain the second Tracking the result; wherein the motion description information includes at least a motion speed and/or a motion direction.
在一实施例中,所述对所述预定时间段内的所述运动测量参数进行统计分析,获得被跟踪目标在预定时间段内的运动描述信息,包括:结合所述第二电子设备在预定时间段内的运动测量参数、以及所述第一电子设备在所述预定时间段内的自身运动测量参数,分析获得所述被跟踪目标在所述预定时间段内相对于所述第一电子设备的运动描述信息。In an embodiment, performing statistical analysis on the motion measurement parameter in the predetermined time period to obtain motion description information of the tracked target within a predetermined time period, including: combining the second electronic device in a predetermined The motion measurement parameter in the time period and the self-motion measurement parameter of the first electronic device in the predetermined time period, and the analysis obtains the tracked target relative to the first electronic device within the predetermined time period Motion description information.
在一实施例中,所述运动信息包括对所述被跟踪目标的运动描述信息, 所述运动描述信息由所述第二电子设备根据采集获得的预定时间段内的运动测量参数进行统计分析获得,所述运动测量参数至少包括:运动加速度和/或运动角速度,所述运动描述信息至少包括运动速度和/或运动方向,所述运动描述信息记载在所述第二电子设备的预定存储空间中;所述第一电子设备获得运动信息,包括:周期性或非周期性的访问所述第二电子设备的预定存储空间,获取所述第二电子设备在预定时间段内的运动描述信息;所述根据用于描述被跟踪目标运动状态的运动信息,结合所述第一跟踪结果,分析获得针对被跟踪目标的第二跟踪结果,包括:根据所述预定时间段内的所述运动描述信息,对所述第一跟踪结果进行修正,获得所述第二跟踪结果。In an embodiment, the motion information includes motion description information for the tracked target, The motion description information is obtained by the second electronic device according to the motion measurement parameter in the predetermined time period obtained by the acquisition, and the motion measurement parameter includes at least: motion acceleration and/or motion angular velocity, and the motion description information. Include at least a motion speed and/or a motion direction, the motion description information being recorded in a predetermined storage space of the second electronic device; the first electronic device obtaining motion information, including: a periodic or non-periodic access station a predetermined storage space of the second electronic device, acquiring motion description information of the second electronic device in a predetermined time period; and combining the first tracking result according to the motion information for describing the motion state of the tracked target, The obtaining the second tracking result for the tracked target includes: correcting the first tracking result according to the motion description information in the predetermined time period to obtain the second tracking result.
在一实施例中,所述运动描述信息包括所述被跟踪目标在不同运动方向上的状态概率;根据所述预定时间段内的运动描述信息,对第一跟踪结果进行修正,获得第二跟踪结果,包括:根据所述被跟踪目标在不同运动方向上的状态概率,以及所述第一跟踪结果所表示的所述被跟踪目标在跟踪图像中的至少一个候选跟踪区域,确定所述被跟踪目标在跟踪图像中的置信跟踪区域,基于所述置信跟踪区域生成第二跟踪结果;其中,所述状态概率用于表示所述被跟踪目标在不同运动方向上运动的概率。In an embodiment, the motion description information includes a state probability of the tracked target in different motion directions; and correcting the first tracking result according to the motion description information in the predetermined time period to obtain a second tracking a result, comprising: determining the tracked state according to a state probability of the tracked target in different moving directions, and the tracked target represented by the first tracking result is at least one candidate tracking area in a tracking image The target is in a confidence tracking area in the tracking image, and a second tracking result is generated based on the confidence tracking area; wherein the state probability is used to indicate a probability that the tracked object moves in different directions of motion.
在一实施例中,所述方法还包括:当所述预定时间段内的运动描述信息表示所述被跟踪目标在预定时间段内的运动方向为第一方向,所述预定时间段内的第一跟踪结果表征所述被跟踪目标在预定时间段内的运动方向为第二方向,所述第一方向与第二方向不同,且所述被跟踪目标在预定时间段内在所述第一方向上的移动距离大于预设的第一距离阈值,所述被跟踪目标在预定时间段内在所述第二方向上的移动距离大于预设的第二距离阈值时,产生报警提示信息,所述报警提示信息用于提示所述第一电子设备跟丢所述被跟踪目标。 In an embodiment, the method further includes: when the motion description information in the predetermined time period indicates that the moving direction of the tracked target in a predetermined time period is a first direction, the first time in the predetermined time period a tracking result characterizing that the moving direction of the tracked target is within a predetermined time period is a second direction, the first direction is different from the second direction, and the tracked target is in the first direction within a predetermined time period The moving distance is greater than a preset first distance threshold, and when the moving distance of the tracked target in the second direction is greater than a preset second distance threshold within a predetermined time period, an alarm prompt message is generated, the alarm prompt The information is used to prompt the first electronic device to drop the tracked target.
在一实施例中,在所述产生报警提示信息之后,所述方法还包括:重新检测所述被跟踪目标,重新执行基于视觉的目标跟踪。In an embodiment, after the generating the alert prompt information, the method further comprises: re-detecting the tracked target, and performing the vision-based target tracking again.
根据本发明实施例的第二方面,还提供了一种电子设备,该电子设备包括:目标跟踪单元,配置为执行基于视觉的目标跟踪,获得针对被跟踪目标的第一跟踪结果;处理单元,配置为根据用于描述所述被跟踪目标运动状态的运动信息,结合所述第一跟踪结果,分析获得针对所述被跟踪目标的第二跟踪结果;其中,所述第二跟踪结果与所述第一跟踪结果相同或不同;所述用于描述所述被跟踪目标运动状态的运动信息由设置于所述被跟踪目标上的另一电子设备基于测量获得。According to a second aspect of the embodiments of the present invention, there is also provided an electronic device, comprising: a target tracking unit configured to perform vision-based target tracking to obtain a first tracking result for a tracked target; a processing unit, Configuring, according to the motion information used to describe the motion state of the tracked target, in combination with the first tracking result, analyzing to obtain a second tracking result for the tracked target; wherein the second tracking result is The first tracking result is the same or different; the motion information for describing the motion state of the tracked target is obtained based on measurement by another electronic device disposed on the tracked target.
在一实施例中,所述运动信息包括针对所述被跟踪目标的运动测量参数,所述运动测量参数记载在所述另一电子设备的预定存储空间中,所述运动测量参数至少包括:运动加速度和/或运动角速度;所述电子设备还包括第一读取单元,配置为周期性或非周期性的访问所述另一电子设备的预定存储空间,获取所述另一电子设备在预定时间段内采集得到的所述运动测量参数;所述处理单元,配置为对所述第一读取单元获取的所述预定时间段内的所述运动测量参数进行统计分析,获得所述被跟踪目标在预定时间段内的运动描述信息,根据所述运动描述信息对所述第一跟踪结果进行修正,获得所述第二跟踪结果;其中,所述运动描述信息至少包括运动速度和/或运动方向。In an embodiment, the motion information includes motion measurement parameters for the tracked target, the motion measurement parameters being recorded in a predetermined storage space of the another electronic device, the motion measurement parameters including at least: An acceleration and/or a moving angular velocity; the electronic device further comprising a first reading unit configured to periodically or aperiodically access a predetermined storage space of the another electronic device to acquire the another electronic device at a predetermined time The motion measurement parameter is collected in the segment; the processing unit is configured to perform statistical analysis on the motion measurement parameter in the predetermined time period acquired by the first reading unit, to obtain the tracked target The motion description information in the predetermined time period, the first tracking result is corrected according to the motion description information, and the second tracking result is obtained; wherein the motion description information includes at least a motion speed and/or a motion direction .
在一实施例中,所述处理单元,配置为结合所述第一读取单元获取的所述另一电子设备在预定时间段内的运动测量参数、以及所述第一电子设备在所述预定时间段内的自身运动测量参数,分析获得所述被跟踪目标在所述预定时间段内相对于所述第一电子设备的运动描述信息。In an embodiment, the processing unit is configured to combine the motion measurement parameter of the another electronic device acquired by the first reading unit with a predetermined time period, and the first electronic device is in the predetermined The self-motion measurement parameter in the time period is analyzed, and the motion description information of the tracked target relative to the first electronic device during the predetermined time period is obtained.
在一实施例中,所述运动信息包括对所述被跟踪目标的运动描述信息,所述运动描述信息由所述另一电子设备根据采集获得的预定时间段内的运 动测量参数进行统计分析获得,所述运动测量参数至少包括:运动加速度和/或运动角速度,所述运动描述信息至少包括运动速度和/或运动方向,所述运动描述信息记载在所述另一电子设备的预定存储空间中;所述电子设备还包括第二读取单元,配置为周期性或非周期性的访问所述另一电子设备的预定存储空间,获取所述另一电子设备在预定时间段内的运动描述信息;所述处理单元,配置为根据所述第二读取单元获取的预定时间段内的所述运动描述信息,对所述第一跟踪结果进行修正,获得所述第二跟踪结果。In an embodiment, the motion information includes motion description information of the tracked target, and the motion description information is used by the another electronic device according to the acquisition for a predetermined time period. The dynamic measurement parameter is obtained by statistical analysis, and the motion measurement parameter includes at least: motion acceleration and/or motion angular velocity, the motion description information includes at least a motion speed and/or a motion direction, and the motion description information is recorded in the other a predetermined storage space of the electronic device; the electronic device further includes a second reading unit configured to periodically or aperiodically access a predetermined storage space of the another electronic device, and acquire the another electronic device at a predetermined The motion description information in the time period; the processing unit is configured to correct the first tracking result according to the motion description information in the predetermined time period acquired by the second reading unit, to obtain the first Second tracking results.
在一实施例中,所述运动描述信息包括所述被跟踪目标在不同运动方向上的状态概率;所述处理单元,配置为根据所述被跟踪目标在不同运动方向上的状态概率,以及所述第一跟踪结果所表示的所述被跟踪目标在跟踪图像中的至少一个候选跟踪区域,确定所述被跟踪目标在跟踪图像中的置信跟踪区域,并基于所述置信跟踪区域生成第二跟踪结果;其中,所述状态概率用于表示所述被跟踪目标在不同运动方向上运动的概率。In an embodiment, the motion description information includes a state probability of the tracked target in different motion directions; the processing unit is configured to be based on a state probability of the tracked target in different motion directions, and Determining, by the first tracking result, the tracked target is at least one candidate tracking area in the tracking image, determining a trusted tracking area of the tracked target in the tracking image, and generating a second tracking based on the trusted tracking area a result; wherein the state probability is used to indicate a probability of the tracked target moving in different directions of motion.
在一实施例中,所述电子设备还包括报警单元,配置为当所述预定时间段内的运动描述信息表示所述被跟踪目标在预定时间段内的运动方向为第一方向,所述预定时间段内的第一跟踪结果表征所述被跟踪目标在预定时间段内的运动方向为第二方向,所述第一方向与第二方向不同,且所述被跟踪目标在预定时间段内在所述第一方向上的移动距离大于预设的第一距离阈值,所述被跟踪目标在预定时间段内在所述第二方向上的移动距离大于预设的第二距离阈值时,产生报警提示信息,所述报警提示信息用于提示所述第一电子设备跟丢所述被跟踪目标。In an embodiment, the electronic device further includes an alarm unit configured to: when the motion description information in the predetermined time period indicates that the direction of motion of the tracked target within a predetermined time period is a first direction, the predetermined The first tracking result in the time period represents that the moving direction of the tracked target in the predetermined time period is the second direction, the first direction is different from the second direction, and the tracked target is in the predetermined time period The moving distance in the first direction is greater than a preset first distance threshold, and when the moving distance of the tracked target in the second direction is greater than a preset second distance threshold in a predetermined time period, an alarm prompt message is generated. The alarm prompt information is used to prompt the first electronic device to drop the tracked target.
在一实施例中,所述目标跟踪单元,还配置为在所述报警单元产生报警提示信息之后,重新检测所述被跟踪目标,重新执行基于视觉的目标跟踪。 In an embodiment, the target tracking unit is further configured to re-detect the tracked target and re-execute the vision-based target tracking after the alarm unit generates the alarm prompt information.
根据本发明实施例的第三方面,还提供了一种目标跟踪系统,该目标跟踪系统包括:本发明实施例所述的电子设备;另一电子设备,设置于所述被跟踪目标上,配置为基于测量获得所述用于描述所述被跟踪目标运动状态的运动信息。According to a third aspect of the present invention, a target tracking system is further provided, the target tracking system includes: an electronic device according to an embodiment of the present invention; and another electronic device disposed on the tracked target, configured The motion information for describing the motion state of the tracked target is obtained based on the measurement.
根据本发明实施例的第四方面,还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行本发明实施例所述的目标跟踪方法。According to a fourth aspect of the present invention, there is further provided a computer storage medium having stored therein computer executable instructions for performing target tracking according to an embodiment of the present invention method.
本发明实施例提供的目标跟踪方法、系统、电子设备和计算机存储介质,在跟踪目标的过程中,第一电子设备可获得来自第二电子设备测量出的目标运动状态的运动信息,根据所述运动信息结合第一电子设备实时获取到的第一跟踪结果分析得出被跟踪目标的第二跟踪结果,达到实时检测被跟踪目标的运动状态。通过本发明实施例的技术方案,结合第二电子设备测量得到的被跟踪目标的运动信息分析得到第二跟踪结果,使得获得的跟踪结果更加准确,解决了现有技术中跟踪目标时准确性低的问题,增加了视觉跟踪的鲁棒性。The object tracking method, the system, the electronic device, and the computer storage medium provided by the embodiment of the present invention, in the process of tracking the target, the first electronic device may obtain motion information of the target motion state measured by the second electronic device, according to the The motion information is combined with the first tracking result obtained by the first electronic device in real time to obtain a second tracking result of the tracked target, and the motion state of the tracked target is detected in real time. According to the technical solution of the embodiment of the present invention, the second tracking result is obtained by combining the motion information of the tracked target measured by the second electronic device, so that the obtained tracking result is more accurate, and the accuracy of the tracking target in the prior art is solved. The problem increases the robustness of visual tracking.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的一种可选地目标跟踪方法的流程图一;1 is a flow chart 1 of an optional target tracking method according to an embodiment of the present invention;
图2是根据本发明实施例的一种可选地电子设备的结构图;2 is a block diagram of an alternative electronic device in accordance with an embodiment of the present invention;
图3是根据本发明实施例的一种可选地目标跟踪系统的示意图;3 is a schematic diagram of an optional target tracking system in accordance with an embodiment of the present invention;
图4是根据本发明实施例的一种可选地目标跟踪方法的实施场景的示意图;4 is a schematic diagram of an implementation scenario of an optional target tracking method according to an embodiment of the present invention;
图5是根据本发明实施例的一种可选地目标跟踪方法的流程图二。 5 is a flow chart 2 of an alternative target tracking method in accordance with an embodiment of the present invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order. It is to be understood that the data so used may be interchanged where appropriate, so that the embodiments of the invention described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
名词解释:Glossary:
视觉跟踪:指对图像序列中的运动目标进行检测、提取、识别和跟踪,获得运动目标的运动参数,如位置、速度、加速度和运动轨迹等,从而进行下一步的处理与分析,实现对运动目标的行为理解,以完成更高一级的检测任务。Visual tracking: refers to the detection, extraction, recognition and tracking of moving targets in the image sequence, and obtains the motion parameters of the moving target, such as position, velocity, acceleration and motion trajectory, so as to carry out the next processing and analysis to achieve the motion The behavior of the target is understood to complete a higher level of testing tasks.
惯性测量单元(IMU,Inertial Measurement Unit),是测量物体三轴姿态角(或角速率)以及加速度的装置。陀螺仪及加速度计是IMU的主要元件,其精度直接影响到惯性系统的精度。一般情况,一个IMU包含了三个单轴的加速度计和三个单轴的陀螺仪,加速度计检测物体在载体坐标系统独立三轴的加速度信号,而陀螺仪检测载体相对于导航坐标系的角速度信号,测量物体在三维空间中的角速度和加速度,并以此解算出物体的姿态。 The Inertial Measurement Unit (IMU) is a device that measures the three-axis attitude angle (or angular velocity) and acceleration of an object. Gyros and accelerometers are the main components of the IMU, and their accuracy directly affects the accuracy of the inertial system. In general, an IMU consists of three single-axis accelerometers and three single-axis gyroscopes. The accelerometer detects the acceleration of an object's independent three-axis acceleration signal in the carrier coordinate system, while the gyroscope detects the angular velocity of the carrier relative to the navigational coordinate system. The signal measures the angular velocity and acceleration of the object in three dimensions and solves the attitude of the object.
根据本发明实施例,提供了一种目标跟踪方法的实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。In accordance with an embodiment of the present invention, an embodiment of a target tracking method is provided, it being noted that the steps illustrated in the flowchart of the figures may be performed in a computer system such as a set of computer executable instructions, and, although The logical order is shown in the flowcharts, but in some cases the steps shown or described may be performed in a different order than the ones described herein.
图1是根据本发明实施例的一种可选的目标跟踪方法的流程图一,如图1所示,该方法包括如下步骤:FIG. 1 is a flowchart 1 of an optional target tracking method according to an embodiment of the present invention. As shown in FIG. 1 , the method includes the following steps:
步骤S102,执行基于视觉的目标跟踪,获得针对被跟踪目标的第一跟踪结果。Step S102, performing vision-based target tracking to obtain a first tracking result for the tracked target.
步骤S104,根据用于描述被跟踪目标运动状态的运动信息,结合第一跟踪结果,分析获得针对被跟踪目标的第二跟踪结果。Step S104, according to the motion information for describing the motion state of the tracked target, combined with the first tracking result, the analysis obtains the second tracking result for the tracked target.
其中,该方法应用于第一电子设备,第一电子设备具有目标跟踪单元,目标跟踪单元用于执行基于视觉的目标跟踪;第二跟踪结果与第一跟踪结果相同或不同;用于描述被跟踪目标运动状态的运动信息由设置于被跟踪目标上的第二电子设备基于测量获得。The method is applied to a first electronic device, the first electronic device has a target tracking unit, and the target tracking unit is configured to perform vision-based target tracking; the second tracking result is the same as or different from the first tracking result; The motion information of the target motion state is obtained based on the measurement by the second electronic device disposed on the tracked target.
本发明实施例中,在跟踪目标的过程中,第一电子设备可接收到来自第二电子设备测量出的目标运动状态的运动信息,根据第二电子设备获取到的目标运动状态的运动信息结合第一电子设备实时获取到的第一跟踪结果经过分析得出跟踪目标的第二跟踪结果,可以达到实时检测跟踪目标的运动状态,利用设置在跟踪目标上的第二电子设备实时测量获得跟踪目标的运动信息,并结合第一电子设备获取的跟踪目标的第一跟踪结果,分析得到第二跟踪结果,如利用该运动信息修正第一跟踪结果得到第二跟踪结果,通过上述方案,不是直接将第一电子设备的第一跟踪结果作为最终的结果,而是结合第二电子设备测量得到的跟踪目标的运动信息分析得到第二跟踪结果,得到的结果更加准确,解决了现有技术中跟踪目标时准确性低的问题,增加了视觉跟踪的鲁棒性。 In the embodiment of the present invention, in the process of tracking the target, the first electronic device may receive the motion information of the target motion state measured by the second electronic device, and combine the motion information of the target motion state acquired by the second electronic device. The first tracking result obtained by the first electronic device in real time is analyzed to obtain the second tracking result of the tracking target, and the motion state of the tracking target can be detected in real time, and the tracking target is obtained by real-time measurement by the second electronic device set on the tracking target. And the first tracking result of the tracking target acquired by the first electronic device, and the second tracking result is obtained by using the motion information to correct the first tracking result, and the second tracking result is obtained by using the foregoing solution, instead of directly The first tracking result of the first electronic device is used as the final result, and the second tracking result is obtained by analyzing the motion information of the tracking target measured by the second electronic device, and the obtained result is more accurate, and the tracking target in the prior art is solved. Low accuracy time, increasing the robustness of visual tracking .
上述实施例中,可在跟踪目标的身上配置一种可检测目标运动状态的移动设备(即第二电子设备),而无需繁琐的外围设备,结合该第二电子设备得到的运动信息与第二电子设备得到的第一跟踪结果得到第二跟踪结果,不仅可以得到准确的跟踪结果,而且可以降低跟踪成本。In the above embodiment, a mobile device (ie, a second electronic device) capable of detecting a target motion state may be disposed on the tracking target without cumbersome peripheral devices, and the motion information obtained by the second electronic device is combined with the second The first tracking result obtained by the electronic device obtains the second tracking result, which not only can obtain an accurate tracking result, but also can reduce the tracking cost.
对于上述实施例,本申请实施例应用于第一电子设备,第一电子设备可以是一种检测跟踪目标的运动状态的移动设备,该移动设备可以设置有目标跟踪单元,该目标跟踪单元可用于执行基于视觉的目标跟踪。For the above embodiment, the embodiment of the present application is applied to the first electronic device, and the first electronic device may be a mobile device that detects the motion state of the tracking target, and the mobile device may be provided with a target tracking unit, and the target tracking unit may be used for Perform vision-based target tracking.
上述实施例中的第一电子设备可以有相应的跟踪系统,该跟踪系统可以安装在第一电子设备上,其用于控制第一电子设备的各个单元工作,该跟踪系统向第一电子设备的各个单元发出指令,该指令可以指示第一电子设备的各个单元工作,从而使得第一电子设备可以跟踪目标,其中,该指令的表现形式可以为数据包或代码,第一电子设备中的各个单元在接收到指令后,根据指令信息执行相应的任务,从而可以与第二电子设备交互,达到准确跟踪目标的功能。The first electronic device in the above embodiment may have a corresponding tracking system, which may be installed on the first electronic device, and is used to control the operation of each unit of the first electronic device, and the tracking system is directed to the first electronic device. Each unit issues an instruction, which can instruct each unit of the first electronic device to work, such that the first electronic device can track the target, wherein the representation of the instruction can be a data packet or code, each unit in the first electronic device After receiving the instruction, the corresponding task is executed according to the instruction information, so that the second electronic device can be interacted to achieve the function of accurately tracking the target.
在一种实施方式中,第一电子设备可以是机器人。In an embodiment, the first electronic device can be a robot.
对于上述实施例,通过目标跟踪单元执行基于视觉的目标跟踪,并获得针对跟踪目标的第一跟踪结果,其中,该目标跟踪单元可以设置有检测装置,该检测装置可以检测跟踪目标的第一位置信息以及跟踪目标的运动状态,该运动状态包括运动方向和运动角度。对于上述目标跟踪单元,可以通过检测装置检测跟踪目标的位置,获取到目标的第一位置,目标跟踪单元获取到跟踪目标的第一位置后,将该第一位置的位置信息形成第一数据,该数据可以包括跟踪目标所处的坐标信息、当期时间以及跟踪目标与第一电子设备之间的距离,其中,上述的坐标信息可以是根据第一电子设备中的定位单元获取的,目标跟踪单元存储获取的第一数据;目标跟踪单元再将第一数据传输到第一电子设备的存储单元中,第一电子设备获取到 第一数据后,再次向目标跟踪单元发出检测指令,目标跟踪单元根据接收的检测指令,再次获取跟踪目标的第二位置信息,目标跟踪单元将获取到的跟踪目标的第二位置信息形成第二数据,目标跟踪单元将获取到的第二数据发送到第一电子设备中,第一电子设备根据第一数据和第二数据,经过比较分析,得到跟踪目标的移动方向、移动速度以及当前跟踪目标的当前坐标数据。其中,跟踪目标的移动方向可以根据第二数据的跟踪目标的坐标相对于第一数据的跟踪目标的坐标判断出跟踪目标的移动方向,判断跟踪目标的移动速度可以根据第一数据中的所处时间和第二数据中的所处时间以及跟踪目标的移动距离来判断出跟踪目标在第一数据和第二数据之间移动时的移动速度。第一电子设备将分析出的跟踪目标的移动方向、坐标信息、移动速度、移动时间以及跟踪目标与该第一电子设备之间的距离形成第一跟踪结果,第一电子设备存储第一跟踪结果,再将第一跟踪结果发送到目标跟踪单元。For the above embodiment, the vision-based target tracking is performed by the target tracking unit, and the first tracking result for the tracking target is obtained, wherein the target tracking unit may be provided with a detecting device, and the detecting device may detect the first position of the tracking target Information and tracking the motion state of the target, which includes the direction of motion and the angle of motion. For the target tracking unit, the detection device detects the position of the tracking target, and acquires the first position of the target. After the target tracking unit acquires the first position of the tracking target, the position information of the first position forms the first data. The data may include coordinate information of the tracking target, a current time, and a distance between the tracking target and the first electronic device, where the coordinate information may be acquired according to a positioning unit in the first electronic device, and the target tracking unit And storing the acquired first data; the target tracking unit transmits the first data to the storage unit of the first electronic device, where the first electronic device acquires After the first data, the detection instruction is sent to the target tracking unit again, and the target tracking unit acquires the second location information of the tracking target again according to the received detection instruction, and the target tracking unit forms the second location information of the acquired tracking target into a second. Data, the target tracking unit sends the acquired second data to the first electronic device, and the first electronic device compares and analyzes according to the first data and the second data to obtain a moving direction, a moving speed, and a current tracking target of the tracking target. Current coordinate data. The moving direction of the tracking target may be determined according to the coordinate of the tracking target of the second data relative to the coordinate of the tracking target of the first data, and the moving speed of the tracking target may be determined according to where the first data is located. The time and the time in the second data and the moving distance of the tracking target determine the moving speed of the tracking target when moving between the first data and the second data. The first electronic device forms a first tracking result by using the analyzed moving direction, coordinate information, moving speed, moving time, and the distance between the tracking target and the first electronic device, and the first electronic device stores the first tracking result. And then send the first tracking result to the target tracking unit.
在一实施例中,第一电子设备可以通过无线传输的形式传输数据,同时第一电子设备的系统根据第一跟踪结果发送指令到第一电子设备的目标跟踪单元,使第一电子设备移动,其移动的方向和速度可以与根据第一跟踪结果中跟踪目标的移动方向和移动速度一致,也可以适当的调整其跟踪速度和方向,例如,如果第一电子设备与跟踪目标的距离较远,第一电子设备可以在启动时控制跟踪速度超出第一跟踪结果中跟踪目标的移动速度,在第一电子设备与跟踪目标的距离达到预先设置的距离时,第一电子设备的跟踪速度可以降低到与第一跟踪结果中的移动速度一致。In an embodiment, the first electronic device may transmit data in a form of wireless transmission, and the system of the first electronic device sends an instruction to the target tracking unit of the first electronic device according to the first tracking result, so that the first electronic device moves, The direction and speed of the movement may be consistent with the moving direction and the moving speed of the tracking target according to the first tracking result, and the tracking speed and direction may be appropriately adjusted, for example, if the distance between the first electronic device and the tracking target is long, The first electronic device can control the tracking speed to exceed the moving speed of the tracking target in the first tracking result when starting, and the tracking speed of the first electronic device can be reduced when the distance between the first electronic device and the tracking target reaches a preset distance It is consistent with the moving speed in the first tracking result.
在一实施例中,运动目标的运动方向包括以下至少之一:前进、后退、停止、左移、右移。In an embodiment, the moving direction of the moving target includes at least one of: forward, backward, stop, left shift, right shift.
在一实施例中,上述实施例中的目标跟踪单元可以包括无线射频识别(RFID,Radio Frequency Identification)。 In an embodiment, the target tracking unit in the foregoing embodiment may include radio frequency identification (RFID).
在一实施例中,上述实施例中的跟踪目标可以是移动的,例如是移动的人或物品。In an embodiment, the tracking target in the above embodiment may be mobile, such as a moving person or item.
对于上述实施例,在获得跟踪目标的第一跟踪结果后,执行步骤S104,根据用于描述跟踪目标运动状态的运动信息,结合第一跟踪结果,分析获得针对跟踪目标的第二跟踪结果,其中,用于描述跟踪目标运动状态的运动信息由设置于跟踪目标身上的第二电子设备获取,该第二电子设备可包括检测单元、处理单元、存储单元,该检测单元可以检测出跟踪目标的移动状态,可以根据第二电子设备的系统发出的指令执行检测操作,该检测单元接收到指令后,开始检测当前第二电子设备所处的坐标信息,同时获取到跟踪目标的信息,检测单元将该跟踪目标的信息传输到存储单元形成第一数据,该第一数据包括当前跟踪目标的坐标、当前时间、跟踪目标的移动方向,检测单元将该坐标信息和当前时间形成第一数据传输到第二电子设备的存储单元,第二电子设备获取到第一数据后,系统再次发出指令到检测单元,该检测单元再次接收到指令后,可以再次检测第二电子设备的坐标以及跟踪目标的信息,检测单元将该信息传输到存储单元形成第二数据,第二电子设备根据第一数据和第二数据分析跟踪目标的移动角度和移动速度,随后第二电子设备不断的根据上述方式检测跟踪目标的移动信息,第二电子设备将跟踪目标的移动方向、移动速度以及变化的时间等信息存储起来,形成第二运动数据。For the above embodiment, after obtaining the first tracking result of the tracking target, step S104 is performed, and according to the motion information for describing the motion state of the tracking target, combined with the first tracking result, the second tracking result for the tracking target is obtained by analyzing, wherein The motion information for describing the motion state of the tracking target is acquired by a second electronic device disposed on the tracking target, and the second electronic device may include a detecting unit, a processing unit, and a storage unit, and the detecting unit may detect the movement of the tracking target. a state, the detecting operation may be performed according to an instruction issued by a system of the second electronic device, after receiving the instruction, the detecting unit starts detecting the coordinate information of the current second electronic device, and simultaneously acquires information of the tracking target, and the detecting unit Transmitting the information of the tracking target to the storage unit to form first data, where the first data includes the coordinates of the current tracking target, the current time, and the moving direction of the tracking target, and the detecting unit transmits the coordinate information and the current time to form the first data to the second data. Storage unit of electronic device, second electronic device After acquiring the first data, the system sends an instruction to the detecting unit again. After receiving the instruction again, the detecting unit can detect the coordinates of the second electronic device and the information of the tracking target again, and the detecting unit transmits the information to the storage unit to form the first data. The second electronic device analyzes the moving angle and the moving speed of the tracking target according to the first data and the second data, and then the second electronic device continuously detects the moving information of the tracking target according to the above manner, and the second electronic device will track the target Information such as the direction of movement, the speed of movement, and the time of change are stored to form second motion data.
对于上述实施例,第一电子设备得到根据第一跟踪结果后,可以通过读取单元读取到第二电子设备的第二运动数据,第一电子设备在获取到第二运动数据后,与第一跟踪结果比较,得出第二跟踪结果,第二跟踪结果与第一跟踪结果可以相同也可以不同,当第一跟踪结果与第二跟踪结果相同时,第一跟踪结果可以不用更新数据,第一电子设备可以按照第一跟踪结果来移动,同时可以根据第一跟踪结果来预估跟踪目标的移动方向和移 动速度,该预估结果可以和第一跟踪结果相同也可以不同;当第一跟踪结果与第二跟踪结果不同时,第一电子设备判断该结果偏差的大小,这里可以给比较结果的偏差值设定一个阈值,该阈值是根据跟踪目标的运动状态确定的(例如,移动速度设为5米/分钟),在第一跟踪结果与第二跟踪结果的比较结果差值较大(例如,比较结果的差值超出阈值),第一跟踪结果需要改变,其中跟踪目标的运动方向、运动速度、坐标以及跟踪目标的运动变化角度可以更新,其更新的数据可以是第二跟踪结果中的数据也可以是参考第二跟踪结果的数据进行调整,如果第一跟踪结果与第二跟踪结果的比较结果差值较小,例如,该比较结果的差值低于阈值时,该第一跟踪结果可以不更新。For the above embodiment, after the first electronic device obtains the second tracking data, the second electronic device may read the second motion data by using the reading unit, and after acquiring the second motion data, the first electronic device A tracking result is compared, and a second tracking result is obtained. The second tracking result may be the same as or different from the first tracking result. When the first tracking result is the same as the second tracking result, the first tracking result may not be updated. An electronic device can move according to the first tracking result, and can predict the moving direction and shift of the tracking target according to the first tracking result. The speed of the prediction may be the same as or different from the first tracking result; when the first tracking result is different from the second tracking result, the first electronic device determines the magnitude of the deviation of the result, and the deviation value of the comparison result may be given here. A threshold is set, which is determined according to the motion state of the tracking target (for example, the moving speed is set to 5 m/min), and the difference between the first tracking result and the second tracking result is large (for example, comparison) The difference of the result exceeds the threshold), the first tracking result needs to be changed, wherein the moving direction of the tracking target, the moving speed, the coordinate, and the moving change angle of the tracking target may be updated, and the updated data may be the data in the second tracking result. The data may be adjusted according to the second tracking result. If the difference between the first tracking result and the second tracking result is small, for example, when the difference of the comparison result is lower than the threshold, the first tracking result may not be Update.
对于上述实施例中的第一跟踪结果与第二跟踪结果比较结果差值较大时,可以得出第一电子设备在跟踪过程中“跟丢”的结果,从而更新数据,改变第一电子设备的运动方向、运动速度以及运动角度。When the difference between the first tracking result and the second tracking result in the foregoing embodiment is large, the result of the “following” of the first electronic device during the tracking process may be obtained, thereby updating the data and changing the first electronic device. Direction of movement, speed of movement, and angle of movement.
具体地,上述实施例在得出第二跟踪结果后,可以分析得出多个结论,例如:跟踪目标建模和/或跟踪目标定位。其中,目标建模分为离线目标建模和在线目标建模,离线目标建模是指在开始跟踪之前就已经训练好跟踪目标的模型,在实时跟踪过程中进行判别是否为跟踪目标;在线目标建模是指在跟踪过程中学习与更新目标模型,同时进行跟踪目标的判别。Specifically, after obtaining the second tracking result, the foregoing embodiment may analyze multiple conclusions, such as tracking target modeling and/or tracking target positioning. Among them, target modeling is divided into offline target modeling and online target modeling. Offline target modeling refers to the model that has already trained the tracking target before starting tracking, and whether to identify the tracking target in the real-time tracking process; online target Modeling refers to learning and updating the target model during the tracking process, and simultaneously identifying the tracking target.
在一实施例中,上述实施例中的第二电子设备中可以是内置IMU芯片的移动通信设备(例如:遥控器、手机),该设备可以将IMU信息实时的传达给第一电子设备,其中第二电子设备的IMU芯片可以是上述实施例的检测单元。In an embodiment, the second electronic device in the foregoing embodiment may be a mobile communication device (eg, a remote controller, a mobile phone) with an IMU chip built therein, and the device may communicate the IMU information to the first electronic device in real time, where The IMU chip of the second electronic device may be the detecting unit of the above embodiment.
在一实施例中,第二电子设备可以配置在跟踪目标的身上,可以是跟踪目标穿戴的物品,也可以是跟踪目标的手拿着的。In an embodiment, the second electronic device may be disposed on the body of the tracking target, and may be an item worn by the tracking target or a hand held by the tracking target.
在第一电子设备和第二电子设备传输数据的过程中,可以是有线的数 据传输,也可以是无线的数据传输。In the process of transmitting data by the first electronic device and the second electronic device, the number of wires may be According to the transmission, it can also be wireless data transmission.
在一实施例中,第一电子设备可以包括拍摄装置,该拍摄装置可以拍摄跟踪目标,拍摄装置可以实时的将拍摄到信息传输到第一电子设备中,该拍摄设备可以是摄像机。In an embodiment, the first electronic device may include a photographing device that can capture a tracking target, and the photographing device can transmit the photographed information to the first electronic device in real time, and the photographing device can be a camera.
在一实施例中,上述实施例中的跟踪可以是视觉跟踪,该视觉跟踪可以通过在第一电子设备中的拍摄装置获得,拍摄装置拍摄第一电子设备当前的环境,其中,当前环境包含有跟踪目标的行走的路面、行走方向上障碍物、跟踪目标、光照强度,如果在第一电子设备行走方向上有障碍物,分析该障碍物所处的坐标以及该障碍物的大小,当前跟踪环境还包括第一电子设备与跟踪目标之间的环境,第一电子设备与跟踪目标之间的环境包括在第一电子设备向跟踪目标移动时有无障碍物、光照强度、背景。In an embodiment, the tracking in the above embodiment may be visual tracking, which may be obtained by a photographing device in the first electronic device, and the photographing device captures a current environment of the first electronic device, wherein the current environment includes Tracking the walking path of the target, the obstacle in the walking direction, the tracking target, the light intensity, if there is an obstacle in the walking direction of the first electronic device, analyzing the coordinates of the obstacle and the size of the obstacle, the current tracking environment The environment between the first electronic device and the tracking target is further included, and the environment between the first electronic device and the tracking target includes an obstacle, a light intensity, and a background when the first electronic device moves toward the tracking target.
在一实施例中,运动信息包括针对跟踪目标的运动测量参数,运动测量参数记载在第二电子设备的预定存储空间中,运动测量参数至少包括:运动加速度和/或运动角速度,第一电子设备获得运动信息,包括:周期性或非周期性的访问第二电子设备的预定存储空间,获取第二电子设备在预定时间段内采集得到的运动测量参数,该周期性是指第一电子设备内设定一个时间间隔,例如:0.5秒、1秒、5秒、10秒、20秒等,在一个时间间隔后第一电子设备获取第二电子设备预定存储空间内存储的跟踪目标运动变化数据。相应的,所述根据用于描述跟踪目标运动状态的运动信息,结合第一跟踪结果,分析获得针对跟踪目标的第二跟踪结果,包括:对预定时间段内的运动测量参数进行统计分析,获得跟踪目标在预定时间段内的运动描述信息,根据运动描述信息对第一跟踪结果进行修正,获得第二跟踪结果;其中,运动描述信息至少包括运动速度和/或运动方向,可以结合第二电子设备在预定时间段内的运动测量参数以及第一电子设备在预定时间段内的自身运动测量参数,综合分析获得跟踪目标在预定时间段内相对 于第一电子设备的运动描述信息。In an embodiment, the motion information includes motion measurement parameters for the tracking target, the motion measurement parameters are recorded in a predetermined storage space of the second electronic device, and the motion measurement parameters include at least: motion acceleration and/or motion angular velocity, the first electronic device Acquiring the motion information, including: periodically or aperiodically accessing a predetermined storage space of the second electronic device, and acquiring a motion measurement parameter collected by the second electronic device in a predetermined time period, where the periodicity refers to the first electronic device A time interval is set, for example, 0.5 seconds, 1 second, 5 seconds, 10 seconds, 20 seconds, etc., after a time interval, the first electronic device acquires tracking target motion change data stored in a predetermined storage space of the second electronic device. Correspondingly, according to the motion information used to describe the motion state of the tracking target, combining the first tracking result, the analyzing obtains the second tracking result for the tracking target, including: performing statistical analysis on the motion measurement parameter in the predetermined time period, and obtaining Tracking the motion description information of the target within a predetermined time period, correcting the first tracking result according to the motion description information, and obtaining a second tracking result; wherein the motion description information includes at least a motion speed and/or a motion direction, and may be combined with the second electronic The motion measurement parameter of the device in the predetermined time period and the self-motion measurement parameter of the first electronic device within a predetermined time period, and the comprehensive analysis obtains the tracking target relative to the predetermined time period. The motion description information of the first electronic device.
对于上述实施例,第一电子设备通过持续地获取第一跟踪结果和第二电子设备的运动数据分析得出第二跟踪结果,这样可以通过实时获取的运动数据增加跟踪的准确性,从而准确的跟踪目标,也增加了跟踪目标的稳定性。For the above embodiment, the first electronic device obtains the second tracking result by continuously acquiring the first tracking result and the motion data analysis of the second electronic device, so that the accuracy of the tracking can be increased by the motion data acquired in real time, thereby accurately Tracking the target also increases the stability of the tracking target.
对于上述实施例,运动测量参数可以持续更新,在第二电子设备再次测量得出新的跟踪目标的数据后,将该数据重新存入第二电子设备的预定存储空间中,对原来的数据可以删除也可以暂时保留,例如,在第二电子设备的预定存储空间将要占满时,可以删除原来的第二电子设备的数据。For the above embodiment, the motion measurement parameter may be continuously updated. After the second electronic device measures the data of the new tracking target again, the data is newly stored in the predetermined storage space of the second electronic device, and the original data may be The deletion may also be temporarily retained. For example, when the predetermined storage space of the second electronic device is about to be full, the data of the original second electronic device may be deleted.
对于上述实施例中的加速度,可以通过测量跟踪目标的速度变化信息来得出,在跟踪目标更改行进速度后,跟踪目标的运动加速度就可以通过计算得出。For the acceleration in the above embodiment, it can be obtained by measuring the speed change information of the tracking target, and after the tracking target changes the traveling speed, the motion acceleration of the tracking target can be calculated.
通过上述实施例,可以对第一电子设备的运动测量参数进行统计分析,该统计分析包括对第一电子设备测量的跟踪目标的位置变化、移动方向、移动速度进行分析,可以通过将第二次得到的位置与第一次得到的位置进行比较得出运动测量参数,例如:设置一个长宽为10米的屏幕,第一次跟踪目标在正中心,其坐标为(5,5),第二次跟踪目标在最北边的中心,其坐标为(5,10),通过分析可以判断出该目标在第一次测量和第二次测量的时间间隔内,跟踪目标朝正北方向移动,移动距离为5米,将移动距离与移动时间做计算得出移动速度。通过对运动测量参数的变化进行计算,分析出跟踪目标的运动状态,第一电子设备可以存储运动变化数据,经过综合分析最后得出跟踪目标的在预定时间段内的运动描述信息,该预定时间是指在第一电子设备和第二电子设备传输数据过程中的时间间隔,每过一定的时间间隔(例如,5秒),第一电子设备获取第二电子设备的数据。According to the above embodiment, the statistical measurement of the motion measurement parameter of the first electronic device may be performed, and the statistical analysis includes analyzing the position change, the moving direction, and the moving speed of the tracking target measured by the first electronic device, and may pass the second time. The obtained position is compared with the first obtained position to obtain a motion measurement parameter, for example, a screen with a length and a width of 10 meters is set, and the first tracking target is at the center, and the coordinates are (5, 5), and the second The tracking target is at the northernmost center, and its coordinates are (5, 10). It can be judged by analysis that the target moves in the true north direction during the time interval between the first measurement and the second measurement. For 5 meters, the moving distance and the moving time are calculated to calculate the moving speed. By calculating the change of the motion measurement parameter and analyzing the motion state of the tracking target, the first electronic device can store the motion change data, and after comprehensive analysis, finally obtain the motion description information of the tracking target within a predetermined time period, the predetermined time. The time interval between the first electronic device and the second electronic device is transmitted. The data is acquired by the first electronic device every time interval (for example, 5 seconds).
对于上述实施例,运动信息包括对跟踪目标的运动描述信息,第一电 子设备通过以下方式获得运动描述信息:周期性或非周期性的访问第二电子设备的预定存储空间,第二电子设备的预定存储空间是相对于该第二电子设备的存储设备的大小确定的,如果预定存储空间较大,第二电子设备可以存储多条第二电子设备的运动变化信息,如果预定存储空间空间较小,例如:10条,第二电子设备可以存储较少的第二电子设备的运动变化信息,例如2条。For the above embodiment, the motion information includes motion description information for the tracking target, the first power The child device obtains motion description information by periodically or aperiodically accessing a predetermined storage space of the second electronic device, and the predetermined storage space of the second electronic device is determined relative to the size of the storage device of the second electronic device. If the predetermined storage space is large, the second electronic device may store motion change information of the plurality of second electronic devices, and if the predetermined storage space is small, for example: 10, the second electronic device may store less second electronic The motion change information of the device, for example, two.
对于上述实施例,根据预定时间段内的运动描述信息,对第一跟踪结果进行修正,最后获得第二跟踪结果,在对第一跟踪结果进行修正时,可以通过运动变化参数,该运动变化参数是在第一跟踪结果的基础上,对比第二电子设备内的运动信息,得出的第二跟踪结果。例如,可以将运动变化角度的数值设置在10度内,如果第二跟踪结果中的运动方向相对于第一跟踪结果运动方向变化在该数值内,则第一跟踪结果的运动方向或角度信息不用改变,如果第二跟踪结果中的运动方向相对于第一跟踪结果运动方向变化大于该数值,则第一跟踪结果的运动方向或角度信息可以修正,将第一跟踪结果内的运动方向或运动角度修改为根据第二电子设备获取到的第二运动数据中的运动方向或运动角度。For the above embodiment, the first tracking result is corrected according to the motion description information in the predetermined time period, and finally the second tracking result is obtained. When the first tracking result is corrected, the motion change parameter may be adopted, and the motion change parameter may be adopted. Based on the first tracking result, comparing the motion information in the second electronic device, the second tracking result is obtained. For example, the value of the motion change angle may be set within 10 degrees. If the motion direction in the second tracking result changes within the value relative to the motion direction of the first tracking result, the motion direction or angle information of the first tracking result is not used. Changing, if the direction of motion in the second tracking result changes by more than the value of the first tracking result, the motion direction or angle information of the first tracking result may be corrected, and the motion direction or the motion angle in the first tracking result may be changed. Modified to a motion direction or a motion angle in the second motion data acquired according to the second electronic device.
通过对比第一跟踪结果和第二运动数据可以得出是否修正第一电子设备的运动数据,可以减少跟踪的误差。By comparing the first tracking result with the second motion data, it can be determined whether the motion data of the first electronic device is corrected, and the tracking error can be reduced.
对于上述实施例,在跟踪目标时出现较大误差可以进行修正,例如,在基于视觉的跟踪技术跟踪目标,在时间延长时,可以在第一电子设备测量的第一跟踪结果与第二电子设备测量得出的第二运动数据比较出现误差时,修正第一跟踪结果的数据,保证了在长时间跟踪过程中稳定性,一种实施方式,在跟踪目标突然加速运动的时候,跟踪目标就会容易跟丢,这时测量的第一跟踪结果与获取的第二运动数据相比较会出现较大误差值,可以通过修正第一跟踪结果的数据(例如,第一电子设备也加速度运动,并 且相应的改变运动方向)重新跟踪目标,这样可以保证跟踪目标在跟丢后重新跟踪到目标。For the above embodiment, a large error may occur when tracking the target, for example, tracking the target in a vision-based tracking technique, and the first tracking result and the second electronic device that can be measured at the first electronic device when the time is extended When the second motion data obtained by the measurement is compared with the error, the data of the first tracking result is corrected to ensure the stability during the long-term tracking process. In an implementation manner, when the tracking target suddenly accelerates, the tracking target will be It is easy to lose, when the measured first tracking result is compared with the acquired second motion data, a large error value occurs, and the data of the first tracking result can be corrected (for example, the first electronic device also accelerates the motion, and And correspondingly change the direction of motion) Re-track the target, this will ensure that the tracking target is re-tracked to the target after losing.
对于上述实施例,根据预定时间段内的运动描述信息,对第一跟踪结果进行修正,获得第二跟踪结果,可以根据跟踪目标在不同运动方向上的状态概率,以及第一跟踪结果所表示的跟踪目标在跟踪图像中的至少一个候选跟踪区域,确定跟踪目标在跟踪图像中的置信跟踪区域,基于置信跟踪区域生成第二跟踪结果,其中,状态概率用于表示跟踪目标在不同运动方向上运动的概率。For the above embodiment, the first tracking result is corrected according to the motion description information in the predetermined time period, and the second tracking result is obtained, which may be according to the state probability of the tracking target in different motion directions, and the first tracking result. Tracking the target at least one candidate tracking area in the tracking image, determining a confidence tracking area of the tracking target in the tracking image, and generating a second tracking result based on the confidence tracking area, wherein the state probability is used to indicate that the tracking target moves in different motion directions The probability.
在上述实施例中,运动描述信息包括跟踪目标在不同运动方向上的状态概率,是指对跟踪目标进行运动预估时,对目标运动方向或速度进行预估,其中,该目标运动方向或速度的预估可以是第一电子设备根据第二跟踪结果获取的也可以第一跟踪结果获取的,预估的目标运动方向或速度可以与第二跟踪结果的数据可以相同也可以不同,在预估出跟踪目标的运动方向后,可以得出相对应的跟踪目标的在接下来的时间间隔内的运动区域和运动线路。In the above embodiment, the motion description information includes the state probability of the tracking target in different motion directions, and refers to estimating the target motion direction or speed when performing motion estimation on the tracking target, wherein the target motion direction or speed The estimation may be obtained by the first electronic device according to the second tracking result or the first tracking result, and the estimated target motion direction or speed may be the same as or different from the data of the second tracking result. After tracking the moving direction of the target, the moving area and the moving line of the corresponding tracking target in the next time interval can be obtained.
在一实施例中,跟踪目标所活动的区域可以在固定的屏幕内,可以根据第二跟踪结果给第一电子设备发出接下来的候选活动区域,第一电子设备根据候选活动区域和跟踪目标在未来一定时间间隔内的活动区域和运动路线来确定行进方向和行进速度,从而提高跟踪的准确性。In an embodiment, the area in which the tracking target is active may be in a fixed screen, and the next candidate activity area may be sent to the first electronic device according to the second tracking result, where the first electronic device is based on the candidate active area and the tracking target. The active area and the moving route in a certain time interval in the future determine the traveling direction and the traveling speed, thereby improving the accuracy of the tracking.
在一个实施例中,该方法还可以包括:在预定时间段内的运动描述信息表示跟踪目标在预定时间段内的运动方向为第一方向,预定时间段内的第一跟踪结果表示跟踪目标在预定时间段内的运动方向为第二方向,第一方向与第二方向不同,且跟踪目标在预定时间段内在第一方向上的移动距离大于预设的第一距离阈值,跟踪目标在预定时间段内在第二方向上的移动距离大于预设的第二距离阈值时,产生报警提示信息,所述提示信息用 于提示第一电子设备跟丢跟踪目标。在本实施例中,报警信息是根据第二跟踪结果得到的,该报警信息可以为第一电子设备的处理中心向目标跟踪单元发出的指令,目标跟踪单元在接收到该指令后可以及时修改第一电子设备的运动数据,其中,该运动数据可以是根据第二运动数据得出的,如果第二跟踪结果与第一跟踪结果的数据相差较大,则第一电子设备调整其运动方向和运动速度,例如将第一电子设备的运动速度加快。In an embodiment, the method may further include: the motion description information in the predetermined time period indicates that the motion direction of the tracking target in the predetermined time period is the first direction, and the first tracking result in the predetermined time period indicates that the tracking target is in the The moving direction in the predetermined time period is the second direction, the first direction is different from the second direction, and the moving distance of the tracking target in the first direction is greater than the preset first distance threshold in the predetermined time period, and the tracking target is at the predetermined time. When the moving distance in the second direction in the segment is greater than the preset second distance threshold, an alarm prompt message is generated, and the prompt information is used. The first electronic device is prompted to drop the tracking target. In this embodiment, the alarm information is obtained according to the second tracking result, and the alarm information may be an instruction sent by the processing center of the first electronic device to the target tracking unit, and the target tracking unit may modify the first time after receiving the instruction. Motion data of an electronic device, wherein the motion data may be derived according to the second motion data, and if the second tracking result is different from the data of the first tracking result, the first electronic device adjusts its moving direction and motion The speed, for example, speeds up the movement of the first electronic device.
图2是根据本发明实施例的一种可选地电子设备的结构图,如图2所示,该电子设备包括:目标跟踪单元21,配置为执行基于视觉的目标跟踪,获得针对跟踪目标的第一跟踪结果;处理单元22,配置为根据用于描述跟踪目标运动状态的运动信息,结合第一跟踪结果,分析获得针对跟踪目标的第二跟踪结果;其中,第二跟踪结果与第一跟踪结果相同或不同;所述用于描述跟踪目标运动状态的运动信息由设置于跟踪目标上的另一电子设备基于测量获得。2 is a structural diagram of an optional electronic device according to an embodiment of the present invention. As shown in FIG. 2, the electronic device includes: a target tracking unit 21 configured to perform vision-based target tracking to obtain a tracking target. a first tracking result; the processing unit 22 is configured to: according to the motion information used to describe the motion state of the tracking target, combine the first tracking result, and obtain a second tracking result for the tracking target; wherein, the second tracking result and the first tracking The results are the same or different; the motion information for describing the motion state of the tracking target is obtained based on the measurement by another electronic device disposed on the tracking target.
在一实施例中,所述运动信息包括针对所述被跟踪目标的运动测量参数,所述运动测量参数记载在所述另一电子设备的预定存储空间中,所述运动测量参数至少包括:运动加速度和/或运动角速度;In an embodiment, the motion information includes motion measurement parameters for the tracked target, the motion measurement parameters being recorded in a predetermined storage space of the another electronic device, the motion measurement parameters including at least: Acceleration and/or angular velocity of motion;
所述电子设备还包括第一读取单元,配置为周期性或非周期性的访问所述另一电子设备的预定存储空间,获取所述另一电子设备在预定时间段内采集得到的所述运动测量参数;The electronic device further includes a first reading unit configured to periodically or aperiodically access a predetermined storage space of the another electronic device, and acquire the collected by the another electronic device within a predetermined time period. Motion measurement parameters;
所述处理单元22,配置为对所述第一读取单元获取的所述预定时间段内的所述运动测量参数进行统计分析,获得所述被跟踪目标在预定时间段内的运动描述信息,根据所述运动描述信息对所述第一跟踪结果进行修正,获得所述第二跟踪结果;其中,所述运动描述信息至少包括运动速度和/或运动方向。The processing unit 22 is configured to perform statistical analysis on the motion measurement parameter in the predetermined time period acquired by the first reading unit, to obtain motion description information of the tracked target in a predetermined time period, And correcting the first tracking result according to the motion description information to obtain the second tracking result; wherein the motion description information includes at least a motion speed and/or a motion direction.
其中,所述处理单元22,配置为结合所述第一读取单元获取的所述另 一电子设备在预定时间段内的运动测量参数、以及所述第一电子设备在所述预定时间段内的自身运动测量参数,分析获得所述被跟踪目标在所述预定时间段内相对于所述第一电子设备的运动描述信息。The processing unit 22 is configured to combine the other acquired by the first reading unit. Obtaining, by the electronic device, the motion measurement parameter within the predetermined time period and the self-motion measurement parameter of the first electronic device within the predetermined time period, and obtaining the tracked target for the predetermined time period relative to the The motion description information of the first electronic device.
在另一实施例中,所述运动信息包括对所述被跟踪目标的运动描述信息,所述运动描述信息由所述另一电子设备根据采集获得的预定时间段内的运动测量参数进行统计分析获得,所述运动测量参数至少包括:运动加速度和/或运动角速度,所述运动描述信息至少包括运动速度和/或运动方向,所述运动描述信息记载在所述另一电子设备的预定存储空间中;In another embodiment, the motion information includes motion description information for the tracked target, and the motion description information is statistically analyzed by the another electronic device according to motion measurement parameters within a predetermined time period obtained by the acquisition. Obtaining that the motion measurement parameter comprises at least: motion acceleration and/or motion angular velocity, the motion description information includes at least a motion speed and/or a motion direction, and the motion description information is recorded in a predetermined storage space of the another electronic device in;
所述电子设备还包括第二读取单元,配置为周期性或非周期性的访问所述另一电子设备的预定存储空间,获取所述另一电子设备在预定时间段内的运动描述信息;The electronic device further includes a second reading unit configured to periodically or non-periodically access a predetermined storage space of the another electronic device, and acquire motion description information of the another electronic device within a predetermined time period;
所述处理单元22,配置为根据所述第二读取单元获取的预定时间段内的所述运动描述信息,对所述第一跟踪结果进行修正,获得所述第二跟踪结果。The processing unit 22 is configured to correct the first tracking result according to the motion description information in a predetermined time period acquired by the second reading unit, to obtain the second tracking result.
通过上述实施例,在跟踪目标的过程中,电子设备可接收到来自另一电子设备测量出的目标运动状态的运动信息,根据另一电子设备获取到的目标运动状态的运动信息结合第一电子设备实时获取到的第一跟踪结果通过处理单元22分析得出跟踪目标的第二跟踪结果,通过目标跟踪单元21达到实时检测跟踪目标的运动状态,利用设置在跟踪目标上的另一电子设备实时测量获得跟踪目标的运动信息,结合第一电子设备获取的跟踪目标的第一跟踪结果,分析得到第二跟踪结果,如利用该运动信息修正第一跟踪结果得到第二跟踪结果,通过上述方案,结合另一电子设备测量得到的跟踪目标的运动信息分析得到第二跟踪结果,得到的结果更加准确,解决了现有技术中跟踪目标时准确性低的问题,增加了视觉跟踪的鲁棒性。Through the above embodiment, in the process of tracking the target, the electronic device may receive the motion information of the target motion state measured by the other electronic device, and combine the first electronic information according to the motion information of the target motion state acquired by the other electronic device. The first tracking result obtained by the device in real time is analyzed by the processing unit 22 to obtain a second tracking result of the tracking target, and the target tracking unit 21 is used to detect the motion state of the tracking target in real time, and real time is performed by using another electronic device set on the tracking target. Obtaining the motion information of the tracking target, combining with the first tracking result of the tracking target acquired by the first electronic device, and analyzing the second tracking result, if the first tracking result is corrected by using the motion information to obtain a second tracking result, by using the foregoing solution, The second tracking result is obtained by combining the motion information of the tracking target measured by another electronic device, and the obtained result is more accurate, which solves the problem of low accuracy when tracking the target in the prior art, and increases the robustness of the visual tracking.
所述运动描述信息包括所述被跟踪目标在不同运动方向上的状态概 率;所述处理单元22,配置为根据所述被跟踪目标在不同运动方向上的状态概率,以及所述第一跟踪结果所表示的所述被跟踪目标在跟踪图像中的至少一个候选跟踪区域,确定所述被跟踪目标在跟踪图像中的置信跟踪区域,并基于所述置信跟踪区域生成第二跟踪结果;其中,所述状态概率用于表示所述被跟踪目标在不同运动方向上运动的概率。The motion description information includes a state of the tracked target in different directions of motion The processing unit 22 is configured to: according to the state probability of the tracked target in different moving directions, and the at least one candidate tracking area of the tracked image represented by the first tracking result in the tracking image Determining a confidence tracking area of the tracked object in the tracking image, and generating a second tracking result based on the confidence tracking area; wherein the state probability is used to indicate that the tracked object is moving in different motion directions Probability.
所述电子设备还包括报警单元,配置为当所述预定时间段内的运动描述信息表示所述被跟踪目标在预定时间段内的运动方向为第一方向,所述预定时间段内的第一跟踪结果表征所述被跟踪目标在预定时间段内的运动方向为第二方向,所述第一方向与第二方向不同,且所述被跟踪目标在预定时间段内在所述第一方向上的移动距离大于预设的第一距离阈值,所述被跟踪目标在预定时间段内在所述第二方向上的移动距离大于预设的第二距离阈值时,产生报警提示信息,所述报警提示信息用于提示所述第一电子设备跟丢所述被跟踪目标。The electronic device further includes an alarm unit configured to: when the motion description information in the predetermined time period indicates that the moving direction of the tracked target within a predetermined time period is a first direction, the first in the predetermined time period The tracking result characterizes that the moving direction of the tracked target in the predetermined time period is a second direction, the first direction is different from the second direction, and the tracked target is in the first direction within a predetermined time period The moving distance is greater than a preset first distance threshold, and when the moving distance of the tracked target in the second direction is greater than a preset second distance threshold within a predetermined time period, an alarm prompt message is generated, and the alarm prompt information is generated. And for prompting the first electronic device to drop the tracked target.
在一实施例中,目标跟踪单元21,还配置为在所述报警单元产生报警提示信息之后,重新检测跟踪目标,重新执行基于视觉的目标跟踪。In an embodiment, the target tracking unit 21 is further configured to re-detect the tracking target and re-execute the vision-based target tracking after the alarm unit generates the alarm prompt information.
本实施例中,所述电子设备中的目标跟踪单元21、处理单元22和报警单元,在实际应用中均可由中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Signal Processor)、微控制单元(MCU,Microcontroller Unit)或可编程门阵列(FPGA,Field-Programmable Gate Array)实现;所述电子设备中的第一读取单元和第二读取单元,在实际应用中可通信模组(包含:基础通信套件、操作系统、通信模块、标准化接口和协议等)及收发天线实现。In this embodiment, the target tracking unit 21, the processing unit 22, and the alarm unit in the electronic device may be implemented by a central processing unit (CPU), a digital signal processor (DSP, Digital Signal Processor). a micro-control unit (MCU) or a field-programmable gate array (FPGA); the first reading unit and the second reading unit in the electronic device can be used in practical applications. Communication module (including: basic communication suite, operating system, communication module, standardized interface and protocol, etc.) and transceiver antenna implementation.
需要说明的是:上述实施例提供的电子设备在进行目标跟踪时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将电子设备的内部结构划分成不同 的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的电子设备与目标跟踪方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that, when performing the target tracking, the electronic device provided by the foregoing embodiment is only illustrated by the division of each of the foregoing program modules. In actual applications, the processing allocation may be completed by different program modules as needed. The internal structure of the electronic device is divided into different Program modules to perform all or part of the processing described above. In addition, the electronic device and the target tracking method are provided in the same embodiment. For details, refer to the method embodiment, and details are not described herein.
本发明实施例还提供了一种电子设备,包括:处理器和用于存储能够在处理器上运行的计算机程序的存储器。其中,Embodiments of the present invention also provide an electronic device including: a processor and a memory for storing a computer program executable on the processor. among them,
存储器可以由任何类型的易失性或非易失性存储设备、或者它们的组合来实现。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,Ferromagnetic Random Access Memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random Access Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,Synchronous Dynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct  Rambus Random Access Memory)。本发明实施例描述的存储器旨在包括但不限于这些和任意其它适合类型的存储器。The memory can be implemented by any type of volatile or non-volatile storage device, or a combination thereof. The non-volatile memory may be a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), or an Erasable Programmable Read (EPROM). Only Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM), Ferromagnetic Random Access Memory (FRAM), Flash Memory, Magnetic Surface Memory , CD-ROM, or Compact Disc Read-Only Memory (CD-ROM); the magnetic surface memory can be a disk storage or a tape storage. The volatile memory can be a random access memory (RAM) that acts as an external cache. By way of example and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access (SSRAM). DRAM (Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), enhancement Synchronous Dynamic Random Access Memory (ESDRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory Bus Random Access Memory (DRRAM, Direct) Rambus Random Access Memory). The memories described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memory.
上述本发明实施例揭示的方法可以应用于处理器中,或者由处理器实现。处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、DSP,或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本发明实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成前述方法的步骤。The method disclosed in the foregoing embodiments of the present invention may be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in a processor or an instruction in a form of software. The above described processor may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, or the like. The processor may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present invention. A general purpose processor can be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiment of the present invention may be directly implemented as a hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, the storage medium being located in the memory, the processor reading the information in the memory, and completing the steps of the foregoing methods in combination with the hardware thereof.
本发明实施例中,所述处理器用于运行所述计算机程序时,执行:执行基于视觉的目标跟踪,获得针对被跟踪目标的第一跟踪结果;根据用于描述所述被跟踪目标运动状态的运动信息,结合所述第一跟踪结果,分析获得针对所述被跟踪目标的第二跟踪结果;其中,所述第二跟踪结果与所述第一跟踪结果相同或不同;所述用于描述所述被跟踪目标运动状态的运动信息由设置于所述被跟踪目标上的第二电子设备基于测量获得。In the embodiment of the present invention, when the processor is used to run the computer program, performing: performing vision-based target tracking to obtain a first tracking result for the tracked target; according to describing the motion state of the tracked target Motion information, in combination with the first tracking result, analyzing to obtain a second tracking result for the tracked target; wherein the second tracking result is the same as or different from the first tracking result; The motion information of the tracked target motion state is obtained based on the measurement by the second electronic device disposed on the tracked target.
在一实施例中,所述运动信息包括针对所述被跟踪目标的运动测量参数,所述运动测量参数记载在所述第二电子设备的预定存储空间中,所述运动测量参数至少包括:运动加速度和/或运动角速度;所述处理器用于运行所述计算机程序时,执行:周期性或非周期性的访问所述第二电子设备的预定存储空间,获取所述第二电子设备在预定时间段内采集得到的所述运动测量参数;对所述预定时间段内的所述运动测量参数进行统计分析, 获得所述被跟踪目标在预定时间段内的运动描述信息,根据所述运动描述信息对所述第一跟踪结果进行修正,获得所述第二跟踪结果;其中,所述运动描述信息至少包括运动速度和/或运动方向。In an embodiment, the motion information includes motion measurement parameters for the tracked target, the motion measurement parameters are recorded in a predetermined storage space of the second electronic device, and the motion measurement parameters include at least: Acceleration and/or angular velocity of movement; the processor is configured to: periodically or aperiodically access a predetermined storage space of the second electronic device, and acquire the second electronic device at a predetermined time when the computer program is executed Collecting the motion measurement parameters obtained in the segment; performing statistical analysis on the motion measurement parameters in the predetermined time period, Obtaining motion description information of the tracked target within a predetermined time period, correcting the first tracking result according to the motion description information, and obtaining the second tracking result; wherein the motion description information includes at least motion Speed and / or direction of movement.
在一实施例中,所述处理器用于运行所述计算机程序时,执行:结合所述第二电子设备在预定时间段内的运动测量参数、以及所述第一电子设备在所述预定时间段内的自身运动测量参数,分析获得所述被跟踪目标在所述预定时间段内相对于所述第一电子设备的运动描述信息。In an embodiment, the processor is configured to: when the computer program is executed, perform motion measurement parameters in combination with the second electronic device for a predetermined period of time, and the first electronic device is in the predetermined time period The self-motion measurement parameter within the analysis obtains motion description information of the tracked target relative to the first electronic device during the predetermined time period.
在一实施例中,所述运动信息包括对所述被跟踪目标的运动描述信息,所述运动描述信息由所述第二电子设备根据采集获得的预定时间段内的运动测量参数进行统计分析获得,所述运动测量参数至少包括:运动加速度和/或运动角速度,所述运动描述信息至少包括运动速度和/或运动方向,所述运动描述信息记载在所述第二电子设备的预定存储空间中;所述处理器用于运行所述计算机程序时,执行:周期性或非周期性的访问所述第二电子设备的预定存储空间,获取所述第二电子设备在预定时间段内的运动描述信息;根据所述预定时间段内的所述运动描述信息,对所述第一跟踪结果进行修正,获得所述第二跟踪结果。In an embodiment, the motion information includes motion description information of the tracked target, and the motion description information is obtained by the second electronic device according to the motion measurement parameter in the predetermined time period obtained by the acquisition. The motion measurement parameter includes at least: motion acceleration and/or motion angular velocity, the motion description information includes at least a motion speed and/or a motion direction, and the motion description information is recorded in a predetermined storage space of the second electronic device. The processor is configured to: periodically or non-periodically access a predetermined storage space of the second electronic device, and acquire motion description information of the second electronic device within a predetermined time period; And correcting the first tracking result according to the motion description information in the predetermined time period to obtain the second tracking result.
在一实施例中,所述处理器用于运行所述计算机程序时,执行:根据所述被跟踪目标在不同运动方向上的状态概率,以及所述第一跟踪结果所表示的所述被跟踪目标在跟踪图像中的至少一个候选跟踪区域,确定所述被跟踪目标在跟踪图像中的置信跟踪区域,基于所述置信跟踪区域生成第二跟踪结果;其中,所述状态概率用于表示所述被跟踪目标在不同运动方向上运动的概率。In an embodiment, when the processor is configured to run the computer program, performing: a state probability according to the tracked target in different motion directions, and the tracked target represented by the first tracking result Determining, in at least one candidate tracking area in the tracking image, a confidence tracking area of the tracked object in the tracking image, generating a second tracking result based on the trusted tracking area; wherein the state probability is used to represent the Track the probability that a target will move in different directions of motion.
在一实施例中,所述处理器用于运行所述计算机程序时,执行:当所述预定时间段内的运动描述信息表示所述被跟踪目标在预定时间段内的运动方向为第一方向,所述预定时间段内的第一跟踪结果表征所述被跟踪目 标在预定时间段内的运动方向为第二方向,所述第一方向与第二方向不同,且所述被跟踪目标在预定时间段内在所述第一方向上的移动距离大于预设的第一距离阈值,所述被跟踪目标在预定时间段内在所述第二方向上的移动距离大于预设的第二距离阈值时,产生报警提示信息,所述报警提示信息用于提示所述第一电子设备跟丢所述被跟踪目标。In an embodiment, when the processor is configured to run the computer program, performing: when the motion description information in the predetermined time period indicates that the moving direction of the tracked target in a predetermined time period is a first direction, The first tracking result within the predetermined time period characterizes the tracked target The moving direction marked in the predetermined time period is a second direction, the first direction is different from the second direction, and the moving distance of the tracked target in the first direction is greater than a preset number in a predetermined time period a distance threshold, when the moving distance of the tracked target in the second direction is greater than a preset second distance threshold in a predetermined time period, generating alarm prompt information, wherein the alarm prompt information is used to prompt the first The electronic device loses the tracked target.
在一实施例中,所述处理器用于运行所述计算机程序时,执行:在所述产生报警提示信息之后,重新检测所述被跟踪目标,重新执行基于视觉的目标跟踪。In an embodiment, when the processor is configured to run the computer program, performing: re-detecting the tracked target after the generating the alert prompt information, and performing the vision-based target tracking again.
在示例性实施例中,本发明实施例还提供了一种计算机可读存储介质,例如包括计算机程序的存储器,上述计算机程序可由电子设备的处理器执行,以完成前述方法所述步骤。计算机可读存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、Flash Memory、磁表面存储器、光盘、或CD-ROM等存储器;也可以是包括上述存储器之一或任意组合的各种设备,如移动电话、计算机、平板设备、个人数字助理等。In an exemplary embodiment, an embodiment of the present invention further provides a computer readable storage medium, such as a memory including a computer program, which may be executed by a processor of an electronic device to perform the steps of the foregoing method. The computer readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories, such as Mobile phones, computers, tablet devices, personal digital assistants, etc.
本发明实施例提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行:执行基于视觉的目标跟踪,获得针对被跟踪目标的第一跟踪结果;根据用于描述所述被跟踪目标运动状态的运动信息,结合所述第一跟踪结果,分析获得针对所述被跟踪目标的第二跟踪结果;其中,所述第二跟踪结果与所述第一跟踪结果相同或不同;所述用于描述所述被跟踪目标运动状态的运动信息由设置于所述被跟踪目标上的第二电子设备基于测量获得。Embodiments of the present invention provide a computer storage medium, where the computer storage medium stores computer executable instructions for performing: performing vision-based target tracking to obtain a first target for a tracked target Tracking the result; according to the motion information for describing the motion state of the tracked target, combining with the first tracking result, analyzing and obtaining a second tracking result for the tracked target; wherein the second tracking result and the The first tracking result is the same or different; the motion information for describing the motion state of the tracked target is obtained based on the measurement by the second electronic device disposed on the tracked target.
在一实施例中,所述运动信息包括针对所述被跟踪目标的运动测量参数,所述运动测量参数记载在所述第二电子设备的预定存储空间中,所述运动测量参数至少包括:运动加速度和/或运动角速度;所述计算机可执行指令用于执行:周期性或非周期性的访问所述第二电子设备的预定存储空 间,获取所述第二电子设备在预定时间段内采集得到的所述运动测量参数;对所述预定时间段内的所述运动测量参数进行统计分析,获得所述被跟踪目标在预定时间段内的运动描述信息,根据所述运动描述信息对所述第一跟踪结果进行修正,获得所述第二跟踪结果;其中,所述运动描述信息至少包括运动速度和/或运动方向。In an embodiment, the motion information includes motion measurement parameters for the tracked target, the motion measurement parameters are recorded in a predetermined storage space of the second electronic device, and the motion measurement parameters include at least: Acceleration and/or angular velocity of movement; the computer executable instructions for performing: periodically or aperiodically accessing a predetermined storage space of the second electronic device Obtaining the motion measurement parameter collected by the second electronic device in a predetermined time period; performing statistical analysis on the motion measurement parameter in the predetermined time period to obtain the tracked target in a predetermined time period The motion description information is performed, and the first tracking result is corrected according to the motion description information to obtain the second tracking result; wherein the motion description information includes at least a motion speed and/or a motion direction.
在一实施例中,所述计算机可执行指令用于执行:结合所述第二电子设备在预定时间段内的运动测量参数、以及所述第一电子设备在所述预定时间段内的自身运动测量参数,分析获得所述被跟踪目标在所述预定时间段内相对于所述第一电子设备的运动描述信息。In an embodiment, the computer executable instructions are configured to: combine motion measurement parameters of the second electronic device for a predetermined period of time, and self-motion of the first electronic device during the predetermined time period Measuring parameters, the analysis obtains motion description information of the tracked target relative to the first electronic device during the predetermined time period.
在一实施例中,所述运动信息包括对所述被跟踪目标的运动描述信息,所述运动描述信息由所述第二电子设备根据采集获得的预定时间段内的运动测量参数进行统计分析获得,所述运动测量参数至少包括:运动加速度和/或运动角速度,所述运动描述信息至少包括运动速度和/或运动方向,所述运动描述信息记载在所述第二电子设备的预定存储空间中;所述计算机可执行指令用于执行:周期性或非周期性的访问所述第二电子设备的预定存储空间,获取所述第二电子设备在预定时间段内的运动描述信息;根据所述预定时间段内的所述运动描述信息,对所述第一跟踪结果进行修正,获得所述第二跟踪结果。In an embodiment, the motion information includes motion description information of the tracked target, and the motion description information is obtained by the second electronic device according to the motion measurement parameter in the predetermined time period obtained by the acquisition. The motion measurement parameter includes at least: motion acceleration and/or motion angular velocity, the motion description information includes at least a motion speed and/or a motion direction, and the motion description information is recorded in a predetermined storage space of the second electronic device. The computer executable instructions are configured to: periodically or non-periodically access a predetermined storage space of the second electronic device, and acquire motion description information of the second electronic device within a predetermined time period; The motion description information in a predetermined time period, the first tracking result is corrected, and the second tracking result is obtained.
在一实施例中,所述计算机可执行指令用于执行:根据所述被跟踪目标在不同运动方向上的状态概率,以及所述第一跟踪结果所表示的所述被跟踪目标在跟踪图像中的至少一个候选跟踪区域,确定所述被跟踪目标在跟踪图像中的置信跟踪区域,基于所述置信跟踪区域生成第二跟踪结果;其中,所述状态概率用于表示所述被跟踪目标在不同运动方向上运动的概率。In an embodiment, the computer executable instructions are configured to perform: a state probability according to the tracked target in different motion directions, and the tracked target represented by the first tracking result is in a tracking image Determining at least one candidate tracking area, determining a confidence tracking area of the tracked object in the tracking image, generating a second tracking result based on the trusted tracking area; wherein the state probability is used to indicate that the tracked target is different The probability of motion in the direction of motion.
在一实施例中,所述计算机可执行指令用于执行:当所述预定时间段 内的运动描述信息表示所述被跟踪目标在预定时间段内的运动方向为第一方向,所述预定时间段内的第一跟踪结果表征所述被跟踪目标在预定时间段内的运动方向为第二方向,所述第一方向与第二方向不同,且所述被跟踪目标在预定时间段内在所述第一方向上的移动距离大于预设的第一距离阈值,所述被跟踪目标在预定时间段内在所述第二方向上的移动距离大于预设的第二距离阈值时,产生报警提示信息,所述报警提示信息用于提示所述第一电子设备跟丢所述被跟踪目标。In an embodiment, the computer executable instructions are for executing: when the predetermined time period The motion description information inside indicates that the moving direction of the tracked target in the predetermined time period is the first direction, and the first tracking result in the predetermined time period represents that the moving direction of the tracked target in the predetermined time period is a second direction, the first direction is different from the second direction, and the moving distance of the tracked target in the first direction is greater than a preset first distance threshold in a predetermined time period, and the tracked target is When the moving distance in the second direction is greater than the preset second distance threshold in the predetermined time period, the alarm prompt information is generated, and the alarm prompt information is used to prompt the first electronic device to drop the tracked target.
在一实施例中,所述计算机可执行指令用于执行:在所述产生报警提示信息之后,重新检测所述被跟踪目标,重新执行基于视觉的目标跟踪。In an embodiment, the computer executable instructions are configured to: after the generating the alert prompt information, re-detect the tracked target and re-execute the vision-based target tracking.
图3是根据本发明实施例的一种可选地一种目标跟踪系统的示意图,如图3所示,该目标跟踪系统包括:上述实施例中的第一电子设备31和第二电子设备32,所述第一电子设备31,配置为执行基于视觉的目标跟踪,获得针对跟踪目标的第一跟踪结果,根据用于描述跟踪目标运动状态的运动信息,结合第一跟踪结果,分析获得针对跟踪目标的第二跟踪结果;所述第二电子设备32,设置于跟踪目标上,配置为基于测量获得用于描述跟踪目标运动状态的运动信息。FIG. 3 is a schematic diagram of an optional target tracking system according to an embodiment of the present invention. As shown in FIG. 3, the target tracking system includes: the first electronic device 31 and the second electronic device 32 in the above embodiment. The first electronic device 31 is configured to perform a vision-based target tracking, obtain a first tracking result for the tracking target, and according to the motion information for describing the tracking target motion state, combined with the first tracking result, the analysis obtains the tracking target a second tracking result of the target; the second electronic device 32, disposed on the tracking target, configured to obtain motion information for describing a motion state of the tracking target based on the measurement.
在一实施例中,所述运动信息包括针对所述被跟踪目标的运动测量参数,所述运动测量参数记载在所述第二电子设备的预定存储空间中,所述运动测量参数至少包括:运动加速度和/或运动角速度;所述第一电子设备31,配置为周期性或非周期性的访问所述第二电子设备的预定存储空间,获取所述第二电子设备在预定时间段内采集得到的所述运动测量参数;对所述预定时间段内的所述运动测量参数进行统计分析,获得所述被跟踪目标在预定时间段内的运动描述信息,根据所述运动描述信息对所述第一跟踪结果进行修正,获得所述第二跟踪结果;其中,所述运动描述信息至少包括运动速度和/或运动方向。 In an embodiment, the motion information includes motion measurement parameters for the tracked target, the motion measurement parameters are recorded in a predetermined storage space of the second electronic device, and the motion measurement parameters include at least: And the first electronic device 31 is configured to periodically or non-periodically access a predetermined storage space of the second electronic device, and acquire the second electronic device to acquire the data within a predetermined time period. Performing statistical analysis on the motion measurement parameter in the predetermined time period to obtain motion description information of the tracked target within a predetermined time period, according to the motion description information A tracking result is corrected to obtain the second tracking result; wherein the motion description information includes at least a motion speed and/or a motion direction.
其中,所述第一电子设备31,配置为结合所述第二电子设备在预定时间段内的运动测量参数、以及所述第一电子设备在所述预定时间段内的自身运动测量参数,分析获得所述被跟踪目标在所述预定时间段内相对于所述第一电子设备的运动描述信息。The first electronic device 31 is configured to combine the motion measurement parameters of the second electronic device in a predetermined time period and the self-motion measurement parameters of the first electronic device in the predetermined time period, and analyze Obtaining motion description information of the tracked target relative to the first electronic device during the predetermined time period.
在一实施例中,所述运动信息包括对所述被跟踪目标的运动描述信息,所述运动描述信息由所述第二电子设备根据采集获得的预定时间段内的运动测量参数进行统计分析获得,所述运动测量参数至少包括:运动加速度和/或运动角速度,所述运动描述信息至少包括运动速度和/或运动方向,所述运动描述信息记载在所述第二电子设备的预定存储空间中;所述第一电子设备31,配置为周期性或非周期性的访问所述第二电子设备的预定存储空间,获取所述第二电子设备在预定时间段内的运动描述信息;根据所述预定时间段内的所述运动描述信息,对所述第一跟踪结果进行修正,获得所述第二跟踪结果。In an embodiment, the motion information includes motion description information of the tracked target, and the motion description information is obtained by the second electronic device according to the motion measurement parameter in the predetermined time period obtained by the acquisition. The motion measurement parameter includes at least: motion acceleration and/or motion angular velocity, the motion description information includes at least a motion speed and/or a motion direction, and the motion description information is recorded in a predetermined storage space of the second electronic device. The first electronic device 31 is configured to periodically or non-periodically access a predetermined storage space of the second electronic device, and acquire motion description information of the second electronic device within a predetermined time period; The motion description information in a predetermined time period, the first tracking result is corrected, and the second tracking result is obtained.
在一实施例中,所述运动描述信息包括所述被跟踪目标在不同运动方向上的状态概率;所述第一电子设备31,配置为根据所述被跟踪目标在不同运动方向上的状态概率,以及所述第一跟踪结果所表示的所述被跟踪目标在跟踪图像中的至少一个候选跟踪区域,确定所述被跟踪目标在跟踪图像中的置信跟踪区域,基于所述置信跟踪区域生成第二跟踪结果;其中,所述状态概率用于表示所述被跟踪目标在不同运动方向上运动的概率。In an embodiment, the motion description information includes a state probability of the tracked target in different motion directions; the first electronic device 31 is configured to be based on a state probability of the tracked target in different motion directions. And the at least one candidate tracking area in the tracking image of the tracked target represented by the first tracking result, determining a confidence tracking area of the tracked target in the tracking image, and generating a first Two tracking results; wherein the state probability is used to indicate a probability of the tracked target moving in different directions of motion.
在一实施例中,所述第一电子设备31,配置为当所述预定时间段内的运动描述信息表示所述被跟踪目标在预定时间段内的运动方向为第一方向,所述预定时间段内的第一跟踪结果表征所述被跟踪目标在预定时间段内的运动方向为第二方向,所述第一方向与第二方向不同,且所述被跟踪目标在预定时间段内在所述第一方向上的移动距离大于预设的第一距离阈值,所述被跟踪目标在预定时间段内在所述第二方向上的移动距离大于预 设的第二距离阈值时,产生报警提示信息,所述报警提示信息用于提示所述第一电子设备跟丢所述被跟踪目标。In an embodiment, the first electronic device 31 is configured to: when the motion description information in the predetermined time period indicates that the moving direction of the tracked target in a predetermined time period is a first direction, the predetermined time The first tracking result in the segment characterizes that the moving direction of the tracked target in the predetermined time period is a second direction, the first direction is different from the second direction, and the tracked target is in the predetermined time period The moving distance in the first direction is greater than a preset first distance threshold, and the moving distance of the tracked target in the second direction is greater than the pre-predetermined time period When the second distance threshold is set, an alarm prompt message is generated, and the alarm prompt information is used to prompt the first electronic device to drop the tracked target.
在一实施例中,所述第一电子设备31,配置为在所述产生报警提示信息之后,重新检测所述被跟踪目标,重新执行基于视觉的目标跟踪。In an embodiment, the first electronic device 31 is configured to re-detect the tracked target and re-execute the vision-based target tracking after the generating the alert prompt information.
通过上述实施例,在跟踪目标的过程中,第一电子设备31可获得来自第二电子设备32测量出的目标运动状态的运动信息,根据第二电子设备32获取到的目标运动状态的运动信息结合第一电子设备31实时获取到的第一跟踪结果分析得出跟踪目标的第二跟踪结果,达到实时检测跟踪目标的运动状态,利用设置在跟踪目标上的第二电子设备32实时测量获得跟踪目标的运动信息,结合第一电子设备31获取的跟踪目标的第一跟踪结果,分析得到第二跟踪结果,如利用该运动信息修正第一跟踪结果得到第二跟踪结果,通过上述方案,不是直接将第一电子设备31的第一跟踪结果作为最终的结果,而是结合第二电子设备32测量得到的跟踪目标的运动信息分析得到第二跟踪结果,得到的结果更加准确,解决了现有技术中跟踪目标时准确性低的问题,增加了视觉跟踪的鲁棒性。Through the above embodiment, in the process of tracking the target, the first electronic device 31 can obtain the motion information of the target motion state measured by the second electronic device 32, and the motion information of the target motion state acquired according to the second electronic device 32. Combining the first tracking result obtained by the first electronic device 31 in real time, the second tracking result of the tracking target is obtained, and the motion state of the tracking target is detected in real time, and the second electronic device 32 set on the tracking target is used to measure and obtain the tracking in real time. The motion information of the target is combined with the first tracking result of the tracking target acquired by the first electronic device 31 to obtain a second tracking result. If the first tracking result is corrected by using the motion information, the second tracking result is obtained. The first tracking result of the first electronic device 31 is used as the final result, and the second tracking result is obtained by analyzing the motion information of the tracking target measured by the second electronic device 32, and the obtained result is more accurate, and the prior art is solved. The problem of low accuracy when tracking targets increases the robustness of visual tracking .
下面以一种可选的实施例对本发明做出说明。The invention is described below in an alternative embodiment.
图4是根据本发明实施例的一种可选的目标跟踪方法的实施场景的示意图,如图4所示,该方案的跟踪目标是屏幕内的人,所在的测量环境为一个相对的屏幕,其中,第一电子设备为机器人,第二电子设备为采用了IMU芯片的设备,该方案通过采集IMU发出的反馈信息完成对视觉跟踪的辅助。4 is a schematic diagram of an implementation scenario of an optional target tracking method according to an embodiment of the present invention. As shown in FIG. 4, the tracking target of the solution is a person in the screen, and the measurement environment in which the device is located is a relative screen. The first electronic device is a robot, and the second electronic device is a device that uses an IMU chip. The solution completes the assistance of visual tracking by collecting feedback information sent by the IMU.
首先,机器人不断检测通过不断地扫描来实时检测屏幕内的人的运动状态,机器人内有存储器,机器人的该存储器可以将检测到的屏幕内的人的运动数据状态存储起来在机器人存储空间内部形成第一运动数据,在屏幕内的人的身上放置含IMU芯片的第二电子设备,该IMU芯片可以实时检 测人的运动状态,第二电子设备包括存储单元,该IMU设备的存储单元可以将检测到的人的运动状态的运动数据存储,形成第二运动数据,机器人对IMU返回的第二运动数据进行一系列的统计学习分析,机器人通过统计分析学习得到一个结果数据,机器人通过该结果数据可对屏幕内的人运动行为进行分析,得到基于概率的目标运动信息,例如:估计运动人当前运动方向,其中,该运动方向包括:前进、后退、停止、左移、右移。将该运动信息中有效的运动数据融合到视觉跟踪算法中,以达到增加跟踪目标性的作用。First of all, the robot continuously detects the motion state of the person in the screen by continuously scanning, and the robot has a memory therein, and the memory of the robot can store the state of the motion data of the detected person in the screen and form inside the robot storage space. The first motion data, the second electronic device including the IMU chip is placed on the person inside the screen, and the IMU chip can be checked in real time. The second electronic device includes a storage unit, and the storage unit of the IMU device can store the motion data of the detected motion state of the person to form second motion data, and the robot performs the second motion data returned by the IMU. Through a series of statistical learning analysis, the robot learns a statistical result through statistical analysis. The robot can analyze the human motion behavior in the screen through the result data, and obtain the target motion information based on the probability, for example, estimating the current movement direction of the sports person. The moving direction includes: forward, backward, stop, left shift, and right shift. The effective motion data in the motion information is integrated into the visual tracking algorithm to achieve the purpose of increasing the tracking target.
通过上述实施例,可以对屏幕内的人的位置运动方向和运动速度进行预测,机器人根据IMU返回的数据对人所携带的第二电子设备相对于机器人的运动分析,机器人通过运动分析可以预估目标在屏幕中的移动规律,从而可以产生置信度区域,从而增加跟踪目标的稳定性和准确性。Through the above embodiment, the position motion direction and the motion speed of the person in the screen can be predicted, and the robot analyzes the motion of the second electronic device carried by the person relative to the robot according to the data returned by the IMU, and the robot can estimate by motion analysis. The movement of the target in the screen, which can generate a confidence area, thereby increasing the stability and accuracy of the tracking target.
通过上述实施例,如果返回两个待定结果:第一预测移动方向Rectang1与第二预测移动方向Rectangle2,而机器人根据得到的IMU反馈信息预测到行人此时在向右运动,则置信区域出现在右侧,Rectangle2的置信度更高,Rectangle1可被抑制,视觉跟踪中间或者最后的筛选结果为Rectangle2,即预测屏幕内的人会向右移动。With the above embodiment, if two pending results are returned: the first predicted moving direction Rectang1 and the second predicted moving direction Rectangle2, and the robot predicts that the pedestrian is moving to the right according to the obtained IMU feedback information, the confidence area appears on the right. On the side, the confidence of Rectangle2 is higher, Rectangle1 can be suppressed, and the middle or final filter result of visual tracking is Rectangle2, that is, the person inside the prediction screen will move to the right.
通过上述实施例,可以在机器的视觉跟踪算法失效时,可以及时纠正,例如,如果机器人通过分析得出目标运动方向与基于视觉技术估计的运动方向严重不符,机器人可以做出“跟丢”判断,这时,机器人可以通过IMU第二电子设备返回的信息重新确定屏幕内的目标的运动方向和运动速度,从而机器人可以通过控制器纠正机器人未来的运动方向。Through the above embodiments, the machine can be corrected in time when the visual tracking algorithm of the machine fails. For example, if the robot obtains that the target motion direction is seriously inconsistent with the motion direction estimated based on the visual technology, the robot can make a “follow” judgment. At this time, the robot can re-determine the moving direction and moving speed of the target in the screen through the information returned by the second electronic device of the IMU, so that the robot can correct the future moving direction of the robot through the controller.
对于上述实施例,若Rectang1与Rectangle2与前面连续n帧相比都是在向左移动,即视觉跟踪结果显示人在这n帧视频中一直在向左移动,且向左移动距离大于距离阈值,而IMU反馈信息表示目标一直在向右移动, 且移动距离大于距离阈值时,那么此时视觉跟踪基本可以判断为“跟丢”,视觉跟踪算法可以重新进行初始化,机器人的运动方向重新确定,使得机器人可以继续跟踪目标。For the above embodiment, if Rectang1 and Rectangle2 are moved to the left compared with the previous consecutive n frames, that is, the visual tracking result shows that the person has been moving to the left in the n frames of video, and the moving distance to the left is greater than the distance threshold. The IMU feedback message indicates that the target has been moving to the right. When the moving distance is greater than the distance threshold, then the visual tracking can be basically judged as “following”, the visual tracking algorithm can be re-initialized, and the moving direction of the robot is re-determined, so that the robot can continue to track the target.
上述实施例的视觉跟踪算法可以包括以下算法的至少一致:camshift算法、光流跟踪算法、粒子滤波算法。The visual tracking algorithm of the above embodiment may include at least the following algorithms: a camshift algorithm, an optical flow tracking algorithm, and a particle filtering algorithm.
通过上述实施例,在跟踪屏幕内的人的过程中,机器人可接收到来自屏幕内的人身上的第二电子设备测量出的目标运动状态的运动信息,根据第二电子设备获取到的人的运动状态的运动信息结合机器人实时获取到的第一跟踪结果分析得出人的第二跟踪结果,达到实时检测人的运动状态,利用设置在人上的第二电子设备实时测量获得跟踪目标的运动信息,并结合机器人获取的人的第一跟踪结果,分析得到第二跟踪结果,如利用该运动信息修正第一跟踪结果得到第二跟踪结果,通过上述方案,不是直接将机器人的第一跟踪结果作为最终的结果,而是结合第二电子设备测量得到的人的运动信息分析得到第二跟踪结果,得到的结果更加准确,解决了现有技术中跟踪目标时准确性低的问题,增加了视觉跟踪的鲁棒性。Through the above embodiment, in the process of tracking the person in the screen, the robot can receive the motion information of the target motion state measured by the second electronic device on the person in the screen, according to the person acquired by the second electronic device The motion information of the motion state is combined with the first tracking result obtained by the robot in real time to obtain the second tracking result of the person, and the motion state of the person is detected in real time, and the motion of the tracking target is obtained by real-time measurement using the second electronic device set on the person. The information is combined with the first tracking result of the person acquired by the robot, and the second tracking result is obtained by analyzing the first tracking result by using the motion information to obtain the second tracking result. According to the above solution, the first tracking result of the robot is not directly used. As a final result, the second tracking result is obtained by analyzing the motion information of the person measured by the second electronic device, and the obtained result is more accurate, which solves the problem of low accuracy when tracking the target in the prior art, and increases the vision. Tracking robustness.
下面以另一种可选的实施例对本发明做出说明。The invention will now be described in another alternative embodiment.
图5是根据本发明实施例的一种可选地目标跟踪方法的流程图二,在以动平衡车为运动底盘的地面移动机器人上运行视觉跟踪算法,用户的运动信息通过其身上便携的含有IMU的移动设备(如手机、手环、遥控器、平板电脑等)反馈给机器人,完成对视觉跟踪的辅助,对该移动设备进行跟踪。如图5所示,该方法包括:FIG. 5 is a second flowchart of an optional target tracking method according to an embodiment of the present invention. A visual tracking algorithm is run on a ground mobile robot with a dynamic balance vehicle as a sports chassis, and the user's motion information is carried through the portable body. IMU's mobile devices (such as mobile phones, wristbands, remote controls, tablets, etc.) feed back to the robot to complete the tracking of the visual tracking and track the mobile device. As shown in FIG. 5, the method includes:
步骤S501,机器人视觉跟踪算法以及用户持握的IMU设备初始化。In step S501, the robot visual tracking algorithm and the IMU device held by the user are initialized.
步骤S502,视觉跟踪算法建立目标模型,实时在线跟踪用户。Step S502, the visual tracking algorithm establishes a target model, and tracks the user online in real time.
步骤S503,跟踪过程中定时地访问IMU数据缓冲区,并对这一阶段内的IMU数据进行一定的统计学习,得到基于概率的用户运动信息。 In step S503, the IMU data buffer is periodically accessed during the tracking process, and certain statistical learning is performed on the IMU data in this stage to obtain user motion information based on the probability.
其中,该用户运动信息可分为前、后、左、右、停等5个状态。The user motion information can be divided into five states: front, back, left, right, and stop.
步骤S504,得到图像置信区域。In step S504, an image confidence area is obtained.
步骤S505,判断置信区域和用户最后运动结果是否完全不同或者是否符合一定的“跟丢”准则。In step S505, it is determined whether the confidence region and the user's final motion result are completely different or meet a certain "following" criterion.
若是,执行步骤S506,若否,执行步骤S508。If yes, go to step S506, if no, go to step S508.
步骤S506,视觉算法模型不再进行更新。In step S506, the visual algorithm model is no longer updated.
若对二者结果匹配后发现完全不同,或者符合一定的“跟丢”准则,则得出当前帧“跟丢”,视觉算法模型不再进行更新。If the results of the two match are completely different, or meet the certain "following" criteria, then the current frame is "followed" and the visual algorithm model is no longer updated.
步骤S507,视觉算法模型重新初始化或者行人检测,回到步骤S503。In step S507, the visual algorithm model is reinitialized or pedestrian detected, and the process returns to step S503.
步骤S508,对视觉跟踪算法的中间或者最后结果进行修正。In step S508, the intermediate or final result of the visual tracking algorithm is corrected.
利用步骤S504的置信区域对视觉跟踪算法的中间或者最后结果进行修正,从而提升视觉跟踪算法的准确性。The intermediate or final result of the visual tracking algorithm is corrected by using the confidence region of step S504, thereby improving the accuracy of the visual tracking algorithm.
步骤S509,视觉算法更新模型,回到步骤S503。In step S509, the visual algorithm updates the model, and returns to step S503.
通过上述实施例,在跟踪目标的过程中,代步机器人可以接收到用户身上的含IMU的移动设备测量出的用户运动状态的运动信息,根据该移动设备获取到的目标运动状态的运动信息结合代步机器人实时获取到的第一跟踪结果经过分析得出跟踪目标的第二跟踪结果,达到实时检测用户的运动状态的准确信息,通过上述的含IMU的移动设备抽取关键信息进行物体运动分析,可以预测用户的运动方向或运动角度,同时也可以发现跟踪过程中出现的预估目标运动状态的错误,从而解决了长时间视觉跟踪出现的跟踪准确性低的技术问题,增加了视觉跟踪的鲁棒性。当然,本发明实施例并不仅限于地面移动机器人,对于空间飞行类的机器人(如无人机)也是适用的。Through the above embodiment, in the process of tracking the target, the traveling robot can receive the motion information of the motion state of the user measured by the IMU-containing mobile device on the user, and combine the motion information of the target motion state acquired by the mobile device. The first tracking result obtained by the robot in real time is analyzed to obtain the second tracking result of the tracking target, and the accurate information for detecting the motion state of the user in real time is obtained, and the moving information is extracted by the above-mentioned IMU-containing mobile device for object motion analysis, which can be predicted. The user's motion direction or motion angle can also find errors in the predicted target motion state that occur during the tracking process, thereby solving the technical problem of low tracking accuracy caused by long-term visual tracking, and increasing the robustness of visual tracking. . Of course, embodiments of the present invention are not limited to ground mobile robots, but are also applicable to space flight type robots (such as drones).
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实 施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments of the present invention, the descriptions of the various embodiments are all focused on each other. For a part not detailed in the embodiment, reference may be made to the related description of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的电子设备实施例仅仅是示意性的,例如所述单元的划分,可以为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed technical contents may be implemented in other manners. The embodiment of the electronic device described above is only schematic. For example, the division of the unit may be a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, unit or module, and may be electrical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、ROM、RAM、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a ROM, a RAM, a mobile hard disk, a magnetic disk, or an optical disk.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的 普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above description is only a preferred embodiment of the present invention, and it should be noted that it is for the technical field. Many modifications and refinements can be made by those skilled in the art without departing from the principles of the invention, and such modifications and refinements are also considered to be within the scope of the invention.
工业实用性Industrial applicability
本发明实施例的技术方案结合第二电子设备测量得到的被跟踪目标的运动信息分析得到第二跟踪结果,使得获得的跟踪结果更加准确,解决了现有技术中跟踪目标时准确性低的问题,增加了视觉跟踪的鲁棒性。 The technical solution of the embodiment of the present invention combines the motion information of the tracked target measured by the second electronic device to obtain a second tracking result, so that the obtained tracking result is more accurate, and the problem of low accuracy when tracking the target in the prior art is solved. , increased the robustness of visual tracking.

Claims (16)

  1. 一种目标跟踪方法,应用于第一电子设备,所述方法包括:A target tracking method is applied to a first electronic device, the method comprising:
    执行基于视觉的目标跟踪,获得针对被跟踪目标的第一跟踪结果;Performing a vision-based target tracking to obtain a first tracking result for the tracked target;
    根据用于描述所述被跟踪目标运动状态的运动信息,结合所述第一跟踪结果,分析获得针对所述被跟踪目标的第二跟踪结果;Obtaining, according to the motion information for describing the motion state of the tracked target, combining the first tracking result, obtaining a second tracking result for the tracked target;
    其中,所述第二跟踪结果与所述第一跟踪结果相同或不同;所述用于描述所述被跟踪目标运动状态的运动信息由设置于所述被跟踪目标上的第二电子设备基于测量获得。The second tracking result is the same as or different from the first tracking result; the motion information for describing the motion state of the tracked target is based on measurement by a second electronic device disposed on the tracked target obtain.
  2. 根据权利要求1所述的方法,其中,所述运动信息包括针对所述被跟踪目标的运动测量参数,所述运动测量参数记载在所述第二电子设备的预定存储空间中,所述运动测量参数至少包括:运动加速度和/或运动角速度;The method of claim 1, wherein the motion information comprises motion measurement parameters for the tracked target, the motion measurement parameters being recorded in a predetermined storage space of the second electronic device, the motion measurement The parameters include at least: motion acceleration and/or motion angular velocity;
    所述第一电子设备获得运动信息,包括:周期性或非周期性的访问所述第二电子设备的预定存储空间,获取所述第二电子设备在预定时间段内采集得到的所述运动测量参数;Obtaining the motion information by the first electronic device, including: periodically or aperiodically accessing a predetermined storage space of the second electronic device, and acquiring the motion measurement collected by the second electronic device in a predetermined time period parameter;
    所述根据用于描述被跟踪目标运动状态的运动信息,结合所述第一跟踪结果,分析获得针对被跟踪目标的第二跟踪结果,包括:According to the motion information for describing the motion state of the tracked target, combined with the first tracking result, the analysis obtains the second tracking result for the tracked target, including:
    对所述预定时间段内的所述运动测量参数进行统计分析,获得所述被跟踪目标在预定时间段内的运动描述信息,根据所述运动描述信息对所述第一跟踪结果进行修正,获得所述第二跟踪结果;其中,所述运动描述信息至少包括运动速度和/或运动方向。Performing statistical analysis on the motion measurement parameter in the predetermined time period, obtaining motion description information of the tracked target in a predetermined time period, and correcting the first tracking result according to the motion description information to obtain The second tracking result; wherein the motion description information includes at least a motion speed and/or a motion direction.
  3. 根据权利要求2所述的方法,其中,所述对所述预定时间段内的所述运动测量参数进行统计分析,获得被跟踪目标在预定时间段内的运动描述信息,包括:结合所述第二电子设备在预定时间段内的运动测量参数、以及所述第一电子设备在所述预定时间段内的自身运动测量参数,分析获 得所述被跟踪目标在所述预定时间段内相对于所述第一电子设备的运动描述信息。The method according to claim 2, wherein said performing statistical analysis on said motion measurement parameter within said predetermined time period to obtain motion description information of a tracked target within a predetermined time period comprises: combining said The motion measurement parameters of the two electronic devices in a predetermined time period and the self-motion measurement parameters of the first electronic device during the predetermined time period are analyzed and obtained And the motion description information of the tracked target relative to the first electronic device during the predetermined time period.
  4. 根据权利要求1所述的方法,其中,所述运动信息包括对所述被跟踪目标的运动描述信息,所述运动描述信息由所述第二电子设备根据采集获得的预定时间段内的运动测量参数进行统计分析获得,所述运动测量参数至少包括:运动加速度和/或运动角速度,所述运动描述信息至少包括运动速度和/或运动方向,所述运动描述信息记载在所述第二电子设备的预定存储空间中;The method of claim 1, wherein the motion information comprises motion description information for the tracked target, the motion description information being measured by a motion of the second electronic device within a predetermined time period obtained according to the acquisition The parameter is obtained by statistical analysis. The motion measurement parameter includes at least: motion acceleration and/or motion angular velocity, the motion description information includes at least a motion speed and/or a motion direction, and the motion description information is recorded in the second electronic device. In the predetermined storage space;
    所述第一电子设备获得运动信息,包括:周期性或非周期性的访问所述第二电子设备的预定存储空间,获取所述第二电子设备在预定时间段内的运动描述信息;Obtaining the motion information by the first electronic device, including: periodically or non-periodicly accessing a predetermined storage space of the second electronic device, and acquiring motion description information of the second electronic device within a predetermined time period;
    所述根据用于描述被跟踪目标运动状态的运动信息,结合所述第一跟踪结果,分析获得针对被跟踪目标的第二跟踪结果,包括:根据所述预定时间段内的所述运动描述信息,对所述第一跟踪结果进行修正,获得所述第二跟踪结果。And obtaining, according to the motion information used to describe the motion state of the tracked target, the second tracking result obtained for the tracked target according to the first tracking result, including: according to the motion description information in the predetermined time period And correcting the first tracking result to obtain the second tracking result.
  5. 根据权利要求2至4任一项所述的方法,其中,所述运动描述信息包括所述被跟踪目标在不同运动方向上的状态概率;所述根据所述预定时间段内的运动描述信息,对第一跟踪结果进行修正,获得第二跟踪结果,包括:The method according to any one of claims 2 to 4, wherein the motion description information includes a state probability of the tracked target in different motion directions; the motion description information according to the predetermined time period, Correcting the first tracking result to obtain the second tracking result, including:
    根据所述被跟踪目标在不同运动方向上的状态概率,以及所述第一跟踪结果所表示的所述被跟踪目标在跟踪图像中的至少一个候选跟踪区域,确定所述被跟踪目标在跟踪图像中的置信跟踪区域,基于所述置信跟踪区域生成第二跟踪结果;其中,所述状态概率用于表示所述被跟踪目标在不同运动方向上运动的概率。Determining the tracked image in the tracking image according to a state probability of the tracked target in different motion directions, and the tracked target represented by the first tracking result is at least one candidate tracking area in the tracking image a confidence tracking area in which a second tracking result is generated based on the confidence tracking area; wherein the state probability is used to indicate a probability that the tracked object moves in different directions of motion.
  6. 根据权利要求5所述的方法,其中,所述方法还包括:当所述预定 时间段内的运动描述信息表示所述被跟踪目标在预定时间段内的运动方向为第一方向,所述预定时间段内的第一跟踪结果表征所述被跟踪目标在预定时间段内的运动方向为第二方向,所述第一方向与第二方向不同,且所述被跟踪目标在预定时间段内在所述第一方向上的移动距离大于预设的第一距离阈值,所述被跟踪目标在预定时间段内在所述第二方向上的移动距离大于预设的第二距离阈值时,产生报警提示信息,所述报警提示信息用于提示所述第一电子设备跟丢所述被跟踪目标。The method of claim 5, wherein the method further comprises: when the predetermined The motion description information in the time period indicates that the moving direction of the tracked target in the predetermined time period is the first direction, and the first tracking result in the predetermined time period represents the motion of the tracked target in the predetermined time period The direction is a second direction, the first direction is different from the second direction, and the moving distance of the tracked target in the first direction is greater than a preset first distance threshold in a predetermined time period, the tracked When the moving distance of the target in the second direction is greater than the preset second distance threshold in the predetermined time period, generating alarm prompt information, the alarm prompt information is used to prompt the first electronic device to discard the tracked aims.
  7. 根据权利要求6所述的方法,其中,在所述产生报警提示信息之后,所述方法还包括:重新检测所述被跟踪目标,重新执行基于视觉的目标跟踪。The method of claim 6, wherein after the generating the alert prompt information, the method further comprises: re-detecting the tracked target, re-executing the vision-based target tracking.
  8. 一种电子设备,包括:An electronic device comprising:
    目标跟踪单元,配置为执行基于视觉的目标跟踪,获得针对被跟踪目标的第一跟踪结果;a target tracking unit configured to perform vision-based target tracking to obtain a first tracking result for the tracked target;
    处理单元,配置为根据用于描述所述被跟踪目标运动状态的运动信息,结合所述第一跟踪结果,分析获得针对所述被跟踪目标的第二跟踪结果;a processing unit, configured to analyze, according to the motion information used to describe the motion state of the tracked target, in combination with the first tracking result, to obtain a second tracking result for the tracked target;
    其中,所述第二跟踪结果与所述第一跟踪结果相同或不同;所述用于描述所述被跟踪目标运动状态的运动信息由设置于所述被跟踪目标上的另一电子设备基于测量获得。The second tracking result is the same as or different from the first tracking result; the motion information for describing the motion state of the tracked target is based on measurement by another electronic device disposed on the tracked target obtain.
  9. 根据权利要求8所述的电子设备,其中,所述运动信息包括针对所述被跟踪目标的运动测量参数,所述运动测量参数记载在所述另一电子设备的预定存储空间中,所述运动测量参数至少包括:运动加速度和/或运动角速度;The electronic device of claim 8, wherein the motion information comprises motion measurement parameters for the tracked target, the motion measurement parameters being recorded in a predetermined storage space of the other electronic device, the motion The measurement parameters include at least: motion acceleration and/or motion angular velocity;
    所述电子设备还包括第一读取单元,配置为周期性或非周期性的访问所述另一电子设备的预定存储空间,获取所述另一电子设备在预定时间段内采集得到的所述运动测量参数; The electronic device further includes a first reading unit configured to periodically or aperiodically access a predetermined storage space of the another electronic device, and acquire the collected by the another electronic device within a predetermined time period. Motion measurement parameters;
    所述处理单元,配置为对所述第一读取单元获取的所述预定时间段内的所述运动测量参数进行统计分析,获得所述被跟踪目标在预定时间段内的运动描述信息,根据所述运动描述信息对所述第一跟踪结果进行修正,获得所述第二跟踪结果;其中,所述运动描述信息至少包括运动速度和/或运动方向。The processing unit is configured to perform statistical analysis on the motion measurement parameter in the predetermined time period acquired by the first reading unit, to obtain motion description information of the tracked target in a predetermined time period, according to The motion description information corrects the first tracking result to obtain the second tracking result; wherein the motion description information includes at least a motion speed and/or a motion direction.
  10. 根据权利要求9所述的电子设备,其中,所述处理单元,配置为结合所述第一读取单元获取的所述另一电子设备在预定时间段内的运动测量参数、以及所述第一电子设备在所述预定时间段内的自身运动测量参数,分析获得所述被跟踪目标在所述预定时间段内相对于所述第一电子设备的运动描述信息。The electronic device according to claim 9, wherein the processing unit is configured to combine motion measurement parameters of the another electronic device acquired by the first reading unit for a predetermined period of time, and the first The self-motion measurement parameter of the electronic device during the predetermined time period is analyzed to obtain motion description information of the tracked target relative to the first electronic device during the predetermined time period.
  11. 根据权利要求8所述的电子设备,其中,所述运动信息包括对所述被跟踪目标的运动描述信息,所述运动描述信息由所述另一电子设备根据采集获得的预定时间段内的运动测量参数进行统计分析获得,所述运动测量参数至少包括:运动加速度和/或运动角速度,所述运动描述信息至少包括运动速度和/或运动方向,所述运动描述信息记载在所述另一电子设备的预定存储空间中;The electronic device of claim 8, wherein the motion information comprises motion description information for the tracked target, the motion description information being motioned by the another electronic device according to the acquisition for a predetermined period of time The measurement parameters are obtained by statistical analysis. The motion measurement parameters include at least: motion acceleration and/or motion angular velocity, the motion description information includes at least a motion speed and/or a motion direction, and the motion description information is recorded in the another electronic In the predetermined storage space of the device;
    所述电子设备还包括第二读取单元,配置为周期性或非周期性的访问所述另一电子设备的预定存储空间,获取所述另一电子设备在预定时间段内的运动描述信息;The electronic device further includes a second reading unit configured to periodically or non-periodically access a predetermined storage space of the another electronic device, and acquire motion description information of the another electronic device within a predetermined time period;
    所述处理单元,配置为根据所述第二读取单元获取的预定时间段内的所述运动描述信息,对所述第一跟踪结果进行修正,获得所述第二跟踪结果。The processing unit is configured to correct the first tracking result according to the motion description information in a predetermined time period acquired by the second reading unit, to obtain the second tracking result.
  12. 根据权利要求9至11任一项所述的电子设备,其中,所述运动描述信息包括所述被跟踪目标在不同运动方向上的状态概率;所述处理单元,配置为根据所述被跟踪目标在不同运动方向上的状态概率,以及所述第一 跟踪结果所表示的所述被跟踪目标在跟踪图像中的至少一个候选跟踪区域,确定所述被跟踪目标在跟踪图像中的置信跟踪区域,并基于所述置信跟踪区域生成第二跟踪结果;其中,所述状态概率用于表示所述被跟踪目标在不同运动方向上运动的概率。The electronic device according to any one of claims 9 to 11, wherein the motion description information includes a state probability of the tracked target in different motion directions; the processing unit is configured to be based on the tracked target State probability in different directions of motion, and the first And tracking, by the tracking target, the at least one candidate tracking area in the tracking image, determining a trusted tracking area of the tracked target in the tracking image, and generating a second tracking result based on the trusted tracking area; The state probability is used to indicate the probability that the tracked target will move in different directions of motion.
  13. 根据权利要求12所述的电子设备,其中,所述电子设备还包括报警单元,配置为当所述预定时间段内的运动描述信息表示所述被跟踪目标在预定时间段内的运动方向为第一方向,所述预定时间段内的第一跟踪结果表征所述被跟踪目标在预定时间段内的运动方向为第二方向,所述第一方向与第二方向不同,且所述被跟踪目标在预定时间段内在所述第一方向上的移动距离大于预设的第一距离阈值,所述被跟踪目标在预定时间段内在所述第二方向上的移动距离大于预设的第二距离阈值时,产生报警提示信息,所述报警提示信息用于提示所述第一电子设备跟丢所述被跟踪目标。The electronic device of claim 12, wherein the electronic device further comprises an alarm unit configured to: when the motion description information within the predetermined time period represents a direction of motion of the tracked target within a predetermined time period a direction, the first tracking result in the predetermined time period characterizing a moving direction of the tracked target in a predetermined time period as a second direction, the first direction being different from the second direction, and the tracked target The moving distance in the first direction is greater than a preset first distance threshold in a predetermined time period, and the moving distance of the tracked target in the second direction is greater than a preset second distance threshold in a predetermined time period When the alarm prompt information is generated, the alarm prompt information is used to prompt the first electronic device to drop the tracked target.
  14. 根据权利要求13所述的电子设备,其中,所述目标跟踪单元,还配置为在所述报警单元产生报警提示信息之后,重新检测所述被跟踪目标,重新执行基于视觉的目标跟踪。The electronic device according to claim 13, wherein the target tracking unit is further configured to re-detect the tracked target and re-execute the vision-based target tracking after the alarm unit generates the alarm prompt information.
  15. 一种目标跟踪系统,包括:A target tracking system comprising:
    权利要求8至14任一项所述的电子设备;An electronic device according to any one of claims 8 to 14;
    另一电子设备,设置于所述被跟踪目标上,配置为基于测量获得用于描述所述被跟踪目标运动状态的运动信息。Another electronic device, disposed on the tracked target, is configured to obtain motion information for describing a motion state of the tracked target based on the measurement.
  16. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至7任一项所述的目标跟踪方法。 A computer storage medium having stored therein computer executable instructions for performing the target tracking method of any one of claims 1 to 7.
PCT/CN2017/110745 2016-10-12 2017-11-13 Target tracking method and system, electronic device, and computer storage medium WO2018068771A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201610891388 2016-10-12
CN201610891388.8 2016-10-12
CN201611001901.8A CN106682572B (en) 2016-10-12 2016-11-14 Target tracking method and system and first electronic device
CN201611001901.8 2016-11-14

Publications (1)

Publication Number Publication Date
WO2018068771A1 true WO2018068771A1 (en) 2018-04-19

Family

ID=58840208

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/110745 WO2018068771A1 (en) 2016-10-12 2017-11-13 Target tracking method and system, electronic device, and computer storage medium

Country Status (2)

Country Link
CN (1) CN106682572B (en)
WO (1) WO2018068771A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110751022A (en) * 2019-09-03 2020-02-04 平安科技(深圳)有限公司 Urban pet activity track monitoring method based on image recognition and related equipment
CN111126807A (en) * 2019-12-12 2020-05-08 浙江大华技术股份有限公司 Stroke segmentation method and device, storage medium and electronic device
CN111753599A (en) * 2019-03-29 2020-10-09 杭州海康威视数字技术股份有限公司 Personnel operation flow detection method and device, electronic equipment and storage medium
CN112651414A (en) * 2019-10-10 2021-04-13 马上消费金融股份有限公司 Motion data processing and model training method, device, equipment and storage medium
CN113701746A (en) * 2020-05-21 2021-11-26 华为技术有限公司 Target orientation determination method and device
CN114972415A (en) * 2021-12-28 2022-08-30 广东东软学院 Robot vision tracking method, system, electronic device and medium
CN117423051A (en) * 2023-10-18 2024-01-19 广州元沣智能科技有限公司 Information monitoring and analyzing method based on place moving object

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106682572B (en) * 2016-10-12 2020-09-08 纳恩博(北京)科技有限公司 Target tracking method and system and first electronic device
JP6962878B2 (en) * 2018-07-24 2021-11-05 本田技研工業株式会社 Operation assistance system and operation assistance method
CN110657794A (en) * 2019-08-21 2020-01-07 努比亚技术有限公司 Compass calibration method of wearable device, wearable device and storage medium
CN112750301A (en) * 2019-10-30 2021-05-04 杭州海康威视系统技术有限公司 Target object tracking method, device, equipment and computer readable storage medium
CN113029190A (en) * 2019-12-09 2021-06-25 未来市股份有限公司 Motion tracking system and method
CN111487993A (en) * 2020-04-26 2020-08-04 重庆市亿飞智联科技有限公司 Information acquisition method and device, storage medium, automatic pilot and unmanned aerial vehicle
CN111759239A (en) * 2020-06-08 2020-10-13 江苏美的清洁电器股份有限公司 Region determination method and device and computer storage medium
CN111652911B (en) * 2020-06-10 2023-07-28 创新奇智(南京)科技有限公司 Target monitoring method, device and equipment
CN111986224B (en) * 2020-08-05 2024-01-05 七海行(深圳)科技有限公司 Target behavior prediction tracking method and device
CN111932579A (en) * 2020-08-12 2020-11-13 广东技术师范大学 Method and device for adjusting equipment angle based on motion trail of tracked target
CN114001738A (en) * 2021-09-28 2022-02-01 浙江大华技术股份有限公司 Visual line patrol positioning method, system and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859439A (en) * 2010-05-12 2010-10-13 合肥寰景信息技术有限公司 Movement tracking device for man-machine interaction and tracking method thereof
CN103135549A (en) * 2012-12-21 2013-06-05 北京邮电大学 Motion control system and motion control method for spherical robot with visual feedback
CN103149939A (en) * 2013-02-26 2013-06-12 北京航空航天大学 Dynamic target tracking and positioning method of unmanned plane based on vision
CN103411621A (en) * 2013-08-09 2013-11-27 东南大学 Indoor-mobile-robot-oriented optical flow field vision/inertial navigation system (INS) combined navigation method
CN106682572A (en) * 2016-10-12 2017-05-17 纳恩博(北京)科技有限公司 Target tracking method, target tracking system and first electronic device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9495759B2 (en) * 2014-02-26 2016-11-15 Apeiros, Llc Mobile, wearable, automated target tracking system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859439A (en) * 2010-05-12 2010-10-13 合肥寰景信息技术有限公司 Movement tracking device for man-machine interaction and tracking method thereof
CN103135549A (en) * 2012-12-21 2013-06-05 北京邮电大学 Motion control system and motion control method for spherical robot with visual feedback
CN103149939A (en) * 2013-02-26 2013-06-12 北京航空航天大学 Dynamic target tracking and positioning method of unmanned plane based on vision
CN103411621A (en) * 2013-08-09 2013-11-27 东南大学 Indoor-mobile-robot-oriented optical flow field vision/inertial navigation system (INS) combined navigation method
CN106682572A (en) * 2016-10-12 2017-05-17 纳恩博(北京)科技有限公司 Target tracking method, target tracking system and first electronic device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111753599A (en) * 2019-03-29 2020-10-09 杭州海康威视数字技术股份有限公司 Personnel operation flow detection method and device, electronic equipment and storage medium
CN111753599B (en) * 2019-03-29 2023-08-08 杭州海康威视数字技术股份有限公司 Personnel operation flow detection method and device, electronic equipment and storage medium
CN110751022A (en) * 2019-09-03 2020-02-04 平安科技(深圳)有限公司 Urban pet activity track monitoring method based on image recognition and related equipment
CN110751022B (en) * 2019-09-03 2023-08-22 平安科技(深圳)有限公司 Urban pet activity track monitoring method based on image recognition and related equipment
CN112651414A (en) * 2019-10-10 2021-04-13 马上消费金融股份有限公司 Motion data processing and model training method, device, equipment and storage medium
CN111126807A (en) * 2019-12-12 2020-05-08 浙江大华技术股份有限公司 Stroke segmentation method and device, storage medium and electronic device
CN111126807B (en) * 2019-12-12 2023-10-10 浙江大华技术股份有限公司 Stroke segmentation method and device, storage medium and electronic device
CN113701746A (en) * 2020-05-21 2021-11-26 华为技术有限公司 Target orientation determination method and device
CN114972415A (en) * 2021-12-28 2022-08-30 广东东软学院 Robot vision tracking method, system, electronic device and medium
CN114972415B (en) * 2021-12-28 2023-03-28 广东东软学院 Robot vision tracking method, system, electronic device and medium
CN117423051A (en) * 2023-10-18 2024-01-19 广州元沣智能科技有限公司 Information monitoring and analyzing method based on place moving object
CN117423051B (en) * 2023-10-18 2024-03-26 广州元沣智能科技有限公司 Information monitoring and analyzing method based on place moving object

Also Published As

Publication number Publication date
CN106682572B (en) 2020-09-08
CN106682572A (en) 2017-05-17

Similar Documents

Publication Publication Date Title
WO2018068771A1 (en) Target tracking method and system, electronic device, and computer storage medium
EP3014476B1 (en) Using movement patterns to anticipate user expectations
US10748061B2 (en) Simultaneous localization and mapping with reinforcement learning
US10133278B2 (en) Apparatus of controlling movement of mobile robot mounted with wide angle camera and method thereof
CN106780608B (en) Pose information estimation method and device and movable equipment
US9377310B2 (en) Mapping and positioning system
US9442564B1 (en) Motion sensor-based head location estimation and updating
EP2769574B1 (en) Tracking activity, velocity, and heading using sensors in mobile devices or other systems
Rambach et al. Learning to fuse: A deep learning approach to visual-inertial camera pose estimation
WO2019119289A1 (en) Positioning method and device, electronic apparatus, and computer program product
KR102226846B1 (en) System for Positioning Hybrid Indoor Localization Using Inertia Measurement Unit Sensor and Camera
US20140348380A1 (en) Method and appratus for tracking objects
JP2020505614A (en) Apparatus and method for correcting orientation information from one or more inertial sensors
CN106575437B (en) Information processing apparatus, information processing method, and program
CN111595344B (en) Multi-posture downlink pedestrian dead reckoning method based on map information assistance
US10242281B2 (en) Hybrid orientation system
CN108106613B (en) Positioning method and system based on visual assistance
Wu et al. Indoor positioning based on walking-surveyed Wi-Fi fingerprint and corner reference trajectory-geomagnetic database
US10871547B1 (en) Radiofrequency based virtual motion model for localization using particle filter
CN110942474B (en) Robot target tracking method, device and storage medium
Deng et al. Robust heading estimation for indoor pedestrian navigation using unconstrained smartphones
KR20190081334A (en) Method for tracking moving trajectory based on complex positioning and apparatus thereof
CN112087728B (en) Method and device for acquiring Wi-Fi fingerprint spatial distribution and electronic equipment
CN110291771A (en) A kind of depth information acquisition method and moveable platform of target object
CN109945864B (en) Indoor driving positioning fusion method and device, storage medium and terminal equipment

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: 17860727

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: 17860727

Country of ref document: EP

Kind code of ref document: A1