how to detect who is on your camera using opencv code example
Example: check if camera is being used python
cap = cv2.VideoCapture(0)
# the variable before frame is True if the camera is useable
useable, frame = cap.read()
cap = cv2.VideoCapture(0)
# the variable before frame is True if the camera is useable
useable, frame = cap.read()