Numeralize (Method) - OCR for AnyDoc - Foundation 23.1 - Foundation 23.1 - AnyDoc - external

OCR for AnyDoc Programming Reference Guide

Platform
AnyDoc
Product
OCR for AnyDoc
Release
Foundation 23.1
License

Description

Converts the following numbers that were misread as letters to the correct number:

  • Uppercase letters ‘O', ‘Q' and ‘D' are converted to a 0 (zero).

  • Uppercase letters ‘I' and ‘L' are converted to a 1 (one).

  • Uppercase letter ‘Z' is converted to a 2 (two).

  • Uppercase letter ‘B' is converted to an 8 (eight).

  • Uppercase letter ‘S' is converted to a 5 (five).

Applicable Events

Post Extract, AnyApp Post Extract, Pre-Verify, Interactive, Verification Function Key (F-Key), Post-Verify

Syntax

object.Numeralize

Parameters

Object is a reference to the Application object. For more information, see Application Object (page Application Object).

Numeralize is the command.

Example

Dim strResult, strData

Dim oZone

Set oZone = Form.Zone(5)

strData = oZone.Line(1).Value ‘ We expect a numeric value of OCR results

‘ strData = “4QLZBS”

strResult = Application.Numeralize(strData) ‘ Convert “mis-OCR'd” result to ensure numeric

‘ strResult = “401285”