Module vision

Module vision 

Source

Structs§

vision_object_s_t
This structure contains a descriptor of an object detected by the Vision Sensor
vision_signature_s_t
This structure contains the parameters used by the Vision Sensor to detect objects.

Constants§

E_VISION_OBJECT_COLOR_CODE
E_VISION_OBJECT_LINE
E_VISION_OBJECT_NORMAL
E_VISION_ZERO_CENTER
E_VISION_ZERO_TOPLEFT
VISION_FOV_HEIGHT
VISION_FOV_WIDTH
VISION_OBJECT_ERR_SIG

Functions§

vision_clear_led
Clears the vision sensor LED color, resetting it back to its default behavior, displaying the most prominent object signature color.
vision_create_color_code
Creates a color code that represents a combination of the given signature IDs. If fewer than 5 signatures are to be a part of the color code, pass 0 for the additional function parameters.
vision_get_by_code
Gets the nth largest object of the given color code according to size_id.
vision_get_by_sig
Gets the nth largest object of the given signature according to size_id.
vision_get_by_size
Gets the nth largest object according to size_id.
vision_get_exposure
Gets the exposure parameter of the Vision Sensor. See https://pros.cs.purdue.edu/v5/tutorials/topical/vision.html#exposure-setting for more details.
vision_get_object_count
Gets the number of objects currently detected by the Vision Sensor.
vision_get_signature
Gets the object detection signature with the given id number.
vision_get_white_balance
Get the white balance parameter of the Vision Sensor.
vision_print_signature
Prints the contents of the signature as an initializer list to the terminal.
vision_read_by_code
Reads up to object_count object descriptors into object_arr.
vision_read_by_sig
Reads up to object_count object descriptors into object_arr.
vision_read_by_size
Reads up to object_count object descriptors into object_arr.
vision_set_auto_white_balance
Enables/disables auto white-balancing on the Vision Sensor.
vision_set_exposure
Sets the exposure parameter of the Vision Sensor. See https://pros.cs.purdue.edu/v5/tutorials/topical/vision.html#exposure-setting for more details.
vision_set_led
Sets the vision sensor LED color, overriding the automatic behavior.
vision_set_signature
Stores the supplied object detection signature onto the vision sensor.
vision_set_white_balance
Sets the white balance parameter of the Vision Sensor.
vision_set_wifi_mode
Sets the Wi-Fi mode of the Vision sensor
vision_set_zero_point
Sets the (0,0) coordinate for the Field of View.
vision_signature_from_utility
Creates a signature from the vision sensor utility

Type Aliases§

vision_color_code_t
Color codes are just signatures with multiple IDs and a different type.
vision_object_type_e_t
This enumeration defines the different types of objects that can be detected by the Vision Sensor
vision_zero_e_t