andrewda / frc-score-detection

A program to detect FRC match scores from their livestream.
GNU General Public License v3.0
15 stars 2 forks source link
computer-vision first first-robotics-competition frc score vision

FRC Score Detection

What Is This?

This is a Python program that makes use of the frc-livescore package to gather match information (such as scores, time remaining, match number, etc.) from the scoreboard on FRC livestreams. This will allow us to get live updates on matches and allows us to know when a match finishes before the API officially reports them. It has almost a 100% accuracy in reading scores and remaining time from images thanks to Tesseract.

For example, take the following scene:

Example Scene

This image will give us the following data:

Match: Qualification 16
Remaining: 88
Red: 115
Blue: 113

That's pretty good!

Running Score Detector

Installing Dependencies

pip install -r requirements.txt

You will also need to have Tesseract and OpenCV 3 (instructions for macOS, Windows and Linux) installed.

Running

To run the program, use the following command:

$ python score_detection.py