Datasets: all input videosHaarcascade_Classifier: two classifiers. We usedhaarcascade_frontalface_alt.xmlclassifier because it has better performanceOutput_Video: contains all types of output videos, including.avi,.m4v,.mov. Grade whichever opens on your laptop.First_Frame_with_Features: contains all first frame images with feature points and boxes overlaidResourcesis micellaneous, can be ignored
detectFace.py: defaultscaleFactor=1.1. AdjustscaleFactor=1.02when running onstrangerthings.mp4helper.py: containsdrawBoxfunction which copies image with feature box overlaid on it, and gaussian convolution functiongaussianPDFwhich returns an operator for Ix and Iy
faceTracking.py: main function produces the tracked videos.
To test on different input videos, change
rawvideofile path andtracked_videofile path. If atracked_videowith the same name already exist, videowriter does not override and will fail to produce new tracked video file.
note: the color scale is a bit off