Ask Your Question

Revision history [back]

Returning cv::Mat from wrapped C++ function in Python

This question must have been asked a million times, yet somehow I do not seem to be able to find an answer more recent than 2014: github.com/spillai/numpy-opencv-converter

I'm having some struggles getting that one to build in my own project on Mac. Now, OpenCV has python bindings itself, accepting and returning cv::Mat as Numpy arrays like a boss.

Is there a more modern way of converting the two variables using boost python bindings?