Firma#

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.

Una firma se crea utilizando el siguiente constructor:

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

Este constructor utiliza nueve parámetros:

Parámetro

Descripción

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.

Para crear una firma, vaya a la Utilidad de visión y Configurar una firma. Una vez configurada, copie los valores de los parámetros desde la ventana de configuración.

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