Optical Character Reading
Origin
I always get annoyed when someone gives me an image and wants me to type it out because my typing speed is around 70 - 80 WPM. I was like let me upload it.. That works but to an extent and takes time. Also, websites are a certain amount of submissions are allowed.
Objective
Take in a file, originally it will just be one type and spread out to other files, and print out the text that is on that file. It is trivial and code is most likely out there for it. More file types and building into an application are the main focus.
Disclaimer
I do not claim this to be my code as I based it solely on another repository.
Step 1 - Setup
First, it requires the installation of packages.
Step 2 - The code
I feel the code is self-explanatory based on the number of comments and the minimal size of the program.
Image to Text Function
Main Function
Conclusion
A very simple program that is basic like Bubble sort or Binary Tree. It is code that isn't going to change so why try and write everything from scratch when someone else has written a perfectly good program.
Last updated