andfanilo / streamlit-drawable-canvas-demo

Streamlit Share demo for Drawable Canvas
https://share.streamlit.io/andfanilo/streamlit-drawable-canvas-demo/master/app.py
49 stars 35 forks source link

Finding x,y of the line. #4

Closed MohamedGAmin closed 2 years ago

MohamedGAmin commented 2 years ago

First, I would like to thank you for this great component. I have a simple question. May I know how to extract the x1,y1,x2 and y2 of a line from canvas_result?

As I will need to know starting point and the ending point of the line.