简体   繁体   中英

OpenCV (insufficient memory in function cvAlloc)

I made my simulation but I am faced with a problem. I'm getting images 640 x 480 in a video. But when it arrives at about 1600 frames or more I am faced with "insufficient memory (out of memory) in function cvAlloc". I released all the images and my RAM (mem storage) won't go over 28 MB. What should I do ?

Did you check your RAM usage?

Have a look at OpenCV Memory Management . It lists some common techniques to fix memory leaks.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM