updated PolygonZone Attributes docs

This commit is contained in:
Jeslin P James
2024-04-11 18:59:48 +05:30
parent b7607c6f15
commit 28baf18cb6
+4 -1
View File
@@ -22,13 +22,16 @@ class PolygonZone:
Attributes:
polygon (np.ndarray): A polygon represented by a numpy array of shape
`(N, 2)`, containing the `x`, `y` coordinates of the points.
frame_resolution_wh (Tuple[int, int]): The frame resolution (width, height)
triggering_anchors (Iterable[sv.Position]): A list of positions specifying
which anchors of the detections bounding box to consider when deciding on
whether the detection fits within the PolygonZone
(default: (sv.Position.BOTTOM_CENTER,)).
current_count (int): The current count of detected objects within the zone
mask (np.ndarray): The 2D bool mask for the polygon zone
frame_resolution_wh (Optional[Tuple[int, int]], optional): DEPRECATED. The frame resolution
(width, height). This parameter is no longer required and will be dropped in version
supervision-0.24.0. The mask resolution is now calculated automatically based on the
polygon coordinates. Defaults to None.
"""
@deprecated_parameter(