that’s the whole program, except for the cv2 import? nothing more? okay, that would be a valid program to demonstrate a leak.
can you record memory usage of this process and plot it over time, until the system crashes, programs are killed due to lack of free memory, or a significant amount of memory is allocated?