与SpotCam驱动程序的接口。
PySpotCam的Python项目详细描述
概述
此模块为spotcam驱动程序提供一个来自SPOT Imaging Solutions的python接口
安装
您需要从SPOT Imaging Solutions安装驱动程序。
要安装pyspotcam,请下载package并运行命令
python setup.py install
您还可以直接将pyspotcam目录移动到某个位置 python可以从(脚本所在的目录 使用pyspotcam运行,等等)
用法
下面是一个小例子
from PySpotCam.spot import SpotClass Spot = SpotClass() Spot.BitDepth = max(Spot.BitDepths) # Set the BitDepth to the max value Spot.ExternalTriggerMode = 1 Spot.SetExposure(gain=1, time=2) image = Spot.GetImage() print Spot.VersionInfo2
spotcam api中描述的几乎所有函数都已实现。
历史记录
- 1.0.0:初始版本
- 1.0.1:校正了setexposure方法中的错误
联系人
请将错误报告或反馈发送到Pierre Cladé。