Skip to content

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

Notifications You must be signed in to change notification settings

hatimzh/BlurringKnownFaces

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages