Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/piyoki/face_recognizer
https://github.com/piyoki/face_recognizer
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/piyoki/face_recognizer
- Owner: piyoki
- Created: 2020-05-23T09:17:14.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-25T05:27:53.000Z (over 4 years ago)
- Last Synced: 2024-10-14T07:36:26.299Z (3 months ago)
- Language: Python
- Size: 46.9 MB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Face Recognizer on Jetson
*** Copy Right 2020 Kevin Yu. All rights reserved.
*** Author: Kevin Yu
*** Update Time: 2020/05/24
*** Contact: [email protected]
This repo demonstrates how to use Dlib, a powerful Object Detection library, to detect and identify faces in real-time. Dlib is able to compile with CUDA, which means, the detector can run with GPU on the Jetson. All the demos below are tested on my Jetson AGX Xavier DevKit, it should also work on other Jetson Platforms such as the Jetson Nano and the Jetson TX2.
*** Notes: You may find more detailed description of the project [HERE](https://hikariai.net)
Table of Contents
-----------------* [Demo](#demo)
* [Prerequisite](#prerequisite)
* [Setup](#setup)
* [How To Use](#how-to-use)Demo
----#### Live-Demo
Prerequisite
------------#### Dependencies
The Face Detection API depends on the following libraries:
- Dlib
- Face_recognition
- Pickle
- OpenCV**Notes:**
OpenCV and Pickle are pre-installed with JetPack, so do not need to reinstalled.
For detailed steps to install Dlib and Face_recognition module, follow the Dlib installation instructions in the [Setup](#setup) section.
Setup
-----```shell script
$ cd ~
$ git clone https://github.com/yqlbu/face_recognizer
$ cd face_recognizer/
$ sudo chmod +x setup.sh
$ ./setup.sh
```How To Use
----------#### Train the custom dataset
Notes: you may customize the dataset inside /images based on your own need. To do so, you need to correctly name the image file for each image inside /images.
```shell script
$ python3 training.py
```#### Recognize unknown faces
```shell script
$ python3 recognizer.py
```#### Run the detector to identify faces of an input image
```shell script
$ python3 detector.py
```#### Run the detector in real-time to identify faces of an input stream
Notes: the input sources are not limited to Camera stream, but any form of MJPEG stream such as Video, RTSP, and HTTP Stream
```shell script
$ python3 live-demo.py
```Reference
---------Inspired by Paul McWhorter [[source]](http://toptechboy.com/jetson-nano/ai-on-the-jetson-nano-lesson-40-training-facial-recognition-models-in-opencv/)