Motion Sensor to Turn Off/On a Monitor
Hello everyone,
I am currently working on a project where people can interact with a screen which has a webcam set up to it. I want the screen to only turn on when someone is in front of it, and for it to turn off once they leave. Do you have any input or patches that could work for this?
For face detection: cv.jit.faces from the cv.jit package.
The hardest part might actually to turn the screen on and off, unless you fake it being off with a fullscreen black. Is it an actual computer screen?
I'd probably fake it as TFL suggested but apparently you can control certain displays over Hdmi with Hdmi-Cec. A quick search revealed an implementation in Node.js (albeit 5 year old?)
Otherwise i can only think of a hardware solution where you connect an Arduino or Raspberry Pi to the display and control it from there. Or hack the remote (if available)