Aspose.OMR Cloud SDK for Node.js
Node.js API to Analyze OMR Documents & Extract Data
A Powerful Node.js OMR REST API allows Accurate & Reliable Optical Mark Recognition. It's Designed to Recognize & Extract Data from Photos or Documents process & analyze OMR forms and more.
Aspose.OMR Cloud SDK for Node.js is a powerful, cloud-based API that allows software developers to easily integrate optical mark recognition capabilities into their applications. The SDK is designed to process various forms, surveys, and questionnaires, making it a vital tool for automating data collection and analysis. It offers a wide range of features that cater to different needs, from basic OMR processing to advanced customization options. It supports recognition of scanned photos, perform OMR on rotated images, Extract & recognize human-marked data from scanned exams papers and surveys, export of OMR results to CSV and other formats, OMR templates creation via textual markup, managing existing OMR templates via GUI, perform OMR operation on a particular area of an image and so on.
Aspose.OMR Cloud SDK for Node.js is a comprehensive solution for integrating optical mark recognition into your applications. The SDK supports multiple input formats, including popular image formats such as JPEG, PNG, BMP, TIFF and so on. When dealing with large volumes of OMR sheets, batch processing becomes essential. The SDK allows users to process multiple sheets in a single operation, saving time and reducing overhead. It supports multiple languages, allowing you to create and process OMR forms in various languages. Error handling is a crucial part of any application development process, and the SDK provides detailed error messages that help developers quickly diagnose and resolve issues, ensuring smooth operation even in complex scenarios. In conclusion, Aspose.OMR.js is a game-changer for developers looking to incorporate OMR capabilities into their applications.
Getting Started with Aspose.OMR Cloud SDK for Node.js
The recommend way to use Aspose.OMR Cloud SDK for Node.js is via NPM. Please use the following command for a smooth installation.
Install Aspose.OMR Cloud SDK for Node.js via NPM
npm install && npm run-script build
Install Aspose.OMR Cloud SDK for Node.js via GitHub
git clone https://github.com/aspose-omr-cloud/aspose-omr-cloud-nodejs.git --recurse-submodules
You can download the library directly from Aspose.OMR product page
Dynamic OMR Template Generation in Node.js
One of the most powerful features of the Aspose.OMR Cloud SDK for Node.js is its ability to dynamically generate OMR templates. Unlike traditional methods that require predefined templates, this SDK allows software developers to create templates on the fly using simple text markup or JSON configurations. This flexibility is ideal for situations where you need to customize forms to meet specific requirements, such as changing the layout or adding new questions. The following example shows, how software developers can dynamically generate OMR templates inside Node.js environment.
How to Dynamically Generate OMR Templates inside Node.js Apps?
const asposeomrcloud = require("asposeomrcloud");
const config = new asposeomrcloud.Configuration({
appSID: "YOUR_APP_SID",
appKey: "YOUR_APP_KEY",
});
const omrApi = new asposeomrcloud.OmrApi(config);
const templateJson = {
"templateName": "Survey",
"elements": [
{
"elementType": "Text",
"x": 100,
"y": 50,
"value": "Please fill out this survey",
},
{
"elementType": "ChoiceBox",
"x": 100,
"y": 150,
"choices": ["Yes", "No", "Maybe"],
}
]
};
omrApi.generateTemplate(templateJson).then(result => {
console.log("Template Generated:", result);
}).catch(err => {
console.error("Error generating template:", err);
});
Accurate OMR Sheet Recognition in Node.js
Aspose.OMR Cloud SDK for Node.js excels in recognizing filled-out OMR sheets and provides highly accurate recognition of filled OMR sheets inside Node.js applications. After forms are filled out and scanned, the SDK can recognize the marked areas, even when the marks are not perfectly filled in. This feature is particularly useful in real-world scenarios where user input may be less than perfect. Here is an example that shows how software developers can recognize OMR sheet inside Node.js.
How to Perform OMR Sheet Recognition inside Node.js Apps?
const omrSheetPath = "filled_survey_sheet.jpg";
omrApi.recognizeImage(omrSheetPath, "SurveyTemplate.json").then(result => {
console.log("Recognized Data:", result.data);
}).catch(err => {
console.error("Recognition Error:", err);
});
Customizable Marking and Grading in Node.js
For educational institutions or organizations that require specific grading criteria, the SDK allows for customizable marking and grading rules. Aspose.OMR Cloud SDK for Node.js allows software developers to define custom rules for marking and grading OMR sheets. This feature is very beneficial for educational institutions and organizations. You can configure how marks are detected, how errors are handled, and how results are calculated. Here is an example that shows how software developers can perform grading operations inside Node.js applications.
How to Perform Grading Operation inside Node.js?
const gradingSettings = {
"markingThreshold": 0.6, // minimum mark detection threshold
"errorMargin": 0.1, // margin of error for detection
};
omrApi.recognizeImage("filled_exam_sheet.jpg", "ExamTemplate.json", gradingSettings).then(result => {
console.log("Grading Results:", result.grades);
}).catch(err => {
console.error("Grading Error:", err);
});
Wide Range Input Formats Support
Aspose.OMR Cloud SDK for Node.js supports multiple input formats, including popular image formats such as JPEG, PNG, BMP, TIFF and many more. This flexibility allows you to work with different types of scanned forms without worrying about format compatibility, ensuring seamless integration into your existing workflows. Moreover, it is designed to work globally, supporting multiple languages for text on OMR sheets.