Resource file spanish ocr java

I found Spanish resource file for .NET, I use this file with OCR Java?, from OCR JAVA link of resources open page of .NET resources, please help me…

@daniel.bernal,

Thank you for contacting Aspose Support.

Yes, you may use the same resource file for OCR Java as shown below.

OcrEngine ocrEngine = new OcrEngine();

// Set the paths
String imageFileName = "Sample.jpg";

// Set the Image property by loading the image from file path location
ocrEngine.setImage(ImageStream.fromFile(imageFileName));

// Clear the default language (English)
ocrEngine.getLanguageContainer().clear();

// Load the resources of the language from file path location or an instance of InputStream
ocrEngine.getLanguageContainer().addLanguage(LanguageFactory.load("Aspose.OCR.Spanish.Resources.zip"));

// Process the image
if (ocrEngine.process()) {
    // Display the recognized text
    System.out.println(ocrEngine.getText());
}

Our both .NET and Java APIs use the same resource files which is why the link is redirecting you to the same page for resources.