Giter Site home page Giter Site logo

face-analysis's Introduction

face-analysis

flask crud with mysql and deepface as backend

Getting started

For standalone web service:

Installation

Clone this repository

git clone https://github.com/Pritish053/face-analysis.git
cd face-analysis/

Create a new pip environment

python3.8 -m venv env_flask

#just to make sure you have updated version of pip
pip install -U pip

pip install -r requirements.txt

Run with flask.

python api.py

Visit http://localhost:5000

ML Service API Check

To check whether the ML Service api is working or not (in the case of using third party API for inferencing ) Chnage the IP Address of the API and run

python3 checkMLSERVICE.py  

Database Schema

Create users table

CREATE TABLE `users` (
      `id` int NOT NULL AUTO_INCREMENT,
      `name` varchar(250) NOT NULL,
      `email` varchar(250) NOT NULL,
      `photo` varchar(250) NOT NULL,
      `time` varchar(255) NOT NULL,
      `age` int NOT NULL,
      `gender` varchar(250) NOT NULL,
       PRIMARY KEY (`id`) );

Create table for storing admin credentials

CREATE TABLE `admin` (
       `id` int NOT NULL AUTO_INCREMENT,
       `username` varchar(50) NOT NULL,
       `password` varchar(255) NOT NULL,
        PRIMARY KEY (`id`));

Docker Container

docker build -t faceanalysiswebapp .
docker run -d -p 5000:5000 --name webappfaceanalysis faceanalysiswebapp
# docker stop webappfaceanalysis

Logs

Check logs with docker logs:

docker logs webappfaceanalysis

face-analysis's People

Contributors

pritish053 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.