Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 2.42 KB

README.md

File metadata and controls

35 lines (30 loc) · 2.42 KB

BlurringKnownFaces

Python program based on computer vision to bluring detected known faces.

Usage

  • Install opencv and face_recognition:

    pip install opencv-python face_recognition
    

    or

    python -m pip install opencv-python face_recognition
    
  • Running the program:

    • You can add a folder to (This folder) with the name of the person who you want to detect his face to blurring it, this folder must contains at least two photos to detect the faces better.

      Note: More photos get best detection.

    • There are two methodes to detect and blurring faces:
      • Detection from cam :
        You can just run this program using this command:
        python face_detection.py
        

        Note: If you want to run an externel cam you should modify this line.
        Example : Example of an external Cam.

      • Detection from given video :
        You can do this by adding a video or a GIF file in this folder.

        Note: You should modify this script by commenting this line and uncomment these lines : 29 to 34, 80 and 90.
        You can see the example in the Demo

Demo

demo.mp4

Note: As you see in the demo, it's so slow because I use only the CPU, so you can run it in a GPU to make it more fast.
You may need to install Cmake to run the code without errors.