Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
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 get recognition results in CSV format, use the following methods of Aspose.OMR.Model.RecognitionResult
class:
Returns a string with the recognition results in CSV format. You can optionally specify the encoding (default is UTF-8).
Aspose.OMR.Api.OmrEngine omrEngine = new Aspose.OMR.Api.OmrEngine();
Aspose.OMR.Api.TemplateProcessor templateProcessor = omrEngine.GetTemplateProcessor("pattern.omr");
Aspose.OMR.Model.RecognitionResult recognitionResult = templateProcessor.Recognize("filled-form.png");
string result = recognitionResult.GetCsv();
Returns a MemoryStream
object in the specified encoding with the recognition results in CSV format.
Aspose.OMR.Api.OmrEngine omrEngine = new Aspose.OMR.Api.OmrEngine();
Aspose.OMR.Api.TemplateProcessor templateProcessor = omrEngine.GetTemplateProcessor("pattern.omr");
Aspose.OMR.Model.RecognitionResult recognitionResult = templateProcessor.Recognize("filled-form.png");
MemoryStream result = recognitionResult.GetCsvAsStream(Encoding.UTF8);
JSON is the most popular popular open standard format for describing nested data structures. Best suited for NoSQL databases or web.
To get recognition results in JSON format, use the following methods of Aspose.OMR.Model.RecognitionResult
class:
Returns a string with the recognition results in JSON format. You can optionally specify the encoding (default is UTF-8).
Aspose.OMR.Api.OmrEngine omrEngine = new Aspose.OMR.Api.OmrEngine();
Aspose.OMR.Api.TemplateProcessor templateProcessor = omrEngine.GetTemplateProcessor("pattern.omr");
Aspose.OMR.Model.RecognitionResult recognitionResult = templateProcessor.Recognize("filled-form.png");
string result = recognitionResult.GetJson();
Returns a MemoryStream
object in the specified encoding with the recognition results in JSON format.
Aspose.OMR.Api.OmrEngine omrEngine = new Aspose.OMR.Api.OmrEngine();
Aspose.OMR.Api.TemplateProcessor templateProcessor = omrEngine.GetTemplateProcessor("pattern.omr");
Aspose.OMR.Model.RecognitionResult recognitionResult = templateProcessor.Recognize("filled-form.png");
MemoryStream result = recognitionResult.GetJsonAsStream(Encoding.UTF8);
Etensible Markup Language (XML) is a universal format for most systems - from databases to CRM.
To get recognition results in XML format, use the following methods of Aspose.OMR.Model.RecognitionResult
class:
Returns a string with the recognition results in XML format. You can optionally specify the encoding (default is UTF-8).
Aspose.OMR.Api.OmrEngine omrEngine = new Aspose.OMR.Api.OmrEngine();
Aspose.OMR.Api.TemplateProcessor templateProcessor = omrEngine.GetTemplateProcessor("pattern.omr");
Aspose.OMR.Model.RecognitionResult recognitionResult = templateProcessor.Recognize("filled-form.png");
string result = recognitionResult.GetXml();
Returns a MemoryStream
object in the specified encoding with the recognition results in XML format.
Aspose.OMR.Api.OmrEngine omrEngine = new Aspose.OMR.Api.OmrEngine();
Aspose.OMR.Api.TemplateProcessor templateProcessor = omrEngine.GetTemplateProcessor("pattern.omr");
Aspose.OMR.Model.RecognitionResult recognitionResult = templateProcessor.Recognize("filled-form.png");
MemoryStream result = recognitionResult.GetXmlAsStream(Encoding.UTF8);
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.