A Python package for 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 will provide 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
- In your project folder, create an encodingModel directory.
- In the encodingModel directory create a file named faceEncodings.pickle(encodingModel/faceEncodings.pickle).
- Create a directory named Input_database.
- In the Input_database 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, users need to copy face models from the link below and paste it in the directory Face_model.
https://github.com/gate6/iris-recognition-sample-code/tree/face-recognition/encodingModel/Face_model
After that, users need to train existing images (which are saved in the Input_database Folder).
Input_database/
Once it’s done, 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 an image matches with the person’s image in the trained image model it will return as matched & 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 should not wear big glasses or anything that affects their image match.
- Minimum 5 clear images are required to train the model.
Support
If you face any difficulty in configuration or while using our Gate6 Face Recognition Package (as per the instructions documented above), please feel free to contact our development team.
License
Metadata
Release files for G6-face-recognition 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| G6_face_recognition-0.0.2.tar.gz | 5.3 kB | Without provenance | Details for G6_face_recognition-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| G6_face_recognition-0.0.2-py2-none-any.whl | Python 2 | none | any | Details for G6_face_recognition-0.0.2-py2-none-any.whl |
Total release size: 12.6 kB
Release files / G6_face_recognition-0.0.2.tar.gz
| Download URL | G6_face_recognition-0.0.2.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
21564cbcb0c3c864400fcf24653b9b023abcc7dd99ffc111f33d9d3f0e81ab14
|
|
BLAKE2b-256 checksum How to use checksums |
ef3cfcbc38644b9c40752a077f265474d6746655e75ca3c1782f11b025e99edd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / G6_face_recognition-0.0.2-py2-none-any.whl
| Download URL | G6_face_recognition-0.0.2-py2-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
036ec677134f4a81bd434e9e299db35d5266a2072405ec6de7920ac7181c53f9
|
|
BLAKE2b-256 checksum How to use checksums |
7086e68ceb487c2d3c360ed3e34a59ed6e7c8170080ff660f525a9d12458902f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for G6-face-recognition 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.