The Java Developer’s Guide to
Asprise OCR SDK 4.0
Prepared by: LAB Asprise!
Nov 2007
ALL RIGHTS RESERVED, ASPRISE © 2007
www.asprise.com
Asprise OCR SDK v4.0 – Java Developer’s Guide
i
0BTable of Contents
1 1BIntroduction............................................................................... 1
1.1 About OCR ................................................................................................................................................. 1
1.2 About Asprise OCR SDK ..................................................................................................................... 1
1.3 Features of Asprise OCR ..................................................................................................................... 1
1.4 Components of Asprise OCR for Java ........................................................................................ 2
1.5 21BCompatibility of Asprise OCR SDK ............................................................................................... 2
1.6 Asprise OCR for Java Installation ................................................................................................... 3
1.7 Development Environment Setup .............................................................................................. 4
1.7.1 Windows ................................................................................................................................................ 4
1.7.2 Linux/Solaris/Mac OS X/Other Unix ...................................................................................... 4
2 OCR with Asprise OCR in Java ................................................ 5
2.1 Jump Start .................................................................................................................................................. 5
2.2 Input and Output ................................................................................................................................... 6
2.3 Advanced Usages .................................................................................................................................. 6
2.3.1 Recognizes characters (letters and numbers) from the specified image ...... 6
2.3.2 Recognizes characters from part of the image .............................................................. 7
2.3.3 Recognizes a barcode from the specified image ......................................................... 7
2.3.4 Recognizes one or more barcode from the specified image ............................... 8
2.3.5 Recognizes characters and barcodes from the specified image ........................ 8
2.3.6 Recognizes characters and barcodes from the specified image ........................ 8
Asprise OCR SDK v4.0 – Java Developer’s Guide
ii
2.3.7 Sets the OCR native library path explicitly ........................................................................ 9
3 Advanced Topics .................................................................... 10
3.1 Using Asprise OCR in Threads ..................................................................................................... 10
3.2 Software Packaging and Distribution ..................................................................................... 10
4 OCR TIFF and PDF Files ....................................................... 11
4.1 Perform OCR on TIFF Images ....................................................................................................... 11
4.2 Perform OCR on PDF files .............................................................................................................. 11
4.2.1 PDF text extraction ....................................................................................................................... 12
5 Image Acquisition Components .............................................. 13
5.1 JImageDialog ......................................................................................................................................... 13
5.1.1 Advantages ....................................................................................................................................... 14
5.1.2 Sample Uses ..................................................................................................................................... 14
5.1.3 Supported Image Formats ...................................................................................................... 16
5.1.4 Compatibility ................................................................................................................................... 17
5.1.5 Software Packaging and Distribution ............................................................................... 17
5.2 JImageFileChooser ............................................................................................................................. 17
5.2.1 Sample Use ....................................................................................................................................... 18
5.2.2 Supported Image Formats ...................................................................................................... 18
5.2.3 Compatibility ................................................................................................................................... 18
5.2.4 Software Packaging and Distribution ............................................................................... 18
6 Support and Professional Services ........................................ 19
6.1 Support Web Site ................................................................................................................................ 19
6.2 Basic Support ......................................................................................................................................... 19
Asprise OCR SDK v4.0 – Java Developer’s Guide
iii
6.3 30BPremium Support Services + Updates ................................................................................... 19
Asprise OCR SDK v4.0 – Java Developer’s Guide
- 1 -
1 1BIntroduction
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 Java, .Net, Delphi, Visual Basic (VB), Borland C,
etc. on multiple platforms – Windows, Linux, Mac OS, Solaris and AIX.
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.
♦ 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.
Currently, the following bar code formats are supported:
- 1
- 2
前往页