【Opencv】GoodFeaturesToTrack关键点检测

kps = cv2.goodFeaturesToTrack(gray_i, 
                            minDistance=20,
                            qualityLevel = 0.4,
                            maxCorners = 10,
                            blockSize=3,
                            useHarrisDetector=False,
                            k=0.04)

for kp in kps:
    cv2.circle(gray_i, (kp[0][0], kp[0][1]), 3 , (0, 0, 255))

这里只写了用法,具体还需参考API文档

API: https://docs.opencv.org/2.4/modules/imgproc/doc/feature_detection.html#shi94

你可能感兴趣的:(opencv)