VEX IQ Python API
Public Member Functions | List of all members
vexiq.VisionSensor Class Reference

Vision Sensor device. More...

Public Member Functions

def __init__ (self, index, brightness=50, signatures=None)
 
def objects (self, id, visionObjectList)
 Get the recognized objects. More...
 

Detailed Description

Vision Sensor device.

Parameters
port1-12. None or omit to autodetect.
brightness0-255 range. Optional, if omitted, won't be set.
signatureslist or tuple of vision signatures (currently 9-item tuples). Optional, if omitted, won't be set.

Constructor & Destructor Documentation

◆ __init__()

def vexiq.VisionSensor.__init__ (   self,
  index,
  brightness = 50,
  signatures = None 
)

Member Function Documentation

◆ objects()

def vexiq.VisionSensor.objects (   self,
  id,
  visionObjectList 
)

Get the recognized objects.

Parameters
idThe ID of the signature to detect (1-7)
visionObjectListpass the list to fill. Create it by calling VisionObjectList(). items that are invalid will have the id field set to 0, otherwise id will be set to the signature id [1-7] or color code blocks id.
Returns
number of objects recognized