Just a quick job while working at Inition to set up a window display at the Inition office. Simple enough we wanted to trigger an animation that would display when people walked past the office. Had a go first using an Arduino using these microwave sensors. Had one each side of the windows on the inside.
But turns out there actually too powerful and detect people moving in all direction from 5 meters away. So in the office that meant it could actually detect people in the floor above and the basement. So had to abandon the idea and try to build something that detected movement in a webcam. Managed to knock up something in Unity that meant I could target certain area of the webcam feed and see how many pixels changed, thus detecting movement.
Webcam Area triggering
Final result is below, we also hooked up some very loud speakers pointing out of the basement window to try and scare people. But have come to the conclusion that people in London are just not that easy to scare. Even when someone screams from a basement, they barely raise an eyebrow.
Inition window