我使用cv2.KAZE_Create()来查找图像中的关键点。有没有办法可以限制匹配次数以加快计算速度?
答案 0 :(得分:1)
static Ptr<KAZE> cv::KAZE::create ( bool extended = false,
bool upright = false,
float threshold = 0.001f,
int nOctaves = 4,
int nOctaveLayers = 4,
int diffusivity = KAZE::DIFF_PM_G2
)
所以,我认为您可以tweak the parameters (increase threshold, nOctaves...)
,因此您可以限制检测到的点数。
PS:我可能使用C ++而不是Python,但根据this,它应该是相同的。