How to upgrade to Tesseract 4.0 with C++ in Visual Studio.

482 views
Skip to first unread message

Chris

unread,
Jun 21, 2018, 11:50:14 PM6/21/18
to tesseract-ocr
Following these steps: https://github.com/tesseract-ocr/tesseract/wiki/Compiling#windows on the official projects "Compiling page" I was successfully able to get tesseract 3.05.01 and other required packages installed to start using #include <tesseract/baseapi.h> in visual studio. However, tesseract 3.05.01 isn't accurate enough for my project's needs. I'm hoping to instead uninstall 3.05.01 and start using 4.0. However, I'm not sure how to do that. How do I easily replace 3.05.01 with 4.0 using vcpkg?



Here are all of the packages that were installed when I did vcpkg install tesseract:x64-windows command the other day:
enter image description here

Stephen Lambie

unread,
Jun 22, 2018, 5:12:11 PM6/22/18
to tesseract-ocr
I don't think you'll see 4.0 in vcpkg yet as it's still not stable. After seeing this post I took another look at the github page, as I am interested in getting better results with LSTM, and followed the master branch developer build steps here: https://github.com/tesseract-ocr/tesseract/wiki/Compiling#develop-tesseract

After installing cppan and cmake and following the steps I was able to build from the generated solution file and get a tesseract dll out with no problems. I haven't tried building and linking with it yet.

Joe

unread,
Jun 23, 2018, 2:53:02 AM6/23/18
to tesseract-ocr
Add the --head flag to the command

vcpkg install tesseract:x64-windows --head

Reply all
Reply to author
Forward
0 new messages