1 | initial version |
vid.read() is a function, not a numpy array, so you need (at least) another line:
img, ret = vid.read() # please check if ret==True. only fools don't.
imgLeft = img[1:1080, 1:1920]
imgRight = img[1:1080, 1920:3840]
2 | No.2 Revision |
vid.read() is a function, not a numpy array, so you need (at least) another line:
img, ret ret, img = vid.read() # please check if ret==True. only fools don't.
imgLeft = img[1:1080, 1:1920]
imgRight = img[1:1080, 1920:3840]