Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draw Matches Error in Panorama source code Jupyter Notebook #4

Open
CheskaAbarro opened this issue Apr 5, 2023 · 1 comment
Open

Comments

@CheskaAbarro
Copy link

Hello.

First of all, thank you for publishing your panorama source code. It was woderful and it was very helpful.

I am having a problem with this part:

#draw matches
img=features.drawMatches(list_images[0],k0,list_images[1],k1,mat,matMask)
plt.figure(figsize=(8,8))
plt.imshow(convertResult(img))

I was just trying your code first thus, I still haven't touched any part on it. However, I am receiving this error:

error: OpenCV(4.7.0) [D:\a\opencv-python\opencv-python\opencv\modules\features2d\src\draw.cpp:228](file:///D:/a/opencv-python/opencv-python/opencv/modules/features2d/src/draw.cpp:228): error: (-201:Incorrect size of input array) matchesMask must have the same size as matches1to2 in function 'cv::drawMatches'

I tried searching the solution but most of them are using C++ and not Python. Can you help me with this problem please? Greatly appreciated. Thank you.

@ndvinh98
Copy link
Owner

ndvinh98 commented Apr 6, 2023

This repository was written four years ago and the old library it used is now deprecated. You had used OpenCV version 4.7.0, which caused errors. I am currently upgrading the usage of this repository. You can make a pull request, install the required dependencies, and then follow the updated instructions step by step in the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants