简体   繁体   English

OpenCV(函数cvAlloc中的内存不足)

[英]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. 我正在视频中获取640 x 480的图像。 But when it arrives at about 1600 frames or more I am faced with "insufficient memory (out of memory) in function cvAlloc". 但是,当它到达约1600帧或更多时,我会遇到“函数cvAlloc中的内存不足(内存不足)”。 I released all the images and my RAM (mem storage) won't go over 28 MB. 我释放了所有图像,并且RAM(内存存储)不会超过28 MB。 What should I do ? 我该怎么办 ?

Did you check your RAM usage? 您是否检查了RAM的使用情况?

Have a look at OpenCV Memory Management . 看一下OpenCV内存管理 It lists some common techniques to fix memory leaks. 它列出了一些修复内存泄漏的常用技术。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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