Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.12 KB

File metadata and controls

38 lines (25 loc) · 1.12 KB

Automated_face_blurring

Nowadays, face recognition is of utmost importance in almost every industry. But what if the situation demands its opposite? For privacy, identity protection and security, anonymising face by blurring it helps a lot.

This requirement can be accomplished by using OpenCV and Python.

Two ways

  • Plain blurring
  • Pixelized blurring

Plain blurring

  • Perform face detection
  • Extract face ROI
  • Apply Gaussian Blur
  • Replace the blurred face in original image / video frame

Pixelated face blurring

This is more demanding and pleasant to use.

  • Detect and extract face ROI
  • Divide it into MXN blocks
  • Compute mean RGB pixel intensity of each block
  • Annotate a rectangle on the block to create "pixelated" effect
  • Apply the processed face ROI in original image

Samples



video