Target tracking method suitable for low-power CPU

By separating the target detector and tracker, and using the detection results to correct the tracker, the problem of slow calculation speed based on deep learning algorithms on low-power processors is solved, and efficient target tracking is achieved, which is suitable for low-power CPU platforms. .

CN118537372APending Publication Date: 2024-08-23HUBEI JIUZHIYANG INFRARED SYST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410540387.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The recognition and tracking type algorithm based on deep learning is slow in calculation on low-power processors and cannot effectively solve the target occlusion problem. There is a lack of tracking algorithms suitable for low-power processors.

Method used

Separate the target detector and tracker, use the detection results of the target detector to correct the tracker, and update the trajectory through confidence classification and Kalman filtering to improve tracking accuracy and speed.

Benefits of technology

Efficient target tracking is achieved on a low-power processor, ensuring tracking accuracy and speed, and is suitable for low-power CPU platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537372A
    Figure CN118537372A
Patent Text Reader

Abstract

The invention discloses a target tracking method suitable for a low-power-consumption CPU. The target tracking method comprises the steps that whether a detector is updated or not is judged; detecting frames and corresponding confidence coefficients are obtained through a detector, and the detecting frames are classified; a track set trackers is obtained through prediction of a tracker; matching a detection frame in the high-confidence group with a track prediction frame of a log state and a tracked state in a track set trackers; for the track of the matchesa, according to the state of the track, the track of the matchesa is added into an activedstarks list; the detection frames in the low confidence coefficient group are matched with the detection frames which are not matched in the unmatchedtracksa; for the track of the matchesb, the state of the track is updated, and the track of the matchesb is added into an active start list; a detection frame in the unmatcheddhigh is matched with a track prediction frame of the untraced state in the track set trackers, and the detection frame in the unmatcheddhigh is matched with the track prediction frame of the untraced state in the track set trackers; state updating is carried out on the matchesc, and the matchesc is added into an activated target list; a track in the active target is output, and the track in the active target is output; and updating the target trajectory in the active tarcks filtering through the Kalman filtering, and outputting the trajectory. According to the invention, the tracking precision and the tracking speed of tracking are ensured at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of target tracking, and in particular to a target tracking method suitable for a low-power CPU. Background Art

[0002] With the continuous development of artificial intelligence, computer vision has made great progress, and target tracking has also been developing continuously. Compared with the traditional tracking algorithm based on target image features, the performance of the tracking algorithm based on deep learning has been greatly improved, especially in solving the problem of target occlusion. Although the recognition and tracking type algorithm based on deep learning has excellent performance, it is limited to the computing platform required. Only high-computing devices can play its advantages, and it is not suitable for low-power processors.

[0003] In view of the shortcoming of slow computing speed of deep learning-based recognition and tracking algorithms on low-power processors, there is an urgent need to provide a feasible tracking algorithm. This algorithm needs to separate the target detector and the tracker, and use the detection results of the target detector to correct the tracker to ensure the tracking accuracy and speed. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a target tracking method suitable for a low-power CPU in view of the defects in the prior art.

[0005] The technical solution adopted by the present invention to solve its technical problem is:

[0006] The present invention provides a target tracking method applicable to a low-power CPU, the method comprising:

[0007] Step 1: Determine whether the detector is updated; if updated, execute step 2; if not updated, execute step 11;

[0008] Step 2: Obtain the detection frame and the corresponding confidence through the detector, and classify the detection frame into a high confidence group D_high and a low confidence group D_low;

[0009] Step 3. Get the track set trackers through tracker prediction; match the detection frame in the high confidence group with the track prediction frame in the lost state and tracked state in the track set trackers, and divide it into: the set of matched tracks matches_a, the set of unmatched tracks in trackers unmatched_tracks_a, and the set of unmatched detection frames in D_high unmatched_d_high;

[0010] Step 4. For the track of matches_a, add it to the activated_starcks list according to the status of the track;

[0011] Step 5: Match the detection boxes in the low confidence group with the unmatched detection boxes in unmatched_tracks_a. According to the matching results, they are divided into: a set of matched tracks matches_b, a set of unmatched tracks in unmatched_tracks_a unmatched_tracks_b, and a set of unmatched tracks in D_low unmatched_d_low;

[0012] Step 6. For the track of matches_b, update the track status and add it to the activated_starcks list;

[0013] Step 7, match the detection box in unmatched_d_high with the track prediction box in the un_tracked state in the track set trackers, and divide it into: a set of matched tracks matches_c, a set of unmatched tracks in the un_tracked state in trackers unmatched_tracks_c, and a set of high confidence detection boxes that have not yet been matched unmatched unmatched_d_high_c;

[0014] Step 8. Update the status of matches_c and add it to the activated_tarcks list;

[0015] Step 9: Update the status of matches_c and unmatched_tracks_c;

[0016] Step 10, output the trajectory in activated_tarcks;

[0017] Step 11: Update the target trajectory in the activated_tarcks filter through the Kalman filter and output the trajectory.

[0018] Furthermore, the method of step 2 of the present invention comprises:

[0019] The detection frame is classified. If the confidence is higher than T_high, the detection frame is classified into the high confidence group D_high. If the confidence is lower than T_high and higher than T_low, the detection frame is classified into the low confidence group D_low. If the confidence is lower than T_low, it is discarded. T_high and T_low represent the confidence thresholds, and T_high is greater than T_low.

[0020] Furthermore, the states of the tracks in the track set trackers in step 3 of the present invention include: a lost state, ie, a lost state; an activated state, ie, a tracked state; and a to-be-activated state, ie, an un_tracked state.

[0021] Furthermore, the method in step 4 of the present invention includes: if the state of the track is tracked and un_tracked, updating the track state and the average per-frame moving speed of the track, and adding the track to the activated_starcks list; if the state of the track is lost, reactivating the track and adding it to the activated_starcks list.

[0022] Furthermore, the matching method in step 5 of the present invention includes:

[0023] IOU is used as the detection box and trajectory similarity calculation method, and the calculation process is:

[0024] x1=max(x i1, x j1 )

[0025] x2=min(x i2 , x j2 )

[0026] y1=max(y i1 ,y j1 )

[0027] y2=min(y i2 ,y j2 )

[0028] S intersection =max(x1-x2+1.0,0)*max(y1-y2+1.0,0)

[0029] S i =(x i1 -x i2 +1.0)*(y i1 -y i2 +1.0)

[0030] S j =(x j1 -x j2 +1.0)*(y j1 -y j2 +1.0)

[0031]

[0032] Among them, IOU (i,j)represents the intersection-over-union ratio of detection box i and trajectory j. The coordinates of detection box i are (x i1 , x i2 ,y i1 ,y i1 ), the predicted coordinates of the trajectory are (x j1 , x j2 ,y j1 ,y j1 ).

[0033] Furthermore, the method of step 6 of the present invention comprises:

[0034] Update the track status of unmatched_tracks_b to determine whether it needs to be deleted from the tracking track. If it is a detection box in the to-be-activated state and the number of frames waiting to be updated is greater than 3 frames, set its state to the deleted state. If it is a detection box in the confirmed activated state and the number of frames waiting to be updated is greater than the threshold max_age, set to 30 frames, that is, it has not been matched for 30 consecutive frames, set its state to the deleted state and delete it; delete the unmatched low confidence group unmatched_d_low.

[0035] Furthermore, the method of step 8 of the present invention comprises:

[0036] Delete the track in unmatched_tracks_c; if the confidence of the unmatched high-confidence detection box in unmatched_d_high_c is greater than the threshold 0.6, it is considered to be the first frame of a new track, and it is converted into a new track with the status of un_tracked, and the new track is added to the activated_tarcks list.

[0037] Furthermore, the method of step 9 of the present invention comprises:

[0038] The unmatched high-confidence detection box in unmatched_d_high_c is taken as a new track and initialized; the tracking box in the deleted state is removed from the tracking queue to obtain the latest tracking result of the frame.

[0039] Further, the method in step 11 of the present invention comprises:

[0040] Use Kalman filtering to predict the next box position. The process is as follows:

[0041] X k+1 =FX k +W k

[0042] Z k+1 =HX k +Vk

[0043] Among them, X is an 8-dimensional state vector in the form of [x, y, w, h, vx, vy, vw, vh], x, y, w, h are the target position information, vx, vy, vw, vh are the speeds corresponding to x, y, w, h, Z is a 4-dimensional observation vector in the form of [x, y, w, h], subscript k represents the video frame number, and F is the state transfer matrix:

[0044]

[0045] H is the observation matrix:

[0046]

[0047] Since the system is linear, F and H are both constant matrices; W is the process noise, V is the observation noise, and the statistical characteristics of the process noise and observation noise are expressed as follows:

[0048] E(W)=0, E(V)=0, cov(W)=E(WW T )=Q,cov(V)=E(VV T )=R

[0049] Among them, Q is a symmetric non-negative definite matrix, R is a symmetric positive definite matrix; given the initial state vector and the initial state estimation error covariance

[0050] The present invention provides a computer-readable storage medium storing a computer program for implementing the above-mentioned target tracking method applicable to a low-power CPU when executed by a processor.

[0051] The beneficial effects produced by the present invention are:

[0052] In view of the shortcoming of slow calculation speed of deep learning-based recognition and tracking algorithms on low-power processors, the present invention provides a feasible tracking algorithm. The algorithm of the present invention separates the target detector and the tracker, and uses the detection results of the target detector to correct the tracker to ensure the tracking accuracy and tracking speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0054] Figure 1 It is a flow chart of a method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0056] Example 1

[0057] like Figure 1 As shown, the embodiment of the present invention aims at the problem that the algorithm of the type of first identification and then tracking in the low-power processor has slow processing speed and high delay. The present invention proposes a tracking algorithm to improve the tracking speed, and the processing steps are as follows:

[0058] Step 1: First determine whether the detector is updated. If updated, proceed to step 2. If not, proceed to step 11.

[0059] Step 2: Obtain the detection frame and the corresponding detection frame confidence through the detector, and classify the detection frame. If the confidence is higher than T_high, the detection frame is classified into the high confidence group D_high. If the confidence is lower than T_high and higher than T_low, the detection frame is classified into the low confidence group D_low. If it is less than T_low, it is discarded.

[0060] Step 3: Match the detection boxes in the high confidence group D_high with the track prediction boxes in the track set trackers (lost state and tracked state) to obtain three result sets: the set of matched tracks matches_a, the set of unmatched tracks in trackers unmatched_tracks_a, and the set of unmatched detection boxes in D_high unmatched_d_high;

[0061] Step 4: For the track of matches_a, if the track status is tracked or un_tracked, update the track status and the average moving speed of the track per frame, and add the track to the activated_starcks list; if the track status is lost, reactivate the track, activated_starcks;

[0062] Step 5: Match the unmatched tracking frames in the low confidence group D_low and unmatched_tracks_a. At this time, the cost matrix calculation only needs to calculate the IOU of the rotation frame, and three matching results are obtained, namely, the matched low confidence group D_low and the set matches_b of the unmatched tracking frame in the third step, the set unmatched_tracks_b of the unmatched tracking frame in the confirmed tracking track, and the set unmatched_d_low of the unmatched low confidence group D_low;

[0063] Step 6: For the matched tracks in matches_b, update the track status (call the track update method), and add this track to the activated_starcks list; update the track status of unmatched_tracks_b, and determine whether it needs to be deleted from the tracking track. If it is a tracking frame in the pending activation state and the number of frames waiting to be updated is greater than 3 frames, set its state to the deleted state; if it is a frame that has been confirmed to be activated and the number of frames waiting to be updated is greater than max_age, generally set to 30 frames, that is, there is no match for 30 consecutive frames, set its state to the deleted state and delete it; delete the unmatched low confidence group unmatched_d_low;

[0064] Step 7: Match the set of unmatched high-quality detection frames in unmatched_d_high with the set of frames to be activated in the tracking trajectory (un_tracked state). Three matching results are obtained, namely the set of matched high-quality detection frames and the set of tracking frames to be activated in the tracking trajectory matches_c, the set of unmatched tracking frames to be activated unmatched_tracks_c, and the set of high-confidence detection frames that have not been matched unmatched_d_high_c;

[0065] Step 8: Update the status of matches_c and add it to the activated_tarcks list; delete the track in unmatched_tracks_c; if the confidence of the unmatched high-confidence detection box in unmatched_d_high_c is greater than the threshold 0.6, it is considered that this may be the first frame of a new track, and it is converted into a new track with the status of un_tracked, and this new track is added to the activated_tarcks list;

[0066] Step 9: Update the status of matches_c and unmatched_tracks_c, and initialize the unmatched high-confidence detection box in unmatched_d_high_c as a new track; finally, remove the tracking box in the deleted state from the tracking queue to obtain the latest tracking result of the frame.

[0067] Step 10: Output the trajectory in activated_tarcks;

[0068] Step 11: Update the target trajectory in the activated_tarcks filter through the Kalman filter and output the trajectory.

[0069] Example 2

[0070] The algorithm of the embodiment of the present invention is composed of two parts: a detector and a tracker. The detector and the tracker run simultaneously and perform parallel calculations. It is suitable for a computing platform where the detector takes a long time and the tracker takes a short time. The detector continuously corrects the position and movement speed of the target in the tracker to improve the tracking performance.

[0071] From step 2 to step 10, the detection boxes are classified and discussed according to their confidence. Targets with confidence exceeding T_high must exist. If the track in the track list matches, the track status is updated. Otherwise, a track is added. Detection boxes with confidence less than T_high and greater than T_low may be occluded, so they need to be matched with existing tracks to confirm whether they are false detections.

[0072] In the tracking algorithm, tracks are divided into three types: activated_tarcks, which are matched with the target box every time, uncomfirmed_track, which are matched only once, and lost_tracks, which are not matched for no more than 30 consecutive frames; the track status in activated_tarcks is tracked, the track status in uncomfirmed_tracks is un_tracked, and the track status in lost_tracks is lost.

[0073] Kalman filtering is used in the tracking algorithm to predict the next box position. The process is as follows:

[0074] X k+1 =FX k +W k

[0075] Z k+1 =HX k +V k

[0076] Among them, X is an 8-dimensional state vector in the form of [x, y, w, h, vx, vy, vw, vh], x, y, w, h are the target position information, vx, vy, vw, vh are the speeds corresponding to x, y, w, h, Z is a 4-dimensional observation vector in the form of [x, y, w, h], subscript k represents the video frame number, and F is The state transfer matrix, H is Observation matrix. Since the system is linear, F and H are both constant matrices. W is process noise, V is observation noise, and the statistical characteristics of process noise and observation noise are expressed as follows:

[0077] E(W)=0, E(V)=0, cov(W)=E(WW T )=Q,cov(V)=E(VV T )=R

[0078] Where Q is a symmetric non-negative definite matrix, and R is a symmetric positive definite matrix. Given the initial state vector and the initial state estimation error covariance

[0079] In a preferred embodiment of the present invention, the algorithm uses IOU as a target frame and trajectory similarity calculation method, and the calculation process is:

[0080] x1=max(x i1 , x j1 )

[0081] x2=min(x i2 , x j2 )

[0082] y1=max(y i1 ,y j1 )

[0083] y2=min(y i2 ,y j2 )

[0084] S intersection =max(x1-x2+1.0,0)*max(y1-y2+1.0,0)

[0085] S i =(x i1 -x i2 +1.0)*(y i1 -y i2 +1.0)

[0086] S j =(x j1 -x j2 +1.0)*(y j1 -yj2 +1.0)

[0087]

[0088] Among them, IOU (i,j) represents the intersection-and-union ratio of target box i and trajectory j. The coordinates of target box i are (x i1 , x i2 ,y i1 ,y i1 ), the predicted coordinates of the trajectory are (x j1 , x j2 ,y j1 ,y j1 ).

[0089] Example 3

[0090] An embodiment of the present invention provides a target tracking system suitable for a low-power CPU, including:

[0091] a memory for storing executable computer programs;

[0092] The processor is used to implement the above-mentioned target tracking method applicable to low-power CPU when executing the executable computer program stored in the memory.

[0093] In this embodiment, the memory (i.e., readable storage medium) includes flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and programmable read-only memory (PROM). It can also be an external storage device of a computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory can also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the memory is generally used to store the operating system and various application software installed on the computer device. In addition, the memory can also be used to temporarily store various types of data that have been output or are to be output.

[0094] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0095] It should be understood that those skilled in the art can make improvements or changes based on the above description, and all these improvements and changes should fall within the scope of protection of the appended claims of the present invention.

Claims

1. A target tracking method suitable for low-power CPU, characterized in that: The method includes: Step 1: Determine whether the detector is updated; if updated, execute step 2; if not updated, execute step 11; Step 2: Obtain the detection frame and the corresponding confidence through the detector, and classify the detection frame into a high confidence group D_high and a low confidence group D_low; Step 3. Get the track set trackers through tracker prediction; match the detection frame in the high confidence group with the track prediction frame in the lost state and tracked state in the track set trackers, and divide it into: the set of matched tracks matches_a, the set of unmatched tracks in trackers unmatched_tracks_a, and the set of unmatched detection frames in D_high unmatched_d_high; Step 4. For the track of matches_a, add it to the activated_starcks list according to the status of the track; Step 5: Match the detection boxes in the low confidence group with the unmatched detection boxes in unmatched_tracks_a. According to the matching results, they are divided into: a set of matched tracks matches_b, a set of unmatched tracks in unmatched_tracks_a unmatched_tracks_b, and a set of unmatched tracks in D_low unmatched_d_low; Step 6. For the track of matches_b, update the track status and add it to the activated_starcks list; Step 7, match the detection box in unmatched_d_high with the track prediction box in the un_tracked state in the track set trackers, and divide it into: a set of matched tracks matches_c, a set of unmatched tracks in the un_tracked state in trackers unmatched_tracks_c, and a set of high confidence detection boxes that have not yet been matched unmatched unmatched_d_high_c; Step 8. Update the status of matches_c and add it to the activated_tarcks list; Step 9: Update the status of matches_c and unmatched_tracks_c; Step 10, output the trajectory in activated_tarcks; Step 11: Update the target trajectory in the activated_tarcks filter through the Kalman filter and output the trajectory.

2. The target tracking method suitable for low-power CPU according to claim 1, characterized in that: The method of step 2 comprises: The detection frame is classified. If the confidence is higher than T_high, the detection frame is classified into the high confidence group D_high. If the confidence is lower than T_high and higher than T_low, the detection frame is classified into the low confidence group D_low. If the confidence is lower than T_low, it is discarded. T_high and T_low represent the confidence thresholds, and T_high is greater than T_low.

3. The target tracking method suitable for low-power CPU according to claim 1, characterized in that: The states of the tracks in the track set trackers in step 3 include: a lost state, i.e., a lost state; an activated state, i.e., a tracked state; and a pending activation state, i.e., an un_tracked state.

4. The target tracking method suitable for low-power CPU according to claim 1, characterized in that: The method in step 4 includes: if the state of the track is tracked or un_tracked, updating the track state and the average moving speed of the track per frame, and adding the track to the activated_starcks list; if the state of the track is lost, reactivating the track and adding it to the activated_starcks list.

5. The target tracking method suitable for low-power CPU according to claim 1, characterized in that: The matching method in step 5 includes: IOU is used as the detection box and trajectory similarity calculation method, and the calculation process is: x1=max(x i1 ,x j1 ) x2=min(x i2 , x j2 ) y1=max(y i1 ,and j1 ) y2=min(y i2 ,y j2 ) S intersection =max(x1-x2+1.0,0)*max(y1-y2+1.0,0) S i (x) i1 -x i2 +1.0)*(and i1 -and i2 +1.0) S j (x) j1 -x j2 +1.0)*(and j1 -and j2 +1.0) Among them, IOU ( i,j ) represents the intersection-over-union ratio of detection box i and trajectory j. The coordinates of detection box i are (x i1 ,x i2 ,y i1 ,y i1 ), the predicted coordinates of the trajectory are (x j1 ,x j2 ,y j1 ,y j1 ).

6. The target tracking method suitable for low-power CPU according to claim 1, characterized in that: The method of step 6 comprises: Update the track status of unmatched_tracks_b to determine whether it needs to be deleted from the tracking track. If it is a detection box in the to-be-activated state and the number of frames waiting to be updated is greater than 3 frames, set its state to the deleted state. If it is a detection box in the confirmed activated state and the number of frames waiting to be updated is greater than the threshold max_age, set to 30 frames, that is, it has not been matched for 30 consecutive frames, set its state to the deleted state and delete it; delete the unmatched low confidence group unmatched_d_low.

7. The target tracking method suitable for low-power CPU according to claim 6, characterized in that: The method of step 8 comprises: Delete the track in unmatched_tracks_c; if the confidence of the unmatched high-confidence detection box in unmatched_d_high_c is greater than the threshold 0.6, it is considered to be the first frame of a new track, and it is converted into a new track with the status of un_tracked, and the new track is added to the activated_tarcks list.

8. The target tracking method suitable for low-power CPU according to claim 7, characterized in that: The method of step 9 comprises: The unmatched high-confidence detection box in unmatched_d_high_c is taken as a new track and initialized; the tracking box in the deleted state is removed from the tracking queue to obtain the latest tracking result of the frame.

9. The target tracking method applicable to a low-power CPU according to claim 7, characterized in that: The method in step 11 includes: Use Kalman filtering to predict the next box position. The process is as follows: X k+1 =FX k +W k Z k+1 =HX k +V k Among them, X is an 8-dimensional state vector in the form of [x, y, w, h, vx, vy, vw, vh], x, y, w, h are the target position information, vx, vy, vw, vh are the speeds corresponding to x, y, w, h, Z is a 4-dimensional observation vector in the form of [x, y, w, h], the subscript k represents the video frame number, and F is the state transfer matrix: H is the observation matrix: Since the system is linear, F and H are both constant matrices; W is the process noise, V is the observation noise, and the statistical characteristics of the process noise and observation noise are expressed as follows: E(W)=0, E(V)=0, cov(W)=E(WW T )=Q,cov(V)=E(VV T )=R Among them, Q is a symmetric non-negative definite matrix, R is a symmetric positive definite matrix; given the initial state vector and the initial state estimation error covariance 10. A computer-readable storage medium, characterized in that: A computer program is stored, which is used to implement the target tracking method applicable to a low-power CPU as described in any one of claims 1 to 9 when executed by a processor.