Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A tool to blur faces or other regions in images and videos 🤡🔍

License

NotificationsYou must be signed in to change notification settings

asmaamirkhan/BlurryFaces

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A tool to blur faces or other regions in photos and videos 🕵️‍

🙌 Available Codes

  1. auto_blur_image: Detects and blurs faces(or objects) in a given image automatically due to a Tensorflow model
  2. auto_blur_video: Detects and blurs faces(or objects) in a given video due to a Tensorflow model
  3. manual_blur_image: Blurs manually selected faces(or objects)

🔧🔩 Usage

  1. Clone or download this repo
  2. Opensrc folder in CMD
  3. Install required packages
    pip install -r requirements.txt

Forauto_blur_image.py:

  1. Run:
    python auto_blur_image.py --input_image<PATH_TO_INPUT_JPG_FILE> --output_image<PATH_TO_OUTPUT_JPG_FILE>  --model_path<PATH_TO_INPUT_PB_FILE> --threshold<THRESHOLD>

Forauto_blur_video.py:

  1. Run:
    python auto_blur_video.py --input_video<PATH_TO_INPUT_MP4_FILE> --output_video<PATH_TO_OUTPUT_MP4_FILE> --model_path<PATH_TO_INPUT_PB_FILE>  --threshold<THRESHOLD>

Formanual_blur_image.py:

  1. Run:

    python manual_blur_image.py --input_image<PATH_TO_INPUT_JPG_FILE> --output_image<PATH_TO_OUTPUT_JPG_FILE>
    • Select your ROI (Region of Interest)
    • PressEnter
    • PressQ to finishor any key to select another ROI
  2. To see running options runfor all codes:

    python manual_blur_image.py --help
  3. TADAA 🎉 It's done 🤗

🤗 Examples

Forauto_blur_image.py:

Threshold = 0.4

Forauto_blur_video.py:

Threshold = 0.4

Formanual_blur_image.py:

📍 Note

I am using face detection model inface_model folder that can detects faces but codes are valid for any.pb object detection model.

📖 References

🦸‍♀️ Project's Core Codes

💼 Contact

Find me onLinkedIn and feel free to mail me,Asmaa 🦋

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp