Code Monkey home page Code Monkey logo

upper_patch_fr's Introduction

Upper_patch_FR

This repository is used for developing a face recognition system, even when you are wearing a face mask. image

Prerequisite

  1. Using python3.7 is recommend, or you can create a virtual env with python version 3.7

  2. Run this command to install packages

pip install -r requirements.txt
  1. Download our pretrained model on GDrive then put them into models folder like models/top_patch.h5 and models/face_mask_detection.pb

How to use

  1. Data preparation

For the first time, if you want to add your own images data, just prepare and add the data following the format

input_image/
      - giang/
            + mask/
                  ~ mask_img1
                  ~ mask_img2
                  ~ mask_img3
            + no_mask/
                  ~ no_mask_img1
                  ~ no_mask_img2
                  ~ no_mask_img3
      - linh/
            + mask/
                  ~ mask_img1
                  ~ mask_img2
                  ~ mask_img3
            + no_mask/
                  ~ no_mask_img1
                  ~ no_mask_img2
                  ~ no_mask_img3
      ...

Please create your own folder following the given format.

  1. Create database Run the following command to create embeddings saved inside database folder
python create_embeddings.py
  1. Run camera.py to activate recognition process using your camera
python camera.py

upper_patch_fr's People

Contributors

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