opencv implementation of a billiard detector and tracker