How to stitch images from a UAV using opencv pytho

2019-07-26 22:29发布

I was searching for the Stitcher class in OpenCV Python which will help me to stitch the images which I collect from the UAV. I was following the method shown in this link How to use OpenCV Stitcher class with Python? Unfortunately this is throwing some errors in OpenCV 3.1 and Python 2.7. I didn't find any appropriate Opencv docs for this function. Could anyone please help me in this. It would be highly apperciated if someone is able to explain the stitcher class using python. ` import cv2

stitcher = cv2.createStitcher(False)
foo = cv2.imread("Image1")
bar = cv2.imread("Image2")
result = stitcher.stitch((Image1,Image2))

cv2.imshow("stitch_image",result)

1条回答
唯我独甜
2楼-- · 2019-07-26 22:56

Based on this other answer, I believe you need to do the following:

cv2.imshow("stitch_image",result[1])
查看更多
登录 后发表回答