How to control multiple DSLR CAMERAS with gphoto2 and python

795 Views Asked by At

I would like to control multiple cameras. I have tried with:

gphoto2 (--camera: Nikon\ DSC\ 5300 --capture-image

but with terminal of linux and it works. The problem comes when I want to write in a script in python. I always get an error

-105: unknown model)

in python. But I can see my cameras and the port where they are. I think the problem is how to write the name of model in python. someone could you help me? I have tried:

from sh import gphoto2 as gp
 
gp('--camera: Nikon\ DSC\ 5300 --capture-image')
0

There are 0 best solutions below