树莓派4B(代码) OpenCV启动usb摄像头
代码import cv2cap = cv2.VideoCapture(0) //摄像头编号while(1): _,img = cap.read() //获取 cv2.imshow('img',img) //展示 if cv2.waitKey(1) & 0xff == ord('q'): break cap.release() cv2.destroyAllWindows()...