Skip to content

Commit eed08a9

Browse files
add homebrew installation path + fix linux prefix setting
Signed-off-by: greg pereira <grpereir@redhat.com>
1 parent e2416bf commit eed08a9

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,15 @@ So for a working OCR functionality, make sure to complete this checklist:
143143

144144
- Unix systems: `/usr/share/tesseract-ocr/5/tessdata`
145145

146+
- Darwin (installed via homebrew): `/opt/homebrew/share/tessdata`
147+
146148
3. Set the environment variable TESSDATA_PREFIX
147149

148150
- Windows: `setx TESSDATA_PREFIX "C:/Program Files/Tesseract-OCR/tessdata"`
149151

150-
- Unix systems: `declare -x TESSDATA_PREFIX= /usr/share/tesseract-ocr/5/tessdata`
152+
- Unix systems: `declare -x TESSDATA_PREFIX=/usr/share/tesseract-ocr/5/tessdata`
153+
154+
- Darwin: `export TESSDATA_PREFEX=/opt/homebrew/share/tessdata`
151155

152156
**Note:** _On Windows systems, this must happen outside Python – before starting your script. Just manipulating os.environ will not work!_
153157

0 commit comments

Comments
 (0)