about ocr - tesseract documentation on OpenCv 3.0.0 [closed]
Hi guys, I'm still learning OpenCv, excuse me for this question. I have read on documentation (cv::text::OCRTesseract Class Reference), "Notice that it is compiled only when tesseract-ocr is correctly installed". And in the demos seems that ocr is integrated with openCv:
#include "opencv2/text.hpp"
using namespace cv::text;
Has someone a useful link for to install tesseract correctly in OpenCv 3? Thanks for yours time. Maurizio
In Linux, all you need is to install Tesseract library development package (
sudo apt-get install libtesseract-dev
in Debian or Ubuntu) and build OpenCV with text module (from contrib repository).Thanks for your answer mshabunin, I forgot to say that I work on windows, unfortunately, and I use Visual Studio 2013 express. Sorry for my forgetfulness. M
Maybe this link can help: http://emop.tamu.edu/Installing-Tesse...
Hi mshabunin, thanks a lot, for your link, I managed to build correctly, and now I have lib_debug, lib_realease, DLL_debug and DLL_release, now how I make a text module? Thanks for your kindness. Maurizio
You need to build OpenCV from sources (see "Building the library" part of the tutorial).
Make sure that:
OPENCV_EXTRA_MODULES_PATH
variable (command line or GUI)-- Tesseract: YES
lines-- OpenCV modules:
-- To be built: <some modules> text <more modules>
Thanks a lot mshabunin!! I'm going to try this weekend. You are very nice.
Hi mshabunin, I don't understand which path I have to put in the OPENCV_EXTRA_MODULES_PATH. My Tesseract dir is like this:
Path to opencv_contrib/modules: clone it from here https://github.com/Itseez/opencv_contrib
II have provided the path via
OPENCV_EXTRA_MODULES_PATH
, but In cmake output I do not find-- Tesseract: YES
and there isn't text module.. This is a part of my cmake output:The contrib repository was not found, check cmake output for warnings/errors.