Vision Sensing#

The Vision Sensor must be connected to your V5 Brain and configured in VEXcode V5 before it can be used.

Refer to these articles for more information about using the Vision Sensor.

Take Vision Sensor Snapshot#

The Take Vision Sensor Snapshot block is used to take a snapshot from the Vision Sensor.

  take a [Vision1 v] snapshot of [SELECT_A_SIG v]

The Take Vision Sensor Snapshot block will capture the current image from the Vision Sensor to be processed and analyzed for color signatures and codes.

A snapshot is required first before using any other Vision Sensor blocks.

Choose which Vision Sensor to use.

Vision sensor snapshot device interface displaying various sensing parameters and configurations for robotics.

Select which vision signature to use. Vision signatures are configured from the Devices window.

Vision sensor snapshot showing detected objects and their properties for analysis in robotics applications.

Set Vision Sensor Object Item#

The Set Vision Sensor Object Item block is used to set the object item (of the object you want to learn more information about) out of the number of objects detected.

  set [Vision1 v] object item to (1)

Choose which Vision Sensor to use.

Vision sensor object device interface displaying various sensing and control parameters for robotics applications.

Vision Sensor Object Count#

The Vision Sensor Object Count block is used to report how many objects the Vision Sensor detects.

  ([Vision1 v] object count)

The Take Vision Sensor Snapshot block will need to be used before the Vision Sensor Object Count block reports a number of objects.

The Vision Sensor Object Count block will only detect the number of objects from the last snapshot signature.

Choose which Vision Sensor to use.

Vision sensor interface displaying object count and detection status for robotics applications.

Vision Sensor Object Exists?#

The Vision Sensor Object Exists? block is used to report if the Vision Sensor detects a configured object.

  <[Vision1 v] object exists?>

The Take Vision Sensor Snapshot block will need to be used before the Vision Sensor Object Exists? block can detect any configured objects.

The Vision Sensor Object Exists? block reports True when the Vision Sensor detects a configured object.

The Vision Sensor Object Exists? block reports False when the Vision Sensor does not detect a configured object.

Choose which Vision Sensor to use.

Vision sensor interface showing object detection status and various sensing parameters on a touchscreen display.

Vision Sensor Object#

The Vision Sensor Object block is used to report information about a detected object from the Vision Sensor.

  <[Vision1 v] object [width v] :: #5cb0d6>

The Take Vision Sensor Snapshot block will need to be used before the Vision Sensor Object Exists? block can detect any configured objects.

Choose which Vision Sensor to use.

Vision sensor object device interface displaying various sensing and control parameters for robotics applications.

Choose which property to report from the Vision Sensor:

  • width - How wide the object is in pixels, from 2 - 316 pixels.

  • height - How tall the object is in pixels, from 2 - 212 pixels.

  • centerX - The center X coordinate of the detected object, from 0 - 315 pixels.

  • centerY - The center Y coordinate of the detected object, from 0 - 211 pixels.

  • angle - The angle of the detected object, from 0 - 180 degrees.

Diagram illustrating the properties and functionalities of a vision sensor in robotics sensing applications.