A Python Program that uses OpenCV's haarcascade to Detect and Blur Faces
Language Used = Python3
Modules/Packages used:
- cv2
- datetime
- optparse
- time
- colorama
Install the dependencies:
pip install -r requirements.txt
It takes the following arguments from the command that is used to run the Python Program:
- '-i', "--image" : Path to the Image file (If not specified, will take frame from Camera Stream)
- '-c', "--cascade" : Path to cascade File
- '-s', "--scale-factor" : Scale Factor
- '-m', "--min-neighbors" : Minimum Neighbors
Image/Live Video Stream from the Camera with Detected and Blurred Faces and number of detected Faces on the Command Line Interface.
If the output was not what you expected, try to adjust the scale-factor and min-neighbors value.