Compilation fails for text module in OpenCV [closed]

asked 2016-04-08 15:25:44 -0500

Indira gravatar image

updated 2018-08-31 10:14:17 -0500

i found that there is a module for text detection implemented by openCV. https://github.com/Itseez/opencv_cont... I'm trying to compile this module with opencv 2.4.1. all the modules are compiling except the text module. I'm new to cpp .please let me know if i'm missing anything while compiling.

I getting so many errors with this while compiling. Following are few of the errors. ......\modules\text\src\erfilter.cpp(64): error C2039: 'ml' : is not a member of 'cv' 19>......\modules\text\src\erfilter.cpp(64): error C2871: 'ml' : a namespace with this name does not exist 19>......\modules\text\src\erfilter.cpp(66): error C2039: 'ml' : is not a member of 'cv' 19>......\modules\text\src\erfilter.cpp(66): error C2871: 'ml' : a namespace with this name does not exist

\modules\text\src\erfilter.cpp(1031): error C2653: 'Error' : is not a class or namespace name 19>......\modules\text\src\erfilter.cpp(1031): error C2065: 'StsBadArg' : undeclared identifier 19>......\modules\text\src\erfilter.cpp(1035): error C2653: 'Error' : is not a class or namespace name 19>......\modules\text\src\erfilter.cpp(1035): error C2065: 'StsBadArg' : undeclared identifier 19>......\modules\text\src\erfilter.cpp(1046): error C2653: 'DTrees' : is not a class or namespace name 19>......\modules\text\src\erfilter.cpp(1046): error C2065: 'PREDICT_SUM' : undeclared identifier 19>......\modules\text\src\erfilter.cpp(1046): error C2039: 'RAW_OUTPUT' : is not a member of 'CvStatModel'

odules\text\src\erfilter.cpp(3215): error C2665: 'cv::abs' : none of the 2 overloads could convert all the argument types 19> D:\CV-ALL\opencv2-dup\opencv\modules\core\include\opencv2/core/mat.hpp(1410): could be 'cv::MatExpr cv::abs(const cv::Mat &)' 19> D:\CV-ALL\opencv2-dup\opencv\modules\core\include\opencv2/core/mat.hpp(1411): or 'cv::MatExpr cv::abs(const cv::MatExpr &)' 19> while trying to match the argument list '(float)'

modules\text\src\ocr_beamsearch_decoder.cpp(57): error C2039: 'ml' : is not a member of 'cv' 19>......\modules\text\src\ocr_beamsearch_decoder.cpp(57): error C2871: 'ml' : a namespace with this name does not exist 19>......\modules\text\src\ocr_beamsearch_decoder.cpp(565): error C2653: 'Error' : is not a class or namespace name 19>......\modules\text\src\ocr_beamsearch_decoder.cpp(565): error C2065: 'StsBadArg' : undeclared identifier 19>......\modules\text\src\ocr_beamsearch_decoder.cpp(692): error C2653: 'Error' : is not a class or namespace name 19>......\modules\text\src\ocr_beamsearch_decoder.cpp(692): error C2065: 'StsOutOfRange' : undeclared identifier 19> ocr_hmm_decoder.cpp

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Indira
close date 2016-04-11 14:07:49.204036

Comments

you will need opencv 3 master (currently 3.1) to build with opencv_contrib

berak gravatar imageberak ( 2016-04-09 00:48:27 -0500 )edit