Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This Gist repository contains code snippet related to Aspose.OMR Cloud SDK for Java
Aspose.OMR-Cloud-SDK-Java
// For complete examples and data files, please go to https://github.com/aspose-omr-cloud/aspose-omr-cloud-java/
OMRFunctionParam param = new OMRFunctionParam();
String packedTemplate = PackTemplate(templateFile.getFileName().toString(), Files.readAllBytes(templateFile));
param.setFunctionParam(packedTemplate);
UploadFile(imageFile, "");
return api.postRunOmrTask(imageFile.getFileName().toString(), "CorrectTemplate", param, null, null);
// For complete examples and data files, please go to https://github.com/aspose-omr-cloud/aspose-omr-cloud-java/
OMRFunctionParam param = new OMRFunctionParam();
param.setFunctionParam(templateId);
UploadFile(templateFile, "");
return api.postRunOmrTask(templateFile.getFileName().toString(), "FinalizeTemplate", param, null, null);
// For complete examples and data files, please go to https://github.com/aspose-omr-cloud/aspose-omr-cloud-java/
String templateName = templateFile.getFileName().toString();
UploadFile(templateFile, "");
OMRFunctionParam param = new OMRFunctionParam();
param.setFunctionParam("{ \"ExtraStoragePath\":\"" + LogosFolderName + "\"}");
OMRResponse response = api.postRunOmrTask(templateName, "GenerateTemplate", param, null, null);
return response;
// For complete examples and data files, please go to https://github.com/aspose-omr-cloud/aspose-omr-cloud-java/
OMRFunctionParam param = new OMRFunctionParam();
param.setFunctionParam(templateId);
UploadFile(imageFile, "");
OMRResponse response = api.postRunOmrTask(imageFile.getFileName().toString(), "RecognizeImage", param, null, null);
return response;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment