Video visualiser

Press Start camera and allow access when the browser asks.

The camera image is analysed in your browser and never leaves it.

Video and motion image

Video

Motion image

Raise the threshold until the motion image is black when you hold still. The gain only brightens the display.
Videograms and motiongrams

Vertical videogram

earliernow

Horizontal videogram

newest at the topearlier at the bottom
Self-similarity matrix
earliernow
Quantity and centroid of motion

Quantity of motion: no data yet

Centroid of motion: no data yet

More about this app

How it works

The camera image is scaled down to 160 × 120 pixels before anything is analysed. The motion image shows what changed since the previous frame: each pixel is the difference in brightness between this frame and the previous one, so what stands still turns black and what moves lights up. Only edges show clearly: a plain shirt moving sideways changes little in its middle. A camera never delivers two identical frames, even of a still room, so differences smaller than the noise threshold (0–255) are set to zero.

A videogram averages each frame across its width into one column (vertical videogram) or down its height into one row (horizontal videogram) and lays the lines side by side, newest on the right or at the top. A hand that rises draws a line that climbs in the vertical videogram; swaying from side to side draws a wavy line in the horizontal one. A videogram shows everything, furniture included; a motiongram does the same with the motion image and keeps only the movement. Both kinds are kept while the camera runs, so you can switch back and forth without losing anything.

In the self-similarity matrix the colour at a point says how alike two frames are: yellow very alike, dark blue very different. Both axes are time, and the diagonal compares each frame with itself, so it is always bright. A repeated movement gives stripes parallel to the diagonal, spaced by its period. Holding still fills the matrix with one even colour. The matrix follows the videogram or motiongram switch.

The quantity of motion is the share of pixels in the motion image that changed by more than the threshold: one number, as a percentage of the picture, for how much is moving, regardless of where. The centroid of motion is the centre of gravity of the motion image, weighted by how much each pixel changed, given from 0 (left or top) to 1 (right or bottom). When nothing moves there is no centroid, and the lines break.

Things to try

Move one arm slowly through a large arc, then quickly through the same arc, and compare the traces in the motiongrams and the height of the quantity of motion. Hold completely still for a few seconds and watch which displays go quiet and which do not: the videograms keep showing you, the motiongrams do not.

Clap at a steady rate in front of your chest and look for the evenly spaced marks in the vertical motiongram and the stripes in the self-similarity matrix. Put on some music and sway to it: the horizontal motiongram and the horizontal centroid turn the sway into a wave you can compare with the beat. Finally, turn the threshold down to 0 and hold still to see the camera noise the threshold removes.

Based on VideoViz and the Musical Gestures Toolbox.