Skip to content

Commit

Permalink
Update asap.py
Browse files Browse the repository at this point in the history
fix issue in im_feeling_lucky
  • Loading branch information
AndrewAnnex committed Jul 2, 2021
1 parent 53a026a commit 5f4f8c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asap_stereo/asap.py
Original file line number Diff line number Diff line change
Expand Up @@ -1762,9 +1762,9 @@ def im_feeling_lucky(self, ref_img, mobile_image, *other_mobile, ipfindkwargs=No
If unsure normalize your data ahead of time
"""
# get the matches
self.find_matches(ref_img, mobile_image, ipfindkwargs=ipfindkwargs, ipmatchkwargs=ipmatchkwargs)
matches = list(self.find_matches(ref_img, mobile_image, ipfindkwargs=ipfindkwargs, ipmatchkwargs=ipmatchkwargs))
# convert matches to csv
match_csv = self.matches_to_csv(f'{Path(ref_img).stem}__{Path(mobile_image).stem}.match')
match_csv = self.matches_to_csv(matches[0])
# loop through all the mobile data
for i, mobile in tqdm.tqdm(enumerate([mobile_image, *other_mobile])):
# transform matches # todo: make sure I don't overwrite anything here
Expand Down

0 comments on commit 5f4f8c5

Please sign in to comment.