November 28, 2014, 06:23:24 PM

Author Topic: Command Line Software to shoot photos  (Read 3906 times)

Dave

  • Guest
Command Line Software to shoot photos
« on: September 09, 2011, 10:59:33 AM »
Does anybody know a command line tool to remotely shoot photos with a digital camera (which one doesn't matter) and store them on the local computer (windows system).
I'm programming a software for face detection to print Student IDs for our university. The people will sit down, shot the photo, the face will be detected and correctly cropped and the Student ID will be printed. Everything with one mouse click.

In fact I'm already finished... The problem is just the thing with the remote shooting.

thanks a lot
Dave

canon rumors FORUM

Command Line Software to shoot photos
« on: September 09, 2011, 10:59:33 AM »

KyleSTL

  • Canon 6D
  • *****
  • Posts: 420
    • View Profile
Re: Command Line Software to shoot photos
« Reply #1 on: September 09, 2011, 05:06:34 PM »
EOS Utility.  Hook it us via USB cable and shoot from the computer.  The files are transferred directly to the computer's harddrive when they are taken.  Unless you're talking about wireless shooting, and in that case maybe this article could help:

http://www.jamiecarl.com.au/blog/wireless-tethering-the-coolest-oxymoron-ever/
http://www.jamiecarl.com.au/blog/wireless-tethering-the-next-level/

Or PeteTek's articles:
http://petetek.blogspot.com/2009/05/50-wireless-tethering-solution.html
Canon EOS 5D | Tamron 19-35mm f/3.5-4.5 | 24-105mm f/4L IS USM | 28-105mm f/3.5-4.5 USM | 70-300mm f4-5.6 IS USM
15mm f/2.8 Fisheye | 28mm f/1.8 USM | 50mm f/1.4 USM | 85mm f/1.8 USM | 3x 420EX | ST-E2 | Canon S90 | SD600 w/ WP-DC4

BK

  • Guest
Re: Command Line Software to shoot photos
« Reply #2 on: September 09, 2011, 06:01:51 PM »
Both Canon and Nikon provide SDKs to remotely control their cameras. I haven't used either, but briefly looked at Canon's description. It looks like they provide C libraries that can be used in Microsoft's development environments on Windows or XCode on the Mac.

Again, I haven't used these, but if you are using Java instead of a variation of C you could probably tie these into your software directly using JNI.

If you aren't using one of these platforms to develop your software then it's very likely that you could use the libraries provided to develop your own command line utilities.

I just googled "Canon camera SDK" and the first link that came up got me to Canon's SDK site.

Good luck.

Dave

  • Guest
Re: Command Line Software to shoot photos
« Reply #3 on: September 09, 2011, 07:10:58 PM »
Quote
EOS Utility
Didn't know that there's a command line version... I haven't found it.

Quote
Canon camera SDK
It is a web application in PHP and it's to much effort to get into the SDK (I won't get payed for it). Thought there was a simple solution. I just need to take a photo. No settings etc. just shooting with the settings of the camera. But I googled the whole day and it seems that there is nothing like that...

thanks anyway

Orangutan

  • 1D Mark IV
  • ******
  • Posts: 752
    • View Profile
Re: Command Line Software to shoot photos
« Reply #4 on: September 09, 2011, 08:49:14 PM »
Though I have no personal experience with it, you might look at gphoto2 under CygWin.

http://cygwin-ports.git.sourceforge.net/git/gitweb.cgi?p=cygwin-ports/gphoto2;a=summary


PeterJ

  • Canon 6D
  • *****
  • Posts: 342
    • View Profile
Re: Command Line Software to shoot photos
« Reply #5 on: September 09, 2011, 10:42:41 PM »
The Canon SDK comes with examples in VB and C++ and has a wrapper for C#, if you're familiar with any of those what your'e trying to do will only be half a dozen lines of code and I got that far within a few hours of getting the SDK. I was having a play around with movement detection using live view mode. I got it working OK but unfortunately the general technique was a a bit slow to be of much practical use.

Mt Spokane Photography

  • EF 50mm F 0.7 IS
  • *********
  • Posts: 9189
    • View Profile
Re: Command Line Software to shoot photos
« Reply #6 on: September 10, 2011, 12:13:26 AM »
Most of the utilities make use of the Canon SDK, you need a driver to communicate with the camera.

Breeze Systems is something to look at, I use DSLR Remote pro.  They have a photobooth application that sounds ideal for taking a photo and automatically printing out a photo.

Ask Chris Breeze, but I believe that some of his software will operate from a command line.

http://breezesys.com/index.htm

canon rumors FORUM

Re: Command Line Software to shoot photos
« Reply #6 on: September 10, 2011, 12:13:26 AM »