我使用-wait-event-and-download參數運行gphoto,以便使用我的紅外遙控器拍攝的照片保存到計算機中。 我有第二個腳本設置中斷等待處理,並拍照編程,就像這樣: #!/bin/sh
# shootnow.sh - stop the current gphoto2 process (if it exists),
# shoot a new image, then start
我檢索從gphoto2一個JPEG,產生從數據吉奧流,然後從該流創建PIXBUF: import gphoto2 as gp
from gi.repository import Gio, GdkPixbuf
camera = gp.Camera()
context = gp.Context
camera.init(context)
file = gp.CameraFile()
came