Add any option to birdseye

This commit is contained in:
NPutting 2023-01-30 13:06:55 -06:00
parent be2408b366
commit 4af7e4e6ea
4 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -312,6 +312,7 @@ class ObjectConfig(FrigateBaseModel):
class BirdseyeModeEnum(str, Enum):
objects = "objects"
motion = "motion"
any = "any"
continuous = "continuous"

View File

@ -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(