Face Tracking is a Computer Vision technology that detects and locates the presence of a human face in a digital image or video. The technology is anonymous and only discerns a human face by focusing on facial features, providing information about a person’s gender and age bracket.
- Meanshift is a very useful method to keep track of a particular object inside a video.
- We define an initial window, generally a square or a circle for which the positions are specified by ourself which identifies the area of maximum pixel distribution and tries to keep track of that area in the video.
- The direction of movement depends upon the difference between the center of our tracking window and the centroid of all the k-pixels inside that window.
- MeanShift algorithm can be used in OpenCV as follows :
cv2.meanShift()
- It is an enhanced version of the meanshift algorithm which provides more accuracy and robustness to the model.
- With the help of Camshift algorithm, the size of the window keeps updating when the tracking window tries to converge.
- Also, it provides the best fitting tracking window for object tracking.
- CamShift algorithm can be used in OpenCV as follows :
cv2.CamShift()