Git Product home page Git Product logo

roth-a / facetag Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 0.0 3.75 MB

Organizes pictures according to peoples faces in the pictures. It also writes the peoples names in the usercomment EXIF tag.

License: GNU General Public License v3.0

Jupyter Notebook 60.39% Python 39.61%
face-recognition pictures-organizer face-detection face machine-learning picture-selector exif tag image-recognition image-classification

facetag's Introduction

FaceTag

Organizes pictures according to peoples faces in the pictures. It also writes the peoples names in the usercomment EXIF tag. It uses the amazing face_recognition based on dlib. This brings super easy face recognition to you without uploading any to facebook, google, etc. No internet connection required! Everything stays on your computer.

After some time initial labeling faces, I organized my entire picture collection of 20k pictures over night (FaceTag is using all cpu cores). The unrecognized faces are softlinked in the folder "unkown" (this also serves as a pool to improve face recognition for a future run).

Usage

It can be used in the console using

python3 facetag.py

or in a jupyter notebook.

Give a picture directory

python3 facetag.py  --folder demo

and it will recursively get all jpg files.

and also rotate them according to the Orientation exif tag using jhead.

Label faces first

It asks for the names of all unknown people in a picture and adds them to it's name database.

Exif Comment Tag

The exif user_comment tag is filled with the names from the left to the right :-)

Face recognition and labeling already working automatically

Already in the folloing picture face recognition works without any further input.

and in the next picture too:

Folders with Softlinks

Additionally to EXIF tags, subfolders with softlinks are created according to the names.

Installation

The following works on linux:

sudo apt install jhead python3-pip cmake libboost-all-dev  python3-tk
pip3 install numpy dlib piexif face_recognition

facetag's People

Contributors

roth-a avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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