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

UnboundLocalError: local variable 'H' referenced before assignment #6

Open
monkeycc opened this issue Sep 30, 2022 · 1 comment
Open

Comments

@monkeycc
Copy link

Traceback (most recent call last):
  File "d:\Image-Stitching-OpenCV\Image_Stitching.py", line 92, in <module>
    main(imageA,imageB)
  File "d:\Image-Stitching-OpenCV\Image_Stitching.py", line 74, in main
    final=Image_Stitching().blending(imageA,imageB)
  File "d:\Image-Stitching-OpenCV\Image_Stitching.py", line 51, in blending
    H = self.registration(img1,img2)
  File "d:\Image-Stitching-OpenCV\Image_Stitching.py", line 31, in registration
    return H
UnboundLocalError: local variable 'H' referenced before assignment
@Narukara
Copy link

应该是因为不满足上面的 len(good_points) > min_match,匹配上的点不够多

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