NET Thor摄像头的Python接口。

thorcam的Python项目详细描述


索卡姆

Github Build Status

使用.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}$

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java OpenShift的齿轮特性   java如何在Liferay站点的每个页面上放置公司地址和电话?   java确定整数数组中是否存在一个子集,在两个条件下求和到给定的目标值   序列化为什么java中的serialVersionUID必须是静态的、最终的、长类型的?   java响应返回null   java注入接口实现Quarkus   java我不明白为什么第二次排序的运行时间比第一次慢?   (Java)显示图像的最佳方式?   java Android应用程序因添加布局而崩溃   java如何在运行时获取泛型变量的类   java Selenium web驱动程序:无效的选择器:*:WebKitFullScreenSentor   Spring中的java注入值始终为空   Eclipse中带有TestNG插件的@BeforeSuite和@AfterSuite的java问题   使用trycatch块、filewriter和printwriter在java中创建自定义类   如何在Java 安卓上绘制相交的两条线