How to code image2text 1.00 release
👋 êµ¬êµ¬ì ˆì ˆ
Hows it going?
Check out my repository here!
git repo
: https://github.com/jinlee487/image2text
image2text
custom image transcriber 1.00
👋 Introduction
Hello World!
I created a GUI of a image text transcriber.
Please message me with any feedback, I am happy talk :)
📑 How to Install and Run
- Download the image2text zip file from the lastest published releases.
- After you first download the zip folder, unzip the folder in your location of choice.
- Then create a quick a shortcut of the image2text.exe file for access.
- Navigate to https://github.com/UB-Mannheim/tesseract/wiki and download and install the Tesseract OCR executable. make sure to download the file at the following location: C:\Program Files\Tesseract-OCR\tesseract.
- Make sure to choose a file download destination before you start downloading files.
- Start downloading
📑 Things to Note
…
📑 References
pytesseract
: https://towardsdatascience.com/how-to-extract-text-from-images-with-python-db9b87fe432b📑 Release Notes
1.00
- created a GUI
- transcribes texts into notepad
- only compatable with Windows
try:
pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract'
except Exception as e:
messagebox.showwarning("Warning", str(e) + "\nFailed to locate pytesseract ")
return
try:
new_file = os.path.join(destination.strip(),self.temporaryFileNameGenerator()+".txt")
file = open(new_file, "w")
file.write(pytesseract.image_to_string(image_path))
file.close()
except Exception as e:
messagebox.showwarning("Warning", str(e) + "\nFailed to write text file")
return
Leave a comment