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

there's a problem when stitching more than 34 images #5

Closed
MugleLei opened this issue Oct 20, 2017 · 1 comment
Closed

there's a problem when stitching more than 34 images #5

MugleLei opened this issue Oct 20, 2017 · 1 comment

Comments

@MugleLei
Copy link

video_stitching has a bug:
Traceback (most recent call last):
File "video_stitching.py", line 46, in
cap = cv2.VideoCapture(args.video_path)
TypeError: an integer is required

so I use image_stitching to stitch images captured from video, but I can't stitch 35 images at a time while stitch 34 images are fine. Also when stitching 80 images, No.1-34 disappear and No.35-80 are fine.
I run the program in both opencv2.4 and opencv3.2 and they have the same problem. Is there any limitation in the code? I'm not familiar with opencv so I can't find the limitation myself.

when stitching 34 images:
stitched_34

when stitching 35 images:
stitched_35

when stitching 36 images:
stitched_36

when stitching 80 images:
stitched_80

@WillBrennan
Copy link
Owner

This method isn't taking into account lens distortion when stitching the images. This is okay on mobile phone footage, but it looks like you're using a lens with distortion.

Usually you have to undistort the images and stitch them.

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