OpenCV HOG Gpu实现

时间:2015-11-18 09:46:00

标签: c++ opencv opencv3.0

我尝试使用OpenCV 3提供的HOG GPU版本。 但是,我对速度感到惊讶。 它似乎比CPU版本最慢。

这是我的代码:

cv::Ptr<cv::cuda::HOG> hog_cuda;
hog_cuda->setGammaCorrection(false);
hog_cuda->setNumLevels(13);
hog_cuda->setHitThreshold(1.4);
hog_cuda->setWinStride(cv::Size(8, 8));
hog_cuda->setScaleFactor(1.05);
hog_cuda->setGroupThreshold(8);
hog_cuda->setSVMDetector(hog_cuda->getDefaultPeopleDetector());
hog_cuda->detectMultiScale(cv::cuda::GpuMat(m_img), founds, 0);

你有什么想法吗?

这是我的卡片: 设备0:“GeForce GT 750M”2048Mb,sm_30,384内核,驱动程序/运行时版本.7.50 / 7.50

我的CPU:2,5 GHz Intel Core i7 -QUADCORE 8线程

这些是表现: GPU:10/11 FPS CPU:17/18 FPS

0 个答案:

没有答案