Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
88 Views

Using OpenVINO supplied OpenCV with python

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

0 Kudos
2 Replies
Highlighted
Beginner
88 Views

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

Thanks.

 

0 Kudos
Highlighted
Employee
88 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