Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Persisting data between Opencv-Python and Opencv-C++

Hello, is there any simple interface which can be used for the persisting data between Opencv-Python and Opencv-C++? That is I want to write some data (metrices) from Opencv-Python and read it later with Opencv-C++ (and vice versa).

One way is to convert numpy arrays to cv::Mat manually which in my opinion is ugly. Also, I did not get any simple solution for doing that in the latest opencv. All the available solution I found dates back to 3 years which uses modules like cv and functions like cv.fromarray which are not available in the latest version (?).

click to hide/show revision 2
retagged

updated 2015-02-16 04:44:41 -0600

berak gravatar image

Persisting data between Opencv-Python and Opencv-C++

Hello, is there any simple interface which can be used for the persisting data between Opencv-Python and Opencv-C++? That is I want to write some data (metrices) from Opencv-Python and read it later with Opencv-C++ (and vice versa).

One way is to convert numpy arrays to cv::Mat manually which in my opinion is ugly. Also, I did not get any simple solution for doing that in the latest opencv. All the available solution I found dates back to 3 years which uses modules like cv and functions like cv.fromarray which are not available in the latest version (?).

Persisting data between Opencv-Python and Opencv-C++

Hello, is there any simple interface which can be used for the persisting data between Opencv-Python and Opencv-C++? That is I want to write some data (metrices) from Opencv-Python and read it later with Opencv-C++ (and vice versa).

One way is to convert numpy arrays to cv::Mat manually which in my opinion is ugly. Also, I did not get any simple solution for doing that in the latest opencv. All the available solution I found dates back to 3 years which uses modules like cv and functions like cv.fromarray which are not available in the latest version (?).