Pyvorin for Computer Vision
May 30, 2026 | 5 min read
Image Preprocessing
Resize, normalise, and augment images with compiled loops.
def normalize_image(pixels):
result = []
for row in pixels:
out = []
for val in row:
out.append((val - 128.0) / 128.0)
result.append(out)
return result
Filtering
Gaussian blur, Sobel edge detection, and morphological operations.
Contour Detection
Marching squares and connected components.