Skip to content

Instantly share code, notes, and snippets.

View qgolsteyn's full-sized avatar
👨‍💻
Making the world a better place

Quentin Golsteyn qgolsteyn

👨‍💻
Making the world a better place
View GitHub Profile
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
@qgolsteyn
qgolsteyn / main.py
Last active March 6, 2023 05:48
Solving a sudoku from an image using OpenCV
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 October 8, 2023 08:27
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)