fix rgb channel order

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