Live: 8 fire cameras, measured every daySee them

Turn any fire lookout
into a calibrated sensor

Open-source computer vision that works out exactly where a camera is looking, from its skyline alone.

$ pip install "fuelgauge[geo,seg]"
LIVERed Mountain EastSan Diego County

Runs on open data from

PhenoCam NetworkHPWRENALERTCaliforniaCopernicus DEMESA WorldCoverNIFC Wildfire IncidentsGlobe-LFMCMODISMicrosoft Planetary Computer

A camera sees colour. Fuel Gauge sees the ground.

To the software behind a fire camera, a pixel has no distance and no place on a map. Fuel Gauge gives it both.

The camera
rgb(—)
Fuel Gauge

    
0.04°pose error
29,047photos aligned
1,309cameras audited
1.4Macres burned out of view

Pipeline

Five steps. Each one is a single command.

Twenty years, one view

Every frame locked to one view, even after the camera moves.

Three photos from 2007, 2008 and 2013 averaged as recorded: three hills and a smeared road The same three photos averaged after alignment: one sharp hill and road BeforeAfter
Under the hood
  • Frame screeningBrightness, Laplacian sharpness, contrast and clipping checks drop night, glare and blur before matching.
  • SIFT on CLAHE greyscaleContrast-limited histogram equalisation evens out season and time of day; matches pass Lowe's ratio test at 0.75.
  • 4-DOF similarity by RANSACShift, rotation and scale only. A full homography overfits to clouds and moving shadows.
  • Keyframe trackingFrames match recent keyframes, relocalise against older ones, and start a new stretch after four lost frames.
  • Loop closureStretches join through a maximum-inlier spanning tree over their clearest keyframes.
  • Relocations and bumpsA camera moved to a new mast becomes a second view; sustained shifts are logged as move dates.
fuelgauge register-archive photos/ out/ridge

Pose from the skyline

Pose and lens solved from the skyline. No survey.

Under the hood
  • Sky segmentationSegFormer-B2 (ADE20K) through ONNX Runtime on CPU; the skyline is the first non-sky row per column, snapped to the nearest strong edge.
  • Rendered terrain panoramaCopernicus 30 m elevation ray-marched along every bearing with earth curvature and refraction (k = 0.13).
  • Fisheye lens modelEquidistant projection with one radial term, θ = (r/f)(1 + k₁(r/f)²). Fire cameras are strongly barrel-distorted.
  • Robust pose fitBounded Powell search on a trimmed loss that ignores the worst 20% of columns: trees by the mast, low cloud.
  • Network lensOne field of view and distortion fitted jointly across all cameras of a model (101.15°, k₁ = 0.080 here).
fuelgauge calibrate ridge frame.jpg --lat 33.4008 --lon -117.1905 --elev 483 --yaw 90

Every pixel on the ground

Distance, coordinates and land cover for every block.

Tracing lines of sight
Under the hood
  • Back-projectionEach block's viewing ray is intersected with the rendered panorama; the first terrain cell it reaches is its ground point.
  • Terrain attributesSlope and aspect from elevation gradients; ESA WorldCover 10 m land cover at the ground point.
  • Usable-ground maskSky, the camera housing and blocks past the terrain model's reach are dropped before measuring.
ground = terrain.backproject(cam, pano)   # distance, lat, lon per block

Colour you can trust

Clear days only, colour corrected against rock and soil.

A ridge camera's anchor view with the automatically found vegetation and reference blocks marked
curedgreen flushcolour reference
Under the hood
  • Haze scoringSobel edge correlation with the anchor frame; a day is clear at 80% of its trailing 90-day norm.
  • Automatic regionsSegmentation vegetation labels plus a strong seasonal swing (5th to 95th percentile of weekly medians). No hand-drawn masks.
  • Drift-tracking white balanceA von Kries correction against blocks that stay flat all year, smoothed over 61 days so it follows the sensor, not snow.
  • IndicesGRVI and GCC per block; camera NDVI from near-infrared twins with exposure correction (Petach et al. 2014).
  • Causal smoothingWeekly 90th percentile then a 15-day mean, using only past data, so it is safe as a nowcast.
fuelgauge measure out/ridge   # _daily.csv + _regions.png

See a whole network

Every camera's line of sight, and where to add the next.

California shaded by how many fire cameras can see each patch of wildland, with large fires since 2020 marked
Seen by 2+ camerasSeen by 1Unseen wildlandLargest unseen firesProposed sites
Under the hood
  • Radial viewshedsRays every 0.1° out to 30 km with curvature and refraction; a sample is visible when it beats every elevation angle before it.
  • Smoke line of sightWould a column 100 or 300 m above a point rise into view? That is how a lookout spots a fire before its base is visible.
  • Greedy sitingHilltop candidates in every 6 km square; each round takes the one that adds the most unseen ground, counted once.
fuelgauge viewshed cameras.csv coverage.tif
fuelgauge site cameras.csv --k 10

Live

Eight fire cameras, calibrated and measured every morning.

California time--:--