May 31, 2023, 10:57 AM

@george 如下代码测试正常:

import cv2 as cv2
cap = cv2.VideoCapture(11)
while True:
    success, img = cap.read()
    cv2.imshow("Video", img)
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break
cap.release()
cv2.destroyAllWindows()