Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Self Answer (given I don't have kudos to add self answer yet) is:

cam1 = cv2.VideoCapture(1) cam1.set(cv2.CAP_PROP_FRAME_WIDTH,384) cam1.set(cv2.CAP_PROP_FRAME_HEIGHT,216)

cam2 = cv2.VideoCapture(2) cam2.set(cv2.CAP_PROP_FRAME_WIDTH,384) cam2.set(cv2.CAP_PROP_FRAME_HEIGHT,216)

It seems the USB channel gets choked (it is only USB 2.0) so one needs to right size the images so that two cameras can work off that single port.

Self Answer (given I don't have kudos to add self answer yet) is:

cam1 = cv2.VideoCapture(1)
cam1.set(cv2.CAP_PROP_FRAME_WIDTH,384)
cam1.set(cv2.CAP_PROP_FRAME_HEIGHT,216)

cam1.set(cv2.CAP_PROP_FRAME_HEIGHT,216)

cam2 = cv2.VideoCapture(2) cam2.set(cv2.CAP_PROP_FRAME_WIDTH,384) cam2.set(cv2.CAP_PROP_FRAME_HEIGHT,216)

cam2.set(cv2.CAP_PROP_FRAME_HEIGHT,216)

It seems the USB channel gets choked (it is only USB 2.0) so one needs to right size the images so that two cameras can work off that single port.

Self Answer (given I don't have kudos to add self answer yet) is:

cam1 = cv2.VideoCapture(1)
cam1.set(cv2.CAP_PROP_FRAME_WIDTH,384)
cam1.set(cv2.CAP_PROP_FRAME_HEIGHT,216)

cam2 = cv2.VideoCapture(2)
cam2.set(cv2.CAP_PROP_FRAME_WIDTH,384)
cam2.set(cv2.CAP_PROP_FRAME_HEIGHT,216)

It seems the USB channel gets choked (it is only USB 2.0) so one needs to right size the images so that two cameras can work off that single port.port. Full code solution tomorrow or next day once my kudos limit expires.