Ask Your Question

Revision history [back]

You should have a bindings folder. To confirm that the bindings will be built, go tobuild/bin/[Release|Debug] and run

opencv_version_win32.exe

In the output look for python3 under To be built: as shown below OpenCV modules:

To be built: aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev datasets dnn dnn_objdetect dnn_superres dpm face features2d flann fuzzy gapi hfs highgui img_hash imgcodecs imgproc intensity_transform line_descriptor mcc ml objdetect optflow phase_unwrapping photo plot python2 python3 quality rapid reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab world xfeatures2d ximgproc xobjdetect xphoto

If it is not there then you haven't built the bindings and you won't be able to call your build from python.

I take it you need CUDA bindings? If not I would just use the pre-built python OpenCV libs.

You should have a bindings folder. To confirm that whether the bindings will be were built, go tobuild/bin/[Release|Debug] and run

opencv_version_win32.exe

In the output look for python3 under To be built: as shown below OpenCV modules:

To be built: aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev datasets dnn dnn_objdetect dnn_superres dpm face features2d flann fuzzy gapi hfs highgui img_hash imgcodecs imgproc intensity_transform line_descriptor mcc ml objdetect optflow phase_unwrapping photo plot python2 python3 quality rapid reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab world xfeatures2d ximgproc xobjdetect xphoto

If it is not there then you haven't built the bindings and you won't be able to call your build from python.

I take it you need CUDA bindings? If not I would just use the pre-built python OpenCV libs.