10350 Santa Monica Blvd. Suite 285, Los Angeles, CA 90025
Phone: 310-691-8920, 310-788-9840, Fax: 419-735 -2419
Card Scanning Solutions
41
Library COcr: Properties and Functions
COcr provides basic text extraction from an image file. The image file format must have a resolution of
300 dpi. The image may be in either color or black and white color scheme.
COcr Library Functions
1.1.46.
InitLibrary
Format
Parameters
[in]
License
– Null terminated string that holds license key value.
Return
LICENSE_VALID
: License is valid and the library is ready to be used.
LICENSE_INVALID
: The license is invalid. All scanner operations are disabled.
LICENSE_EXPIRED
: License has expired. All scanner operations are dis abled.
LICENSE_DOES_NOT_MATCH_LIBRARY
: The license is invalid for this library. All library
operations are disabled.
GENERAL_ERR_PLUG_NOT_FOUND
: This error returns if the attached scanner is not one of the
following scanners:
ScanShell 600
ScanShell 800
ScanShell 1000
Remarks
Use this function to initialize the COcr library. This function must be called before calling any other
function in the library.
1.1.47.
ExtractText
Type
Function.
Format
ExtractText ( _
SourceImage
As String, _
TextType
As Long, _
)
InitLibrary
(
License
As String) As Long