Programming contest hosted by CV Zone, sponsored by NVIDIA. Where the objective is to predict the paths of the ball on the pool table and whether they will go in the hole.
The main method used is color and shape detection to discern the objects on the pool table. To each object, the program defines a different HSV filter. With the coordinates of each object, it calculates the likely path of the ball based on linear algebra. As the program can't estimate the exact location of the cue, thus creating many different possible outcomes, it also calculates which is the most likely path. The most likely path is shown during the shot.
It has been defined labels in front of the objects, to help me understand what the program was detecting during the development. Later on, I decided to keep them just for style.
I would like to thank everyone who voted for me and this project, and also CV Zone for hosting this contest and giving me the opportunity to learn and test my skills. I promise to keep studying and learning to create better solutions in the field of computer vision.