| Feature extraction pseudocode |
| 1: Begin Function 2: Obtain training videos 3: Video image preprocessing. Take one frame from each two consecutive frames and record. 4: Select pure background image without person as Ie. Select images with person walking as Ip. 5: Do image difference (Idif = Ip − Ie). 6: Image denoising using bilateral filtering 7: Search body silhouette using edge detection operator 8: Calculate the smallest rectangle that is perpendicular to the boundary of body silhouette 9: Search the upper, middle and lower barycenter of the human bodyaccording to the image moment, (center1, center2, center3) 10: Calculate the area of a triangle composed of three centers of multiple barycenters. 11: Draw a walking roadmap according to the projection of the triangle. 12: Calculate walking speed of the first half and the second half during the whole walking time, respectively. 13: End function |