Methodology

Rendered from the engine's METHODOLOGY.md at commit 7509ed882202

This page explains how every number on The Wear Report is made, how sure it is, and what it does not show. The London aggregate data is published in the engine repository. Changes are listed at the end. The separate initial Calgary annotation queue described below does not supply the London percentages.

In short

What we measure

For each sweep of London’s traffic cameras we record:

From spot checks we record, for each person shown:

We do not measure anything finer (colours, brands, sleeve length). At this image size it is not reliable.

How the numbers are made

The table and time window in this section describe the London pipeline.

Step What happens
Cameras The current list of TfL JamCam cameras is downloaded every sweep; only cameras TfL lists as available are used.
Fetch The latest still from each camera is downloaded into memory. A camera that fails is counted and skipped.
Detect YOLOX-m (Apache-2.0) runs on CPU and finds people and umbrellas.
Count People at least 31 pixels tall are counted. Sweeps that start when the sun is more than 6° below the horizon are not counted.
Weather Each sweep is joined to the Met Office hourly forecast nearest to it.
Spot checks A person runs one pass over a current sweep of London cameras. Every person at least 46 pixels tall is shown, one crop at a time, in a window on their own computer, and is answered. Only the answers and each crop’s height in pixels are kept.
Join Each spot check takes the temperature of the counted sweep that started closest to it, within 20 minutes. Spot checks with no such sweep are left out.
Publish Counts and answers are added up by temperature band. Only these totals are published.

Since 4 October 2026, spot checks start between 09:30 and 15:00 London time, at most four a day and at least 30 minutes apart. Four earlier pilot spot checks (30 September to 2 October 2026) started between 09:32 and 17:21 London time and are included. Pages that show a percentage list how many spot checks were made at each hour of the day.

Separate initial Calgary annotation

This private queue prepares and fact-checks our own original aggregate clothing reporting and editorial guides. It does not supply London percentages, publish Calgary results, run a new AI experiment or establish a formal Calgary temperature product. A system timer runs a single CPU collector on a Tencent Cloud virtual server in Shanghai, mainland China. Whole camera images are processed in application memory, with no application media files, service swap or core dumps. Only selected PNG crops are uploaded over authenticated HTTPS through an upload-only Cloudflare Worker to the existing private queue and EU-jurisdiction R2 storage for later US review. GitHub hosts the software and runs constructed-fixture software checks, rather than this queue’s operational image acquisition.

The collector uses the City of Calgary’s Open Data Traffic Cameras dataset (k7p9-kppz) and the existing downtown area: latitude 51.040–51.056 and longitude −114.095 to −114.045. It takes the first 100 valid in-area rows in catalogue order, then removes repeated resolved still URLs without refilling those slots. It attempts at most 100 distinct URLs in one sequential pass. This is a convenience sample, not randomly selected cameras, a city-wide sample or a camera-quality ranking. Different URLs are not verified to be different physical cameras.

Both JPEG headers and decoded images must be 840×630. The existing CPU detector identifies eligible person boxes at least 46 pixels tall. Each box receives a margin of 50% of its original width on each side and 50% of its original height above and below, clipped to the frame; exact whole-frame crops are excluded. A fixed green one-pixel rectangle marks the intended detection. There is no enlargement, face masking, identification or tracking. A crop can contain background or nearby people, and excluding whole-frame geometry adds selection bias rather than proving accuracy.

A deterministic reservoir selects at most 100 eligible crops independently of clothing predictions, then restores acquisition order. Detection and eligibility are still model-dependent, and the sample is not deduplicated into distinct people. Lossless PNGs are limited to 128 KiB each and 8 MiB per group. A selected image that fails encoding or the byte limit causes failure rather than a substitute image. Each admission reserves 100 crop slots, even if it fails or is empty; no more than one group per Calgary day and 700 reserved slots per rolling 168 hours are admitted. An active, unresolved or unhealthy group prevents new admission.

The initial window is 17:45 inclusive to 18:15 exclusive UTC, with positive solar elevation, under the versioned fixed UTC−6 policy (11:45–12:15 in that policy). Actual Calgary civil time can differ seasonally; the policy and timer do not automatically shift with daylight saving time. Delayed runs are skipped, not replaced. These are initial operating limits, not a permanent one-group-per-day design. Collection is bounded to ten minutes and the window end. A locked system service targets no more than 20 minutes for runtime checks, collection and upload combined and terminates its process group on timeout. The timer has no automatic restart or catch-up run. Local process termination does not cancel an upload already accepted by the remote service or prove deletion of any crop already stored in the queue.

Acquisition times record when the collector finished receiving and decoding the source images used for retained crops, before detection. They are not verified camera exposure times, HTTP Date or scheduled times. The stored acquisition range describes selected crops, not all attempted images. Complete results record saving time separately; individual keypress times and original camera exposure times are not recorded. No camera URL, coordinates or weather is included in queue results. Private numeric records identify the VM’s daily run, sanitized counts/timing and source/runtime versions; they are not GitHub Actions execution records.

Each crop has an acquisition-plus-24-hour deadline, and the entire group closes at the earliest one. For a successful complete Save, the immutable numeric result is committed and exactly read back before media deletion. Expired unsaved media is closed and deleted without creating or padding human answers. Independent cleanup retries deletion and continues when collection or review is off. Missed, empty, failed or expired groups are missing data, never zero observations, invented labels or completed human observations. Storage, access and physical-deletion limits are described in the privacy notice.

How sure are the percentages?

What the percentages do and do not show

How accurate are the counts?

Privacy

  1. Whole camera images are processed in application memory. Ordinary London sweeps and window-mode checks do not save images. The Calgary collector application writes no camera frames or crops to its server disk, caches, snapshots or backups. Its separate private queue may retain only the bounded person crops described above, until completed-result verification or expiry. No media enters git, CI logs, summaries, artifacts, application caches or analytics services.
  2. No face detection, face recognition, re-identification or tracking across images. Payload integrity hashes are not person identifiers.
  3. Camera images and crops are never published. Only aggregate results are published, and this initial phase keeps Calgary queue results separate and private. To see a London camera, follow TfL’s own camera page.
  4. London accuracy checks use the checker’s own computer. The separately permitted one-off automatic-label tests may pass single-person crops in memory to an open-weights vision model at a provider whose terms exclude storing, logging or training on them, or to a local model that retains only answers and totals. The Calgary queue does not enable new AI tests or reuse its images or answers for independent model evaluation or training, raw-image or per-person data services, identity searches or advertising profiles.

CI enforces the no-image-storage rule for ordinary sweeps through static checks and a full sweep against a local fake camera server. The Calgary collector and queue have separate constructed-fixture checks for source boundaries, the upload-only adapter, run provenance, admission, payload integrity, durable numeric saving, expiry and cleanup. Constructed-pixel CPU boot checks validate runtime compatibility rather than camera accuracy. Fixture and boot checks do not prove exact native cancellation, indefinite scheduling, remote failure timing or physical erasure from provider media. The privacy notice explains processing in Shanghai, global Cloudflare services, EU object storage, US review and deletion limits.

Sources and attribution

Changelog