下面是一个有效的解决方案,使用python3.5(通过Anaconda安装),顺便说一句
ISO和快门的参数是硬连线的,但是如果你需要的话,这应该可以让你继续工作。在import sys
import os
import subprocess
import datetime
def func_TakeNikonPicture(input_filename):
camera_command = 'C:Program Files (x86)digiCamControlCameraControlCmd.exe'
camera_command_details = '/filename ./' + input_filename + ' /capture /iso 500 /shutter 1/30 /aperture 1.8'
print('camera details = ',camera_command_details)
full_command=camera_command + ' ' + camera_command_details
p = subprocess.Popen(full_command, stdout=subprocess.PIPE, universal_newlines=True, shell=False)
(output, err) = p.communicate()
#This makes the wait possible
p_status = p.wait(1)
# print(p.stdout.readline())
#This will give you t
最后
以上就是踏实汽车最近收集整理的关于python control_使用digicamcontrol使用Python控制尼康相机?的全部内容,更多相关python内容请搜索靠谱客的其他文章。
发表评论 取消回复