使用 OpenCV 获得更好的性能? [英] Getting better performance using OpenCV?
本文介绍了使用 OpenCV 获得更好的性能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要实时处理,但是 OpenCV 的内部函数没有提供这个.我正在做手势识别,它几乎完美地工作,除了结果输出非常滞后和缓慢.我知道这不是因为我的算法,而是因为 OpenCV 的处理时间.我能做些什么来加快速度吗?
I need real time processing, but the internal functions of OpenCV are not providing this. I am doing hand gesture recognition, and it works almost perfectly, except for the fact that the resulting output is VERY laggy and slow. I know that this isn't because of my algorithm but the processing times of OpenCV. Is there anything I can do to speed it up?
Ps:我不想使用 IPP 库,所以请不要建议.我需要提高 OpenCV 本身的性能
Ps: I don't want to use the IPP libraries so please don't suggest that. I need increased performance from OpenCV itself
推荐答案
改进图像分析的传统技术:
Traditional techniques for improving image analysis:
- 将图像缩小为单色样本.
- 减少样本范围,例如从 8 位单色到 4 位单色.
- 缩小图像的大小,例如1024x1924 到 64x64.
- 降低帧速率,例如 60fps 到 5fps.
- 执行更高级别的函数以猜测目标区域的位置,例如较低的分辨率,然后对裁剪后的输出执行常规分析,例如在确定手势之前执行图像识别以定位手.
这篇关于使用 OpenCV 获得更好的性能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文