gpt4 book ai didi

OpenCV SURF,抓取的视频有点滞后是正常的吗?如何加快速度?

转载 作者:太空宇宙 更新时间:2023-11-03 20:59:13 25 4
gpt4 key购买 nike

如何加快 SURF 的对应匹配过程?我使用提供的示例并将其更改为从网络摄像头捕获彩色图像进行处理,但是,速度肯定需要改进。应该在哪里解决?

最佳答案

首先,SURF(至少是 OpenCV 的)仅支持灰色图像。

有很多描述符参数可供调整,将它们设置为较低的值可以提高性能:

typedef struct CvSURFParams
{
int extended; // 0 means basic descriptors (64 elements each),
// 1 means extended descriptors (128 elements each)
double hessianThreshold; // only features with keypoint.hessian
// larger than that are extracted.
// good default value is ~300-500 (can depend on the
// average local contrast and sharpness of the image).
// user can further filter out some features based on
// their hessian values and other characteristics.
int nOctaves; // the number of octaves to be used for extraction.
// With each next octave the feature size is doubled
// (3 by default)
int nOctaveLayers; // The number of layers within each octave
// (4 by default)
}
CvSURFParams;

参见 OpenCV's SURF docs .

此外,查看原始 articlenotes on OpenSURF lib

关于OpenCV SURF,抓取的视频有点滞后是正常的吗?如何加快速度?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3243889/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com