Reformatted Code with pre-commit

This commit is contained in:
xenteros 2023-11-16 22:34:52 +01:00
parent c2101db5d2
commit 1267cf7fb0
1 changed files with 1 additions and 3 deletions

View File

@ -170,9 +170,7 @@ class MaskAnnotator(BaseAnnotator):
mask = detections.mask[detection_idx]
colored_mask[mask] = color.as_bgr()
scene = cv2.addWeighted(
colored_mask, self.opacity, scene, 1 - self.opacity, 0
)
scene = cv2.addWeighted(colored_mask, self.opacity, scene, 1 - self.opacity, 0)
return scene.astype(np.uint8)