File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
1481503 . 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
You can’t perform that action at this time.
0 commit comments