Coder Social home page Coder Social logo

datct00 / face-recognition-app-using-streamlit Goto Github PK

View Code? Open in Web Editor NEW
15.0 1.0 11.0 25.42 MB

Face recognition web app using face-recognition library and Streamlit

Python 100.00%
deep-learning face-recognition-python streamlit streamlit-webapp computer-vision

face-recognition-app-using-streamlit's Introduction

Face recognition app using Streamlit

This is a face recognition application built using Python, Face-Recognition API and Streamlit framework. The app allows users to upload an image containing faces and performs face recognition using the face recognition library.

Features

  • Face detection and recognition
  • Multi-face recognition
  • Option to display recognized faces
  • User-friendly interface

Requirements

  • Python 3.9
  • Streamlit 1.22.0
  • face_recognition

Repository structure

├───dataset
│   │───ID_Name.jpg
│   │───...
├───pages
│   ├───1_🔧_Updating.py
│   └───2_💾_Database
├───Tracking.py
│───utils.py
├───config.yaml 
├───requirements.txt
├───packages.txt
└───README.md

Description

  • dataset: contains images of people to be recognized. The file name format is ID_Name.jpg. For example, 1_Elon_Musk.jpg, 2_Jenna_Ortega.jpg, 3_Bill_Gates.jpg, etc. It is freely to use jpg, jpeg or png format.
  • pages: contains the code for each page of the app. If you want to add more pages, you can create a new file which format is Order_Icon_Pagename in this folder, or just no-icon page with format Order_Pagename.
  • Tracking.py: home page of the app, using for tracking real-time using webcam and picture.
  • utils.py: contains the functions utilized by the app.
  • config.yaml: contains the configuration for the app such as path of dataset dir and prompt messages.
  • requirements.txt: contains the dependencies for the app.
  • packages.txt: contains the packages for the app used to deploy on Streamlit Cloud.

Installation

  1. Clone the repository
git clone https://github.com/datct00/Face-recognition-app-using-Streamlit.git
cd Face-recognition-app-using-Streamlit
  1. Install the dependencies
pip install -r requirements.txt
  1. Run the app
streamlit run Tracking.py

Usage

  1. Tracking real-time using webcam
  2. Tracking using a image file
  3. Updating database (adding, deleting and updating)
  4. Viewing the database

Demo

  1. Tracking using camera Tracking using webcam

  2. Tracking using picture Tracking using picture

  3. Adding new person to database Adding new person to database

  4. Deployed app on Streamlit Cloud. Click here to watch a demo of the app.

Contact

If you have any questions, feel free to contact me via email: [email protected]

face-recognition-app-using-streamlit's People

Contributors

datct00 avatar

Stargazers

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