Skip to content

Instantly share code, notes, and snippets.

@alechko
Last active June 9, 2024 15:31
Show Gist options
  • Save alechko/85a61211df8db4e939d0 to your computer and use it in GitHub Desktop.
Save alechko/85a61211df8db4e939d0 to your computer and use it in GitHub Desktop.
Get Canon EOS DSLR camera shutter count with gphoto2.
# connect your camera with USB cable, for 6D model you have to disable the WiFi first.
# then see if camera is connected by using:
gphoto2 --auto-detect
# if you see something like:
#
# user@x250:~$ gphoto2 --auto-detect
# Model Port
# ----------------------------------------------------------
# Canon EOS 6D usb:001,006
#
# your camera is connected, and you can display the shuttercount, if available, by using:
gphoto2 --get-config /main/status/shuttercounter