Skip to content

Commit 223ad4c

Browse files
authored
Update main.py
1 parent a9b573b commit 223ad4c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def draw_matches(im_A, kpts_A, im_B, kpts_B):
3535
kpts_A = [cv2.KeyPoint(x, y, 1.0) for x, y in kpts_A]
3636
kpts_B = [cv2.KeyPoint(x, y, 1.0) for x, y in kpts_B]
3737
matches_A_to_B = [cv2.DMatch(idx, idx, 0.0) for idx in range(len(kpts_A))]
38-
im_A, im_B = np.array(im_A), np.array(im_B)
3938
ret = cv2.drawMatches(im_A, kpts_A, im_B, kpts_B, matches_A_to_B, None)
4039
return ret
4140

@@ -56,4 +55,4 @@ def draw_matches(im_A, kpts_A, im_B, kpts_B):
5655
cv2.namedWindow('Image matches use onnxrunime', cv2.WINDOW_NORMAL)
5756
cv2.imshow("Image matches use onnxrunime", match_img)
5857
cv2.waitKey(0)
59-
cv2.destroyAllWindows()
58+
cv2.destroyAllWindows()

0 commit comments

Comments
 (0)