Quadcopter-opencv is a project mainly written in PYTHON and C++, it's free.
Python OpenCV control code for a robotic quadcopter
Good example of ball tracking: http://mechomaniac.com/OpenCVBallTracking CV install instructions: https://help.ubuntu.com/community/OpenCV
Using opencv's python bindings