How to Detect Faces in a Live Video or Webcam?

Face detection is the ability to detect and locate human faces in an image or a video. In the earlier post, we saw how to create an application to detect faces in an image. In this post, we will learn how to detect faces in live video.