Pubo
Active member
Hi all, 6months ago I posted a question about tracking the billiard ball using software, like the one they do on kozoom
Before I tried to achieve this by using optical flow method in OpenCV, but this is not robust and I need a bright reflection on the surface of the ball, which is not there most of the time. If you are interested you can check my old post https://forums.azbilliards.com/thre...ctories-of-pool-balls-in-a-video-clip.552749/
Now I can track relatively well the balls in a video downloaded from YouTube, for example this one
The basic idea is to sample the HSV range of a couple of (10) points on the ball you wish to track, use this information to convert each frame into a black and white picture, then finding the white contour with the largest area, and voila!
Before I tried to achieve this by using optical flow method in OpenCV, but this is not robust and I need a bright reflection on the surface of the ball, which is not there most of the time. If you are interested you can check my old post https://forums.azbilliards.com/thre...ctories-of-pool-balls-in-a-video-clip.552749/
Now I can track relatively well the balls in a video downloaded from YouTube, for example this one
The basic idea is to sample the HSV range of a couple of (10) points on the ball you wish to track, use this information to convert each frame into a black and white picture, then finding the white contour with the largest area, and voila!