Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
To read an answer sheet, test, survey, election ballot, or other completed OMR form, digitize it in one of the supported formats. For best results, we recommend using a flatbed scanner (a basic office scanner or a copier will be enough). If you do not have a scanner, simply take a picture of the form with a smartphone camera.
The recognition is a 3-step process.
Aspose.OMR for Java recognition engine is initialized with the recognition pattern (a file with .OMR extension), saved along with the printable form. The recognition pattern is loaded using GetTemplateProcessor
method:
System::SharedPtr<Api::OmrEngine> engine = System::MakeObject<Api::OmrEngine>();
System::SharedPtr<Api::TemplateProcessor> processor = engine->GetTemplateProcessor(u"pattern.omr");
If you have lost the recognition pattern file for the completed form, simply generate it again from the form’s source code using exactly the same paper size, font, and other layout setting.
To recognize a form, process the scanned image or photo through RecognizeImage
method of the initialized recognition engine:
System::SharedPtr<Api::OmrEngine> engine = System::MakeObject<Api::OmrEngine>();
System::SharedPtr<Api::TemplateProcessor> processor = engine->GetTemplateProcessor(u"pattern.omr");
System::SharedPtr<Model::RecognitionResult> result = processor->RecognizeImage(u"completed-form.jpg", 40);
The recognition method support accuracy adjustments for reliable results for different types of marks, even under difficult conditions (dirt, glare, and so on).
After the recognition is finished, you can get results in the most popular data storage formats.
Comma-separated values (CSV) is a lightweight text format that uses a comma to separate values in a table-like structure. Best suited for spreadsheet applications and simple relational database tables.
To save recognition results in CSV format, call GetCsv
method of the recognition result object:
System::SharedPtr<Api::OmrEngine> engine = System::MakeObject<Api::OmrEngine>();
System::SharedPtr<Api::TemplateProcessor> processor = engine->GetTemplateProcessor(u"pattern.omr");
System::SharedPtr<Model::RecognitionResult> result = processor->RecognizeImage(u"completed-form.jpg", 40);
System::String resultCsv = result->GetCsv();
JSON is the most popular popular open standard notation for describing nested data structures. Best suited for NoSQL databases or web.
To save recognition results in JSON format, call GetJson
method of the recognition result object:
System::SharedPtr<Api::OmrEngine> engine = System::MakeObject<Api::OmrEngine>();
System::SharedPtr<Api::TemplateProcessor> processor = engine->GetTemplateProcessor(u"pattern.omr");
System::SharedPtr<Model::RecognitionResult> result = processor->RecognizeImage(u"completed-form.jpg", 40);
System::String resultCsv = result->GetJson();
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.