Ask Your Question

Revision history [back]

Have you tried dereferencing the images?

image = None

Or use the del keyword

del image

This might not free memory being held by opencv, but it's a good first try.