Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Making the world a better place

Quentin Golsteyn qgolsteyn

👨‍💻
Making the world a better place
View GitHub Profile
@qgolsteyn
qgolsteyn / main.py
Last active Mar 30, 2022
Solving a sudoku from an image using OpenCV
View main.py
import cv2
import numpy as np
import glob
import os
from sklearn.neighbors import KNeighborsClassifier
import pickle
import math
pkl_filename = "pickle_model.pkl"
with open(pkl_filename, "rb") as file:
@qgolsteyn
qgolsteyn / dice_reader.py
Last active Dec 24, 2021
A small Python script that reads dice rolls out loud. See https://golsteyn.com/projects/dice/ for more info!
View dice_reader.py
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)
View SI-pop-by-municipality.csv
We can make this file beautiful and searchable if this error is corrected: Any value after quoted field isn't allowed in line 2.
"Osebe s prijavljenim stalnim prebivali��em v Republiki Sloveniji po petletnih starostnih skupinah in spolu, ob�ine, Slovenija, polletno"
"OB�INE";"2019H2"
"Ajdov��ina";19484
"Ankaran/Ancarano";3133
"Apa�e";3591
"Beltinci";8367
"Benedikt";2575
"Bistrica ob Sotli";1414
"Bled";7907