update return statement

This commit is contained in:
James 2024-08-07 11:17:35 +01:00
parent 11466ff261
commit fea77d86a7
1 changed files with 1 additions and 1 deletions

View File

@ -2339,4 +2339,4 @@ class BackgroundColorAnnotator(BaseAnnotator):
for mask in detections.mask:
colored_mask[mask] = scene[mask]
return Image.fromarray(colored_mask[:, :, ::-1])
return np.copyto(scene, colored_mask)