Automation from video with Python is possible using our edge controllers. We handle the basic IO for you so you can do amazing things like this! Here is more information on the controller: https://iot-eq.com/edge-controllers/
We tested OpenCV on our edge platform and it worked great. Imagine being able to control your systems using a camera.
If you search youtube for Adrian and OpenCV Adrian has examples on how to do this.