facial features detection using Dlib
video demo:
http://codepen.io/anon/pen/BzmRZv
resolve dependencies:
see dependencies.txt
cmd:
cd /path/to/app/root
python -m CGIHTTPServer 8000
browser:
http://localhost:8000/cgi-bin/upload.py
the JSON data have been printed manually.
to have a better and easier to maintain code, it is better to create custom serializable classes for the face that have as attributes the detected points (check out http://www.diveintopython3.net/serializing.html#json-dump)