Describe the bug
Unable to get sample6 working with template_fb_align.json
FeatureBasedAlignment.py, line 54:
in apply_filter matches.sort(key=lambda x: x.distance, reverse=False)
TypeError: sort() got an unexpected keyword argument 'key'
Changing line 50 to
matches = list(np.array(matcher.match(from_descriptors, self.to_descriptors, None))),
makes it run, but yields odd results (screenshot below).
To Reproduce
Steps to reproduce the behavior:
Rename template_fb_align.json to template.json
Use command: python3 main.py -i .\samples\sample6 --setLayout
Describe the bug Unable to get sample6 working with template_fb_align.json FeatureBasedAlignment.py, line 54: in apply_filter matches.sort(key=lambda x: x.distance, reverse=False) TypeError: sort() got an unexpected keyword argument 'key'
Changing line 50 to matches = list(np.array(matcher.match(from_descriptors, self.to_descriptors, None))), makes it run, but yields odd results (screenshot below).
To Reproduce Steps to reproduce the behavior:
Screenshots
Desktop: