OpenCV 多核支持 [英] OpenCV Multi Core Support
本文介绍了OpenCV 多核支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道 OpenCV 库是否有多核支持.我正在试验 Haar 级联,它在具有四个内核的 Raspberry 2 上非常慢,但我的应用程序目前仅在一个内核上运行.
I was wondering if there is multi core support for the OpenCV library. I am experimenting with Haar cascading and it's pretty slow on my Raspberry 2 which would have four cores, but my application is currently running only on a single one.
有什么想法吗?
推荐答案
CascadedDetect
具有多核支持.
使用 WITH_TBB
或 WITH_OPENMP
(或 OpenCV 支持的任何其他线程框架)标志重新编译 OpenCV 以启用它.
Recompile OpenCV with the WITH_TBB
or WITH_OPENMP
(or any other threading framework supported by OpenCV) flag on to enable it.
这篇关于OpenCV 多核支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文