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
541 stars 83 forks source link

Polygon not being saved #109

Open chinardankhara opened 1 year ago

chinardankhara commented 1 year ago

Hello, I am trying to create an annotation app for personal use that requires oriented boxes. Since the rectangle does not support orientation, I am using the polygon feature on canvas. But the polygon never gets saved. Instead, it keeps adding more points until the cursor moves out of canvas. How do I fix this?

Screenshot 2023-03-09 at 12 04 23 PM
andfanilo commented 1 year ago

Hello, If I understood correctly, on "polygon" mode, double-clicking will remove the latest point and right-clicking will close the polygon, thus effectively finishing your polygon without having to leave the canvas. Is that what you mean by saving ?