/facial-recognition

Using YOLOv3 for detection and custom 3 classes trained mobilenetv2 model for prediction

Primary LanguageJupyter NotebookMIT LicenseMIT

Facial Recognition

Using YOLOv3 for detection and custom 3 classes trained mobilenetv2 model from tensorflow for prediction.

OpenCV and streamlit was used to deploy using webcam.

The dataset for training:

The dataset includes images of team members, captured by webcam using data_creator.py.

Each image using YOLO to crop to take only the face area.

3_1354_1632590101 9486406 12_1292_1632590124 0402558 3_179_1632475036 7965965 14_221_1632476223 0819051 9_220_1632631786 335681 35_171_1632476931 8139071

Dataset has been put in structural folders with each folder name as label (name of team member):

  • long: 597 images
  • minh: 669 images
  • tung: 507 images

Link for the dataset: images_260921.zip

Training the model:

MobilenetV2 model was used as based model and customized classification dense layers to predict the team members.

The model was trained using Train_model.ipynb

The best model was exported to .h5 file for deployment: model_1.h5

Deployment:

Streamlit was used to deploy the file: face_recog_app.py

SmartSelect_20211001-120313_Gallery

Contributions and References:

Contributions:

References: