detect_areas_mode_enum::TABLE
Contents
[
Hide
]
When this mode is enabled, OCR engine detects tabular structures on an image and extracts text from cells. This areas detection mode is recommended when working with scanned spreadsheets, financial and accounting reports, invoices, and other tables.
However, this algorithm is inefficient when dealing with large amounts of text, such as pages from books and newspaper articles. Try detect_areas_mode_enum::DOCUMENT instead.
Example
The following code sample demonstrates how to use this document areas detection algorithm:
std::string image_path = "source.png";
const size_t len = 4096;
wchar_t buffer[len] = { 0 };
RecognitionSettings settings;
settings.detect_areas_mode = detect_areas_mode_enum::TABLE;
size_t res_len = aspose::ocr::page_settings(image_path.c_str(), buffer, len, settings);
std::wcout << buffer;