Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

IF you're using the v4l backend, try:

cap.set(cv2.CAP_PROP_MODE, cv2.CAP_MODE_YUYV)

(it probably only works there)

IF you're using the v4l backend, backend, try:

cap.set(cv2.CAP_PROP_MODE, cv2.CAP_MODE_YUYV)

(it probably only works there)

IF you're using the v4l backend, try:

cap.set(cv2.CAP_PROP_MODE, cv2.CAP_MODE_YUYV)

(it probably only works there)

IF that works, the grayscale image is just frame[:,:,0]

IF you're using the v4l backend, try:

cap.set(cv2.CAP_PROP_MODE, cv2.CAP_MODE_YUYV)

(it probably only works there)

IF that works, the grayscale image from the YUV is just frame[:,:,0]