visionscript icon indicating copy to clipboard operation
visionscript copied to clipboard

Save not working

Open atejada opened this issue 2 years ago • 0 comments

Search before asking

  • [X] I have searched the VisionScript issues and found no similar bug report.

What is the issue?

Simple example to detect a person and replace with emoji. Last line "Save" is not working:

Load["./AFI_Blood_Tour.jpg"] Size[] Say[] Detect["person"] Replace["happy-emoji.png"] Show[]
Save["./photo_with_detections.jpg"]

self.state["image_stack"].save(filename) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'list' object has no attribute 'save'

Environment

  • VisionScript: 0.0.6
  • Mac: Ventura 13.5.1
  • Python: 3.11.15

How can we replicate the bug?

Just run the example, it works but doesn't save the file and the terminal display the error

Additional

No response

atejada avatar Sep 02 '23 22:09 atejada