Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6404 Discussions

compiling opencv contrib with Intel Computer Vision SDK

KLim4
Beginner
380 Views

Hi,

I would like to compile a few opencv contrib modules (highgui and tracking) with Intel Computer Vision SDK in Linux. Is it do-able? If yes, any suggestion how to kickstart (with cmake or gcc).

 

0 Kudos
1 Reply
Seunghyuk_P_Intel
380 Views

Hi Kim Chuan L,

Yes, you can.

If your CVSDK folder is /opt/intel/computer_vision_sdk,

1, $ source /opt/intel/computer_vision_sdk/bin/setupvars.sh

2. CMakeList.txt sample

cmake_minimum_required(VERSION 3.4)
project (tutorial_1)
set(OPENCV_INCLUDE $ENV{INTEL_CVSDK_DIR}/opencv/include)
set(OPENCV_LIB $ENV{INTEL_CVSDK_DIR}/opencv/lib)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g -O0 -I${OPENCV_INCLUDE} ")
set(ENABLE_EXPORTS false)
link_directories(${OPENCV_LIB})
add_executable(tutorial_1 main.cpp)
target_link_libraries(tutorial_1 gflags_nothreads pthread rt dl opencv_core opencv_video opencv_videoio opencv_imgproc opencv_photo opencv_highgui opencv_imgcodecs inference_engine)

 

This is not complete one but, you will see how to use OpenCV together.

Regards,

Peter. 

0 Kudos
Reply