A Python package to face recognition.
Project description
Gate6 Face Recognition Package
G6_face_recognition is a module for face recognition. Using the image processing libraries and high-level mathematical functions, we’ll be providing fast and secure face recognition solution.
Installation
Installations required before installing the package module
python
numpy
opencv-python
matplotlib
opencv-contrib-python
requests
cmake
dlib
scikit-image
scipy
imutils==0.5.2
- Install Python
- Install package module using pip
:
$ pip install G6-face-recognition
Project Structure
- On your project folder, create an encodingModel directory & in that directory create a file named faceEncodings.pickle(encodingModel/faceEncodings.pickle).
- Create a directory named Input_database & under that directory put an individual's face images, in the directories made on their individual names.
Project/
├── encodingModel/
│ ├── faceEncodings.pickle/ # train model
| ├── Face_model/ # Face model
| ├── face_recognition_model.dat/
| ├── shape_predictor.dat/
├── Input_database/
│ ├── person1 name/ # person1 directory
| │ ├── face images of person1 / # images of person face
│ ├── person2 name/ # person2 directory
| │ ├── face images of person2 / # images of person face
│ ├── person3 name/ # person3 directory
| │ ├── face images of person3 / # images of person face
How to use
Once all the settings of project are configured, you are ready to run the project. Import G6_face_recognition module in your project to start.
import G6_face_recognition
Once the import is completed, user need to copy face models from below link and paste in directory Face_model.
https://github.com/gate6/iris-recognition-sample-code/tree/face-recognition/encodingModel/Face_model
After that, user need to train existing images which are saved in the Input_database Folder.
Input_database/
After that, create and train encoding module using Input_database Folder images, as per the instructions given below:
G6_face_recognition.face_model_train(train_database_path,train_encoding_model_path)
train_database_path ===> Input_database/
train_encoding_model_path ===> encodingModel/faceEncodings.pickle
Once the model is trained, it’s ready to test with real-time images. Follow the process that is mentioned to test real time face image:
face_name = G6_face_recognition.face_model_test(test_encoding_model_path,real_time_image_path)
test_encoding_model_path ===> encodingModel/faceEncodings.pickle
real_time_image_path ===> real-time_image_path
face_name ===> In response you’ll get the registered person’s name if image matches with the person’s image in the trained image model & if the image doesn’t match then the name returns as unmatched.
Requirements :
- Need clearer images from the input device.
- Images should be captured in light.
- Person shouldn't wear big glasses or anything that affect on image match.
- Minimum 5 clear images are required to train the model.
Support
If you face any difficulty in configuration or usage of Gate6 Face Recognition Package as per the instructions documented above, please feel free to contact our development team.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file G6_face_recognition-0.0.1.tar.gz
.
File metadata
- Download URL: G6_face_recognition-0.0.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/2.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d04e0f2a967f12b4b411f8a8ab08dc4e76c61e3faea36de4cf19ebb532c68b7c |
|
MD5 | 8b4eda7fd27cf7aed688bd7ac98fc1a0 |
|
BLAKE2b-256 | 21fe42527fbf0c3e8fa6b9f11be2f55338cbef814b065a9d84339b69affa13c8 |
File details
Details for the file G6_face_recognition-0.0.1-py2-none-any.whl
.
File metadata
- Download URL: G6_face_recognition-0.0.1-py2-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/2.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f096122edb35299a4dec871fb56615611f60e1616a2235c0ddf1626f25f2aee4 |
|
MD5 | ec609551b74547c95c53072d651fd755 |
|
BLAKE2b-256 | 5975f33f6aa5c3a1bcc638d5f42c614b8c9cc28c5d82987b88fe94d9bec80407 |