detect_areas_mode_enum::UNIVERSAL

Contents
[ ]

On average, this algorithm achieves good results with most image types.

It is an optimal choice for general image processing, which can handle both simple scans and complex cases like posters, billboards, or random photos. However, specialized algorithms can provide faster or more accurate results for their intended use cases.

Example

The following code sample demonstrates how to use this document areas detection algorithm:

// Provide the image
string file = "source.png";
AsposeOCRInput source;
source.url = file.c_str();
std::vector<AsposeOCRInput> content = { source };
// Fine-tune recognition
RecognitionSettings settings;
settings.detect_areas_mode = detect_areas_mode_enum::UNIVERSAL;
// 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);