To use the code follow given step :-
-
clone the repositry
git clone https://github.com/ravising-h/Face_Classification.git
-
!pip install git+https://github.com/rcmalli/keras-vggface.git
install this library. -
Keep all the Images of people in faces folder and save them by respective name. For example
Ravi.jpg
. (There should be no one else in the frame and photo should be properly clicked.) -
run
python train.py
-
Keep the test image in Test folder
-
Run
python test.py
-
See the result in
result
folder -
To add face add a image to faces folder and
python train.py