Changing to OpenCV3 - AUV-IITK/AUVWiki GitHub Wiki
A Transition to the NEXT level
-
- add
#include "opencv2/videoio/videoio.hpp" #include "opencv2/core/core.hpp"in place ofopencv2/core.hpp(as all the header files are in a folder)- in CMake add or replace the previously similar line with
find_package( OpenCV 3.0.0 REQUIRED core highgui imgproc imgcodecs videoio (or any other dependent library))
- add
If this does not work proceed to the next steps
-
- download the script
cv3.shin this repository the scripts folder. - open a terminal in the same directory
sudo cp -r cv3.sh /usr/local/bin/chmod +x cv3.shcd /usr/local/bin/cv3.sh- sit back and relax with a good internet
cd ../includesudo mv opencv opencv2 ~/(or delete them as they are useless)cd ../local/includesudo cp -r opencv opencv2 /usr/include
- download the script