Tuesday, July 31, 2012

Read XML in OpenCV 2.1 Python

I'm sure many of you folks mix Python and C++ for your OpenCV needs. As all the libraries are not available for both APIs for OpenCV.

OpenCV cannot read or write images in CV_32F format. One way to overcome it is to store image as matrices (in XML or YAML).

Here, I'm trying to read a XML file (which was generated using FileStorage class in C++ ) in python.

The Python API is still evolving and is not well defined in terms of naming conventions as that of the C++ API.


No comments:

Post a Comment