Tesseract: error compiling text module in opencv

Created on 20 Aug 2017  Â·  3Comments  Â·  Source: tesseract-ocr/tesseract

Hi,
I have compiled tesseract 4.00.0 alpha using vs 2015 and now I want to compile text module in opencv I have got an error at :

at line 164 of tesseract/unichar.h error 3646 'UTF32ToUtf8 'string' : unknown override specifier

Another user got this message
tesseract/unichar.h:164:10: error: ‘string’ does not name a type static string UTF32ToUTF8(const std::vector& str32);

If I replace line

static string UTF32ToUTF8(const std::vector& str32);

with

static std::string UTF32ToUTF8(const std::vector& str32);

problem is solved for vs2015.

Is it an opencv problem or a tesseract problem ?

Most helpful comment

please read other issues (also closed) before writing new issue.

All 3 comments

please read other issues (also closed) before writing new issue.

@zdenop my mistake : not to read closed issue. thanks you very much

Was this page helpful?
0 / 5 - 0 ratings