Giter Site home page Giter Site logo

facelabeler's Introduction

FaceLabeler

This is a lightweight desktop tool for capturing and labeling face images.

Disclaimer: if multiple faces are detected, only the bigger one will be kept.

Requirements

python 3.6-3.7 or whatever works
opencv-python 4.0
numpy 1.16
PyQt5 5.12.1

Usage

Get Image button will grab the current image of your face and desplay it in the top right. It will also show if no face was found.

Save Will then save the image to you image directory, and save the current label (selected on the dropdown menu) to your labels csv file.

Capture and Save is just a one way to get the image and save it.

Enable Cap/Save Shortcut When enabled, you can simply press space to capture and save the image. This provides a fast way to capture many images.

GrayScale Toggles whether the image will be saved as single channel black and white.

Show Face Detection Box Toggles whether you can see the detected faces in real time.

Below the video stream is list of the labels with the number of images matching each label in the database.

You can also configure the face detection algorithm to run slower or faster in the settings. A value closer to 0.1 or 0 is recommended for snappy performace, but it can eat a lot of cpu. So pick whatever works for you. Keep in mind, if you set a .5 second delay, you will only be able to save a maximum of 2 pictures a second.

Setup

The list of labels is read from a csv file (default: labelConfig.csv). To customize your labels, you need to change this csv file to include the labels of your choice. Each row should have two colums with and integer index and a label (example 0,Happy). There is no hard limit on how many labels you can have.

You also need a csv file for your labels to be stored in. This should be empty until you start to gather images. Labels are stored as filename,Label.

Finally, you need a directory where the images will be saved to.

All of these can be configured in settings.

Contributing

If you want to add features, fix bugs, optimize, document, or even change the current crappy color scheme, feel free. Just make sure everything works and files are saved to the same places and in the same format.

facelabeler's People

Contributors

ablacklama avatar

Watchers

 avatar

facelabeler's Issues

Create error message to show when initialization of app fails

right now if it isn't in the correct folder the app will show a cvt color error. But this is because of a much earlier failure in the haarcascade initialization. When the proper files don't exist, the app should ideally have a popup error message that shows the missing files.

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.