简体   繁体   English

在 Linux 上的 gphoto2 中连拍拍摄照片

[英]Burst capture photos in gphoto2 on Linux

Not sure where this best belongs: photography, electronics, software, or here.不确定这最适合哪里:摄影、电子、软件或这里。 I have a Canon PowerShot G9 camera and I am using gphoto2 on Linux to control it over USB.我有一台佳能 PowerShot G9 相机,我在 Linux 上使用 gphoto2 通过 USB 控制它。

I need to take photos continuously and copy them to the computer (asynchronously is fine, so photos could be taken at maximum speed and transfers could queue up).我需要连续拍照并将它们复制到计算机(异步可以,这样可以以最大速度拍照并且传输可能会排队)。

With gphoto2, I can do continuous capture like this:使用 gphoto2,我可以像这样进行连续捕获:

gphoto2 --capture-image -F <frames> -I <seconds>

This gives me at best 4 seconds between captures (0.25 fps).这给了我最多 4 秒的捕获间隔(0.25 fps)。 If I unplug the camera and use its burst mode, I can take shots at 0.8 fps.如果我拔掉相机并使用它的连拍模式,我可以以 0.8 fps 的速度拍摄。 I don't seem to be able to change the burst setting when plugged in with gphoto2.插入 gphoto2 时,我似乎无法更改连拍设置。 I tried some sample code that uses libgphoto2 directly in C, but that was even slower.我尝试了一些直接在 C 中使用 libgphoto2 的示例代码,但速度更慢。 How can I accomplish faster capture with this camera, or what cameras would let me do this?我怎样才能用这台相机完成更快的拍摄,或者什么相机能让我做到这一点?

尝试突发模式:

gphoto2 --set-config viewfinder=1 --set-config capturemode='Burst' --set-config burstnumber=5 --set-config capturetarget=1 --capture-image-and-download --force-overwrite

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM