All Projects → ahmetozlu → Face_recognition_crop

ahmetozlu / Face_recognition_crop

Licence: mit
Multi-view face recognition, face cropping and saving the cropped faces as new images on videos to create a multi-view face recognition database.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Face recognition crop

Massface
MassFace: an effecient implementation using triplet loss for face recognition
Stars: ✭ 53 (-45.92%)
Mutual labels:  face-recognition
Face Recognition Cpp
Real Time Face Recognition Detector. Over 30FPS on CPU!
Stars: ✭ 68 (-30.61%)
Mutual labels:  face-recognition
Insightface
State-of-the-art 2D and 3D Face Analysis Project
Stars: ✭ 10,886 (+11008.16%)
Mutual labels:  face-recognition
Facenet Face Recognition
This is the research product of the thesis manifold Learning of Latent Space Vectors in GAN for Image Synthesis. This has an application to the research, name a facial recognition system. The application was developed by consulting the FaceNet model.
Stars: ✭ 54 (-44.9%)
Mutual labels:  face-recognition
Awesome machine learning solutions
A curated list of repositories for my book Machine Learning Solutions.
Stars: ✭ 65 (-33.67%)
Mutual labels:  face-recognition
Deepface
A Lightweight Deep Face Recognition and Facial Attribute Analysis (Age, Gender, Emotion and Race) Framework for Python
Stars: ✭ 1,150 (+1073.47%)
Mutual labels:  face-recognition
Opencv Face Filters
Snapchat-like Face Filters in OpenCV
Stars: ✭ 51 (-47.96%)
Mutual labels:  face-recognition
Hellovision
Vision framework example for my article. https://medium.com/compileswift/swift-world-whats-new-in-ios-11-vision-456ba4156bad
Stars: ✭ 93 (-5.1%)
Mutual labels:  face-recognition
Face Api
JavaScript module for face detection and face recognition Using Tensorflow/JS
Stars: ✭ 67 (-31.63%)
Mutual labels:  face-recognition
Ai Reading Materials
Some of the ML and DL related reading materials, research papers that I've read
Stars: ✭ 79 (-19.39%)
Mutual labels:  face-recognition
Linux face unlock
A face authentication system for Ubuntu that works while logging in and running "sudo" commands with a friendly CLI to operate it.
Stars: ✭ 55 (-43.88%)
Mutual labels:  face-recognition
Boss Detector
Change monitor screen when your boss is coming towards you!
Stars: ✭ 63 (-35.71%)
Mutual labels:  face-recognition
Tensorflow Implementation Of Lcnn
A Tensorflow implementation of "A Light CNN for Deep Face Representation with Noisy Labels"
Stars: ✭ 74 (-24.49%)
Mutual labels:  face-recognition
Image recognition
Packages for image recognition - Robocup TU/e Robotics
Stars: ✭ 53 (-45.92%)
Mutual labels:  face-recognition
Python Tensorflow Face V2.0
基于tensorflow的人脸识别
Stars: ✭ 84 (-14.29%)
Mutual labels:  face-recognition
Facerecognition Gui App
A very Simple GUI APP for Face Detection and Recognition
Stars: ✭ 50 (-48.98%)
Mutual labels:  face-recognition
Celebamask Hq
A large-scale face dataset for face parsing, recognition, generation and editing.
Stars: ✭ 1,156 (+1079.59%)
Mutual labels:  face-recognition
Pyseeta
python api for SeetaFaceEngine(https://github.com/seetaface/SeetaFaceEngine.git)
Stars: ✭ 93 (-5.1%)
Mutual labels:  face-recognition
Combinedmargin Caffe
caffe implementation of insightface's combined margin method
Stars: ✭ 87 (-11.22%)
Mutual labels:  face-recognition
Low Face Mode
Dim and brighten the screen based on whether or not you are present! OpenCV detects face with webcam and dims screen if not present.
Stars: ✭ 75 (-23.47%)
Mutual labels:  face-recognition

Recognize, Crop and Save Faces as Images From Video

For technical details check the related medium post! Please contact if you need professional face detection & recognition project with the super high accuracy.

QUICK DEMO

  • Faces are Tracking, Cropping and Saving as Images from Video

  • Images are Saving from Video With Appropriate Path Hierarchy

THEORY

If you want to investigate some aspect of facial recognition or facial detection. One thing you are going to want is a variety of faces that you can use for your system. You can create your own face detection/recognition database by this program. face_recognizer.py recognizes the faces from video, crop and save them as an image under appropriate path hierarchy.

Once we have acquired the face data, we’ll need to read it in our program. In the demo applications I have decided to read the images from a very simple CSV file. Why? Because it’s the simplest platform-independent approach I can think of. However, if you know a simpler solution please ping me about it. Basically all the CSV file needs to contain are lines composed of a filename followed by a ; followed by the label (as integer number), making up a line like this:

/path/to/image.ext;0

You don’t really want to create the CSV file by hand. I have prepared you a little Python script create_csv.py that automatically creates you a CSV file.

face_recognizer.py calls create_csv.py and it can save the output as a csv file so you will have your own face detection/recognition dataset.

INSTALLATION

1.) Python and pip

Python is automatically installed on Ubuntu. Take a moment to confirm (by issuing a python -V command) that one of the following Python versions is already installed on your system:

  • Python 2.7
  • Python 3.3+

The pip or pip3 package manager is usually installed on Ubuntu. Take a moment to confirm (by issuing a pip -V or pip3 -V command) that pip or pip3 is installed. We strongly recommend version 8.1 or higher of pip or pip3. If Version 8.1 or later is not installed, issue the following command, which will either install or upgrade to the latest pip version:

$ sudo apt-get install python-pip python-dev   # for Python 2.7
$ sudo apt-get install python3-pip python3-dev # for Python 3.n

2.) dlib

Install dlib prerequisites

The dlib library only has four primary prerequisites: Boost Boost.Python CMake X11/XQuartx

Installing CMake, Boost, Boost.Python, and X11 can be accomplished easily with apt-get :

$ sudo apt-get install build-essential cmake
$ sudo apt-get install libgtk-3-dev
$ sudo apt-get install libboost-all-dev

$ wget https://bootstrap.pypa.io/get-pip.py
$ sudo python get-pip.py

Install dlib with Python bindings

The dlib library doesn’t have any real Python prerequisites, but if you plan on using dlib for any type of computer vision or image processing, I would recommend installing:

  • NumPy
  • SciPy
  • scikit-image

These packages can be installed via pip :

$ pip install numpy
$ pip install scipy
$ pip install scikit-image

Years ago, we had to compile dlib manually from source (similar to how we install OpenCV). However, we can now use pip to install dlib as well:

$ pip install dlib

3.) face_recognition 1.2.1

In this project, Adam Geitgey's face recognition system (thanks a lot to Adam) was used for face recognition and it can be installed by pypi using pip3 (or pip2 for Python 2):

pip3 install face_recognition

USAGE

Just run face_recognizer.py

The default file paths are specified already, change them with yours. (edit the line 17, line 20, line 80, line 89 in face_recognizer.py)

  • The sample database and dataset can be found at here

CITATION

If you use this code for your publications, please cite it as:

@ONLINE{frc,
    author = "Ahmet Özlü",
    title  = "Face Database Creator",
    year   = "2017",
    url    = "https://github.com/ahmetozlu/face_recognition_crop"
}

AUTHOR

Ahmet Özlü

LICENSE

This system is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].