Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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

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

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

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