Vision Sensor device.
More...
|
def | __init__ (self, index, brightness=50, signatures=None) |
|
def | objects (self, id, visionObjectList) |
| Get the recognized objects. More...
|
|
Vision Sensor device.
- Parameters
-
port | 1-12. None or omit to autodetect. |
brightness | 0-255 range. Optional, if omitted, won't be set. |
signatures | list or tuple of vision signatures (currently 9-item tuples). Optional, if omitted, won't be set. |
◆ __init__()
def vexiq.VisionSensor.__init__ |
( |
|
self, |
|
|
|
index, |
|
|
|
brightness = 50 , |
|
|
|
signatures = None |
|
) |
| |
◆ objects()
def vexiq.VisionSensor.objects |
( |
|
self, |
|
|
|
id, |
|
|
|
visionObjectList |
|
) |
| |
Get the recognized objects.
- Parameters
-
id | The ID of the signature to detect (1-7) |
visionObjectList | pass 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