sure you can do that !
that’s a bit useless here, you’ll need the indices into the original keypoint lists (from detect()) (m.queryIdx, m.trainIdx
in the ex.), also the distance (from ransac ?). then its a simple:
dm = []
for whatever:
dm.append(cv2.DMatch(idx1, idx2, distance))
you also need a list of bools (inlier or not), matchesMask
in the tutorial.
it’s the white box around the target in the right image, hard to see :}