andfanilo / streamlit-drawable-canvas

Do you like Quick, Draw? Well what if you could train/predict doodles drawn inside Streamlit? Also draws lines, circles and boxes over background images for annotation.
https://drawable-canvas.streamlit.app/
MIT License
544 stars 83 forks source link

Upload new background to existing canvas #54

Closed PytaichukBohdan closed 3 years ago

PytaichukBohdan commented 3 years ago

I try uploading a new image to the background_image=NEW_IMAGE property while initializing the canvas. The background is changed, but the new height and weight are not. Which makes this canvas unusable.

Deleting this canvas object and creating a new one doesn't help.

Is there any way to do so?

PytaichukBohdan commented 3 years ago

Fixed it :)

I just removed the "key" assignment while initializing

SaiNikhileshReddy commented 2 years ago

@PytaichukBohdan can you provide more info on how you resolved it. I'm having similar issue.