ReanSchwarzer1 / Biometrics-Assignment-023

Home Page:https://youtu.be/3Uguy97rR8Q

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Face Detection

18CSE357T Biometrics RA1811003010023 Assignment

Working snapshots

https://youtu.be/3Uguy97rR8Q

Prerequisites

Numpy
OpenCV

Note: Please install opencv-contrib-python package instead of opencv-contrib as it contains the main modules and also contrib modules.

Installing

Install Numpy via anaconda or terminal:

conda install numpy
pip install numpy

Install OpenCV via anaconda or terminal:

conda install -c menpo opencv
pip install opencv-python

Running the tests

Run Tester.py script on commandline to train recognizer on training images and also predict test_img:

python tester.py
  • Place some test images in TestImages folder that you want to predict in tester.py file

  • Place Images for training the classifier in trainingImages folder.If you want to train clasifier to recognize multiple people then add each persons folder in separate label markes as 0,1,2,etc and then add their names along with labels in tester.py/videoTester.py file in 'name' variable.

  • To generate test images for training classifier use videoimg.py file.

  • To do test run via tester.py give the path of image in test_img variable

  • Use "videoTester.py" script for predicting faces realtime via your webcam.(But ensure that you run tester.py first since it generates training.yml file that is being used in "videoTester.py" script.

  • About

    https://youtu.be/3Uguy97rR8Q

    License:MIT License


    Languages

    Language:Python 100.0%