Giter Club home page Giter Club logo

blurryfaces's Introduction

πŸ•΅οΈβ€β™€οΈ Blurry Faces

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. Open src folder in CMD
  3. Install required packages
    pip install -r requirements.txt

For auto_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>

For auto_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>

For manual_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)
    • Press Enter
    • Press Q to finish or any key to select another ROI
  2. To see running options run for all codes:

    python manual_blur_image.py --help
  3. TADAA πŸŽ‰ It's done πŸ€—

πŸ€— Examples

For auto_blur_image.py:

Threshold = 0.4

For auto_blur_video.py:

Threshold = 0.4

For manual_blur_image.py:

πŸ“ Note

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

πŸ“– References

πŸ¦Έβ€β™€οΈ Project's Core Codes

πŸ’Ό Contact

Find me on LinkedIn and feel free to mail me, Asmaa πŸ¦‹

blurryfaces's People

Contributors

asmaamirkhan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.