SSARCandy / panoramas-image-stitching

🖼 Stitching images into 360 panoramas
https://ssarcandy.tw/2017/05/26/panorama-image-stitching/
212 stars 50 forks source link

Shift direction not same as previous shift #25

Open Kaustubh-trivedi opened 1 year ago

Kaustubh-trivedi commented 1 year ago

PS D:\Vdsai\panoramas-image-stitching-master\src> python ./main.py ../input_image/100_0040/ Warp images to cylinder Computing .... 2/26

Best shift: [24 60] Traceback (most recent call last): File "D:\Vdsai\panoramas-image-stitching-master\src\main.py", line 72, in
shift = stitch.RANSAC(matched_pairs, shifts[-1]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Vdsai\panoramas-image-stitching-master\src\stitch.py", line 53, in RANSAC
raise ValueError('Shift direction NOT same as previous shift.') ValueError: Shift direction NOT same as previous shift.

How to make shift direction same as previous shift? Can you please help?

SSARCandy commented 1 year ago

make sure your image list is in order