WO2022048053A1 - Target tracking method, apparatus, and device, and computer-readable storage medium - Google Patents

Target tracking method, apparatus, and device, and computer-readable storage medium Download PDF

Info

Publication number
WO2022048053A1
WO2022048053A1 PCT/CN2020/133263 CN2020133263W WO2022048053A1 WO 2022048053 A1 WO2022048053 A1 WO 2022048053A1 CN 2020133263 W CN2020133263 W CN 2020133263W WO 2022048053 A1 WO2022048053 A1 WO 2022048053A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame object
frame
tracking
target
pending
Prior art date
Application number
PCT/CN2020/133263
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 WO2022048053A1 publication Critical patent/WO2022048053A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/246Analysis of motion using feature-based methods, e.g. the tracking of corners or segments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10048Infrared image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20092Interactive image processing based on input by user
    • G06T2207/20104Interactive definition of region of interest [ROI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30248Vehicle exterior or interior
    • G06T2207/30252Vehicle exterior; Vicinity of vehicle

Definitions

  • the present invention relates to the field of automatic driving, and in particular, to a target tracking method, apparatus, device and computer-readable storage medium.
  • the in-vehicle assistance system can respond to the surrounding environment, assist the driver or the vehicle to make judgments, and effectively avoid traffic accidents. occurrence, improve the safety factor of driving.
  • Target tracking is divided into single-target tracking and multi-target tracking.
  • the application scenarios of the two tracking algorithms are different.
  • Single-target tracking selects a target in the initial frame, and predicts the position and size of the target in subsequent frames.
  • the tracking object of single-target tracking is only One, which greatly limits its application scenarios, but the single-target tracking algorithm, especially the single-target tracking algorithm based on correlation filtering, has the advantages of fast calculation speed and accurate tracking results.
  • the research on multi-target tracking algorithm is still in the developing stage.
  • Multi-target tracking is to track multiple targets at the same time to obtain the motion trajectory of each target, which is more suitable for application in vehicle-mounted assistance systems.
  • the existing multi-target tracking algorithm is easy to miss targets and has a slow response speed, which is obviously not suitable for automatic driving scenarios where new targets often appear and old targets disappear.
  • the purpose of the present invention is to provide a target tracking method, apparatus, device and computer-readable storage medium, so as to solve the problems of unstable detection and tracking, slow response and missed target detection in the prior art.
  • the present invention provides a target tracking method, comprising:
  • the simulation start frame object and the subframe object are matched by the association algorithm, and it is judged whether there is a target subframe object, and the target subframe object is a subframe object that is successfully matched with the simulation start frame object;
  • the corresponding tracking object is determined according to the target sub-frame object.
  • the method further includes:
  • the suspicious initial frame object is a simulated initial frame object for which the secondary frame object has not been successfully matched;
  • the suspect tracking object is determined according to the suspect initial frame object.
  • the method further includes:
  • a suspect tracking object is determined according to the simulated start frame object.
  • the method further includes:
  • the correlation filter response value is between the first threshold and the second threshold, it is determined that the suspicious tracking object is an unnecessary tracking object; wherein, after determining that the unnecessary tracking object is in the After the tracking information within the first number of frames is obtained, it is determined that the unnecessary tracking object disappears.
  • the determining the simulated start frame object corresponding to the to-be-determined start frame object by using a correlation filtering algorithm includes:
  • the target area corresponding to the to-be-determined start frame object is processed by the top-hat operator to obtain a preprocessing area
  • a simulated start frame object corresponding to the to-be-determined start frame object is obtained through the correlation filtering algorithm according to the preprocessing area.
  • a target tracking device comprising:
  • the receiving module is used to receive the image information of the first frame and the image information of the second frame;
  • a primary and secondary frame object determination module configured to determine the primary frame object and the secondary frame object respectively according to the primary frame image information and the secondary frame image information through a detection algorithm
  • the primary and secondary matching module is used to match the initial frame object and the secondary frame object through an association algorithm, and determine whether there is an undetermined initial frame object and an undetermined secondary frame object, wherein the pending initial frame object and the pending The secondary frame objects respectively refer to the initial frame objects and the secondary frame objects that have not been successfully matched;
  • a correlation filtering module configured to determine a simulated start frame object corresponding to the pending start frame object through a correlation filtering algorithm when the pending start frame object and the pending secondary frame object exist;
  • the simulation matching module is used to match the simulation start frame object and the subframe object through the association algorithm, and judge whether there is a target subframe object, and the target subframe object is matched with the simulation start frame object successful subframe object;
  • a tracking determination module is configured to determine a corresponding tracking object according to the target sub-frame object when the target sub-frame object exists.
  • the analog matching module further includes:
  • the first suspect determination unit is configured to determine the suspect tracking object according to the suspect initial frame object.
  • the primary and secondary matching module further includes:
  • An undetermined suspicious simulation unit used for determining the simulated starting frame object corresponding to the undetermined starting frame object by a correlation filtering algorithm when only the undetermined starting frame object does not exist the undetermined secondary frame object;
  • the second suspect determination unit is configured to determine the suspect tracking object according to the simulated initial frame object.
  • a target tracking device comprising:
  • the processor is configured to implement the steps of any one of the above-mentioned target tracking methods when executing the computer program.
  • a computer-readable storage medium storing a computer program on the computer-readable storage medium, when the computer program is executed by a processor, implements the steps of any one of the above-mentioned target tracking methods.
  • the first frame image information and the second frame image information are received; the first frame object and the second frame object are respectively determined according to the first frame image information and the second frame image information through a detection algorithm;
  • the algorithm matches the initial frame object and the sub-frame object, and determines whether there is a pending initial frame object and an pending sub-frame object, wherein the pending initial frame object and the pending sub-frame object respectively refer to an unsuccessful match.
  • the initial frame object and the sub-frame object of the The association algorithm matches the simulated initial frame object and the sub-frame object, and determines whether there is a target sub-frame object, and the target sub-frame object is the sub-frame object successfully matched with the simulated initial frame object; when When the target sub-frame object exists, the corresponding tracking object is determined according to the target sub-frame object.
  • the correlation filtering algorithm to calculate the to-be-determined initial-frame object, after obtaining the simulated initial-frame object, it is compared with the to-be-determined sub-frame object, thereby greatly improving the relationship between the initial frame object and all
  • the matching success rate between the objects in the sub-frame is described, thereby improving the stability and accuracy of target tracking.
  • the present invention also provides a target tracking device, device and computer-readable storage medium with the above beneficial effects.
  • FIG. 1 is a schematic flowchart of a specific embodiment of a target tracking method provided by the present invention
  • FIG. 2 is a schematic flowchart of another specific embodiment of the target tracking method provided by the present invention.
  • FIG. 3 is a schematic flowchart of another specific implementation manner of the target tracking method provided by the present invention.
  • FIG. 4 is a schematic structural diagram of a specific implementation manner of a target tracking device provided by the present invention.
  • FIG. 5 is a schematic structural diagram of a specific implementation manner of a target tracking system provided by the present invention.
  • the invention is an infrared multi-target tracking algorithm based on the infrared vehicle-mounted auxiliary system.
  • vehicle-mounted auxiliary system some important targets need to be detected and tracked, such as pedestrians and vehicles.
  • the tracking algorithm of the present invention can not only track multiple targets, but also improve the performance of target detection. Assist the vehicle to drive and improve the safety factor.
  • multi-target tracking There are two main types of multi-target tracking, one is multi-target tracking combined with detection, and the other is multi-target tracking based on the initialization of the first frame. Both methods have their own advantages and disadvantages.
  • the multi-target tracking combined with detection needs to obtain the detection target of each frame through the detection algorithm, and then use the multi-target tracking algorithm to associate the target of each frame to find the motion trajectory of each target.
  • Common multi-target tracking algorithms include sort, Deep-sort and deep learning network JDE, FairMOT, etc., the multi-target tracking algorithm combined with detection is very dependent on the effect of detection.
  • deep learning detection methods such as yolo, centernet are mostly used, and there are also classic frame difference method, optical flow.
  • multi-target tracking based on the initialization of the first frame needs to initialize the target in the first frame, and use multiple single-target trackers to track in the subsequent frames.
  • such an algorithm is not suitable for new targets that often appear and old targets disappear. autonomous driving scenarios, and the speed is slower. Therefore, the multi-target tracking algorithm combined with detection can better meet the requirements of on-board assistance systems.
  • the multi-target tracking algorithm is mainly composed of three parts: the detector, the tracker and the data association.
  • the data association is the core part of the multi-target tracking algorithm, and it is also the difficulty of the multi-target tracking algorithm, especially when there are multiple objects that are close in distance and have similar appearances. The process of data association will be very complicated when the target is used. Commonly used data association methods include classical MHT, PDA and data association realized by matching algorithm combined with loss matrix.
  • Adding a multi-target tracking algorithm to the vehicle-mounted auxiliary system can not only detect the target, but also obtain the information of a certain target by correlating the detection results, and further obtain the motion state information of the target, such as the target distance and movement direction. Etc., this information is of great significance in assisted driver driving and automatic driving.
  • the current multi-target tracking combined with detection only correlates the detection results, and the multi-target algorithm itself does not have the ability to detect targets. Therefore, when the detection effect is not good, such as missing targets, unstable detection, etc., it will directly affect the results of the multi-target tracking algorithm and increase the risk factor of driving.
  • the core of the present invention is to provide a target tracking method, and a schematic flowchart of a specific implementation of the method is shown in FIG.
  • S101 Receive the first frame image information and the second frame image information.
  • the image information of the first frame and the image information of the second frame are generally two adjacent frames of image information in a video. Of course, according to the situation, they may also be non-adjacent frames. Two frames of image information, for example, in order to reduce the burden on the processor, the image information of one frame interval is deliberately used for target tracking and so on.
  • S102 Determine the initial frame object and the sub-frame object respectively according to the initial frame image information and the sub-frame image information through a detection algorithm.
  • the current detection algorithm can be a machine learning method, such as HOG+SVM, Adaboost+ACF, etc.; it can also be a deep learning method, such as the yolo series or the SSD series, etc., which can be freely selected according to the actual situation.
  • S103 Match the initial frame object and the sub-frame object through an association algorithm, and determine whether there is a pending initial frame object and an pending sub-frame object, wherein the pending initial frame object and the pending sub-frame object respectively refer to The initial frame object and the secondary frame object that fail to match successfully.
  • the association algorithm can include a matching algorithm and a loss matrix, wherein the matching algorithm includes: Hungarian matching, KM matching, etc.; the loss matrix can be calculated by the intersection ratio, Euclidean distance, etc., and the loss matrix can also Calculation is replaced by deep features, of course, other suitable algorithms can also be selected according to the actual situation.
  • S104 When there are the pending start frame object and the pending secondary frame object, determine a simulated start frame object corresponding to the pending start frame object by using a correlation filtering algorithm.
  • the correlation filtering algorithm can adopt the existing single-target tracking algorithm, such as MOOSE, CSK, KCF, DCF and so on.
  • the correlation filtering algorithm will process the results that are not successfully associated in the correlation algorithm of S103, and for the undetermined initial frame objects that are not successfully associated, the correlation filtering algorithm will be used to track each object with a single target, and obtain:
  • the tracking results of each object in the current frame can also be used for single-target tracking algorithms implemented by deep learning networks.
  • the successfully matched sub-frame object can be used as the tracking object corresponding to the initial frame object, in order to avoid subsequent tracking due to changes in the shape of the object If it fails, if the continuous matching successfully exceeds a certain number of frames (such as 5-10 frames), it is necessary to update the relevant filtering template.
  • S105 Match the simulated initial frame object and the secondary frame object through the association algorithm, and determine whether there is a target secondary frame object, and the target secondary frame object is a secondary frame successfully matched with the simulated initial frame object object.
  • the target subframe object corresponds to the simulation start frame object, and the simulation start frame object corresponds to the pending start frame object, the target subframe object can be determined to correspond to the start frame object of the tracking object.
  • determining the simulated start frame object corresponding to the to-be-determined start frame object by using the correlation filtering algorithm includes:
  • S1041 Acquire size information of the to-be-determined start frame object.
  • S1042 judges whether the size information is smaller than a size threshold.
  • S1043 When the size information is smaller than the size threshold, process the target area corresponding to the to-be-determined start frame object by using a top-hat operator to obtain a preprocessing area.
  • S1044 Obtain a simulated start frame object corresponding to the to-be-determined start frame object through the correlation filtering algorithm according to the preprocessing area.
  • the top-hat operator is processed first to highlight the small infrared targets, and then the features are calculated for tracking, which can effectively improve the tracking accuracy.
  • the present invention can effectively perform multi-target detection and tracking in the night, dust, haze and other weather, improve the safety of driving in the appeal scene, and combine the detection algorithm, multi-target tracking and single-target tracking, It can improve the detection effect.
  • the detection algorithm does not detect the target
  • the tracking algorithm is used to track the target, supplement the detection results, stabilize the detection frame, and improve the detection accuracy.
  • the present invention integrates the multi-target tracking algorithm combined with the detection algorithm and the single-target tracking, which is faster than multiple single-target trackers, and is tracked by the detection results of the detection algorithm, which is more accurate. For the entire video, the above process needs to be repeated cyclically until the video ends.
  • the sub-frame image information in this cycle is used as the initial frame image information in the next cycle
  • the tracking object obtained in this cycle is The start frame object in the next loop.
  • the algorithm of the present invention can be realized based on the Xsafe-II M series vehicle infrared night vision system.
  • the system connects the Xsafe-II M series vehicle infrared camera with the ECU processing unit based on the Ambarella CV25 chip to realize the real-time infrared image Display, target recognition, target tracking and alarm functions.
  • the schematic diagram of the overall structure of the system is shown in Figure 5.
  • the target tracking method of the present invention needs to work in the intelligent algorithm module in the ECU processing unit of the system in Figure 5, and the results output by the algorithm are displayed on the car display screen through the display module. .
  • Table 1 shows the specific data in a set of tracking tests:
  • test set 1 90s 8.5% test set 2 120s 15.2% test set 3 60s 5.3%
  • the detection algorithm is mobilenet_yolov3
  • the matching algorithm is the Hungarian algorithm
  • the loss matrix is calculated by the intersection ratio
  • the tracking algorithm is KCF.
  • the four labeled infrared vehicle videos are tested. The results are as follows, the tracking accuracy is 3%-20% promote.
  • the first frame image information and the second frame image information are received; the first frame object and the second frame object are respectively determined according to the first frame image information and the second frame image information through a detection algorithm;
  • the algorithm matches the initial frame object and the sub-frame object, and determines whether there is a pending initial frame object and an pending sub-frame object, wherein the pending initial frame object and the pending sub-frame object respectively refer to an unsuccessful match.
  • the initial frame object and the sub-frame object of the The association algorithm matches the simulated initial frame object and the sub-frame object, and determines whether there is a target sub-frame object, and the target sub-frame object is the sub-frame object successfully matched with the simulated initial frame object; when When the target sub-frame object exists, the corresponding tracking object is determined according to the target sub-frame object.
  • only the undetermined initial frame object that fails to match is calculated by using the correlation filtering algorithm, and after the simulated initial frame object is obtained, it is compared with the undetermined sub-frame object, which greatly improves the performance of the initial frame.
  • the matching success rate between the object and the sub-frame object thereby improving the stability and accuracy of target tracking.
  • it is not necessary to perform single-target tracking for each object in the image information which can reduce The computational complexity of the algorithm improves the running speed of the tracking algorithm.
  • the schematic flowchart is shown in FIG. 2 , including:
  • S201 Receive the first frame image information and the second frame image information.
  • S202 Determine the initial frame object and the sub-frame object respectively according to the initial frame image information and the sub-frame image information through a detection algorithm.
  • S203 Match the initial frame object and the sub-frame object through an association algorithm, and determine whether there is a pending initial frame object and a pending sub-frame object, wherein the pending initial frame object and the pending sub-frame object respectively refer to The initial frame object and the secondary frame object that fail to match successfully.
  • S2052 Determine a suspected tracking object according to the simulated initial frame object.
  • S2042 Match the simulation start frame object and the subframe object by using the association algorithm, and determine whether there is a target subframe object, and the target subframe object is a subframe that is successfully matched with the simulation start frame object object.
  • S2041 , S2042 , and S2043 and S2051 and S2052 in this specific embodiment are two processing solutions in different situations, and there is no sequence relationship between them, and the sequence of steps can be exchanged at will.
  • the suspect tracking object in addition to determining whether the suspect tracking object exists in S2052, in S2042, in addition to judging whether the target sub-frame object exists at this time, it is also possible to determine whether there is a suspect starting frame object, the suspect starting frame The object is a simulated initial frame object for which the secondary frame object has not been successfully matched; and then a suspicious tracking object is determined according to the suspicious initial frame object.
  • the suspect tracking object is also identified, and the suspect tracking object does not appear in every frame of the tracking object, but in practical applications, the object is in the video If a certain frame of a frame does not appear, it does not mean that the object disappears, but it may be blocked by other objects and other reasons and cannot be identified.
  • an object that does not appear in a single frame is defined as a suspicious tracking object.
  • Temporarily retaining the relevant information of the suspected tracking object in the system can avoid deleting the object if the object cannot be identified in a single frame. If the object reappears in the next frame, the trouble of recalculating the tracking object is greatly reduced. The computational complexity of the method is reduced, and the computational efficiency is improved.
  • FIG. 3 The schematic flowchart is shown in FIG. 3 , including:
  • S301 Receive the image information of the first frame and the image information of the second frame.
  • S302 Determine an initial frame object and a sub-frame object respectively according to the initial frame image information and the sub-frame image information through a detection algorithm.
  • S303 Match the initial frame object and the sub-frame object through an association algorithm, and determine whether there is a pending initial frame object and an pending sub-frame object, wherein the pending initial frame object and the pending sub-frame object respectively refer to The initial frame object and the secondary frame object that fail to match successfully.
  • S3052 Determine a suspected tracking object according to the simulated initial frame object.
  • S3042 Match the simulated initial frame object and the secondary frame object by using the association algorithm, and determine whether there is a target secondary frame object, and the target secondary frame object is a secondary frame successfully matched with the simulated initial frame object object.
  • the suspected tracking object is further classified according to the correlation filter response value. If the correlation filter response value is less than a certain threshold (for example, 0.5-0.7), the object is recognized as disappearing and deleted. Tracking of the object; if it is between the two thresholds, it is considered that the tracking algorithm does not track the object well, and the object is only tracked for a certain number of frames (for example, 5-20 frames), and the tracking of the object is deleted. ; if it is greater than a certain threshold (e.g. 0.8-0.9), the tracking is considered good and the object will continue to be tracked.
  • a certain threshold for example, 0.5-0.7
  • the tracking frame will stay in the picture for a long time, or the system will judge that the object has disappeared just after the object disappears from the picture for a few frames, thus increasing the computational burden and reducing the computational efficiency when the object reappears. .
  • the following describes the target tracking apparatus provided by the embodiments of the present invention, and the target tracking apparatus described below and the target tracking method described above may refer to each other correspondingly.
  • FIG. 4 is a structural block diagram of a target tracking apparatus provided by an embodiment of the present invention, which is referred to as the fourth specific embodiment.
  • the target tracking apparatus may include:
  • the receiving module 100 is used for receiving the first frame image information and the second frame image information
  • the primary and secondary frame object determination module 200 is configured to determine the primary frame object and the secondary frame object respectively according to the primary frame image information and the secondary frame image information through a detection algorithm;
  • the primary and secondary matching module 300 is configured to match the start frame object and the secondary frame object through an association algorithm, and determine whether there is an undetermined start frame object and an undetermined secondary frame object, wherein the pending start frame object and the The pending sub-frame objects respectively refer to the initial frame object and the sub-frame object that have not been successfully matched;
  • the correlation filtering module 400 is configured to determine, through a correlation filtering algorithm, a simulated initial frame object corresponding to the pending initial frame object when the pending initial frame object and the pending secondary frame object exist;
  • the simulation matching module 500 is used to match the simulation start frame object and the subframe object through the association algorithm, and determine whether there is a target subframe object, and the target subframe object is the same as the simulation start frame object. Match the successful subframe object;
  • the tracking determination module 600 is configured to determine a corresponding tracking object according to the target sub-frame object when the target sub-frame object exists.
  • the analog matching module 500 further includes:
  • the first suspect determination unit is configured to determine the suspect tracking object according to the suspect initial frame object.
  • the primary and secondary matching module 300 further includes:
  • an undetermined suspicious simulation unit configured to determine a simulated starting frame object corresponding to the undetermined starting frame object through a correlation filtering algorithm when only the undetermined starting frame object does not exist the undetermined secondary frame object;
  • the second suspect determination unit is configured to determine the suspect tracking object according to the simulated initial frame object.
  • analog matching module 500 and/or the primary and secondary matching module 300 further includes:
  • a response value determination unit used for determining the relevant filtering response value of the suspect tracking object
  • a disappearance judgment unit configured to determine that the suspected tracking object disappears when the correlation filter response value is less than a first threshold
  • an unnecessary judging unit configured to determine that the suspected tracking object is an unnecessary tracking object when the correlation filtering response value is between the first threshold and the second threshold; wherein, when the correlation filtering algorithm is used to determine It is determined that the unnecessary tracking object disappears after the tracking information of the unnecessary tracking object is within the first number of frames.
  • the correlation filtering module 400 includes:
  • an acquisition unit used for acquiring the size information of the to-be-determined start frame object
  • a size judging unit for judging whether the size information is less than a size threshold
  • the top-hat unit is configured to process the target area corresponding to the to-be-determined start frame object by the top-hat operator to obtain a preprocessing area when the size information is less than the size threshold;
  • a simulation determination unit configured to obtain a simulation start frame object corresponding to the to-be-determined start frame object through the correlation filtering algorithm according to the preprocessing area.
  • the target tracking device provided by the present invention, through the receiving module 100, is used to receive the initial frame image information and the secondary frame image information; the primary and secondary frame object determination module 200 is used for detecting The secondary frame image information respectively determines the initial frame object and the secondary frame object; the primary and secondary matching module 300 is used to match the initial frame object and the secondary frame object through an association algorithm, and determine whether there is an undetermined initial frame object and an undetermined secondary frame object.
  • a frame object wherein the pending start frame object and the pending sub-frame object respectively refer to the initial frame object and the sub-frame object that have not been successfully matched;
  • the correlation filtering module 400 is configured to, when there is the pending start frame object, When the frame object and the undetermined sub-frame object, determine the simulation start frame object corresponding to the undetermined start frame object through a correlation filtering algorithm;
  • the simulation matching module 500 is used for the simulation start frame object and the simulation start frame object through the correlation algorithm.
  • the sub-frame objects are matched to determine whether there is a target sub-frame object, and the target sub-frame object is a sub-frame object that is successfully matched with the simulated initial frame object;
  • the tracking determination module 600 is used for when the target sub-frame object exists.
  • the corresponding tracking object is determined according to the target sub-frame object.
  • the correlation filtering algorithm to calculate the undetermined starting frame object, after obtaining the simulated starting frame object, and then comparing it with the undetermined sub-frame object, it greatly improves the relationship between the starting frame object and all other objects.
  • the matching success rate between the above-mentioned sub-frame objects, thereby improving the stability and accuracy of target tracking, and at the same time, compared with other methods, the use of the correlation filtering algorithm can greatly improve the initial frame object and the sub-frame object. The matching speed between them can improve the processing efficiency.
  • the target tracking device of this embodiment is used to implement the aforementioned target tracking method, so the specific implementation of the target tracking device can be found in the embodiment part of the aforementioned target tracking method, for example, the receiving module 100, the primary and secondary frame object determination module 200 , the primary and secondary matching module 300, the correlation filtering module 400, the 500-level analog matching module and the total determination module 600 are respectively used to realize steps S101, S102, S103, S104, S105 and S106 in the above-mentioned target tracking method. Therefore, its specific implementation For the manner, reference may be made to the descriptions of the corresponding partial embodiments, which are not repeated here.
  • a target tracking device comprising:
  • the processor is configured to implement the steps of any one of the above-mentioned target tracking methods when executing the computer program.
  • the first frame image information and the second frame image information are received; the first frame object and the second frame object are respectively determined according to the first frame image information and the second frame image information through a detection algorithm;
  • the algorithm matches the initial frame object and the sub-frame object, and determines whether there is a pending initial frame object and an pending sub-frame object, wherein the pending initial frame object and the pending sub-frame object respectively refer to an unsuccessful match.
  • the initial frame object and the sub-frame object of the The association algorithm matches the simulated initial frame object and the sub-frame object, and determines whether there is a target sub-frame object, and the target sub-frame object is the sub-frame object successfully matched with the simulated initial frame object; when When the target sub-frame object exists, the corresponding tracking object is determined according to the target sub-frame object.
  • the correlation filtering algorithm to calculate the undetermined starting frame object, after obtaining the simulated starting frame object, and then comparing it with the undetermined sub-frame object, it greatly improves the relationship between the starting frame object and all other objects.
  • the matching speed between them can improve the processing efficiency.
  • a computer-readable storage medium storing a computer program on the computer-readable storage medium, when the computer program is executed by a processor, implements the steps of any one of the above-mentioned target tracking methods.
  • the target tracking method provided by the present invention, the first frame image information and the second frame image information are received; the first frame object and the second frame object are respectively determined according to the first frame image information and the second frame image information through a detection algorithm; The algorithm matches the initial frame object and the sub-frame object, and determines whether there is a pending initial frame object and an pending sub-frame object, wherein the pending initial frame object and the pending sub-frame object respectively refer to an unsuccessful match.
  • the initial frame object and the sub-frame object of the The association algorithm matches the simulated initial frame object and the sub-frame object, and determines whether there is a target sub-frame object, and the target sub-frame object is the sub-frame object successfully matched with the simulated initial frame object; when When the target sub-frame object exists, the corresponding tracking object is determined according to the target sub-frame object.
  • the correlation filtering algorithm by using the correlation filtering algorithm to calculate the to-be-determined initial-frame object, after obtaining the simulated initial-frame object, it is compared with the to-be-determined sub-frame object, thereby greatly improving the relationship between the initial frame object and all
  • the matching success rate between the above-mentioned sub-frame objects, thereby improving the stability and accuracy of target tracking, and at the same time, compared with other methods the use of the correlation filtering algorithm can greatly improve the initial frame object and the sub-frame object. The matching speed between them is improved, and the processing efficiency is improved.
  • a software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.
  • RAM random access memory
  • ROM read only memory
  • electrically programmable ROM electrically erasable programmable ROM
  • registers hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.

Abstract

A target tracking method, apparatus, and device, and a computer-readable storage medium. The method comprises: receiving starting frame image information and sub-frame image information (S101); determining a starting frame object and a sub-frame object according to the starting frame image information and the sub-frame image information, respectively, by means of a detection algorithm (S102); matching the starting frame object and the sub-frame object by means of an association algorithm, and determining whether a pending starting frame object and a pending sub-frame object are present, the pending starting frame object and the pending sub-frame object referring to the starting frame object and the sub-frame object that fail to be successfully matched, respectively (S103); when the pending starting frame object and the pending sub-frame object are present, determining, by means of a correlation filtering algorithm, an analog starting frame object corresponding to the pending starting frame object (S104); matching the analog starting frame object and the sub-frame object by means of the association algorithm, and determining whether a target sub-frame object is present, the target sub-frame object being a sub-frame object that is successfully matched with the analog starting frame object (S105); and when the target sub-frame object is present, determining a corresponding tracking object according to the target sub-frame object (S106). By using the described method, the stability and accuracy of target tracking are improved and the processing efficiency is improved.

Description

一种目标跟踪方法、装置、设备及计算机可读存储介质A target tracking method, apparatus, device and computer-readable storage medium
本申请要求于2020年09月02日提交中国专利局、申请号为202010908917.7、发明名称为“一种目标跟踪方法、装置、设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202010908917.7 and the invention titled "A Target Tracking Method, Apparatus, Equipment and Computer-readable Storage Medium" filed with the China Patent Office on September 2, 2020, all of which are The contents are incorporated herein by reference.
技术领域technical field
本发明涉及自动驾驶领域,特别是涉及一种目标跟踪方法、装置、设备及计算机可读存储介质。The present invention relates to the field of automatic driving, and in particular, to a target tracking method, apparatus, device and computer-readable storage medium.
背景技术Background technique
现如今,交通情况的复杂和自动驾驶的火热发展都对行车安全提出了更高的要求,车载辅助系统可以对周围的环境做出响应,辅助驾驶员或者车辆做出判断,有效的避免交通事故的发生,提高行车的安全系数。Nowadays, the complex traffic situation and the hot development of automatic driving have put forward higher requirements for driving safety. The in-vehicle assistance system can respond to the surrounding environment, assist the driver or the vehicle to make judgments, and effectively avoid traffic accidents. occurrence, improve the safety factor of driving.
目标跟踪分为单目标跟踪和多目标跟踪,两种跟踪算法的应用场景不同,单目标跟踪在初始帧选定一个目标,在后续帧预测该目标的位置和大小,单目标跟踪的跟踪对象只有一个,因此大大限制了它的应用场景,但是单目标跟踪算法尤其是基于相关滤波的单目标跟踪算法,有计算速度快,跟踪结果准确等优点。和研究相当成熟的单目标跟踪算法相比,多目标跟踪算法的研究要处于发展阶段。多目标跟踪则是要同时对多个目标进行跟踪,得到每个目标的运动轨迹,更适合应用在车载辅助系统中。但现有的多目标跟踪算法,容易漏检目标,且响应速度较慢,显然不适用于经常有新目标出现和旧目标消失的自动驾驶场景。Target tracking is divided into single-target tracking and multi-target tracking. The application scenarios of the two tracking algorithms are different. Single-target tracking selects a target in the initial frame, and predicts the position and size of the target in subsequent frames. The tracking object of single-target tracking is only One, which greatly limits its application scenarios, but the single-target tracking algorithm, especially the single-target tracking algorithm based on correlation filtering, has the advantages of fast calculation speed and accurate tracking results. Compared with the well-developed single-target tracking algorithm, the research on multi-target tracking algorithm is still in the developing stage. Multi-target tracking is to track multiple targets at the same time to obtain the motion trajectory of each target, which is more suitable for application in vehicle-mounted assistance systems. However, the existing multi-target tracking algorithm is easy to miss targets and has a slow response speed, which is obviously not suitable for automatic driving scenarios where new targets often appear and old targets disappear.
因此,如何提高现有目标跟踪算法的准确率、稳定性及提高其响应速度,就成了本领域技术人员亟待解决的问题。Therefore, how to improve the accuracy, stability and response speed of the existing target tracking algorithm has become an urgent problem to be solved by those skilled in the art.
发明内容SUMMARY OF THE INVENTION
本发明的目的是提供一种目标跟踪方法、装置、设备及计算机可读存储介质,以解决现有技术中检测跟踪不稳定、响应慢及漏检目标的问题。The purpose of the present invention is to provide a target tracking method, apparatus, device and computer-readable storage medium, so as to solve the problems of unstable detection and tracking, slow response and missed target detection in the prior art.
为解决上述技术问题,本发明提供一种目标跟踪方法,包括:In order to solve the above-mentioned technical problems, the present invention provides a target tracking method, comprising:
接收始帧图像信息及次帧图像信息;Receive the first frame image information and the second frame image information;
通过检测算法根据所述始帧图像信息及所述次帧图像信息分别确定始帧对象及次帧对象;Determine the initial frame object and the sub-frame object respectively according to the initial frame image information and the sub-frame image information by a detection algorithm;
通过关联算法对所述始帧对象及所述次帧对象进行匹配,判断是否存在待定始帧对象与待定次帧对象,其中,所述待定始帧对象与所述待定次帧对象分别指未能成功匹配的所述始帧对象与所述次帧对象;Match the initial frame object and the sub-frame object through an association algorithm, and determine whether there is a pending initial frame object and an pending sub-frame object, wherein the pending initial frame object and the pending sub-frame object respectively refer to the The initial frame object and the secondary frame object that are successfully matched;
当存在所述待定始帧对象与所述待定次帧对象时,通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象;When there are the pending start frame object and the pending sub-frame object, determine a simulated start frame object corresponding to the pending start frame object through a correlation filtering algorithm;
通过所述关联算法对所述模拟始帧对象及所述次帧对象进行匹配,判断是否存在目标次帧对象,所述目标次帧对象为与所述模拟始帧对象匹配成功的次帧对象;The simulation start frame object and the subframe object are matched by the association algorithm, and it is judged whether there is a target subframe object, and the target subframe object is a subframe object that is successfully matched with the simulation start frame object;
当存在所述目标次帧对象时,根据所述目标次帧对象确定对应的跟踪对象。When the target sub-frame object exists, the corresponding tracking object is determined according to the target sub-frame object.
可选地,在所述的目标跟踪方法中,在通过所述关联算法对所述模拟始帧对象及所述次帧对象进行匹配之后,还包括:Optionally, in the target tracking method, after the simulation initial frame object and the secondary frame object are matched by the association algorithm, the method further includes:
判断是否存在存疑始帧对象,所述存疑始帧对象为所述次帧对象未匹配成功的模拟始帧对象;Judging whether there is a suspicious initial frame object, the suspicious initial frame object is a simulated initial frame object for which the secondary frame object has not been successfully matched;
根据所述存疑始帧对象确定存疑跟踪对象。The suspect tracking object is determined according to the suspect initial frame object.
可选地,在所述的目标跟踪方法中,在判断是否存在待定始帧对象与待定次帧对象之后,还包括:Optionally, in the target tracking method, after judging whether there are pending initial frame objects and pending secondary frame objects, the method further includes:
当只存在所述待定始帧对象不存在所述待定次帧对象时,通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象;When only the pending start frame object exists and the pending secondary frame object does not exist, determine the simulated start frame object corresponding to the pending start frame object through a correlation filtering algorithm;
根据所述模拟始帧对象确定存疑跟踪对象。A suspect tracking object is determined according to the simulated start frame object.
可选地,在所述的目标跟踪方法中,在确定所述存疑跟踪对象之后,还包括:Optionally, in the target tracking method, after determining the suspect tracking object, the method further includes:
确定所述存疑跟踪对象的相关滤波响应值;determining the correlation filter response value of the suspect tracking object;
当所述相关滤波响应值小于第一阈值时,确定所述存疑跟踪对象消失;When the correlation filter response value is less than the first threshold, it is determined that the suspected tracking object disappears;
当所述相关滤波响应值在所述第一阈值与第二阈值之间时,确定所述存疑跟踪对象为非必要跟踪对象;其中,在通过所述相关滤波算法确定所述非必要跟踪对象在之后第一数量的帧数内的跟踪信息后,确定所述非必 要跟踪对象消失。When the correlation filter response value is between the first threshold and the second threshold, it is determined that the suspicious tracking object is an unnecessary tracking object; wherein, after determining that the unnecessary tracking object is in the After the tracking information within the first number of frames is obtained, it is determined that the unnecessary tracking object disappears.
可选地,在所述的目标跟踪方法中,所述通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象包括:Optionally, in the target tracking method, the determining the simulated start frame object corresponding to the to-be-determined start frame object by using a correlation filtering algorithm includes:
获取所述待定始帧对象的尺寸信息;obtaining the size information of the pending start frame object;
判断所述尺寸信息是否小于尺寸阈值;judging whether the size information is less than a size threshold;
当所述尺寸信息小于所述尺寸阈值时,对所述待定始帧对象对应的目标区域通过top-hat算子进行处理,得到预处理区域;When the size information is smaller than the size threshold, the target area corresponding to the to-be-determined start frame object is processed by the top-hat operator to obtain a preprocessing area;
根据所述预处理区域通过所述相关滤波算法得到与所述待定始帧对象对应的模拟始帧对象。A simulated start frame object corresponding to the to-be-determined start frame object is obtained through the correlation filtering algorithm according to the preprocessing area.
一种目标跟踪装置,包括:A target tracking device, comprising:
接收模块,用于接收始帧图像信息及次帧图像信息;The receiving module is used to receive the image information of the first frame and the image information of the second frame;
主次帧对象确定模块,用于通过检测算法根据所述始帧图像信息及所述次帧图像信息分别确定始帧对象及次帧对象;a primary and secondary frame object determination module, configured to determine the primary frame object and the secondary frame object respectively according to the primary frame image information and the secondary frame image information through a detection algorithm;
主次匹配模块,用于通过关联算法对所述始帧对象及所述次帧对象进行匹配,判断是否存在待定始帧对象与待定次帧对象,其中,所述待定始帧对象与所述待定次帧对象分别指未能成功匹配的所述始帧对象与所述次帧对象;The primary and secondary matching module is used to match the initial frame object and the secondary frame object through an association algorithm, and determine whether there is an undetermined initial frame object and an undetermined secondary frame object, wherein the pending initial frame object and the pending The secondary frame objects respectively refer to the initial frame objects and the secondary frame objects that have not been successfully matched;
相关滤波模块,用于当存在所述待定始帧对象与所述待定次帧对象时,通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象;a correlation filtering module, configured to determine a simulated start frame object corresponding to the pending start frame object through a correlation filtering algorithm when the pending start frame object and the pending secondary frame object exist;
模拟匹配模块,用于通过所述关联算法对所述模拟始帧对象及所述次帧对象进行匹配,判断是否存在目标次帧对象,所述目标次帧对象为与所述模拟始帧对象匹配成功的次帧对象;The simulation matching module is used to match the simulation start frame object and the subframe object through the association algorithm, and judge whether there is a target subframe object, and the target subframe object is matched with the simulation start frame object successful subframe object;
跟踪确定模块,用于当存在所述目标次帧对象时,根据所述目标次帧对象确定对应的跟踪对象。A tracking determination module is configured to determine a corresponding tracking object according to the target sub-frame object when the target sub-frame object exists.
可选地,在所述的目标跟踪装置中,所述模拟匹配模块还包括:Optionally, in the target tracking device, the analog matching module further includes:
存疑判断单元,用于判断是否存在存疑始帧对象,所述存疑始帧对象为所述次帧对象未匹配成功的模拟始帧对象;A doubtful judging unit for judging whether there is a doubtful initial frame object, and the doubtful initial frame object is a simulated initial frame object for which the secondary frame object has not been successfully matched;
第一存疑确定单元,用于根据所述存疑始帧对象确定存疑跟踪对象。The first suspect determination unit is configured to determine the suspect tracking object according to the suspect initial frame object.
可选地,在所述的目标跟踪装置中,所述主次匹配模块还包括:Optionally, in the target tracking device, the primary and secondary matching module further includes:
待定存疑模拟单元,用于当只存在所述待定始帧对象不存在所述待定 次帧对象时,通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象;An undetermined suspicious simulation unit, used for determining the simulated starting frame object corresponding to the undetermined starting frame object by a correlation filtering algorithm when only the undetermined starting frame object does not exist the undetermined secondary frame object;
第二存疑确定单元,用于根据所述模拟始帧对象确定存疑跟踪对象。The second suspect determination unit is configured to determine the suspect tracking object according to the simulated initial frame object.
一种目标跟踪设备,包括:A target tracking device comprising:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行所述计算机程序时实现如上述任一种所述的目标跟踪方法的步骤。The processor is configured to implement the steps of any one of the above-mentioned target tracking methods when executing the computer program.
一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述任一种所述的目标跟踪方法的步骤。A computer-readable storage medium storing a computer program on the computer-readable storage medium, when the computer program is executed by a processor, implements the steps of any one of the above-mentioned target tracking methods.
本发明所提供的目标跟踪方法,通过接收始帧图像信息及次帧图像信息;通过检测算法根据所述始帧图像信息及所述次帧图像信息分别确定始帧对象及次帧对象;通过关联算法对所述始帧对象及所述次帧对象进行匹配,判断是否存在待定始帧对象与待定次帧对象,其中,所述待定始帧对象与所述待定次帧对象分别指未能成功匹配的所述始帧对象与所述次帧对象;当存在所述待定始帧对象与所述待定次帧对象时,通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象;通过所述关联算法对所述模拟始帧对象及所述次帧对象进行匹配,判断是否存在目标次帧对象,所述目标次帧对象为与所述模拟始帧对象匹配成功的次帧对象;当存在所述目标次帧对象时,根据所述目标次帧对象确定对应的跟踪对象。本发明通过将所述待定始帧对象利用所述相关滤波算法进行演算,得到所述模拟始帧对象后,再与所述待定次帧对象进行比对,大大提高了所述始帧对象与所述次帧对象之间的匹配成功率,进而提高目标跟踪的稳定性与准确率,同时,相比于其他方法,不需要对图像信息中的每一个对象进行单目标跟踪,可以减少算法的运算量,提高跟踪算法的运行速度。本发明同时还提供了一种具有上述有益效果的目标跟踪装置、设备及计算机可读存储介质。In the target tracking method provided by the present invention, the first frame image information and the second frame image information are received; the first frame object and the second frame object are respectively determined according to the first frame image information and the second frame image information through a detection algorithm; The algorithm matches the initial frame object and the sub-frame object, and determines whether there is a pending initial frame object and an pending sub-frame object, wherein the pending initial frame object and the pending sub-frame object respectively refer to an unsuccessful match. The initial frame object and the sub-frame object of the The association algorithm matches the simulated initial frame object and the sub-frame object, and determines whether there is a target sub-frame object, and the target sub-frame object is the sub-frame object successfully matched with the simulated initial frame object; when When the target sub-frame object exists, the corresponding tracking object is determined according to the target sub-frame object. In the present invention, by using the correlation filtering algorithm to calculate the to-be-determined initial-frame object, after obtaining the simulated initial-frame object, it is compared with the to-be-determined sub-frame object, thereby greatly improving the relationship between the initial frame object and all The matching success rate between the objects in the sub-frame is described, thereby improving the stability and accuracy of target tracking. At the same time, compared with other methods, it is not necessary to perform single-target tracking for each object in the image information, which can reduce the operation of the algorithm. to improve the running speed of the tracking algorithm. The present invention also provides a target tracking device, device and computer-readable storage medium with the above beneficial effects.
附图说明Description of drawings
为了更清楚的说明本发明实施例或现有技术的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来 讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following will briefly introduce the accompanying drawings used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only For some embodiments of the present invention, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.
图1为本发明提供的目标跟踪方法的一种具体实施方式的流程示意图;1 is a schematic flowchart of a specific embodiment of a target tracking method provided by the present invention;
图2为本发明提供的目标跟踪方法的另一种具体实施方式的流程示意图;2 is a schematic flowchart of another specific embodiment of the target tracking method provided by the present invention;
图3为本发明提供的目标跟踪方法的又一种具体实施方式的流程示意图;3 is a schematic flowchart of another specific implementation manner of the target tracking method provided by the present invention;
图4为本发明提供的目标跟踪装置的一种具体实施方式的结构示意图;4 is a schematic structural diagram of a specific implementation manner of a target tracking device provided by the present invention;
图5为本发明提供的目标跟踪系统的一种具体实施方式的结构示意图。FIG. 5 is a schematic structural diagram of a specific implementation manner of a target tracking system provided by the present invention.
具体实施方式detailed description
在一些特殊场景下,如夜间,雾霾等恶劣天气,驾驶员的可视距离变小,可见光的成像质量变差,因此行车危险系数大大增加,而红外热成像系统则为这些场景提供很好的解决方案。本发明是基于红外车载辅助系统提出的一种红外多目标跟踪算法,在车载辅助系统中,需要对一些重要的目标进行检测和跟踪,例如行人和车辆等,根据检测和跟踪到的结果,来辅助驾驶员或者自动驾驶对车辆的行驶状态进行调整,保证车辆行驶的安全和稳定,本发明的跟踪算法不仅能够对多个目标进行跟踪,还能够对目标检测的性能有所提升,更好的辅助车辆行驶,提高安全系数。In some special scenes, such as bad weather at night, haze, etc., the driver's visual distance becomes smaller, and the imaging quality of visible light becomes worse, so the driving risk factor is greatly increased, and the infrared thermal imaging system provides a good solution for these scenes. s solution. The invention is an infrared multi-target tracking algorithm based on the infrared vehicle-mounted auxiliary system. In the vehicle-mounted auxiliary system, some important targets need to be detected and tracked, such as pedestrians and vehicles. Assist the driver or automatic driving to adjust the driving state of the vehicle to ensure the safety and stability of the vehicle. The tracking algorithm of the present invention can not only track multiple targets, but also improve the performance of target detection. Assist the vehicle to drive and improve the safety factor.
多目标跟踪主要有两种,一种是结合检测的多目标跟踪,一种是基于第一帧初始化来进行的多目标跟踪,两种方法各有优缺点。结合检测的多目标跟踪需要通过检测算法得到每一帧的检测目标,再通过多目标跟踪算法对每一帧的目标进行关联,找到每个目标的运动轨迹,常见的多目标跟踪算法有sort、deep-sort以及深度学习的网络JDE、FairMOT等等,结合检测的多目标跟踪算法非常依赖于检测的效果,当前多采用深度学习的检测方法例如yolo、centernet,也有经典的帧差法、光流法等等;基于第一帧初始化的多目标跟踪需要在第一帧初始化目标,在后续帧利用多个单目标跟踪器来跟踪,显然这样的算法不适用于经常有新目标出现和旧目标消失的自动驾驶场景,且速度较慢。因此与检测结合的多目标跟踪算法更满 足车载辅助系统的要求。There are two main types of multi-target tracking, one is multi-target tracking combined with detection, and the other is multi-target tracking based on the initialization of the first frame. Both methods have their own advantages and disadvantages. The multi-target tracking combined with detection needs to obtain the detection target of each frame through the detection algorithm, and then use the multi-target tracking algorithm to associate the target of each frame to find the motion trajectory of each target. Common multi-target tracking algorithms include sort, Deep-sort and deep learning network JDE, FairMOT, etc., the multi-target tracking algorithm combined with detection is very dependent on the effect of detection. Currently, deep learning detection methods such as yolo, centernet are mostly used, and there are also classic frame difference method, optical flow. method, etc.; multi-target tracking based on the initialization of the first frame needs to initialize the target in the first frame, and use multiple single-target trackers to track in the subsequent frames. Obviously, such an algorithm is not suitable for new targets that often appear and old targets disappear. autonomous driving scenarios, and the speed is slower. Therefore, the multi-target tracking algorithm combined with detection can better meet the requirements of on-board assistance systems.
结合检测的多目标跟踪除了要准确地检测到目标外。还需要找到目标间的关联匹配,正确区分每一个目标,正确的处理目标遮挡、目标消失、目标外观变化、目标外观相似、新目标出现等问题。多目标跟踪算法主要由检测器、跟踪器以及数据关联三部分组成,数据关联是多目标跟踪算法的核心部分,也是多目标跟踪算法的难点,尤其是当有多个距离很近,外观相似的目标时,数据关联的过程会非常复杂,常用的数据关联方法有经典的MHT、PDA以及匹配算法结合损失矩阵实现的数据关联。在车载辅助系统中加入多目标跟踪算法,不仅能够检测目标,还能通过对检测结果进行关联,进而得到某个目标的信息,还能够进一步得到该目标的运动状态信息,例如目标距离和运动方向等,这些信息在辅助驾驶员行车和自动驾驶中,有重要意义。但是当前结合检测的多目标跟踪只是对检测结果进行关联处理,多目标算法本身没有检测目标的能力。因此当检测效果不佳,例如漏检目标,检测不稳定等等,会直接影响多目标跟踪算法的结果,增加行车的危险系数。In addition to detecting the target accurately, the multi-target tracking combined with detection. It is also necessary to find the correlation matching between targets, correctly distinguish each target, and correctly deal with problems such as target occlusion, target disappearance, target appearance change, target appearance similarity, and new target appearance. The multi-target tracking algorithm is mainly composed of three parts: the detector, the tracker and the data association. The data association is the core part of the multi-target tracking algorithm, and it is also the difficulty of the multi-target tracking algorithm, especially when there are multiple objects that are close in distance and have similar appearances. The process of data association will be very complicated when the target is used. Commonly used data association methods include classical MHT, PDA and data association realized by matching algorithm combined with loss matrix. Adding a multi-target tracking algorithm to the vehicle-mounted auxiliary system can not only detect the target, but also obtain the information of a certain target by correlating the detection results, and further obtain the motion state information of the target, such as the target distance and movement direction. Etc., this information is of great significance in assisted driver driving and automatic driving. However, the current multi-target tracking combined with detection only correlates the detection results, and the multi-target algorithm itself does not have the ability to detect targets. Therefore, when the detection effect is not good, such as missing targets, unstable detection, etc., it will directly affect the results of the multi-target tracking algorithm and increase the risk factor of driving.
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make those skilled in the art better understand the solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明的核心是提供一种目标跟踪方法,其一种具体实施方式的流程示意图如图1所示,称其为具体实施方式一,包括:The core of the present invention is to provide a target tracking method, and a schematic flowchart of a specific implementation of the method is shown in FIG.
S101:接收始帧图像信息及次帧图像信息。S101: Receive the first frame image information and the second frame image information.
由于跟踪算法是针对视频数据而言的,因此所述始帧图像信息与所述次帧图像信息一般为一段视频中相邻的两帧图像信息,当然,根据情况,也可为不相邻的两帧图像信息,如为了减轻处理器负担,故意采用间隔一帧的图像信息进行目标追踪等情况。Since the tracking algorithm is based on video data, the image information of the first frame and the image information of the second frame are generally two adjacent frames of image information in a video. Of course, according to the situation, they may also be non-adjacent frames. Two frames of image information, for example, in order to reduce the burden on the processor, the image information of one frame interval is deliberately used for target tracking and so on.
S102:通过检测算法根据所述始帧图像信息及所述次帧图像信息分别确定始帧对象及次帧对象。S102: Determine the initial frame object and the sub-frame object respectively according to the initial frame image information and the sub-frame image information through a detection algorithm.
当前的检测算法可以是机器学习的方法,例如HOG+SVM, Adaboost+ACF等;也可以是深度学习的方法,例如yolo系列或者SSD系列等等,可根据实际情况自由选择。The current detection algorithm can be a machine learning method, such as HOG+SVM, Adaboost+ACF, etc.; it can also be a deep learning method, such as the yolo series or the SSD series, etc., which can be freely selected according to the actual situation.
S103:通过关联算法对所述始帧对象及所述次帧对象进行匹配,判断是否存在待定始帧对象与待定次帧对象,其中,所述待定始帧对象与所述待定次帧对象分别指未能成功匹配的所述始帧对象与所述次帧对象。S103: Match the initial frame object and the sub-frame object through an association algorithm, and determine whether there is a pending initial frame object and an pending sub-frame object, wherein the pending initial frame object and the pending sub-frame object respectively refer to The initial frame object and the secondary frame object that fail to match successfully.
需要注意的是,所述关联算法可包括匹配算法和损失矩阵,其中匹配算法包括:匈牙利匹配、KM匹配等;损失矩阵可以通过交并比、欧氏距离等进行计算,所述损失矩阵也可以通过深度特征来代替计算,当然,也可根据实际情况选择其他合适的算法。It should be noted that the association algorithm can include a matching algorithm and a loss matrix, wherein the matching algorithm includes: Hungarian matching, KM matching, etc.; the loss matrix can be calculated by the intersection ratio, Euclidean distance, etc., and the loss matrix can also Calculation is replaced by deep features, of course, other suitable algorithms can also be selected according to the actual situation.
S104:当存在所述待定始帧对象与所述待定次帧对象时,通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象。S104: When there are the pending start frame object and the pending secondary frame object, determine a simulated start frame object corresponding to the pending start frame object by using a correlation filtering algorithm.
所述相关滤波算法可采用现有的单目标跟踪算法,例如MOOSE、CSK、KCF、DCF等等。所述相关滤波算法会对在S103的关联算法中没有成功关联的结果进行处理,对于没有成功关联的所述待定始帧对象,会利用所述相关滤波算法对每一个对象进行单目标跟踪,得到每个对象在当前帧的跟踪结果,也可以为深度学习网络实现的单目标跟踪算法。The correlation filtering algorithm can adopt the existing single-target tracking algorithm, such as MOOSE, CSK, KCF, DCF and so on. The correlation filtering algorithm will process the results that are not successfully associated in the correlation algorithm of S103, and for the undetermined initial frame objects that are not successfully associated, the correlation filtering algorithm will be used to track each object with a single target, and obtain: The tracking results of each object in the current frame can also be used for single-target tracking algorithms implemented by deep learning networks.
而对于在步骤S103中匹配成功的对象(此处匹配成功的次帧对象即可作为与所述始帧对象对应的跟踪对象)的检测和跟踪,为了避免因为对象形态发生变化,导致后续的跟踪失败,在连续匹配成功超过一定帧数(如5-10帧),则需要对相关滤波的模板进行更新。For the detection and tracking of the successfully matched object in step S103 (here, the successfully matched sub-frame object can be used as the tracking object corresponding to the initial frame object), in order to avoid subsequent tracking due to changes in the shape of the object If it fails, if the continuous matching successfully exceeds a certain number of frames (such as 5-10 frames), it is necessary to update the relevant filtering template.
S105:通过所述关联算法对所述模拟始帧对象及所述次帧对象进行匹配,判断是否存在目标次帧对象,所述目标次帧对象为与所述模拟始帧对象匹配成功的次帧对象。S105: Match the simulated initial frame object and the secondary frame object through the association algorithm, and determine whether there is a target secondary frame object, and the target secondary frame object is a secondary frame successfully matched with the simulated initial frame object object.
S106:当存在所述目标次帧对象时,根据所述目标次帧对象确定对应的跟踪对象。S106: When the target sub-frame object exists, determine a corresponding tracking object according to the target sub-frame object.
由于所述目标次帧对象与所述模拟始帧对象对应,所述模拟始帧对象又与所述待定始帧对象对应,因此通过所述目标次帧对象即可确定与所述始帧对象对应的所述跟踪对象。Since the target subframe object corresponds to the simulation start frame object, and the simulation start frame object corresponds to the pending start frame object, the target subframe object can be determined to correspond to the start frame object of the tracking object.
当然,如果在S103的判断过程中只存在待定次帧对象或在S105的匹配后,存在没有与所述始帧对象匹配成功的次帧对象,则将上述次帧对象 识别为新的跟踪对象。Certainly, if there is only the pending sub-frame object in the judgment process of S103 or after the matching of S105, there is a sub-frame object that is not successfully matched with the initial frame object, then the above-mentioned sub-frame object is identified as a new tracking object.
作为一种优选实施方式,在S104所述通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象包括:As a preferred implementation manner, in S104, determining the simulated start frame object corresponding to the to-be-determined start frame object by using the correlation filtering algorithm includes:
S1041:获取所述待定始帧对象的尺寸信息。S1041: Acquire size information of the to-be-determined start frame object.
S1042判断所述尺寸信息是否小于尺寸阈值。S1042 judges whether the size information is smaller than a size threshold.
S1043:当所述尺寸信息小于所述尺寸阈值时,对所述待定始帧对象对应的目标区域通过top-hat算子进行处理,得到预处理区域。S1043: When the size information is smaller than the size threshold, process the target area corresponding to the to-be-determined start frame object by using a top-hat operator to obtain a preprocessing area.
S1044:根据所述预处理区域通过所述相关滤波算法得到与所述待定始帧对象对应的模拟始帧对象。S1044: Obtain a simulated start frame object corresponding to the to-be-determined start frame object through the correlation filtering algorithm according to the preprocessing area.
本具体实施方式针对检测到的红外小目标,先进行top-hat算子处理,突出红外小目标,再计算特征进行追踪,能有效提升追踪的精度。In this specific implementation manner, for the detected small infrared targets, the top-hat operator is processed first to highlight the small infrared targets, and then the features are calculated for tracking, which can effectively improve the tracking accuracy.
本发明针对红外图像,在夜晚、沙尘、雾霾等天气也能有效的进行多目标检测和跟踪,提高在上诉场景行车的安全性,且将结合检测算法、多目标跟踪与单目标跟踪,能够提升检测效果,在检测算法没有检测到目标时,通过跟踪算法跟踪目标,补充检测结果,稳定检测框,提升检测精度。另外,本发明将结合检测算法的多目标跟踪算法与单目标跟踪融合在一起,与多个单目标跟踪器相比,速度更快,且通过检测算法的检测结果来跟踪,更加准确。对于整段视频,需不断循环重复上述流程,直至视频结束,其中,当本次循环中的次帧图像信息在下个循环中作为始帧图像信息时,本次循环得到的所述跟踪对象即为下次循环中的始帧对象。Aiming at infrared images, the present invention can effectively perform multi-target detection and tracking in the night, dust, haze and other weather, improve the safety of driving in the appeal scene, and combine the detection algorithm, multi-target tracking and single-target tracking, It can improve the detection effect. When the detection algorithm does not detect the target, the tracking algorithm is used to track the target, supplement the detection results, stabilize the detection frame, and improve the detection accuracy. In addition, the present invention integrates the multi-target tracking algorithm combined with the detection algorithm and the single-target tracking, which is faster than multiple single-target trackers, and is tracked by the detection results of the detection algorithm, which is more accurate. For the entire video, the above process needs to be repeated cyclically until the video ends. When the sub-frame image information in this cycle is used as the initial frame image information in the next cycle, the tracking object obtained in this cycle is The start frame object in the next loop.
本发明的算法可以基于Xsafe-II M系列的车载红外夜视系统实现,该系统将Xsafe-II M系列车载红外摄像头与基于安霸(Ambarella)CV25芯片搭建的ECU处理单元对接,实现实时红外图像显示、目标识别、目标跟踪以及报警等功能。The algorithm of the present invention can be realized based on the Xsafe-II M series vehicle infrared night vision system. The system connects the Xsafe-II M series vehicle infrared camera with the ECU processing unit based on the Ambarella CV25 chip to realize the real-time infrared image Display, target recognition, target tracking and alarm functions.
系统的整体结构示意图如图5所示,本发明的目标跟踪方法需要在图5的该系统的ECU处理单元中智能算法模块进行工作,算法输出的结果通过显示模块,在汽车显示屏上进行显示。The schematic diagram of the overall structure of the system is shown in Figure 5. The target tracking method of the present invention needs to work in the intelligent algorithm module in the ECU processing unit of the system in Figure 5, and the results output by the algorithm are displayed on the car display screen through the display module. .
表1为一组跟踪测试中的具体数据:Table 1 shows the specific data in a set of tracking tests:
视频video 视频时长video duration 跟踪精度提升Improved tracking accuracy
测试集1test set 1 90s90s 8.5%8.5%
测试集2test set 2 120s120s 15.2%15.2%
测试集3test set 3 60s60s 5.3%5.3%
表1 跟踪测试结果Table 1 Tracking test results
其中检测算法为mobilenet_yolov3,匹配算法为匈牙利算法,损失矩阵通过交并比计算,跟踪算法为KCF,对4段标注过的红外车载视频进行测试,结果如下,跟踪精确度有3%-20%的提升。Among them, the detection algorithm is mobilenet_yolov3, the matching algorithm is the Hungarian algorithm, the loss matrix is calculated by the intersection ratio, and the tracking algorithm is KCF. The four labeled infrared vehicle videos are tested. The results are as follows, the tracking accuracy is 3%-20% promote.
本发明所提供的目标跟踪方法,通过接收始帧图像信息及次帧图像信息;通过检测算法根据所述始帧图像信息及所述次帧图像信息分别确定始帧对象及次帧对象;通过关联算法对所述始帧对象及所述次帧对象进行匹配,判断是否存在待定始帧对象与待定次帧对象,其中,所述待定始帧对象与所述待定次帧对象分别指未能成功匹配的所述始帧对象与所述次帧对象;当存在所述待定始帧对象与所述待定次帧对象时,通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象;通过所述关联算法对所述模拟始帧对象及所述次帧对象进行匹配,判断是否存在目标次帧对象,所述目标次帧对象为与所述模拟始帧对象匹配成功的次帧对象;当存在所述目标次帧对象时,根据所述目标次帧对象确定对应的跟踪对象。本发明仅将匹配失败的所述待定始帧对象利用所述相关滤波算法进行演算,得到所述模拟始帧对象后,再与所述待定次帧对象进行比对,大大提高了所述始帧对象与所述次帧对象之间的匹配成功率,进而提高目标跟踪的稳定性与准确率,同时,相比于其他方法,不需要对图像信息中的每一个对象进行单目标跟踪,可以减少算法的运算量,提高跟踪算法的运行速度。In the target tracking method provided by the present invention, the first frame image information and the second frame image information are received; the first frame object and the second frame object are respectively determined according to the first frame image information and the second frame image information through a detection algorithm; The algorithm matches the initial frame object and the sub-frame object, and determines whether there is a pending initial frame object and an pending sub-frame object, wherein the pending initial frame object and the pending sub-frame object respectively refer to an unsuccessful match. The initial frame object and the sub-frame object of the The association algorithm matches the simulated initial frame object and the sub-frame object, and determines whether there is a target sub-frame object, and the target sub-frame object is the sub-frame object successfully matched with the simulated initial frame object; when When the target sub-frame object exists, the corresponding tracking object is determined according to the target sub-frame object. In the present invention, only the undetermined initial frame object that fails to match is calculated by using the correlation filtering algorithm, and after the simulated initial frame object is obtained, it is compared with the undetermined sub-frame object, which greatly improves the performance of the initial frame. The matching success rate between the object and the sub-frame object, thereby improving the stability and accuracy of target tracking. At the same time, compared with other methods, it is not necessary to perform single-target tracking for each object in the image information, which can reduce The computational complexity of the algorithm improves the running speed of the tracking algorithm.
在具体实施方式一的基础上,进一步对所述跟踪对象分类,得到具体实施方式二,其流程示意图如图2所示,包括:On the basis of the first embodiment, the tracking objects are further classified, and the second embodiment is obtained. The schematic flowchart is shown in FIG. 2 , including:
S201:接收始帧图像信息及次帧图像信息。S201: Receive the first frame image information and the second frame image information.
S202:通过检测算法根据所述始帧图像信息及所述次帧图像信息分别确定始帧对象及次帧对象。S202: Determine the initial frame object and the sub-frame object respectively according to the initial frame image information and the sub-frame image information through a detection algorithm.
S203:通过关联算法对所述始帧对象及所述次帧对象进行匹配,判断 是否存在待定始帧对象与待定次帧对象,其中,所述待定始帧对象与所述待定次帧对象分别指未能成功匹配的所述始帧对象与所述次帧对象。S203: Match the initial frame object and the sub-frame object through an association algorithm, and determine whether there is a pending initial frame object and a pending sub-frame object, wherein the pending initial frame object and the pending sub-frame object respectively refer to The initial frame object and the secondary frame object that fail to match successfully.
S2041:当存在所述待定始帧对象与所述待定次帧对象时,通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象。S2041: When there are the pending start frame object and the pending secondary frame object, determine a simulated start frame object corresponding to the pending start frame object through a correlation filtering algorithm.
S2051:当只存在所述待定始帧对象不存在所述待定次帧对象时,通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象;S2051: When only the pending start frame object exists and the pending secondary frame object does not exist, determine a simulated start frame object corresponding to the pending start frame object through a correlation filtering algorithm;
S2052:根据所述模拟始帧对象确定存疑跟踪对象。S2052: Determine a suspected tracking object according to the simulated initial frame object.
S2042:通过所述关联算法对所述模拟始帧对象及所述次帧对象进行匹配,判断是否存在目标次帧对象,所述目标次帧对象为与所述模拟始帧对象匹配成功的次帧对象。S2042: Match the simulation start frame object and the subframe object by using the association algorithm, and determine whether there is a target subframe object, and the target subframe object is a subframe that is successfully matched with the simulation start frame object object.
S2043:当存在所述目标次帧对象时,根据所述目标次帧对象确定对应的跟踪对象。S2043: When the target sub-frame object exists, determine a corresponding tracking object according to the target sub-frame object.
本具体实施方式与上述具体实施方式的不同之处在于,本具体实施方式中新增了新的跟踪对象类型的检测,其余步骤均与上述具体实施方式相同,在此不再展开赘述。The difference between this specific implementation manner and the above specific implementation manner is that a new type of tracking object detection is added in this specific implementation manner, and the remaining steps are the same as the above specific implementation manner, which will not be repeated here.
需要注意的是,本具体实施方式中的S2041、S2042、S2043与S2051、S2052为两条不同情况下的处理方案,两者之间并无先后关系,步骤顺序可随意调换。It should be noted that S2041 , S2042 , and S2043 and S2051 and S2052 in this specific embodiment are two processing solutions in different situations, and there is no sequence relationship between them, and the sequence of steps can be exchanged at will.
另外要注意的是除了从S2052确定是否存在所述存疑跟踪对象外,在S2042,除了判断此时是否存在所述目标次帧对象外,还可判断是否存在存疑始帧对象,所述存疑始帧对象为所述次帧对象未匹配成功的模拟始帧对象;再根据所述存疑始帧对象确定存疑跟踪对象。It should also be noted that in addition to determining whether the suspect tracking object exists in S2052, in S2042, in addition to judging whether the target sub-frame object exists at this time, it is also possible to determine whether there is a suspect starting frame object, the suspect starting frame The object is a simulated initial frame object for which the secondary frame object has not been successfully matched; and then a suspicious tracking object is determined according to the suspicious initial frame object.
本具体实施方式中,对于除了所述跟踪对象外,还识别了所述存疑跟踪对象,所述存疑跟踪对象不像所述跟踪对象每帧中都出现,但在实际应用中,对象在视频中的某一帧未出现,也不意味着对象的消失,而是有可能被其他物件遮挡等其他原因不能被识别,本具体实施方式中对将单帧中没有出现的对象定义为存疑跟踪对象,暂时在系统中保留所述存疑跟踪对象的相关信息,可避免单独某帧未能识别出某对象就把对象删去,下一帧中该对象再次出现便需要重新计算跟踪对象的麻烦,大大减小了方法的运算量,提高了运算效率。In this specific implementation manner, in addition to the tracking object, the suspect tracking object is also identified, and the suspect tracking object does not appear in every frame of the tracking object, but in practical applications, the object is in the video If a certain frame of a frame does not appear, it does not mean that the object disappears, but it may be blocked by other objects and other reasons and cannot be identified. In this specific implementation, an object that does not appear in a single frame is defined as a suspicious tracking object. Temporarily retaining the relevant information of the suspected tracking object in the system can avoid deleting the object if the object cannot be identified in a single frame. If the object reappears in the next frame, the trouble of recalculating the tracking object is greatly reduced. The computational complexity of the method is reduced, and the computational efficiency is improved.
在具体实施方式二的基础上,进一步对所述跟踪对象分类,得到具体实施方式三,其流程示意图如图3所示,包括:On the basis of the second embodiment, the tracking objects are further classified, and the third embodiment is obtained. The schematic flowchart is shown in FIG. 3 , including:
S301:接收始帧图像信息及次帧图像信息。S301: Receive the image information of the first frame and the image information of the second frame.
S302:通过检测算法根据所述始帧图像信息及所述次帧图像信息分别确定始帧对象及次帧对象。S302 : Determine an initial frame object and a sub-frame object respectively according to the initial frame image information and the sub-frame image information through a detection algorithm.
S303:通过关联算法对所述始帧对象及所述次帧对象进行匹配,判断是否存在待定始帧对象与待定次帧对象,其中,所述待定始帧对象与所述待定次帧对象分别指未能成功匹配的所述始帧对象与所述次帧对象。S303: Match the initial frame object and the sub-frame object through an association algorithm, and determine whether there is a pending initial frame object and an pending sub-frame object, wherein the pending initial frame object and the pending sub-frame object respectively refer to The initial frame object and the secondary frame object that fail to match successfully.
S3041:当存在所述待定始帧对象与所述待定次帧对象时,通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象。S3041: When there are the pending start frame object and the pending secondary frame object, use a correlation filtering algorithm to determine a simulated start frame object corresponding to the pending start frame object.
S3051:当只存在所述待定始帧对象不存在所述待定次帧对象时,通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象;S3051: When only the pending start frame object exists and the pending secondary frame object does not exist, determine a simulated start frame object corresponding to the pending start frame object through a correlation filtering algorithm;
S3052:根据所述模拟始帧对象确定存疑跟踪对象。S3052: Determine a suspected tracking object according to the simulated initial frame object.
S3042:通过所述关联算法对所述模拟始帧对象及所述次帧对象进行匹配,判断是否存在目标次帧对象,所述目标次帧对象为与所述模拟始帧对象匹配成功的次帧对象。S3042: Match the simulated initial frame object and the secondary frame object by using the association algorithm, and determine whether there is a target secondary frame object, and the target secondary frame object is a secondary frame successfully matched with the simulated initial frame object object.
S3043:当存在所述目标次帧对象时,根据所述目标次帧对象确定对应的跟踪对象。S3043: When the target sub-frame object exists, determine a corresponding tracking object according to the target sub-frame object.
S3053:确定所述存疑跟踪对象的相关滤波响应值。S3053: Determine the correlation filter response value of the suspected tracking object.
S3054:当所述相关滤波响应值小于第一阈值时,确定所述存疑跟踪对象消失。S3054: When the correlation filter response value is less than the first threshold, determine that the suspected tracking object disappears.
S3055:当所述相关滤波响应值在所述第一阈值与第二阈值之间时,确定所述存疑跟踪对象为非必要跟踪对象;其中,在通过所述相关滤波算法确定所述非必要跟踪对象在之后第一数量的帧数内的跟踪信息后,确定所述非必要跟踪对象消失。S3055: When the correlation filtering response value is between the first threshold and the second threshold, determine that the suspected tracking object is an unnecessary tracking object; wherein, when determining the unnecessary tracking through the correlation filtering algorithm After the object has tracking information within the first number of frames, it is determined that the unnecessary tracking object disappears.
本具体实施方式与上述具体实施方式的不同之处在于,本具体实施方式中在确定所述存疑跟踪对象之后,进一步对所述存疑跟踪对象进行了分类处理,其余步骤均与上述具体实施方式相同,在此不再展开赘述。The difference between this specific implementation and the above specific implementation is that in this specific implementation, after the suspected tracking object is determined, the suspected tracking object is further classified and processed, and the remaining steps are the same as the above specific implementation. , and will not be repeated here.
本具体实施方式中,更进一步地对所述存疑跟踪对象依据所述相关滤波响应值做了分类,如果所述相关滤波响应值小于一定的阈值(例如 0.5-0.7),则认对象消失,删除该对象的跟踪;如果在两个阈值之间,则认为跟踪算法对该对象的跟踪效果不佳,则对该对象只跟踪一定的帧数(例如5-20帧),便删除该对象的跟踪;如果大于某一阈值(例如0.8-0.9),则认为跟踪效果很好,则会继续跟踪该对象。这样可以避免当对象消失时,跟踪框会长时间停留在画面中,或者对象刚从画面中消失几帧,系统就草草判定对象消失,从而在对象重新出现时加大运算量负担,降低运算效率。In this specific embodiment, the suspected tracking object is further classified according to the correlation filter response value. If the correlation filter response value is less than a certain threshold (for example, 0.5-0.7), the object is recognized as disappearing and deleted. Tracking of the object; if it is between the two thresholds, it is considered that the tracking algorithm does not track the object well, and the object is only tracked for a certain number of frames (for example, 5-20 frames), and the tracking of the object is deleted. ; if it is greater than a certain threshold (e.g. 0.8-0.9), the tracking is considered good and the object will continue to be tracked. In this way, when the object disappears, the tracking frame will stay in the picture for a long time, or the system will judge that the object has disappeared just after the object disappears from the picture for a few frames, thus increasing the computational burden and reducing the computational efficiency when the object reappears. .
下面对本发明实施例提供的目标跟踪装置进行介绍,下文描述的目标跟踪装置与上文描述的目标跟踪方法可相互对应参照。The following describes the target tracking apparatus provided by the embodiments of the present invention, and the target tracking apparatus described below and the target tracking method described above may refer to each other correspondingly.
图4为本发明实施例提供的目标跟踪装置的结构框图,称其为具体实施方式四,参照图4目标跟踪装置可以包括:FIG. 4 is a structural block diagram of a target tracking apparatus provided by an embodiment of the present invention, which is referred to as the fourth specific embodiment. Referring to FIG. 4, the target tracking apparatus may include:
接收模块100,用于接收始帧图像信息及次帧图像信息;The receiving module 100 is used for receiving the first frame image information and the second frame image information;
主次帧对象确定模块200,用于通过检测算法根据所述始帧图像信息及所述次帧图像信息分别确定始帧对象及次帧对象;The primary and secondary frame object determination module 200 is configured to determine the primary frame object and the secondary frame object respectively according to the primary frame image information and the secondary frame image information through a detection algorithm;
主次匹配模块300,用于通过关联算法对所述始帧对象及所述次帧对象进行匹配,判断是否存在待定始帧对象与待定次帧对象,其中,所述待定始帧对象与所述待定次帧对象分别指未能成功匹配的所述始帧对象与所述次帧对象;The primary and secondary matching module 300 is configured to match the start frame object and the secondary frame object through an association algorithm, and determine whether there is an undetermined start frame object and an undetermined secondary frame object, wherein the pending start frame object and the The pending sub-frame objects respectively refer to the initial frame object and the sub-frame object that have not been successfully matched;
相关滤波模块400,用于当存在所述待定始帧对象与所述待定次帧对象时,通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象;The correlation filtering module 400 is configured to determine, through a correlation filtering algorithm, a simulated initial frame object corresponding to the pending initial frame object when the pending initial frame object and the pending secondary frame object exist;
模拟匹配模块500,用于通过所述关联算法对所述模拟始帧对象及所述次帧对象进行匹配,判断是否存在目标次帧对象,所述目标次帧对象为与所述模拟始帧对象匹配成功的次帧对象;The simulation matching module 500 is used to match the simulation start frame object and the subframe object through the association algorithm, and determine whether there is a target subframe object, and the target subframe object is the same as the simulation start frame object. Match the successful subframe object;
跟踪确定模块600,用于当存在所述目标次帧对象时,根据所述目标次帧对象确定对应的跟踪对象。The tracking determination module 600 is configured to determine a corresponding tracking object according to the target sub-frame object when the target sub-frame object exists.
作为一种优选实施方式,所述模拟匹配模块500还包括:As a preferred embodiment, the analog matching module 500 further includes:
存疑判断单元,用于判断是否存在存疑始帧对象,所述存疑始帧对象为所述次帧对象未匹配成功的模拟始帧对象;A doubtful judging unit for judging whether there is a doubtful initial frame object, and the doubtful initial frame object is a simulated initial frame object for which the secondary frame object has not been successfully matched;
第一存疑确定单元,用于根据所述存疑始帧对象确定存疑跟踪对象。The first suspect determination unit is configured to determine the suspect tracking object according to the suspect initial frame object.
作为一种优选实施方式,所述主次匹配模块300还包括:As a preferred embodiment, the primary and secondary matching module 300 further includes:
待定存疑模拟单元,用于当只存在所述待定始帧对象不存在所述待定次帧对象时,通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象;an undetermined suspicious simulation unit, configured to determine a simulated starting frame object corresponding to the undetermined starting frame object through a correlation filtering algorithm when only the undetermined starting frame object does not exist the undetermined secondary frame object;
第二存疑确定单元,用于根据所述模拟始帧对象确定存疑跟踪对象。The second suspect determination unit is configured to determine the suspect tracking object according to the simulated initial frame object.
作为一种优选实施方式,所述模拟匹配模块500和/或所述主次匹配模块300,还包括:As a preferred embodiment, the analog matching module 500 and/or the primary and secondary matching module 300 further includes:
响应值确定单元,用于确定所述存疑跟踪对象的相关滤波响应值;a response value determination unit, used for determining the relevant filtering response value of the suspect tracking object;
消失判断单元,用于当所述相关滤波响应值小于第一阈值时,确定所述存疑跟踪对象消失;A disappearance judgment unit, configured to determine that the suspected tracking object disappears when the correlation filter response value is less than a first threshold;
非必要判断单元,用于当所述相关滤波响应值在所述第一阈值与第二阈值之间时,确定所述存疑跟踪对象为非必要跟踪对象;其中,在通过所述相关滤波算法确定所述非必要跟踪对象在之后第一数量的帧数内的跟踪信息后,确定所述非必要跟踪对象消失。an unnecessary judging unit, configured to determine that the suspected tracking object is an unnecessary tracking object when the correlation filtering response value is between the first threshold and the second threshold; wherein, when the correlation filtering algorithm is used to determine It is determined that the unnecessary tracking object disappears after the tracking information of the unnecessary tracking object is within the first number of frames.
作为一种优选实施方式,所述相关滤波模块400包括:As a preferred embodiment, the correlation filtering module 400 includes:
获取单元,用于获取所述待定始帧对象的尺寸信息;an acquisition unit, used for acquiring the size information of the to-be-determined start frame object;
尺寸判断单元,用于判断所述尺寸信息是否小于尺寸阈值;a size judging unit for judging whether the size information is less than a size threshold;
Top-hat单元,用于当所述尺寸信息小于所述尺寸阈值时,对所述待定始帧对象对应的目标区域通过top-hat算子进行处理,得到预处理区域;The top-hat unit is configured to process the target area corresponding to the to-be-determined start frame object by the top-hat operator to obtain a preprocessing area when the size information is less than the size threshold;
模拟确定单元,用于根据所述预处理区域通过所述相关滤波算法得到与所述待定始帧对象对应的模拟始帧对象。A simulation determination unit, configured to obtain a simulation start frame object corresponding to the to-be-determined start frame object through the correlation filtering algorithm according to the preprocessing area.
本发明所提供的目标跟踪装置,通过接收模块100,用于接收始帧图像信息及次帧图像信息;主次帧对象确定模块200,用于通过检测算法根据所述始帧图像信息及所述次帧图像信息分别确定始帧对象及次帧对象;主次匹配模块300,用于通过关联算法对所述始帧对象及所述次帧对象进行匹配,判断是否存在待定始帧对象与待定次帧对象,其中,所述待定始帧对象与所述待定次帧对象分别指未能成功匹配的所述始帧对象与所述次帧对象;相关滤波模块400,用于当存在所述待定始帧对象与所述待定次帧对象时,通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象;模拟匹配模块500,用于通过所述关联算法对所述模拟始帧对象及所述次帧对象进行匹配,判断是否存在目标次帧对象,所述目标次帧对象为 与所述模拟始帧对象匹配成功的次帧对象;跟踪确定模块600,用于当存在所述目标次帧对象时,根据所述目标次帧对象确定对应的跟踪对象。本发明通过将所述待定始帧对象利用所述相关滤波算法进行演算,得到所述模拟始帧对象后,再与所述待定次帧对象进行比对,大大提高了所述始帧对象与所述次帧对象之间的匹配成功率,进而提高目标跟踪的稳定性与准确率,同时,相比于其他方法,利用所述相关滤波算法可大大提升所述始帧对象与所述次帧对象间的匹配速度,提高处理效率。The target tracking device provided by the present invention, through the receiving module 100, is used to receive the initial frame image information and the secondary frame image information; the primary and secondary frame object determination module 200 is used for detecting The secondary frame image information respectively determines the initial frame object and the secondary frame object; the primary and secondary matching module 300 is used to match the initial frame object and the secondary frame object through an association algorithm, and determine whether there is an undetermined initial frame object and an undetermined secondary frame object. A frame object, wherein the pending start frame object and the pending sub-frame object respectively refer to the initial frame object and the sub-frame object that have not been successfully matched; the correlation filtering module 400 is configured to, when there is the pending start frame object, When the frame object and the undetermined sub-frame object, determine the simulation start frame object corresponding to the undetermined start frame object through a correlation filtering algorithm; the simulation matching module 500 is used for the simulation start frame object and the simulation start frame object through the correlation algorithm. The sub-frame objects are matched to determine whether there is a target sub-frame object, and the target sub-frame object is a sub-frame object that is successfully matched with the simulated initial frame object; the tracking determination module 600 is used for when the target sub-frame object exists. When the frame object is selected, the corresponding tracking object is determined according to the target sub-frame object. In the present invention, by using the correlation filtering algorithm to calculate the undetermined starting frame object, after obtaining the simulated starting frame object, and then comparing it with the undetermined sub-frame object, it greatly improves the relationship between the starting frame object and all other objects. The matching success rate between the above-mentioned sub-frame objects, thereby improving the stability and accuracy of target tracking, and at the same time, compared with other methods, the use of the correlation filtering algorithm can greatly improve the initial frame object and the sub-frame object. The matching speed between them can improve the processing efficiency.
本实施例的目标跟踪装置用于实现前述的目标跟踪方法,因此目标跟踪装置中的具体实施方式可见前文中的目标跟踪方法的实施例部分,例如,接收模块100,主次帧对象确定模块200,主次匹配模块300,相关滤波模块400,模拟匹配模块500级耿总确定模块600,分别用于实现上述目标跟踪方法中步骤S101,S102,S103,S104,S105及S106,所以,其具体实施方式可以参照相应的各个部分实施例的描述,在此不再赘述。The target tracking device of this embodiment is used to implement the aforementioned target tracking method, so the specific implementation of the target tracking device can be found in the embodiment part of the aforementioned target tracking method, for example, the receiving module 100, the primary and secondary frame object determination module 200 , the primary and secondary matching module 300, the correlation filtering module 400, the 500-level analog matching module and the total determination module 600 are respectively used to realize steps S101, S102, S103, S104, S105 and S106 in the above-mentioned target tracking method. Therefore, its specific implementation For the manner, reference may be made to the descriptions of the corresponding partial embodiments, which are not repeated here.
一种目标跟踪设备,包括:A target tracking device comprising:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行所述计算机程序时实现如上述任一种所述的目标跟踪方法的步骤。本发明所提供的目标跟踪方法,通过接收始帧图像信息及次帧图像信息;通过检测算法根据所述始帧图像信息及所述次帧图像信息分别确定始帧对象及次帧对象;通过关联算法对所述始帧对象及所述次帧对象进行匹配,判断是否存在待定始帧对象与待定次帧对象,其中,所述待定始帧对象与所述待定次帧对象分别指未能成功匹配的所述始帧对象与所述次帧对象;当存在所述待定始帧对象与所述待定次帧对象时,通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象;通过所述关联算法对所述模拟始帧对象及所述次帧对象进行匹配,判断是否存在目标次帧对象,所述目标次帧对象为与所述模拟始帧对象匹配成功的次帧对象;当存在所述目标次帧对象时,根据所述目标次帧对象确定对应的跟踪对象。本发明通过将所述待定始帧对象利用所述相关滤波算法进行演算,得到所述模拟始帧对象后,再与所述待定次帧对象进行比对,大大提高了所述始帧对象与所述次帧对象之间的匹配成功率,进而提高目标跟踪的稳定性与 准确率,同时,相比于其他方法,利用所述相关滤波算法可大大提升所述始帧对象与所述次帧对象间的匹配速度,提高处理效率。The processor is configured to implement the steps of any one of the above-mentioned target tracking methods when executing the computer program. In the target tracking method provided by the present invention, the first frame image information and the second frame image information are received; the first frame object and the second frame object are respectively determined according to the first frame image information and the second frame image information through a detection algorithm; The algorithm matches the initial frame object and the sub-frame object, and determines whether there is a pending initial frame object and an pending sub-frame object, wherein the pending initial frame object and the pending sub-frame object respectively refer to an unsuccessful match. The initial frame object and the sub-frame object of the The association algorithm matches the simulated initial frame object and the sub-frame object, and determines whether there is a target sub-frame object, and the target sub-frame object is the sub-frame object successfully matched with the simulated initial frame object; when When the target sub-frame object exists, the corresponding tracking object is determined according to the target sub-frame object. In the present invention, by using the correlation filtering algorithm to calculate the undetermined starting frame object, after obtaining the simulated starting frame object, and then comparing it with the undetermined sub-frame object, it greatly improves the relationship between the starting frame object and all other objects. The matching success rate between the above-mentioned sub-frame objects, thereby improving the stability and accuracy of target tracking, and at the same time, compared with other methods, the use of the correlation filtering algorithm can greatly improve the initial frame object and the sub-frame object. The matching speed between them can improve the processing efficiency.
一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述任一种所述的目标跟踪方法的步骤。本发明所提供的目标跟踪方法,通过接收始帧图像信息及次帧图像信息;通过检测算法根据所述始帧图像信息及所述次帧图像信息分别确定始帧对象及次帧对象;通过关联算法对所述始帧对象及所述次帧对象进行匹配,判断是否存在待定始帧对象与待定次帧对象,其中,所述待定始帧对象与所述待定次帧对象分别指未能成功匹配的所述始帧对象与所述次帧对象;当存在所述待定始帧对象与所述待定次帧对象时,通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象;通过所述关联算法对所述模拟始帧对象及所述次帧对象进行匹配,判断是否存在目标次帧对象,所述目标次帧对象为与所述模拟始帧对象匹配成功的次帧对象;当存在所述目标次帧对象时,根据所述目标次帧对象确定对应的跟踪对象。本发明通过将所述待定始帧对象利用所述相关滤波算法进行演算,得到所述模拟始帧对象后,再与所述待定次帧对象进行比对,大大提高了所述始帧对象与所述次帧对象之间的匹配成功率,进而提高目标跟踪的稳定性与准确率,同时,相比于其他方法,利用所述相关滤波算法可大大提升所述始帧对象与所述次帧对象间的匹配速度,提高处理效率。A computer-readable storage medium storing a computer program on the computer-readable storage medium, when the computer program is executed by a processor, implements the steps of any one of the above-mentioned target tracking methods. In the target tracking method provided by the present invention, the first frame image information and the second frame image information are received; the first frame object and the second frame object are respectively determined according to the first frame image information and the second frame image information through a detection algorithm; The algorithm matches the initial frame object and the sub-frame object, and determines whether there is a pending initial frame object and an pending sub-frame object, wherein the pending initial frame object and the pending sub-frame object respectively refer to an unsuccessful match. The initial frame object and the sub-frame object of the The association algorithm matches the simulated initial frame object and the sub-frame object, and determines whether there is a target sub-frame object, and the target sub-frame object is the sub-frame object successfully matched with the simulated initial frame object; when When the target sub-frame object exists, the corresponding tracking object is determined according to the target sub-frame object. In the present invention, by using the correlation filtering algorithm to calculate the to-be-determined initial-frame object, after obtaining the simulated initial-frame object, it is compared with the to-be-determined sub-frame object, thereby greatly improving the relationship between the initial frame object and all The matching success rate between the above-mentioned sub-frame objects, thereby improving the stability and accuracy of target tracking, and at the same time, compared with other methods, the use of the correlation filtering algorithm can greatly improve the initial frame object and the sub-frame object. The matching speed between them is improved, and the processing efficiency is improved.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments may be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method.
需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素, 而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or operations There is no such actual relationship or order between them. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device comprising a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals may further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two, in order to clearly illustrate the possibilities of hardware and software. Interchangeability, the above description has generally described the components and steps of each example in terms of functionality. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in conjunction with the embodiments disclosed herein may be directly implemented in hardware, a software module executed by a processor, or a combination of the two. A software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.
以上对本发明所提供的目标跟踪方法、装置、设备及计算机可读存储介质进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The target tracking method, apparatus, device and computer-readable storage medium provided by the present invention have been described in detail above. The principles and implementations of the present invention are described herein by using specific examples, and the descriptions of the above embodiments are only used to help understand the method and the core idea of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, several improvements and modifications can also be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

Claims (10)

  1. 一种目标跟踪方法,其特征在于,包括:A target tracking method, comprising:
    接收始帧图像信息及次帧图像信息;Receive the first frame image information and the second frame image information;
    通过检测算法根据所述始帧图像信息及所述次帧图像信息分别确定始帧对象及次帧对象;Determine the initial frame object and the sub-frame object respectively according to the initial frame image information and the sub-frame image information by a detection algorithm;
    通过关联算法对所述始帧对象及所述次帧对象进行匹配,判断是否存在待定始帧对象与待定次帧对象,其中,所述待定始帧对象与所述待定次帧对象分别指未能成功匹配的所述始帧对象与所述次帧对象;Match the initial frame object and the sub-frame object through an association algorithm, and determine whether there is a pending initial frame object and an pending sub-frame object, wherein the pending initial frame object and the pending sub-frame object respectively refer to the The initial frame object and the secondary frame object that are successfully matched;
    当存在所述待定始帧对象与所述待定次帧对象时,通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象;When there are the pending start frame object and the pending sub-frame object, determine a simulated start frame object corresponding to the pending start frame object through a correlation filtering algorithm;
    通过所述关联算法对所述模拟始帧对象及所述次帧对象进行匹配,判断是否存在目标次帧对象,所述目标次帧对象为与所述模拟始帧对象匹配成功的次帧对象;The simulation start frame object and the subframe object are matched by the association algorithm, and it is judged whether there is a target subframe object, and the target subframe object is a subframe object that is successfully matched with the simulation start frame object;
    当存在所述目标次帧对象时,根据所述目标次帧对象确定对应的跟踪对象。When the target sub-frame object exists, the corresponding tracking object is determined according to the target sub-frame object.
  2. 如权利要求1所述的目标跟踪方法,其特征在于,在通过所述关联算法对所述模拟始帧对象及所述次帧对象进行匹配之后,还包括:The target tracking method according to claim 1, wherein after matching the simulated initial frame object and the secondary frame object by the association algorithm, the method further comprises:
    判断是否存在存疑始帧对象,所述存疑始帧对象为所述次帧对象未匹配成功的模拟始帧对象;Judging whether there is a suspicious initial frame object, the suspicious initial frame object is a simulated initial frame object for which the secondary frame object has not been successfully matched;
    根据所述存疑始帧对象确定存疑跟踪对象。The suspect tracking object is determined according to the suspect initial frame object.
  3. 如权利要求1所述的目标跟踪方法,其特征在于,在判断是否存在待定始帧对象与待定次帧对象之后,还包括:The target tracking method according to claim 1, wherein after judging whether there is a pending initial frame object and an pending secondary frame object, the method further comprises:
    当只存在所述待定始帧对象不存在所述待定次帧对象时,通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象;When only the pending start frame object exists and the pending secondary frame object does not exist, determine the simulated start frame object corresponding to the pending start frame object through a correlation filtering algorithm;
    根据所述模拟始帧对象确定存疑跟踪对象。A suspect tracking object is determined according to the simulated start frame object.
  4. 如权利要求2或3所述的目标跟踪方法,其特征在于,在确定所述存疑跟踪对象之后,还包括:The target tracking method according to claim 2 or 3, characterized in that, after determining the suspect tracking object, further comprising:
    确定所述存疑跟踪对象的相关滤波响应值;determining the correlation filter response value of the suspect tracking object;
    当所述相关滤波响应值小于第一阈值时,确定所述存疑跟踪对象消失;When the correlation filter response value is less than the first threshold, it is determined that the suspected tracking object disappears;
    当所述相关滤波响应值在所述第一阈值与第二阈值之间时,确定所述存疑跟踪对象为非必要跟踪对象;其中,在通过所述相关滤波算法确定所述非必要跟踪对象在之后第一数量的帧数内的跟踪信息后,确定所述非必要跟踪对象消失。When the correlation filter response value is between the first threshold and the second threshold, it is determined that the suspicious tracking object is an unnecessary tracking object; wherein, after determining that the unnecessary tracking object is in the After the tracking information within the first number of frames is obtained, it is determined that the unnecessary tracking object disappears.
  5. 如权利要求1所述的目标跟踪方法,其特征在于,所述通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象包括:The target tracking method according to claim 1, wherein the determining the simulated start frame object corresponding to the to-be-determined start frame object by using a correlation filtering algorithm comprises:
    获取所述待定始帧对象的尺寸信息;obtaining the size information of the pending start frame object;
    判断所述尺寸信息是否小于尺寸阈值;judging whether the size information is less than a size threshold;
    当所述尺寸信息小于所述尺寸阈值时,对所述待定始帧对象对应的目标区域通过top-hat算子进行处理,得到预处理区域;When the size information is smaller than the size threshold, the target area corresponding to the to-be-determined start frame object is processed by the top-hat operator to obtain a preprocessing area;
    根据所述预处理区域通过所述相关滤波算法得到与所述待定始帧对象对应的模拟始帧对象。A simulated start frame object corresponding to the to-be-determined start frame object is obtained through the correlation filtering algorithm according to the preprocessing area.
  6. 一种目标跟踪装置,其特征在于,包括:A target tracking device, comprising:
    接收模块,用于接收始帧图像信息及次帧图像信息;The receiving module is used to receive the image information of the first frame and the image information of the second frame;
    主次帧对象确定模块,用于通过检测算法根据所述始帧图像信息及所述次帧图像信息分别确定始帧对象及次帧对象;a primary and secondary frame object determination module, configured to determine the primary frame object and the secondary frame object respectively according to the primary frame image information and the secondary frame image information through a detection algorithm;
    主次匹配模块,用于通过关联算法对所述始帧对象及所述次帧对象进行匹配,判断是否存在待定始帧对象与待定次帧对象,其中,所述待定始帧对象与所述待定次帧对象分别指未能成功匹配的所述始帧对象与所述次帧对象;The primary and secondary matching module is used to match the initial frame object and the secondary frame object through an association algorithm, and determine whether there is an undetermined initial frame object and an undetermined secondary frame object, wherein the pending initial frame object and the pending The secondary frame objects respectively refer to the initial frame objects and the secondary frame objects that have not been successfully matched;
    相关滤波模块,用于当存在所述待定始帧对象与所述待定次帧对象时,通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象;a correlation filtering module, configured to determine a simulated start frame object corresponding to the pending start frame object through a correlation filtering algorithm when the pending start frame object and the pending secondary frame object exist;
    模拟匹配模块,用于通过所述关联算法对所述模拟始帧对象及所述次帧对象进行匹配,判断是否存在目标次帧对象,所述目标次帧对象为与所述模拟始帧对象匹配成功的次帧对象;The simulation matching module is used to match the simulation start frame object and the subframe object through the association algorithm, and judge whether there is a target subframe object, and the target subframe object is matched with the simulation start frame object successful subframe object;
    跟踪确定模块,用于当存在所述目标次帧对象时,根据所述目标次帧对象确定对应的跟踪对象。A tracking determination module is configured to determine a corresponding tracking object according to the target sub-frame object when the target sub-frame object exists.
  7. 如权利要求6所述的目标跟踪装置,其特征在于,所述模拟匹配模块还包括:The target tracking device of claim 6, wherein the analog matching module further comprises:
    存疑判断单元,用于判断是否存在存疑始帧对象,所述存疑始帧对象 为所述次帧对象未匹配成功的模拟始帧对象;Doubtful judging unit, for judging whether there is a doubtful initial frame object, and the doubtful initial frame object is the simulated initial frame object that the secondary frame object does not match successfully;
    第一存疑确定单元,用于根据所述存疑始帧对象确定存疑跟踪对象。The first suspect determination unit is configured to determine the suspect tracking object according to the suspect initial frame object.
  8. 如权利要求6所述的目标跟踪装置,其特征在于,所述主次匹配模块还包括:The target tracking device according to claim 6, wherein the primary and secondary matching module further comprises:
    待定存疑模拟单元,用于当只存在所述待定始帧对象不存在所述待定次帧对象时,通过相关滤波算法确定与所述待定始帧对象对应的模拟始帧对象;an undetermined suspicious simulation unit, configured to determine a simulated starting frame object corresponding to the undetermined starting frame object through a correlation filtering algorithm when only the undetermined starting frame object does not exist the undetermined secondary frame object;
    第二存疑确定单元,用于根据所述模拟始帧对象确定存疑跟踪对象。The second suspect determination unit is configured to determine the suspect tracking object according to the simulated initial frame object.
  9. 一种目标跟踪设备,其特征在于,包括:A target tracking device, comprising:
    存储器,用于存储计算机程序;memory for storing computer programs;
    处理器,用于执行所述计算机程序时实现如权利要求1至5任一项所述的目标跟踪方法的步骤。The processor is configured to implement the steps of the target tracking method according to any one of claims 1 to 5 when executing the computer program.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5任一项所述的目标跟踪方法的步骤。A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the target tracking method according to any one of claims 1 to 5 is implemented A step of.
PCT/CN2020/133263 2020-09-02 2020-12-02 Target tracking method, apparatus, and device, and computer-readable storage medium WO2022048053A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010908917.7 2020-09-02
CN202010908917.7A CN112070802B (en) 2020-09-02 2020-09-02 Target tracking method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2022048053A1 true WO2022048053A1 (en) 2022-03-10

Family

ID=73665399

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/133263 WO2022048053A1 (en) 2020-09-02 2020-12-02 Target tracking method, apparatus, and device, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN112070802B (en)
WO (1) WO2022048053A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112258559B (en) * 2020-10-26 2024-05-07 上海萱闱医疗科技有限公司 Intelligent running timing scoring system and method based on multi-target tracking
CN114119674B (en) * 2022-01-28 2022-04-26 深圳佑驾创新科技有限公司 Static target tracking method and device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107316317A (en) * 2017-05-23 2017-11-03 深圳市深网视界科技有限公司 A kind of pedestrian's multi-object tracking method and device
US20180053318A1 (en) * 2016-08-22 2018-02-22 Ulsee Inc Image Target Tracking Method and System Thereof
CN108446585A (en) * 2018-01-31 2018-08-24 深圳市阿西莫夫科技有限公司 Method for tracking target, device, computer equipment and storage medium
US20190012800A1 (en) * 2017-07-10 2019-01-10 Electronics And Telecommunications Research Institute Real time multi-object tracking apparatus and method using global motion
CN110287855A (en) * 2019-06-21 2019-09-27 上海闪马智能科技有限公司 A kind of pedestrian track acquisition methods and system
CN110751674A (en) * 2018-07-24 2020-02-04 北京深鉴智能科技有限公司 Multi-target tracking method and corresponding video analysis system
US20200175279A1 (en) * 2018-04-03 2020-06-04 Ali Corporation Object recognition method and object recognition system thereof

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105046220A (en) * 2015-07-10 2015-11-11 华为技术有限公司 Multi-target tracking method, apparatus and equipment
CN109753846A (en) * 2017-11-03 2019-05-14 北京深鉴智能科技有限公司 Target following system for implementing hardware and method
WO2019129255A1 (en) * 2017-12-29 2019-07-04 华为技术有限公司 Target tracking method and device
CN111512317B (en) * 2018-10-24 2023-06-06 深圳鲲云信息科技有限公司 Multi-target real-time tracking method and device and electronic equipment
CN110610510B (en) * 2019-08-29 2022-12-16 Oppo广东移动通信有限公司 Target tracking method and device, electronic equipment and storage medium
CN111354022B (en) * 2020-02-20 2023-08-22 中科星图股份有限公司 Target Tracking Method and System Based on Kernel Correlation Filtering

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180053318A1 (en) * 2016-08-22 2018-02-22 Ulsee Inc Image Target Tracking Method and System Thereof
CN107316317A (en) * 2017-05-23 2017-11-03 深圳市深网视界科技有限公司 A kind of pedestrian's multi-object tracking method and device
US20190012800A1 (en) * 2017-07-10 2019-01-10 Electronics And Telecommunications Research Institute Real time multi-object tracking apparatus and method using global motion
CN108446585A (en) * 2018-01-31 2018-08-24 深圳市阿西莫夫科技有限公司 Method for tracking target, device, computer equipment and storage medium
US20200175279A1 (en) * 2018-04-03 2020-06-04 Ali Corporation Object recognition method and object recognition system thereof
CN110751674A (en) * 2018-07-24 2020-02-04 北京深鉴智能科技有限公司 Multi-target tracking method and corresponding video analysis system
CN110287855A (en) * 2019-06-21 2019-09-27 上海闪马智能科技有限公司 A kind of pedestrian track acquisition methods and system

Also Published As

Publication number Publication date
CN112070802A (en) 2020-12-11
CN112070802B (en) 2024-01-26

Similar Documents

Publication Publication Date Title
CN106991389B (en) Device and method for determining road edge
US10818172B2 (en) Method, device and system for processing startup of preceding vehicle
WO2022048053A1 (en) Target tracking method, apparatus, and device, and computer-readable storage medium
CN110134126B (en) Track matching method, device, equipment and medium
CN108038837B (en) Method and system for detecting target in video
US20060056702A1 (en) Image processing apparatus and image processing method
CN110738150B (en) Camera linkage snapshot method and device and computer storage medium
CN110532916B (en) Motion trail determination method and device
JP5275059B2 (en) Vehicle detection device, vehicle detection system, vehicle detection method for vehicle detection device, and vehicle detection program
US10242575B1 (en) Marked parking space identification system and method thereof
CN111860352B (en) Multi-lens vehicle track full tracking system and method
CN106408554A (en) Remnant detection apparatus, method and system
CN111784729B (en) Object tracking method and device, electronic equipment and storage medium
CN111582253B (en) Event trigger-based license plate tracking and identifying method
KR20210080459A (en) Lane detection method, apparatus, electronic device and readable storage medium
CN110867083B (en) Vehicle monitoring method, device, server and machine-readable storage medium
CN107688764A (en) Detect the method and device of vehicle peccancy
CN110428442B (en) Target determination method, target determination system and monitoring security system
CN111428642A (en) Multi-target tracking algorithm, electronic device and computer readable storage medium
CN109684944B (en) Obstacle detection method, obstacle detection device, computer device, and storage medium
JP2020061127A (en) Lane change vehicle detection device, method, and video monitoring device
CN112347817B (en) Video target detection and tracking method and device
CN114463372A (en) Vehicle identification method and device, terminal equipment and computer readable storage medium
JP5597746B2 (en) Vehicle detection system, vehicle detection device, and vehicle detection method for vehicle detection system
CN106097725A (en) A kind of vehicle classification flow rate testing methods extracted based on behavioral characteristics

Legal Events

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

Ref document number: 20952294

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20952294

Country of ref document: EP

Kind code of ref document: A1