andfanilo/streamlit-drawable-canvas

Polygon not being saved

chinardankhara opened this issue · 1 comments

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

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 ?