Ask Your Question

Revision history [back]

What is equivalent of cvCreateMat function in OpenCV2 using python3

I am converting an old piece of code written in c/cpp into python. It uses cvCreateMat function. I believe that cvCreateMat function is not supported in OpenCV2. I dont know how to do it using OpenCV2/numpy. OR all I need is the equivalent of the following line in python.

cv::Mat a = cvCreateMat(3*numberOfMatrices, 6,CV_64FC1);

I have seen the link but I cant get it in my case.