Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/opencv/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
基于OpenCV的车牌识别_Opencv_G++_Ubuntu 12.04_Ocr_Tesseract - Fatal编程技术网

基于OpenCV的车牌识别

基于OpenCV的车牌识别,opencv,g++,ubuntu-12.04,ocr,tesseract,Opencv,G++,Ubuntu 12.04,Ocr,Tesseract,我从github()获得了一个很好的自动车牌识别项目。为了运行这个程序,我们需要OpenCV和Tesseract光学字符识别库()。它在我的Ubuntu 12.04 32位系统中运行良好 问题是,当我在配置OpenCV和Tesseract后在另一个系统(Ubuntu 12.04,32位)中设置相同的工作代码时,在创建项目时会产生以下错误 错误是 g++ -Wall -Werror -O2 -c main.cpp -o main.o g++ -Wall -Werror -O2 -c recogni

我从github()获得了一个很好的自动车牌识别项目。为了运行这个程序,我们需要OpenCV和Tesseract光学字符识别库()。它在我的Ubuntu 12.04 32位系统中运行良好

问题是,当我在配置OpenCV和Tesseract后在另一个系统(Ubuntu 12.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

你的代码更新了吗?2013年11月,提交了一份包含集合头的文件:

您收到的错误消息似乎与此相关


在Ubuntu 14.04 64位上编译正常。

也许一些代码会有帮助?因为这似乎是一个语法错误。例如,缺少分号..否。。我一遍又一遍地检查。。它在另一个系统中运行良好