8000 GitHub - JarvisXing/face_recognition_demo: a demo can distinguish your face from camera.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

JarvisXing/face_recognition_demo

Repository files navigation

face_recognition_demo


this demo includes three notebook.
windows 10, python 3.6.

software

before run this demo,you'd better to install these lib

  1. Anaconda3 for windows
    download Anaconda3-5.1.0-Windows-x86_64.exe
    just install
  2. TensorFlow
    In cmd
    run conda create -n tensorflow pip python=3.6
    run activate tensorflow
    If there is no gpu in your laptop.
    run pip install --ignore-installed --upgrade tensorflow
    If there is gpu in your laptop.
    run pip install --ignore-installed --upgrade tensorflow-gpu
  3. Keras
    run sudo pip install keras
  4. opencv for python
    In cmd just run conda install -c conda-forge opencv
  5. install jupyter notebook,numpy,matlibplot, hdf5 and someother lib in env(tensorflow)

Hardware

you can use your laptop camera or plugin a usb camera,
if no camera, two videos are necessary.
one includes your face, other one includes some faces except you.
I have not try video,you may experience by yourself.

Code Instruction

you should run the files as below sequence:

  1. face_recogniton_get_data.ipynb
    you can get face data with this file from camera or video.
  2. face_recogniton_train_model.ipynb
    you can use this file to train a simple deeplearning model.
  3. face_recognition.ipynb
    now you can use this file distinguish your face from other faces.

note: you have to change cascade_path by yourself.

File structure

WORKSPACE_DIR(.)

PRJ_NAME.ipynb
PRJ_NAME_get_data.ipynb
PRJ_NAME_train_model.ipynb
DATA_PATH(datasets)

PRJ_NAME

TRAIN_DIR(train)

CLASS_1_DIR
CLASS_n_DIR

VALIDATION_DIR(validation)

CLASS_1_DIR
CLASS_n_DIR

TEST_DIR(test)

CLASS_1_DIR
CLASS_n_DIR

MODEL_PATH(models)

PRJ_NAME

Image_PATH(images)

PRJ_NAME

LOG_PATH(logs)

PRJ_NAME

About

a demo can distinguish your face from camera.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0