check if camera is being used python

Solutions on MaxInterview for check if camera is being used python by the best coders in the world

showing results for - "check if camera is being used python"
Maya
08 May 2020
1cap = cv2.VideoCapture(0)
2# the variable before frame is True if the camera is useable
3useable, frame = cap.read()