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:
This image will give us the following data:
Match: Qualification 16
Remaining: 88
Red: 115
Blue: 113
pip install -r requirements.txt
You will also need to have Tesseract and OpenCV 3 (instructions for macOS, Windows and Linux) installed.
To run the program, use the following command:
$ python score_detection.py