Once cam.read() returns a Boolean value ret and the frame, which is the image
it captured. If the image capture is successful, then return will be True; otherwise,
it will be false. The preceding code captures an image with the camera device
/dev/video0, displays it and then saves it. The cam.release() method releases
the device.