Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.OCR for JavaScript via C++ can return recognition results as XML - a universal data exchange and storage format. To get recognition results in XML format, call AsposeOCRSerializeResult() method. Provide the recognition result returned from recognition function and Module.ExportFormat.xml (2) value as method parameters.
var input = Module.WasmAsposeOCRInput();
var inputs = new Module.WasmAsposeOCRInputs();
input.url = filename;
inputs.push_back(input);
// Recognize
var settings = Module.WasmAsposeOCRRecognitionSettings();
settings.language_alphabet = Module.Language.DEU;
var result = Module.AsposeOCRRecognize(inputs, settings);
// Get recognition results as XML
var result_xml = Module.AsposeOCRSerializeResult(result, Module.ExportFormat.xml);
console.log(result_xml);
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.