Knowledge Base

Technical articles on vision algorithms, applied mathematics, optics, and machine vision engineering.

Plugin SDKC APIIntegration

Integrating a Vision Algorithm Plugin in 8 Lines of Code

VisionLab's Plugin SDK lets you add sub-pixel geometric measurement or AI defect detection to any C/C++ application โ€” without taking on OpenCV or PyTorch as host dependencies.

May 1, 20263 min read
Circle FittingRANSACSub-pixel

Sub-Pixel Circle Fitting: Breaking the 0.1 px Barrier

A deep dive into how RANSAC, sector-centroid sampling, and Devernay sub-pixel edge detection combine to achieve circle-centre accuracy below 0.1 pixels.

April 25, 20263 min read
PatchCoreDINOv2Anomaly Detection

No Defect Samples Needed: How PatchCore Detects Anomalies

PatchCore flips the defect-detection problem on its head โ€” instead of learning what defects look like, it memorises what normal looks like. Here's the math behind it.

April 18, 20263 min read
Rectangle FittingRANSACGeometric Fitting

Rectangle Fitting: Sequential Four-Edge RANSAC with Orthogonality Constraints

VisionLab fits rectangles by finding four edges sequentially with RANSAC, enforcing parallel and perpendicular constraints at each step โ€” more robust than fitting all edges simultaneously.

April 10, 20264 min read
Ellipse FittingFitzgibbonRANSAC

Ellipse Fitting: Fitzgibbon's Method and the 120ยฐ Triplet Strategy

How VisionLab fits ellipses robustly using algebraic constrained least-squares (Fitzgibbon) combined with a 120ยฐ sector-triplet sampling strategy for outlier rejection.

April 3, 20263 min read
Template MatchingShape MatchingGradient Orientation

Shape Template Matching: Rotation-Invariant Localisation Without Retraining

How VisionLab's gradient-orientation based template matching locates parts at any angle and scale โ€” and why it outperforms classic NCC on industrial images.

March 28, 20263 min read
YOLODatasetAnnotation

YOLO Dataset Annotation and AI-Assisted Auto-Labelling

A practical guide to building YOLO training datasets with VisionLab's AnnotateTab โ€” including directory layout, label format, 4K tiling, and using a trained model to speed up annotation.

March 15, 20263 min read
YOLOTrainingDeep Learning

Training YOLOv8 for Industrial Defect Detection: Parameters, VRAM, and Pitfalls

A practical guide to YOLOv8 training parameters in VisionLab โ€” VRAM selection table, small-dataset tips, and a deep-dive into the close_mosaic loss explosion bug and its fix.

March 5, 20264 min read