program to detect position of a glowing ball using a webcam