Return to site

Install;; opencl for mac

broken image
broken image

As I didn’t feel like fixing this, you can simply work around it by running sudo mkdir -p /opt/local before installing with the command:īrew install -training-tools -all-languages -opencl -HEAD The only gotcha (as I serendipitously found out) is that there appears to be a bug in the OpenCL build under OS X that will cause it to fail if you don’t have a /opt/local directory for it to include. Here I built off my existing work modifying the Tesseract Homebrew formula to install the Tesseract training tools. I also came across this blog post experimenting with the feature under Linux and Windows, but I wanted to try it on Mac OS X and AWS EC2 GPU instances. For issues with OpenCL-enabled Tesseract on OS X, please see this issue.Īfter coming across these instructions for building Tesseract with OpenCL support, I wanted to experiment with this feature to see if it would enable faster OCR processing. A pull request I submitted to Homebrew to add a -with-opencl option to the tesseract formula has now been accepted, so you should be able to just do brew install -HEAD -with-opencl tesseract.