First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked Mar 5 '17

sabra gravatar image

convert xml to string to use in Filstorage.read func

I want to use below code:

FileStorage fs( "xml_as_text_string", FileStorage::READ | FileStorage::MEMORY); face_cascade.read(fs.root());

but I must first convert xml to string how ? I put " " for xml content and assign it to string but it is completely False.

opencv: 2.4.9 language:c++ sample xml file: haarcascade_frontalface_alt.xml

click to hide/show revision 2
No.2 Revision

convert xml to string to use in Filstorage.read func

I want to use below code:

 FileStorage fs( "xml_as_text_string", FileStorage::READ | FileStorage::MEMORY);
face_cascade.read(fs.root());

FileStorage::MEMORY); face_cascade.read(fs.root());

but I must first convert xml to string how ? I put " " for xml content and assign it to string but it is completely False.

opencv: 2.4.9 language:c++ sample xml file: haarcascade_frontalface_alt.xml

click to hide/show revision 3
No.3 Revision

convert xml to string to use in Filstorage.read func

I want to use below code:

 

FileStorage fs( "xml_as_text_string", FileStorage::READ | FileStorage::MEMORY); face_cascade.read(fs.root());

FileStorage::MEMORY); face_cascade.read(fs.root());

but I must first convert xml to string how ? I put " " for xml content and assign it to string but it is completely False.

opencv: 2.4.9 language:c++ sample xml file: haarcascade_frontalface_alt.xml

click to hide/show revision 4
No.4 Revision

convert xml to string to use in Filstorage.read func

I want to use below code:

FileStorage fs( "xml_as_text_string", FileStorage::READ | FileStorage::MEMORY);
 face_cascade.read(fs.root());

face_cascade.read(fs.root());

but I must first convert xml to string how ? I put " " for xml content and assign it to string but it is completely False.

opencv: 2.4.9 language:c++ sample xml file: haarcascade_frontalface_alt.xml

click to hide/show revision 5
No.5 Revision

convert xml to string to use in Filstorage.read func

I want to use below code:

FileStorage fs( "xml_as_text_string", FileStorage::READ | FileStorage::MEMORY);
 face_cascade.read(fs.root());

but I must first convert xml to string how ? I put " " for xml content and assign it to string but it is completely False.

opencv: 2.4.9 language:c++ sample xml file: haarcascade_frontalface_alt.xml