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

Get coor of polygon #102

Closed lynguyenminh closed 1 year ago

lynguyenminh commented 1 year ago

image I use polygon mode to draw this polygon. How can I get a coordinate (x, y) of 4 points? (I don't want to use top, left, width, and height, I need a polygon instead of a rectangle)