fix rgb channel order

This commit is contained in:
James
2024-08-07 09:57:57 +01:00
parent 80549933fc
commit 11466ff261
+1 -1
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 Image.fromarray(colored_mask[:, :, ::-1])