Files
frigate/frigate/events/types.py
Josh Hawkins 95d6da3111 Add ability to configure genai to use snapshot instead of thumbnails (#14077)
* Allow embedding of snapshot for description via config option

* docs

* frontend button

* Backend

* crop snapshot to region

* only show dropdown when event has snapshot

* fix cursor on dropdown

* crop on initial generation as well

* use enum for type

* fix type
2024-09-30 15:54:53 -06:00

20 lines
340 B
Python

"""Types for event management."""
from enum import Enum
class EventTypeEnum(str, Enum):
api = "api"
tracked_object = "tracked_object"
class EventStateEnum(str, Enum):
start = "start"
update = "update"
end = "end"
class RegenerateDescriptionEnum(str, Enum):
thumbnails = "thumbnails"
snapshot = "snapshot"