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:
parent
580b4766c5
commit
31e96e20d3
1 changed files with 1 additions and 1 deletions
|
|
@ -583,7 +583,7 @@ class Results(SimpleClass):
|
|||
if save:
|
||||
annotator.save(filename)
|
||||
|
||||
return annotator.result()
|
||||
return annotator.im if pil else annotator.result()
|
||||
|
||||
def show(self, *args, **kwargs):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue