mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-10 00:57:38 +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
|
||
|---|---|---|
| .. | ||
| audio | ||
| auth | ||
| button | ||
| camera | ||
| card | ||
| chat | ||
| classification | ||
| config-form | ||
| dynamic | ||
| filter | ||
| graph | ||
| icons | ||
| indicators | ||
| input | ||
| menu | ||
| mobile | ||
| navigation | ||
| overlay | ||
| player | ||
| preview | ||
| settings | ||
| timeline | ||
| trigger | ||
| ui | ||
| ws | ||
| Logo.tsx | ||
| Statusbar.tsx | ||
| Wrapper.tsx | ||