I am working on a project where I have to display certain variables/counters on a webpage. Rather than using socket.io I want to convert my variable into an image.
By image I mean if the variable was x = 2;
I need 2
to be converted into an image like this:
The number 2 in the form of an image
I have already found a way to send image bit by bit to my html page using flask. If I can convert the variable like this then I could easily display it on my webpage.
If anyone could give any ideas it would be great.
Thanks!