Hand Held Products 4X00 manual OemSetupOCR, Resultt oemSetupOCR, NFont, PszTemplate, NDirection

Page 73

oemSetupOCR

This function is used to set the Optical Character Recognition (OCR) decoding options. OCR character recognition is less secure than reading bar codes. Misreads may occur if a check character is not used.

Result_t oemSetupOCR (

OCRMode_t nFont, TCHAR *pszTemplate, TCHAR *pszGroupG, TCHAR *pszGroupH, TCHAR *pszCheckChar OCRDirection_t nDirection

)

Return Values

RESULT_SUCCESS

RESULT_ERR_PARAMETER

Parameters

nFont

This determines which OCR fonts (if any) are selected for decoding. The following values are used:

OCR_DISABLED OCR_A OCR_B OCR_MONEY

OCR_MICR (currently unsupported)

pszTemplate

A null-terminated string that indicates one or more template patterns for the OCR decode. All characters in the font are matched as is, except for the following:

a - alphanumeric character c - check character

d - a digit from 0 - 9 e - any character

g - any character specified in group G h - any character specified in group H

l- alphabetic letter r - delimits a row

t - delimits multiple templates

pszGroupG

A null-terminated string that defines the set of characters matching group "g" in a template.

pszGroupH

A null-terminated string that defines the set of characters matching group "h" in a template.

pszCheckChar

A null-terminated string that defines the legal characters for checksum computation in a decoded message. Use the string constant "0123456789" for modulo 10 checksums, and the string constant "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" for modulo 36 checksums.

nDirection

Tells the OCR decoder which way the characters are usually oriented with respect to the image. The decoder still decodes any orientation, but use of this parameter can increase decoding speed. It also makes decoding more reliable for numbers that contain only the digits "0, 6, 8," and "9." The constant specifies the direction taken when the operator reads the message from start to finish. The following values are used:

LeftToRight

TopToBottom

RightToLeft

BottomToTop

IMAGETEAM™ 4X00 Series Software Development Kit (SDK) User’s Guide

2 - 59

Image 73
Contents User’s Guide Disclaimer Table of Contents Page Symbology Identifiers Page Introduction Features of the 4X00 Series Image Engine API Library Summary Page Page Data Type Definitions Tchar Page OemAimerOn OemAcquireImageOemDisableSymbology OemDefaultSymbologyOemConnect OemEnableSymbology OemDisableSymbologyAllOemEnableSymbologyAll OemDisconnectOemGetDecodeAttemptLimit OemGetAPIRevisionOemGetDecodeCenteringWindow OemGetDecoderRevision OemGetDecodeModeOemGetDecodeTime OemGetExposureSettings OemGetErrorMessageResultt oemGetErrorMessage Resultt oemGetExposureSettingsResultt oemGetImage OemGetImageOemGetImagerInfo OemGetImageDataPrototype Resultt oemGetImageData Resultt oemGetImagerInfoPnCols OemGetImagerPropertiesResultt oemGetImagerProperties PImgPropOemGetLastImageExt OemGetLastImageResultt oemGetLastImage Resultt oemGetLastImageExtOemGetLeaveLightsOn OemGetLastImageSizeResultt oemGetLastImageSize Resultt oemGetLeaveLightsOnOemGetLinearRange OemGetPrintWeightOemGetMaxMessageChars OemGetScanDriverRevision OemGetSetupAllOemGetSearchTimeLimit OemGetSetupAztec OemGetSetupAusPostOemGetSetupBPO OemGetSetupChinaPost OemGetSetupCanPostResultt oemGetSetupCanPost Resultt oemGetSetupChinaPostOemGetSetupCodablock OemGetSetupCodabarResultt oemGetSetupCodabar Resultt oemGetSetupCodablockResultt oemGetSetupCode11 OemGetSetupCode11OemGetSetupCode16K OemGetSetupCode128Resultt oemGetSetupCode128 Resultt oemGetSetupCode16KOemGetSetupCode39 OemGetSetupCode32Resultt oemGetSetupCode32 Resultt oemGetSetupCode39Resultt oemGetSetupCode49 OemGetSetupCode49PbFullAscii PbAppendOemGetSetupComposite OemGetSetupCode93Resultt oemGetSetupCode93 Resultt oemGetSetupCompositeResultt oemGetSetupCompositeEx OemGetSetupCompositeExPbCompositeOnUpcEan OemGetSetupDataMatrix OemGetSetupCouponCodeResultt oemGetSetupCouponCode Resultt oemGetSetupDataMatrixOemGetSetupEAN8 OemGetSetupDutchPostResultt oemGetSetupDutchPost Resultt oemGetSetupEAN8OemGetSetupEAN13 Resultt oemGetSetupIATA25 OemGetSetupIATA25OemGetSetupInt25 OemGetSetupImagerPrototype Resultt oemGetSetupImager Resultt oemGetSetupInt25OemGetSetupJapost OemGetSetupISBTOemGetSetupKoreanPost Resultt oemGetSetupMaxicode OemGetSetupMaxicodePCarrierMsgOnly Resultt oemGetSetupMesa OemGetSetupMesaP9MSEnabled Resultt oemGetSetupMSI OemGetSetupMSIPMinLength PMaxLength OemGetSetupOCR OemGetSetupMx25Resultt oemGetSetupMx25 Resultt oemGetSetupOCRPszGroupH PszGroupGPszCheckChar OemGetSetupPlessey OemGetSetupPlanetResultt oemGetSetupPlanet Resultt oemGetSetupPlesseyResultt oemGetSetupPosiCode OemGetSetupPosiCodePLimited OemGetSetupQR OemGetSetupPostnetResultt oemGetSetupPostnet Resultt oemGetSetupQROemGetSetupStrt25 OemGetSetupRSSResultt oemGetSetupRSS Resultt oemGetSetupStrt25OemGetSetupTLC39 OemGetSetupTelepenResultt oemGetSetupTelepen Resultt oemGetSetupTLC39OemGetSetupUPCA OemGetSetupTriopticResultt oemGetSetupTrioptic Resultt oemGetSetupUPCAResultt oemGetSetupUPCE OemGetSetupUPCEPE1Enabled PE0EnabledOemGetVideoReverse PbExpandVersionEOemImageStreamStart OemImageStreamInitOemImageStreamRead OemImageStreamStop OemPowerOffImagerOemLeaveLightsOn OemLightsOnOemSetDecodeAttemptLimit Resultt oemPowerOffImagerOemSetDecodeCenteringWindow Resultt oemSetDecodeAttemptLimitOemSetDecodeMode OemSetExposureSettingsOemSetExposureMode OemSetLinearRange OemSetPrintWeightOemSetScanningLightsMode Resultt oemSetLinearRangeOemSetupChinaPost OemSetupAztecOemSetSearchTimeLimit OemSetupCodablock OemSetupCodabarResultt oemSetupCodabar Resultt oemSetupCodablockOemSetupCode128 OemSetupCode11Resultt oemSetupCode11 Resultt oemSetupCode128OemSetupCode39 OemSetupCode16KResultt oemSetupCode16K Resultt oemSetupCode39Resultt oemSetupCode49 OemSetupCode49BFullAscii BAppendOemSetupComposite OemSetupCode93OemSetupCompositeEx OemSetupEAN8 OemSetupDataMatrixResultt oemSetupDataMatrix Resultt oemSetupEAN8Resultt oemSetupEAN13 OemSetupEAN13BAddendaReq OemSetupInt25 OemSetupIATA25Resultt oemSetupIATA25 Resultt oemSetupInt25OemSetupMaxicode OemSetupKoreanPostResultt oemSetupKoreanPost Resultt oemSetupMaxicodeResultt oemSetupMesa OemSetupMesaOemSetupMx25 OemSetupMSIResultt oemSetupMSI Resultt oemSetupMx25Resultt oemSetupOCR OemSetupOCRNFont PszTemplateOemSetupPlessey OemSetupPlanetResultt oemSetupPlanet Resultt oemSetupPlesseyOemSetupPostnet OemSetupPosiCodeOemSetupQR OemSetupStrt25 OemSetupRSSResultt oemSetupRSS Resultt oemSetupStrt25OemSetupUPCA OemSetupTelepenResultt oemSetupTelepen Resultt oemSetupUPCAResultt oemSetupUPCE OemSetupUPCEBXmitNumSys OemSetVideoReverse BEnabledOemStartIntellImgXfer BExpandVersionEResultt oemStartIntellImgXfer Resultt oemWaitForDecode OemWaitForDecodeResultt oemWaitForDecodeRaw OemWaitForDecodeRawResultt oemWaitMultipleDecode OemWaitMultipleDecodeFpMultiReadCallBack OemWaitMultipleDecodeRawFpContinueCallBack Resultt oemWaitMultipleDecodeRawSymbology Identifiers Function Result Values Mail eutechsupport@handheld.com Mail latechsupport@handheld.comMail aptechsupport@handheld.com Imageteam 4X00 Series Software Development Kit SDK Page Hand Held Products, Inc