Ask Your Question

Eric's profile - activity

2019-07-24 03:18:07 -0600 received badge  Famous Question (source)
2017-07-28 09:01:07 -0600 received badge  Notable Question (source)
2016-07-04 08:47:51 -0600 received badge  Popular Question (source)
2013-01-25 06:26:28 -0600 asked a question Python YAML Filestorage ...

Hi all,

Is there any possibility to have the equivalent python program of the following c++ one ? It loops over the filenodes of a YAML file.

2012-12-10 08:33:16 -0600 asked a question Python Read Map, Seq, Matrix in YAML file

Hi,

As a test I create this basic YML file composed of mapping, sequence and opencv-matrix. The following code:

#load yml file
fileToLoad="myFile.yml"
myLoadedData = cv.Load(fileToLoad)

gives an error:

cv2.error: The node does not represent a user object (unknown type?)

Any help would be appreciate to Load/Read this YAML file into python objects. Thx!

2012-12-10 07:19:06 -0600 answered a question Python Load OpenCV FileStorage

Hi,

As a test I create this basic YAML file http://pastebin.com/YhrecFLr composed of mapping, sequence and opencv-matrix. The following code:

#load yml file
fileToLoad="myFile.yml"
myLoadedData = cv.Load(fileToLoad)

gives an error:

cv2.error: The node does not represent a user object (unknown type?)

Any help would be appreciate to Load/Read this YAML file into python objects. Thx!

2012-08-23 10:10:56 -0600 commented question Python Load OpenCV FileStorage

is there Python bindings for all c++ methods ? FileStorage seems to exist with python but maybe it is not complete ?

2012-08-22 10:08:01 -0600 commented question Python Load OpenCV FileStorage

I add a sample file.

2012-08-22 07:47:32 -0600 received badge  Editor (source)
2012-08-22 07:46:38 -0600 commented question Python Load OpenCV FileStorage

Anyone ? Same problem with XML format.

2012-08-21 17:23:53 -0600 asked a question Python Load OpenCV FileStorage

Hi all, Is there anyway to load using python bindings a YML file containing several nodes of sequence of cvmat ? I succeed to save/load those file with c++ but I cannot make it work with python.

Any help would be appreciate!

Best,

EDIT: I add here a sample YML file which was written with opencv c++ interface, using cv::FileStorage. http://pastebin.com/YhrecFLr

With opencv python, the documentation says: Use cv.Load(filename, memstorage=None, str=None)

But I cannot make it work, it always throw "cv2.error: The node does not represent a user object"