How to run examples

Our sample applications are the fastest and easiest way to get familiar with Aspose.OCR for Java and to explore its features and capabilities.

Downloading the examples

All Aspose.OCR for Java examples are hosted on GitHub. You can either clone the repository using your favorite GitHub client or download it as a ZIP archive.

You can run these examples with any IDE of you choice. src/main/resources subfolder of the Examples folder contains sample files to be recognized.

Feel free to contact us through our [Free Support Forum] (https://forum.aspose.com/c/ocr/16) if you have any problems running the examples.

Running examples with Eclipse

  1. Click File \ Import menu and browse for the example path. You can also import the examples directly from the GitHub repository.
  2. Add the required JAR files (libraries) to the project.
  3. Click Run to execute an example.

Running examples with IntelliJ IDEA

  1. Click the File \ Open menu, browse for the project folder, and select the pom.xml file. All dependencies will be downloaded automatically.
  2. From the Project tab, browse for the example in src/main/java folder.
  3. To run the example, right click the file and choose Run ‘[example]’. The example will be executed and the output will be shown in the console output window.

Running examples with NetBeans

  1. Click File \ Open Project menu and browse for the folder that you cloned or downloaded from GitHub.
  2. Select and open Examples folder. It icon shows that it is a Maven project.
    All dependencies will be downloaded automatically.
  3. From the Projects tab, browse for the examples in source packages.
  4. To run an example, right click the file and choose Run File. The example will be executed and the output will be shown in the console output window.

Contributing

All examples in the repository are open source and are free to use in your own applications.

If you would like to add or improve the example, do not hesitate to contribute to the project. Fork the repository, edit the source code and create a pull request. We will review proposed changes and include them in the master branch.