Add bounding box option to trigger

This commit is contained in:
Nick Mowen 2022-05-27 12:33:08 -06:00
parent d999575832
commit aa5761f716

View File

@ -289,6 +289,10 @@ class ZoneConfig(BaseModel):
default_factory=list, default_factory=list,
title="List of objects that can trigger the zone.", title="List of objects that can trigger the zone.",
) )
bounding_box_trigger: str = Field(
default="bottom-center",
title="Point of an objects bounding box that triggers this zone.",
)
_color: Optional[Tuple[int, int, int]] = PrivateAttr() _color: Optional[Tuple[int, int, int]] = PrivateAttr()
_contour: np.ndarray = PrivateAttr() _contour: np.ndarray = PrivateAttr()