VEX IQ Python API
|
Public Member Functions | |
def | __init__ (self, index, brightness=None, signatures=None) |
Creates a new vision object on the port specified. More... | |
def | take_snapshot (self, id, count=None) |
Takes a data sample from the vision sensor. More... | |
Public Attributes | |
object_count | |
Number of objects found in the data sample. More... | |
objects | |
List of the largest objects found in the data sample. More... | |
largest_object | |
The largest object found in the data sample. More... | |
def vision.Vision.__init__ | ( | self, | |
index, | |||
brightness = None , |
|||
signatures = None |
|||
) |
Creates a new vision object on the port specified.
The vision sensor has a resolution of 316x212 pixels
index | The port index for this vision. The index is zero based. |
brightness | The vision sensor brightness seting. Values are 0 to 255 |
signatures | List of signature objects used to setup the detection signatures for this sensor. |
def vision.Vision.take_snapshot | ( | self, | |
id, | |||
count = None |
|||
) |
Takes a data sample from the vision sensor.
id | The signature id or color code of the object to look for. |
count | the amount of objects to look for. The largest of the object will be returned. Optional. |
vision.Vision.object_count |
Number of objects found in the data sample.
vision.Vision.objects |
List of the largest objects found in the data sample.
@type vision.VisionObject[]
vision.Vision.largest_object |
The largest object found in the data sample.
@type vision.VisionObject