Return PIL image if pil=True (#19146)

Signed-off-by: Mohammed Yasin <32206511+Y-T-G@users.noreply.github.com>
This commit is contained in:
Mohammed Yasin 2025-02-10 07:13:08 +08:00 committed by GitHub
parent 580b4766c5
commit 31e96e20d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -583,7 +583,7 @@ class Results(SimpleClass):
if save: if save:
annotator.save(filename) annotator.save(filename)
return annotator.result() return annotator.im if pil else annotator.result()
def show(self, *args, **kwargs): def show(self, *args, **kwargs):
""" """