C# OMR template result missing elements

Hello,

I’m using a 30 day OMR trial.

The code i use looks like this

Aspose.OMR.Api.OmrEngine omrEngine = new Aspose.OMR.Api.OmrEngine();
            //Aspose.OCR.AsposeOcr recognitionEngine = new Aspose.OCR.AsposeOcr();
           // Aspose.OCR.RecognitionSettings recognitionSettings = new Aspose.OCR.RecognitionSettings();
            Aspose.OMR.Api.TemplateProcessor templateProcessor = omrEngine.GetTemplateProcessor("Test.omr");
            Bitmap bp = new Bitmap(2480, 3508);
            using (Graphics gr = Graphics.FromImage(bp))
            gr.DrawImage(System.Drawing.Image.FromFile("Testas.png"), new Rectangle(0, 0, 2480, 3508));
            bp.Save("test.png", System.Drawing.Imaging.ImageFormat.Png);
            Aspose.OMR.Model.RecognitionResult recognitionResult = templateProcessor.RecognizeImage("test.png", 30);
            string result = recognitionResult.GetCsv();

Template processor returns all correct elements (see image):
image.png (10.6 KB)

But recognition result returns only 6 elements (see image)
image.png (5.4 KB)
And result gives only these results (see image)
image.png (4.9 KB)
OMR added here:
Testas_Antėja.7z (1.2 KB)

Where do items go missing?

Best regards,

Baxius

@baxiusz

It looks like you are not setting license properly before using the API in you code.

var license = new License();
license.SetLicense(@"C:\Users\User\Downloads\Aspose.Total.Product.Family.lic");

Please set the license and try again. Feel free to let us know in case you face any issues.

Issue resolved. Thanks