digiCamControl icon indicating copy to clipboard operation
digiCamControl copied to clipboard

Using digiCamControl via scripts/command line

Open SlicerMorph opened this issue 3 years ago • 2 comments

This tool is awesome, thank you for providing it.

I am wondering if it is possible to drive the software through command line? Our goal is to automate (to the extend possible) data acquisition for stereophotogrammetry.

SlicerMorph avatar May 03 '22 21:05 SlicerMorph

Check this link http://digicamcontrol.com/doc/userguide/remoteutil or http://digicamcontrol.com/doc/userguide/cmd

dukus avatar May 04 '22 04:05 dukus

Thanks, I just started testing this. I can get the command line working with this command:

CameraControlCmd.exe /folder c:\temp\capture /filenametemplate test_ /counter 2 /wait 1000 /aperture 16 /capture
digiCamControl command line utility running

New Camera is connected ! Driver :Canon EOS Rebel T6
Canon event 520
Photo transfer begin.
Transfer started :c:\temp\capture\test_0004.JPG
Transfer done :c:\temp\capture\test_0004.JPG
Photo transfer done.
Waiting 1000 milliseconds

But when I turn this into a simple text file called test.dccscript and run it via command, I get this error:

CameraControlCmd.exe test.dccscript
digiCamControl command line utility running

New Camera is connected ! Driver :Canon EOS Rebel T6
Loading error :Data at the root level is invalid. Line 1, position 1.

Can you point at an example of correctly formatted script file? And may be an example of how can I trigger back to back to shots (with 1000ms wait in between). Adding multiple /captures at the end of the command didn't do the trick.

muratmaga avatar May 20 '22 05:05 muratmaga