WO2017173977A1 - Mobile terminal target tracking method, device, and mobile terminal - Google Patents

Mobile terminal target tracking method, device, and mobile terminal Download PDF

Info

Publication number
WO2017173977A1
WO2017173977A1 PCT/CN2017/079445 CN2017079445W WO2017173977A1 WO 2017173977 A1 WO2017173977 A1 WO 2017173977A1 CN 2017079445 W CN2017079445 W CN 2017079445W WO 2017173977 A1 WO2017173977 A1 WO 2017173977A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
information
target object
mobile terminal
direction information
Prior art date
Application number
PCT/CN2017/079445
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 WO2017173977A1 publication Critical patent/WO2017173977A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion

Definitions

  • Embodiments of the present invention relate to, but are not limited to, the field of computer and computer vision technologies, and in particular, to a mobile terminal target tracking method, apparatus, and mobile terminal.
  • the target tracking method of the mobile terminal in the prior art directly applies the existing target tracking algorithm to the mobile terminal, resulting in poor performance such as real-time performance, reliability, and robustness of the target tracking. .
  • Embodiments of the present invention provide a mobile terminal target tracking method, apparatus, and mobile terminal,
  • the problem of the target tracking method of the mobile terminal in the related art is solved, and the existing target tracking algorithm is directly applied to the mobile terminal, which leads to poor performance such as real-time performance, reliability and robustness of the target tracking.
  • an embodiment of the present invention provides a mobile terminal target tracking method, including:
  • the foregoing mobile terminal target tracking method before the performing the target tracking or the target matching on the tracked target object, the foregoing mobile terminal target tracking method further includes:
  • Target tracking is performed on the target object according to the obtained initial ORB feature information.
  • the tracking target object is respectively determined according to a difference between a change value of the acceleration information of the mobile terminal and a direction information Target matching, including:
  • the mobile terminal target tracking method further includes:
  • the ORB feature information of the target object is updated, and the target object is re-targeted according to the updated ORB feature information
  • the target matching is continued to be performed according to the initial ORB feature information.
  • the acceleration information includes three axial acceleration information of the coordinate system; And performing, according to the change value of the acceleration information of the mobile terminal, performing target tracking or target matching on the tracked target object, including:
  • the target object is matched, the target object is re-targeted
  • the target matching is continued on the target object.
  • the acceleration information includes three axial acceleration information of the coordinate system; And performing, according to the change value of the acceleration information of the mobile terminal, performing target tracking or target matching on the tracked target object, including:
  • the target tracking is continued on the tracked target object
  • the acceleration information includes three axial acceleration information of the coordinate system; Performing target tracking or performing target matching on the tracked target object according to the change value of the acceleration information, including:
  • the target object is matched to the target object, wherein the preset condition is: less than the first acceleration threshold and greater than the second Acceleration threshold
  • the target object is matched, the target object is re-targeted
  • the target matching is continued on the target object.
  • the direction information includes a direction of rotating along three axes of the coordinate system Information
  • the direction information includes first direction information, second direction information, and third direction information, wherein one of the first direction information and the second direction information is direction information rotated along an X axis, and One is direction information rotated along the Y axis, and the third direction information is direction information rotated along the Z axis;
  • the method further includes:
  • Performing target tracking or performing target matching on the tracked target object according to the difference of the direction information including:
  • the target tracking continues to be performed on the tracked target object
  • target tracking or target matching is performed on the target object according to the difference of the second direction information.
  • the target tracking or target matching of the target object according to the difference of the second direction information includes:
  • the target tracking continues to be performed on the tracked target object
  • the target object is subjected to target tracking or target matching according to the difference of the third direction information.
  • the target tracking or performing target matching on the target object according to the difference of the third direction information includes:
  • the target tracking is continued on the tracked target object
  • the mobile terminal target tracking method further includes:
  • the target tracking is continued on the tracked target object
  • the target object is matched, the target object is re-targeted
  • the target matching is continued on the target object.
  • an embodiment of the present invention provides a mobile terminal target tracking processing apparatus, including: a connected acquiring module and a target processing module;
  • the acquisition module is configured to be capable of passing an acceleration sensor and a direction sensor of the mobile terminal Acquiring acceleration information and direction information of the mobile terminal in real time;
  • the target processing module is configured to continue target tracking or target matching to the tracked target object according to the difference between the change value of the acceleration information of the mobile terminal and the direction information.
  • the acquiring module is further configured to obtain the target object before the target processing module continues to perform target tracking or target matching on the tracked target object.
  • Initial ORB feature information
  • the target processing module is further configured to perform target tracking on the target object according to the initial ORB feature information acquired by the acquiring module.
  • the target processing module is configured to be capable of being respectively configured according to the change value and the direction information of the acceleration information of the mobile terminal And performing a target matching on the tracked target object: performing target matching on the target object according to a change value of the acceleration information of the mobile terminal or a difference value of the direction information, and an initial ORB feature information acquired by the acquiring module ;
  • the target processing module is further configured to: after matching the target object that is tracked, if the target object is matched, update the ORB feature information of the target object, and re-align the information according to the updated ORB feature information.
  • the target object performs target tracking; if the target object is not matched, the target matching is continued to be performed according to the initial ORB feature information.
  • the acceleration information includes three axial acceleration information of the coordinate system;
  • the target processing module includes: a two-two connected computing unit, a target matching unit, and a target tracking unit;
  • the calculating unit is configured to calculate a change value of the acceleration information by using three axial acceleration information acquired by the acquiring module;
  • the target matching unit is configured to perform target matching on the target object when a change value of the acceleration information calculated by the calculating unit is greater than a first acceleration threshold;
  • the target tracking unit is configured to be capable of matching the target pair in the target matching unit Re-targeting the target object
  • the target matching unit is further configured to continue to perform target matching on the target object when the target object is not matched.
  • the acceleration information includes three axial acceleration information of the coordinate system;
  • the target processing module includes: a connected computing unit and a target tracking unit;
  • the calculating unit is configured to calculate a change value of the acceleration information by using three axial acceleration information acquired by the acquiring module;
  • the target tracking unit is configured to continue to perform target tracking on the tracked target object when the change value of the acceleration information calculated by the calculating unit is less than the second acceleration threshold;
  • the target tracking unit is further configured to continue to perform target tracking on the tracked target object when the change value of the acceleration information calculated by the calculation unit is smaller than the first acceleration threshold and greater than the second acceleration threshold, and The video frame at the current time is not processed.
  • the acceleration information includes three axial acceleration information of the coordinate system;
  • the target processing module includes: a two-two connected computing unit, a target matching unit, and a target tracking unit;
  • the calculating unit is configured to calculate a change value of the acceleration information by using three axial acceleration information acquired by the acquiring module;
  • the target matching unit is configured to perform target matching on the target object when the change value of the acceleration information calculated by the calculating unit meets the preset condition in the statistical time interval is greater than the counting threshold.
  • the preset condition is: less than the first acceleration threshold and greater than the second acceleration threshold;
  • the target tracking unit is configured to be able to perform target tracking on the target object when the target matching unit matches the target object;
  • the target matching unit is further configured to continue to perform target matching on the target object when the target object is not matched.
  • the direction information includes direction information that is rotated along three axes of the coordinate system, where the direction information includes first direction information, second direction information, and third direction information, where One of the first direction information and the second direction information is direction information rotated along the X axis, and the other is direction information rotated along the Y axis, the third direction information being direction information rotated along the Z axis;
  • the acquiring module is further configured to: before the target processing module continues to perform target tracking or target matching on the tracked target object according to a difference value of the direction information of the mobile terminal, acquiring an initial of the target object Direction information
  • the target processing module includes: a connected computing unit and a target processing unit;
  • the calculating unit is configured to calculate a difference value of the first direction information according to the current first direction information of the mobile terminal and the initial direction information;
  • the target processing unit is configured to perform target matching on the target object when a difference between the first direction information calculated by the calculating unit is greater than a first direction threshold;
  • the target processing unit is further configured to continue to perform target tracking on the tracked target object when the difference between the first direction information calculated by the calculating unit is less than the second direction threshold;
  • the calculating unit and the target processing unit are further configured to be capable of, when the difference of the first direction information calculated by the calculating unit is smaller than the first direction threshold and greater than the second direction threshold, according to the The difference of the second direction information performs target tracking or target matching on the target object.
  • the calculating unit and the target processing unit are configured to be capable of performing a difference pair according to the second direction information by:
  • the target object performs target tracking or target matching:
  • the calculating unit is further configured to calculate a difference value of the second direction information according to the current second direction information of the mobile terminal and the initial direction information;
  • the target processing unit is further configured to perform target matching on the target object when a difference between the second direction information calculated by the calculating unit is greater than a third direction threshold;
  • the target processing unit is further configured to continue to perform target tracking on the tracked target object when the difference between the second direction information calculated by the calculating unit is less than the fourth direction threshold;
  • the calculating unit and the target processing unit are further configured to be configured to be capable of, when the difference between the second direction information calculated by the calculating unit is smaller than the third direction threshold and greater than the fourth direction threshold, according to the The difference of the third direction information performs target tracking or target matching on the target object.
  • the calculating unit and the target processing unit are configured to be capable of performing a difference pair according to the third direction information by:
  • the target object performs target tracking or target matching:
  • the calculating unit is further configured to calculate a difference value of the third direction information according to the current third direction information of the mobile terminal and the initial direction information;
  • the target processing unit is further configured to continue to perform target tracking on the tracked target object when the difference between the third direction information calculated by the calculating unit is less than the rotation angle threshold;
  • the calculating unit is further configured to: according to the difference between the first direction information, the difference of the second direction information, and the difference when the difference of the third direction information is greater than the rotation angle threshold Calculating the current ORB feature information by the difference of the third direction information;
  • the target processing unit is further configured to be capable of performing target tracking on the target object according to the current ORB feature information when the current ORB feature information is calculated by the calculating unit;
  • the target processing unit is further configured to perform target matching on the target object according to when the current ORB feature information is not calculated by the computing unit.
  • the mobile terminal target tracking device further includes: a computing module connected to the module, configured to calculate a current correct rate of the target tracking according to the current ORB feature information after the target processing module continues to perform target tracking on the tracked target object;
  • the target processing module includes: a connected target matching unit and a target tracking unit;
  • the target tracking unit is configured to continue to perform target tracking on the tracked target object when the calculated correct rate is greater than the target threshold;
  • the target matching unit is configured to be capable of calculating a correct rate less than the target in the computing module Targeting the target object when the threshold is marked;
  • the target tracking unit is configured to be able to perform target tracking on the target object when the target matching unit matches the target object;
  • the target matching unit is further configured to continue to perform target matching on the target object when the target object is not matched.
  • an embodiment of the present invention provides a mobile terminal, where the mobile terminal is configured with a camera, an acceleration sensor, and a direction sensor, and the mobile terminal target tracking device according to any one of the foregoing second aspects;
  • the mobile terminal target tracking device is respectively connected to the camera, the acceleration sensor and the direction sensor.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented by the processor to implement the mobile terminal target tracking method.
  • the mobile terminal target tracking method and device and the mobile terminal provided by the embodiment of the present invention acquire the acceleration information and the direction information of the mobile terminal in real time through the acceleration sensor and the direction sensor of the mobile terminal, so as to respectively change the acceleration information according to the acceleration information of the mobile terminal.
  • the difference between the direction and the direction information is used to perform target tracking or target matching on the tracked target object.
  • by using the acceleration sensor and the direction sensor of the mobile terminal timely adjustment of the tracking object can be realized, thereby ensuring tracking.
  • the accuracy of the object that is, the embodiment of the present invention solves the target tracking method of the mobile terminal in the related art, and the existing target tracking algorithm is directly applied to the mobile terminal, resulting in real-time, reliability and robustness of the target tracking. A problem with poor performance.
  • FIG. 1 is a flowchart of a method for tracking a target of a mobile terminal according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another method for tracking a target of a mobile terminal according to an embodiment of the present invention
  • FIG. 3 is a flowchart of still another method for tracking a target of a mobile terminal according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of an acceleration change in a target tracking method of a mobile terminal provided by the embodiment shown in FIG. 3;
  • FIG. 5 is a schematic diagram of another acceleration change in a target tracking method of a mobile terminal provided by the embodiment shown in FIG. 3;
  • FIG. 5 is a schematic diagram of another acceleration change in a target tracking method of a mobile terminal provided by the embodiment shown in FIG. 3;
  • FIG. 6 is a flowchart of still another method for tracking a target of a mobile terminal according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a change of direction in a target tracking method of a mobile terminal provided by the embodiment shown in FIG. 6;
  • FIG. 7 is a schematic diagram of a change of direction in a target tracking method of a mobile terminal provided by the embodiment shown in FIG. 6;
  • FIG. 8 is a schematic diagram of another direction change in the target tracking method of the mobile terminal provided by the embodiment shown in FIG. 6; FIG.
  • FIG. 9 is a flowchart of still another method for tracking a target of a mobile terminal according to an embodiment of the present invention.
  • FIG. 10 is a flowchart of still another method for tracking a target of a mobile terminal according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a target tracking device of a mobile terminal according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of another mobile terminal target tracking apparatus according to an embodiment of the present disclosure.
  • FIG. 13 is a schematic structural diagram of still another target tracking device for a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 14 is a schematic structural diagram of still another mobile terminal target tracking apparatus according to an embodiment of the present disclosure.
  • FIG. 15 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • the region-based target tracking algorithm uses the global information of the target. Although the tracking accuracy is very high and stable when the target is not occluded, the calculation amount is large and very expensive.
  • the real-time requirements of target tracking on the mobile terminal cannot be met; for example, the feature-based target tracking algorithm does not consider the overall characteristics of the moving target, but extracts certain features of the target, and then locates and tracks these features, although the speed Fast, at the same time is not sensitive to changes in the deformation, scale, brightness, etc. of the moving target. Because the features are sparse and irregular, the algorithm is sensitive to noise, occlusion, image blur, etc.
  • Drift target tracking algorithm iteratively calculates the local maximum of probability density The calculation is small and the real-time performance is high, but the tracking error is easy to occur, and the tracking cannot be self-recovery, and the requirements of reliability and robustness are not satisfied.
  • the tracking algorithm based on the active contour is used to segment the image by the active contour model. Then, the feature is extracted by segmenting the image region and matching with the target to achieve tracking. Although it has good reliability and robustness, it cannot meet the requirements of real-time. Therefore, reasonable design of target tracking technology for mobile terminals has become one of the important factors to improve the performance of mobile terminals.
  • the mobile terminal in the following embodiments may be independent terminal devices, such as a smart phone, a tablet computer (PAD), and a personal digital assistant (Personal Digital Assistant, Referring to: PDA), etc.
  • the mobile terminal can also be a physical component disposed on other devices, such as car navigation provided on a vehicle.
  • PDA Personal Digital Assistant
  • the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in some embodiments.
  • FIG. 1 is a flowchart of a method for tracking a target of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal target tracking method provided in this embodiment is applicable to a case where the mobile terminal performs target tracking, and the method may be performed by a mobile terminal target tracking device, and the mobile terminal target tracking device passes the hard
  • the device and the software are combined to implement, and the device can be integrated in the processor of the mobile terminal for use by the processor.
  • the method in this embodiment may include:
  • S110 Acquire acceleration information and direction information of the mobile terminal in real time by using an acceleration sensor and a direction sensor of the mobile terminal.
  • the mobile terminal target tracking method provided by the embodiment of the present invention is an execution method for performing target tracking by using the mobile terminal.
  • the mobile terminal in this embodiment is usually configured with an acceleration sensor and an orientation sensor, for example, three Axis acceleration sensor (3-axis accelerometer sensor).
  • the acceleration information and the direction information of the mobile terminal can be obtained in real time by using the above two sensors.
  • the present embodiment is based on the acceleration information and the direction information acquired in real time, and serves as a basis for realizing the requirements of the performance index in the target tracking algorithm.
  • the embodiment of the present application is based on the mobility characteristics of the mobile terminal, and fully utilizes the accelerator sensor and the direction sensor configured in the mobile terminal to obtain data information that can reflect the mobility of the mobile terminal, so as to subsequently perform target tracking according to the data information. Adjust the way you perform tracking in a timely manner.
  • S120 Perform target tracking or target matching on the tracked target object according to the difference between the change value of the acceleration information of the mobile terminal and the direction information, respectively.
  • the target object to be tracked may be subjected to target tracking or target matching by using the difference value of the acquired acceleration information and the difference of the direction information.
  • the change value of the acceleration information satisfies a specific condition
  • it indicates that the target tracking is successful that is, the target tracking of the target object can be performed continuously
  • the change value of the acceleration information satisfies another specific condition, Explain that there is a problem with the target tracking.
  • the target target needs to be matched to the target object, so that the target tracking can be re-executed according to the matched target object.
  • the manner of performing target tracking or target matching by using the difference of the direction information is similar to the manner of performing target tracking or target matching by using the change value of the acceleration information, and the target tracking is continued when the tracking is successful.
  • Target matching in case of tracking problems to regain the tracked target object.
  • the method may further include: S111, acquiring initial ORB feature information of the target object, where the ORB feature information includes, for example, some coordinate points of the target object, that is, feature points, and the ORB is Oriented FAST and Rotated BRIEF, That is, the ORB is a combination and improvement of the FAST (Features From Accelerated Segment Test) feature point and the BRIEF (Binary Robust Independent Elementary Features) feature description; S112, target tracking is performed on the target object according to the obtained initial ORB feature information.
  • the ORB feature information includes, for example, some coordinate points of the target object, that is, feature points
  • the ORB is Oriented FAST and Rotated BRIEF, That is, the ORB is a combination and improvement of the FAST (Features From Accelerated Segment Test) feature point and the BRIEF (Binary Robust Independent Elementary Features) feature description
  • S112 target tracking is performed on the target object according to the obtained initial ORB feature information.
  • the mobile terminal in this embodiment usually has a camera, and needs to open the camera before performing target tracking, determine a target object in the tracking scene image of the camera, and obtain initial ORB feature information of the target object, so that the initial ORB feature can be obtained according to the obtained
  • the target object is tracked in the message.
  • the method for obtaining the initial ORB feature information in this embodiment may be, for example, FAST (Features From Accelerated Segment Test), SIFT (Scale Invariant Feature Transform), SURF (Speeded Up Robust Features), ORB (ORiented FAST and Rotated).
  • the target tracking algorithm used in the embodiment of the present application is similar to the related art, for example, may be a pyramid, for example, BRISK (Binary Robust Invariant Scalable Keypoints), MSER (Maximally Stable Extremal Region Extractor), or GFTT (Good Features To Track).
  • Optical flow tracking algorithm (pyramid Lucas–Kanade, referred to as: PyrLK), Tracking via On-line Boosting (OAB), L1 Tracker Using Accelerated Proximal Gradient , referred to as: L1APG) or Compressive Tracking (CT), etc.
  • PyrLK Pyrmid Lucas–Kanade
  • OAB On-line Boosting
  • L1APG L1 Tracker Using Accelerated Proximal Gradient
  • CT Compressive Tracking
  • the mobile terminal target tracking method provided by the embodiment uses the acceleration sensor and the direction sensor provided by the mobile terminal device to obtain the acceleration information and the direction information of the mobile terminal in real time through the two sensors, and can use the two sensors in real time.
  • the acquired information obtains the difference between the change value of the acceleration information of the mobile terminal and the direction information, and timely adjusts the object of performing the target tracking, thereby enhancing the performance requirements of the mobile terminal for real-time performance, reliability, and robustness when performing target tracking.
  • the acceleration information and the direction information of the mobile terminal are acquired in real time by the acceleration sensor and the direction sensor of the mobile terminal, so that the difference between the change value and the direction information of the acceleration information of the mobile terminal is respectively determined.
  • the target tracking of the tracked target object is continued to perform target tracking or target matching; in this embodiment, by using the acceleration sensor and the direction sensor of the mobile terminal, timely adjustment of the tracking object can be realized, thereby ensuring the tracking pair.
  • the accuracy of the image that is, the embodiment solves the target tracking method of the mobile terminal in the related art, and the existing target tracking algorithm is directly applied to the mobile terminal, resulting in real-time, reliability, robustness, and the like of the target tracking. Poor performance.
  • FIG. 2 is a flowchart of another method for tracking a target of a mobile terminal according to an embodiment of the present invention.
  • S120 performs processing according to the difference value of the acceleration information of the mobile terminal or the difference of the direction information
  • the The tracking target object performs target matching that is, S120 in this embodiment may be: performing target matching on the target object according to the change value of the acceleration information of the mobile terminal or the difference of the direction information, and the initial ORB feature information.
  • the target matching that is, S120
  • the following further processing is performed, which may include: S130.
  • the ORB feature information of the target object is updated, and the target object is re-targeted according to the updated ORB feature information.
  • the tracking target image of the camera is also required to match the previously determined target object, but the position of the determined target object in the image may be the same as when the target object is first determined. The location is different, that is, the ORB feature information of the target object changes. At this time, the ORB feature information of the target object needs to be updated, so that the updated ORB feature information is used as the basis for performing the target tracking.
  • S120 of this embodiment may be further performed, and S140, if the target object is not matched, continue to perform target matching on the target object according to the initial ORB feature information.
  • the reference information for performing target matching in the following embodiments of the present application is the initial ORB feature information obtained for the first time. If the target object is not matched, the matching is continued according to the initial ORB feature information; The specific way of performing target matching is not specified.
  • the acceleration information acquired in S110 may include acceleration information of three axes in a coordinate system, and the acceleration information may be calculated by using the acceleration information of the three axes, as shown in FIG.
  • the S120 includes: S130, according to the change value of the acceleration information of the mobile terminal, The tracked target object continues to perform target tracking or target matching; S140, according to the difference of the direction information of the mobile terminal, continue to perform target tracking or target matching on the tracked target object.
  • S130 in this embodiment may include:
  • S132 Perform target matching on the target object when the change value of the acceleration information is greater than the first acceleration threshold.
  • FIG. 5 A schematic diagram of an acceleration change in the target tracking method of the mobile terminal, as shown in FIG. 5, is another schematic diagram of the acceleration change in the target tracking method of the mobile terminal provided by the embodiment shown in FIG.
  • m x , m y and m z represent acceleration information of the mobile terminal along the X-axis, Y-axis and Z-axis directions at the current recording time (for example, time t k )
  • m′ x , m′ y and m′ z represent movement Acceleration information of the terminal in the X-axis, Y-axis, and Z-axis directions at the previous recording time (for example, time t k-1 ).
  • the first acceleration threshold in this embodiment may be an upper limit value of the acceleration change, that is, T acc — up , for example, may be selected according to the following formula:
  • F in the above formula represents the aperture size of the camera on the mobile terminal, f represents the focal length of the camera, and v f represents the frame rate of the camera.
  • the target tracking of the tracked target object is continued, or the target matching may be performed.
  • the target target tracking algorithm can be used to track the upper target object, the ORB feature information on the tracking will generate more abnormal values at this moment, which is not conducive to target tracking at subsequent times.
  • the target object can be tracked, but the processing of the video frame at the current time (for example, time t k ) needs to be skipped, that is, the processing of the video frame in the moment when the mobile terminal device has a small jitter is ignored.
  • the calculation method of the change value of the acceleration information and the value of the first acceleration threshold in the embodiment are the same as those in the foregoing embodiment, and thus are not described herein again.
  • the second acceleration threshold in this embodiment may be the lower limit of the acceleration change, that is, T acc_down , for example, may be selected according to the following formula:
  • F in the above formula represents the aperture size of the camera on the mobile terminal, f represents the focal length of the camera, and v f represents the frame rate of the camera.
  • the target tracking or the target matching of the tracked target object may further include:
  • the target tracking or the target matching of the tracked target object may further include:
  • the change value of the acceleration information performs target matching on the target object when the number of times the preset condition is satisfied in the statistical time interval is greater than the count threshold.
  • the preset condition in the embodiment may be: the change value of the acceleration information is smaller than the first acceleration threshold and greater than the second acceleration threshold, and the number of times N count is increased by 1 each time the change value of the acceleration information satisfies a preset condition;
  • the calculation method of the change value of the acceleration information, and the values of the first acceleration threshold and the second acceleration threshold are the same as those in the above embodiment, and therefore will not be described herein.
  • the value of the statistical time interval t and the count threshold value T acc_up in the present embodiment is related to the performance index of the selected target tracking algorithm, and the pyramid stream stream tracking algorithm in this embodiment is taken as an example to illustrate the statistical time interval t.
  • the value can be:
  • v f represents the frame rate of the camera
  • f s represents the frequency of use of the sensor
  • the values of the first acceleration threshold and the second acceleration threshold in the foregoing embodiments of the present application are all related to the performance index of the selected target tracking algorithm, and the values of the calculation thresholds in the embodiments of the present application are
  • the pyramid streamer tracking algorithm is taken as an example for illustration.
  • the change value of the acceleration information may be equal to the first acceleration threshold.
  • the case of “equal to” may be processed according to the “greater than the first acceleration threshold”, or may be “less than the first acceleration threshold”.
  • the change value of the acceleration information may also be equal to the second acceleration threshold.
  • the case of "equal to” may be processed according to the case of "greater than the second acceleration threshold", or may be “less than the second acceleration”.
  • S132, S133, S134, and S135 in the foregoing embodiment are optional execution manners, which are corresponding correct processing manners according to different situations of the change value of the acceleration information; The operations are selectively performed, and the results are based on the results of the target matching. The specific way of following up.
  • the direction information acquired by the S110 in the embodiment may include direction information that is rotated along three axes of the coordinate system, where the direction information includes first direction information, second direction information, and third direction information, where One of the first direction information and the second direction information is direction information rotated along the X axis, the other is direction information rotated along the Y axis, and the third direction information is direction information rotated along the Z axis, as shown in FIG.
  • FIG. 6 A flowchart of still another mobile terminal target tracking method provided by the embodiment of the present invention, FIG. 6 is a further description based on the foregoing embodiment shown in FIG. 3, and FIG. 6 only shows the embodiment shown in FIG.
  • the specific steps of S131 to S135 are not shown, and the initial ORB feature information of the target object is acquired in S111, and the initial direction information of the target object is acquired, and the specific manner of obtaining the initial direction information and the foregoing implementation are also implemented.
  • the method for obtaining the initial ORB feature information is the same, and the S120 includes: S140, and continues to perform the target on the tracked target object according to the difference of the direction information of the mobile terminal. Or by tracking the target matching; wherein, S140 may comprise:
  • the initial direction information acquired in this embodiment is, for example, with among them, Indicates the angle at which the mobile device rotates around the X axis. Indicates the angle at which the mobile device rotates around the Y axis.
  • the angle indicating the rotation of the mobile device about the Z axis; the first direction information in this embodiment is, for example, direction information rotated along the X axis, and the difference of the first direction information is:
  • d p represents the angle at which the mobile terminal rotates along the lateral axis (ie, the Y axis) at the current time (eg, time t k )
  • d p represents the angle at which the mobile terminal rotates along the lateral axis (ie, the Y axis) at the current time (eg, time t k )
  • d p represents the angle at which the mobile terminal rotates along the lateral axis (ie, the Y axis) at the current time (eg, time t
  • S142 Perform target matching on the target object when the difference of the first direction information is greater than the first direction threshold.
  • FIG. 1 A schematic diagram of a change in direction of a mobile terminal target tracking method provided by an embodiment.
  • the processing manner after the target matching is the same as the processing manner of S130 to S140 in the embodiment shown in FIG. 2, and therefore no further details are provided herein.
  • the difference of the time direction information is smaller than the first direction threshold and greater than the second direction threshold, it indicates that the mobile terminal device has a large but tolerable rotation angle along the X axis, and therefore, the difference of the second direction information can be continued.
  • the value performs subsequent processing.
  • the first direction threshold in this embodiment may be an upper limit value of the direction change, that is, Torien_x1 , and the value may be:
  • F represents the aperture size of the camera on the mobile terminal.
  • This embodiment may further include after S141:
  • the second direction threshold in this embodiment may be a lower limit value of the direction change, that is, Torien_x2 , and the value may be:
  • F represents the aperture size of the camera of the mobile terminal.
  • the initial direction information obtained in this embodiment is also with
  • the second direction information in this embodiment is, for example, direction information rotated along the Y axis, and the difference of the second direction information is:
  • d r represents the angle at which the mobile terminal rotates along the longitudinal axis (ie, the Y axis) at the current time (eg, time t k ), Indicates the initial rotation angle information along the longitudinal axis each time the mobile terminal starts performing target tracking.
  • S142, S143, and S144 in this embodiment are selectively executed, and are executed according to the difference value of the first direction information calculated in S141. And after the step S144, the performing the subsequent processing according to the difference of the second direction information may include:
  • FIG. 8 Another schematic diagram of direction change in the mobile terminal target tracking method provided by the embodiment.
  • the processing manner after performing the target matching is the same as the processing manner of S130 to S140 in the embodiment shown in FIG. 2, and therefore no further details are provided herein.
  • the mobile terminal device If the difference of the time direction information is smaller than the third direction threshold and greater than the fourth direction threshold, the mobile terminal device has a large but tolerable rotation angle along the Y axis, and therefore, the difference of the third direction information can be continued. The value performs subsequent processing.
  • the third direction threshold in this embodiment may be an upper limit value of the direction change, that is, Torien_y1 , and the value may be:
  • F represents the aperture size of the camera on the mobile terminal.
  • This embodiment may further include after S144:
  • the target tracking continues to be performed on the tracked target object.
  • the mobile terminal device normally performs target tracking, that is, the target tracking of the target object can be continued.
  • the fourth direction threshold in this embodiment may be a lower limit value of the direction change, that is, Torien_y2 , and the value may be:
  • F represents the aperture size of the camera of the mobile terminal.
  • the difference of the third direction information is calculated according to the current third direction information of the mobile terminal and the initial direction information.
  • the initial direction information obtained in this embodiment is also with
  • the third direction information in this embodiment is direction information rotated along the Z axis, and the difference of the third direction information may be: Where d a represents the angle at which the mobile terminal rotates along the central axis (ie, the Z axis) at the current time (eg, time t k ), Indicates the initial rotation angle information along the central axis each time the mobile terminal starts to perform target tracking.
  • S145, S146, and S147 in this embodiment are selectively executed. According to the difference value of the second direction information calculated in S144, the difference is performed. And after the step S147, the performing the subsequent processing according to the difference of the third direction information may include:
  • the current ORB feature information is calculated according to the difference between the first direction information, the difference of the second direction information, and the difference of the third direction information.
  • the difference of each direction information may also be equal to the first direction threshold, the second direction threshold, the third direction threshold, the fourth direction threshold, or the rotation angle threshold; and the “equal to” condition may be According to the case of "greater than the corresponding threshold", it can also be handled according to the case of "less than the corresponding threshold”.
  • S148 and S149 in this embodiment are selectively executed, and are executed according to the difference value of the third direction information calculated in S147. And after the S149, the performing the subsequent processing according to the calculation result of the current ORB feature information may include:
  • the ability of the target tracking algorithm to resist rotation is limited.
  • the difference of the third direction information is greater than the maximum value of the rotation angle that the target tracking algorithm can tolerate (ie, the rotation angle threshold)
  • the difference d ox of the first direction information calculated in the above S141, S144, and S147
  • the difference d oy of the second direction information and the difference d oz of the third direction information obtain the rotation matrix R, and the expression of R is as follows:
  • the value of the rotation angle threshold Torien_z is related to the anti-rotation capability of the selected target tracking algorithm, and the pyramid streamer tracking algorithm in this embodiment is taken as an example to illustrate the rotation angle threshold Torien_z .
  • the value is usually between
  • the processing manner of the target object may be determined according to the difference of the direction information rotated along the X axis, or may be determined according to the difference of the direction information rotated along the Y axis.
  • the processing method of the target object finally determines the processing method of the target object according to the difference of the direction information of the rotation along the Z axis, and is a corresponding correct processing manner according to the difference of the direction information.
  • the execution sequence of S130 and S140 is not limited in the embodiment shown in FIG. 6, that is, the execution order of processing is not limited according to the different conditions of the change value of the acceleration information, and the processing is performed according to the difference of the direction information. It may be executed sequentially in a specific order, or may be performed in parallel, and the embodiment shown in FIG. 6 is shown by taking S130 before S140 as an example.
  • FIG. 9 is a flowchart of still another method for tracking a target of a mobile terminal according to an embodiment of the present invention.
  • the target tracking is continued on the tracked target object, include:
  • the performing the subsequent processing according to the calculated correct rate of the current target tracking may include:
  • S152 Perform target matching on the target object when the correct rate is less than the target threshold.
  • the correct rate of performing the target tracking at a certain time is less than the target threshold, it indicates that there is a problem in performing the target tracking, that is, the target object is lost. Therefore, in order to ensure the accuracy of target tracking, target matching needs to be performed on the target object.
  • D in the above formula is based on the distance metric function ORB specific design feature information, K i is the i-th feature information is tracked ORB, T r selected according to a specific experiment D metric function.
  • S151 and S152 in this embodiment are selectively executed, and are performed according to the correct rate of current target tracking calculated in S150. And after the embodiment S152, the embodiment may further include:
  • the processing manner after performing the target matching is the same as the processing manner of S130 to S140 in the embodiment shown in FIG. 2, and therefore no further details are provided herein.
  • the embodiment shown in Fig. 9 is shown by way of example on the basis of the example shown in Fig. 1.
  • the correct rate in the embodiment may also be equal to the target threshold, and the case of “equal to” may be processed according to the “greater than the target threshold” or may be processed according to the “less than the target threshold”.
  • FIG. 10 it is a flowchart of a method for tracking a target of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal that performs the method provided in this embodiment is configured with an acceleration sensor, a direction sensor, and a camera.
  • the method in this embodiment is shown in FIG. Can include:
  • the camera in this embodiment is used in the target tracking scene.
  • the current target object is acquired through the scene of the camera.
  • the ORB feature information can match the target object corresponding to the initial ORB feature information through the scene of the camera when performing target matching.
  • Thread S202 create two child threads Thread I and Thread II.
  • the sub-thread Thread I in this embodiment is used for target tracking, and the sub-thread Thread II is used for target matching and tracking recovery.
  • the acceleration information in this embodiment may include acceleration information of three axes of the coordinate system, and the change value of the acceleration information may also be calculated by the acceleration information of the three axes; the direction information may also include three axes along the coordinate system.
  • the direction information of the rotation that is, the first direction information, the second direction information, and the third direction information.
  • S205 Perform target tracking on the target object by using the sub-thread Thread I.
  • the target object can be tracked according to the initial ORB feature information.
  • a pyramid optical flow tracking algorithm is used.
  • S206 Continue to perform target tracking or target matching on the tracked target object according to the change value of the acceleration information of the mobile terminal.
  • S206 in this embodiment may include:
  • S2061 Calculate and determine the magnitude of the change value of the acceleration information.
  • S2062 is performed; when the change value of the acceleration information is smaller than the first acceleration threshold and greater than the second acceleration threshold, S2067 is performed; when the change value of the acceleration information is satisfied within the statistical time interval
  • the number of preset conditions is greater than the count threshold, and S2062 is also performed; when the change value of the acceleration information is less than the second acceleration threshold, S2068 is executed.
  • S2063 Determine whether the target object is matched. If it matches the target object, S2064 is executed; if the target object is not matched, S2066 is executed.
  • the S2062 is also executed, the target tracking of the sub-thread Thread I is suspended, and the sub-thread Thread II is enabled to perform target matching on the target object.
  • the description explains that the mobile terminal has a relatively frequent and continuous jitter in the time t, or the process of continuously skipping the adjacent several video frames, and also sees the change described with reference to FIG. 5, the tracking algorithm.
  • the ORB feature information of the tracked target will continue to decrease, resulting in tracking errors or loss. Therefore, a target match needs to be made to the target object.
  • S2063 to S2066 can also be executed after S2062; that is, S2063 determines whether the target object is matched, and if it matches the target object, S2064 to S2065 are executed; if the target object is not matched, S2066 is executed.
  • S207 Determine whether the target object is tracked in the above S206. If it is tracked, S208 is executed, and if it is not tracked, S210 is executed.
  • S208 Continue to perform target tracking or target matching on the tracked target object according to the difference of the direction information of the mobile terminal.
  • S208 in this embodiment may include:
  • S2081 Calculate and determine the magnitude of the difference of the first direction information.
  • the difference of the first direction information in this embodiment is also, for example, the difference of the direction information rotated along the X axis.
  • S2082 is performed; when the first direction information is If the difference is smaller than the first direction threshold and greater than the second direction threshold, then S2083 is performed; when the difference of the first direction information is smaller than the second direction threshold, S2086 is performed.
  • the target object needs to be tracked or matched according to the difference of the second direction information.
  • the method may further include:
  • the difference of the second direction information in this embodiment is also, for example, the difference of the direction information rotated along the Y axis.
  • S2082 is performed; when the second direction information is If the difference is smaller than the third direction threshold and greater than the fourth direction threshold, then S2084 is performed; when the difference of the second direction information is smaller than the fourth direction threshold, S2086 is performed.
  • the result of the determination in S2083 is that the difference between the second direction information is smaller than the third direction threshold and greater than the fourth direction threshold, and the target object needs to be tracked or matched according to the difference of the third direction information.
  • the method may further include:
  • S2084 Calculate and determine the magnitude of the difference of the third direction information.
  • the difference of the third direction information in this embodiment is also, for example, the difference of the direction information rotated along the Z axis.
  • S2085 is performed; when the difference of the third direction information If the value is less than the rotation angle threshold, S2086 is executed.
  • S2085 Calculate current ORB feature information of the target object, and continue target tracking by the sub-thread Thread I. At this time, the target object can be tracked by the calculated current ORB feature information.
  • S209. Determine whether the target object is tracked in S208. If it is tracked, it returns to execution S205. If not, the process proceeds to S210.
  • the embodiments of the present invention address the shortcomings of the prior art and the performance requirements of the mobile terminal for target tracking in a commercial application, and propose a mobile terminal tracking method based on sensor information fusion.
  • the acceleration sensor and the direction sensor are fully utilized, and the acceleration information and the direction information of the mobile terminal are acquired in real time.
  • create two sub-threads one of which is used for target tracking, select pyramid optical flow tracking algorithm, the tracking algorithm has good real-time and stability; another thread is used for target matching positioning, when the tracking fails, it is called
  • the thread is enabled to achieve the purpose of correcting and restoring the target tracking, so that the embodiment can have better reliability and robustness.
  • the acceleration sensor information and the direction sensor information are used to timely and reasonably schedule the target tracking thread and the matching correction thread, so that the embodiment can satisfy the performance requirements of real-time, reliability and robustness at the same time. Its advantages are mainly reflected in the following aspects:
  • the acceleration sensor is used to sense whether the mobile terminal has large jitter. If a large jitter occurs, the target tracking is adjusted in time, thereby achieving strong stability and reliability performance of the algorithm.
  • the direction sensor is used to sense whether the mobile terminal has undergone a large rotation around the central axis, so as to timely call the matching correction thread to achieve strong anti-rotation.
  • the direction sensor is used to sense whether the mobile terminal rotates around the longitudinal or lateral axis, causing the target to move out of the field of view of the camera.
  • the matching correction thread is called in time to re-match the positioning target to restore the target tracking, thereby obtaining strong robust performance.
  • FIG. 11 is a schematic structural diagram of a target tracking device of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal target tracking device provided in this embodiment is applicable to the case where the mobile terminal performs target tracking, and the mobile terminal target tracking device is implemented by combining hardware and software, and the device may be integrated in the processor of the mobile terminal for The processor calls are used.
  • the mobile terminal target tracking apparatus of this embodiment includes: a connected acquisition module 11 and a target processing module 12.
  • the acquiring module 11 is configured to acquire acceleration information and direction information of the mobile terminal in real time through the acceleration sensor and the direction sensor of the mobile terminal.
  • the mobile terminal target tracking device provided by the embodiment of the present invention is a device that is disposed in the mobile terminal for performing target tracking.
  • the mobile terminal in this embodiment is generally configured with an acceleration sensor and a direction sensor.
  • the acceleration information and the direction information of the mobile terminal can be obtained in real time by using the two sensors.
  • the present embodiment is based on the acceleration information and the direction information acquired in real time, and serves as a basis for realizing the requirements of the performance index in the target tracking algorithm.
  • the embodiment of the present application is based on the mobility characteristics of the mobile terminal, and fully utilizes the accelerator sensor and the direction sensor configured in the mobile terminal to obtain data information that can reflect the mobility of the mobile terminal, so as to subsequently perform target tracking according to the data information. Adjust the way you perform tracking in a timely manner.
  • the target processing module 12 is configured to continue target tracking or target matching to the tracked target object according to the difference between the change value of the acceleration information of the mobile terminal and the direction information.
  • the target object to be tracked may be subjected to target tracking or target matching by using the difference value of the acquired acceleration information and the difference of the direction information.
  • the manner of performing target tracking or target matching by using the difference of the direction information is similar to the manner of performing target tracking or target matching by using the change value of the acceleration information, and the target tracking is continued when the tracking is successful.
  • Target matching in case of tracking problems to regain the tracked target object.
  • the obtaining module 11 is further configured to obtain the initial ORB feature information of the target object before the target processing module 12 continues to perform target tracking or target matching on the tracked target object; correspondingly, the target The processing module 12 is further configured to perform target tracking on the target object according to the initial ORB feature information acquired by the obtaining module 11.
  • the mobile terminal in this embodiment usually has a camera, and needs to open the camera before performing target tracking, determine a target object in the tracking scene image of the camera, and obtain initial ORB feature information of the target object, so that the initial ORB feature can be obtained according to the obtained The target object is tracked in the message.
  • the method for obtaining the initial ORB feature information in this embodiment may be, for example, FAST, SIFT, SURF, ORB, BRISK, MSER, or GFTT, etc.
  • the target tracking algorithm used in the embodiment of the present application is similar to the related art.
  • it can be a pyramid light flow tracking algorithm (pyramid Lucas-Kanade, referred to as: PyrLK), OAB, L1APG or CT, etc.
  • PyrLK pyramid light flow tracking algorithm
  • OAB OAB
  • L1APG L1APG
  • CT etc.
  • the following embodiments are described by taking a pyramid optical flow tracking algorithm as an example.
  • the target tracking device of the mobile terminal provided by the embodiment of the present invention is used to perform the target tracking method of the mobile terminal provided by the embodiment shown in FIG. 1 , and has a corresponding function module, and the implementation principle and the technical effect thereof are similar, and details are not described herein again.
  • the target processing module 12 is configured to be capable of tracking the tracking value according to the difference between the change value of the acceleration information of the mobile terminal and the direction information, respectively.
  • the target object performs target matching: target matching is performed on the target object according to the difference value of the acceleration information of the mobile terminal or the difference of the direction information, and the initial ORB feature information acquired by the obtaining module 11; the target processing module 12 is further configured to be capable of After the target matching is performed on the tracked target object, if the target object is matched, the ORB feature information of the target object is updated, and the target object is tracked again according to the updated ORB feature information; if the target object is not matched, the initial target is continued.
  • the ORB feature information performs target matching on the target object.
  • the reference information for performing target matching in the following embodiments of the present application is the initial ORB feature information obtained for the first time. If the target object is not matched, the matching is continued according to the initial ORB feature information; The specific way of performing target matching is not specified.
  • the target tracking device of the mobile terminal provided by the embodiment of the present invention is used to perform the target tracking method of the mobile terminal provided by the embodiment shown in FIG. 2, and has a corresponding function module, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • the acceleration information acquired by the acquiring module 11 may include three axial acceleration information of the coordinate system, as shown in FIG. 12, which is another mobile terminal target tracking device provided by the embodiment of the present invention. Schematic.
  • the target processing module 12 in this embodiment is configured to be capable of performing target tracking or target matching on the tracked target object according to the change value of the acceleration information of the mobile terminal.
  • the target processing module 12 includes: a target matching unit 13 connected to the two-phase, a target tracking unit 14, and a computing unit 15.
  • the target matching unit 13 and the target tracking unit 14 in this embodiment And the calculation unit 15 is connected to the acquisition module 11 respectively; wherein the calculation unit 15 is configured to calculate the change value of the acceleration information by the three axial acceleration information acquired by the acquisition module 11; the target matching unit 13 is configured to be capable of When the change value of the acceleration information calculated by the calculation unit 15 is greater than the first acceleration threshold, target matching is performed on the target object; and the target tracking unit 14 is configured to be able to re-target the target object when the target matching unit 13 matches the target object.
  • Target tracking; accordingly, the target matching unit 13 is also configured to be able to When assigned to a target object, continue to match the target audience.
  • the target processing module 12 is configured to be capable of performing target tracking or target matching on the tracked target object according to the change value of the acceleration information of the mobile terminal.
  • the tracking unit 14 is further configured to continue target tracking on the tracked target object when the change value of the acceleration information calculated by the calculation unit 15 is smaller than the second acceleration threshold; the target tracking unit 14 is further configured to be in the calculation unit When the calculated change value of the acceleration information is smaller than the first acceleration threshold and greater than the second acceleration threshold, the target tracking is continued for the tracked target object, and the video frame of the current time is not processed.
  • FIG Screen frame gradation values vary widely, although a target tracking algorithm can track the target object, but the information on the ORB tracking feature at this time produces more Multiple outliers are not conducive to target tracking at subsequent times. At this time, the target object can be tracked, but the processing of the current time frame frame needs to be skipped.
  • the target processing module 12 is configured to continue target tracking or target matching on the tracked target object according to the change value of the acceleration information of the mobile terminal; the target matching unit 13 is further configured. If the number of times the change value of the acceleration information calculated by the calculation unit 15 satisfies the preset condition in the statistical time interval is greater than the count threshold, the target object is matched, wherein the preset condition is: less than the first acceleration threshold and More than the second acceleration threshold; the target tracking unit 14 is further configured to be able to perform target tracking on the target object when the target matching unit 13 matches the target object; the target matching unit 13 is further configured to be able to match the target object when not , continue to target matching the target object.
  • the ORB feature information of the target tracked by the tracking algorithm may continue to decrease, thereby causing tracking errors or loss. Therefore, in order to ensure the accuracy of target tracking, target matching needs to be performed on the target object.
  • the target tracking device of the mobile terminal provided by the embodiment of the present invention is used to execute the embodiment shown in FIG.
  • the target tracking method of the provided mobile terminal has a corresponding function module, and its implementation principle and technical effect are similar, and will not be described here.
  • the direction information acquired by the acquiring module 11 in this embodiment may include direction information rotated along three axes of the coordinate system, where the direction information includes first direction information, second direction information, and third direction information.
  • the direction information includes first direction information, second direction information, and third direction information.
  • one of the first direction information and the second direction information is direction information rotated along the X axis
  • the other is direction information rotated along the Y axis
  • the third direction information is direction information rotated along the Z axis, as shown in FIG. 13
  • FIG. 13 A schematic diagram of a structure of a target tracking device for a mobile terminal according to an embodiment of the present invention. On the basis of the foregoing embodiment of FIG.
  • the acquiring module 11 obtains initial ORB feature information of a target object, and may also Obtaining the initial direction information of the target object, in this embodiment, the target processing module 12 is configured to continue to perform target tracking or target matching on the tracked target object according to the difference of the direction information of the mobile terminal; the target processing module 12 The calculation unit 15 and the target processing unit 16 are connected, and the calculation unit 15 in the embodiment is connected to the acquisition module 11.
  • the calculation unit 15 is configured to be able to calculate the difference of the first direction information according to the current first direction information and the initial direction information of the mobile terminal; correspondingly, the target processing unit 16 is configured to be calculated by the calculation unit 15 When the difference between the one direction information is greater than the first direction threshold, the target object is matched with the target object; and the target processing unit 16 is further configured to be able to calculate that the difference between the first direction information calculated by the calculating unit 15 is smaller than the second direction threshold.
  • the calculating unit 15 and the target processing unit 16 are further configured to be able to calculate that the difference of the first direction information calculated by the calculating unit 15 is smaller than the first direction threshold and greater than the second direction threshold And performing target tracking or target matching on the target object according to the difference of the second direction information.
  • the computing unit 15 and the target processing unit 16 are configured to be capable of target tracking or target matching of the target object according to the difference of the second direction information in the following manner: the computing unit 15 is further configured to be capable of moving according to the The current second direction information of the terminal and the initial direction information are used to calculate a difference between the second direction information; the target processing unit 16 is further configured to be able to determine that the difference between the second direction information calculated by the calculating unit 15 is greater than the third direction threshold.
  • the target processing unit 16 is further configured to continue target tracking on the tracked target object when the difference of the second direction information calculated by the calculating unit 15 is smaller than the fourth direction threshold; 15 and target processing unit 16, also configured as a second that can be calculated at computing unit 15 When the difference of the direction information is smaller than the third direction threshold and greater than the fourth direction threshold, the target object is subjected to target tracking or target matching according to the difference of the third direction information.
  • the computing unit 15 and the target processing unit 16 are configured to be capable of target tracking or target matching of the target object according to the difference of the third direction information in the following manner: the computing unit 15 is further configured to be capable of moving according to the The current third direction information of the terminal and the initial direction information calculate a difference value of the third direction information; the target processing unit 16 is further configured to be able to calculate, when the difference of the third direction information calculated by the calculating unit 15 is smaller than the rotation angle threshold, The tracked target object continues to perform target tracking; the calculating unit 15 is further configured to be capable of, according to the difference between the first direction information and the difference of the second direction information, when the difference of the third direction information is greater than the rotation angle threshold The difference between the three directions information is used to calculate the current ORB feature information; the target processing unit 16 is further configured to be able to perform target tracking on the target object according to the current ORB feature information when the calculating unit 15 calculates the current ORB feature information, in the calculating unit 15 When the current ORB feature information is not calculated
  • the target tracking device of the mobile terminal provided by the embodiment of the present invention is configured to perform the target tracking method of the mobile terminal provided by the embodiment shown in FIG. 6 and has a corresponding function module, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 14 a schematic structural diagram of another mobile terminal target tracking apparatus according to an embodiment of the present invention is provided.
  • the mobile terminal target tracking device in this embodiment further includes: a calculation module 17 connected to the target processing module 12, configured to be able to continue the target tracking of the tracked target object after the target processing module 12 continues, according to The current ORB feature information calculates the correct rate of the current target tracking; and the target processing module 12 in this embodiment also includes: the connected target matching unit 13 and the target tracking unit 14, the target matching unit 13 and the target in this embodiment.
  • the tracking unit 14 is respectively connected to the acquisition module 11; wherein the target tracking unit 14 is configured to continue target tracking on the tracked target object when the correct rate calculated by the calculation module 17 is greater than the target threshold; the target matching unit 13 Configuring to target the target object when the correct rate calculated by the calculation module 17 is less than the target threshold Further, the target tracking unit 14 is configured to be capable of performing target tracking on the target object when the target matching unit 13 matches the target object; the target matching unit 13 is further configured to continue to match the target object when not matched Target object Line target matching.
  • the obtaining module 11 and the target processing module 12 in the embodiment shown in FIG. 11 to FIG. 14 can be implemented by a processor of the terminal device, wherein each unit and sub-unit can also be processed by the processor of the terminal device.
  • the processor may be, for example, a central processing unit (CPU), or an application specific integrated circuit (ASIC), or an implementation of the embodiment of the present invention. Or multiple integrated circuits.
  • FIG. 15 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal provided in this embodiment is applicable to a case where the mobile terminal performs target tracking, where the mobile terminal is configured with a camera 31, an acceleration sensor 32, a direction sensor 33, and a mobile terminal target tracking device 34, wherein the mobile terminal target tracking device can
  • the mobile terminal target tracking device provided in any of the above-described embodiments shown in FIGS. 11 to 14, and the mobile terminal target tracking device 34 is connected to the camera 31, the acceleration sensor 32, and the direction sensor 33, respectively.
  • the manner in which each entity device in the mobile terminal in this embodiment performs target tracking is the same as the manner in which the corresponding entity device performs target tracking in the embodiment shown in FIG. 11 to FIG. 14 , and is also used to perform the operations shown in FIG. 1 to FIG. 10 .
  • the mobile terminal target tracking method provided by any embodiment is provided with a corresponding physical device, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, where the computer executable instructions are executed by a processor to implement the mobile terminal target tracking method.
  • a program to instruct related hardware e.g., a processor
  • a computer readable storage medium such as a read only memory, disk or optical disk. Wait.
  • all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
  • Embodiments of the invention are not limited to any specific form of combination of hardware and software.
  • the embodiment of the present invention provides a mobile terminal target tracking processing method, apparatus, and mobile terminal.
  • the acceleration sensor and the direction sensor of the mobile terminal By using the acceleration sensor and the direction sensor of the mobile terminal, timely adjustment of the tracking object can be realized, thereby ensuring the accuracy of the tracking object, that is, the present invention.
  • the embodiment solves the problem of the target tracking method of the mobile terminal in the related art. Since the existing target tracking algorithm is directly applied to the mobile terminal, the performance of the target tracking is poor in real-time performance, reliability, and robustness.

Abstract

The disclosure discloses a mobile terminal target tracking method, a device, and a mobile terminal. In one embodiment of the invention, the mobile terminal target tracking method comprises: acquiring, by an acceleration sensor and an orientation sensor of a mobile terminal, in real time, acceleration information and orientation information of the mobile terminal; and respectively continuing tracking, according to a change of the acceleration information of the mobile terminal, a target object to be tracked, and matching, according to a difference between the orientation information, the target object.

Description

一种移动终端目标跟踪方法、装置和移动终端Mobile terminal target tracking method, device and mobile terminal 技术领域Technical field
本发明实施例涉及但不限于计算机和计算机视觉技术领域,尤指一种移动终端目标跟踪方法、装置和移动终端。Embodiments of the present invention relate to, but are not limited to, the field of computer and computer vision technologies, and in particular, to a mobile terminal target tracking method, apparatus, and mobile terminal.
背景技术Background technique
随着智能移动终端的高速普及和发展,用户对智能移动终端的依赖性变的越来越大。智能移动终端的应用受到人们的广泛关注与重视,尤其是虚拟现实和增强现实等视觉感知方面的应用增长尤为迅速,具有强大的商业市场潜力,目标跟踪技术作为其核心技术之一受到业界的普遍关注。With the rapid spread and development of smart mobile terminals, users' dependence on smart mobile terminals has become more and more important. The application of intelligent mobile terminals has received extensive attention and attention. Especially the applications of visual perception such as virtual reality and augmented reality have grown rapidly, with strong commercial market potential. Target tracking technology is widely used in the industry as one of its core technologies. attention.
目前已经开始研究一些针对智能移动终端的目标跟踪算法,但是这些研究基本上都是将现有的目标跟踪算法直接移植到智能移动终端上,虽然近几十年来智能移动终端的硬件性能一直在不断地发展提高,但和传统的桌面设备相比,在计算能力等方面仍有较大的差距;并且现有的目标跟踪算法通常基于视频图像内容进行分析,可以在桌面设备这类计算能力较强的终端设备上达到较好的目标跟踪效果。然而,由于智能移动终端设备的计算能力相对于桌面设备往往较弱,将现有的目标跟踪算法直接移植到智能移动终端上的处理方式,对于移动终端执行目标跟踪的实时性、可靠性和鲁棒性等综合性能无法达到在桌面设备上的目标跟踪效果。At present, some target tracking algorithms for intelligent mobile terminals have been studied, but these studies basically transplant existing target tracking algorithms directly to smart mobile terminals, although the hardware performance of smart mobile terminals has been continuously in recent decades. The development of the land is improved, but compared with the traditional desktop equipment, there is still a big gap in computing power; and the existing target tracking algorithm is usually based on video image content analysis, which can be more powerful in desktop computing. Achieve better target tracking on the terminal device. However, since the computing power of the smart mobile terminal device is often weak relative to the desktop device, the existing target tracking algorithm is directly transplanted to the processing method of the smart mobile terminal, and the real-time performance, reliability, and Lu of the target tracking are performed for the mobile terminal. Comprehensive performance such as stickiness cannot achieve the target tracking effect on desktop devices.
综上所述,现有技术中移动终端的目标跟踪方法,由于将现有的目标跟踪算法直接应用到移动终端上,而导致目标跟踪的实时性、可靠性和鲁棒性等性能较差的问题。In summary, the target tracking method of the mobile terminal in the prior art directly applies the existing target tracking algorithm to the mobile terminal, resulting in poor performance such as real-time performance, reliability, and robustness of the target tracking. .
发明概述Summary of invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供了一种移动终端目标跟踪方法、装置和移动终端,以 解决相关技术中移动终端的目标跟踪方法,由于将现有的目标跟踪算法直接应用到移动终端上,而导致目标跟踪的实时性、可靠性和鲁棒性等性能较差的问题。Embodiments of the present invention provide a mobile terminal target tracking method, apparatus, and mobile terminal, The problem of the target tracking method of the mobile terminal in the related art is solved, and the existing target tracking algorithm is directly applied to the mobile terminal, which leads to poor performance such as real-time performance, reliability and robustness of the target tracking.
第一方面,本发明实施例提供一种移动终端目标跟踪方法,包括:In a first aspect, an embodiment of the present invention provides a mobile terminal target tracking method, including:
通过移动终端的加速度传感器和方向传感器实时获取所述移动终端的加速度信息和方向信息;Obtaining acceleration information and direction information of the mobile terminal in real time by using an acceleration sensor and a direction sensor of the mobile terminal;
分别根据所述移动终端的加速度信息的变化值和方向信息的差值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配。And performing target tracking or target matching on the tracked target object according to the difference between the change value of the acceleration information of the mobile terminal and the direction information, respectively.
在第一方面的第一种可能的实现方式中,所述对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配之前,上述移动终端目标跟踪方法还包括:In a first possible implementation manner of the first aspect, before the performing the target tracking or the target matching on the tracked target object, the foregoing mobile terminal target tracking method further includes:
获取所述目标对象的初始ORB特征信息;Obtaining initial ORB feature information of the target object;
根据所获取的初始ORB特征信息对所述目标对象进行目标跟踪。Target tracking is performed on the target object according to the obtained initial ORB feature information.
根据第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述分别根据所述移动终端的加速度信息的变化值和方向信息的差值,对所跟踪的目标对象进行目标匹配,包括:According to a first possible implementation manner of the first aspect, in a second possible implementation manner, the tracking target object is respectively determined according to a difference between a change value of the acceleration information of the mobile terminal and a direction information Target matching, including:
根据所述移动终端的加速度信息的变化值或方向信息的差值,以及所述初始ORB特征信息对所述目标对象进行目标匹配;Performing target matching on the target object according to a change value of the acceleration information of the mobile terminal or a difference value of the direction information, and the initial ORB feature information;
所述对所跟踪的目标对象进行目标匹配之后,上述移动终端目标跟踪方法还包括:After the target matching is performed on the tracked target object, the mobile terminal target tracking method further includes:
若匹配到所述目标对象,更新所述目标对象的ORB特征信息,并根据更新的ORB特征信息重新对所述目标对象进行目标跟踪;If the target object is matched, the ORB feature information of the target object is updated, and the target object is re-targeted according to the updated ORB feature information;
若未匹配到所述目标对象,继续根据所述初始ORB特征信息对所述目标对象进行目标匹配。If the target object is not matched, the target matching is continued to be performed according to the initial ORB feature information.
根据第一方面、第一方面的第一种到第二种可能的实现方式中任意一种,在第三种可能的实现方式中,所述加速度信息包括坐标系三个轴向的加速度信息;所述根据所述移动终端的加速度信息的变化值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配,包括: According to the first aspect, any one of the first to the second possible implementation manners of the first aspect, in the third possible implementation manner, the acceleration information includes three axial acceleration information of the coordinate system; And performing, according to the change value of the acceleration information of the mobile terminal, performing target tracking or target matching on the tracked target object, including:
通过所述三个轴向的加速度信息计算得到所述加速度信息的变化值;Calculating a change value of the acceleration information by using the three axial acceleration information;
当所述加速度信息的变化值大于第一加速度阈值时,对所述目标对象进行目标匹配;When the change value of the acceleration information is greater than the first acceleration threshold, performing target matching on the target object;
若匹配到所述目标对象,重新对所述目标对象进行目标跟踪;If the target object is matched, the target object is re-targeted;
若未匹配到所述目标对象,继续对所述目标对象进行目标匹配。If the target object is not matched, the target matching is continued on the target object.
根据第一方面、第一方面的第一种到第二种可能的实现方式中任意一种,在第四种可能的实现方式中,所述加速度信息包括坐标系三个轴向的加速度信息;所述根据所述移动终端的加速度信息的变化值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配,包括:According to the first aspect, any one of the first to the second possible implementation manners of the first aspect, in the fourth possible implementation, the acceleration information includes three axial acceleration information of the coordinate system; And performing, according to the change value of the acceleration information of the mobile terminal, performing target tracking or target matching on the tracked target object, including:
通过所述三个轴向的加速度信息计算得到所述加速度信息的变化值;Calculating a change value of the acceleration information by using the three axial acceleration information;
当所述加速度信息的变化值小于第二加速度阈值时,对所跟踪的目标对象继续进行目标跟踪;When the change value of the acceleration information is less than the second acceleration threshold, the target tracking is continued on the tracked target object;
当所述加速度信息的变化值小于第一加速度阈值且大于所述第二加速度阈值时,对所跟踪的目标对象继续进行目标跟踪,并且不处理当前时刻的视屏帧。When the change value of the acceleration information is smaller than the first acceleration threshold and greater than the second acceleration threshold, target tracking is continued on the tracked target object, and the video frame of the current time is not processed.
根据第一方面、第一方面的第一种到第二种可能的实现方式中任意一种,在第五种可能的实现方式中,所述加速度信息包括坐标系三个轴向的加速度信息;所述根据加速度信息的变化值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配,包括:According to the first aspect, any one of the first to the second possible implementation manners of the first aspect, in the fifth possible implementation, the acceleration information includes three axial acceleration information of the coordinate system; Performing target tracking or performing target matching on the tracked target object according to the change value of the acceleration information, including:
通过所述三个轴向的加速度信息计算得到所述加速度信息的变化值;Calculating a change value of the acceleration information by using the three axial acceleration information;
所述加速度信息的变化值在统计时间间隔内满足预置条件的次数大于计数阈值时,对所述目标对象进行目标匹配,其中,所述预置条件为:小于第一加速度阈值且大于第二加速度阈值;When the change value of the acceleration information is greater than the count threshold in the statistical time interval, the target object is matched to the target object, wherein the preset condition is: less than the first acceleration threshold and greater than the second Acceleration threshold
若匹配到所述目标对象,重新对所述目标对象进行目标跟踪;If the target object is matched, the target object is re-targeted;
若未匹配到所述目标对象,继续对所述目标对象进行目标匹配。If the target object is not matched, the target matching is continued on the target object.
根据第一方面、第一方面的第一种到第二种可能的实现方式中任意一种,在第六种可能的实现方式中,所述方向信息包括沿坐标系三个轴旋转的方向 信息,所述方向信息包括第一方向信息、第二方向信息和第三方向信息,其中,所述第一方向信息和所述第二方向信息中的一个为沿X轴旋转的方向信息,另一个为沿Y轴旋转的方向信息,所述第三方向信息为沿Z轴旋转的方向信息;According to the first aspect, any one of the first to the second possible implementation manners of the first aspect, in the sixth possible implementation, the direction information includes a direction of rotating along three axes of the coordinate system Information, the direction information includes first direction information, second direction information, and third direction information, wherein one of the first direction information and the second direction information is direction information rotated along an X axis, and One is direction information rotated along the Y axis, and the third direction information is direction information rotated along the Z axis;
所述根据所述移动终端的方向信息的差值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配之前,还包括:And before the target tracking of the tracked target object or the target matching is performed according to the difference of the direction information of the mobile terminal, the method further includes:
获取所述目标对象的初始方向信息;Obtaining initial direction information of the target object;
所述根据所述方向信息的差值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配,包括:Performing target tracking or performing target matching on the tracked target object according to the difference of the direction information, including:
根据所述移动终端的当前第一方向信息和所述初始方向信息计算第一方向信息的差值;Calculating a difference value of the first direction information according to the current first direction information of the mobile terminal and the initial direction information;
当所述第一方向信息的差值大于第一方向阈值时,对所述目标对象进行目标匹配;And performing target matching on the target object when a difference between the first direction information is greater than a first direction threshold;
当所述第一方向信息的差值小于第二方向阈值时,对所跟踪的目标对象继续进行目标跟踪;When the difference of the first direction information is smaller than the second direction threshold, the target tracking continues to be performed on the tracked target object;
当所述第一方向信息的差值小于所述第一方向阈值且大于所述第二方向阈值时,根据所述第二方向信息的差值对所述目标对象进行目标跟踪或者进行目标匹配。When the difference of the first direction information is smaller than the first direction threshold and greater than the second direction threshold, target tracking or target matching is performed on the target object according to the difference of the second direction information.
根据第一方面的第六种可能的实现方式,在第七种可能的实现方式中,所述根据所述第二方向信息的差值对所述目标对象进行目标跟踪或者进行目标匹配,包括:According to the sixth possible implementation manner of the first aspect, in a seventh possible implementation, the target tracking or target matching of the target object according to the difference of the second direction information includes:
根据所述移动终端的当前第二方向信息和所述初始方向信息计算第二方向信息的差值;Calculating a difference value of the second direction information according to the current second direction information of the mobile terminal and the initial direction information;
当所述第二方向信息的差值大于第三方向阈值时,对所述目标对象进行目标匹配;And performing target matching on the target object when a difference between the second direction information is greater than a third direction threshold;
当所述第二方向信息的差值小于第四方向阈值时,对所跟踪的目标对象继续进行目标跟踪;When the difference of the second direction information is smaller than the fourth direction threshold, the target tracking continues to be performed on the tracked target object;
当所述第二方向信息的差值小于所述第三方向阈值且大于所述第四方向 阈值时,根据所述第三方向信息的差值对所述目标对象进行目标跟踪或者进行目标匹配。When the difference of the second direction information is smaller than the third direction threshold and greater than the fourth direction At the threshold, the target object is subjected to target tracking or target matching according to the difference of the third direction information.
根据第一方面的第七种可能的实现方式,在第八种可能的实现方式中,所述根据所述第三方向信息的差值对所述目标对象进行目标跟踪或者进行目标匹配,包括:According to the seventh possible implementation manner of the first aspect, in the eighth possible implementation, the target tracking or performing target matching on the target object according to the difference of the third direction information includes:
根据所述移动终端的当前第三方向信息和所述初始方向信息计算第三方向信息的差值;Calculating a difference value of the third direction information according to the current third direction information of the mobile terminal and the initial direction information;
当所述第三方向信息的差值小于旋转角度阈值时,对所跟踪的目标对象继续进行目标跟踪;When the difference of the third direction information is less than the rotation angle threshold, the target tracking is continued on the tracked target object;
当所述第三方向信息的差值大于所述旋转角度阈值时,根据所述第一方向信息的差值、所述第二方向信息的差值和所述第三方向信息的差值计算当前ORB特征信息;When the difference of the third direction information is greater than the rotation angle threshold, calculating a current value according to the difference between the first direction information, the difference between the second direction information, and the difference of the third direction information ORB feature information;
若计算出所述当前ORB特征信息,根据所计算的当前ORB特征信息对所述目标对象进行目标跟踪;If the current ORB feature information is calculated, target tracking is performed on the target object according to the calculated current ORB feature information;
若未计算出所述当前ORB特征信息,对所述目标对象进行目标匹配。If the current ORB feature information is not calculated, target matching is performed on the target object.
根据第一方面、第一方面的第一种到第二种可能的实现方式中任意一种,在第九种可能的实现方式中,所述对所跟踪的目标对象继续进行目标跟踪之后,上述移动终端目标跟踪方法还包括:According to the first aspect, any one of the first to the second possible implementation manners of the first aspect, in the ninth possible implementation manner, after the target object that is tracked continues to perform target tracking, the foregoing The mobile terminal target tracking method further includes:
根据当前ORB特征信息计算当前进行目标跟踪的正确率;Calculating the correct rate of current target tracking based on current ORB feature information;
当所述正确率大于所述目标阈值时,对所跟踪的目标对象继续进行目标跟踪;When the correct rate is greater than the target threshold, the target tracking is continued on the tracked target object;
当所述正确率小于目标阈值时,对所述目标对象进行目标匹配;Performing target matching on the target object when the correct rate is less than a target threshold;
若匹配到所述目标对象,重新对所述目标对象进行目标跟踪;If the target object is matched, the target object is re-targeted;
若未匹配到所述目标对象,继续对所述目标对象进行目标匹配。If the target object is not matched, the target matching is continued on the target object.
第二方面,本发明实施例提供一种移动终端目标跟踪处理装置,包括:相连接的获取模块和目标处理模块;In a second aspect, an embodiment of the present invention provides a mobile terminal target tracking processing apparatus, including: a connected acquiring module and a target processing module;
所述获取模块,配置为能够通过移动终端的加速度传感器和方向传感器 实时获取所述移动终端的加速度信息和方向信息;The acquisition module is configured to be capable of passing an acceleration sensor and a direction sensor of the mobile terminal Acquiring acceleration information and direction information of the mobile terminal in real time;
目标处理模块,配置为能够分别根据所述移动终端的加速度信息的变化值和方向信息的差值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配。The target processing module is configured to continue target tracking or target matching to the tracked target object according to the difference between the change value of the acceleration information of the mobile terminal and the direction information.
在第二方面的第一种可能的实现方式中,所述获取模块,还配置为能够在所述目标处理模块对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配之前,获取所述目标对象的初始ORB特征信息;In a first possible implementation manner of the second aspect, the acquiring module is further configured to obtain the target object before the target processing module continues to perform target tracking or target matching on the tracked target object. Initial ORB feature information;
所述目标处理模块,还配置为能够根据所述获取模块获取的初始ORB特征信息对所述目标对象进行目标跟踪。The target processing module is further configured to perform target tracking on the target object according to the initial ORB feature information acquired by the acquiring module.
根据第二方面的第一种可能的实现方式,在第二种可能的实现方式中,所述目标处理模块配置为能够通过以下方式分别根据所述移动终端的加速度信息的变化值和方向信息的差值,对所跟踪的目标对象进行目标匹配:根据所述移动终端的加速度信息的变化值或方向信息的差值,以及所述获取模块获取的初始ORB特征信息对所述目标对象进行目标匹配;According to a first possible implementation manner of the second aspect, in a second possible implementation manner, the target processing module is configured to be capable of being respectively configured according to the change value and the direction information of the acceleration information of the mobile terminal And performing a target matching on the tracked target object: performing target matching on the target object according to a change value of the acceleration information of the mobile terminal or a difference value of the direction information, and an initial ORB feature information acquired by the acquiring module ;
所述目标处理模块,还配置为能够在对所跟踪的目标对象进行目标匹配之后,若匹配到所述目标对象,更新所述目标对象的ORB特征信息,并根据更新的ORB特征信息重新对所述目标对象进行目标跟踪;若未匹配到所述目标对象,继续根据所述初始ORB特征信息对所述目标对象进行目标匹配。The target processing module is further configured to: after matching the target object that is tracked, if the target object is matched, update the ORB feature information of the target object, and re-align the information according to the updated ORB feature information. The target object performs target tracking; if the target object is not matched, the target matching is continued to be performed according to the initial ORB feature information.
根据第二方面、第二方面的第一种到第二种可能的实现方式中任意一种,在第三种可能的实现方式中,所述加速度信息包括坐标系三个轴向的加速度信息;所述目标处理模块包括:两两相连接的计算单元、目标匹配单元和目标跟踪单元;According to the second aspect, any one of the first to the second possible implementation manners of the second aspect, in the third possible implementation manner, the acceleration information includes three axial acceleration information of the coordinate system; The target processing module includes: a two-two connected computing unit, a target matching unit, and a target tracking unit;
所述计算单元,配置为能够通过所述获取模块获取的三个轴向的加速度信息计算得到所述加速度信息的变化值;The calculating unit is configured to calculate a change value of the acceleration information by using three axial acceleration information acquired by the acquiring module;
所述目标匹配单元,配置为能够在所述计算单元计算出的加速度信息的变化值大于第一加速度阈值时,对所述目标对象进行目标匹配;The target matching unit is configured to perform target matching on the target object when a change value of the acceleration information calculated by the calculating unit is greater than a first acceleration threshold;
所述目标跟踪单元,配置为能够在所述目标匹配单元匹配到所述目标对 象时,重新对所述目标对象进行目标跟踪;The target tracking unit is configured to be capable of matching the target pair in the target matching unit Re-targeting the target object;
所述目标匹配单元,还配置为能够在未匹配到所述目标对象时,继续对所述目标对象进行目标匹配。The target matching unit is further configured to continue to perform target matching on the target object when the target object is not matched.
根据第二方面、第二方面的第一种到第二种可能的实现方式中任意一种,在第四种可能的实现方式中,所述加速度信息包括坐标系三个轴向的加速度信息;所述目标处理模块包括:相连接的计算单元和目标跟踪单元;According to the second aspect, any one of the first to the second possible implementation manners of the second aspect, in the fourth possible implementation manner, the acceleration information includes three axial acceleration information of the coordinate system; The target processing module includes: a connected computing unit and a target tracking unit;
所述计算单元,配置为能够通过所述获取模块获取的三个轴向的加速度信息计算得到所述加速度信息的变化值;The calculating unit is configured to calculate a change value of the acceleration information by using three axial acceleration information acquired by the acquiring module;
所述目标跟踪单元,配置为能够在所述计算单元计算出的加速度信息的变化值小于第二加速度阈值时,对所跟踪的目标对象继续进行目标跟踪;The target tracking unit is configured to continue to perform target tracking on the tracked target object when the change value of the acceleration information calculated by the calculating unit is less than the second acceleration threshold;
所述目标跟踪单元,还配置为能够在所述计算单元计算出的加速度信息的变化值小于第一加速度阈值且大于所述第二加速度阈值时,对所跟踪的目标对象继续进行目标跟踪,并且不处理当前时刻的视屏帧。The target tracking unit is further configured to continue to perform target tracking on the tracked target object when the change value of the acceleration information calculated by the calculation unit is smaller than the first acceleration threshold and greater than the second acceleration threshold, and The video frame at the current time is not processed.
根据第二方面、第二方面的第一种到第二种可能的实现方式中任意一种,在第五种可能的实现方式中,所述加速度信息包括坐标系三个轴向的加速度信息;所述目标处理模块包括:两两相连接的计算单元、目标匹配单元和目标跟踪单元;According to the second aspect, any one of the first to the second possible implementation manners of the second aspect, in the fifth possible implementation, the acceleration information includes three axial acceleration information of the coordinate system; The target processing module includes: a two-two connected computing unit, a target matching unit, and a target tracking unit;
所述计算单元,配置为能够通过所述获取模块获取的三个轴向的加速度信息计算得到所述加速度信息的变化值;The calculating unit is configured to calculate a change value of the acceleration information by using three axial acceleration information acquired by the acquiring module;
所述目标匹配单元,配置为能够在所述计算单元计算出的加速度信息的变化值在统计时间间隔内满足预置条件的次数大于计数阈值时,对所述目标对象进行目标匹配,其中,所述预置条件为:小于第一加速度阈值且大于第二加速度阈值;The target matching unit is configured to perform target matching on the target object when the change value of the acceleration information calculated by the calculating unit meets the preset condition in the statistical time interval is greater than the counting threshold. The preset condition is: less than the first acceleration threshold and greater than the second acceleration threshold;
所述目标跟踪单元,配置为能够在所述目标匹配单元匹配到所述目标对象时,重新对所述目标对象进行目标跟踪;The target tracking unit is configured to be able to perform target tracking on the target object when the target matching unit matches the target object;
所述目标匹配单元,还配置为能够在未匹配到所述目标对象时,继续对所述目标对象进行目标匹配。The target matching unit is further configured to continue to perform target matching on the target object when the target object is not matched.
根据第二方面、第二方面的第一种到第二种可能的实现方式中任意一种, 在第六种可能的实现方式中,所述方向信息包括沿坐标系三个轴旋转的方向信息,所述方向信息包括第一方向信息、第二方向信息和第三方向信息,其中,所述第一方向信息和所述第二方向信息中的一个为沿X轴旋转的方向信息,另一个为沿Y轴旋转的方向信息,所述第三方向信息为沿Z轴旋转的方向信息;According to the second aspect, any one of the first to second possible implementations of the second aspect, In a sixth possible implementation, the direction information includes direction information that is rotated along three axes of the coordinate system, where the direction information includes first direction information, second direction information, and third direction information, where One of the first direction information and the second direction information is direction information rotated along the X axis, and the other is direction information rotated along the Y axis, the third direction information being direction information rotated along the Z axis;
所述获取模块,还配置为能够在所述目标处理模块根据所述移动终端的方向信息的差值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配之前,获取所述目标对象的初始方向信息;The acquiring module is further configured to: before the target processing module continues to perform target tracking or target matching on the tracked target object according to a difference value of the direction information of the mobile terminal, acquiring an initial of the target object Direction information
所述目标处理模块包括:相连接的计算单元和目标处理单元;The target processing module includes: a connected computing unit and a target processing unit;
所述计算单元,配置为能够根据所述移动终端的当前第一方向信息和所述初始方向信息计算第一方向信息的差值;The calculating unit is configured to calculate a difference value of the first direction information according to the current first direction information of the mobile terminal and the initial direction information;
所述目标处理单元,配置为能够在所述计算单元计算出的第一方向信息的差值大于第一方向阈值时,对所述目标对象进行目标匹配;The target processing unit is configured to perform target matching on the target object when a difference between the first direction information calculated by the calculating unit is greater than a first direction threshold;
所述目标处理单元,还配置为能够在所述计算单元计算出的第一方向信息的差值小于第二方向阈值时,对所跟踪的目标对象继续进行目标跟踪;The target processing unit is further configured to continue to perform target tracking on the tracked target object when the difference between the first direction information calculated by the calculating unit is less than the second direction threshold;
所述计算单元和所述目标处理单元,还配置为能够在所述计算单元计算出的第一方向信息的差值小于所述第一方向阈值且大于所述第二方向阈值时,根据所述第二方向信息的差值对所述目标对象进行目标跟踪或者进行目标匹配。The calculating unit and the target processing unit are further configured to be capable of, when the difference of the first direction information calculated by the calculating unit is smaller than the first direction threshold and greater than the second direction threshold, according to the The difference of the second direction information performs target tracking or target matching on the target object.
根据第二方面的第六种可能的实现方式,在第七种可能的实现方式中,所述计算单元和所述目标处理单元配置为能够通过以下方式根据所述第二方向信息的差值对所述目标对象进行目标跟踪或者进行目标匹配:According to a sixth possible implementation manner of the second aspect, in a seventh possible implementation, the calculating unit and the target processing unit are configured to be capable of performing a difference pair according to the second direction information by: The target object performs target tracking or target matching:
所述计算单元,还配置为能够根据所述移动终端的当前第二方向信息和所述初始方向信息计算第二方向信息的差值;The calculating unit is further configured to calculate a difference value of the second direction information according to the current second direction information of the mobile terminal and the initial direction information;
所述目标处理单元,还配置为能够在所述计算单元计算出的第二方向信息的差值大于第三方向阈值时,对所述目标对象进行目标匹配;The target processing unit is further configured to perform target matching on the target object when a difference between the second direction information calculated by the calculating unit is greater than a third direction threshold;
所述目标处理单元,还配置为能够在所述计算单元计算出的第二方向信息的差值小于第四方向阈值时,对所跟踪的目标对象继续进行目标跟踪; The target processing unit is further configured to continue to perform target tracking on the tracked target object when the difference between the second direction information calculated by the calculating unit is less than the fourth direction threshold;
所述计算单元和所述目标处理单元,还配置为能够在所述计算单元计算出的第二方向信息的差值小于所述第三方向阈值且大于所述第四方向阈值时,根据所述第三方向信息的差值对所述目标对象进行目标跟踪或者进行目标匹配。The calculating unit and the target processing unit are further configured to be configured to be capable of, when the difference between the second direction information calculated by the calculating unit is smaller than the third direction threshold and greater than the fourth direction threshold, according to the The difference of the third direction information performs target tracking or target matching on the target object.
根据第二方面的第七种可能的实现方式,在第八种可能的实现方式中,所述计算单元和所述目标处理单元配置为能够通过以下方式根据所述第三方向信息的差值对所述目标对象进行目标跟踪或者进行目标匹配:According to a seventh possible implementation manner of the second aspect, in an eighth possible implementation, the calculating unit and the target processing unit are configured to be capable of performing a difference pair according to the third direction information by: The target object performs target tracking or target matching:
所述计算单元,还配置为能够根据所述移动终端的当前第三方向信息和所述初始方向信息计算第三方向信息的差值;The calculating unit is further configured to calculate a difference value of the third direction information according to the current third direction information of the mobile terminal and the initial direction information;
所述目标处理单元,还配置为能够在所述计算单元计算出的第三方向信息的差值小于旋转角度阈值时,对所跟踪的目标对象继续进行目标跟踪;The target processing unit is further configured to continue to perform target tracking on the tracked target object when the difference between the third direction information calculated by the calculating unit is less than the rotation angle threshold;
所述计算单元,还配置为能够在所述第三方向信息的差值大于所述旋转角度阈值时,根据所述第一方向信息的差值、所述第二方向信息的差值和所述第三方向信息的差值计算当前ORB特征信息;The calculating unit is further configured to: according to the difference between the first direction information, the difference of the second direction information, and the difference when the difference of the third direction information is greater than the rotation angle threshold Calculating the current ORB feature information by the difference of the third direction information;
所述目标处理单元,还配置为能够根据在所述计算单元计算出所述当前ORB特征信息时,根据所述当前ORB特征信息对所述目标对象进行目标跟踪;The target processing unit is further configured to be capable of performing target tracking on the target object according to the current ORB feature information when the current ORB feature information is calculated by the calculating unit;
所述目标处理单元,还配置为能够根据在所述计算单元未计算出所述当前ORB特征信息时,对所述目标对象进行目标匹配。The target processing unit is further configured to perform target matching on the target object according to when the current ORB feature information is not calculated by the computing unit.
根据第二方面、第二方面的第一种到第二种可能的实现方式中任意一种,在第九种可能的实现方式中,所述移动终端目标跟踪装置还包括:与所述目标处理模块相连接的计算模块,配置为能够在所述目标处理模块对所跟踪的目标对象继续进行目标跟踪之后,根据当前ORB特征信息计算当前进行目标跟踪的正确率;According to the second aspect, the first to the second possible implementation manner of the second aspect, in the ninth possible implementation manner, the mobile terminal target tracking device further includes: a computing module connected to the module, configured to calculate a current correct rate of the target tracking according to the current ORB feature information after the target processing module continues to perform target tracking on the tracked target object;
所述目标处理模块包括:相连接的目标匹配单元和目标跟踪单元;The target processing module includes: a connected target matching unit and a target tracking unit;
所述目标跟踪单元,配置为能够在所述计算模块计算出的正确率大于目标阈值时,对所跟踪的目标对象继续进行目标跟踪;The target tracking unit is configured to continue to perform target tracking on the tracked target object when the calculated correct rate is greater than the target threshold;
所述目标匹配单元,配置为能够在所述计算模块计算出的正确率小于目 标阈值时,对所述目标对象进行目标匹配;The target matching unit is configured to be capable of calculating a correct rate less than the target in the computing module Targeting the target object when the threshold is marked;
所述目标跟踪单元,配置为能够在所述目标匹配单元匹配到所述目标对象时,重新对所述目标对象进行目标跟踪;The target tracking unit is configured to be able to perform target tracking on the target object when the target matching unit matches the target object;
所述目标匹配单元,还配置为能够在未匹配到所述目标对象时,继续对所述目标对象进行目标匹配。The target matching unit is further configured to continue to perform target matching on the target object when the target object is not matched.
第三方面,本发明实施例提供一种移动终端,所述移动终端中配置有摄像头、加速度传感器和方向传感器,以及如上述第二方面中任一项所述的移动终端目标跟踪装置;In a third aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal is configured with a camera, an acceleration sensor, and a direction sensor, and the mobile terminal target tracking device according to any one of the foregoing second aspects;
其中,所述移动终端目标跟踪装置分别与所述摄像头、所述加速度传感器和所述方向传感器相连接。The mobile terminal target tracking device is respectively connected to the camera, the acceleration sensor and the direction sensor.
本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现上述移动终端目标跟踪方法。The embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented by the processor to implement the mobile terminal target tracking method.
本发明实施例提供的移动终端目标跟踪方法、装置和移动终端,通过移动终端的加速度传感器和方向传感器实时获取所述移动终端的加速度信息和方向信息,从而分别根据移动终端的加速度信息的变化值和方向信息的差值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配;本发明实施例中通过利用移动终端的加速度传感器和方向传感器,可以实现对跟踪对象的适时调整,从而保证跟踪对象的准确性,即本发明实施例解决了相关技术中移动终端的目标跟踪方法,由于将现有的目标跟踪算法直接应用到移动终端上,而导致目标跟踪的实时性、可靠性和鲁棒性等性能较差的问题。The mobile terminal target tracking method and device and the mobile terminal provided by the embodiment of the present invention acquire the acceleration information and the direction information of the mobile terminal in real time through the acceleration sensor and the direction sensor of the mobile terminal, so as to respectively change the acceleration information according to the acceleration information of the mobile terminal. The difference between the direction and the direction information is used to perform target tracking or target matching on the tracked target object. In the embodiment of the present invention, by using the acceleration sensor and the direction sensor of the mobile terminal, timely adjustment of the tracking object can be realized, thereby ensuring tracking. The accuracy of the object, that is, the embodiment of the present invention solves the target tracking method of the mobile terminal in the related art, and the existing target tracking algorithm is directly applied to the mobile terminal, resulting in real-time, reliability and robustness of the target tracking. A problem with poor performance.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
附图用来提供对本申请技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本申请的技术方案,并不构成对本申请技术方案的限制。The drawings are used to provide a further understanding of the technical solutions of the present application, and constitute a part of the specification, which is used together with the embodiments of the present application to explain the technical solutions of the present application, and does not constitute a limitation of the technical solutions of the present application.
图1为本发明实施例提供的一种移动终端目标跟踪方法的流程图;FIG. 1 is a flowchart of a method for tracking a target of a mobile terminal according to an embodiment of the present invention;
图2为本发明实施例提供的另一种移动终端目标跟踪方法的流程图; 2 is a flowchart of another method for tracking a target of a mobile terminal according to an embodiment of the present invention;
图3为本发明实施例提供的又一种移动终端目标跟踪方法的流程图;FIG. 3 is a flowchart of still another method for tracking a target of a mobile terminal according to an embodiment of the present invention;
图4为图3所示实施例提供的移动终端目标跟踪方法中一种加速度变化示意图;4 is a schematic diagram of an acceleration change in a target tracking method of a mobile terminal provided by the embodiment shown in FIG. 3;
图5为图3所示实施例提供的移动终端目标跟踪方法中另一种加速度变化示意图;FIG. 5 is a schematic diagram of another acceleration change in a target tracking method of a mobile terminal provided by the embodiment shown in FIG. 3; FIG.
图6为本发明实施例提供的再一种移动终端目标跟踪方法的流程图;FIG. 6 is a flowchart of still another method for tracking a target of a mobile terminal according to an embodiment of the present invention;
图7为图6所示实施例提供的移动终端目标跟踪方法中一种方向变化示意图;FIG. 7 is a schematic diagram of a change of direction in a target tracking method of a mobile terminal provided by the embodiment shown in FIG. 6; FIG.
图8为图6所示实施例提供的移动终端目标跟踪方法中另一种方向变化示意图;FIG. 8 is a schematic diagram of another direction change in the target tracking method of the mobile terminal provided by the embodiment shown in FIG. 6; FIG.
图9为本发明实施例提供的还一种移动终端目标跟踪方法的流程图;FIG. 9 is a flowchart of still another method for tracking a target of a mobile terminal according to an embodiment of the present invention;
图10为本发明实施例提供的还一种移动终端目标跟踪方法的流程图;FIG. 10 is a flowchart of still another method for tracking a target of a mobile terminal according to an embodiment of the present invention;
图11为本发明实施例提供的一种移动终端目标跟踪装置的结构示意图;FIG. 11 is a schematic structural diagram of a target tracking device of a mobile terminal according to an embodiment of the present invention;
图12为本发明实施例提供的另一种移动终端目标跟踪装置的结构示意图;FIG. 12 is a schematic structural diagram of another mobile terminal target tracking apparatus according to an embodiment of the present disclosure;
图13为本发明实施例提供的又一种移动终端目标跟踪装置的结构示意图;FIG. 13 is a schematic structural diagram of still another target tracking device for a mobile terminal according to an embodiment of the present disclosure;
图14为本发明实施例提供的再一种移动终端目标跟踪装置的结构示意图;FIG. 14 is a schematic structural diagram of still another mobile terminal target tracking apparatus according to an embodiment of the present disclosure;
图15为本发明实施例提供的一种移动终端的结构示意图。FIG. 15 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
详述Detailed
下文中将结合附图对本申请的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。 The steps illustrated in the flowchart of the figures may be executed in a computer system such as a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
上述背景技术中已经说明,由于移动终端的硬件性能与传统的桌面设备存在较大的差距,因此,若将现有的目标跟踪算法直接移植到智能移动终端上的处理方式,对于移动终端执行目标跟踪的实时性、可靠性和鲁棒性等综合性能无法达到在桌面设备上的目标跟踪效果。As described in the above background art, since the hardware performance of the mobile terminal has a large gap with the traditional desktop device, if the existing target tracking algorithm is directly transplanted to the processing method of the smart mobile terminal, the target is executed for the mobile terminal. Comprehensive performance such as real-time, reliability, and robustness of tracking cannot achieve target tracking on desktop devices.
以现有的一些目标跟踪算法为例予以说明,例如基于区域的目标跟踪算法,利用目标的全局信息,在目标未遮挡时虽然跟踪精度非常高,也非常稳定,但是计算量较大,非常耗时,不能满足移动终端上目标跟踪的实时性要求;再例如基于特征的目标跟踪算法不考虑运动目标的整体特征,而是提取目标的某种特征,然后对这些特征进行定位与跟踪,虽然速度快,同时对运动目标的形变、尺度、亮度等变化不敏感,由于特征具有稀疏性与不规则性,所以该算法对噪声、遮挡、图像模糊等比较敏感,如果目标发生旋转,则部分特征点会消失,新的特征点会出现,容易出现目标跟踪丢失的状况,且跟踪丢失后不能自动恢复跟踪,即达不到移动终端上的目标跟踪的鲁棒性与可靠性要求;又例如基于均值漂移的目标跟踪算法,通过迭代计算概率密度的局部最大值,计算量小、实时性高,但易出现跟踪错误,且亦不能自我恢复跟踪,不满足可靠性与鲁棒性的要求;又例如基于活动轮廓的跟踪算法,通过活动轮廓模型对图像进行分割,然后通过对分割的图像区域进行特征提取,并与目标进行特征匹配来实现跟踪,虽然具有较好的可靠性与鲁棒性,但并不能满足实时性的要求。因此,合理的设计针对移动终端的目标跟踪技术,成为提高移动终端性能的重要因素之一。Take some existing target tracking algorithms as an example. For example, the region-based target tracking algorithm uses the global information of the target. Although the tracking accuracy is very high and stable when the target is not occluded, the calculation amount is large and very expensive. The real-time requirements of target tracking on the mobile terminal cannot be met; for example, the feature-based target tracking algorithm does not consider the overall characteristics of the moving target, but extracts certain features of the target, and then locates and tracks these features, although the speed Fast, at the same time is not sensitive to changes in the deformation, scale, brightness, etc. of the moving target. Because the features are sparse and irregular, the algorithm is sensitive to noise, occlusion, image blur, etc. If the target rotates, some feature points It will disappear, new feature points will appear, and the target tracking loss will be easy to occur. After the tracking is lost, the tracking cannot be automatically resumed, that is, the robustness and reliability requirements of the target tracking on the mobile terminal cannot be achieved; for example, based on the mean value. Drift target tracking algorithm, iteratively calculates the local maximum of probability density The calculation is small and the real-time performance is high, but the tracking error is easy to occur, and the tracking cannot be self-recovery, and the requirements of reliability and robustness are not satisfied. For example, the tracking algorithm based on the active contour is used to segment the image by the active contour model. Then, the feature is extracted by segmenting the image region and matching with the target to achieve tracking. Although it has good reliability and robustness, it cannot meet the requirements of real-time. Therefore, reasonable design of target tracking technology for mobile terminals has become one of the important factors to improve the performance of mobile terminals.
下面通过具体的实施例对本申请的技术方案进行详细说明,本申请以下实施例中的移动终端可以为独立的终端设备,例如为智能手机、平板电脑(PAD)和个人数字助理(Personal Digital Assistant,简称为:PDA)等,该移动终端可也为配置于其他设备上的实体部件,例如车辆上设置的车载导航。本申请提供以下几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solutions of the present application are described in detail below through specific embodiments. The mobile terminal in the following embodiments may be independent terminal devices, such as a smart phone, a tablet computer (PAD), and a personal digital assistant (Personal Digital Assistant, Referring to: PDA), etc., the mobile terminal can also be a physical component disposed on other devices, such as car navigation provided on a vehicle. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in some embodiments.
图1为本发明实施例提供的一种移动终端目标跟踪方法的流程图。本实施例提供的移动终端目标跟踪方法适用于移动终端执行目标跟踪的情况中,该方法可以由移动终端目标跟踪装置执行,该移动终端目标跟踪装置通过硬 件和软件结合的方式来实现,该装置可以集成在移动终端的处理器中,供处理器调用使用。如图1所示,本实施例的方法可以包括:FIG. 1 is a flowchart of a method for tracking a target of a mobile terminal according to an embodiment of the present invention. The mobile terminal target tracking method provided in this embodiment is applicable to a case where the mobile terminal performs target tracking, and the method may be performed by a mobile terminal target tracking device, and the mobile terminal target tracking device passes the hard The device and the software are combined to implement, and the device can be integrated in the processor of the mobile terminal for use by the processor. As shown in FIG. 1, the method in this embodiment may include:
S110,通过移动终端的加速度传感器和方向传感器实时获取该移动终端的加速度信息和方向信息。S110: Acquire acceleration information and direction information of the mobile terminal in real time by using an acceleration sensor and a direction sensor of the mobile terminal.
本发明实施例提供的移动终端目标跟踪方法,为通过该移动终端执行目标跟踪的执行方法,本实施例的移动终端中通常配置有加速度传感器和方向传感器(orientation sensor),该加速度传感器例如为三轴加速度传感器(3-axis accelerometer sensor)。通过上述两个传感器可以实时获取到移动终端的加速度信息和方向信息,本实施例通过实时获取的加速度信息和方向信息为依据,作为实现目标跟踪算法中对性能指标要求的基础。The mobile terminal target tracking method provided by the embodiment of the present invention is an execution method for performing target tracking by using the mobile terminal. The mobile terminal in this embodiment is usually configured with an acceleration sensor and an orientation sensor, for example, three Axis acceleration sensor (3-axis accelerometer sensor). The acceleration information and the direction information of the mobile terminal can be obtained in real time by using the above two sensors. The present embodiment is based on the acceleration information and the direction information acquired in real time, and serves as a basis for realizing the requirements of the performance index in the target tracking algorithm.
本申请实施例基于移动终端具有移动性的特点,充分利用移动终端中配置的加速器传感器和方向传感器,获取可以体现移动终端移动性的数据信息,以便后续根据这些数据信息在执行目标跟踪的过程中适时地调整执行跟踪的方式。The embodiment of the present application is based on the mobility characteristics of the mobile terminal, and fully utilizes the accelerator sensor and the direction sensor configured in the mobile terminal to obtain data information that can reflect the mobility of the mobile terminal, so as to subsequently perform target tracking according to the data information. Adjust the way you perform tracking in a timely manner.
S120,分别根据移动终端的加速度信息的变化值和方向信息的差值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配。S120: Perform target tracking or target matching on the tracked target object according to the difference between the change value of the acceleration information of the mobile terminal and the direction information, respectively.
在本实施例中,与相关技术中的目标跟踪方式不同的是,可以分别通过上述获取的加速度信息的变化值和方向信息的差值,对跟踪的目标对象进行目标跟踪或者进行目标匹配。举例来说,当加速度信息的变化值满足一个特定条件时,说明目标跟踪成功,即可以继续执行对该目标对象的目标跟踪;另一方面,当加速度信息的变化值满足另一个特定条件时,说明目标跟踪出现问题,此时,需要对上述目标对象进行目标匹配,从而可以根据匹配到的目标对象重新执行目标跟踪。本实施例中通过方向信息的差值进行目标跟踪或目标匹配的方式与上述通过加速度信息的变化值进行目标跟踪或目标匹配的方式类似,都是在跟踪成功的情况下继续执行目标跟踪,在跟踪出现问题的情况下进行目标匹配,以重新获取跟踪的目标对象。In this embodiment, different from the target tracking mode in the related art, the target object to be tracked may be subjected to target tracking or target matching by using the difference value of the acquired acceleration information and the difference of the direction information. For example, when the change value of the acceleration information satisfies a specific condition, it indicates that the target tracking is successful, that is, the target tracking of the target object can be performed continuously; on the other hand, when the change value of the acceleration information satisfies another specific condition, Explain that there is a problem with the target tracking. At this time, the target target needs to be matched to the target object, so that the target tracking can be re-executed according to the matched target object. In this embodiment, the manner of performing target tracking or target matching by using the difference of the direction information is similar to the manner of performing target tracking or target matching by using the change value of the acceleration information, and the target tracking is continued when the tracking is successful. Target matching in case of tracking problems to regain the tracked target object.
本实施例在具体实现中,在S120之前,上述方法还可以包括:S111,获取目标对象的初始ORB特征信息,其中,ORB特征信息例如包括目标对象的一些坐标点,也即特征点,ORB为Oriented FAST and Rotated BRIEF, 即ORB是对FAST(Features From Accelerated Segment Test)特征点和BRIEF(Binary Robust Independent Elementary Features)特征描述的一种结合与改进;S112,根据所获取的初始ORB特征信息对目标对象进行目标跟踪。本实施例中的移动终端通常具有摄像头,在执行目标跟踪前需要打开该摄像头,在摄像头的跟踪场景图像中确定目标对象并获取该目标对象的初始ORB特征信息,从而可以根据获取的初始ORB特征信息中对目标对象进行跟踪。In the specific implementation, before the S120, the method may further include: S111, acquiring initial ORB feature information of the target object, where the ORB feature information includes, for example, some coordinate points of the target object, that is, feature points, and the ORB is Oriented FAST and Rotated BRIEF, That is, the ORB is a combination and improvement of the FAST (Features From Accelerated Segment Test) feature point and the BRIEF (Binary Robust Independent Elementary Features) feature description; S112, target tracking is performed on the target object according to the obtained initial ORB feature information. The mobile terminal in this embodiment usually has a camera, and needs to open the camera before performing target tracking, determine a target object in the tracking scene image of the camera, and obtain initial ORB feature information of the target object, so that the initial ORB feature can be obtained according to the obtained The target object is tracked in the message.
需要说明的是,本实施例中获取初始ORB特征信息的方式例如可以为FAST(Features From Accelerated Segment Test)、SIFT(Scale Invariant Feature Transform)、SURF(Speeded Up Robust Features)、ORB(ORiented FAST and Rotated BRIEF)、BRISK(Binary Robust Invariant Scalable Keypoints)、MSER(Maximally Stable Extremal Region Extractor)或GFTT(Good Features To Track)等;本申请实施例中采用的目标跟踪算法与相关技术中类似,例如可以为金字塔光流跟踪算法(pyramid Lucas–Kanade,简称为:PyrLK)、在线推进跟踪算法(Tracking via On-line Boosting,简称为:OAB)、使用加速近端梯度的L1跟踪算法(L1 Tracker Using Accelerated Proximal Gradient,简称为:L1APG)或压缩跟踪算法(Compressive Tracking,简称为:CT)等,本申请以下各实施例以金字塔光流跟踪算法为例予以说明。It should be noted that the method for obtaining the initial ORB feature information in this embodiment may be, for example, FAST (Features From Accelerated Segment Test), SIFT (Scale Invariant Feature Transform), SURF (Speeded Up Robust Features), ORB (ORiented FAST and Rotated). The target tracking algorithm used in the embodiment of the present application is similar to the related art, for example, may be a pyramid, for example, BRISK (Binary Robust Invariant Scalable Keypoints), MSER (Maximally Stable Extremal Region Extractor), or GFTT (Good Features To Track). Optical flow tracking algorithm (pyramid Lucas–Kanade, referred to as: PyrLK), Tracking via On-line Boosting (OAB), L1 Tracker Using Accelerated Proximal Gradient , referred to as: L1APG) or Compressive Tracking (CT), etc. The following embodiments of the present application use a pyramid optical flow tracking algorithm as an example for description.
由于移动终端具有移动性,并且其硬件性能较差,传统的目标跟踪方式很难满足移动终端执行目标跟踪时,对跟踪效果的要求。本实施例提供的移动终端目标跟踪方法,利用移动终端设备自身具备的加速度传感器和方向传感器,不仅可以通过这两个传感器实时获取移动终端的加速度信息和方向信息,并且可以利用这两个传感器实时获取的信息获知移动终端的加速度信息的变化值和方向信息的差值,适时地调整执行目标跟踪的对象,从而增强移动终端执行目标跟踪时对实时性、可靠性和鲁棒性的性能要求。Because the mobile terminal has mobility and its hardware performance is poor, the traditional target tracking method is difficult to meet the requirements of the tracking effect when the mobile terminal performs target tracking. The mobile terminal target tracking method provided by the embodiment uses the acceleration sensor and the direction sensor provided by the mobile terminal device to obtain the acceleration information and the direction information of the mobile terminal in real time through the two sensors, and can use the two sensors in real time. The acquired information obtains the difference between the change value of the acceleration information of the mobile terminal and the direction information, and timely adjusts the object of performing the target tracking, thereby enhancing the performance requirements of the mobile terminal for real-time performance, reliability, and robustness when performing target tracking.
本实施例提供的移动终端目标跟踪方法,通过移动终端的加速度传感器和方向传感器实时获取所述移动终端的加速度信息和方向信息,从而分别根据移动终端的加速度信息的变化值和方向信息的差值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配;本实施例中通过利用移动终端的加速度传感器和方向传感器,可以实现对跟踪对象的适时调整,从而保证跟踪对 象的准确性,即本实施例解决了相关技术中移动终端的目标跟踪方法,由于将现有的目标跟踪算法直接应用到移动终端上,而导致目标跟踪的实时性、可靠性和鲁棒性等性能较差的问题。In the mobile terminal target tracking method provided by the embodiment, the acceleration information and the direction information of the mobile terminal are acquired in real time by the acceleration sensor and the direction sensor of the mobile terminal, so that the difference between the change value and the direction information of the acceleration information of the mobile terminal is respectively determined. The target tracking of the tracked target object is continued to perform target tracking or target matching; in this embodiment, by using the acceleration sensor and the direction sensor of the mobile terminal, timely adjustment of the tracking object can be realized, thereby ensuring the tracking pair. The accuracy of the image, that is, the embodiment solves the target tracking method of the mobile terminal in the related art, and the existing target tracking algorithm is directly applied to the mobile terminal, resulting in real-time, reliability, robustness, and the like of the target tracking. Poor performance.
图2为本发明实施例提供的另一种移动终端目标跟踪方法的流程图。在上述图1所示实施例的基础上,本实施例在具体实现中,S120中根据移动终端的加速度信息的变化值或方向信息的差值进行处理时,判断跟踪出现问题,则需要对所跟踪的目标对象进行目标匹配,即本实施例中的S120可以为:根据移动终端的加速度信息的变化值或方向信息的差值,以及初始ORB特征信息对目标对象进行目标匹配。在执行目标匹配,即S120之后还需要执行进一步地跟踪处理,可以包括:S130,若匹配到目标对象,更新目标对象的ORB特征信息,并根据更新的ORB特征信息重新对目标对象进行目标跟踪。在本实施例中,对目标对象进行匹配的过程中,同样需要通过摄像头的跟踪场景图像匹配之前确定的目标对象,但此时确定的目标对象在图像中的位置可能与初次确定目标对象时的位置不同,即目标对象的ORB特征信息发生变化,此时需要更新该目标对象的ORB特征信息,从而以更新的ORB特征信息作为执行目标跟踪的依据。FIG. 2 is a flowchart of another method for tracking a target of a mobile terminal according to an embodiment of the present invention. On the basis of the foregoing embodiment shown in FIG. 1 , in the specific implementation, when S120 performs processing according to the difference value of the acceleration information of the mobile terminal or the difference of the direction information, it is determined that there is a problem in the tracking, and the The tracking target object performs target matching, that is, S120 in this embodiment may be: performing target matching on the target object according to the change value of the acceleration information of the mobile terminal or the difference of the direction information, and the initial ORB feature information. After the target matching, that is, S120, the following further processing is performed, which may include: S130. If the target object is matched, the ORB feature information of the target object is updated, and the target object is re-targeted according to the updated ORB feature information. In this embodiment, in the process of matching the target object, the tracking target image of the camera is also required to match the previously determined target object, but the position of the determined target object in the image may be the same as when the target object is first determined. The location is different, that is, the ORB feature information of the target object changes. At this time, the ORB feature information of the target object needs to be updated, so that the updated ORB feature information is used as the basis for performing the target tracking.
本实施例的S120之后还可以执行,S140,若未匹配到目标对象,继续根据初始ORB特征信息对目标对象进行目标匹配。S120 of this embodiment may be further performed, and S140, if the target object is not matched, continue to perform target matching on the target object according to the initial ORB feature information.
需要说明的是,本申请以下各实施例中进行目标匹配的参考信息均为初次获取的初始ORB特征信息,若匹配不到目标对象,则继续根据初始ORB特征信息进行匹配;以下实施例中均不具体说明进行目标匹配的具体方式。It should be noted that the reference information for performing target matching in the following embodiments of the present application is the initial ORB feature information obtained for the first time. If the target object is not matched, the matching is continued according to the initial ORB feature information; The specific way of performing target matching is not specified.
本发明实施例在具体实现中,S110中获取的加速度信息可以包括坐标系三个轴向的加速度信息,通过该三个轴向的加速度信息可以计算出加速度信息的变化值,如图3所示,为本发明实施例提供的又一种移动终端目标跟踪方法的流程图,在上述图1所示实施例的基础上,S120中包括:S130,根据移动终端的加速度信息的变化值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配;S140,根据移动终端的方向信息的差值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配。本实施例中的S130可以包括:In an embodiment of the present invention, the acceleration information acquired in S110 may include acceleration information of three axes in a coordinate system, and the acceleration information may be calculated by using the acceleration information of the three axes, as shown in FIG. According to another embodiment of the embodiment shown in FIG. 1 , the S120 includes: S130, according to the change value of the acceleration information of the mobile terminal, The tracked target object continues to perform target tracking or target matching; S140, according to the difference of the direction information of the mobile terminal, continue to perform target tracking or target matching on the tracked target object. S130 in this embodiment may include:
S131,通过三个轴向的加速度信息计算得到加速度信息的变化值。 S131, calculating a change value of the acceleration information by using three axial acceleration information.
S132,当加速度信息的变化值大于第一加速度阈值时,对目标对象进行目标匹配。S132: Perform target matching on the target object when the change value of the acceleration information is greater than the first acceleration threshold.
在本实施例中,若某一时刻加速度信息的变化值大于第一加速度阈值,则说明移动终端设备发生了较大的抖动和位移变化,如图4所示,为图3所示实施例提供的移动终端目标跟踪方法中一种加速度变化示意图,如图5所示,为图3所示实施例提供的移动终端目标跟踪方法中另一种加速度变化示意图。在图4中的tk=6秒(s)附近和图5中的tk=18s附近的加速度存在一个或多个较大的陡峭变化,说明此时移动终端发生了一个较大的抖动和位移变化。因此,为了保证目标跟踪的准确性,需要对目标对象进行目标匹配。In this embodiment, if the change value of the acceleration information at a certain time is greater than the first acceleration threshold, it indicates that the mobile terminal device has a large jitter and displacement change, as shown in FIG. 4, which is provided for the embodiment shown in FIG. A schematic diagram of an acceleration change in the target tracking method of the mobile terminal, as shown in FIG. 5, is another schematic diagram of the acceleration change in the target tracking method of the mobile terminal provided by the embodiment shown in FIG. And FIG. 5 near t k = t k in the presence of FIG. 4 = 6 seconds (s) 18s acceleration close to a larger or more steeply changed, indicating where the mobile terminal occurs and a large jitter Displacement changes. Therefore, in order to ensure the accuracy of target tracking, target matching needs to be performed on the target object.
其中,本实施例中的加速度信息的变化值如下式所示:The change value of the acceleration information in this embodiment is as follows:
Figure PCTCN2017079445-appb-000001
其中,mx、my和mz表示移动终端在当前记录时刻(例如tk时刻)沿X轴、Y轴和Z轴方向的加速度信息,m′x、m′y和m′z表示移动终端在前一记录时刻(例如tk-1时刻)沿X轴、Y轴和Z轴方向的加速度信息。
Figure PCTCN2017079445-appb-000001
Where m x , m y and m z represent acceleration information of the mobile terminal along the X-axis, Y-axis and Z-axis directions at the current recording time (for example, time t k ), and m′ x , m′ y and m′ z represent movement Acceleration information of the terminal in the X-axis, Y-axis, and Z-axis directions at the previous recording time (for example, time t k-1 ).
本实施例中的第一加速度阈值可以为加速度变化的上限值,即Tacc_up,例如可以按下列公式选取:The first acceleration threshold in this embodiment may be an upper limit value of the acceleration change, that is, T acc — up , for example, may be selected according to the following formula:
Figure PCTCN2017079445-appb-000002
Figure PCTCN2017079445-appb-000002
上式中的F表示移动终端上的摄像头的光圈大小,f表示摄像头的焦距大小,vf表示摄像头的帧率大小。F in the above formula represents the aperture size of the camera on the mobile terminal, f represents the focal length of the camera, and v f represents the frame rate of the camera.
在本实施例中,若目标匹配的结果是匹配到目标对象,则说明该目标对象还在摄像头的场景内,则可以重新开始执行目标跟踪,此时,跟踪目标匹配成功时更新的ORB特征信息;若目标匹配的结果是未匹配到目标对象,则说明目标对象可能已移出摄像头的场景,则可以终止对目标对象的跟踪,并继续执行对目标对象的匹配,直到匹配到该目标对象。在本实施例中,进行目标匹配后的处理方式与图2所示实施例中的S130~S140的处理方式相同,故在此不再赘述。In this embodiment, if the result of the target matching is matched to the target object, it indicates that the target object is still in the scene of the camera, and the target tracking can be restarted. At this time, the updated ORB feature information when the target matching is successful is tracked. If the result of the target match is that the target object is not matched, then the target object may have moved out of the camera's scene, then the tracking of the target object may be terminated, and the matching of the target object is continued until the target object is matched. In this embodiment, the processing manner after performing the target matching is the same as the processing manner of S130 to S140 in the embodiment shown in FIG. 2, and therefore no further details are provided herein.
在示例性实施方式中,本实施例的S130中根据移动终端的加速度信息的变化值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配还可以 包括:In an exemplary embodiment, in S130 of the embodiment, according to the change value of the acceleration information of the mobile terminal, the target tracking of the tracked target object is continued, or the target matching may be performed. include:
S133,当加速度信息的变化值小于第一加速度阈值且大于第二加速度阈值时,对所跟踪的目标对象继续进行目标跟踪,并且不处理当前时刻的视屏帧。S133. When the change value of the acceleration information is smaller than the first acceleration threshold and greater than the second acceleration threshold, target tracking is continued on the tracked target object, and the video frame of the current time is not processed.
在本实施例中,若某一时刻加速度信息的变化值小于第一加速度阈值且大于第二加速度阈值,则说明移动终端设备发生了小幅抖动,同样如图4所示,在图4中的tk=12s附近,视屏帧的灰度值变化较大,虽然可以通过目标跟踪算法跟踪上目标对象,但跟踪上的ORB特征信息在此时刻会产生较多异常值,不利于后续时刻的目标跟踪,此时可以继续对目标对象进行跟踪,但需要跳过对当前时刻(例如tk时刻)的视屏帧的处理,即忽略移动终端设备发生了小幅抖动时刻中,视屏帧的处理。In this embodiment, if the change value of the acceleration information at a certain time is smaller than the first acceleration threshold and greater than the second acceleration threshold, it indicates that the mobile terminal device has a small jitter, as shown in FIG. 4, t in FIG. Near k = 12s, the gray value of the video frame changes greatly. Although the target target tracking algorithm can be used to track the upper target object, the ORB feature information on the tracking will generate more abnormal values at this moment, which is not conducive to target tracking at subsequent times. At this time, the target object can be tracked, but the processing of the video frame at the current time (for example, time t k ) needs to be skipped, that is, the processing of the video frame in the moment when the mobile terminal device has a small jitter is ignored.
其中,本实施例中的加速度信息的变化值的计算方式和第一加速度阈值的取值都与上述实施例中相同,故在此不再赘述。The calculation method of the change value of the acceleration information and the value of the first acceleration threshold in the embodiment are the same as those in the foregoing embodiment, and thus are not described herein again.
本实施例中的第二加速度阈值可以为加速度变化的下限值,即Tacc_down,例如可以按下列公式选取:The second acceleration threshold in this embodiment may be the lower limit of the acceleration change, that is, T acc_down , for example, may be selected according to the following formula:
Figure PCTCN2017079445-appb-000003
Figure PCTCN2017079445-appb-000003
上式中的F表示移动终端上的摄像头的光圈大小,f表示摄像头的焦距大小,vf表示摄像头的帧率大小。F in the above formula represents the aperture size of the camera on the mobile terminal, f represents the focal length of the camera, and v f represents the frame rate of the camera.
需要说明的是,本实施例中的S130中根据移动终端的加速度信息的变化值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配还可以包括:It should be noted that, in S130 in this embodiment, according to the change value of the acceleration information of the mobile terminal, the target tracking or the target matching of the tracked target object may further include:
S134,当加速度信息的变化值小于第二加速度阈值时,对所跟踪的目标对象继续进行目标跟踪。在该情况中,说明移动终端设备正常执行目标跟踪,即可以继续执行对该目标对象的目标跟踪。S134. When the change value of the acceleration information is less than the second acceleration threshold, perform target tracking on the tracked target object. In this case, it is explained that the mobile terminal device normally performs target tracking, that is, the target tracking of the target object can be continued.
在示例性实施方式中,本实施例的S130中根据移动终端的加速度信息的变化值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配还可以包括:In an exemplary embodiment, in S130 of the embodiment, according to the change value of the acceleration information of the mobile terminal, the target tracking or the target matching of the tracked target object may further include:
S135,加速度信息的变化值在统计时间间隔内满足预置条件的次数大于计数阈值时,对目标对象进行目标匹配。 S135. The change value of the acceleration information performs target matching on the target object when the number of times the preset condition is satisfied in the statistical time interval is greater than the count threshold.
在本实施例中,若在统计时间间隔t内,加速度信息的变化值满足预置条件的次数大于计数阈值,则说明移动终端在时间t内发生较频繁且连续的抖动,或者是连续跳过了相邻的几张视屏帧的处理,同样如图5所示,在此种情况下,跟踪算法所跟踪到的目标的ORB特征信息会持续减少,从而导致跟踪出错或跟丢。因此,为了保证目标跟踪的准确性,需要对目标对象进行目标匹配。In this embodiment, if the number of times the change value of the acceleration information satisfies the preset condition is greater than the count threshold within the statistical time interval t, it indicates that the mobile terminal generates frequent and continuous jitter in the time t, or continuously skips. The processing of adjacent video frames is also shown in FIG. 5. In this case, the ORB feature information of the target tracked by the tracking algorithm will continue to decrease, resulting in tracking errors or loss. Therefore, in order to ensure the accuracy of target tracking, target matching needs to be performed on the target object.
其中,本实施例中的预置条件可以为:加速度信息的变化值小于第一加速度阈值且大于第二加速度阈值,每当加速度信息的变化值满足一次预置条件,次数Ncount加1;其中,加速度信息的变化值的计算方式,以及第一加速度阈值和第二加速度阈值的取值都与上述实施例中相同,故在此不再赘述。The preset condition in the embodiment may be: the change value of the acceleration information is smaller than the first acceleration threshold and greater than the second acceleration threshold, and the number of times N count is increased by 1 each time the change value of the acceleration information satisfies a preset condition; The calculation method of the change value of the acceleration information, and the values of the first acceleration threshold and the second acceleration threshold are the same as those in the above embodiment, and therefore will not be described herein.
其中,本实施例中的统计时间间隔t和计数阈值Tacc_up的取值与选取的目标跟踪算法的性能指标相关,以本实施例中的金字塔流光跟踪算法为例予以说明,统计时间间隔t的取值可以为:The value of the statistical time interval t and the count threshold value T acc_up in the present embodiment is related to the performance index of the selected target tracking algorithm, and the pyramid stream stream tracking algorithm in this embodiment is taken as an example to illustrate the statistical time interval t. The value can be:
Figure PCTCN2017079445-appb-000004
之内,计数阈值Tacc_up的取值可以为在
Figure PCTCN2017079445-appb-000005
之内;
in
Figure PCTCN2017079445-appb-000004
Within the count value T acc_up can be
Figure PCTCN2017079445-appb-000005
within;
上式中的vf表示摄像头的帧率大小,fs表示传感器的采用频率。In the above formula, v f represents the frame rate of the camera, and f s represents the frequency of use of the sensor.
需要说明的是,本申请上述实施例中的第一加速度阈值和第二加速度阈值的取值均与选取的目标跟踪算法的性能指标相关,并且本申请实施例中有关计算阈值的取值均是以金字塔流光跟踪算法为例进行说明的。It should be noted that the values of the first acceleration threshold and the second acceleration threshold in the foregoing embodiments of the present application are all related to the performance index of the selected target tracking algorithm, and the values of the calculation thresholds in the embodiments of the present application are The pyramid streamer tracking algorithm is taken as an example for illustration.
在本实施例中,进行目标匹配后的处理方式与图2所示实施例中的S130~S140的处理方式相同,故在此不再赘述。In this embodiment, the processing manner after performing the target matching is the same as the processing manner of S130 to S140 in the embodiment shown in FIG. 2, and therefore no further details are provided herein.
需要说明的是,本实施例中加速度信息的变化值可以等于第一加速度阈值,此时“等于”的情况可以按照“大于第一加速度阈值”的情况处理,也可以按照“小于第一加速度阈值”的情况处理;类似地,该加速度信息的变化值还可以等于第二加速度阈值,此时“等于”的情况可以按照“大于第二加速度阈值”的情况处理,也可以按照“小于第二加速度阈值”的情况处理。It should be noted that, in this embodiment, the change value of the acceleration information may be equal to the first acceleration threshold. In this case, the case of “equal to” may be processed according to the “greater than the first acceleration threshold”, or may be “less than the first acceleration threshold”. Similarly, the change value of the acceleration information may also be equal to the second acceleration threshold. In this case, the case of "equal to" may be processed according to the case of "greater than the second acceleration threshold", or may be "less than the second acceleration". The case of "threshold" processing.
还需要说明的是,上述实施例中的S132、S133、S134和S135为可选的执行方式,为根据加速度信息的变化值的不同情况做出的相应的正确处理方式;另外,匹配处理后的操作为选择性执行的,均是根据目标匹配的结果执 行后续处理的具体方式。It should be noted that S132, S133, S134, and S135 in the foregoing embodiment are optional execution manners, which are corresponding correct processing manners according to different situations of the change value of the acceleration information; The operations are selectively performed, and the results are based on the results of the target matching. The specific way of following up.
在示例性实施方式中,本实施例中S110获取的方向信息可以包括沿坐标系三个轴旋转的方向信息,该方向信息包括第一方向信息、第二方向信息和第三方向信息,其中,第一方向信息和第二方向信息中的一个为沿X轴旋转的方向信息,另一个为沿Y轴旋转的方向信息,第三方向信息为沿Z轴旋转的方向信息,如图6所示,为本发明实施例提供的再一种移动终端目标跟踪方法的流程图,图6为在上述图3所示实施例基础上的进一步描述,图6中仅示出图3所示实施例中S130的整体步骤,未示出S131~S135的具体步骤,S111中获取目标对象的初始ORB特征信息的同时,还可以获取该目标对象的初始方向信息,获取该初始方向信息的具体方式与上述实施例中获取初始ORB特征信息的方式相同,则S120中包括:S140,根据移动终端的方向信息的差值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配;其中,S140可以包括:In an exemplary embodiment, the direction information acquired by the S110 in the embodiment may include direction information that is rotated along three axes of the coordinate system, where the direction information includes first direction information, second direction information, and third direction information, where One of the first direction information and the second direction information is direction information rotated along the X axis, the other is direction information rotated along the Y axis, and the third direction information is direction information rotated along the Z axis, as shown in FIG. A flowchart of still another mobile terminal target tracking method provided by the embodiment of the present invention, FIG. 6 is a further description based on the foregoing embodiment shown in FIG. 3, and FIG. 6 only shows the embodiment shown in FIG. In the overall step of S130, the specific steps of S131 to S135 are not shown, and the initial ORB feature information of the target object is acquired in S111, and the initial direction information of the target object is acquired, and the specific manner of obtaining the initial direction information and the foregoing implementation are also implemented. In the example, the method for obtaining the initial ORB feature information is the same, and the S120 includes: S140, and continues to perform the target on the tracked target object according to the difference of the direction information of the mobile terminal. Or by tracking the target matching; wherein, S140 may comprise:
S141,根据移动终端的当前第一方向信息和初始方向信息计算第一方向信息的差值。S141. Calculate a difference of the first direction information according to the current first direction information and the initial direction information of the mobile terminal.
本实施例中获取的初始方向信息例如为
Figure PCTCN2017079445-appb-000006
Figure PCTCN2017079445-appb-000007
其中,
Figure PCTCN2017079445-appb-000008
表示移动设备绕X轴旋转的角度,
Figure PCTCN2017079445-appb-000009
表示移动设备绕Y轴旋转的角度,
Figure PCTCN2017079445-appb-000010
表示移动设备绕Z轴旋转的角度;本实施例中的第一方向信息例如为沿X轴旋转的方向信息,则第一方向信息的差值为:
Figure PCTCN2017079445-appb-000011
其中,dp表示当前时刻(例如tk时刻)移动终端沿横向轴(即Y轴)转动的角度,
Figure PCTCN2017079445-appb-000012
表示移动终端每次开始执行目标跟踪时沿横向轴的初始转动角度信息。
The initial direction information acquired in this embodiment is, for example,
Figure PCTCN2017079445-appb-000006
with
Figure PCTCN2017079445-appb-000007
among them,
Figure PCTCN2017079445-appb-000008
Indicates the angle at which the mobile device rotates around the X axis.
Figure PCTCN2017079445-appb-000009
Indicates the angle at which the mobile device rotates around the Y axis.
Figure PCTCN2017079445-appb-000010
The angle indicating the rotation of the mobile device about the Z axis; the first direction information in this embodiment is, for example, direction information rotated along the X axis, and the difference of the first direction information is:
Figure PCTCN2017079445-appb-000011
Where d p represents the angle at which the mobile terminal rotates along the lateral axis (ie, the Y axis) at the current time (eg, time t k ),
Figure PCTCN2017079445-appb-000012
Indicates the initial rotation angle information along the horizontal axis each time the mobile terminal starts to perform target tracking.
S142,当第一方向信息的差值大于第一方向阈值时,对目标对象进行目标匹配。S142. Perform target matching on the target object when the difference of the first direction information is greater than the first direction threshold.
在本实施例中,若某一时刻第一方向信息的差值大于第一方向阈值,则说明沿X轴旋转过大而导致目标对象已移出场景,如图7所示,为图6所示实施例提供的移动终端目标跟踪方法中一种方向变化示意图。在图7中的tk=8s附近,移动终端沿传感器坐标轴横向轴(即X轴)旋转了大约50度的角度,这种情况下目标对象已经移出了摄像头的摄像场景。因此,为了保证目标跟踪的准确性,需要对目标对象进行目标匹配。本实施例中,进行目标 匹配后的处理方式与图2所示实施例中的S130~S140的处理方式相同,故在此不再赘述。In this embodiment, if the difference of the first direction information at a certain time is greater than the threshold of the first direction, it indicates that the rotation along the X axis is too large, and the target object has moved out of the scene, as shown in FIG. A schematic diagram of a change in direction of a mobile terminal target tracking method provided by an embodiment. In the vicinity of t k = 8 s in Fig. 7, the mobile terminal is rotated by an angle of about 50 degrees along the lateral axis of the sensor coordinate axis (i.e., the X axis), in which case the target object has moved out of the camera's imaging scene. Therefore, in order to ensure the accuracy of target tracking, target matching needs to be performed on the target object. In this embodiment, the processing manner after the target matching is the same as the processing manner of S130 to S140 in the embodiment shown in FIG. 2, and therefore no further details are provided herein.
若该时刻方向信息的差值小于第一方向阈值且大于第二方向阈值,则说明移动终端设备沿X轴有一个较大但可以忍受的旋转角度,因此,可以继续通过第二方向信息的差值执行后续的处理方式。If the difference of the time direction information is smaller than the first direction threshold and greater than the second direction threshold, it indicates that the mobile terminal device has a large but tolerable rotation angle along the X axis, and therefore, the difference of the second direction information can be continued. The value performs subsequent processing.
其中,本实施例中的第一方向阈值可以为方向变化的上限值,即Torien_x1,其取值可以为:The first direction threshold in this embodiment may be an upper limit value of the direction change, that is, Torien_x1 , and the value may be:
Figure PCTCN2017079445-appb-000013
之内,F表示移动终端上的摄像头的光圈大小。
in
Figure PCTCN2017079445-appb-000013
Within F, F represents the aperture size of the camera on the mobile terminal.
本实施例在S141之后还可以包括:This embodiment may further include after S141:
S143,当第一方向信息的差值小于第二方向阈值时,对所跟踪的目标对象继续进行目标跟踪。S143. When the difference of the first direction information is smaller than the second direction threshold, perform target tracking on the tracked target object.
本实施例中的第二方向阈值可以为方向变化的下限值,即Torien_x2,其取值可以为:The second direction threshold in this embodiment may be a lower limit value of the direction change, that is, Torien_x2 , and the value may be:
Figure PCTCN2017079445-appb-000014
之内,F表示移动终端的摄像头的光圈大小。
in
Figure PCTCN2017079445-appb-000014
Within F, F represents the aperture size of the camera of the mobile terminal.
S144,当第一方向信息的差值小于第一方向阈值且大于第二方向阈值时,根据移动终端的当前第二方向信息和所述初始方向信息计算第二方向信息的差值。S144. When the difference of the first direction information is smaller than the first direction threshold and greater than the second direction threshold, calculate a difference of the second direction information according to the current second direction information of the mobile terminal and the initial direction information.
本实施例中获取的初始方向信息同样为
Figure PCTCN2017079445-appb-000015
Figure PCTCN2017079445-appb-000016
本实施例中的第二方向信息例如为沿Y轴旋转的方向信息,则第二方向信息的差值为:
Figure PCTCN2017079445-appb-000017
其中,dr表示当前时刻(例如tk时刻)移动终端沿纵向轴(即Y轴)转动的角度,
Figure PCTCN2017079445-appb-000018
表示移动终端每次开始执行目标跟踪时沿纵向轴的初始转动角度信息。
The initial direction information obtained in this embodiment is also
Figure PCTCN2017079445-appb-000015
with
Figure PCTCN2017079445-appb-000016
The second direction information in this embodiment is, for example, direction information rotated along the Y axis, and the difference of the second direction information is:
Figure PCTCN2017079445-appb-000017
Where d r represents the angle at which the mobile terminal rotates along the longitudinal axis (ie, the Y axis) at the current time (eg, time t k ),
Figure PCTCN2017079445-appb-000018
Indicates the initial rotation angle information along the longitudinal axis each time the mobile terminal starts performing target tracking.
需要说明的是,本实施例中的S142、S143和S144是选择性执行的,根据S141中计算出的第一方向信息的差值大小择一执行。并且本实施例在S144之后,根据第二方向信息的差值执行后续处理的操作可以包括:It should be noted that S142, S143, and S144 in this embodiment are selectively executed, and are executed according to the difference value of the first direction information calculated in S141. And after the step S144, the performing the subsequent processing according to the difference of the second direction information may include:
S145,当第二方向信息的差值大于第三方向阈值时,对目标对象进行目标匹配。S145: Perform target matching on the target object when the difference between the second direction information is greater than the third direction threshold.
在本实施例中,若某一时刻第二方向信息的差值大于第三方向阈值,则 说明沿Y轴旋转过大而导致目标对象已移出场景,如图8所示,为图6所示实施例提供的移动终端目标跟踪方法中另一种方向变化示意图。在图8中的tk=11s附近,移动终端沿传感器坐标轴纵向轴(即Y轴)旋转了大约100度的角度,这种情况下目标对象已经移出了摄像头的摄像场景。因此,为了保证目标跟踪的准确性,需要对目标对象进行目标匹配。在本实施例中,进行目标匹配后的处理方式与图2所示实施例中的S130~S140的处理方式相同,故在此不再赘述。In this embodiment, if the difference between the second direction information at a certain time is greater than the third direction threshold, the rotation along the Y axis is too large, and the target object has moved out of the scene, as shown in FIG. Another schematic diagram of direction change in the mobile terminal target tracking method provided by the embodiment. In the vicinity of t k =11s in Fig. 8, the mobile terminal is rotated by an angle of about 100 degrees along the longitudinal axis of the sensor coordinate axis (i.e., the Y-axis), in which case the target object has moved out of the camera's imaging scene. Therefore, in order to ensure the accuracy of target tracking, target matching needs to be performed on the target object. In this embodiment, the processing manner after performing the target matching is the same as the processing manner of S130 to S140 in the embodiment shown in FIG. 2, and therefore no further details are provided herein.
若该时刻方向信息的差值小于第三方向阈值且大于第四方向阈值,则说明移动终端设备沿Y轴有一个较大但可以忍受的旋转角度,因此,可以继续通过第三方向信息的差值执行后续的处理方式。If the difference of the time direction information is smaller than the third direction threshold and greater than the fourth direction threshold, the mobile terminal device has a large but tolerable rotation angle along the Y axis, and therefore, the difference of the third direction information can be continued. The value performs subsequent processing.
其中,本实施例中的第三方向阈值可以为方向变化的上限值,即Torien_y1,其取值可以为:The third direction threshold in this embodiment may be an upper limit value of the direction change, that is, Torien_y1 , and the value may be:
Figure PCTCN2017079445-appb-000019
之内,F表示移动终端上的摄像头的光圈大小。
in
Figure PCTCN2017079445-appb-000019
Within F, F represents the aperture size of the camera on the mobile terminal.
本实施例在S144之后还可以包括:This embodiment may further include after S144:
S146,当第二方向信息的差值小于第四方向阈值时,对所跟踪的目标对象继续进行目标跟踪。在该情况中,说明移动终端设备正常执行目标跟踪,即可以继续执行对该目标对象的目标跟踪。S146. When the difference of the second direction information is smaller than the fourth direction threshold, the target tracking continues to be performed on the tracked target object. In this case, it is explained that the mobile terminal device normally performs target tracking, that is, the target tracking of the target object can be continued.
本实施例中的第四方向阈值可以为方向变化的下限值,即Torien_y2,其取值可以为:The fourth direction threshold in this embodiment may be a lower limit value of the direction change, that is, Torien_y2 , and the value may be:
Figure PCTCN2017079445-appb-000020
之内,F表示移动终端的摄像头的光圈大小。
in
Figure PCTCN2017079445-appb-000020
Within F, F represents the aperture size of the camera of the mobile terminal.
S147,当第二方向信息的差值小于第三方向阈值且大于第四方向阈值时,根据移动终端的当前第三方向信息和初始方向信息计算第三方向信息的差值。S147. When the difference of the second direction information is smaller than the third direction threshold and greater than the fourth direction threshold, the difference of the third direction information is calculated according to the current third direction information of the mobile terminal and the initial direction information.
本实施例中获取的初始方向信息同样为
Figure PCTCN2017079445-appb-000021
Figure PCTCN2017079445-appb-000022
本实施例中的第三方向信息为沿Z轴旋转的方向信息,则第三方向信息的差值可以为:
Figure PCTCN2017079445-appb-000023
其中,da表示当前时刻(例如tk时刻)移动终端沿中心轴(即Z轴)转动的角度,
Figure PCTCN2017079445-appb-000024
表示移动终端每次开始执行目标跟踪时沿中心轴的初始转动角度信息。
The initial direction information obtained in this embodiment is also
Figure PCTCN2017079445-appb-000021
with
Figure PCTCN2017079445-appb-000022
The third direction information in this embodiment is direction information rotated along the Z axis, and the difference of the third direction information may be:
Figure PCTCN2017079445-appb-000023
Where d a represents the angle at which the mobile terminal rotates along the central axis (ie, the Z axis) at the current time (eg, time t k ),
Figure PCTCN2017079445-appb-000024
Indicates the initial rotation angle information along the central axis each time the mobile terminal starts to perform target tracking.
需要说明的是,本实施例中的S145、S146和S147是选择性执行的,根 据S144中计算出的第二方向信息的差值大小择一执行。并且本实施例在S147之后,根据第三方向信息的差值执行后续处理的操作可以包括:It should be noted that S145, S146, and S147 in this embodiment are selectively executed. According to the difference value of the second direction information calculated in S144, the difference is performed. And after the step S147, the performing the subsequent processing according to the difference of the third direction information may include:
S148,当第三方向信息的差值小于旋转角度阈值时,对所跟踪的目标对象继续进行目标跟踪。在该情况中,说明移动终端设备正常执行目标跟踪,即可以继续执行对该目标对象的目标跟踪。S148. When the difference of the third direction information is less than the rotation angle threshold, the target tracking of the tracked target object is continued. In this case, it is explained that the mobile terminal device normally performs target tracking, that is, the target tracking of the target object can be continued.
S149,当第三方向信息的差值大于旋转角度阈值时,根据第一方向信息的差值、第二方向信息的差值和第三方向信息的差值计算当前ORB特征信息。S149. When the difference of the third direction information is greater than the rotation angle threshold, the current ORB feature information is calculated according to the difference between the first direction information, the difference of the second direction information, and the difference of the third direction information.
需要说明的是,本实施例中每个方向信息的差值同样可以等于第一方向阈值、第二方向阈值、第三方向阈值、第四方向阈值或旋转角度阈值;并且“等于”的情况可以按照“大于对应阈值”的情况处理,也可以按照“小于对应阈值”的情况处理。另外,本实施例中的S148和S149是选择性执行的,根据S147中计算出的第三方向信息的差值大小择一执行。并且本实施例在S149之后,根据对当前ORB特征信息的计算结果执行后续处理的操作可以包括:It should be noted that, in this embodiment, the difference of each direction information may also be equal to the first direction threshold, the second direction threshold, the third direction threshold, the fourth direction threshold, or the rotation angle threshold; and the “equal to” condition may be According to the case of "greater than the corresponding threshold", it can also be handled according to the case of "less than the corresponding threshold". In addition, S148 and S149 in this embodiment are selectively executed, and are executed according to the difference value of the third direction information calculated in S147. And after the S149, the performing the subsequent processing according to the calculation result of the current ORB feature information may include:
S150,若计算出当前ORB特征信息,根据所计算的当前ORB特征信息对目标对象进行目标跟踪;若未计算出当前ORB特征信息,对目标对象进行目标匹配。S150: If the current ORB feature information is calculated, target tracking is performed on the target object according to the calculated current ORB feature information; if the current ORB feature information is not calculated, target matching is performed on the target object.
在本实施例中,由于沿中心轴旋转的目标对象并不会移出摄像头的摄像场景,但是由于目标跟踪算法的抗旋转的能力有限。当第三方向信息的差值大于目标跟踪算法所能忍受的旋转角度最大值(即旋转角度阈值)时,可以通过上述S141、S144和S147中计算出的第一方向信息的差值dox、第二方向信息的差值doy和第三方向信息的差值doz,得到旋转矩阵R,R的表达式如下:In the present embodiment, since the target object rotating along the central axis does not move out of the imaging scene of the camera, the ability of the target tracking algorithm to resist rotation is limited. When the difference of the third direction information is greater than the maximum value of the rotation angle that the target tracking algorithm can tolerate (ie, the rotation angle threshold), the difference d ox of the first direction information calculated in the above S141, S144, and S147, The difference d oy of the second direction information and the difference d oz of the third direction information obtain the rotation matrix R, and the expression of R is as follows:
Figure PCTCN2017079445-appb-000025
Figure PCTCN2017079445-appb-000025
从而可以根据上述旋转矩阵R和前一时刻的ORB特征信息计算出当前ORB特征信息,可以为:Kt=VQ[R T]Kt-1Therefore, the current ORB feature information can be calculated according to the rotation matrix R and the ORB feature information of the previous moment, which can be: K t =VQ[R T]K t-1 ;
上述当前ORB特征信息的表达式中,
Figure PCTCN2017079445-appb-000026
其中,f表示摄像头的焦距;
Figure PCTCN2017079445-appb-000027
常量ku和kv定义了世界单位中的像素数目,角度
Figure PCTCN2017079445-appb-000028
表示扭曲角度,(uo,v0)则表示图像的主点位置。
In the expression of the current ORB feature information,
Figure PCTCN2017079445-appb-000026
Where f represents the focal length of the camera;
Figure PCTCN2017079445-appb-000027
The constants k u and k v define the number of pixels in the world unit, angle
Figure PCTCN2017079445-appb-000028
Indicates the twist angle, and (u o , v 0 ) indicates the position of the main point of the image.
在本实施例中,若计算出上述当前ORB特征信息,则说明跟踪到目标对象,则可以按照计算的当前ORB特征信息Kt继续执行目标跟踪。同样如图8所示,图8中的tk=9s附近满足该情况。In this embodiment, if the current ORB feature information is calculated, it is indicated that the target object is tracked, and the target tracking can be continued according to the calculated current ORB feature information K t . Also as shown in Fig. 8, this case is satisfied in the vicinity of t k = 9 s in Fig. 8.
需要说明的是,本实施例中旋转角度阈值Torien_z的取值与选取的目标跟踪算法的抗旋转能力相关,以本实施例中的金字塔流光跟踪算法为例予以说明,旋转角度阈值Torien_z的取值通常在
Figure PCTCN2017079445-appb-000029
之间
It should be noted that, in this embodiment, the value of the rotation angle threshold Torien_z is related to the anti-rotation capability of the selected target tracking algorithm, and the pyramid streamer tracking algorithm in this embodiment is taken as an example to illustrate the rotation angle threshold Torien_z . The value is usually
Figure PCTCN2017079445-appb-000029
between
还需要说明的是,图6所示实施例中,可以先根据沿X轴旋转的方向信息的差值确定对目标对象的处理方式,也可以先根据沿Y轴旋转的方向信息的差值确定对目标对象的处理方式,最后根据沿Z轴旋转的方向信息的差值确定对目标对象的处理方式,为根据方向信息的差值的不同情况做出的相应的正确处理方式。另外,图6所示实施例中不限制S130与S140的执行顺序,即不限制根据加速度信息的变化值的不同情况做出处理与根据方向信息的差值的不同情况做出处理的执行顺序,可以是按特定的顺序依次执行的,也可以是并行执行的,图6所示实施例以S130在S140之前执行为例予以示出。It should be noted that, in the embodiment shown in FIG. 6, the processing manner of the target object may be determined according to the difference of the direction information rotated along the X axis, or may be determined according to the difference of the direction information rotated along the Y axis. The processing method of the target object finally determines the processing method of the target object according to the difference of the direction information of the rotation along the Z axis, and is a corresponding correct processing manner according to the difference of the direction information. In addition, the execution sequence of S130 and S140 is not limited in the embodiment shown in FIG. 6, that is, the execution order of processing is not limited according to the different conditions of the change value of the acceleration information, and the processing is performed according to the difference of the direction information. It may be executed sequentially in a specific order, or may be performed in parallel, and the embodiment shown in FIG. 6 is shown by taking S130 before S140 as an example.
图9为本发明实施例提供的还一种移动终端目标跟踪方法的流程图,在上述实施例的基础上,本实施例提供的方法,在对所跟踪的目标对象继续进行目标跟踪之后,还包括:FIG. 9 is a flowchart of still another method for tracking a target of a mobile terminal according to an embodiment of the present invention. On the basis of the foregoing embodiment, after the target tracking is continued on the tracked target object, include:
S150,根据当前ORB特征信息计算当前进行目标跟踪的正确率。S150. Calculate a correct rate of current target tracking according to current ORB feature information.
本实施例在S150之后,根据计算出的当前进行目标跟踪的正确率执行后续处理的操作可以包括:After the S150, the performing the subsequent processing according to the calculated correct rate of the current target tracking may include:
S151,当正确率大于目标阈值时,对所跟踪的目标对象继续进行目标跟踪。在该情况中,说明移动终端设备正常执行目标跟踪,即可以继续执行对 该目标对象的目标跟踪。S151. When the correct rate is greater than the target threshold, the target tracking of the tracked target object is continued. In this case, it is explained that the mobile terminal device performs target tracking normally, that is, the pair can continue to be executed. The target tracking of the target object.
S152,当正确率小于目标阈值时,对目标对象进行目标匹配。S152: Perform target matching on the target object when the correct rate is less than the target threshold.
在本实施例中,若某一时刻执行目标跟踪的正确率小于目标阈值,则说明执行目标跟踪出现问题,即跟丢目标对象。因此,为了保证目标跟踪的准确性,需要对目标对象进行目标匹配。In this embodiment, if the correct rate of performing the target tracking at a certain time is less than the target threshold, it indicates that there is a problem in performing the target tracking, that is, the target object is lost. Therefore, in order to ensure the accuracy of target tracking, target matching needs to be performed on the target object.
其中,本实施例中的进行目标跟踪的正确率可以表示为:The correct rate of performing target tracking in this embodiment can be expressed as:
Figure PCTCN2017079445-appb-000030
Figure PCTCN2017079445-appb-000030
上式中的D是根据具体ORB特征信息设计的距离度量函数,Ki是被跟踪的第i个ORB特征信息,Tr根据具体的度量函数D实验选取。D in the above formula is based on the distance metric function ORB specific design feature information, K i is the i-th feature information is tracked ORB, T r selected according to a specific experiment D metric function.
需要说明的是,本实施例中的S151和S152是选择性执行的,根据S150中计算出的当前进行目标跟踪的正确率择一执行。并且本实施例在S152之后,还可以包括:It should be noted that S151 and S152 in this embodiment are selectively executed, and are performed according to the correct rate of current target tracking calculated in S150. And after the embodiment S152, the embodiment may further include:
S153,若匹配到目标对象,重新对目标对象进行目标跟踪。S153. If the target object is matched, the target object is tracked again.
S154,若未匹配到目标对象,继续对目标对象进行目标匹配。S154. If the target object is not matched, continue to perform target matching on the target object.
在本实施例中,进行目标匹配后的处理方式与图2所示实施例中的S130~S140的处理方式相同,故在此不再赘述。图9所示实施例以在图1所示实例的基础上为例予以示出。In this embodiment, the processing manner after performing the target matching is the same as the processing manner of S130 to S140 in the embodiment shown in FIG. 2, and therefore no further details are provided herein. The embodiment shown in Fig. 9 is shown by way of example on the basis of the example shown in Fig. 1.
还需要说明的是,本实施例中正确率同样可以等于目标阈值,并且“等于”的情况可以按照“大于目标阈值”的情况处理,也可以按照“小于目标阈值”的情况处理。It should be noted that the correct rate in the embodiment may also be equal to the target threshold, and the case of “equal to” may be processed according to the “greater than the target threshold” or may be processed according to the “less than the target threshold”.
下面通过一个实例详细说明本申请实施例提供的移动终端目标跟踪方法的应用场景和应用方式。如图10所示,为本发明实施例提供的还一种移动终端目标跟踪方法的流程图,执行本实施例提供的方法的移动终端配置有加速度传感器、方向传感器和摄像头,本实施例的方法可以包括:The application scenario and application mode of the target tracking method of the mobile terminal provided by the embodiment of the present application are described in detail by using an example. As shown in FIG. 10, it is a flowchart of a method for tracking a target of a mobile terminal according to an embodiment of the present invention. The mobile terminal that performs the method provided in this embodiment is configured with an acceleration sensor, a direction sensor, and a camera. The method in this embodiment is shown in FIG. Can include:
S201,开启移动终端的摄像头。本实施例中的摄像头用于目标跟踪场景中,例如可以在进行目标跟踪时,通过摄像头的场景获取目标对象的当前 ORB特征信息,可以在进行目标匹配时,通过摄像头的场景对初始ORB特征信息对应的目标对象进行匹配。S201. Turn on the camera of the mobile terminal. The camera in this embodiment is used in the target tracking scene. For example, when the target tracking is performed, the current target object is acquired through the scene of the camera. The ORB feature information can match the target object corresponding to the initial ORB feature information through the scene of the camera when performing target matching.
S202,创建两个子线程Thread I与Thread II。本实施例中的子线程Thread I用于进行目标跟踪,子线程Thread II用于进行目标匹配和跟踪恢复。S202, create two child threads Thread I and Thread II. The sub-thread Thread I in this embodiment is used for target tracking, and the sub-thread Thread II is used for target matching and tracking recovery.
S203,启用加速度传感器和方向传感器,实时获取移动终端的加速度信息和方向信息。本实施例中的加速度信息可以包括坐标系三个轴向的加速度信息,并且同样通过该三个轴向的加速度信息可以计算出加速度信息的变化值;方向信息同样可以包括沿坐标系三个轴旋转的方向信息,即第一方向信息、第二方向信息和第三方向信息。S203, the acceleration sensor and the direction sensor are enabled, and the acceleration information and the direction information of the mobile terminal are acquired in real time. The acceleration information in this embodiment may include acceleration information of three axes of the coordinate system, and the change value of the acceleration information may also be calculated by the acceleration information of the three axes; the direction information may also include three axes along the coordinate system. The direction information of the rotation, that is, the first direction information, the second direction information, and the third direction information.
S204,获取目标对象的初始ORB特征信息和初始方向信息。S204. Acquire initial ORB feature information and initial direction information of the target object.
S205,通过子线程Thread I对目标对象进行目标跟踪。在初次打开子线程Thread I并执行目标跟踪时,可以根据初始ORB特征信息对目标对象进行目标跟踪,本实施例同样例如采用金字塔光流跟踪算法。S205: Perform target tracking on the target object by using the sub-thread Thread I. When the sub-thread Thread I is opened for the first time and the target tracking is performed, the target object can be tracked according to the initial ORB feature information. In this embodiment, for example, a pyramid optical flow tracking algorithm is used.
S206,根据移动终端的加速度信息的变化值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配。本实施例中的S206可以包括:S206. Continue to perform target tracking or target matching on the tracked target object according to the change value of the acceleration information of the mobile terminal. S206 in this embodiment may include:
S2061,计算并判断加速度信息的变化值的大小。当加速度信息的变化值大于第一加速度阈值,则执行S2062;当加速度信息的变化值小于第一加速度阈值且大于第二加速度阈值,则执行S2067;当加速度信息的变化值在统计时间间隔内满足预置条件的次数大于计数阈值,同样执行S2062;当加速度信息的变化值小于第二加速度阈值,则执行S2068。S2061: Calculate and determine the magnitude of the change value of the acceleration information. When the change value of the acceleration information is greater than the first acceleration threshold, S2062 is performed; when the change value of the acceleration information is smaller than the first acceleration threshold and greater than the second acceleration threshold, S2067 is performed; when the change value of the acceleration information is satisfied within the statistical time interval The number of preset conditions is greater than the count threshold, and S2062 is also performed; when the change value of the acceleration information is less than the second acceleration threshold, S2068 is executed.
当加速度信息的变化值大于第一加速度阈值时,执行S2062,暂停子线程Thread I的目标跟踪,启用子线程Thread II对目标对象进行目标匹配。在该情况下,说明移动终端设备发生了较大的抖动和位移变化,同样看以参照图4中的tk=6s附近和图5中的tk=18s附近,此时的加速度存在一个或多个较大的陡峭变化。因此,需要对目标对象进行目标匹配。When the change value of the acceleration information is greater than the first acceleration threshold, executing S2062, suspending the target tracking of the sub-thread Thread I, and enabling the sub-thread Thread II to perform target matching on the target object. In this case, a mobile terminal device experiences large displacement and jitter, to see the same vicinity = 6s and t k = 5 in the vicinity Referring to FIG. 4 t k 18s, there is a case of acceleration or Multiple large steep changes. Therefore, a target match needs to be made to the target object.
S2063,判断是否匹配到目标对象。若匹配到目标对象,则执行S2064;若未匹配到目标对象,则执行S2066。S2063: Determine whether the target object is matched. If it matches the target object, S2064 is executed; if the target object is not matched, S2066 is executed.
S2064,更新目标对象的ORB特征信息。 S2064: Update the ORB feature information of the target object.
S2065,根据更新的ORB特征信息重新对目标对象进行目标跟踪,并终止子线程Thread II的目标匹配。S2065, re-targeting the target object according to the updated ORB feature information, and terminating the target matching of the sub-thread Thread II.
S2066,终止子线程Thread I的目标跟踪处理。转到S210(图10未示出S2066转到S210的流程箭头)。S2066, terminating the target tracking process of the child thread Thread I. Go to S210 (Fig. 10 does not show the flow arrow of S2066 to S210).
当加速度信息的变化值小于第一加速度阈值且大于第二加速度阈值时,执行S2067,通过子线程Thread I继续对目标对象进行目标跟踪,并且不处理当前时刻的视屏帧。在该情况下,说明移动终端设备发生了小幅抖动,同样可以参照图3中tk=12s附近的变化示意。When the change value of the acceleration information is smaller than the first acceleration threshold and greater than the second acceleration threshold, S2067 is executed, the target object is continuously tracked by the sub-thread Thread I, and the video frame of the current time is not processed. In this case, it is explained that the mobile terminal device has a small jitter, and it can also be referred to the change in the vicinity of t k = 12 s in Fig. 3 .
当加速度信息的变化值在统计时间间隔内满足预置条件的次数大于计数阈值,同样执行S2062,暂停子线程Thread I的目标跟踪,启用子线程Thread II对目标对象进行目标匹配。在该情况下,说明说明移动终端在时间t内发生较频繁且连续的抖动,或者是连续跳过了相邻的几张视屏帧的处理,同样看以参照图5所述变化示意,跟踪算法所跟踪到的目标的ORB特征信息会持续减少,从而导致跟踪出错或跟丢。因此,需要对目标对象进行目标匹配。When the change value of the acceleration information meets the preset condition in the statistical time interval is greater than the count threshold, the S2062 is also executed, the target tracking of the sub-thread Thread I is suspended, and the sub-thread Thread II is enabled to perform target matching on the target object. In this case, the description explains that the mobile terminal has a relatively frequent and continuous jitter in the time t, or the process of continuously skipping the adjacent several video frames, and also sees the change described with reference to FIG. 5, the tracking algorithm. The ORB feature information of the tracked target will continue to decrease, resulting in tracking errors or loss. Therefore, a target match needs to be made to the target object.
S2062后同样可以执行S2063~S2066;即S2063判断是否匹配到目标对象,若匹配到目标对象,则执行S2064~S2065;若未匹配到目标对象,则执行S2066。S2063 to S2066 can also be executed after S2062; that is, S2063 determines whether the target object is matched, and if it matches the target object, S2064 to S2065 are executed; if the target object is not matched, S2066 is executed.
当加速度信息的变化值小于第二加速度阈值时,执行S2068,通过子线程Thread I继续对目标对象进行目标跟踪。When the change value of the acceleration information is less than the second acceleration threshold, S2068 is executed, and the target object is continuously tracked by the sub-thread Thread I.
S207,判断上述S206中是否跟踪到目标对象。若跟踪到,则执行S208,若未跟踪到,则执行S210。S207. Determine whether the target object is tracked in the above S206. If it is tracked, S208 is executed, and if it is not tracked, S210 is executed.
S208,根据移动终端的方向信息的差值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配。本实施例中的S208可以包括:S208. Continue to perform target tracking or target matching on the tracked target object according to the difference of the direction information of the mobile terminal. S208 in this embodiment may include:
S2081,计算并判断第一方向信息的差值的大小。本实施例中的第一方向信息的差值同样例如为沿X轴旋转的方向信息的差值,当第一方向信息的差值大于第一方向阈值,则执行S2082;当第一方向信息的差值小于第一方向阈值且大于第二方向阈值,则执行S2083;当第一方向信息的差值小于第二方向阈值,则执行S2086。 S2081: Calculate and determine the magnitude of the difference of the first direction information. The difference of the first direction information in this embodiment is also, for example, the difference of the direction information rotated along the X axis. When the difference of the first direction information is greater than the first direction threshold, S2082 is performed; when the first direction information is If the difference is smaller than the first direction threshold and greater than the second direction threshold, then S2083 is performed; when the difference of the first direction information is smaller than the second direction threshold, S2086 is performed.
当第一方向信息的差值大于第一方向阈值时,执行S2082,终止子线程Thread I的目标跟踪。随后转到S210(图10未示出S2082转到S210的流程箭头)。在该情况下,沿X轴旋转过大而导致目标对象已移出场景,同样看以参照图7中的tk=8s附近,移动终端沿传感器坐标轴横向轴(即X轴)旋转了大约50度的角度,这种情况下目标对象已经移出了摄像头的摄像场景。因此,需要对目标对象进行目标匹配。When the difference of the first direction information is greater than the first direction threshold, S2082 is executed to terminate the target tracking of the sub-thread Thread I. Then, it goes to S210 (FIG. 10 does not show the flow arrow of S2082 to S210). In this case, the rotation along the X axis is too large to cause the target object to move out of the scene. Similarly, referring to the vicinity of t k =8s in FIG. 7, the mobile terminal is rotated by about 50 along the lateral axis of the sensor coordinate axis (ie, the X axis). Angle of view, in this case the target object has moved out of the camera's camera scene. Therefore, a target match needs to be made to the target object.
本实施例中S2081的判断结果为第一方向信息的差值小于第一方向阈值且大于第二方向阈值,则需要根据第二方向信息的差值对目标对象进行目标跟踪或者进行目标匹配。If the result of the determination in S2081 is that the difference between the first direction information is smaller than the first direction threshold and greater than the second direction threshold, the target object needs to be tracked or matched according to the difference of the second direction information.
即本实施例的S2081之后还可以包括:That is, after S2081 in this embodiment, the method may further include:
S2083,计算并判断第二方向信息的差值的大小。本实施例中的第二方向信息的差值同样例如为沿Y轴旋转的方向信息的差值,当第二方向信息的差值大于第三方向阈值,则执行S2082;当第二方向信息的差值小于第三方向阈值且大于第四方向阈值,则执行S2084;当第二方向信息的差值小于第四方向阈值,则执行S2086。S2083. Calculate and determine the magnitude of the difference of the second direction information. The difference of the second direction information in this embodiment is also, for example, the difference of the direction information rotated along the Y axis. When the difference of the second direction information is greater than the third direction threshold, S2082 is performed; when the second direction information is If the difference is smaller than the third direction threshold and greater than the fourth direction threshold, then S2084 is performed; when the difference of the second direction information is smaller than the fourth direction threshold, S2086 is performed.
本实施例中S2083的判断结果为第二方向信息的差值小于第三方向阈值且大于第四方向阈值,则需要根据第三方向信息的差值对目标对象进行目标跟踪或者进行目标匹配。In the embodiment, the result of the determination in S2083 is that the difference between the second direction information is smaller than the third direction threshold and greater than the fourth direction threshold, and the target object needs to be tracked or matched according to the difference of the third direction information.
即本实施例中的S2083之后还可以包括:That is, after S2083 in this embodiment, the method may further include:
S2084,计算并判断第三方向信息的差值的大小。本实施例中的第三方向信息的差值同样例如为沿Z轴旋转的方向信息的差值,当第三方向信息的差值大于旋转角度阈值,则执行S2085;当第三方向信息的差值小于旋转角度阈值,则执行S2086。S2084: Calculate and determine the magnitude of the difference of the third direction information. The difference of the third direction information in this embodiment is also, for example, the difference of the direction information rotated along the Z axis. When the difference of the third direction information is greater than the rotation angle threshold, S2085 is performed; when the difference of the third direction information If the value is less than the rotation angle threshold, S2086 is executed.
S2085,计算目标对象的当前ORB特征信息,并通过子线程Thread I继续进行目标跟踪。此时,可以通过所计算的当前ORB特征信息对目标对象进行目标跟踪。S2085: Calculate current ORB feature information of the target object, and continue target tracking by the sub-thread Thread I. At this time, the target object can be tracked by the calculated current ORB feature information.
S2086,通过子线程Thread I继续对目标对象进行目标跟踪。S2086, the target tracking of the target object is continued through the sub-thread Thread I.
S209,判断S208中是否跟踪到目标对象。若跟踪到,则返回执行S205, 若未跟踪到,则执行S210。S209. Determine whether the target object is tracked in S208. If it is tracked, it returns to execution S205. If not, the process proceeds to S210.
S210,通过子线程Thread II对目标对象进行匹配。随后,继续判断是否匹配到目标对象;若匹配到目标对象,执行方式与S2064~S2065相同;若未匹配到目标对象,则继续匹配目标对象。S210, matching the target object by the sub-thread Thread II. Then, it is determined whether the target object is matched; if the target object is matched, the execution manner is the same as S2064 to S2065; if the target object is not matched, the target object is continuously matched.
本发明实施例针对已有技术的不足,以及移动终端在商业应用中对目标跟踪所需的性能要求,提出了一种基于传感器信息融合的移动终端目标跟踪方法。本实施例充分利用加速度传感器与方向传感器,实时获取移动终端的加速度信息与方向信息。并且创建两个子线程,其中一个子线程用于目标跟踪,选取金字塔光流跟踪算法,该跟踪算法具有很好的实时性与稳定性;另外一个线程用于进行目标匹配定位,当跟踪失败时调用启用该线程达到校正与重新恢复目标跟踪的目的,从而使本实施例能具有较好的可靠性与鲁棒性。利用加速度传感器信息与方向传感器信息来适时地合理地调度目标跟踪线程与匹配校正线程,以使本实施例能同时能满足实时性、可靠性与鲁棒性的性能要求。其优点主要表现在以下几个方面:The embodiments of the present invention address the shortcomings of the prior art and the performance requirements of the mobile terminal for target tracking in a commercial application, and propose a mobile terminal tracking method based on sensor information fusion. In this embodiment, the acceleration sensor and the direction sensor are fully utilized, and the acceleration information and the direction information of the mobile terminal are acquired in real time. And create two sub-threads, one of which is used for target tracking, select pyramid optical flow tracking algorithm, the tracking algorithm has good real-time and stability; another thread is used for target matching positioning, when the tracking fails, it is called The thread is enabled to achieve the purpose of correcting and restoring the target tracking, so that the embodiment can have better reliability and robustness. The acceleration sensor information and the direction sensor information are used to timely and reasonably schedule the target tracking thread and the matching correction thread, so that the embodiment can satisfy the performance requirements of real-time, reliability and robustness at the same time. Its advantages are mainly reflected in the following aspects:
第一,利用加速度传感器感知移动终端是否发生了较大抖动,若发生较大抖动,及时调整目标跟踪,从而实现了算法较强的稳定性和可靠性性能。First, the acceleration sensor is used to sense whether the mobile terminal has large jitter. If a large jitter occurs, the target tracking is adjusted in time, thereby achieving strong stability and reliability performance of the algorithm.
第二,利用方向传感器感知移动终端是否绕中心轴发生了较大旋转,以适时地调用匹配校正线程,达到很强的抗旋转性。Secondly, the direction sensor is used to sense whether the mobile terminal has undergone a large rotation around the central axis, so as to timely call the matching correction thread to achieve strong anti-rotation.
第三,利用方向传感器感知移动终端是否绕纵向轴或横向轴旋转,而导致目标移出摄像头的视场范围。此时,及时调用匹配校正线程重新匹配定位目标,以重新恢复目标跟踪,从而获得了较强的鲁棒性能。Third, the direction sensor is used to sense whether the mobile terminal rotates around the longitudinal or lateral axis, causing the target to move out of the field of view of the camera. At this time, the matching correction thread is called in time to re-match the positioning target to restore the target tracking, thereby obtaining strong robust performance.
图11为本发明实施例提供的一种移动终端目标跟踪装置的结构示意图。本实施例提供的移动终端目标跟踪装置适用于移动终端执行目标跟踪的情况中,该移动终端目标跟踪装置通过硬件和软件结合的方式来实现,该装置可以集成在移动终端的处理器中,供处理器调用使用。如图11所示,本实施例的移动终端目标跟踪装置包括:相连接的获取模块11和目标处理模块12。FIG. 11 is a schematic structural diagram of a target tracking device of a mobile terminal according to an embodiment of the present invention. The mobile terminal target tracking device provided in this embodiment is applicable to the case where the mobile terminal performs target tracking, and the mobile terminal target tracking device is implemented by combining hardware and software, and the device may be integrated in the processor of the mobile terminal for The processor calls are used. As shown in FIG. 11, the mobile terminal target tracking apparatus of this embodiment includes: a connected acquisition module 11 and a target processing module 12.
其中,获取模块11,配置为能够通过移动终端的加速度传感器和方向传感器实时获取移动终端的加速度信息和方向信息。 The acquiring module 11 is configured to acquire acceleration information and direction information of the mobile terminal in real time through the acceleration sensor and the direction sensor of the mobile terminal.
本发明实施例提供的移动终端目标跟踪装置,为设置于移动终端中用于执行目标跟踪的装置,本实施例的移动终端中通常配置有加速度传感器和方向传感器。通过该两个传感器可以实时获取到移动终端的加速度信息和方向信息,本实施例通过实时获取的加速度信息和方向信息为依据,作为实现目标跟踪算法中对性能指标要求的基础。The mobile terminal target tracking device provided by the embodiment of the present invention is a device that is disposed in the mobile terminal for performing target tracking. The mobile terminal in this embodiment is generally configured with an acceleration sensor and a direction sensor. The acceleration information and the direction information of the mobile terminal can be obtained in real time by using the two sensors. The present embodiment is based on the acceleration information and the direction information acquired in real time, and serves as a basis for realizing the requirements of the performance index in the target tracking algorithm.
本申请实施例基于移动终端具有移动性的特点,充分利用移动终端中配置的加速器传感器和方向传感器,获取可以体现移动终端移动性的数据信息,以便后续根据这些数据信息在执行目标跟踪的过程中适时地调整执行跟踪的方式。The embodiment of the present application is based on the mobility characteristics of the mobile terminal, and fully utilizes the accelerator sensor and the direction sensor configured in the mobile terminal to obtain data information that can reflect the mobility of the mobile terminal, so as to subsequently perform target tracking according to the data information. Adjust the way you perform tracking in a timely manner.
目标处理模块12,配置为能够分别根据移动终端的加速度信息的变化值和方向信息的差值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配。The target processing module 12 is configured to continue target tracking or target matching to the tracked target object according to the difference between the change value of the acceleration information of the mobile terminal and the direction information.
在本实施例中,与相关技术中的目标跟踪方式不同的是,可以分别通过上述获取的加速度信息的变化值和方向信息的差值,对跟踪的目标对象进行目标跟踪或者进行目标匹配。本实施例中通过方向信息的差值进行目标跟踪或目标匹配的方式与上述通过加速度信息的变化值进行目标跟踪或目标匹配的方式类似,都是在跟踪成功的情况下继续执行目标跟踪,在跟踪出现问题的情况下进行目标匹配,以重新获取跟踪的目标对象。In this embodiment, different from the target tracking mode in the related art, the target object to be tracked may be subjected to target tracking or target matching by using the difference value of the acquired acceleration information and the difference of the direction information. In this embodiment, the manner of performing target tracking or target matching by using the difference of the direction information is similar to the manner of performing target tracking or target matching by using the change value of the acceleration information, and the target tracking is continued when the tracking is successful. Target matching in case of tracking problems to regain the tracked target object.
本实施例在具体实现中,获取模块11,还配置为能够在目标处理模块12对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配之前,获取目标对象的初始ORB特征信息;相应地,目标处理模块12,还配置为能够根据获取模块11获取的初始ORB特征信息对目标对象进行目标跟踪。本实施例中的移动终端通常具有摄像头,在执行目标跟踪前需要打开该摄像头,在摄像头的跟踪场景图像中确定目标对象并获取该目标对象的初始ORB特征信息,从而可以根据获取的初始ORB特征信息中对目标对象进行跟踪。In the specific implementation, the obtaining module 11 is further configured to obtain the initial ORB feature information of the target object before the target processing module 12 continues to perform target tracking or target matching on the tracked target object; correspondingly, the target The processing module 12 is further configured to perform target tracking on the target object according to the initial ORB feature information acquired by the obtaining module 11. The mobile terminal in this embodiment usually has a camera, and needs to open the camera before performing target tracking, determine a target object in the tracking scene image of the camera, and obtain initial ORB feature information of the target object, so that the initial ORB feature can be obtained according to the obtained The target object is tracked in the message.
需要说明的是,本实施例中获取初始ORB特征信息的方式例如可以为FAST、SIFT、SURF、ORB、BRISK、MSER或GFTT等;本申请实施例中采用的目标跟踪算法与相关技术中类似,例如可以为金字塔光流跟踪算法(pyramid Lucas–Kanade,简称为:PyrLK)、OAB、L1APG或CT等,本申 请以下各实施例以金字塔光流跟踪算法为例予以说明。It should be noted that the method for obtaining the initial ORB feature information in this embodiment may be, for example, FAST, SIFT, SURF, ORB, BRISK, MSER, or GFTT, etc. The target tracking algorithm used in the embodiment of the present application is similar to the related art. For example, it can be a pyramid light flow tracking algorithm (pyramid Lucas-Kanade, referred to as: PyrLK), OAB, L1APG or CT, etc. The following embodiments are described by taking a pyramid optical flow tracking algorithm as an example.
本发明实施例提供的移动终端目标跟踪装置用于执行图1所示实施例提供的移动终端目标跟踪方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。The target tracking device of the mobile terminal provided by the embodiment of the present invention is used to perform the target tracking method of the mobile terminal provided by the embodiment shown in FIG. 1 , and has a corresponding function module, and the implementation principle and the technical effect thereof are similar, and details are not described herein again.
在示例性实施方式中,上述图11所示实施例在具体实现中,目标处理模块12配置为能够通过以下方式分别根据移动终端的加速度信息的变化值和方向信息的差值,对所跟踪的目标对象进行目标匹配:根据移动终端的加速度信息的变化值或方向信息的差值,以及获取模块11获取的初始ORB特征信息对目标对象进行目标匹配;该目标处理模块12,还配置为能够在对所跟踪的目标对象进行目标匹配之后,若匹配到目标对象,更新目标对象的ORB特征信息,并根据更新的ORB特征信息重新对目标对象进行目标跟踪;若未匹配到目标对象,继续根据初始ORB特征信息对目标对象进行目标匹配。In an exemplary embodiment, in the specific implementation of the foregoing embodiment, the target processing module 12 is configured to be capable of tracking the tracking value according to the difference between the change value of the acceleration information of the mobile terminal and the direction information, respectively. The target object performs target matching: target matching is performed on the target object according to the difference value of the acceleration information of the mobile terminal or the difference of the direction information, and the initial ORB feature information acquired by the obtaining module 11; the target processing module 12 is further configured to be capable of After the target matching is performed on the tracked target object, if the target object is matched, the ORB feature information of the target object is updated, and the target object is tracked again according to the updated ORB feature information; if the target object is not matched, the initial target is continued. The ORB feature information performs target matching on the target object.
需要说明的是,本申请以下各实施例中进行目标匹配的参考信息均为初次获取的初始ORB特征信息,若匹配不到目标对象,则继续根据初始ORB特征信息进行匹配;以下实施例中均不具体说明进行目标匹配的具体方式。It should be noted that the reference information for performing target matching in the following embodiments of the present application is the initial ORB feature information obtained for the first time. If the target object is not matched, the matching is continued according to the initial ORB feature information; The specific way of performing target matching is not specified.
本发明实施例提供的移动终端目标跟踪装置用于执行图2所示实施例提供的移动终端目标跟踪方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。The target tracking device of the mobile terminal provided by the embodiment of the present invention is used to perform the target tracking method of the mobile terminal provided by the embodiment shown in FIG. 2, and has a corresponding function module, and the implementation principle and the technical effect are similar, and details are not described herein again.
本发明实施例在具体实现中,获取模块11获取的加速度信息可以包括坐标系三个轴向的加速度信息,如图12所示,为本发明实施例提供的另一种移动终端目标跟踪装置的结构示意图。在上述图11所示实施例的基础上,本实施例中目标处理模块12配置为能够根据移动终端的加速度信息的变化值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配的具体方式可以为:该目标处理模块12包括:两两相连接的目标匹配单元13、目标跟踪单元14和计算单元15,在示例性实施方式中,本实施例中的目标匹配单元13、目标跟踪单元14和计算单元15分别与获取模块11相连接;其中,计算单元15,配置为能够通过获取模块11获取的三个轴向的加速度信息计算得到加速度信息的变化值;目标匹配单元13,配置为能够在计算单元15计算出的加速度信息的变化值大于第一加速度阈值时,对目标对象进行目标匹配;目标跟 踪单元14,配置为能够在目标匹配单元13匹配到目标对象时,重新对目标对象进行目标跟踪;相应地,目标匹配单元13,还配置为能够在未匹配到目标对象时,继续对目标对象进行目标匹配。本实施例同样可以参照图4中的tk=6s附近和图5中的tk=18s附近,加速度存在一个或多个较大的陡峭变化,说明此时移动终端发生了一个较大的抖动和位移变化。因此,为了保证目标跟踪的准确性,需要对目标对象进行目标匹配。In an embodiment of the present invention, the acceleration information acquired by the acquiring module 11 may include three axial acceleration information of the coordinate system, as shown in FIG. 12, which is another mobile terminal target tracking device provided by the embodiment of the present invention. Schematic. On the basis of the foregoing embodiment shown in FIG. 11 , the target processing module 12 in this embodiment is configured to be capable of performing target tracking or target matching on the tracked target object according to the change value of the acceleration information of the mobile terminal. The target processing module 12 includes: a target matching unit 13 connected to the two-phase, a target tracking unit 14, and a computing unit 15. In an exemplary embodiment, the target matching unit 13 and the target tracking unit 14 in this embodiment And the calculation unit 15 is connected to the acquisition module 11 respectively; wherein the calculation unit 15 is configured to calculate the change value of the acceleration information by the three axial acceleration information acquired by the acquisition module 11; the target matching unit 13 is configured to be capable of When the change value of the acceleration information calculated by the calculation unit 15 is greater than the first acceleration threshold, target matching is performed on the target object; and the target tracking unit 14 is configured to be able to re-target the target object when the target matching unit 13 matches the target object. Target tracking; accordingly, the target matching unit 13 is also configured to be able to When assigned to a target object, continue to match the target audience. In this embodiment, reference may also be made to the vicinity of t k =6s in FIG. 4 and t k =18s in FIG. 5, and one or more large steep changes occur in the acceleration, indicating that a large jitter occurs in the mobile terminal at this time. And displacement changes. Therefore, in order to ensure the accuracy of target tracking, target matching needs to be performed on the target object.
在示例性实施方式中,本实施例中目标处理模块12配置为能够根据移动终端的加速度信息的变化值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配的具体方式还可以为:目标跟踪单元14,还配置为能够在计算单元15计算出的加速度信息的变化值小于第二加速度阈值时,对所跟踪的目标对象继续进行目标跟踪;目标跟踪单元14,还配置为能够在计算单元15计算出的加速度信息的变化值小于第一加速度阈值且大于第二加速度阈值时,对所跟踪的目标对象继续进行目标跟踪,并且不处理当前时刻的视屏帧。本实施例同样可以参照图4中的tk=12s附近,视屏帧的灰度值变化较大,虽然可以通过目标跟踪算法跟踪上目标对象,但跟踪上的ORB特征信息在此时刻会产生较多异常值,不利于后续时刻的目标跟踪,此时可以继续对目标对象进行跟踪,但需要跳过对当前时刻的视屏帧的处理。In an exemplary embodiment, in the embodiment, the target processing module 12 is configured to be capable of performing target tracking or target matching on the tracked target object according to the change value of the acceleration information of the mobile terminal. The tracking unit 14 is further configured to continue target tracking on the tracked target object when the change value of the acceleration information calculated by the calculation unit 15 is smaller than the second acceleration threshold; the target tracking unit 14 is further configured to be in the calculation unit When the calculated change value of the acceleration information is smaller than the first acceleration threshold and greater than the second acceleration threshold, the target tracking is continued for the tracked target object, and the video frame of the current time is not processed. Present in the vicinity of Example 4 t k = 12s can be referred to FIG Screen frame gradation values vary widely, although a target tracking algorithm can track the target object, but the information on the ORB tracking feature at this time produces more Multiple outliers are not conducive to target tracking at subsequent times. At this time, the target object can be tracked, but the processing of the current time frame frame needs to be skipped.
在示例性实施方式中,本实施例中目标处理模块12配置为能够根据移动终端的加速度信息的变化值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配;目标匹配单元13,还配置为能够在计算单元15计算出的加速度信息的变化值在统计时间间隔内满足预置条件的次数大于计数阈值时,对目标对象进行目标匹配,其中,预置条件为:小于第一加速度阈值且大于第二加速度阈值;目标跟踪单元14,还配置为能够在目标匹配单元13匹配到目标对象时,重新对目标对象进行目标跟踪;目标匹配单元13,还配置为能够在未匹配到目标对象时,继续对目标对象进行目标匹配。本实施例同样可以参照图5,跟踪算法所跟踪到的目标的ORB特征信息会持续减少,从而导致跟踪出错或跟丢。因此,为了保证目标跟踪的准确性,需要对目标对象进行目标匹配。In an exemplary embodiment, the target processing module 12 is configured to continue target tracking or target matching on the tracked target object according to the change value of the acceleration information of the mobile terminal; the target matching unit 13 is further configured. If the number of times the change value of the acceleration information calculated by the calculation unit 15 satisfies the preset condition in the statistical time interval is greater than the count threshold, the target object is matched, wherein the preset condition is: less than the first acceleration threshold and More than the second acceleration threshold; the target tracking unit 14 is further configured to be able to perform target tracking on the target object when the target matching unit 13 matches the target object; the target matching unit 13 is further configured to be able to match the target object when not , continue to target matching the target object. In this embodiment, referring to FIG. 5, the ORB feature information of the target tracked by the tracking algorithm may continue to decrease, thereby causing tracking errors or loss. Therefore, in order to ensure the accuracy of target tracking, target matching needs to be performed on the target object.
本发明实施例提供的移动终端目标跟踪装置用于执行图3所示实施例提 供的移动终端目标跟踪方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。The target tracking device of the mobile terminal provided by the embodiment of the present invention is used to execute the embodiment shown in FIG. The target tracking method of the provided mobile terminal has a corresponding function module, and its implementation principle and technical effect are similar, and will not be described here.
在示例性实施方式中,本实施例中获取模块11获取的方向信息可以包括沿坐标系三个轴旋转的方向信息,该方向信息包括第一方向信息、第二方向信息和第三方向信息,其中,第一方向信息和第二方向信息中的一个为沿X轴旋转的方向信息,另一个为沿Y轴旋转的方向信息,第三方向信息为沿Z轴旋转的方向信息,如图13所示,为本发明实施例提供的又一种移动终端目标跟踪装置的结构示意图,在上述图11所述实施例的基础上,获取模块11获取目标对象的初始ORB特征信息的同时,还可以获取该目标对象的初始方向信息,本实施例中目标处理模块12配置为能够根据移动终端的方向信息的差值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配;该目标处理模块12包括:相连接的计算单元15和目标处理单元16,本实施例中的计算单元15与获取模块11相连接;其中,计算单元15,配置为能够根据移动终端的当前第一方向信息和初始方向信息计算第一方向信息的差值;相应地,目标处理单元16,配置为能够在计算单元15计算出的第一方向信息的差值大于第一方向阈值时,对目标对象进行目标匹配;目标处理单元16,还配置为能够在计算单元15计算出的第一方向信息的差值小于第二方向阈值时,对所跟踪的目标对象继续进行目标跟踪;计算单元15和目标处理单元16,还配置为能够在计算单元15计算出的第一方向信息的差值小于第一方向阈值且大于第二方向阈值时,根据第二方向信息的差值对目标对象进行目标跟踪或者进行目标匹配。In an exemplary embodiment, the direction information acquired by the acquiring module 11 in this embodiment may include direction information rotated along three axes of the coordinate system, where the direction information includes first direction information, second direction information, and third direction information. Wherein, one of the first direction information and the second direction information is direction information rotated along the X axis, the other is direction information rotated along the Y axis, and the third direction information is direction information rotated along the Z axis, as shown in FIG. 13 A schematic diagram of a structure of a target tracking device for a mobile terminal according to an embodiment of the present invention. On the basis of the foregoing embodiment of FIG. 11, the acquiring module 11 obtains initial ORB feature information of a target object, and may also Obtaining the initial direction information of the target object, in this embodiment, the target processing module 12 is configured to continue to perform target tracking or target matching on the tracked target object according to the difference of the direction information of the mobile terminal; the target processing module 12 The calculation unit 15 and the target processing unit 16 are connected, and the calculation unit 15 in the embodiment is connected to the acquisition module 11. The calculation unit 15 is configured to be able to calculate the difference of the first direction information according to the current first direction information and the initial direction information of the mobile terminal; correspondingly, the target processing unit 16 is configured to be calculated by the calculation unit 15 When the difference between the one direction information is greater than the first direction threshold, the target object is matched with the target object; and the target processing unit 16 is further configured to be able to calculate that the difference between the first direction information calculated by the calculating unit 15 is smaller than the second direction threshold. Performing target tracking on the tracked target object; the calculating unit 15 and the target processing unit 16 are further configured to be able to calculate that the difference of the first direction information calculated by the calculating unit 15 is smaller than the first direction threshold and greater than the second direction threshold And performing target tracking or target matching on the target object according to the difference of the second direction information.
在示例性实施方式中,计算单元15和目标处理单元16配置为能够通过以下方式根据第二方向信息的差值对目标对象进行目标跟踪或者进行目标匹配:计算单元15,还配置为能够根据移动终端的当前第二方向信息和初始方向信息计算第二方向信息的差值;目标处理单元16,还配置为能够在计算单元15计算出的第二方向信息的差值大于第三方向阈值时,对目标对象进行目标匹配;目标处理单元16,还配置为能够在计算单元15计算出的第二方向信息的差值小于第四方向阈值时,对所跟踪的目标对象继续进行目标跟踪;计算单元15和目标处理单元16,还配置为能够在计算单元15计算出的第二 方向信息的差值小于第三方向阈值且大于第四方向阈值时,根据第三方向信息的差值对目标对象进行目标跟踪或者进行目标匹配。In an exemplary embodiment, the computing unit 15 and the target processing unit 16 are configured to be capable of target tracking or target matching of the target object according to the difference of the second direction information in the following manner: the computing unit 15 is further configured to be capable of moving according to the The current second direction information of the terminal and the initial direction information are used to calculate a difference between the second direction information; the target processing unit 16 is further configured to be able to determine that the difference between the second direction information calculated by the calculating unit 15 is greater than the third direction threshold. Performing target matching on the target object; the target processing unit 16 is further configured to continue target tracking on the tracked target object when the difference of the second direction information calculated by the calculating unit 15 is smaller than the fourth direction threshold; 15 and target processing unit 16, also configured as a second that can be calculated at computing unit 15 When the difference of the direction information is smaller than the third direction threshold and greater than the fourth direction threshold, the target object is subjected to target tracking or target matching according to the difference of the third direction information.
在示例性实施方式中,计算单元15和目标处理单元16配置为能够通过以下方式根据第三方向信息的差值对目标对象进行目标跟踪或者进行目标匹配:计算单元15,还配置为能够根据移动终端的当前第三方向信息和初始方向信息计算第三方向信息的差值;目标处理单元16,还配置为能够在计算单元15计算出的第三方向信息的差值小于旋转角度阈值时,对所跟踪的目标对象继续进行目标跟踪;计算单元15,还配置为能够在第三方向信息的差值大于旋转角度阈值时,根据第一方向信息的差值、第二方向信息的差值和第三方向信息的差值计算当前ORB特征信息;目标处理单元16,还配置为能够在计算单元15计算出当前ORB特征信息时,根据该当前ORB特征信息对目标对象进行目标跟踪,在计算单元15未计算出当前ORB特征信息时,对目标对象进行目标匹配。In an exemplary embodiment, the computing unit 15 and the target processing unit 16 are configured to be capable of target tracking or target matching of the target object according to the difference of the third direction information in the following manner: the computing unit 15 is further configured to be capable of moving according to the The current third direction information of the terminal and the initial direction information calculate a difference value of the third direction information; the target processing unit 16 is further configured to be able to calculate, when the difference of the third direction information calculated by the calculating unit 15 is smaller than the rotation angle threshold, The tracked target object continues to perform target tracking; the calculating unit 15 is further configured to be capable of, according to the difference between the first direction information and the difference of the second direction information, when the difference of the third direction information is greater than the rotation angle threshold The difference between the three directions information is used to calculate the current ORB feature information; the target processing unit 16 is further configured to be able to perform target tracking on the target object according to the current ORB feature information when the calculating unit 15 calculates the current ORB feature information, in the calculating unit 15 When the current ORB feature information is not calculated, the target object is matched.
本发明实施例提供的移动终端目标跟踪装置用于执行图6所示实施例提供的移动终端目标跟踪方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。The target tracking device of the mobile terminal provided by the embodiment of the present invention is configured to perform the target tracking method of the mobile terminal provided by the embodiment shown in FIG. 6 and has a corresponding function module, and the implementation principle and the technical effect are similar, and details are not described herein again.
在上述各实施例的基础上,如图14所示,为本发明实施例提供的再一种移动终端目标跟踪装置的结构示意图,本实施例以在图11所示实施例的基础上为例予以示出,本实施例中的移动终端目标跟踪装置还包括:与目标处理模块12相连接的计算模块17,配置为能够在目标处理模块12对所跟踪的目标对象继续进行目标跟踪之后,根据当前ORB特征信息计算当前进行目标跟踪的正确率;并且本实施例中的目标处理模块12同样包括:相连接的目标匹配单元13和目标跟踪单元14,本实施例中的目标匹配单元13和目标跟踪单元14分别与获取模块11相连接;其中,目标跟踪单元14,配置为能够在计算模块17计算出的正确率大于目标阈值时,对所跟踪的目标对象继续进行目标跟踪;目标匹配单元13,配置为能够在计算模块17计算出的正确率小于目标阈值时,对目标对象进行目标匹配;进一步地,目标跟踪单元14,配置为能够在目标匹配单元13匹配到目标对象时,对目标对象进行目标跟踪;目标匹配单元13,还配置为能够在未匹配到目标对象时,继续对目标对象进 行目标匹配。On the basis of the foregoing embodiments, as shown in FIG. 14, a schematic structural diagram of another mobile terminal target tracking apparatus according to an embodiment of the present invention is provided. This embodiment is based on the embodiment shown in FIG. It is to be noted that the mobile terminal target tracking device in this embodiment further includes: a calculation module 17 connected to the target processing module 12, configured to be able to continue the target tracking of the tracked target object after the target processing module 12 continues, according to The current ORB feature information calculates the correct rate of the current target tracking; and the target processing module 12 in this embodiment also includes: the connected target matching unit 13 and the target tracking unit 14, the target matching unit 13 and the target in this embodiment. The tracking unit 14 is respectively connected to the acquisition module 11; wherein the target tracking unit 14 is configured to continue target tracking on the tracked target object when the correct rate calculated by the calculation module 17 is greater than the target threshold; the target matching unit 13 Configuring to target the target object when the correct rate calculated by the calculation module 17 is less than the target threshold Further, the target tracking unit 14 is configured to be capable of performing target tracking on the target object when the target matching unit 13 matches the target object; the target matching unit 13 is further configured to continue to match the target object when not matched Target object Line target matching.
在具体实现中,图11到图14所示实施例中的获取模块11和目标处理模块12可以通过终端设备的处理器来实现,其中的每个单元和子单元同样可以通过终端设备的处理器来实现,该处理器例如可以是一个中央处理器(Central Processing Unit,简称为:CPU),或者是特定集成电路(Application Specific Integrated Circuit,简称为:ASIC),或者是完成实施本发明实施例的一个或多个集成电路。In a specific implementation, the obtaining module 11 and the target processing module 12 in the embodiment shown in FIG. 11 to FIG. 14 can be implemented by a processor of the terminal device, wherein each unit and sub-unit can also be processed by the processor of the terminal device. The processor may be, for example, a central processing unit (CPU), or an application specific integrated circuit (ASIC), or an implementation of the embodiment of the present invention. Or multiple integrated circuits.
图15为本发明实施例提供的一种移动终端的结构示意图。本实施例提供的移动终端适用于移动终端执行目标跟踪的情况中,该移动终端中配置有摄像头31、加速度传感器32、方向传感器33和移动终端目标跟踪装置34,其中,移动终端目标跟踪装置可以为上述图11到图14中所示任一实施例提供的移动终端目标跟踪装置,并且,该移动终端目标跟踪装置34分别与摄像头31、加速度传感器32和方向传感器33相连接。本实施例的移动终端中的各实体装置执行目标跟踪的方式,与上述图11到图14所示实施例中对应实体装置执行目标跟踪的方式相同,同样用于执行图1到图10所示任一实施例提供的移动终端目标跟踪方法,具备相应的实体装置,其实现原理和技术效果类似,此处不再赘述。FIG. 15 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. The mobile terminal provided in this embodiment is applicable to a case where the mobile terminal performs target tracking, where the mobile terminal is configured with a camera 31, an acceleration sensor 32, a direction sensor 33, and a mobile terminal target tracking device 34, wherein the mobile terminal target tracking device can The mobile terminal target tracking device provided in any of the above-described embodiments shown in FIGS. 11 to 14, and the mobile terminal target tracking device 34 is connected to the camera 31, the acceleration sensor 32, and the direction sensor 33, respectively. The manner in which each entity device in the mobile terminal in this embodiment performs target tracking is the same as the manner in which the corresponding entity device performs target tracking in the embodiment shown in FIG. 11 to FIG. 14 , and is also used to perform the operations shown in FIG. 1 to FIG. 10 . The mobile terminal target tracking method provided by any embodiment is provided with a corresponding physical device, and the implementation principle and the technical effect are similar, and details are not described herein again.
此外,本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现上述移动终端目标跟踪方法。In addition, an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, where the computer executable instructions are executed by a processor to implement the mobile terminal target tracking method.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可以通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明实施例不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware (e.g., a processor), which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function. Embodiments of the invention are not limited to any specific form of combination of hardware and software.
虽然本申请所揭露的实施方式如上,但所述的内容仅为便于理解本申请 而采用的实施方式,并非用以限定本申请。任何本申请所属领域内的技术人员,在不脱离本申请所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本申请的专利保护范围,仍须以所附的权利要求书所界定的范围为准。Although the embodiments disclosed in the present application are as above, the content described is only for facilitating understanding of the present application. The embodiments adopted are not intended to limit the application. Any modifications and changes in the form and details of the embodiments may be made by those skilled in the art without departing from the spirit and scope of the disclosure. The scope defined by the appended claims shall prevail.
工业实用性Industrial applicability
本申请实施例提供一种移动终端目标跟踪处理方法、装置和移动终端,通过利用移动终端的加速度传感器和方向传感器,可以实现对跟踪对象的适时调整,从而保证跟踪对象的准确性,即本发明实施例解决了相关技术中移动终端的目标跟踪方法,由于将现有的目标跟踪算法直接应用到移动终端上,而导致目标跟踪的实时性、可靠性和鲁棒性等性能较差的问题。 The embodiment of the present invention provides a mobile terminal target tracking processing method, apparatus, and mobile terminal. By using the acceleration sensor and the direction sensor of the mobile terminal, timely adjustment of the tracking object can be realized, thereby ensuring the accuracy of the tracking object, that is, the present invention. The embodiment solves the problem of the target tracking method of the mobile terminal in the related art. Since the existing target tracking algorithm is directly applied to the mobile terminal, the performance of the target tracking is poor in real-time performance, reliability, and robustness.

Claims (21)

  1. 一种移动终端目标跟踪方法,包括:A mobile terminal target tracking method includes:
    通过移动终端的加速度传感器和方向传感器实时获取所述移动终端的加速度信息和方向信息;Obtaining acceleration information and direction information of the mobile terminal in real time by using an acceleration sensor and a direction sensor of the mobile terminal;
    分别根据所述移动终端的加速度信息的变化值和方向信息的差值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配。And performing target tracking or target matching on the tracked target object according to the difference between the change value of the acceleration information of the mobile terminal and the direction information, respectively.
  2. 根据权利要求1所述的移动终端目标跟踪方法,所述对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配之前,上述移动终端目标跟踪方法还包括:The mobile terminal target tracking method according to claim 1, wherein the target tracking method of the mobile terminal further includes:
    获取所述目标对象的初始ORB特征信息;Obtaining initial ORB feature information of the target object;
    根据所获取的初始ORB特征信息对所述目标对象进行目标跟踪。Target tracking is performed on the target object according to the obtained initial ORB feature information.
  3. 根据权利要求2所述的移动终端目标跟踪方法,其中,所述分别根据所述移动终端的加速度信息的变化值和方向信息的差值,对所跟踪的目标对象进行目标匹配,包括:The target tracking method of the mobile terminal according to claim 2, wherein the target matching is performed on the tracked target object according to the difference between the change value of the acceleration information of the mobile terminal and the direction information, respectively:
    根据所述移动终端的加速度信息的变化值或方向信息的差值,以及所述初始ORB特征信息对所述目标对象进行目标匹配;Performing target matching on the target object according to a change value of the acceleration information of the mobile terminal or a difference value of the direction information, and the initial ORB feature information;
    所述对所跟踪的目标对象进行目标匹配之后,上述移动终端目标跟踪方法还包括:After the target matching is performed on the tracked target object, the mobile terminal target tracking method further includes:
    若匹配到所述目标对象,更新所述目标对象的ORB特征信息,并根据更新的ORB特征信息重新对所述目标对象进行目标跟踪;If the target object is matched, the ORB feature information of the target object is updated, and the target object is re-targeted according to the updated ORB feature information;
    若未匹配到所述目标对象,继续根据所述初始ORB特征信息对所述目标对象进行目标匹配。If the target object is not matched, the target matching is continued to be performed according to the initial ORB feature information.
  4. 根据权利要求1~3中任一项所述的移动终端目标跟踪方法,其中,所述加速度信息包括坐标系三个轴向的加速度信息;所述根据所述移动终端的加速度信息的变化值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配,包括:The mobile terminal target tracking method according to any one of claims 1 to 3, wherein the acceleration information includes three axial acceleration information of a coordinate system; and the change value according to the acceleration information of the mobile terminal, Continue target tracking or target matching for the tracked target, including:
    通过所述三个轴向的加速度信息计算得到所述加速度信息的变化值; Calculating a change value of the acceleration information by using the three axial acceleration information;
    当所述加速度信息的变化值大于第一加速度阈值时,对所述目标对象进行目标匹配;When the change value of the acceleration information is greater than the first acceleration threshold, performing target matching on the target object;
    若匹配到所述目标对象,重新对所述目标对象进行目标跟踪;If the target object is matched, the target object is re-targeted;
    若未匹配到所述目标对象,继续对所述目标对象进行目标匹配。If the target object is not matched, the target matching is continued on the target object.
  5. 根据权利要求1~3中任一项所述的移动终端目标跟踪方法,其中,所述加速度信息包括坐标系三个轴向的加速度信息;所述根据所述移动终端的加速度信息的变化值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配,包括:The mobile terminal target tracking method according to any one of claims 1 to 3, wherein the acceleration information includes three axial acceleration information of a coordinate system; and the change value according to the acceleration information of the mobile terminal, Continue target tracking or target matching for the tracked target, including:
    通过所述三个轴向的加速度信息计算得到所述加速度信息的变化值;Calculating a change value of the acceleration information by using the three axial acceleration information;
    当所述加速度信息的变化值小于第二加速度阈值时,对所跟踪的目标对象继续进行目标跟踪;When the change value of the acceleration information is less than the second acceleration threshold, the target tracking is continued on the tracked target object;
    当所述加速度信息的变化值小于第一加速度阈值且大于所述第二加速度阈值时,对所跟踪的目标对象继续进行目标跟踪,并且不处理当前时刻的视屏帧。When the change value of the acceleration information is smaller than the first acceleration threshold and greater than the second acceleration threshold, target tracking is continued on the tracked target object, and the video frame of the current time is not processed.
  6. 根据权利要求1~3中任一项所述的移动终端目标跟踪方法,其中,所述加速度信息包括坐标系三个轴向的加速度信息;所述根据加速度信息的变化值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配,包括:The mobile terminal target tracking method according to any one of claims 1 to 3, wherein the acceleration information includes acceleration information of three axes of a coordinate system; and the changed target according to the change value of the acceleration information The object continues to target tracking or target matching, including:
    通过所述三个轴向的加速度信息计算得到所述加速度信息的变化值;Calculating a change value of the acceleration information by using the three axial acceleration information;
    所述加速度信息的变化值在统计时间间隔内满足预置条件的次数大于计数阈值时,对所述目标对象进行目标匹配,其中,所述预置条件为:小于第一加速度阈值且大于第二加速度阈值;When the change value of the acceleration information is greater than the count threshold in the statistical time interval, the target object is matched to the target object, wherein the preset condition is: less than the first acceleration threshold and greater than the second Acceleration threshold
    若匹配到所述目标对象,重新对所述目标对象进行目标跟踪;If the target object is matched, the target object is re-targeted;
    若未匹配到所述目标对象,继续对所述目标对象进行目标匹配。If the target object is not matched, the target matching is continued on the target object.
  7. 根据权利要求1~3中任一项所述的移动终端目标跟踪方法,其中,所述方向信息包括沿坐标系三个轴旋转的方向信息,所述方向信息包括第一方向信息、第二方向信息和第三方向信息,其中,所述第一方向信息和所述第二方向信息中的一个为沿X轴旋转的方向信息,另一个为沿Y轴旋转的方向信息,所述第三方向信息为沿Z轴旋转的方向信息; The mobile terminal target tracking method according to any one of claims 1 to 3, wherein the direction information includes direction information rotated along three axes of the coordinate system, the direction information including first direction information and second direction Information and third direction information, wherein one of the first direction information and the second direction information is direction information rotated along the X axis, and the other is direction information rotated along the Y axis, the third direction The information is direction information rotated along the Z axis;
    所述根据所述移动终端的方向信息的差值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配之前,上述移动终端目标跟踪方法还包括:The mobile terminal target tracking method further includes: before the target tracking is performed on the tracked target object, or the target matching is performed according to the difference of the direction information of the mobile terminal, the mobile terminal target tracking method further includes:
    获取所述目标对象的初始方向信息;Obtaining initial direction information of the target object;
    所述根据所述方向信息的差值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配,包括:Performing target tracking or performing target matching on the tracked target object according to the difference of the direction information, including:
    根据所述移动终端的当前第一方向信息和所述初始方向信息计算第一方向信息的差值;Calculating a difference value of the first direction information according to the current first direction information of the mobile terminal and the initial direction information;
    当所述第一方向信息的差值大于第一方向阈值时,对所述目标对象进行目标匹配;And performing target matching on the target object when a difference between the first direction information is greater than a first direction threshold;
    当所述第一方向信息的差值小于第二方向阈值时,对所跟踪的目标对象继续进行目标跟踪;When the difference of the first direction information is smaller than the second direction threshold, the target tracking continues to be performed on the tracked target object;
    当所述第一方向信息的差值小于所述第一方向阈值且大于所述第二方向阈值时,根据所述第二方向信息的差值对所述目标对象进行目标跟踪或者进行目标匹配。When the difference of the first direction information is smaller than the first direction threshold and greater than the second direction threshold, target tracking or target matching is performed on the target object according to the difference of the second direction information.
  8. 根据权利要求7所述的移动终端目标跟踪方法,其中,所述根据所述第二方向信息的差值对所述目标对象进行目标跟踪或者进行目标匹配,包括:The mobile terminal target tracking method according to claim 7, wherein the performing target tracking or target matching on the target object according to the difference value of the second direction information comprises:
    根据所述移动终端的当前第二方向信息和所述初始方向信息计算第二方向信息的差值;Calculating a difference value of the second direction information according to the current second direction information of the mobile terminal and the initial direction information;
    当所述第二方向信息的差值大于第三方向阈值时,对所述目标对象进行目标匹配;And performing target matching on the target object when a difference between the second direction information is greater than a third direction threshold;
    当所述第二方向信息的差值小于第四方向阈值时,对所跟踪的目标对象继续进行目标跟踪;When the difference of the second direction information is smaller than the fourth direction threshold, the target tracking continues to be performed on the tracked target object;
    当所述第二方向信息的差值小于所述第三方向阈值且大于所述第四方向阈值时,根据所述第三方向信息的差值对所述目标对象进行目标跟踪或者进行目标匹配。When the difference of the second direction information is smaller than the third direction threshold and greater than the fourth direction threshold, target tracking or target matching is performed on the target object according to the difference of the third direction information.
  9. 根据权利要求8所述的移动终端目标跟踪方法,其中,所述根据所述第三方向信息的差值对所述目标对象进行目标跟踪或者进行目标匹配,包括: The mobile terminal target tracking method according to claim 8, wherein the performing target tracking or target matching on the target object according to the difference value of the third direction information comprises:
    根据所述移动终端的当前第三方向信息和所述初始方向信息计算第三方向信息的差值;Calculating a difference value of the third direction information according to the current third direction information of the mobile terminal and the initial direction information;
    当所述第三方向信息的差值小于旋转角度阈值时,对所跟踪的目标对象继续进行目标跟踪;When the difference of the third direction information is less than the rotation angle threshold, the target tracking is continued on the tracked target object;
    当所述第三方向信息的差值大于所述旋转角度阈值时,根据所述第一方向信息的差值、所述第二方向信息的差值和所述第三方向信息的差值计算当前ORB特征信息;When the difference of the third direction information is greater than the rotation angle threshold, calculating a current value according to the difference between the first direction information, the difference between the second direction information, and the difference of the third direction information ORB feature information;
    若计算出所述当前ORB特征信息,根据所计算的当前ORB特征信息对所述目标对象进行目标跟踪;If the current ORB feature information is calculated, target tracking is performed on the target object according to the calculated current ORB feature information;
    若未计算出所述当前ORB特征信息,对所述目标对象进行目标匹配。If the current ORB feature information is not calculated, target matching is performed on the target object.
  10. 根据权利要求1~3中任一项所述的移动终端目标跟踪方法,所述对所跟踪的目标对象继续进行目标跟踪之后,上述移动终端目标跟踪方法还包括:The target tracking method of the mobile terminal according to any one of claims 1 to 3, after the target tracking of the tracked target object is continued, the target tracking method of the mobile terminal further includes:
    根据当前ORB特征信息计算当前进行目标跟踪的正确率;Calculating the correct rate of current target tracking based on current ORB feature information;
    当所述正确率大于所述目标阈值时,对所跟踪的目标对象继续进行目标跟踪;When the correct rate is greater than the target threshold, the target tracking is continued on the tracked target object;
    当所述正确率小于目标阈值时,对所述目标对象进行目标匹配;Performing target matching on the target object when the correct rate is less than a target threshold;
    若匹配到所述目标对象,重新对所述目标对象进行目标跟踪;If the target object is matched, the target object is re-targeted;
    若未匹配到所述目标对象,继续对所述目标对象进行目标匹配。If the target object is not matched, the target matching is continued on the target object.
  11. 一种移动终端目标跟踪装置,包括:相连接的获取模块和目标处理模块;A mobile terminal target tracking device includes: a connected acquisition module and a target processing module;
    所述获取模块,配置为能够通过移动终端的加速度传感器和方向传感器实时获取所述移动终端的加速度信息和方向信息;The acquiring module is configured to acquire acceleration information and direction information of the mobile terminal in real time through an acceleration sensor and a direction sensor of the mobile terminal;
    目标处理模块,配置为能够分别根据所述移动终端的加速度信息的变化值和方向信息的差值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配。The target processing module is configured to continue target tracking or target matching to the tracked target object according to the difference between the change value of the acceleration information of the mobile terminal and the direction information.
  12. 根据权利要求11所述的移动终端目标跟踪装置,其中,所述获取模 块,还配置为能够在所述目标处理模块对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配之前,获取所述目标对象的初始ORB特征信息;The mobile terminal target tracking device according to claim 11, wherein said acquisition mode The block is further configured to obtain initial ORB feature information of the target object before the target processing module continues target tracking or target matching on the tracked target object;
    所述目标处理模块,还配置为能够根据所述获取模块获取的初始ORB特征信息对所述目标对象进行目标跟踪。The target processing module is further configured to perform target tracking on the target object according to the initial ORB feature information acquired by the acquiring module.
  13. 根据权利要求12所述的移动终端目标跟踪装置,其中,所述目标处理模块配置为能够通过以下方式分别根据所述移动终端的加速度信息的变化值和方向信息的差值,对所跟踪的目标对象进行目标匹配:根据所述移动终端的加速度信息的变化值或方向信息的差值,以及所述获取模块获取的初始ORB特征信息对所述目标对象进行目标匹配;The mobile terminal target tracking device according to claim 12, wherein the target processing module is configured to be capable of tracking the target according to a difference between the change value of the acceleration information of the mobile terminal and the direction information, respectively, in the following manner Performing target matching by the object: performing target matching on the target object according to a change value of the acceleration information of the mobile terminal or a difference value of the direction information, and initial ORB feature information acquired by the acquiring module;
    所述目标处理模块,还配置为能够在对所跟踪的目标对象进行目标匹配之后,若匹配到所述目标对象,更新所述目标对象的ORB特征信息,并根据更新的ORB特征信息重新对所述目标对象进行目标跟踪;若未匹配到所述目标对象,继续根据所述初始ORB特征信息对所述目标对象进行目标匹配。The target processing module is further configured to: after matching the target object that is tracked, if the target object is matched, update the ORB feature information of the target object, and re-align the information according to the updated ORB feature information. The target object performs target tracking; if the target object is not matched, the target matching is continued to be performed according to the initial ORB feature information.
  14. 根据权利要求11~13中任一项所述的移动终端目标跟踪装置,其中,所述加速度信息包括坐标系三个轴向的加速度信息;所述目标处理模块包括:两两相连接的计算单元、目标匹配单元和目标跟踪单元;The mobile terminal target tracking device according to any one of claims 11 to 13, wherein the acceleration information comprises acceleration information of three axes of a coordinate system; the target processing module comprises: two-two connected computing units , target matching unit and target tracking unit;
    所述计算单元,配置为能够通过所述获取模块获取的三个轴向的加速度信息计算得到所述加速度信息的变化值;The calculating unit is configured to calculate a change value of the acceleration information by using three axial acceleration information acquired by the acquiring module;
    所述目标匹配单元,配置为能够在所述计算单元计算出的加速度信息的变化值大于第一加速度阈值时,对所述目标对象进行目标匹配;The target matching unit is configured to perform target matching on the target object when a change value of the acceleration information calculated by the calculating unit is greater than a first acceleration threshold;
    所述目标跟踪单元,配置为能够在所述目标匹配单元匹配到所述目标对象时,重新对所述目标对象进行目标跟踪;The target tracking unit is configured to be able to perform target tracking on the target object when the target matching unit matches the target object;
    所述目标匹配单元,还配置为能够在未匹配到所述目标对象时,继续对所述目标对象进行目标匹配。The target matching unit is further configured to continue to perform target matching on the target object when the target object is not matched.
  15. 根据权利要求11~13中任一项所述的移动终端目标跟踪装置,其中,所述加速度信息包括坐标系三个轴向的加速度信息;所述目标处理模块包括:相连接的计算单元和目标跟踪单元; The mobile terminal target tracking device according to any one of claims 11 to 13, wherein the acceleration information comprises acceleration information of three axes of a coordinate system; the target processing module comprises: a connected computing unit and a target Tracking unit
    所述计算单元,配置为能够通过所述获取模块获取的三个轴向的加速度信息计算得到所述加速度信息的变化值;The calculating unit is configured to calculate a change value of the acceleration information by using three axial acceleration information acquired by the acquiring module;
    所述目标跟踪单元,配置为能够在所述计算单元计算出的加速度信息的变化值小于第二加速度阈值时,对所跟踪的目标对象继续进行目标跟踪;The target tracking unit is configured to continue to perform target tracking on the tracked target object when the change value of the acceleration information calculated by the calculating unit is less than the second acceleration threshold;
    所述目标跟踪单元,还配置为能够在所述计算单元计算出的加速度信息的变化值小于第一加速度阈值且大于所述第二加速度阈值时,对所跟踪的目标对象继续进行目标跟踪,并且不处理当前时刻的视屏帧。The target tracking unit is further configured to continue to perform target tracking on the tracked target object when the change value of the acceleration information calculated by the calculation unit is smaller than the first acceleration threshold and greater than the second acceleration threshold, and The video frame at the current time is not processed.
  16. 根据权利要求11~13中任一项所述的移动终端目标跟踪装置,其中,所述加速度信息包括坐标系三个轴向的加速度信息;所述目标处理模块包括:两两相连接的计算单元、目标匹配单元和目标跟踪单元;The mobile terminal target tracking device according to any one of claims 11 to 13, wherein the acceleration information comprises acceleration information of three axes of a coordinate system; the target processing module comprises: two-two connected computing units , target matching unit and target tracking unit;
    所述计算单元,配置为能够通过所述获取模块获取的三个轴向的加速度信息计算得到所述加速度信息的变化值;The calculating unit is configured to calculate a change value of the acceleration information by using three axial acceleration information acquired by the acquiring module;
    所述目标匹配单元,配置为能够在所述计算单元计算出的加速度信息的变化值在统计时间间隔内满足预置条件的次数大于计数阈值时,对所述目标对象进行目标匹配,其中,所述预置条件为:小于第一加速度阈值且大于第二加速度阈值;The target matching unit is configured to perform target matching on the target object when the change value of the acceleration information calculated by the calculating unit meets the preset condition in the statistical time interval is greater than the counting threshold. The preset condition is: less than the first acceleration threshold and greater than the second acceleration threshold;
    所述目标跟踪单元,配置为能够在所述目标匹配单元匹配到所述目标对象时,重新对所述目标对象进行目标跟踪;The target tracking unit is configured to be able to perform target tracking on the target object when the target matching unit matches the target object;
    所述目标匹配单元,还配置为能够在未匹配到所述目标对象时,继续对所述目标对象进行目标匹配。The target matching unit is further configured to continue to perform target matching on the target object when the target object is not matched.
  17. 根据权利要求11~13中任一项所述的移动终端目标跟踪装置,其中,所述方向信息包括沿坐标系三个轴旋转的方向信息,所述方向信息包括第一方向信息、第二方向信息和第三方向信息,其中,所述第一方向信息和所述第二方向信息中的一个为沿X轴旋转的方向信息,另一个为沿Y轴旋转的方向信息,所述第三方向信息为沿Z轴旋转的方向信息;The mobile terminal target tracking device according to any one of claims 11 to 13, wherein the direction information includes direction information rotated along three axes of a coordinate system, the direction information including first direction information and second direction Information and third direction information, wherein one of the first direction information and the second direction information is direction information rotated along the X axis, and the other is direction information rotated along the Y axis, the third direction The information is direction information rotated along the Z axis;
    所述获取模块,还配置为能够在所述目标处理模块根据所述移动终端的方向信息的差值,对所跟踪的目标对象继续进行目标跟踪或者进行目标匹配之前,获取所述目标对象的初始方向信息; The acquiring module is further configured to: before the target processing module continues to perform target tracking or target matching on the tracked target object according to a difference value of the direction information of the mobile terminal, acquiring an initial of the target object Direction information
    所述目标处理模块包括:相连接的计算单元和目标处理单元;The target processing module includes: a connected computing unit and a target processing unit;
    所述计算单元,配置为能够根据所述移动终端的当前第一方向信息和所述初始方向信息计算第一方向信息的差值;The calculating unit is configured to calculate a difference value of the first direction information according to the current first direction information of the mobile terminal and the initial direction information;
    所述目标处理单元,配置为能够在所述计算单元计算出的第一方向信息的差值大于第一方向阈值时,对所述目标对象进行目标匹配;The target processing unit is configured to perform target matching on the target object when a difference between the first direction information calculated by the calculating unit is greater than a first direction threshold;
    所述目标处理单元,还配置为能够在所述计算单元计算出的第一方向信息的差值小于第二方向阈值时,对所跟踪的目标对象继续进行目标跟踪;The target processing unit is further configured to continue to perform target tracking on the tracked target object when the difference between the first direction information calculated by the calculating unit is less than the second direction threshold;
    所述计算单元和所述目标处理单元,还配置为能够在所述计算单元计算出的第一方向信息的差值小于所述第一方向阈值且大于所述第二方向阈值时,根据所述第二方向信息的差值对所述目标对象进行目标跟踪或者进行目标匹配。The calculating unit and the target processing unit are further configured to be capable of, when the difference of the first direction information calculated by the calculating unit is smaller than the first direction threshold and greater than the second direction threshold, according to the The difference of the second direction information performs target tracking or target matching on the target object.
  18. 根据权利要求17所述的移动终端目标跟踪装置,其中,所述计算单元和所述目标处理单元配置为能够通过以下方式根据所述第二方向信息的差值对所述目标对象进行目标跟踪或者进行目标匹配:The mobile terminal target tracking device according to claim 17, wherein the calculation unit and the target processing unit are configured to be capable of performing target tracking on the target object according to a difference value of the second direction information or Target matching:
    所述计算单元,还配置为能够根据所述移动终端的当前第二方向信息和所述初始方向信息计算第二方向信息的差值;The calculating unit is further configured to calculate a difference value of the second direction information according to the current second direction information of the mobile terminal and the initial direction information;
    所述目标处理单元,还配置为能够在所述计算单元计算出的第二方向信息的差值大于第三方向阈值时,对所述目标对象进行目标匹配;The target processing unit is further configured to perform target matching on the target object when a difference between the second direction information calculated by the calculating unit is greater than a third direction threshold;
    所述目标处理单元,还配置为能够在所述计算单元计算出的第二方向信息的差值小于第四方向阈值时,对所跟踪的目标对象继续进行目标跟踪;The target processing unit is further configured to continue to perform target tracking on the tracked target object when the difference between the second direction information calculated by the calculating unit is less than the fourth direction threshold;
    所述计算单元和所述目标处理单元,还配置为能够在所述计算单元计算出的第二方向信息的差值小于所述第三方向阈值且大于所述第四方向阈值时,根据所述第三方向信息的差值对所述目标对象进行目标跟踪或者进行目标匹配。The calculating unit and the target processing unit are further configured to be configured to be capable of, when the difference between the second direction information calculated by the calculating unit is smaller than the third direction threshold and greater than the fourth direction threshold, according to the The difference of the third direction information performs target tracking or target matching on the target object.
  19. 根据权利要求18所述的移动终端目标跟踪装置,其中,所述计算单元和所述目标处理单元配置为能够通过以下方式根据所述第三方向信息的差值对所述目标对象进行目标跟踪或者进行目标匹配:The mobile terminal target tracking device according to claim 18, wherein the calculation unit and the target processing unit are configured to be capable of performing target tracking on the target object according to a difference value of the third direction information or Target matching:
    所述计算单元,还配置为能够根据所述移动终端的当前第三方向信息和 所述初始方向信息计算第三方向信息的差值;The calculating unit is further configured to be capable of being based on current third direction information of the mobile terminal and The initial direction information calculates a difference value of the third direction information;
    所述目标处理单元,还配置为能够在所述计算单元计算出的第三方向信息的差值小于旋转角度阈值时,对所跟踪的目标对象继续进行目标跟踪;The target processing unit is further configured to continue to perform target tracking on the tracked target object when the difference between the third direction information calculated by the calculating unit is less than the rotation angle threshold;
    所述计算单元,还配置为能够在所述第三方向信息的差值大于所述旋转角度阈值时,根据所述第一方向信息的差值、所述第二方向信息的差值和所述第三方向信息的差值计算当前ORB特征信息;The calculating unit is further configured to: according to the difference between the first direction information, the difference of the second direction information, and the difference when the difference of the third direction information is greater than the rotation angle threshold Calculating the current ORB feature information by the difference of the third direction information;
    所述目标处理单元,还配置为能够根据在所述计算单元计算出所述当前ORB特征信息时,根据所述当前ORB特征信息对所述目标对象进行目标跟踪;The target processing unit is further configured to be capable of performing target tracking on the target object according to the current ORB feature information when the current ORB feature information is calculated by the calculating unit;
    所述目标处理单元,还配置为能够根据在所述计算单元未计算出所述当前ORB特征信息时,对所述目标对象进行目标匹配。The target processing unit is further configured to perform target matching on the target object according to when the current ORB feature information is not calculated by the computing unit.
  20. 根据权利要求11~13中任一项所述的移动终端目标跟踪装置,所述移动终端目标跟踪装置还包括:与所述目标处理模块相连接的计算模块,配置为能够在所述目标处理模块对所跟踪的目标对象继续进行目标跟踪之后,根据当前ORB特征信息计算当前进行目标跟踪的正确率;The mobile terminal target tracking device according to any one of claims 11 to 13, wherein the mobile terminal target tracking device further comprises: a calculation module connected to the target processing module, configured to be capable of being in the target processing module After the target tracking is continued on the tracked target object, the correct rate of the current target tracking is calculated according to the current ORB feature information;
    所述目标处理模块包括:相连接的目标匹配单元和目标跟踪单元;The target processing module includes: a connected target matching unit and a target tracking unit;
    所述目标跟踪单元,配置为能够在所述计算模块计算出的正确率大于目标阈值时,对所跟踪的目标对象继续进行目标跟踪;The target tracking unit is configured to continue to perform target tracking on the tracked target object when the calculated correct rate is greater than the target threshold;
    所述目标匹配单元,配置为能够在所述计算模块计算出的正确率小于目标阈值时,对所述目标对象进行目标匹配;The target matching unit is configured to perform target matching on the target object when a correct rate calculated by the calculation module is less than a target threshold;
    所述目标跟踪单元,配置为能够在所述目标匹配单元匹配到所述目标对象时,重新对所述目标对象进行目标跟踪;The target tracking unit is configured to be able to perform target tracking on the target object when the target matching unit matches the target object;
    所述目标匹配单元,还配置为能够在未匹配到所述目标对象时,继续对所述目标对象进行目标匹配。The target matching unit is further configured to continue to perform target matching on the target object when the target object is not matched.
  21. 一种移动终端,所述移动终端中配置有摄像头、加速度传感器和方向传感器,以及如权利要求11~20中任一项所述的移动终端目标跟踪装置;A mobile terminal, wherein the mobile terminal is provided with a camera, an acceleration sensor, and a direction sensor, and the mobile terminal target tracking device according to any one of claims 11 to 20;
    其中,所述移动终端目标跟踪装置分别与所述摄像头、所述加速度传感器和所述方向传感器相连接。 The mobile terminal target tracking device is respectively connected to the camera, the acceleration sensor and the direction sensor.
PCT/CN2017/079445 2016-04-05 2017-04-05 Mobile terminal target tracking method, device, and mobile terminal WO2017173977A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610206810.1 2016-04-05
CN201610206810.1A CN107291216A (en) 2016-04-05 2016-04-05 A kind of mobile terminal method for tracking target, device and mobile terminal

Publications (1)

Publication Number Publication Date
WO2017173977A1 true WO2017173977A1 (en) 2017-10-12

Family

ID=60000215

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/079445 WO2017173977A1 (en) 2016-04-05 2017-04-05 Mobile terminal target tracking method, device, and mobile terminal

Country Status (2)

Country Link
CN (1) CN107291216A (en)
WO (1) WO2017173977A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110675432B (en) * 2019-10-11 2022-11-08 杭州云栖智慧视通科技有限公司 Video multi-target tracking method based on multi-dimensional feature fusion

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051836A (en) * 2012-12-14 2013-04-17 中兴通讯股份有限公司 Anti-shake photographing method and anti-shake photographing device for mobile terminal
CN103259962A (en) * 2013-04-17 2013-08-21 深圳市捷顺科技实业股份有限公司 Target tracking method and related device
US20140270484A1 (en) * 2013-03-14 2014-09-18 Nec Laboratories America, Inc. Moving Object Localization in 3D Using a Single Camera
CN104200487A (en) * 2014-08-01 2014-12-10 广州中大数字家庭工程技术研究中心有限公司 Target tracking method based on ORB characteristics point matching
CN104197932A (en) * 2014-09-26 2014-12-10 哈尔滨工业大学 Praxeology-based position tracking method
US20150310601A1 (en) * 2014-03-07 2015-10-29 Digimarc Corporation Methods and arrangements for identifying objects
CN105447459A (en) * 2015-11-18 2016-03-30 上海海事大学 Unmanned plane automation detection target and tracking method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051836A (en) * 2012-12-14 2013-04-17 中兴通讯股份有限公司 Anti-shake photographing method and anti-shake photographing device for mobile terminal
US20140270484A1 (en) * 2013-03-14 2014-09-18 Nec Laboratories America, Inc. Moving Object Localization in 3D Using a Single Camera
CN103259962A (en) * 2013-04-17 2013-08-21 深圳市捷顺科技实业股份有限公司 Target tracking method and related device
US20150310601A1 (en) * 2014-03-07 2015-10-29 Digimarc Corporation Methods and arrangements for identifying objects
CN104200487A (en) * 2014-08-01 2014-12-10 广州中大数字家庭工程技术研究中心有限公司 Target tracking method based on ORB characteristics point matching
CN104197932A (en) * 2014-09-26 2014-12-10 哈尔滨工业大学 Praxeology-based position tracking method
CN105447459A (en) * 2015-11-18 2016-03-30 上海海事大学 Unmanned plane automation detection target and tracking method

Also Published As

Publication number Publication date
CN107291216A (en) 2017-10-24

Similar Documents

Publication Publication Date Title
Kartynnik et al. Real-time facial surface geometry from monocular video on mobile GPUs
US11238606B2 (en) Method and system for performing simultaneous localization and mapping using convolutional image transformation
WO2019205865A1 (en) Method, device and apparatus for repositioning in camera orientation tracking process, and storage medium
JP7373554B2 (en) Cross-domain image transformation
CN108805917B (en) Method, medium, apparatus and computing device for spatial localization
WO2022156532A1 (en) Three-dimensional face model reconstruction method and apparatus, electronic device, and storage medium
WO2016034059A1 (en) Target object tracking method based on color-structure features
US9928574B2 (en) Method and apparatus for generating superpixels
US10311589B2 (en) Model-based three-dimensional head pose estimation
JP2016508652A (en) Determining object occlusion in image sequences
CN111127524A (en) Method, system and device for tracking trajectory and reconstructing three-dimensional image
WO2022156533A1 (en) Three-dimensional human body model reconstruction method and apparatus, electronic device, and storage medium
CN111275824A (en) Surface reconstruction for interactive augmented reality
WO2023207522A1 (en) Video synthesis method and apparatus, device, medium, and product
KR101942646B1 (en) Feature point-based real-time camera pose estimation method and apparatus therefor
WO2019170024A1 (en) Target tracking method and apparatus, and electronic device and storage medium
CN113766117B (en) Video de-jitter method and device
CN113886510A (en) Terminal interaction method, device, equipment and storage medium
CN108229281B (en) Neural network generation method, face detection device and electronic equipment
WO2017173977A1 (en) Mobile terminal target tracking method, device, and mobile terminal
US11158122B2 (en) Surface geometry object model training and inference
CN110009683B (en) Real-time on-plane object detection method based on MaskRCNN
CN115578515B (en) Training method of three-dimensional reconstruction model, three-dimensional scene rendering method and device
CN113298692B (en) Augmented reality method for realizing real-time equipment pose calculation based on mobile terminal browser
CN112085842A (en) Depth value determination method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 17778641

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17778641

Country of ref document: EP

Kind code of ref document: A1