VEX V5 Python API
Public Member Functions | Public Attributes | List of all members
vex.VisionObject Class Reference

Public Member Functions

def __init__ (self)
 Creates a new vision object object with all properties set to default values. More...
 
def flip_angle (self)
 Inverts the anlge for this object. More...
 
def clear (self)
 Sets all properties for this object to defualt values. More...
 

Public Attributes

 id
 The unique ID of the object. More...
 
 originX
 The top left x position of the object. More...
 
 originY
 The top left y position of the object. More...
 
 centerX
 The center x position of the object. More...
 
 centerY
 The center y position of the object. More...
 
 width
 The width of the object. More...
 
 height
 The height of the object. More...
 
 angle
 The angle of the object. More...
 
 exists
 True if the vision sensor detects the object, False if not. More...
 

Constructor & Destructor Documentation

◆ __init__()

def vex.VisionObject.__init__ (   self)

Creates a new vision object object with all properties set to default values.

Member Function Documentation

◆ flip_angle()

def vex.VisionObject.flip_angle (   self)

Inverts the anlge for this object.

◆ clear()

def vex.VisionObject.clear (   self)

Sets all properties for this object to defualt values.

Member Data Documentation

◆ id

vex.VisionObject.id

The unique ID of the object.

◆ originX

vex.VisionObject.originX

The top left x position of the object.

◆ originY

vex.VisionObject.originY

The top left y position of the object.

◆ centerX

vex.VisionObject.centerX

The center x position of the object.

◆ centerY

vex.VisionObject.centerY

The center y position of the object.

◆ width

vex.VisionObject.width

The width of the object.

◆ height

vex.VisionObject.height

The height of the object.

◆ angle

vex.VisionObject.angle

The angle of the object.

◆ exists

vex.VisionObject.exists

True if the vision sensor detects the object, False if not.