Update supervision/annotators/core.py
Co-authored-by: Onuralp SEZER <thunderbirdtr@gmail.com>
This commit is contained in:
co-authored by
Onuralp SEZER
parent
a5c833b80f
commit
474c8bc478
@@ -1401,7 +1401,7 @@ class RichLabelAnnotator(_BaseLabelAnnotator):
|
||||
detections: Detections,
|
||||
labels: Optional[List[str]] = None,
|
||||
custom_color_lookup: Optional[np.ndarray] = None,
|
||||
) -> Image.Image:
|
||||
) -> ImageType:
|
||||
assert isinstance(scene, Image.Image)
|
||||
self._validate_labels(labels, detections)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user