Optical Flow — fps

Webcam or demo → dense Lucas–Kanade optical flow → live motion vectors and optional heatmap in WebGL2.

Camera
Blur amount 4
Noise threshold 0.07
Temporal smooth 0.90
Spatial blur 2
Clamp 4.6
Resolution 192
Size 3.5
Amount 0.22
Speed 0.5
Grid density 215
Length 50
Color

Info

Source —
Frame —
Flow —
Grid —
Loading…

Press H to hide / show panels. Dense Lucas–Kanade 3×3 on each camera frame; vectors are grid lines scaled by the flow field — a classic computer-vision motion cue used in generative and AV work.

Read: Optical Flow →

About this demo

This page estimates optical flow — the apparent motion of brightness patterns between consecutive video frames — entirely in the browser with WebGL2. A dense Lucas–Kanade solver (3×3 neighborhoods) builds a motion field from the webcam or a synthetic demo; the field drives a vector grid and an optional color heatmap.

Artists use the same idea in digital and video art: trajectories, arrows, or hue-encoded directions that reveal hidden movement, between kinetic abstraction, glitch aesthetics, and machine perception.

  • Noise threshold — ignore weak / noisy flow
  • Temporal smooth — blend with the previous field
  • Spatial blur / clamp / resolution — shape and bound the field
  • Vectors — density, length, and color of the arrow grid

Essay: Optical Flow on alexeyroudenko.net →