cam.capture("/home/pi/image2.jpg") //Capture the photo and save time.sleep(10) ‘ig. 2. — Connecting to the Raspberry PI via Putty (1), enabling the camera (2) and logging into the Raspberry PI board (3). Table 2. Testing the camera and the buzzer vs motion detection.