try this code in the console: brew info tesseract This must return some info, one these infos is the path where your tesseract is installed copy it and execute this code on your console: export TESSDATA_PREFIX=[the path you just copied]
try to execute your code again, if it works you can past this code on you .bash_profile or use it in every new terminal you open I made an step by step to build and use tesseract 4.0 on my mac you can see it here <https://github.com/tesseract-ocr/tesseract/issues/1453>. Obs.: Read everything before doing it -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-ocr+unsubscr...@googlegroups.com. To post to this group, send email to tesseract-ocr@googlegroups.com. Visit this group at https://groups.google.com/group/tesseract-ocr. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/c27f5bb6-233c-479e-893a-0e49407b3acd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.