Generate template from existing image to recognize answer options - Aspose.OMR for .NET

@bvaidya

We have logged your concerns under the ticket and will consider them during further investigation against it. We will let you know as soon as some updates are available. Please spare us little time.

@bvaidya

Thanks for your patience.

Your images were not recognized properly as they were missing the reference points. The images and scans should be the same as the template image, with black squares, in order to recognize them properly. The suggested workflow is following:

  • Create template (.omr) and template image with reference points
  • print them
  • fill them
  • then take a photo or a scan
  • recognize.

Sure, it is possible. See the files in the attachment. The archive contains template image, .omr file and filled photo example for you to test. Please note that template image and photo has the same layout.
TestTemplate.zip (2.0 MB)

Unfortunately, in the current version of Aspose.OMR for .NET only squares are supported. However, we plan to add more types of reference points and even remove them completely in future versions.

@asad.ali

We have finalize the template, but when I tried to create .omr template we got the following error, please see the attached image. error while creating template using omr client.JPG (77.7 KB)

Can you please create omr template and send us so that we can test the omr scanning using aspose omr dll(downloadable dll). I have attached the pdf to generate omr template.bubble design- Edit (003).pdf (93.2 KB)
finaltemplate.JPG (54.4 KB)

After scanning from our mobile APP we got following image, can you please generate template that matching the same image as attached below:
6e678c90-b5ab-445f-a904-454de3a46ee9.jpg (171.3 KB)templateFinal.png (80.6 KB)

@bvaidya

An investigation ticket as OMR-450 has been logged in our issue tracking system for your requirements. We will further look into details of the ticket and keep you posted with its resolution status. Please spare us little time.

We are sorry for the inconvenience.

@asad.ali

we need to process omr sheet with new template, it is very urgent, can you please create omr template, so that we can verify it and buy license. we have this last week to process omr sheet. I have attached final template to create. please find attached image and create .omr template asap.templateFinal.png (80.6 KB)

@bvaidya

We have already logged a ticket in our issue tracking system for your requirements and it is currently under investigation. We will surely let you know as soon as it is resolved. Please be patient and spare us little time.

We are sorry for the inconvenience.

@asad.ali
Thank you for your reply.

We required new template file(.omr) using this image templateFinal.png (80.6 KB)
that can process the image 6e678c90-b5ab-445f-a904-454de3a46ee9.jpg (171.3 KB)
Can you please create template file(.omr) and send us, so that we can test with new image and process the answers?

@bvaidya

As shared earlier, we are looking into your requirements and processing the ticket to create respective OMR template so that you can process your images with it. Due to other tasks and implementations, the ticket will take some time to get resolved. We highly appreciate your patience and comprehension in this matter. Please spare us little time.

@asad.ali
Any updates on .omr template generations, as per our new design? please share with us if you have created .omr template.

@asad.ali
Any updates on new .omr template, that we need to process ? can you please create and send us ?

As per our requirement, we have changed the template design, so can you please share your code / software that you created and send to us, and also please provide the steps to generate .omr template file, so that we will not dependent on you.

@bvaidya

Templates.zip (3.4 MB)

Please check the attached template. It contains 3 folders.

  1. FinalTemplate folder. Inside you will find requested template for provided image. However, unfortunately it is not possible to recognize your photo with this template with Aspose.OMR for .NET, because the reference points (black squares) are too small. The general rule is that they should be almost two times larger than bubbles. But it is possible to recognize your photo using Aspose.OMR for Cloud, since cloud version does not require reference points. We are working on removing this points from Aspose.OMR for .NET too, and this is one of ours most important tasks.

For your images, we’ve prepared alternative templates that can be found in next folders.

  1. FinalTemplateBig folder. Here you will find same image, but with bigger reference points. Also, we have prepared the template as well and sample photo that is recognizable with Aspose.OMR for .NET. It is possible to use this form and template to print out images and successfully recognize them. However, we reccommend using image in the next folder.

  2. BestTemplate folder. This folder contains the slightly modified image that you previously shared with us as bubble design- Edit (003).pdf. We added reference points to the corners and removed them from the center. We also prepared the template and demo photo for your tests. This is much better image to work with, since it is larger and has overall better quality.

@asad.ali

Thank you for your prompt response, we will test with template and provide you our feedbacks.

@bvaidya

Please take your time to test the template and in case you need further assistance, please feel free to let us know.

@asad.ali
We are getting following error for the finaltemplate.omr while processing image attached.FinalTemplate.zip (80.7 KB)

FinalTemplateData.zip (99.3 KB)

Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.

stacktrace – at System.Buffer.BlockCopy(Array src, Int32 srcOffset, Array dst, Int32 dstOffset, Int32 count)
at .(Bitmap )
at .(Stream )
at .(String )

  •   $exception	{"Could not load the specified file."C:\\"TestData\\FinalTemplateData.png"}	System.IO.FileLoadException

@asad.ali

We also tried with FinalBig.omr template and tried with mobile device but it is not recognized image and not getting answers out of it, please see attached image for your reference.image.png (687.2 KB)
FinalTemplateBig.zip (695.9 KB)

@asad.ali

We are also facing multiple select answers not able to process with attached template. can you please resolve this issue and send use template.72e1e7ca-bc84-46da-80b3-5fe56687653f.jpg (213.9 KB)

we are getting following error:
Failed to find matching between the template and the image!
at Aspose.OMR.Api.TemplateProcessor.(List`1 , Int32 , Int32 )
at Aspose.OMR.Api.TemplateProcessor.(String , Int32 )
at Aspose.OMR.Api.TemplateProcessor.(String , Int32 )
at Aspose.OMR.Api.TemplateProcessor.RecognizeImage(String imagePath, Int32 recognitionThreshold)

We are using Template as attached. FinalBig.zip (102.5 KB)

@bvaidya

We are looking into it and will get back to you shortly.

@asad.ali

we have observed that, some questions are not able to process by the aspose omr due to the paper is curvey. Please find different images that can process question number 8 and also not able to process question number 8 due to paper is curvey.
question number 8 not able to processed due to border is not straight but it is curvey.PNG (347.7 KB)
question number 8 processed due to border is straight not curvey.PNG (290.9 KB)

@asad.ali
we are processing same image but it is not process all answers, can you please check.not-processed all answers-1-20pm-26july2019 - Copy.PNG.jpg (313.9 KB)

@asad.ali
Attached image is not processing, please check and update.6ff8cc6d-a608-471c-98a7-2f8ceb6cdf7e.jpg (202.2 KB)