VS11错误中的Tesseract-OCR

时间:2016-04-17 15:04:32

标签: visual-studio-2012 tesseract

我在Visual Studio 2012中使用tesseract-ocr没有任何问题。我在我朋友的电脑上安装了tesseract。但它给出了错误。一切都与我的相同(VS2012配置,tesseract-OCR安装等)

baseapi.h中的错误列表:

Error 1 error C2061: syntax error : identifier 'OcrEngineMode'
Error 2 error C2061: syntax error : identifier 'OcrEngineMode'
Error 3 error C2535: 'int tesseract::TessBaseAPI::Init(const char ,const char )' : member function already defined or declared 
Error 4 error C2535: 'int tesseract::TessBaseAPI::Init(const char ,const char )' : member function already defined or declared 
Error 5 error C2061: syntax error : identifier 'PageSegMode'
Error 6 error C2146: syntax error : missing ';' before identifier 'GetPageSegMode'
Error 7 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Error 9 error C2061: syntax error : identifier 'PageIteratorLevel'
Error 10 error C2061: syntax error : identifier 'PageSegMode'
Error 11 error C2143: syntax error : missing ';' before 'const' 
Error 12 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Error 13 error C2146: syntax error : missing ';' before identifier 'last_oem_requested_'
Error 14 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Error 15 error C3867: 'tesseract::TessBaseAPI::oem': function call missing argument list; use '&tesseract::TessBaseAPI::oem' to create a pointer to member 
Error 16 error C2660: 'tesseract::TessBaseAPI::Init' : function does not take 8 arguments
Error 17 error C2065: 'OEM_DEFAULT' : undeclared identifier
Error 18 error C2065: 'last_oem_requested_' : undeclared identifier 

0 个答案:

没有答案