Hi all,
This post is regarding image registration using open CV. I have come across this article in Geeks for geeks and following is the link:
https://www.geeksforgeeks.org/image-regi...cv-python/
I have tried the same code mentioned in the site and was getting the following error:
Traceback (most recent call last):
File "F:/images2/align_01.py", line 31, in <module>
matches.sort(key = lambda x: x.distance)
AttributeError: 'tuple' object has no attribute 'sort'[/color]
After changing the line to :
matches = tuple(sorted(key = lambda x: x.distance))
Error has changed to:
Traceback (most recent call last):
File "F:/images2/align_01.py", line 32, in <module>
matches = tuple(sorted(key = lambda x: x.distance))
TypeError: sorted expected 1 argument, got 0
can anyone help me in correcting the error?
Thanks & Regards,
Utkarsha.
This post is regarding image registration using open CV. I have come across this article in Geeks for geeks and following is the link:
https://www.geeksforgeeks.org/image-regi...cv-python/
I have tried the same code mentioned in the site and was getting the following error:
Traceback (most recent call last):
File "F:/images2/align_01.py", line 31, in <module>
matches.sort(key = lambda x: x.distance)
AttributeError: 'tuple' object has no attribute 'sort'[/color]
After changing the line to :
matches = tuple(sorted(key = lambda x: x.distance))
Error has changed to:
Traceback (most recent call last):
File "F:/images2/align_01.py", line 32, in <module>
matches = tuple(sorted(key = lambda x: x.distance))
TypeError: sorted expected 1 argument, got 0
can anyone help me in correcting the error?
Thanks & Regards,
Utkarsha.