Git Product home page Git Product logo

face_detection_blur_flask_deployment's Introduction

Face detection and blur model - Flask deployment

This repository contains codes to detect and blur faces. The workflow uses the ikomia api which is an open source tool allowing to create easily computer vision application. We use Kornia face detector, an algo that I integrated into ikomia, it can be found in this repository.

Install

Python 3.7, 3.8 or 3.9 is required with requirements1.txt and requirements2.txt

$ git clone https://github.com/ultralytics/yolov5
$ cd face_detection_blur_flask_deployment
$ pip install -r requirements1.txt
$ pip install -r requirements2.txt

Inference

1- Detection and blur from images

Before running the inference, make sur there are some test images in the following folder

images\detect_image

This script will run the workflow on all the images from the detect_image folder and save the results in:

images\detect_res

Detection and blur can be done running the command:

python detect_from_image.py  --images_folder images\detect_image --output_path images\detect_res

2- Detection and blur from camera

To run the camera detection script:

python detect_from_cam.py

Press 'q' to quit.

3- Detection and blur using Flask web framework

Start the Flask app

python app.py 

By default, flask will run on port 5000. Navigate to URL http://localhost:5000

If everything goes well, you should be able to see the live camera and blurred faces!

face_detection_blur_flask_deployment's People

Contributors

allankouidri avatar

Watchers

 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.