G’day.
As the title shows, I would like to create OMR template using existing images.
OMR Image
Unfortunately, I can’t find usable OMR Template Editor in Java.
If anyone can hightlight the spot, I really appreciate it in advance.
Cheers,
Can you please provide more details about the specific requirements or features you are looking for in the OMR template creation process using Java?
Hello, @jamesanvictoria
In attachment there is a draft (3.5 MB) of .omr template from your sample.
I’ve been using OMR Cloud Client offline features to markup bubbles and an upscaled version of your sample.
OMR Client interface (161.8 KB)
OMR Cloud client is accessed through SID and KEY, which can be received either through purchase of a license or a free trial.
Instruction for free trial (325.3 KB)
I really appreciate to your support. It helps a lot !
I am going to play around OMR Cloud Client by myself very soon but in the meanwhile, I simply tested one sample with omr template you provided. However, I got the error ‘class com.aspose.omr.System.l5v: Failed to find all reference points on image! Please make sure they are clearly visible and have enough blank space around them.’
Do you have any idea why this happens? I could confirm 4 reference points are clear to indicate scanned contents. FYI, here I attach my test file.
test.png (419.1 KB)
Hello, @jamesanvictoria
In attached file “test.png” there is no Aspose OMR reference points on the corners of the image.
These black squares are imperative for template recognition. They are inserted either during template generation via OmrEngine.GenerateTemplate or after marking up existing template in OMR Cloud client. Absence of these squares are the source of the exception.
- Create a template or mark-up an existing template. At this step, additional black squares on the corner of the image are inserted.
- Print template into paper
- Fill paper template using pen or pencil.
- Scan paper template into image
- Recognize scan using TemplateProcessor.Recognize method.
OMR Client.jpg (274.5 KB)
Thanks for your reply.
I printed out the templated image and scanned it but still no luck.
3.jpeg (423.9 KB)
Do you think there might be any other hidden restriction?
FYI, The error shows : class com.aspose.omr.System.l5v: Failed to find matching between the template and the image
P.S> Is there any way to reduce the size of black squares or the size is fixed ?
Hello, @jamesanvictoria
I have investigated provided sample (“3.jpeg”) and result of its recognition.
There are some issues, I have corrected them and prepared a sample of template recognition (“sample.zip”) and shared via link in your private messages.
- Reference points on the right are not present on the paper (and scan) fully. It may lead to issues with recognition.
- The logo in the top left corner is interfering with reference point detection. In the provided scan sample, I have removed it. If a logo is required, please consider moving it away from the reference points and\or reducing size.
- I have improved .omr template file. Changed from multiple grid’s of 20 questions to 160 questions for a more readable result. Improved resolution of canvas to 3580x2533 and accuracy of bubble markups.
Please notice that I have used a low-resolution image as a source. For production purposes, I would strongly advise using a high resolution image and assert bubble markup through an OMR Cloud Client independently.
Reference point size is not optional at the moment. The .NET version of the library has an offset option in the API to change position.
Thanks again for your support.
I ran your sample and could see some of info printed out. (not all of them)
Here is my snippet.
…
// 2. load template
TemplateProcessor processor = engine.getTemplateProcessor(template);
// 3. recognize image
RecognitionResult result = processor.recognizeImage(image);
// 4. save the result
String resultCsv = result.getCsv();
// 5. print the result
System.out.println(resultCsv);
…
It just prints out up to Question5 like the following.
Element Name,Value,
Question1,“”
Question2,“”
Question3,“”
Question4,“”
Question5,“A”
************* Done *************
Could you please share the info how you could get all of Questions ?
I appreciate to your co-work in advance.
Cheers,
Without setting a license, only 5 first elements are available.
There is a free temporary license that will disable all restrictions.
Thanks for your info.
I will give it a try with temporary license and see how it goes soon.
Cheers,
Hi nikita,
I hope this message finds you well.
Since our last update, we’ve conducted a few rounds of testing and identified that our OMR answer sheet needs a slight adjustment. However, I’m currently unsure how to properly place the reference points (corner squares) in our PDF file for testing purposes.
Could you kindly remind me how to include the reference square markers and generate the corresponding template.omr file?
For your reference, I’m happy to attach the two types of OMR answer sheets we plan to use for this purpose.
Looking forward to your guidance.
For TT6 TT8 JMSS VSSE_with_logo.pdf (752.0 KB)
For MEGA Revision_with_logo.pdf (469.7 KB)
Hello, @jamesanvictoria
I have converted pdf with Aspose online-tool.
Using OMR Cloud Client offline features, I have marked up bubbles with samples your provided.
See results (4.2 MB)
OMR Cloud client is accessed through SID and KEY, which can be received either through purchase of a license or a free trial.
Instruction for free trial (325.3 KB)
OMR Client interface (161.8 KB)
First of all, many thanks again for your co-work.
Apologies for the continued questions. I’m currently using a Mac, so I’m unable to install the OMR Cloud Client on my laptop.
I was wondering—when using an OMR sheet with four corner square markers, does the OMR Cloud Client export the output exclusively in JPG format, or is PDF also supported?
Cheers,
Hello, @jamesanvictoria
Unfortunately, OMR Cloud Client was outputting only image(jpg) and .omr file.
Regarding, template markup - I’ll discuss this with my team to see how we can best assist you.
I will post an estimate on new features here later on.
Thank you for your continued support — I truly appreciate your assistance.
However, I must admit I’m feeling a bit frustrated, as I’m unable to use the OMR Cloud Client on my Mac, which limits my ability to test and validate outputs directly.
I understand you’re generating results on my behalf, but it’s essential that we guarantee the highest quality PDF output for the students’ answer sheets — image files of lower resolution won’t meet our professional standards.
Additionally, I’ve noticed that the square corner markers are slightly overlapping, which makes the borders appear misaligned and less polished.
overlappiing.pdf (2.0 MB)
Would you mind re-generating both the template files and the output images in the highest possible resolution for us? (then I will convert them into the hightest resolution PDF)
For TT6 TT8 JMSS VSSE_wo_logo.pdf (313.6 KB)
For TT6 TT8 JMSS VSSE_with_logo.pdf (752.0 KB)
For MEGA Revision_with_logo.pdf (469.7 KB)
For MEGA Revision_wo_logo.pdf (373.1 KB)
For your reference, we’ve made a few slight adjustments to the sheets. I’ll reattach 4 updated versions in this message.
Thanks in advance for your cooperation — I really appreciate your collaboration on this.
Hello, @jamesanvictoria
Thank you for your interest in our product!
I am sorry that OMR Cloud client was not helpful. We will present a better template generation tools in the future. These tools will replace OMR Cloud client and will be able to accommodate your needs.
I will post details later on.
In the meantime, I am attaching one of the templates with added reference points as vector PDF file and correlating .omr template file for Aspose OMR Java.
OMRJAVA-97-For MEGA Revision_with_logo.zip (292.6 KB)
Please test this template and .omr. Depending on results, I will process others as well.
Many thanks to your update and work again !
Sorry but I realised that posted image were out dated one.
Please ignore what I uploaded before, let me attach again.
I really appreciate to your work for me.
For MEGA Revision_with_logo.pdf (1.4 MB)
For TT6 TT8 JMSS VSSE_with_logo.pdf (1.1 MB)
For TT6 TT8 JMSS VSSE_wo_logo.pdf (707.4 KB)
For MEGA Revision_wo_logo.pdf (545.6 KB)
Hello, @jamesanvictoria
Thank you for your patience!
In the attachment there is a vector PDF with reference points and .omr file. All files are tested and are ready to be used in Aspose OMR for Java.
result.zip (2.5 MB)
Could you share a brief update on whether templates were useful? Thank you!
This is a significant improvement over the previous work and looks very professional !
I will schedule some testing sessions with other team next week and will let you know how everything peerforms.
Thanks you in advance for your collaboration.