-
Notifications
You must be signed in to change notification settings - Fork 8
Changing to OpenCV3
Shikher Verma edited this page Jun 11, 2016
·
2 revisions
-
- 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.sh
in this repository the scripts folder. - open a terminal in the same directory
sudo cp -r cv3.sh /usr/local/bin/
chmod +x cv3.sh
cd /usr/local/bin/
cv3.sh
- sit back and relax with a good internet
cd ../include
-
sudo mv opencv opencv2 ~/
(or delete them as they are useless) cd ../local/include
sudo cp -r opencv opencv2 /usr/include
- download the script
Moderators: Mayank Mittal, Shikher Verma, Suryansh Agarwal . AUV-IITK