mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
Add any option to birdseye
This commit is contained in:
parent
be2408b366
commit
4af7e4e6ea
@ -8,6 +8,7 @@ Birdseye offers different modes to customize which cameras show under which circ
|
||||
- **continuous:** All cameras are always included
|
||||
- **motion:** Cameras that have detected motion within the last 30 seconds are included
|
||||
- **objects:** Cameras that have tracked an active object within the last 30 seconds are included
|
||||
- **all:** Cameras that have tracked an active object or detected motion within the last 30 seconds are included
|
||||
|
||||
### Custom Birdseye Icon
|
||||
|
||||
|
||||
@ -128,6 +128,7 @@ birdseye:
|
||||
# Optional: Mode of the view. Available options are: objects, motion, and continuous
|
||||
# objects - cameras are included if they have had a tracked object within the last 30 seconds
|
||||
# motion - cameras are included if motion was detected in the last 30 seconds
|
||||
# any - cameras are included if motion or objects were detected within the last 30 seconds
|
||||
# continuous - all cameras are included always
|
||||
mode: objects
|
||||
|
||||
|
||||
@ -312,6 +312,7 @@ class ObjectConfig(FrigateBaseModel):
|
||||
class BirdseyeModeEnum(str, Enum):
|
||||
objects = "objects"
|
||||
motion = "motion"
|
||||
any = "any"
|
||||
continuous = "continuous"
|
||||
|
||||
|
||||
|
||||
@ -200,6 +200,10 @@ class BirdsEyeFrameManager:
|
||||
if mode == BirdseyeModeEnum.objects and object_box_count > 0:
|
||||
return True
|
||||
|
||||
if mode == BirdseyeModeEnum.any and ( object_box_count > 0 or motion_box_count > 0):
|
||||
return True
|
||||
|
||||
|
||||
def update_frame(self):
|
||||
# determine how many cameras are tracking objects within the last 30 seconds
|
||||
active_cameras = set(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user