Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cv::OutOfMemoryError #86

Closed
williamfzc opened this issue Dec 27, 2019 · 0 comments
Closed

cv::OutOfMemoryError #86

williamfzc opened this issue Dec 27, 2019 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@williamfzc
Copy link
Owner

williamfzc commented Dec 27, 2019

在大部分例程中,默认开启了 预加载 功能用于加速整个视频分析过程。
但从另一方面,预加载是以较高的内存消耗为代价的。

# 开启预加载
video.load_frames()

目前对于下列两种情况是问题高发区:

  • python 32位版本(内存上限4G)
  • 低内存机器

建议:

  • 最简单的办法是 关闭预加载 功能,直接在脚本中将 load_frames 注释掉即可
  • 常规PC最好安装 64位版本的 python
  • 视频应简短,只保留你最需要的部分,也可以减少最后看报告的麻烦

其他原因:

@williamfzc williamfzc added the documentation Improvements or additions to documentation label Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant