update return statement
This commit is contained in:
1 parent
11466ff261
commit
fea77d86a7
1 file changed
+1
-1
@@ -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)
|
||||
Reference in new issue
Block a user