Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unfortunately it is not really working out. The problem is that there is now way I know to copy a buffer from Memory to the FileStorage.

I got until here.

    unsigned char cascadeBuffer[102400]; /* contains the complete cascade xml 
    <?xml version="1.0"?>
    </opencv_storage> */

int cascadeBufferLength; // the size of the cascade in the buffer

FileStorage fs("cascade.xml", FileStorage::READ|FileStorage::WRITE|FileStorage::MEMORY | FileStorage::FORMAT_XML);

But now what? I tried FileStorage::writeRaw but thats not quite what the name suggests.