stitchers done (maybe)
This commit is contained in:
BIN
stitchers/1.jpg
Normal file
BIN
stitchers/1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.9 MiB |
BIN
stitchers/2.jpg
Normal file
BIN
stitchers/2.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.9 MiB |
BIN
stitchers/3.jpg
Normal file
BIN
stitchers/3.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.1 MiB |
BIN
stitchers/4.jpg
Normal file
BIN
stitchers/4.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.1 MiB |
16
stitchers/stitch.py
Normal file
16
stitchers/stitch.py
Normal 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
BIN
stitchers/stitched.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.4 MiB |
Reference in New Issue
Block a user