Ask Your Question

talam's profile - activity

2017-04-21 16:09:21 -0600 commented question OpenCv with contrib

thank you you were really helpful

2017-04-21 15:52:54 -0600 commented question OpenCv with contrib

can you please explain why cant i use the openvision libraries ? is it because there's no opencv2/contrib/contrib.hpp anymore in the opencv 3.2 version?

2017-04-21 15:32:12 -0600 commented question OpenCv with contrib

OpenCV modules:

    --     To be built:                 core flann imgproc ml objdetect phase_unwrapping photo plot reg surface_matching video xphoto bgsegm dnn face fuzzy imgcodecs shape videoio xobjdetect highgui superres ts bioinspired dpm features2d line_descriptor saliency text calib3d ccalib datasets rgbd stereo structured_light tracking videostab xfeatures2d ximgproc aruco java optflow stitching matlab

--     Disabled:                    world contrib_world
--     Disabled by dependency:      -
--     Unavailable:                 cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev python2 python3 viz cnn_3dobj cvv dnn_modern freetype hdf sfm matlab
2017-04-21 14:34:37 -0600 commented question OpenCv with contrib

where do i find it ?

2017-04-21 14:12:12 -0600 commented question OpenCv with contrib

cmake_minimum_required(VERSION 3.6)

project(Testextra)
find_package(OpenCV REQUIRED)


set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

set(SOURCE_FILES main.cpp)
add_executable(Testextra ${SOURCE_FILES})

include_directories(${OpenCV_INCLUDE_DIRS})
target_link_libraries(Testextra ${OpenCV_LIBS})

the error it gives is

In file included from /Users/me/ClionProjects/Testextra/adaptiveskindetector.hpp:4:
/Users/me/ClionProjects/Testextra/OpenCVCommon.hpp:38:10: fatal error: 'opencv2/contrib/contrib.hpp' file not found

#include "opencv2/contrib/contrib.hpp"
2017-04-21 13:54:24 -0600 asked a question OpenCv with contrib

i followed a tutorial by ZHAJOR in building opencv with the extra modules i couldnt post the link so the tutorial is titled INSTALL OPENCV AND MAKE A TEST PROJECT WITH CLION i should also mention that i did build it with homebrew too i got no errors using the face recognizer in the extra modules

#include <opencv2/face.hpp>
.
.
cv::Ptr <cv::face::FaceRecognizer> model = cv::face::createLBPHFaceRecognizer();

, but whenever i #include opencv2/contrib/contrib.hpp i got a fatal error im using c++ with opencv 3.2