Skip to main content
. 2021 Feb 22;21(4):1527. doi: 10.3390/s21041527
Algorithm 1 Pseudo-Code for visitor detection from a video streaming source
1: Read CCTV video stream file
2: Set frame as video frame at time T, where T is the last epoch
3: Set scale as 1.05 for optimum human figure detection
4: Set group threshold as 1to detect each individual in frame
5: Detect and draw detection rectangles over identified human figures
6: for rectangle in detection rectangles of a frame
7:   Set X as x coordinate of top, left vertex of the rectangle
8:   Set Y as y coordinate top, left vertex of the rectangle
9:   Set width as width of the rectangle
10: Set height as height of the rectangle recommendations
11: Set center_x as X + width/2
12: Set center_y as Y + height/2
13: Save center_x, center_yin CSV files //the CSV files will be read by Popularity estimation module
14: end for