Browse our Products

Aspose.OCR for Java 16.12 Release Notes

KeySummaryCategory
OCRNET-2956Support Dynabic.Metered license for OMRNew Feature
OCRNET-2953Images distorted in preprocessingEnhancement
OCRNET-2907Fix filtering usageEnhancement
OCRNET-2979Rename ExtractData methodEnhancement

Usage Examples

Using Metering license in OMR

 OmrEngine omr = new OmrEngine(new OmrTemplate());

metered = new Metered();

metered.setMeteredKey("publicKeyValue", "privateKeyValue");

double amountBefore = Metered.getConsumptionQuantity();

String path = "sampleimage.png");

OmrImage omrImage = OmrImage.load(path);

//Since upload data is running on another thread, so we need wait some time

Thread.sleep(10000);

double amountAfter = Metered.getConsumptionQuantity();