We are pleased to announce the release of Aspose.OCR for Java 16.12. The major development in this release is support for metered license mechanism for OMR operations. The new licensing mechanism will be used along with existing licensing method. Those customers who want to be billed based on the usage of the API features can use the metered licensing. Furthermore overall performance of the API has also been improved in this release.

Metered License Support for OMR Operations

Aspose.OCR for Java provides the functionality to use metered licensing mechanism for OMR operations. We have introduced Metered class in API to accomplish this job. The following sample code will demonstrate, how to calculate the consumed OMR API requests.

// set up OMR engine
        com.aspose.omr.OmrEngine omr = new com.aspose.omr.OmrEngine(new com.aspose.omr.OmrTemplate());

        // Create an instance of OCR Metered class
        com.aspose.ocr.metered.Metered metered = new com.aspose.ocr.metered.Metered();
        // Access the setMeteredKey property and pass public and private keys as parameters
        metered.setMeteredKey("publicKeyValue", "privateKeyValue");
        // Get consumed qantity value before accessing API
        double amountBefore = com.aspose.ocr.metered.Metered.getConsumptionQuantity();
        // do processing
        // String path = "sampleimage.png";
        // com.aspose.omr.OmrImage omrImage = com.aspose.omr.OmrImage.load(path);
        //Since upload data is running on another thread, so we need wait some time
        // get metered data amount
        double amountAfter = com.aspose.ocr.metered.Metered.getConsumptionQuantity();


Following enhancements have been introduced in this release.

  • Processing of distorted images has been improved.
  • Mechanism of applying filters on the supplied image has been improved.

Please review the release notes of Aspose.OCR for Java 16.12 for a complete view of new enhancements.

Aspose.OCR for Java Resources

The resources, you may need to accomplish your tasks:

As always, we appreciate your feedback so if you ever have anything to tell us about this release or anything else, please head to the Aspose.OCR forum for a chat.