-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Description
System information (version)
- OpenCV => 3.3.0
- Operating System / Platform => Fedora 26 64 Bit
- opencv_contrib
Detailed description
My steps for installing opencv with opencv_contrib:
- I've installed required dependencies.
- I've created 'build' directory inside 'opencv-3.3.0' directory.
- 'cmake' has been successfully configured and generated.
- Got error during 'make'.
Please let me know if I've done anything wrong regarding installation.
Steps to reproduce
mkdir build
cd build
cmake -D WITH_TBB=ON -D WITH_EIGEN=ON ..
cmake -D BUILD_DOCS=ON -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_EXAMPLES=OFF ..
cmake -D WITH_OPENCL=OFF -D WITH_CUDA=OFF -D BUILD_opencv_gpu=OFF -D BUILD_opencv_gpuarithm=OFF -D BUILD_opencv_gpubgsegm=OFF -D BUILD_opencv_gpucodec=OFF -D BUILD_opencv_gpufeatures2d=OFF -D BUILD_opencv_gpufilters=OFF -D BUILD_opencv_gpuimgproc=OFF -D BUILD_opencv_gpulegacy=OFF -D BUILD_opencv_gpuoptflow=OFF -D BUILD_opencv_gpustereo=OFF -D BUILD_opencv_gpuwarping=OFF ..
cmake -D WITH_OPENGL=ON -D WITH_OPENMP=ON -D WITH_GSTREAMER=ON -D WITH_QT=ON ..
cmake -D OPENCV_EXTRA_MODULES_PATH=/home/rumi/cv2/opencv_contrib-master/modules /home/rumi/cv2/opencv-3.3.0/ ..
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
[rumi@localhost build]$ make
[ 0%] Built target ittnotify
[ 8%] Built target libprotobuf
[ 16%] Built target opencv_core
[ 16%] Built target opencv_flann
[ 16%] Built target opencv_hdf
[ 23%] Built target opencv_imgproc
[ 24%] Built target opencv_ml
[ 26%] Built target opencv_objdetect
[ 26%] Built target opencv_phase_unwrapping
[ 28%] Built target opencv_photo
[ 28%] Built target opencv_plot
[ 29%] Built target opencv_reg
[ 30%] Built target opencv_surface_matching
[ 31%] Built target opencv_video
[ 32%] Built target opencv_xphoto
[ 33%] Built target opencv_bgsegm
[ 39%] Built target opencv_dnn
[ 39%] Built target opencv_dnn_modern
[ 40%] Built target opencv_face
[ 40%] Built target opencv_freetype
[ 41%] Built target opencv_fuzzy
[ 42%] Built target opencv_img_hash
[ 44%] Built target opencv_imgcodecs
[ 45%] Built target opencv_shape
[ 46%] Built target opencv_videoio
[ 46%] Built target opencv_xobjdetect
[ 46%] Automatic MOC for target opencv_highgui
[ 46%] Built target opencv_highgui_autogen
[ 47%] Built target opencv_highgui
[ 47%] Built target opencv_waldboost_detector
[ 48%] Built target opencv_superres
[ 49%] Built target opencv_ts
[ 50%] Built target opencv_bioinspired
[ 51%] Built target opencv_dpm
[ 54%] Built target opencv_features2d
[ 55%] Built target opencv_line_descriptor
[ 57%] Built target opencv_saliency
Scanning dependencies of target opencv_text
[ 57%] Building CXX object modules/text/CMakeFiles/opencv_text.dir/src/ocr_holistic.cpp.o
/home/rumi/cv2/opencv_contrib-master/modules/text/src/ocr_holistic.cpp: In member function ‘size_t cv::text::OCRHolisticWordRecognizerImpl::getClassCount()’:
/home/rumi/cv2/opencv_contrib-master/modules/text/src/ocr_holistic.cpp:74:63: error: no matching function for call to ‘cv::dnn::experimental_dnn_v1::Net::getLayerShapes(cv::dnn::experimental_dnn_v1::MatShape&, int&, std::vector<std::vector<int> >&, std::vector<std::vector<int> >&)’
net.getLayerShapes(inputShape, id, inShapes, outShapes);
^
In file included from /home/rumi/cv2/opencv-3.3.0/modules/dnn/include/opencv2/dnn.hpp:62:0,
from /home/rumi/cv2/opencv_contrib-master/modules/text/src/ocr_holistic.cpp:4:
/home/rumi/cv2/opencv-3.3.0/modules/dnn/include/opencv2/dnn/dnn.hpp:505:22: note: candidate: void cv::dnn::experimental_dnn_v1::Net::getLayerShapes(const MatShape&, int, std::vector<std::vector<int> >*, std::vector<std::vector<int> >*) const
CV_WRAP void getLayerShapes(const MatShape& netInputShape,
^~~~~~~~~~~~~~
/home/rumi/cv2/opencv-3.3.0/modules/dnn/include/opencv2/dnn/dnn.hpp:505:22: note: no known conversion for argument 3 from ‘std::vector<std::vector<int> >’ to ‘std::vector<std::vector<int> >*’
/home/rumi/cv2/opencv-3.3.0/modules/dnn/include/opencv2/dnn/dnn.hpp:511:22: note: candidate: void cv::dnn::experimental_dnn_v1::Net::getLayerShapes(const std::vector<std::vector<int> >&, int, std::vector<std::vector<int> >*, std::vector<std::vector<int> >*) const
CV_WRAP void getLayerShapes(const std::vector<MatShape>& netInputShapes,
^~~~~~~~~~~~~~
/home/rumi/cv2/opencv-3.3.0/modules/dnn/include/opencv2/dnn/dnn.hpp:511:22: note: no known conversion for argument 1 from ‘cv::dnn::experimental_dnn_v1::MatShape {aka std::vector<int>}’ to ‘const std::vector<std::vector<int> >&’
make[2]: *** [modules/text/CMakeFiles/opencv_text.dir/build.make:135: modules/text/CMakeFiles/opencv_text.dir/src/ocr_holistic.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3889: modules/text/CMakeFiles/opencv_text.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
[rumi@localhost build]$