Skip to content

Commit

Permalink
Merge pull request #70 from Seekerzero/main
Browse files Browse the repository at this point in the history
edit numpy.int to int to adapt newer version of numpy
  • Loading branch information
koide3 authored Feb 13, 2024
2 parents 82df995 + a0a1b6d commit 8a03c73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/find_matches_superglue.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def angle_to_rot(angle, image_shape):
kp0 = kpts0[i]
kp1 = kpts1[match]

color = tuple((numpy.array(cmap(confidence[i])) * 255).astype(numpy.int).tolist())
color = tuple((numpy.array(cmap(confidence[i])) * 255).astype(int).tolist())

cv2.line(canvas, (int(kp0[0]), int(kp0[1])), (int(kp1[0]), int(kp1[1])), color)

Expand Down

0 comments on commit 8a03c73

Please sign in to comment.