How to control the SLR for programmable photography by raspberry pie
Editor to share with you how raspberry pie controls SLR cameras for programmable photography, I believe most people do not know much about it, so share this article for your reference. I hope you will learn a lot after reading this article. Let's take a look at it!
1. Installation
The raspberry pie system is based on the Debain system and is installed directly with apt.
Apt-get install gphoto2
Connect the camera with a USB cable to the raspberry pie. It is best to use an active USB HUB to avoid a shortage of power. Turn on the camera power, type lsusb in the raspberry pie, and you can see "Nikon Corp." The equipment, this is our camera. For other cameras, you can check the supported camera models by using-list-cameras
Gphoto2-list-cameras | grep D3100 returned "Nikon DSC D3100 (PTP mode)" 2. Some commonly used instructions
-a view the features supported by the camera.
-L view the photo list and photo ID on the camera.
-p 1-10 get the specified ID range of photos to the current directory, 1x 10.
-P gets all the photos to the current directory.
-d 1-10 deletes the specified range of photos.
-D delete all photos.
-capture-image takes pictures.
-capture-image-and-download took a picture and posted it on the raspberry pie.
-number of shots taken by F COUNT.
-I the interval between multiple photos taken by SECONDS (in seconds).
The combination of these three parameters can be used to shoot Timelapse.
For example: gphoto2-capture-image-I 30-F 60
These are all the contents of the article "how Raspberry pie controls SLR cameras for programmable photography". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!