Accusoft.OCRXpress.Java
Samples

All code samples are located in the “samples” sub-folder of the OCRX Xpress for Java install directory. They are located in the $HOME/Accusoft/OCRXpressJava3-64/samples folder.

Please refer to the "How to Build and Run Samples" section below for help getting started with building the samples.

OCR Xpress for Java has the following samples to get you started:

Name Description
Basic Recognizes the text in an image and outputs the result to a file.
Memory Recognizes the text in an image, outputs the result to an in-memory structure, and retrieves data from that structure.
Multi-page Recognizes the text in multiple images and outputs the results to a multi-page file.

How to Build and Run Samples

Using Command Line Tools

  1. Navigate to the sample folder. For example, for the basic sample use the following command:
    Copy Code
    cd $HOME/Accusoft/OCRXpressJava3-64/samples/basic
    
  2. In the sample folder run the following command
    Copy Code
    ./runSample.sh
    

Using Maven

  1. Navigate to the sample folder. For example, for the basic sample use the following command:
    Copy Code
    cd $HOME/Accusoft/OCRXpressJava3-64/samples/basic
    
  2. In the sample folder you will need to run the following command:
    Copy Code
    mvn compile package dependency:copy-dependencies
    
  3.  After the command has successfully completed, the “target" folder will be created in the sample folder.
  4. Run the sample with the following command:
    Copy Code
    java -jar target/basic-1.0.jar
    

Using an IDE

  1. To get started, open either Netbeans, Eclipse or IntelliJ.
  2. Navigate to the sample folder, open a sample and then compile the project.
    This will unpack all the required Maven dependencies needed to run OCRXpress.
  3. Now you will be able to edit your sample file.

 

 

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback