LIVE cartercole.net --:--:-- UTC

// 04 RESTRICTED

panopticon

PYTHON WGSL TYPESCRIPT WEBGPU ACCESS RESTRICTED

Surround-view stitching for cameras with any lens. Give it N cameras, their rough mounting poses on a vehicle and a calibration pass, and it renders any number of virtual cameras from them: a bird's-eye view, a 3D orbit, pan, tilt and zoom for each camera, a 360° panorama, or an undistorted view in any projection. The NumPy renderer is the specification, a WGSL shader matches it on Metal, and the browser viewer runs that same shader on WebGPU.

How it works

For every output pixel the renderer casts a virtual ray and intersects it with a projection surface: the ground, a bowl or a sphere. The hit point is projected into every physical camera that can see it, and the views are blended by a softmax over how central each camera sees it. Seven lens models cover the ideal pinhole, Kannala–Brandt fisheye, Brown–Conrady and a table read from a datasheet, including a 200° lens. The shader is held to the reference by parity tests over seven view types, on a four-camera rig and a six-camera rig with mixed lenses.

Calibration

It starts from the tape-measured mounts and refines them, with four methods:

Lens intrinsics are fitted from board images or from a datasheet table.

Verified so far

All on synthetic data with known ground truth:

Stated honestly

Everything is synthetic so far. There is no real camera data, so real lenses, exposure and mounting error will show first in the calibration residuals. Calibrate at full resolution: at half resolution the ChArUco cells are too small for the side cameras to decode. Targetless and gains are only tested on the four-camera rig, and on plain pavement they may not converge. The bowl surface ghosts tall objects such as posts and people in the overlap zones, and a depth-adaptive surface is not built. Live capture from USB, RTSP or AHD is not built either, so the viewer plays stills and files. The viewer needs WebGPU and has only been run on Metal, and its click-to-calibrate UI has not been driven end to end with real clicks.