LAB Asprise! Technical Library
THE DEVELOPER’S GUIDE TO
ASPRISE OCR SDK
Version 3.0 – All Languages, Windows Platforms
Last updated on September 15, 2005
ALL RIGHTS RESERVED BY LAB ASPRISE! © 1998, 2005.
LAB Asprise! The Developer’s Guide to Asprise OCR SDK
Table of Contents
1 INTRODUCTION..........................................................................................4
1.1 ABOUT OCR.........................................................................................4
1.2 ABOUT ASPRISE OCR SDK ...................................................................4
1.3 FEATURES OF ASPRISE OCR .................................................................4
1.4 COMPONENTS OF ASPRISE OCR SDK....................................................5
2 ASPRISE OCR SDK INSTALLATION..............................................................6
3 DEVELOPMENT ENVIRONMENT SETUP......................................................7
3.1 VISUAL BASIC .......................................................................................7
3.2 VISUAL BASIC.NET ...............................................................................7
3.3 VISUAL C++ & BORLAND C++ BUILDER...................................................7
3.4 VISUAL C++.NET .................................................................................8
3.5 .NET, C# ...........................................................................................10
4 INTRODUCTION TO ASPRISE OCR APIS ..................................................11
4.1 [STRING] OCR([STRING] IMAGEPATH, [INT] IMAGEFILETYPE) .................11
4.2 [STRING] OCRPART([STRING] IMAGEPATH, [INT] IMAGEFILETYPE, [INT]
START
X, [INT] STARTY, [INT] WIDTH, [INT] HEIGHT) ............................................13
4.3 [STRING] OCRBARCODES([STRING] IMAGEPATH, [INT] IMAGEFILETYPE) ..13
4.4 [STRING] OCRPARTBARCODES([STRING] IMAGEPATH, [INT]
IMAGE
FILETYPE, [INT] STARTX, [INT] STARTY, [INT] WIDTH, [INT] HEIGHT)............14
4.5 SUB IMAGES/PAGES ............................................................................14
5 OCR PROGRAMMING WITH VISUAL BASIC ..............................................15
6 OCR PROGRAMMING WITH VISUAL BASIC .NET......................................25
7 OCR PROGRAMMING WITH VISUAL C++/BORLAND C++/C ................29
8 OCR PROGRAMMING WITH C#, .NET......................................................32
9 APPLICATION PACKAGING AND DISTRIBUTION .....................................37
10 SUPPORT AND PROFESSIONAL SERVICES............................................38
10.1 SUPPORT WEB SITE.........................................................................38
Page 2 of 39
LAB Asprise! The Developer’s Guide to Asprise OCR SDK
10.2 BASIC SUPPORT ..............................................................................38
10.3 PREMIUM SUPPORT SERVICES ..........................................................38
10.4 PROFESSIONAL SERVICES ................................................................38
10.5 SALES RELATED, BUSINESS OPPORTUNITIES .....................................39
Page 3 of 39
LAB Asprise! The Developer’s Guide to Asprise OCR SDK
1 Introduction
1.1 About OCR
OCR (Optical Character Recognition) is the technology that allows you to transform
images (e.g., images scanned from paper documents) into editable text-based
computer files.
1.2 About Asprise OCR SDK
Embedded a high performance OCR engine, Asprise OCR SDK is OCR software
development kit that can be used with VB, VB.NET, VC++, VC.NET, C#, Java, .Net,
Borland C, Delphi, etc.
1.3 Features of Asprise OCR
An incomplete list of features offered by Asprise OCR:
Highest Level of Accuracy
Asprise OCR can easily recognize difficult documents of poor image quality;
Excellent Format Retention
Text layouts on the input documents are preserved;
High Speed
Asprise OCR uses optimized OCR engine to perform excellent recognition in very
short time;
Ease of Use
We strive to make the developer's life easier. Complex parameter configurations
are removed from Asprise OCR SDK. You only have to supply the image
document. Asprise OCR can intelligently determine the best setting internally.
Page 4 of 39
LAB Asprise! The Developer’s Guide to Asprise OCR SDK
Barcode Recognition
Beside characters (letters and numbers), Asprise OCR can recognize almost
every kind of bar code. You can choose to recognize barcode or characters or both.
Supported bar code formats include: Barcode 39, code 128 (b, c, raw), code 2/5,
EAN & UPC.
1.4 Components of Asprise OCR SDK
Asprise OCR SDK comprises two main essential components:
A set of library files, including the dll files, lib files, and header files, and
A sample application in a particular language/framework.
Page 5 of 39