我从github (https://github.com/kornelik/anpr )得到了一个很好的自动车牌识别项目。为了运行它,我们需要OpenCV和Tesseract光学字符识别库(https://code.google.com/p/tesseract-ocr/)。它在我的Ubuntu 12.04 32位系统上运行良好。
问题是,在配置OpenCV和Tesseract之后,我在另一个系统(Ubuntu12.04,32位)中设置了相同的工作代码,但在创建项目时产生了以下错误。我正在努力找出问题所在
错误是
g++ -Wall -Werror -O2 -c main.cpp -o main.o
g++ -Wall -Werror -O2 -c recognizer.cpp -o recognizer.o
g++ -Wall -Werror -O2 -c conio.cpp -o conio.o
g++ -Wall -Werror -O2 -c ocr_char.cpp -o ocr_char.o
ocr_char.cpp: In constructor ‘anpr::OCRChar::Impl::Impl(const string&, const string&)’:
ocr_char.cpp:17:9: error: ‘set’ is not a member of ‘std’
ocr_char.cpp:17:18: error: expected primary-expression before ‘char’
ocr_char.cpp:17:18: error: expected ‘;’ before ‘char’
ocr_char.cpp:23:17: error: ‘goodChars’ was not declared in this scope
make: *** [ocr_char.o] Error 1发布于 2014-06-16 23:39:50
你的代码更新了吗?在2013年11月,提交了一个包含set header的提交:https://github.com/kornelik/anpr/commit/2a63fb362e6fc79ac73f172195a893b37287d3bf
您得到的错误消息似乎与此相关。
在Ubuntu 14.04 64位上编译正常。
https://stackoverflow.com/questions/21953342
复制相似问题