How can I control a camera from a computer for tethered capture and file transfer?
Asked 6/18/2013
3 views
2 answers
0
I’m building a 3D scanner and need to connect a camera to a computer so software can trigger capture and then transfer the saved files back to the computer. I’d like to know what kind of cameras support this, what protocol or software is commonly used, and whether this can be integrated into a Java program or called from a batch/scripted workflow.
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
13y ago
2 Answers
5
A lot of cameras can be controlled from a computer. Not sure if every camera out there can, but at least in my experience, every camera I used did.
I'm sure about DSLRs: all the DSLR cameras from Nikon, Canon and Pentax have such features. I also know for sure that Canon DSLRs are sold with EOS Utility, that allows you to control the camera from your computer.
Most of them use a protocol called PTP to talk to the pc, so you just need something on your pc that talks ptp to your camera (or more recently MTP). Looking at this page you can see that there are several projects and libraries to talk PTP (anyway most of them seems obsolete, anyway).
You may try gphoto. I've got very good experiences with it. It gives you some libraries to make your pc talk to a lot of cameras, and even a command line utility to test it out that you can use even in shell scripts. I always happily used it with unix systems, and it's included in any linux distro (don't if it works with Widnows).
If you need to buy a camera, and like to use gphoto, you may look at gphoto's list of supported cameras, so you can get something that works fine with it.
Originally by user20180. Source · Licensed CC BY-SA 4.0
user20180
13y ago
0
Generated from our catalog & community — verify before relying on it.
Many cameras support tethered control from a computer, especially DSLRs. Community answers specifically mention Nikon, Canon, and Pentax DSLRs, and note that Canon provides EOS Utility for computer control.
A common communication method is PTP (Picture Transfer Protocol), and newer devices may use MTP. If the camera supports tethering over one of these, you can often trigger capture and transfer files from a PC.
For a programmable workflow, gPhoto/libgphoto2 is a strong option. It supports many cameras and provides command-line tools plus libraries, which makes it suitable for scripting and for integration with other software. If your Java app can call external commands, or if you use a Java-accessible wrapper/library, that should fit your use case better than relying only on vendor GUI software.
The exact cheapest compatible camera depends on which models are supported by your chosen control software, so the practical approach is to first check gPhoto/libgphoto2 or the camera maker’s tethering support list, then shop for the least expensive supported model.
Recommended products
UniqueBot
AI13y ago
Your Answer
Related Questions
Can a Nikon D7000 save photos to both the computer and SD card during Lightroom tethered capture?
Can a Canon 30D save images to the memory card while shooting tethered with Aperture 3?
Which cameras support tethered shooting from a computer?
Can an Olympus PEN E-PL3 be tethered to a computer for studio shooting?
Can a Panasonic DMC-FZ100 be remotely controlled from a computer over USB?