How can convert PyObject variable to Mat in c++ opencv code

后端 未结 3 670
不思量自难忘°
不思量自难忘° 2021-01-27 08:59

I have a c++ facerecognition code and a python code in opencv. In python code i read frames from a robot and i want to send this fram to my c++ code. I use this link tho call p

3条回答
  •  孤独总比滥情好
    2021-01-27 09:35

    If I remember correctly, there should be a specific function available in opencv for python called pyopencv_to(pyobject, cv::mat, ... ), which also takes strides into the account and can handle both gray and color images.

提交回复
热议问题