Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using digiCamControl via scripts/command line #382

Open
SlicerMorph opened this issue May 3, 2022 · 2 comments
Open

Using digiCamControl via scripts/command line #382

SlicerMorph opened this issue May 3, 2022 · 2 comments

Comments

@SlicerMorph
Copy link

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.

@dukus
Copy link
Owner

dukus commented May 4, 2022

@muratmaga
Copy link

muratmaga commented May 20, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants