An OpenCV based pool game analyser