#Steps#1. Reading and Resizing the Video#2. Convert Colors from BGR to HSV color space#3. Detecting the Pool Table Boundary#4. Cleaning Up the Mask - Morphogical Operations#5. Detecting Lines#6. Classifying Lines#7. Finding Table Corners#8. Defining Regions of Interest#9. Creating a Mask#10. Detecting Balls#11. Detecting and Marking Patterns#12. Analyzing Circle Positions and Cue Line#13. Collis..