Installation
Contents
[
Hide
]
Aspose.OCR for Java APIs are hosted on the Maven repository or can be installed from the local package.
Installing Aspose.OCR for Java from Maven Repository
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DinteractiveMode=false
To use GPU-accelerated version, make sure your GPU supports CUDA and has NVIDIA CUDA Toolkit.
- Specify Aspose Maven Repository location in your Maven pom.xml:
<repositories>
<repository>
<id>AsposeJavaAPI</id>
<name>Aspose Java API</name>
<url>http://repository.aspose.com/repo/</url>
</repository>
</repositories>
- Define Aspose.OCR for Java API dependency in your pom.xml:
Standard (CPU-based) version:
<dependencies>
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-ocr</artifactId>
<version>22.5</version>
</dependency>
</dependencies>
GPU-accelerated version:
<dependencies>
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-ocr-gpu</artifactId>
<version>20.11</version>
</dependency>
</dependencies>
Installing Aspose.OCR for Java local package
- Download Aspose.OCR for Java package (ZIP archive).
- Extract the package to your development machine.
- JAR files and the configuration are located in /com/aspose/aspose-ocr/[version] (for CPU-based version) or /com/aspose/aspose-ocr-gpu/[version] (for GPU-accelerated version).