0

What is this? Can anyone tell me? Please??

# create BFMatcher object
bf = cv2.BFMatcher(cv2.NORM_HAMMING,crossCheck=False)

# Match descriptors.
matches = bf.match(des1,des2)

# Sort them in the order of their distance.
matches = sorted(matches, key = lambda x:x.distance)

# Draw first 10 matches.
img3 = cv2.drawMatches(img1,kp1,img2,kp2,matches[:10],None, flags=2)
wibeasley
  • 5,000
  • 3
  • 34
  • 62
Ali110
  • 151
  • 1
  • 1
  • 7
  • Please read https://stackoverflow.com/help/mcve – Eypros Jun 28 '18 at 06:41
  • Possible duplicate of [BFMatcher match in OpenCV throwing error](https://stackoverflow.com/questions/39940766/bfmatcher-match-in-opencv-throwing-error) – Mick Jun 28 '18 at 07:09
  • i have searched it but there is nothing for help. – Ali110 Jun 28 '18 at 07:29
  • It says `des1` and `des2` must be the same type and size, and the type must either be `CV8U` or `CV32F`. Apparently that is not the case, but we can't tell because we can't see where they are defined. – beaker Jun 28 '18 at 20:52

0 Answers0