Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Recognition results in plain text with line breaks are returned from asposeocr_serialize_result() function. You must provide the recognition result returned from recognition function in recognition_result parameter and export_format::text value in format parameter.
// Provide images
string file = "page1.png";
AsposeOCRInput source1;
source1.url = file.c_str();
string file = "page2.png";
AsposeOCRInput source2;
source2.url = file.c_str();
std::vector<AsposeOCRInput> content = { source1, source2 };
// Fine-tune recognition
RecognitionSettings settings;
settings.language_alphabet = language::ukr;
// Extract text from the image
auto result = asposeocr_recognize(content.data(), content.size(), settings);
// Output the recognized text
wchar_t* buffer = asposeocr_serialize_result(result, buffer_size, export_format::text);
std::wcout << std::wstring(buffer) << std::endl;
// Release the resources
asposeocr_free_result(result);
asposeocr_free_result() function.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.