Ask Your Question

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



Does it reproduce with LBP face detector? If not, you should raise a ticket at the 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

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


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

Seen: 228 times

Last updated: Jul 24 '12