NUMISVISION
Computer vision coin detection, marker-controlled watershed segmentation, and monetary valuation.
The Problem Space
Standard circle detection algorithms (like naive Hough Circle Transforms) fail catastrophically when coins overlap, touch, or exist under uneven ambient lighting with harsh metallic specular glares.
Systemized Implementation
Formulated a robust multi-stage segmentation pipeline using Gaussian blurring, comparative Otsu vs adaptive thresholding, Euclidean distance transforms to identify local maxima centers, and marker-controlled watershed segmentation to partition merged contours with high geometric precision.
How It Operates in Production
Built in Python using OpenCV, NumPy, and SciPy. The pipeline ingests high-resolution images, computes morphological gradients to preserve boundaries, calculates distance transform relief maps, and seeds watershed markers at local Euclidean peaks.
Engineered automatic contour area calibration converting pixel diameters into exact physical coin denominations (10, 25, 50 piastres, and 1 pound), computing total currency value with rigorous error metrics.
NUMISVISION // WATERSHED OVERLAPPING CONTOUR PARTITIONING
Bilateral Edge-Preserving Filter
Eliminates high-frequency surface scratches on metallic coins while maintaining pristine circular perimeter gradients.
Otsu vs. Adaptive Thresholding
Dynamically splits illumination variations and eliminates specular reflections from metal surfaces.
Euclidean Topological Map
Computes metric distance from every foreground pixel to background boundary, detecting unique local maxima seeds.
Marker-Controlled Segmentation
Floods basins from topological seeds to cleanly divide overlapping coins into discrete contour polygons.
Data Flow & Infrastructure
Raw images undergo bilateral edge-preserving smoothing followed by adaptive thresholding. The binary mask passes through distance transformation to isolate core centers. Watershed segmentation floods outward from peaks, separating boundaries cleanly before passing contours to the denomination classifier.
Euclidean distance transforms coupled with marker-controlled watershed segmentation partition merged contours where naive Hough circle transforms fail.
Core System Features
Bilateral Filter & Euclidean Distance Map Pipeline
Suppresses sensor noise and metallic reflections while isolating local topological maxima seed points.
Marker-Controlled Watershed Contour Segmentation
Floods basins from distance transform seeds to accurately partition tightly overlapping coin contours.