Library required: openCV, sklearn, numpy For Classifier: Change address of dirBase to the directory containg floders of walking and jogging video. Output give a matrix showing correct and wrong classification along with the best parameter.
For Frame Comparison change the address of video to your required video. Output shows the value of current frame and the difference from last frame, at last gives maximum of difference
For Contour Center change the address of video to your required video. Output shows the video with contour center of frame as well as moving object