fix rgb channel order

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