Assertion failed (i2 >= 0 && i2 < static_cast(keypoints2.size())) in cv::drawMatches,
Assertion failed (i2 >= 0 && i2 < static_cast<int>(keypoints2.size())) in cv::drawMatches, Help me if anyone know about this error? Please. I had searched it many times on google but there is no proper answer, if anyone know or face it then tell me. **#read Keypoints index = [line.strip() for line in open('/Users/alisa/Desktop/ali.csv')] k = for line in index: list = line.split(',') temp = cv2.KeyPoint(x=float(list[0]), y=float(list[1]), _size=float(list[2]), _angle=float(list[3]), _response=float(list[4]), _octave=int(list[5]), _class_id=int(list[6])) print(temp) k.append(temp) # create BFMatcher object bf = cv2.BFMatcher(cv2.NORM_L2, crossCheck=True) # Match descriptors. matches = bf.match(des1,des2) print(matches) # Sort them in the order of their distance. matches = sorted(matches, key = lambda x:x.distance) # Draw first 10 matches. img3 = cv...
