How to stitch images from a UAV using opencv python with Stitcher class

瘦欲@ 提交于 2019-12-11 05:49:42

问题


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:


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

cv2.imshow("stitch_image",result[1])


来源:https://stackoverflow.com/questions/38914916/how-to-stitch-images-from-a-uav-using-opencv-python-with-stitcher-class

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!