Repository navigation
feat(cctv): open up to eight cameras at once, and analyze and watch them together - #521
Merged
Merged
Conversation
…hem together Clicking a camera on the map now adds it to a camera wall instead of replacing the one open. One camera keeps the familiar viewer; a second turns it into a grid of numbered tiles, up to eight, each with its own Analyze and Watch. The map rings each open camera with its tile number. - ANALYZE ALL and WATCH ALL 30S look through every camera whose picture can be read at once; a totals strip adds up what is in view, what the live watches counted passing, the busiest camera and the colours. - A ninth click is refused with a notice, so a running watch is never closed for the reader; clicking an open camera flashes its tile. - The detector runs on a small pool of workers (up to half the cores), each camera pinned to one, so several cameras are read in parallel. - OI Assist's camera tool takes ids (up to 8) or near + count, opens them side by side and looks through them together, reporting totals, the busiest and each camera in brief; a model that reads images gets up to four frames.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
RetroRix
added a commit
to RetroRix/GlassEarth
that referenced
this pull request
Nov 30, 2026
…lifaisoul#521, part 1) addToWall keeps the open cameras in open order, caps the wall at eight, refuses a ninth (the page says so out loud) and, for OI, makes room by closing the longest-open. The vision client now runs a small pool of workers (one session pinned per worker) so several cameras can be looked through at once; the store refcounts looks so a shared camera is analysed once and forgotten only when the last viewer lets go. wallTotals drops upstream's counted-passing sum: Glass Earth watches carry no such tally.
RetroRix
added a commit
to RetroRix/GlassEarth
that referenced
this pull request
Nov 30, 2026
…#521, part 2) CameraViewer splits into a thin solo wrapper and an exported CameraCard; CameraWall lays the cards out (one camera renders exactly as the old viewer did), each tile with its own feed, look and report. The page holds the wall: map clicks, shared links, the dossier and OI add cameras; roulette, Sunrise Chaser and the Theater Wall replace it solo, as the single viewer behaved. The map rings the open cameras with their slot numbers. Glass Earth extras (missions live-video, Listen to This Place) are forwarded to every tile.
RetroRix
added a commit
to RetroRix/GlassEarth
that referenced
this pull request
Nov 30, 2026
…aisoul#521, part 3) The camera tool takes ids for up to eight cameras, or near + count for the nearest few: they open on the reader's camera wall and are analysed together; the model gets the totals, the busiest camera and each in brief, and up to four frames are attached for vision models. Adapted to Glass Earth: no passing tally exists in our watch summaries, so the multi-camera summary reports in-view totals only.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Clicking a camera on the map now adds it to a camera wall instead of replacing the one that is open. Up to eight cameras can be open at once. ANALYZE ALL and WATCH ALL 30S run on every readable camera together, and a totals strip adds up the results across the wall. OI Assist's camera tool can open and look through several cameras in a single call.
Changes
Camera wall
src/lib/camera-wall.tsholds pure helpers:src/components/CameraWall.tsx: a single camera keeps the existing viewer. Two or more become a grid of numbered tiles in 2, 3 or 4 columns, with ANALYZE ALL, WATCH ALL 30S, STOP ALL / ALL LIVE, fullscreen and close-all. Tiles keep their identity within one grid, so a playing or watched stream never remounts.CameraViewer.tsx: the card body is split out asCameraCard, which gains a compact tile mode. The standalone viewer used by the cut-out view behaves as before.CameraVision.tsxadds a compact report for tiles and aWallReport. It shows:OsirisMap.tsx: each open camera is ringed in gold and labelled with its tile number (cctv-pickedsource).Detector
vision/client.ts: the single detector worker becomes a small pool. It uses up to half the cores, at most four, and two on low-memory devices. Each camera stays on one worker for the length of a look, because its motion state lives in that worker.vision/store.ts:useLooks(ids)reads looks for several cameras at once.showLook(id)stops a look once its tile closes. The stop is deferred, so StrictMode remounts survive.OI Assist
cameratool acceptsids(up to eight) ornear+count, opens the cameras side by side and looks through them together.Testing
tsc --noEmit: clean.vitest run: 1,848 passed, 27 skipped. This includes new tests for:idswith one web player skipped and one camera failing,near+count, and four frames attached.next buildfrom a clean.next: compiled successfully.🤖 Generated with SIMPLIFAI