Ask Your Question
0

How to free the memory when I use the face detector?

asked 2012-07-12 22:18:14 -0600

lweipku gravatar image

I use the Haar-like face detector in OpenCV. While, when I ran the project, I found a bad memory leak. So, how can I free the memory?

edit retag flag offensive close merge delete

Comments

1

Does it reproduce with LBP face detector? If not, you should raise a ticket at the code.opencv.org. And you should provide a code sample.

Kirill Kornyakov gravatar imageKirill Kornyakov ( 2012-07-13 02:25:58 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-07-24 03:08:50 -0600

Make sure which version do you used. Version 2.3.1 has memory leak problem by VideoCapture::release(). LBP face detector uses about 40 MB memory, haar uses 20 MB more then LBP.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-07-12 22:18:14 -0600

Seen: 442 times

Last updated: Jul 24 '12