Image-Stitching-OpenCV
Image-Stitching-OpenCV copied to clipboard
module 'cv2.cv2' has no attribute 'xfeatures2d'
python Image_Stitching.py [image1.jpg] [image2.jpg]
Traceback (most recent call last):
File "Image_Stitching.py", line 78, in
SIFT is a patented algorithm, hence not available in each open-cv version.
try
!pip install opencv-contrib-python
Hi @adhilartz
try to replace:
self.sift=cv2.xfeatures2d.SIFT_create()
to
self.sift=cv2.SIFT_create()
in latest versions of opencv-python SIFT migrated in core from xfeatures2d