Ask Your Question

rich.zhang's profile - activity

2016-06-12 13:58:42 -0600 received badge  Student (source)
2016-01-11 08:35:17 -0600 commented question make failed from source code

os :OS X EI Capitan,OpenCV version:3.1.0.Any suggestions?

2016-01-11 00:36:18 -0600 asked a question make failed from source code
 [ 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<Rect>* 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<OCRBeamSearchDecoder::ClassifierCallback> _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<OCRBeamSearchDecoder::ClassifierCallback> _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<OCRBeamSearchDecoder::ClassifierCallback> _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 ...
(more)