Ask Your Question

Revision history [back]

click to hide/show revision 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]

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]