Face recognition online service, allow user training it.
Download Pycharm development tool https://www.jetbrains.com/pycharm/download/
sudo pip install virtualenv
mkdir project
cd project
virtualenv venv
To compile Boost.Python yourself download boost from http://boost.org and then go into the boost root folder
./bootstrap.sh --with-libraries=python
./b2
sudo ./b2 install
Dlib is a modern C++ toolkit containing machine learning algorithms and tools for creating complex software in C++ to solve real world problems. https://github.com/davisking/dlib
brew install cmake
git clone https://github.com/davisking/dlib.git
cd dlib
mkdir build; cd build; cmake .. -DDLIB_USE_CUDA=0 -DUSE_AVX_INSTRUCTIONS=1; cmake --build .
pkg-config --libs --cflags dlib-1
if above command error you may need instlal pkg-config use brew install pkg-config
Active python virtual enviroment and run
python setup.py install --yes USE_AVX_INSTRUCTIONS --no DLIB_USE_CUDA
Use flask as Python framework build api service. Api http://flask.pocoo.org/docs/0.12/api
from flask import Flask,Response,json
app = Flask(__name__)
@app route('/', methods=['GET'])
def home():
return Response(json.dumps({"api": "1.0"}), status=200, mimetype='application/json')
if __name__ == "__main__":
app.run()
we can use any database to store users info. in this project i just use sqlite3 support by Python default. Tool for design slqlite http://sqlitebrowser.org/
Full playlist: https://www.youtube.com/playlist?list=PLFaW_8zE4amMZxCOYt7954AaP397_tMFc