![]() | 1 | initial version |
https://docs.opencv.org/master/d2/d8d/classcv_1_1Stitcher.html#a37ee5bacf229e9d0fb9f97c8f5ed1acd
both VideoCapture.read() and Stitcher.stitch() return a tuple of results. you need code like this:
left_img, left_ok = leftStream.read()
right_img, right_ok = leftStream.read()
if not left_ok:
print("left cam failed")
return
if not right_ok:
print("right cam failed")
return
status, result = stitcher.stitch([left_img, right_img])