Open m22rdy opened 5 years ago
When installing on Ubuntu I get the following message and cannot get it to compile:
In member function ‘alpr::AlprFullDetails alpr::AlprImpl::recognizeFullDetails(cv::Mat, std::vector<cv::Rect_ >)’: /home/exell/openalpr/src/openalpr/alpr_impl.cpp:118:31: error: ‘CV_BGR2GRAY’ was not declared in this scope cvtColor( img, grayImg, CV_BGR2GRAY ); ^~~ openalpr/CMakeFiles/openalpr.dir/build.make:86: recipe for target 'openalpr/CMakeFiles/openalpr.dir/alpr_impl.cpp.o' failed make[2]: [openalpr/CMakeFiles/openalpr.dir/alpr_impl.cpp.o] Error 1 CMakeFiles/Makefile2:623: recipe for target 'openalpr/CMakeFiles/openalpr.dir/all' failed make[1]: [openalpr/CMakeFiles/openalpr.dir/all] Error 2 Makefile:151: recipe for target 'all' failed make: *** [all] Error 2
You are using OpenCV version 4. ALPR works only on versions before 4 :) Remove this, and install version 3.5
hi, any hint on how to install opencv 3 on ubuntu 20? thanks!
When installing on Ubuntu I get the following message and cannot get it to compile:
In member function ‘alpr::AlprFullDetails alpr::AlprImpl::recognizeFullDetails(cv::Mat, std::vector<cv::Rect_ >)’:
/home/exell/openalpr/src/openalpr/alpr_impl.cpp:118:31: error: ‘CV_BGR2GRAY’ was not declared in this scope
cvtColor( img, grayImg, CV_BGR2GRAY );
^
~~openalpr/CMakeFiles/openalpr.dir/build.make:86: recipe for target 'openalpr/CMakeFiles/openalpr.dir/alpr_impl.cpp.o' failed make[2]: [openalpr/CMakeFiles/openalpr.dir/alpr_impl.cpp.o] Error 1 CMakeFiles/Makefile2:623: recipe for target 'openalpr/CMakeFiles/openalpr.dir/all' failed make[1]: [openalpr/CMakeFiles/openalpr.dir/all] Error 2 Makefile:151: recipe for target 'all' failed make: *** [all] Error 2