Skip to content

Commit 8a25ccc

Browse files
authored
Update README.md
1 parent eed08a9 commit 8a25ccc

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,17 @@ 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`
146+
- macOS (installed via Homebrew):
147+
- Standard installation: `/opt/homebrew/share/tessdata`
148+
- Version-specific installation: `/opt/homebrew/Cellar/tesseract/<version>/share/tessdata/`
147149

148150
3. Set the environment variable TESSDATA_PREFIX
149151

150152
- Windows: `setx TESSDATA_PREFIX "C:/Program Files/Tesseract-OCR/tessdata"`
151153

152154
- Unix systems: `declare -x TESSDATA_PREFIX=/usr/share/tesseract-ocr/5/tessdata`
153155

154-
- Darwin: `export TESSDATA_PREFEX=/opt/homebrew/share/tessdata`
156+
- macOS (installed via Homebrew): `export TESSDATA_PREFIX=$(brew --prefix tesseract)/share/tessdata`
155157

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

0 commit comments

Comments
 (0)