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.

Using OpenVINO supplied OpenCV with python

Jitendra_S_Intel
Employee
652 Views

What's the right way to build OpenCV python modules for OpenCV that comes with OpenVINO? 

0 Kudos
2 Replies
Steven_L_
Beginner
652 Views

We have the same requirement to build python (cv2.so) and opencv-contrib with optimized OpenCV support, too.

Thanks.

 

0 Kudos
Vadim_P_Intel1
Employee
652 Views

The upcoming OpenVINO 2018.R2 (should be out really soon) will include OpenCV Python bindings.

As a possible temporary workaround (which is not guaranteed to work), you can take OpenCV 3.4.1-cvsdk from github (https://github.com/opencv/opencv/tree/3.4.1-cvsdk), build the Python bindings (use MSVC 2015 on Windows and the stock GCC on Linux); make sure that you passed BUILD_SHARED_LIBS=ON, BUILD_opencv_world=ON, CMAKE_SKIP_RPATH=ON. Do not run "make install"! Then take the generated cv2.pyd or cv2.so and put it somewhere where Python can find it. Hopefully, it can successfully load and use the OpenVINO libraries (you can check it with ldd on Linux)

 

 

0 Kudos
Reply