The "shapepredictor" model you provide is dlib's 5 point landmark detection model, however you are using 68 point landmark for detecting eyes. That's why demo.py crashed with index not found error. Please change "shapepredictor" your model so that you can obtain 68 point landmark.
Also the detection of eye blink accuracy is too bad, i mean it gives random output.
You can found 68 point shape predictor model from below link.
http://dlib.net/files/
The "shapepredictor" model you provide is dlib's 5 point landmark detection model, however you are using 68 point landmark for detecting eyes. That's why demo.py crashed with index not found error. Please change "shapepredictor" your model so that you can obtain 68 point landmark.
Also the detection of eye blink accuracy is too bad, i mean it gives random output.
You can found 68 point shape predictor model from below link.
http://dlib.net/files/