IDS XS相机的图像功能
IDS-XS-TOOLS-UiS的Python项目详细描述
IDS XS工具-UiS
用于处理图像和圆盘对象的类和函数
安装
pip安装IDS XS工具ui
目录
图像函数
Functions to capture image, find pucks and test if image is blurry.
冰球类
^{pr2}$函数示例;
capture_image(凸轮,夹持器高度)
捕获图像并返回图像数组
需要夹持器高度。在
findPucks(cam,robot,robtarget\upucks,cam_comp=False)
通过捕获图像并扫描图像中的二维码来查找相机帧中的所有圆球。
在代码被精确定位后,一系列转换碰巧最终创建了robtargets
可以发送到RobotWare。
机器人,先前发现的冰球和摄像机补偿是否已执行或不需要。在
set_position(self,position)
设置属于冰球的[x,y]坐标。在
使用示例
# Two ways to import:
import ids_xs_tools
# or
from ids_xs_tools import ImageFunctions, Puck
# Then again two ways to excecute wanted commands:
ids_xs_tools.ImageFunctions.findPucks(config.cam, norbert, robtarget_pucks, 195)
# or
ImageFunctions.findPucks(config.cam, norbert, robtarget_pucks, 195)
- 项目
标签: