Skip to content

Instantly share code, notes, and snippets.

@qgolsteyn
qgolsteyn / dice_reader.py
Last active December 16, 2025 20:02
A small Python script that reads dice rolls out loud. See https://golsteyn.com/projects/dice/ for more info!
import cv2
import numpy as np
from sklearn import cluster
params = cv2.SimpleBlobDetector_Params()
params.filterByInertia
params.minInertiaRatio = 0.6
detector = cv2.SimpleBlobDetector_create(params)