stitchers done (maybe)

This commit is contained in:
2023-11-06 20:27:01 +02:00
parent c20af9c16d
commit ad64947081
6 changed files with 16 additions and 0 deletions

BIN
stitchers/1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 MiB

BIN
stitchers/2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 MiB

BIN
stitchers/3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 MiB

BIN
stitchers/4.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 MiB

16
stitchers/stitch.py Normal file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env python3
import cv2
img1 = cv2.imread('1.jpg')
img2 = cv2.imread('2.jpg')
img3 = cv2.imread('3.jpg')
img4 = cv2.imread('4.jpg')
img_list = [img1, img2, img3, img4]
stitcher = cv2.Stitcher_create()
result, stitched_img = stitcher.stitch(img_list)
if result == cv2.STITCHER_OK:
cv2.imshow('image', stitched_img)
cv2.imwrite('stitched2.jpg', stitched_img)
cv2.waitKey(0)

BIN
stitchers/stitched.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 MiB