Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def stitch_images(image_mode, image1, image2, images, detector, matcher, estimat
|
|
12 |
if not images or len(images) < 2:
|
13 |
return None
|
14 |
cv_images = []
|
15 |
-
for img_path in
|
16 |
img = cv2.imread(img_path.name)
|
17 |
if img is None:
|
18 |
return None
|
@@ -27,7 +27,6 @@ def stitch_images(image_mode, image1, image2, images, detector, matcher, estimat
|
|
27 |
crop=crop,
|
28 |
wave_correct_kind=wave_correct
|
29 |
)
|
30 |
-
progress(0.5, desc="Stitching images")
|
31 |
panorama = stitcher.stitch(cv_images)
|
32 |
|
33 |
# Convert back to RGB for display
|
|
|
12 |
if not images or len(images) < 2:
|
13 |
return None
|
14 |
cv_images = []
|
15 |
+
for img_path in images:
|
16 |
img = cv2.imread(img_path.name)
|
17 |
if img is None:
|
18 |
return None
|
|
|
27 |
crop=crop,
|
28 |
wave_correct_kind=wave_correct
|
29 |
)
|
|
|
30 |
panorama = stitcher.stitch(cv_images)
|
31 |
|
32 |
# Convert back to RGB for display
|