Blocking the camera isn't something new, using a piece of tape.
When I try to create or launch or run multiple programs which take a feed from camera, only the first one gets access, others don't get access.
Instead of physically blocking a camera with a piece of paper or scotch-tape, what if I logically block the camera, by running a script like this.
import cv2 def show_webcam(mirror=False): cam = cv2.VideoCapture(0) while True: ret_val, img = cam.read() if mirror: img = cv2.flip(img, 1) cv2.imshow('my webcam', img) if cv2.waitKey(1) == 27: break # esc to quit cv2.destroyAllWindows() def main(): show_webcam(mirror=True) if __name__ == '__main__': main()
Wouldn't it be more smarter to secure privacy.
Is there something I am missing?