Ask Your Question
0

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

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

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 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

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

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
Login/Signup to Answer

Question Tools

Stats

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

Seen: 257 times

Last updated: Jul 24 '12