Memory Leak (I think) When Loading Classifier into cv::gpu::CascadeClassifier_GPU

asked 2013-06-06 20:03:22 -0500

Jackal gravatar image

updated 2013-06-07 05:17:32 -0500

Hi All,

when trying to load a cascade classifier into cv::gpu::CascadeClassifier_GPU my application thread memory is jumping high over 1GB.

Is just in my machine ?

CascadeLoaded = cascade_gpu.load(cascadeName);

I've started to debug the above line and found that inside the file:cascadeclasifier.cpp (Line 626)

stage_mat.upload(cv::Mat(1, (int) (stages.size() * sizeof(Stage)), CV_8UC1, (uchar*)&(stages[0]) ));

The Memory is bloated.

I'm loading this classifier (LBP)

Hope it helps you to help me.

Regards, Jackal.

edit retag flag offensive close merge delete