You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after updating this line to make it work with openCV4 :
stitcher = cv2.createStitcher()
with
stitcher = cv2.Stitcher_create()
(venv) aya@MacBook-Pro-16 src % python myPanorama.py
len(hpair) = 3 m=1
len(hpair) = 3 m=1
len(hpair) = 0 m=-1
Traceback (most recent call last):
File "myPanorama.py", line 127, in
main()
File "myPanorama.py", line 122, in main
generatePanoramaExamples()
File "myPanorama.py", line 83, in generatePanoramaExamples
Htot = accumulateHomographies(homography_list, m)
File "/Users/aya/GIT/Panorama_Stitching/src/panoramaStitching.py", line 60, in accumulateHomographies
H_im = np.linalg.inv(Hpair[m])
IndexError: list index out of range
I added this line print(f"len(hpair) = {len(Hpair)} m={m}")
just before H_im = np.linalg.inv(Hpair[m])
The text was updated successfully, but these errors were encountered:
after updating this line to make it work with openCV4 :
stitcher = cv2.createStitcher()
with
stitcher = cv2.Stitcher_create()
(venv) aya@MacBook-Pro-16 src % python myPanorama.py
len(hpair) = 3 m=1
len(hpair) = 3 m=1
len(hpair) = 0 m=-1
Traceback (most recent call last):
File "myPanorama.py", line 127, in
main()
File "myPanorama.py", line 122, in main
generatePanoramaExamples()
File "myPanorama.py", line 83, in generatePanoramaExamples
Htot = accumulateHomographies(homography_list, m)
File "/Users/aya/GIT/Panorama_Stitching/src/panoramaStitching.py", line 60, in accumulateHomographies
H_im = np.linalg.inv(Hpair[m])
IndexError: list index out of range
I added this line print(f"len(hpair) = {len(Hpair)} m={m}")
just before H_im = np.linalg.inv(Hpair[m])
The text was updated successfully, but these errors were encountered: