Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

make failed from source code

$
0
0
[ 63%] Building CXX object modules/text/CMakeFiles/opencv_text.dir/src/ocr_beamsearch_decoder.cpp.o In file included from /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:43: In file included from /Users/zhanhysng/opencv_contrib/modules/text/src/precomp.hpp:51: In file included from /usr/local/include/tesseract/baseapi.h:36: In file included from /usr/local/include/tesseract/tesscallback.h:22: /usr/local/include/tesseract/host.h:104:6: warning: '_MSC_VER' is not defined, evaluates to 0 [-Wundef] #if (_MSC_VER >= 1200) //%%% vkr for VC 6.0 ^ In file included from /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:43: In file included from /Users/zhanhysng/opencv_contrib/modules/text/src/precomp.hpp:51: /usr/local/include/tesseract/baseapi.h:728:14: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] Tesseract* const tesseract() const { ^~~~~~ /usr/local/include/tesseract/baseapi.h:732:17: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] OcrEngineMode const oem() const { ^~~~~~ /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:61:6: error: use of undeclared identifier 'OCRBeamSearchDecoder' void OCRBeamSearchDecoder::run(Mat& image, string& output_text, vector* c... ^ /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:75:6: error: use of undeclared identifier 'OCRBeamSearchDecoder' void OCRBeamSearchDecoder::run(Mat& image, Mat& mask, string& output_text, vect... ^ /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:91:16: error: use of undeclared identifier 'OCRBeamSearchDecoder' CV_WRAP String OCRBeamSearchDecoder::run(InputArray image, int min_confidence, ... ^ /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:110:16: error: use of undeclared identifier 'OCRBeamSearchDecoder' CV_WRAP String OCRBeamSearchDecoder::run(InputArray image, InputArray mask, in... ^ /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:131:6: error: use of undeclared identifier 'OCRBeamSearchDecoder' void OCRBeamSearchDecoder::ClassifierCallback::eval( InputArray image, vector< ... ^ /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:158:41: error: unknown class name 'OCRBeamSearchDecoder'; did you mean 'OCRBeamSearchDecoderImpl'? class OCRBeamSearchDecoderImpl : public OCRBeamSearchDecoder ^~~~~~~~~~~~~~~~~~~~ OCRBeamSearchDecoderImpl /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:158:7: note: 'OCRBeamSearchDecoderImpl' declared here class OCRBeamSearchDecoderImpl : public OCRBeamSearchDecoder ^ /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:158:41: error: base class has incomplete type class OCRBeamSearchDecoderImpl : public OCRBeamSearchDecoder ~~~~~~~^~~~~~~~~~~~~~~~~~~~ /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:158:7: note: definition of 'cv::text::OCRBeamSearchDecoderImpl' is not complete until the closing '}' class OCRBeamSearchDecoderImpl : public OCRBeamSearchDecoder ^ /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:162:35: error: use of undeclared identifier 'OCRBeamSearchDecoder'; did you mean 'OCRBeamSearchDecoderImpl'? OCRBeamSearchDecoderImpl( Ptr _cl... ^~~~~~~~~~~~~~~~~~~~ OCRBeamSearchDecoderImpl /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:158:7: note: 'OCRBeamSearchDecoderImpl' declared here class OCRBeamSearchDecoderImpl : public OCRBeamSearchDecoder ^ /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:162:57: error: no member named 'ClassifierCallback' in 'cv::text::OCRBeamSearchDecoderImpl' OCRBeamSearchDecoderImpl( Ptr _cl... ~~~~~~~~~~~~~~~~~~~~~~^ /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:162:57: error: no member named 'ClassifierCallback' in 'cv::text::OCRBeamSearchDecoderImpl' OCRBeamSearchDecoderImpl( Ptr _cl... ~~~~~~~~~~~~~~~~~~~~~~^ /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:169:9: error: use of undeclared identifier 'classifier'; did you mean '_classifier'? classifier = _classifier; ^~~~~~~~~~ _classifier /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:162:77: note: '_classifier' declared here OCRBeamSearchDecoderImpl( Ptr _cl... ^ /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:170:21: error: use of undeclared identifier 'classifier' step_size = classifier->getStepSize(); ^ /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:171:21: error: use of undeclared identifier 'classifier' win_size = classifier->getWindowSize(); ^ /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:172:9: error: use of undeclared identifier 'emission_p' emission_p = emission_probabilities_table.getMat(); ^ /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:173:9: error: use of undeclared identifier 'vocabulary'; did you mean '_vocabulary'? vocabulary = _vocabulary; ^~~~~~~~~~ _vocabulary /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:163:45: note: '_vocabulary' declared here const string& _vocabulary, ^ /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:173:20: error: no viable overloaded '=' vocabulary = _vocabulary; ~~~~~~~~~~ ^ ~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:1363:19: note: candidate function not viable: 'this' argument has type 'const string' (aka 'const basic_string, allocator>'), but method is not marked const basic_string& operator=(const basic_string& __str); ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:1370:45: note: candidate function not viable: 'this' argument has type 'const string' (aka 'const basic_string, allocator>'), but method is not marked const _LIBCPP_INLINE_VISIBILITY basic_string& operator=(const value_type* __s) {r... ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:1371:19: note: candidate function not viable: 'this' argument has type 'const string' (aka 'const basic_string, allocator>'), but method is not marked const basic_string& operator=(value_type __c); ^ /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:174:9: error: use of undeclared identifier 'mode'; did you mean '_mode'? mode = _mode; ^~~~ _mode /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:166:44: note: '_mode' declared here decoder_mode _mode, ^ /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:175:9: error: use of undeclared identifier 'beam_size'; did you mean '_beam_size'? beam_size = _beam_size; ^~~~~~~~~ _beam_size /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:167:35: note: '_beam_size' declared here int _beam_size) ^ /Users/zhanhysng/opencv_contrib/modules/text/src/ocr_beamsearch_decoder.cpp:176:56: error: use of undeclared identifier 'transition_p' transition_probabilities_table.getMat().copyTo(transition_p); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 3 warnings and 20 errors generated. make[2]: *** [modules/text/CMakeFiles/opencv_text.dir/src/ocr_beamsearch_decoder.cpp.o] Error 1 make[1]: *** [modules/text/CMakeFiles/opencv_text.dir/all] Error 2 make: *** [all] Error 2 Does any body know how to solve this problem?Thanks

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>