So this tutorial seems to cover some of the basic topics. You should look for pattern recognition, edge detection... I do not know if you will be working with static images, or video. A mix of techniques can be combined, and the robustness of the method depends on how much time you can spend processing the given image/frame.
To draw stuff on the image its pretty simple, for example a circle is a simple function call with a few parameters.
I am no expert in this matters, but I'd you can start with a static image and draw some circles, then look for a way to detect your pattern (for example, to extract image properties you can look into SURF)
Also if you have access to Matlab
, it can perform some image processing.