advanced
Pyvorin for Computer Vision
Image preprocessing, filtering, and contour detection.
Published May 30, 2026
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.