NET Thor摄像头的Python接口。
thorcam的Python项目详细描述
索卡姆
使用.Net的Thor科学相机的Python接口。在
有关详细信息和入门信息:https://matham.github.io/thorcam/index.html。在
安装https://matham.github.io/thorcam/installation.html。在
基本示例
首先创建一个子类以打印摄影机结果:
fromthorcam.cameraimportThorCamclassMyThorCam(ThorCam):defreceived_camera_response(self,msg,value):super(MyThorCam,self).received_camera_response(msg,value)ifmsg=='image':returnprint('Received "{}" with value "{}"'.format(msg,value))defgot_image(self,image,count,queued_count,t):print('Received image "{}" with time "{}" and counts "{}", "{}"'.format(image,t,count,queued_count))
然后使用相机:
^{pr2}$- 项目
标签: