What is the easiest way to convert ndarray into cv::Mat?

前端 未结 5 1561
悲&欢浪女
悲&欢浪女 2020-12-05 12:31

I\'m trying to create Python/Cython wrapper for C++ library that uses cv::Mat class from OpenCV. In official Python wrapper all functions take

5条回答
  •  粉色の甜心
    2020-12-05 12:56

    I guess you can directly use or take some logic from the converter from the official python wrapper. There isn't much documentation for this module, but maybe the output of the wrapper generator is helpful to understand how to use it.

提交回复
热议问题