|
Algorithm 1 Siamese network tracking with template update steps |
-
1:
Initialize the SiamRPN tracker.
-
2:
Begin the target tracking cycle by utilizing the SiamRPN tracker for comprehensive target tracking.
-
3:
if In cases of target occlusion, then
-
4:
Employ the KCF tracker for target position estimation and update the target box in the SiamRPN tracker.
-
5:
end if
-
6:
if the target is unoccluded, continue with the SiamRPN tracker. then
-
7:
Update the template at designated frame intervals (every N frames).
-
8:
Update the template if the target, previously occluded, reappears with low prediction confidence in the current frame’s SiamRPN.
-
9:
end if
-
10:
Render and display the tracking box of the current target on each video frame.
-
11:
Conclude target tracking.
|