Skip to content
/ faceblur Public

Detect and blur all faces on videos and photos.

Notifications You must be signed in to change notification settings

obito/faceblur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

faceblur

Detect and blur faces in less than a second with the help of OpenCV and dlib.

Install

You have to install OpenCV. You can see instruction here.

You also have to install dlib, you can get instruction here.

How to use

Clone this repo, put the images that you want to blur in the images folder.

Run the program, and you will get the blurred faces in dist folder.

git clone https://github.com/obito/faceblur
cd faceblur
go mod download
go run .
  • -cnn flag is used to tell if it should use CNN for recognition. Default is false.

Unfortunately I can't provide binaries because of OpenCV limitations, I can't cross compile CGO.

Example

Before After
Before (without CNN) After (without CNN)

Improve recognition accuracy

  • CNN recognizing (takes more time).
  • Try different tolerance values of ClassifyThreshold
  • Try different size/padding/jittering values of NewRecognizerWithConfig
  • Train network (dlib_face_recognition_resnet_model_v1.dat) on your own data.