Skip to content

Instantly share code, notes, and snippets.

@alechko
Last active January 12, 2023 08:55
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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