Kalman Filter to smoothen pose estimation on videos.
-
DATGCampNAc1_emetrial2.csv is the tracking data generated using SimBA. dlc_output.mp4 is a video generated by SimBA with the bodyparts overlayed on the sample video.
-
In kalman_filter.py, call method kalmancsv("DATGCampNAc1_emetrial2.csv",10) with the .csv file as input and the level for smoothness.
-
Then, it will generate output_level_X_DATGCampNAc1_emetrial2.csv.
-
In video_overlay.py, call method overlaybp("output_level_X_DATGCampNAc1_emetrial2.csv", "dlc_output.mp4") with the output.csv generated from step 3 and video file as input.
-
output_dlc_output.mp4 will be generated. Open the video file to visualize the tracking data overlayed on the video.