Help regarding creating a small canvas widget in my GUI

I have created a digit recognition model based on the MNIST data set, and I am also working on a GUI for the same using Streamlit. I was wondering whether there is any method which could enable me to add a small canvas/sketch-pad type widget in my GUI wherein I would be able to write digits and then feed that as an input to my classifier. If there is any such method, I must have missed it, and hence am here asking for a help.Could someone please guide me through this? Thank you!

Hi @YogeshPandey, welcome to the forum

Have a look at this Streamlit component - drawable canvas :wink: the output of the drawing is a 4D (RGBA) numpy array which you should be able to convert to your input data format.


1 Like