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
576 stars 88 forks source link

Feature/Query on stop deleting #89

Open hafiidz opened 2 years ago

hafiidz commented 2 years ago

Hi, first of all, thank you for the great library

Use case

I want to use the canvas rect (initiated via initial drawing) object as data info for cropping application, within transform mode. I am however having a problem with UX when user mistakenly delete the box by double click during dragging action.

Options?

Is there anyway I can:

in the same topic, is there a way to manually inject the shape into the object besides initial drawing?

I know there seems to be multiple questions, but there are all for this single use case. Either one will do.

Research done so far