Commit 86868176 authored by Vladislav Sovrasov's avatar Vladislav Sovrasov

Fix py3 comatibility

parent e90dc203
...@@ -68,7 +68,7 @@ def filter_matches(kp1, kp2, matches, ratio = 0.75): ...@@ -68,7 +68,7 @@ def filter_matches(kp1, kp2, matches, ratio = 0.75):
p1 = np.float32([kp.pt for kp in mkp1]) p1 = np.float32([kp.pt for kp in mkp1])
p2 = np.float32([kp.pt for kp in mkp2]) p2 = np.float32([kp.pt for kp in mkp2])
kp_pairs = zip(mkp1, mkp2) kp_pairs = zip(mkp1, mkp2)
return p1, p2, kp_pairs return p1, p2, list(kp_pairs)
def explore_match(win, img1, img2, kp_pairs, status = None, H = None): def explore_match(win, img1, img2, kp_pairs, status = None, H = None):
h1, w1 = img1.shape[:2] h1, w1 = img1.shape[:2]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment