Batch Processing Controls

NI Vision Assistant

Batch Processing Controls

  • Image Source
    • Hard Disk—Processes the images in the directory you specify.
    • Browser—Processes all images in the Image Browser.
    • Acquisition—Acquires images using the module you select in Acquisition Modules.
      • Acquisition Modules—Types of acquisition you can perform during batch processing.
      • Iterations—Number of times you want to acquire an image during batch processing.
      • Period (s)—Length of the delay, in seconds, between acquisitions.
  • Script Steps
    • Analysis Mode
      • Open Results Panel—Displays the results panel for the selected analysis step for each image.
      • Save Results—Applies the script to each image and saves the analysis results to a text file.
      • Save Options—Displays the options you specified in the Save Results Setup dialog box.
    • Process Mode
      • Open Process Interface—Displays each image in the Processing window and displays the Parameter window for each step in the script. You can modify the step and save the changes before Vision Assistant processes the next image.
      • Display Result Image—Applies the script to each image and displays the resulting image.
      • Save Result Image—Applies the script to each image and allows you to save each processed image.
      • Save Options—Displays the options you specified in the Save Results Image Setup dialog box.

Save Results Setup

  • One file for all results—Creates a single results file that contains the results information for each file in the batch process.
  • Separate files for each image—Creates separate results files for each image in the batch process.
  • Folder Path—Directory in which you want to save the results file
  • File Prefix—Name of the individual results file when you select Separate files for each image, or the prefix associated with the index for each results file when you select Separate files for each image.

Save Results Image Setup

  • File Format—Standard graphics format you want to save the processed image in.
  • Folder Path—Location to which you want to save the processed images.
  • File Prefix and Start Index—Text and browser position information you can use to distinguish the processed images. For example, you can type Bracket and 01 to indicate that the processed image is the processed result of the first bracket image in the browser.
    Note  Values for File Prefix and Start Index are required to save results images.
  • Save Image Calibration—Saves calibration information with the image, if applicable.
  • Expand Dynamic of Binary Images—Replaces all pixels whose value is 1 with pixels whose value is 255 so that the image appears black and white when opened. If you are processing a binary image and you do not select this option, the image appears entirely black.
  • Compress—When selected, specifies that BMP images should be compressed.
  • Image Quality—Level of compression to apply to JPEG and PNG images. Valid values are 0 through 1000. A value of 0 completely compresses the image and produces a low-quality image. A value of 1000 compresses the image slightly and produces a high-quality image.
  • Lossless—When selected, specifies that images should be compressed with lossless compression.
  • Ratio—The degree to which to compress the JPEG2000 file when Lossless is not selected. For example, if Ratio is 50, the resulting file will be 50 times smaller than the size of the image in memory. This parameter is ignored if Lossless is True.
  • Filter—Filter you want to use to compress AVI files.
  • Frame Rate—Movie frame rate for AVI files.

Related Topic

Performing batch processing