Skip to Main Content
Cognex Support Hub
Logo

Alphanumeric Image Marking Script For Intellect | v1

DVTISCR: 0 MB

Version: 1

Release Date: 04/03/2009

Language: English

Download

Content Summary

This script places a 5x5 pixel alphanumeric character string at any image location in any color, using the MarkImage() function. By default, it displays the current image ID in the top left corner. Updated for Intellect, it features changes such as String.getBytes(), indexBase[0], color as byte, and adjustable character spacing. To use, create a script sensor, edit the script, and load it from the sensor's menu. Ensure the script's name matches the sensor's name.

This script marks any 5x5 pixel (fixed char size) alphanumeric character string at any location in the image in any color Supported by the MarkImage() function. As a default it will draw the current image ID in the upper left hand corner of the image. This script is an updated version of a previous FrameWork script adapted for Intellect. Changes: String.toByteArray() --> String.getBytes() indexBase[1] --> indexBase[0] Color as integer --> color as byte Added adjustable character spacing Usage: Create a script sensor, edit the script, choose File, Open from the script sensor's menu and load this script from file. The name of the script must be changed to match the name of the script sensor.