How to use Vision.takeSnapshot()

Get more with VEXcode
We recommend you transition to our new software. VEXcode has both block-based and text-based options, that work on Chromebooks, iPads, Android tablets, Windows and Macs. Visit code.vex.com for more details on how to download VEXcode.
VEX Coding studio has been discontinued and is no longer available for download. Already downloaded? The program will continue to function but will no longer be supported.
Users who transition to VEXcode can migrate their C++/C++ Pro projects to VEXcode Text by following this article.

Step 1: Connect the Vision Sensor

  • Ensure that the Vision Sensor is connected to the V5 Robot Brain via Smart cable, and directly connected to the computer via a Micro USB Cable.

Step 2: Configure Color Signature(s)

Step 3: Coding in VEX Coding Studio

  • Add a Vision1.takeSnapshot(SIG_1) command to your code.

What does Vision.takeSnapshot() do?

When the  vision.takeSnapshot() command is executed, the Vision Sensor takes a snapshot of whatever is in view. The command will then search the snapshot for the color signature that was specified in the parentheses and stores information about the signatures found into an array. The order in which information is stored in the array is based on the overall size of the signature, from largest to smallest. The number of found objects can be shown by using a Brain.Screen.print(vision.objectsCount) command.