简体   繁体   English

对象跟踪OpenCV GPU / CUDA

[英]Object Tracking OpenCV GPU / CUDA

I'm trying to track objects very fast using my gpu. 我正在尝试使用我的GPU快速跟踪对象。 I've already done this one the CPU by 我已经通过CPU完成了这一步

  1. background Subtraction 背景减法

  2. contour Finding 轮廓寻找

  3. Meanshift 均值漂移

But I cannot find anything in the OpenCV CUDA-Modul equal to the contour Finding algorithm. 但是我无法在OpenCV CUDA-Modul中找到与轮廓查找算法相同的任何东西。 Background Subtraction works already very fast. 背景扣除已经非常快了。 Is there another way for object tracking using the GPU in OpenCV, CUDA Module? 还有使用OpenCV CUDA模块中的GPU进行对象跟踪的另一种方法吗?

You are right, there is no contour-finding algorithm in the CUDA module of OpenCV -because this algorithm is hard to optimize for the GPU. 没错,OpenCV的CUDA模块中没有轮廓查找算法-因为该算法很难针对GPU进行优化。

But you could use optical flow . 但是您可以使用光流 For doing this, you would have to find some features in the background-subtracted image; 为此,您必须在减去背景的图像中找到一些功能; for example edges/corners or you could use GoodFeaturesToTrack, too. 例如边缘/角,或者您也可以使用GoodFeaturesToTrack。

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

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