Groundtrack

The motus mark: oblique video to movement in plan, a camera ten metres up, its view projected onto a gridded plan with tracks coloured by speed

Project data

Oblique video, filmed from a tripod or a window, turned into movement in plan: every person and vehicle found, put on the ground in metres on the British National Grid, and given as tracks, speeds, flow fields and densities for QGIS, Rhino, Grasshopper and Houdini. Everything runs locally. The repository is now called motus.

Project no.
07 / 08
Discipline
Coding
Year
2026
Type
Research tool
Stack
Python, YOLO, OpenCV
Output
EPSG:27700
Runs
Locally
Licence
AGPL-3.0
Chapters
04
Figures
04

What it does

One run, one folder: plans, layers, videos, data, imports. Each run writes one folder: frameless plans (tracks, flow field, density, aerial) and their transparent layers on one extent; legends, scale bar and north arrow on their own; videos of the tracks building up over the map and particles streaming through the field; the data as points (x, y, velocity, speed, heading, predicted), tracks and gaps as GeoJSON, the field grid, metrics and statistics; import scripts for Houdini; a .3dm and a Grasshopper import for Rhino 8.

Three plans from a synthetic run: the tracks coloured by speed, the smoothed flow field, and the density in object-seconds per square metre

How it works

YOLO tracking finds people and vehicles in the footage; a homography calibration, from clicked pairs between the video and a georeferenced top-down image (or an automatic calibration), puts them on the ground. A tracker predicts through occlusions (a person passing behind a pillar is drawn dotted). Several clips of one place can be composited. A desktop app does the whole run in one window: footage and aerial, where the camera stood, calibration by clicking pairs with live errors, the area to track, runs with live logs, results, and the hand-over to Houdini and Rhino.

A map of the system: the inputs on the left (ground points, lens, site config, video clips, OpenStreetMap, terrain, aerial image), the six steps in the middle, and the outputs for Rhino, QGIS, Grasshopper and Houdini and the live mode on the right

motus live

Phones become the camera: as a phone turns, the machine redraws every track as if the camera had moved. In the realtime mode one phone films and the laptop tracks as it comes while other phones turn the camera.

The live view's axonometric: the camera's frustum, the plan's extent and a track in it, with the pose's pan, tilt and roll read out

Stack

Python 3.10–3.12, PyTorch, Ultralytics YOLO, OpenCV, rasterio, NumPy, SciPy, pandas, rhino3dm; pywebview for the desktop window.