- This uses OpenCV’s Haar cascades to detect and extract the facial region from an image or the webcam frame.
- Then this image is passed through the trained CNN, which returns a tensor corresponding to the predicted class.
Balance the dataset.Augment training data to increase overall robustness of the model.Implement the whole thing using PyTorch.