OpenCV(函数cvAlloc中的内存不足) [英] OpenCV (insufficient memory in function cvAlloc)

查看:368
本文介绍了OpenCV(函数cvAlloc中的内存不足)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我进行了模拟,但是遇到了问题.我正在视频中获得640 x 480的图像.但是,当它到达约1600帧或更多时,我会遇到函数cvAlloc中的内存不足(内存不足)".我释放了所有图像,而我的RAM(内存存储)不会超过28 MB.我该怎么办?

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 ?

推荐答案

您是否检查过RAM的使用情况?

Did you check your RAM usage?

请查看 OpenCV内存管理.它列出了一些修复内存泄漏的常用技术.

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

这篇关于OpenCV(函数cvAlloc中的内存不足)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆