ReadOCRFile Method

NI Vision for Visual Basic

ReadOCRFile Method

Syntax

NIOCR.ReadOCRFile Filename, [Options = niocrReadCharacterSetOnly], [AppendToExistingCharacterSet = False], [CharacterSetDescription = ""]

Return Type

Long

Purpose

Reads a character set and/or the properties of NIOCRProcessingOptions, NIOCRSizeAndSpacingOptions, and NIOCRReadOptions from the file specified by Filename.

Parameters

Filename as String

File that the method uses for this operation.

Options as Variant

Information to read from the character set file. The default value is niocrReadCharacterSetOnly.

AppendToExistingCharacterSet as Variant

Option to append or replace character sets. Set this value to True to append trained characters to the existing character set. Set this value to False to replace the existing character set. The default is False.

CharacterSetDescription as Variant

On return, the description for the character set that the method read. The default is an empty string.