You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This script will extract the text from images in a specified directory and store the output in a given .txt file. The .txt file will contain the text contents of the images in order of their presence in the given directory.
5
+
6
+
## Requirements
7
+
8
+
`$ pip install Pillow`
9
+
`$ pip install pytesseract`
10
+
11
+
Download and install the required tesseract.exe file here: https://osdn.net/projects/sfnet_tesseract-ocr-alt/downloads/tesseract-ocr-setup-3.02.02.exe/
12
+
13
+
## Steps To Execution
14
+
- Fork this repo and navigate to Extract Text From Image folder in local folder
15
+
- Edit `image-text.py` with the string for the images directory.
16
+
- Run this code.py `$ python image-text.py`
17
+
- In a short bit you'd have the .txt file with the texts extracted
18
+
- Enjoy and goodluck on your freelancing copytyping jobs! (how the script idea came to be. Really couldn't type out text in TONS of image files lol)
19
+
20
+
## Code Output
21
+
`"IMAGE_TITLE" done` for each image in directory when text extraction is complete for said image
22
+
`Text extract script completed!` - at the end of the script.
0 commit comments