Giter Club home page Giter Club logo

facequalityassurance's Introduction

Image

FaceQualityAssurance

FaceQualityAssurance is a tool to validate the quality of faces images for registration on devices that use facial recognition

GitHub Contributors Issues GitHub pull requests

Why did you do that? . How Run . Request Improvement . Report Bugs . Contributing


Why did you do that?

The effectiveness of face registration in systems or devices utilizing facial recognition is crucial to ensure accurate user recognition. Currently, the lack of straightforward tools for face validation in this context necessitates the manual compilation of desired parameters and requirements.

The aim of this project is to create a tool for validating the quality of these images before they are sent to the facial recognition device or system.

Image Image Image

Verified Features

  • Verify if there is a face in the image ✔️
  • Verify if there is more than one face in the image ✔️
  • Check if the face is well-lit ✔️
  • Check if the face is centered ✔️
  • check whether the face is illuminated ✔️
  • Ensure there is a neutral expression (Smile detection) ✔️
  • Verify if the eyes are present and open ✔️

Classificators Used

Check Classificator
Face HeerCascade or MediaPipe
Smile HeerCascade
Eyes HeerCascade

Interface Demo

Download .EXE Interface Demo

Install

Is necessary Python=3.8+

  1. Clone repo
git clone https://github.com/johwconst/FaceQualityAssurance
  1. Go to folder:
cd ./FaceQualityAssurance
  1. Install requeriments:
pip install -r requeriments.txt

Tip

Tip: Recommend installing dependencies in an isolated environment, such as using the virtualenv or conda!

How Run

Create a python file in the project folder and add face_qa to the image you want to validate:

from face_qa.face_qa import FaceQA

image_path = 'images/image_2.jpg'

face_qa = FaceQA(image_path, 1)

result = face_qa.check_face()

The result will be the following:

{
"face_detected": True, // Returns true if a face is detected
"more_than_one_face": False, // Returns true if more than one face is detected
"eyes_is_good": True, // Returns true if the quality of the eyes is good
"is_smiling": True, // Returns true if a smile is detected
"contrast_is_good": True, // Returns true if the contrast is good
"brightness_is_good": True, // Returns true if the brightness is good
"face_is_centralized": True // Returns true if the face is centralized
}

Support or study materials

Contributing!

Contributions are welcome! If you want to add a tool, fix a bug or improve the documentation, feel free to open an issue and/or make a pull request.

facequalityassurance's People

Contributors

johwconst avatar

Stargazers

xum avatar  avatar  avatar

Watchers

Kostas Georgiou avatar  avatar

Forkers

mxer

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.