title: Raspberry Pi: Detect camera with IF loop, gphoto2
body: <p>I'm trying to find a way to detect if a camera is found for gphoto2, or not.</p>
  
  <p>I've posted in the gphoto2 forum, but figured I'd try here too. One can issue the command, gphoto2 --auto-detect, and it will list cameras that are detected.</p>
  
  <p>I'm running a large python script that at one point, calls gphoto2 to take a picture and download the image. I'm wanting to find a statement that I can put in an IF Loop, to where the take picture and download image command is only issued after entering in the loop if the camera is detected. </p>