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
Post a Comment