Training a Viola-Jones classifier from scratch can take a long time. Fortunately, a pre-trained Viola-Jones classifier comes out-of-the-box with OpenCV! You will use that one to see the algorithm in action. If you really want to train the classifier yourself, scikit-image
offers a tutorial with the accompanying code on their website.
To follow the exercise in this lesson, you’re going to need to dowload the following image:

You’ll also need to go to the OpenCV GitHub repo.
kishorekaruparthi on Sept. 9, 2019
Hello Austin,
Can i use haarcascade_frontalface_alt.xml for any image to detect faces?