签名#

The Signature class holds the Vision Sensor Signatures. Signature objects are used to make Code Class objects and used directly with the Vision class. Up to seven Signatures can be stored at once.

使用以下构造函数创建签名:

Signature(index, uMin, uMax, uMean, vMin, vMax, vMean, rgb, type)

此构造函数使用九个参数:

范围

描述

index

The Signature object’s index, from 1 - 7. Note: Creating two Signature objects with the same index number will cause the second created object to override the first.

uMin

The value from uMin in the Vision Utility.

uMax

The value from uMax in the Vision Utility.

uMean

The value from uMean in the Vision Utility.

vMin

The value from vMin in the Vision Utility.

vMax

The value from vMax in the Vision Utility.

vMean

The value from vMean in the Vision Utility.

rgb

The value from rgb in the Vision Utility.

type

The value from type in the Vision Utility.

要创建签名,请转到 Vision Utility配置签名。配置签名后,从配置窗口复制参数值。

# Create a new Signature "dark_blue" with the Colordesc class.
dark_blue = Signature(1, -3911, -3435, -3673,10879, 11421, 11150,2.5, 0)