/raspberry-pi-dlib-face-detection-recognition-pipeline

Raspberry Pi 3 Model B+ Dlib Face Detection & Recognition Pipeline

Primary LanguagePythonMIT LicenseMIT

Dlib Face Detection and Recognition Pipeline

Prerequisite(s):

  • python 3.5>
  • pip
  • numpy
  • opencv
  • opencv contribute
  • imutils
  • sqlite3
  • scipy
  • dlib
  • face_recognition
  • PIL

Prerequisites Installation Guide

Introduction:

This is an example of Dlib face detection and recognition pipeline on Raspberry Pi 3 Model B+.

Configuration:

Refer to:

src/common/package/config

src/opencv/package/config

src/dlib/package/config

Structure of dataset:

Storage Directory (do not change) Description Directory (david_john) Images
dataset    
  detection_1  
    filename.pgm
  detection_2  
    filename1.pgm
    filename2.pgm
    filename3.pgm

To Train:

>>> python3.5 train_dlib.py

To Recognise/Stream:

>>> python3.5 main_dlib.py

Streaming:

Open http://localhost:8000 in browser

Copyright & License

  • Copyright (c) 2018, Ammar Ali Khan
  • License: MIT

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.