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:
- The image recognition software is able to identify the driver by his name.
- To read out loud where the nearest BP gas station is, based on your geolocation.
- To send an automated SMS to one of your pre-defined contacts.
- To call the emergency services with a pre-recorded message.
- To play some music for you!