-
Create a conda environment .conda
-
Clone and build dlib from source:
$ git clone https://github.com/davisking/dlib.git
$ cd dlib
$ mkdir build
$ cd build
$ cmake .. -DDLIB_USE_CUDA=1 -DUSE_AVX_INSTRUCTIONS=1 -DCUDAToolkit_ROOT=/path/to/your/nvcc/bin/
$ cmake --build .
$ cd ..
$ python setup.py install --set DLIB_USE_CUDA=1
- Install dependencies:
$ cd project/
$ pip install -r requirements.txt
-
Put face images of people you want to recognize to project/Image with file name {person_name}0.jpg
-
Image augmentation:
$ cd Image/
$ python augmentation.py
- Image encode:
$ python encode.py
$ cd ..
- Run Django server:
$ python manage.py makemigrations
$ python manage.py migrate
$ python manage.py runserver
- Post video:
- Using Postman:
- Using video upload site:
- Download video
This is changed using Gitlab This is added after add in new branch