This is my first python project and a piece of it involves electronic signatures. I've been trying for a while now to find a way to save whatever image is drawn as a file. The problem is it doesn't seem like I can get usable information to even start manipulating in Visual Studio Code.
def signaturefunk ():
st.write("Signature")
canvas_result = st_canvas(
fill_color="#eee",
stroke_width=5,
stroke_color="black",
background_color="",
update_streamlit=False,
height=200,
width=700,
drawing_mode="freedraw",
)
im = canvas_result.image_data
print(im)
I always get back None in the terminal no matter what I draw on the canvas. Maybe canvas_result.image_data just doesn't work how I expect it to. However, if that's the case I don't even know where to go from here.