Skip to content

Draw Matches Error in Panorama source code Jupyter Notebook #4

@CheskaAbarro

Description

@CheskaAbarro

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions