Skip to main content
. 2022 Dec 16;22(24):9948. doi: 10.3390/s22249948
Algorithm 1: Query image injection.
1 Conduct map matching for trajectory T ;
2 Estimate the travel speed in road segment e ;
3 Determine the image injection period ts,te ;
4 Perform object detection and tracking for video frames in ts,te ;
5 Randomly select a detected object Os ;
6 for each video frame f within ts,te do
7 bbox the bounding box of Os in f  ;
8 Randomly select an image Fq from gallery L ;
9 Resize Fq with equal size to bbox ;
10 Replace Os in frame f with Fq ;