Computer vision · performance

VisionMetric

A processing pipeline with the engine kept separate from the interface, and every frame timed. Switch the operator and the cost changes in front of you — which is the point: an optimisation should be shown to be faster, not assumed to be.

Source
Output
Synthetic source — no camera needed

Per-frame latency

Last 120 frames. The scale is fixed so operators can be compared.

What is being measured

Each operator runs over the full frame at 480×360. The timer wraps only the pixel work — capture and paint are excluded, so the figure reflects the operator rather than the browser's compositor.

  • Passthrough — a copy, establishing the floor.
  • Greyscale — one pass, three multiplies per pixel.
  • Sobel edges — a 3×3 convolution in both axes; the expensive one.
  • Motion — difference against the previous frame, thresholded.

The Python version in this repo does the same over a webcam with OpenCV. This runs in the browser so it can be linked rather than installed.