The first one for "Loading the necessary libraries".
The cell after "Let us create a generalised function for the entire face detection process."
The cell after "Testing the function on new image"
The cell after "Saving the image and face position metadata"
There are two main improvements:
I figured out how to change the classifier training function. In the cell after "Testing the function on new image", there are four choices for "haar_cascade_face" that you can change by uncommenting. The one we were using (haarcascade_frontalface_alt2.xml) is strict and misses a lot of faces. The haarcascade_frontalface_default.xml one is less strict and finds faces in a lot more images, but it also generates false negatives as you will see when you try it out. You can test the different ones with different images, but I think we should probably use this one.
The last cell automatically saves the marked-up file in the same folder as the original and with the same filename but with "_faces.png" appended to the name. It also saves a JSON file with the coordinates of the bounding boxes of the faces it finds. We should have those data for future use.
Tasks for 2021-10-19 meeting:
We can plan to meet in person since I will be on campus that day.