Does anyone have any examples of using OpenCV with python for descriptor extraction?

后端 未结 4 1283
夕颜
夕颜 2021-02-04 05:22

I\'m trying to use OpenCV to extract SURF descriptors from an image. I\'m using OpenCV 2.4 and Python 2.7, but am struggling to find any documentation that provides any informat

4条回答
  •  庸人自扰
    2021-02-04 06:08

    Using open cv 2.4.3, you can do the following:

    import cv2
    surf = cv2.SURF()
    keypoints, descriptors = surf.detectAndCompute(img,None,useProvidedKeypoints = True)
    

提交回复
热议问题