To accomplish this it uses OpenCV's built-in SimpleBlobDetector. The code is heavily commented and easy to expand.
Video Demo: https://www.youtube.com/watch?v=lZBEsf6_XZ4
To use:
- Required dependencies are
OpenCV
andNumpy
. If you don't have them installed or you're using old versions, runpip3 install -r requirements.txt
. - Set options at the top of
dice_reader.py
and run.