mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-09 16:47:37 +03:00
Adds a new recap feature that composites detected people from throughout
the day onto a clean background, producing a short summary video of all
activity for a given camera.
How it works:
- Builds a clean background plate via median of sampled frames
- Extracts clip frames for each person event from recordings
- Uses per-event background subtraction (first frame of clip as reference)
within a soft spotlight region to isolate the person
- Groups non-overlapping events to play simultaneously
- Balances groups by duration so the video stays even
- Renders at 2x speed, stitches groups into final output
New files:
- frigate/recap/ — core generation module
- frigate/api/recap.py — POST /recap/{camera}, GET /recap/{camera}
- frigate/config/recap.py — recap config section (enabled, fps, etc)
- frigate/test/test_recap.py — unit tests
- web/src/components/overlay/RecapDialog.tsx — UI component (not yet wired)
Config example:
recap:
enabled: true
default_label: person
output_fps: 10
video_duration: 30
background_samples: 30
Relates to #54
|
||
|---|---|---|
| .. | ||
| api | ||
| components | ||
| context | ||
| hooks | ||
| lib | ||
| pages | ||
| types | ||
| utils | ||
| views | ||
| App.tsx | ||
| env.ts | ||
| index.css | ||
| login.tsx | ||
| main.tsx | ||
| vite-env.d.ts | ||