Code for the Copilot project, winner of the June 2017 BP-Imperial Hackathon Innovation Prize.
We use computer vision to track the sleepiness of a driver in real time, both with natural light and in darkness using an IR lamp. When fatigue is detected, an automatic trigger is sent to a Lex Copilot chatbot that engages with the driver and assists him on the road through simple tasks.
We built our own chatbot with Lex since Alexa does not allow yet it's programmatic activation.
So far, the following capabilities are available: