Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to convert numpy array to cv::Mat

Hi,

We are using OpenCV 4 (latest 4.1.2) with Python 3.6 and latest numpy 1.17 and we would like to convert some numpy arrays to cv::Mat type..

how to do that ? is that possible ?

given I can pass numpy arrays from python to c++ (with boost) I can do that either on python side or in c++ side.. (but my preferrence would be to python side).

Thanks for any info.

Greg.