jim-easterbrook / python-gphoto2

Python interface to libgphoto2
GNU Lesser General Public License v3.0
359 stars 59 forks source link

serial number in python-gphoto2? #107

Closed Fred3D-tech closed 3 years ago

Fred3D-tech commented 3 years ago

I can't find a solution to add the serial number of my eos dslr to the listed devices... I have several dslr connected to my jetson nano and I need to get the sn of the dslr to generate my filename. Thanks

jim-easterbrook commented 3 years ago

With my Canon 100D the serial number is included in the camera-summary.py example output.

jim-easterbrook commented 3 years ago

It's also listed by the camera-config-gui.py example - it's the eosserialnumber or serialnumber config item.

Fred3D-tech commented 3 years ago

thanks... but is there a simple way (something like camera.get_serialnumber) to get the serial number like you get the port?

jim-easterbrook commented 3 years ago

Not that I'm aware of. The libgphoto2 documentation is here: http://www.gphoto.org/doc/api/

Fred3D-tech commented 3 years ago

thanks.. I went to this link before but for me this has nothing to do with a documentation. It is totally unusable.

jim-easterbrook commented 3 years ago

Click on Files, then File List, then gphoto2 to get a list of header files, then click on the one whose documentation you want to read. It's a bit terse, but it's all there is. I'm sure the gphoto2 project would welcome improvements.