Godot Version
4.4.1
Question
For my current project, I need to be able to have the player draw on the screen using any method. I have seen several ways to do this and have been able to implement them fine. This is designed for touchscreens so I cannot use keyboard input.
Next, I need to convert the writing the user drew into plain text, to store in a label, for example, or a string variable. I have no idea how to do this. I have seen some text from image extraction online, but never in Godot. Any help in how to do this would be very appreciated.
Image to text is a fairly tough problem, it may be best to use an external library as part of a GDExtension. This problem may be descrbied as Optical Character Recognition (OCR), I don’t see any Godot libraries/addons specifically for this, though maybe OpenCV is up to the task.
Hm I see, thank you for looking. If I have to export the image of the writing to an external script, do you know how I could do that?
Yes if you have an Image
you can use my_image.save_png("user://filepath.png")
I’m not sure what your usage model is, but a pop-up keyboard on the phone might save you a lot of headaches. OCR (Optical Character Recognition) is a very intensive process and I imagine would bloat your program significantly on a phone.