Coder Social home page Coder Social logo

iuracpersonal / popolo Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 10.75 MB

π™²πš… π™΅πšŠπšŒπšŽ π™±πš•πšžπš›πš›πš’πš—πš π™Όπš˜πšπšŽπš•

License: MIT License

Jupyter Notebook 34.84% Python 24.62% CSS 18.39% HTML 22.15%
flask python computer-vision video-processing

popolo's Introduction

Computer Vision Camp

Team: Popolo

Mentor: Stojoc Vladimir

Table of contents

Project Description

Seeing as the children are victims of abuse and is are potential witnesses at criminal proceedings, sharing the videos which show the faces of the children subjects the children to potential harm such as victimisation and/or retribution. For this reason, our team developed an application that will blurry the children's faces in videos.

Implementation

In order to develop the model for video processing, we combined two neural networks, one for face recognition and the second one, for face classification. As Convolutiona Neural Network for classification, we used the pretrained 101-layered ResNet net=resnet101(), on 10 epochs, that gave us the following results:

unknown (2)

unknown (1)

The dataset used to train the classificator was composed of two classes: kids and adults, therefore, the train data consisted of 1820 images each class and test length was 780 per each class.

For face recognition, we used OpenCV – DNN method as it is pretty fast and very accurate, even for small sized faces. It also detects faces at various angles and with different light conditions. Actually, DNN detects the face and passes it to the classificator, if the class is greater that 0.5 and less than 1.0, it is a child and this face should be blurred. In order to blur a face, we cut it taking in consideration the coordinates of the face box, we blur it using ImageFilter.GuassianBlur() and we put back this face. Also, we keep the audio of the video, if it exists using MoviePy module.

Installation

  1. Clone the repo:
git clone https://github.com/IuraCPersonal/popolo
  1. Install and update using pip:
pip install -r requirements.txt
  1. To run the application, use the flask command or python -m flask:
flask run

References

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.