Skip to content

Instantly share code, notes, and snippets.

@RofieSagara
Created July 12, 2023 03:58
Show Gist options
  • Save RofieSagara/ec3e41ca5dac61511023a2a5fd76587d to your computer and use it in GitHub Desktop.
Save RofieSagara/ec3e41ca5dac61511023a2a5fd76587d to your computer and use it in GitHub Desktop.
Provide report for the camera

Installation

Recommend use the Ubuntu for easy install First install gphoto2 from this https://github.com/gphoto/gphoto2 or you can use apt if with Ubuntu sudo apt install gphoto2, for the windows there is no recommend for that, or if you use Mac you can install from brew with brew install gphoto2

Usage

Plug you camera to the laptop and open the terminal write in terminal

  • First we need to make caputer for all output from terminal so we need write script output.txt, output.txt its file name so you can use anyfilename you want.
  • You will be get output like this

image

* Next step is follow bease on your camera provider

Sony

  • Make sure you set the PC MODE or PC Remote on settings in sony camera
  • Use this command gphoto2 --wait-event-and-download --debug
  • Take the picture and check your cwd if there is image on there. (Should be on there)
  • If you found the image just unplug and stop the terminal.
  • Go to Get Report for next step

Canon and Nikkon

  • Format you memory card if the image more than 3 cause we dont need to make output bigger
  • Use this command gphoto2 --get-all-files --debug
  • Check your cwd if there is image on there. (Should be on there)
  • You dont need take a picture just unplug if the file already inside you PC/Laptop
  • Go to Get Report for next step

Get Report

  • Open the output.txt to make sure you capture everything (Open with VSCode if so lag while open with notepad)
  • Upload to the slack or Google Drive and send to me.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment