Pubo
Active member
I posted a question before about how I can track cue ball (or any ball) using some codes https://forums.azbilliards.com/threads/how-to-track-cue-ball-movement.552461/#post-7506743. Now I found a method in OpenCV that works pretty well for slow-mo videoes. Here are some demo clips I made
The algorithm is Optical Flow introduced here https://docs.opencv.org/3.4/d4/dee/tutorial_optical_flow.html, and since when I'm filming slomo videos I need strong light. The light will create a bright spot on the ball that doesn't change location on the surface of the ball if the movement of ball is relatively stable with respect to the camera. The algo will track the bright spot on the surface and draws out the trajectory of the balls. Solid balls work best with this approach.
The algorithm is Optical Flow introduced here https://docs.opencv.org/3.4/d4/dee/tutorial_optical_flow.html, and since when I'm filming slomo videos I need strong light. The light will create a bright spot on the ball that doesn't change location on the surface of the ball if the movement of ball is relatively stable with respect to the camera. The algo will track the bright spot on the surface and draws out the trajectory of the balls. Solid balls work best with this approach.