AiObjDesc#
The AiObjdesc
class holds the AI Vision Sensor AI Object IDs. It is used with the AiVision
class to create tags for AI Classifications.
Available AI Classifications:
Classroom Elements |
Competition Elements |
|||
---|---|---|---|---|
ID Number |
AI Classification |
ID Number |
AI Classification |
|
0 |
Blue Ball |
0 |
Mobile Goal |
|
1 |
Green Ball |
1 |
Red Ring |
|
2 |
Red Ball |
2 |
Blue Ring |
|
3 |
Blue Ring |
|||
4 |
Green Ring |
|||
5 |
Red Ring |
|||
6 |
Blue Cube |
|||
7 |
Green Cube |
|||
8 |
Red Cube |
To create a tag to use with the AiVision Class, use the following code:
# Create a new tag "greencube" with the AiObjdesc Class.
greencube = AiObjdesc(7)
By default, the ALL_AIOBJS
tag will return all AiObjdesc
objects with the AI Vision Sensor.