Danthewaann / snooker-ball-tracker

Demo app that detects/tracks snooker balls on a snooker table
MIT License
25 stars 10 forks source link
ball computer-vision opencv pool scoreboard snooker table tracker

Snooker Ball Tracker

This project is a prototype that I developed in Python to demo an idea I had for a program that could automatically detect and track Snooker balls on a Snooker table. The program would therefore be able to automatically score points based upon which ball was potted.

The program allows you to configure all the settings that are used by the ball tracker, from how it detects colours to how it detects balls. It also provides features that allows you to see what the ball trackers sees.

Requirements

From source

From an executable

Video GUI Examples

The Video GUI provides an interface to allow you to configure the ball tracker in real-time as the app is processing video. Currently only supports pre-recorded video.

Interface screenshot

Video Example

Image CLI Examples

The Image CLI supports processing images.

Image 1

sbt-image resources/images/image-1.jpg --settings resources/config/image_1.json

Image 2

sbt-image resources/images/image-2.jpg --settings resources/config/image_2.json