c++ - How can i release the memory of cvHaarDetectObjects? -


cvseq* objects = cvhaardetectobjects(       &image,       this->cascade,       this->storage,       scale,  // scale : scale 1.3 means next round scan scale 30% bigger.       2,      // neigbors : if objects less 2-1, whole detection invalid.       0,      // flags : valid flag 0 now, means don't check edges.       cvsize(20, 20)  // min_size : minium size of object.     ); 

i'm using opencv object detection, can't find interface release objects' memory.

to release cascade:

cvreleasehaarclassifiercascade( &cascade ); 

to release memstorage:

cvreleasememstorage( &storage ); 

( of reason use c++ api instead , no ? )


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -