Define custom question name in OMR Template using Aspose.OMR for .NET

My template looks like this

#XYZ-123
(0)(1)(2)(3)(4)(5)(6)(7)(8)(9)	(0)(1)(2)(3)(4)(5)(6)(7)(8)(9)
#UYK-587
(0)(1)(2)(3)(4)(5)(6)(7)(8)(9)	(0)(1)(2)(3)(4)(5)(6)(7)(8)(9)

and after OMR processing the results looks like this

Question1	0	9
Question2	1	8

What I am willing is to display “XYZ-123” string instead of “Question1” etc…

Any advise?

@itincharge

We need to investigate your this requirement and for the purpose, we may need your sample template and image files. Would you kindly share them so that we can further proceed to assist you accordingly.

Sorry for late response.

Here is the template
image.png (18.6 KB)

Here is the OMR Sheet
image.png (153.5 KB)

Here is filled OMR Sheet
image.png (152.1 KB)

Here is the OMR Processed result
image.png (6.1 KB)

Required OMR Processed result
image.png (5.2 KB)

@itincharge

Would you kindly provide the template in .omr format by adding it to ZIP archive.

Here is it
Jawad.zip (2.4 KB)

Just wanted to follow up if there are any updates on this?

Thank you.

including @asad.ali in the conversation.

@itincharge

We have observed your requirements by checking the images and template shared by you. We are afraid that currently this feature is not implemented in the API and we have logged it as OMRNET-68 in our issue tracking system for the sake of implementation. We will further check the feasibility of the feature and let you know as soon as it is available. Please spare us some time.

We are sorry for the inconvenience.

@itincharge

Thanks for your patience.

We have further investigated your requirements and found that in order to achieve so, the template file (.omr extension) needs to be modified. It can be done in two ways:

  1. Use free Aspose.OMR Client (https://github.com/aspose-omr-cloud/aspose-omr-cloud-dotnet/tree/master/Aspose.OMR.Client), which is GUI WPF application, load or drag-and-drop the template file, select question and change its name using Properties panel on the right side (screenshot attached). Do so for each question you need to rename and save changes to the template.

  2. Directly edit the .omr file using any text editor. You will see JSON structure, where each ChoiceBox element has Name property. Simply change value of the Name property and save changes. You can also use any JSON online editor for easier editing.

After changing question name in the template file, any recognition using this template should provide results with updated question names.

Unfortunately, for now we can only offer custom names for the answer sheet element in template generation. Any simple choiceboxes or grid names as well as other properties can be updated manually as described above. In future we will support custom names for each type of question generated templates.

ClientRenameExample.png (42.6 KB)