File tree Expand file tree Collapse file tree 6 files changed +5
-9
lines changed Expand file tree Collapse file tree 6 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ $ sudo make install
30
30
$ cd <opencv_source_directory>
31
31
$ mkdir build
32
32
$ cd build
33
- $ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=OFF -D WITH_V4L=ON -D WITH_QT=OFF -D WITH_OPENGL=ON -D WITH_VTK=ON -D INSTALL_TESTS=ON -D OPENCV_EXTRA_MODULES_PATH=< opencv_contrib> /modules ..
33
+ $ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_QT=OFF -D WITH_OPENGL=ON -D WITH_VTK=ON -D INSTALL_TESTS=ON -D OPENCV_EXTRA_MODULES_PATH=../../ opencv_contrib/modules ..
34
34
$ make -j4
35
35
$ sudo make install
36
36
```
Original file line number Diff line number Diff line change @@ -6,16 +6,16 @@ find_package(OpenCV REQUIRED)
6
6
set (SOURCES_generator demo_sphereview_data.cpp )
7
7
include_directories (${OpenCV_INCLUDE_DIRS} )
8
8
add_executable (sphereview_test ${SOURCES_generator} )
9
- target_link_libraries (sphereview_test ${OpenCV_LIBS} )
9
+ target_link_libraries (sphereview_test opencv_core opencv_imgproc opencv_highgui opencv_cnn_3dobj opencv_xfeatures2d )
10
10
11
11
set (SOURCES_classifier demo_classify.cpp )
12
12
add_executable (classify_test ${SOURCES_classifier} )
13
- target_link_libraries (classify_test ${OpenCV_LIBS} )
13
+ target_link_libraries (classify_test opencv_core opencv_imgproc opencv_highgui opencv_cnn_3dobj opencv_xfeatures2d )
14
14
15
15
set (SOURCES_modelanalysis demo_model_analysis.cpp )
16
16
add_executable (model_test ${SOURCES_modelanalysis} )
17
- target_link_libraries (model_test ${OpenCV_LIBS} )
17
+ target_link_libraries (model_test opencv_core opencv_imgproc opencv_highgui opencv_cnn_3dobj opencv_xfeatures2d )
18
18
19
19
set (SOURCES_video demo_video.cpp )
20
20
add_executable (video_test ${SOURCES_video} )
21
- target_link_libraries (video_test ${OpenCV_LIBS} )
21
+ target_link_libraries (video_test opencv_core opencv_imgproc opencv_highgui opencv_cnn_3dobj opencv_xfeatures2d )
Original file line number Diff line number Diff line change 37
37
* @brief Feature extraction and classification.
38
38
* @author Yida Wang
39
39
*/
40
- #define HAVE_CAFFE
41
40
#include < opencv2/cnn_3dobj.hpp>
42
41
#include < opencv2/features2d/features2d.hpp>
43
42
#include < iomanip>
Original file line number Diff line number Diff line change 37
37
* @brief Generating training data for CNN with triplet loss.
38
38
* @author Yida Wang
39
39
*/
40
- #define HAVE_CAFFE
41
40
#include < iostream>
42
41
#include " opencv2/imgproc.hpp"
43
42
#include " opencv2/cnn_3dobj.hpp"
Original file line number Diff line number Diff line change 37
37
* @brief Generating training data for CNN with triplet loss.
38
38
* @author Yida Wang
39
39
*/
40
- #define HAVE_CAFFE
41
40
#include < opencv2/cnn_3dobj.hpp>
42
41
#include < opencv2/viz/vizcore.hpp>
43
42
#include < iostream>
Original file line number Diff line number Diff line change 2
2
#include < opencv2/calib3d/calib3d.hpp>
3
3
#include < iostream>
4
4
#include < fstream>
5
- #define HAVE_CAFFE
6
5
#include < opencv2/cnn_3dobj.hpp>
7
6
#include < opencv2/features2d/features2d.hpp>
8
7
#include < iomanip>
You can’t perform that action at this time.
0 commit comments