liuliu / ccv

C-based/Cached/Core Computer Vision Library, A Modern Computer Vision Library
http://libccv.org
Other
7.08k stars 1.71k forks source link

Memory leak in scd_detect #135

Open qeqlangzi opened 9 years ago

qeqlangzi commented 9 years ago

The minSize in cascade file(face.sqlite3) is 48 X 48, I set parameter minSize to 24 X 24, the testing image is 1280 X 720, then a serious memory leak happens while detecting. I got trouble in the first line of makefile, I deleted the "include config.mk" before compiling. Is this caused the leak? Can anyone help me? thank you

qeqlangzi commented 9 years ago

I've solved the compilation issue. However, memory leak phenomenon still exists if size in classifier is larger than we set. It may be a bug in source code?

liuliu commented 9 years ago

Hey, how you determined there is a memory leak? I've set the params.size = ccv_size(24, 24) and compiled scddetect.c, ran valgrind against the binary and it reports no memory leak.

DemonElite commented 8 years ago

solved?I got same problem,How do you solve this problem @qeqlangzi