Replies: 1 comment 5 replies
-
You need more overlap. The last two Images don't have an overlapping area at all |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, this is my code. I want to create a 360 panorama with 8 photos. When I run the code, I get the following warning:
C:\Users\Utente\stich\Lib\site-packages\stitching\subsetter.py:32: StitchingWarning: Not all images are included in the final panorama. If this is not intended, use the 'matches_graph_dot_file' parameter to analyze your matches. You might want to lower the 'confidence_threshold' or try another 'detector' to include all your images.
warnings.warn(
////////
there are the photos used:








The result is a panorama made up of only two photos, instead of all eight.
import cv2 as cv
from stitching import Stitcher
import os
settings = {"detector": "sift", "confidence_threshold": 0.00001, "matches_graph_dot_file": "matches_graph.dot"}
stitcher = Stitcher(**settings)
folder_path = r"C:\Users\Utente\Downloads\fuori2"
image_filenames = [
os.path.join(folder_path, f"{i}.png") for i in range(0, 8)
]
panorama = stitcher.stitch(image_filenames)
output_path = os.path.join(folder_path, "panorama_result.jpg")
cv.imwrite(output_path, panorama)
cv.imshow("Panorama", panorama)
cv.waitKey(0)
cv.destroyAllWindows()
I tryed with (sift, orb), i tryed also to modity the trhershold (0.1, 0.00001, 0.5) nothing changed
Beta Was this translation helpful? Give feedback.
All reactions