Git Product home page Git Product logo

reactredux_djangorf's Introduction

React_DjangoRF

Photo gallery web application deployed with docker that auto detects the faces on the images and label them when uploaded with the name of the person.

Preview

This is how the application looks, it shows the process of upload an image.

This is what the backend is actually getting.

Features

Service Description
Layout The container of the application
Gallery Where all images are displayed with tags
Login Regular login with JWT
Register Regular register with JWT
Face Recognition When a image is uploaded, it automatically detects the face and labels it(if there are any match)

Technologies

Frontend

Backend

Face recognition (codebase)

  • opencv-python - Open Source Computer Vision Library
  • dlib - C++ toolkit containing machine learning algorithms
  • face-recognition - Face recognition API
  • numpy - Scientific computing library
  • Pillow - Python Imaging Library

Deploy

Database

Deploying the backend to support GPU processing

Docker compose

Version of docker-compose:

version: "2.3"

Ubuntu with CUDA and CUDNN

image: nvidia/cuda:10.1-cudnn7-devel

Runtime (this is the reason to use v2.3):

runtime: "nvidia"

Environment variables:

environment:
      - NVIDIA_VISIBLE_DEVICES=all

Sharing host's GPU with the container:

    devices:
      - /dev/nvidia0:/dev/nvidia0
      - /dev/nvidiactl:/dev/nvidiactl
      - /dev/nvidia-modeset:/dev/nvidia-modeset

Files

(In backend/utils/face_recognition)

encode_faces.py: Script to encode the faces of the datasets into files(pickle)

lib_detect_faces.py: Library that recognize the faces on the image

image_resizer.py: Script that reduce the size of the image(My 2GB GPU cannot process a big image)

increase_dataset.py: It generates extra images from a image base, modifying each image and adding zooms, flips, deformations...

The other files aren't in use rigth now.

File structure

.
├── backend
│   ├── apps
│   │   ├── authentication
│   │   ├── core
│   │   ├── profiles
│   │   └── userimages
│   │       
│   ├── images
│   └── utils
│       └── face_recognition
│           ├── dataset
│           │   ├── jordi
│           │   └── raul
│           ├── output
│           └── pickles
│
├── frontend
│   ├── public
│   └── src
│       ├── components
│       │   ├── Auth
│       │   ├── Common
│       │   ├── Layout
│       │   └── Photos
│       ├── constants
│       └── reducers
└── readme_media

reactredux_djangorf's People

Contributors

jordilg13 avatar

Stargazers

Chavda_Dhruv447 avatar  avatar

Watchers

James Cloos avatar yomogan avatar  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.