python_example icon indicating copy to clipboard operation
python_example copied to clipboard

Example for opencv image processing binding

Open pzoltowski opened this issue 7 years ago • 1 comments

Is there anywhere available example of creating between python with numpy and c++ opencv code? , eg.

cv::Mat process(cv::Mat& in, cv::Mat& out)

pzoltowski avatar Aug 30 '17 21:08 pzoltowski

@pzoltowski I've done this in earlier versions of my eos library: patrikhuber/eos/tree/v0.12.2/python (up to v0.12.2). There are type_caster's there for cv::Mat in the file pybind11_opencv.hpp. However note that I have since moved away from OpenCV's cv::Mat, so you will not find any OpenCV binding code in later versions, and I also do not support them in any way.

patrikhuber avatar Mar 24 '18 10:03 patrikhuber