My hack uses OpenCV to detect certain colors in a web cam video feed. After detecting the colors, I draw a line between the two furthest colored pixels. Then I added a green circle to bounce around the frame over the picture. I programmed the line and the ball to collide so you can control the motion of the virtual ball using two distinctly colored objects to move the virtual line around the frame.
Log in or sign up for Devpost to join the conversation.