OpenStitching / stitching

A Python package for fast and robust Image Stitching
Apache License 2.0
2.11k stars 162 forks source link

Stitch works not correctly #153

Closed phamkhactu closed 1 year ago

phamkhactu commented 1 year ago

Thanks for amazing your work!!

From your response for issue and tutorial. I've created my code. All my images are sort orders.

from stitching import Stitcher
from stitching.images import Images
import cv2

stitcher = Stitcher()
images= [
    'imgs/0.jpg',
    'imgs/1.jpg',
    'imgs/2.jpg',
    'imgs/3.jpg',
    'imgs/4.jpg',
    'imgs/5.jpg'
]
panorama = stitcher.stitch(images) 
cv2.imwrite("panorama.jpg", panorama)

But I save panorama image, it stitch not well. I see that panorama is the same with 1.jpg not combine all from 0.jpg to 5.jpg

panorama

Here is my images

lukasalexanderweber commented 1 year ago

Try stitcher.stitch_verbose for Debugging. Do you get a warning message?