Aspose.OCR for C++ is a robust and reliable professional optical character recognition API. Developers can easily add OCR operations in their software applications. OCR library can work offline for business applications as well. Furthermore, this premise OCR API can perform OCR using the GPU instead of the core processor. Major API feature is the text fragment detection that enables to recognize header and paragraphs for pages having pictures or tables. It supports commonly used formats for reading characters and fonts having different styles, noise removal filters, recognizing the whole page, or just single line form it.
Recognize characters from images
Support multiple image file formats
Support multiple characters
Recognize characters or text in popular fonts
Multi styles support
Scan the whole image or any part of it
Recognize text in paragraphs
Recognize text in headers
Calculate the skew angle of images
Aspose.OCR for C++ allows the developers to recognize each text segment like text and related information such as different characters, font and style of an image of a page. Just few lines of code that allows performing the OCR operation.
std::string img_path = "../srcSample.png";
// Prepare buffer for result (in symbols, len_byte = len * sizeof(wchar_t))
const size_t len = 4096;
wchar_t bfr[len] = { 0 };
size_t result = aspose::ocr::page(image_path.c_str(), bfr, len);
//Print result
std::wcout << bfr << L"\n";
C++ OCR API supports to recognize Text in popular fonts & styles like Arial, Times New Roman, Courier New, Verdana, Tahoma and Calibri fonts in regular, bold and italic text styles.
The library calculates the skew angle of the image. It takes the image path as input and returns the skew angle.
std::string image_path = "../srcSkew.png";
std::double_t result = aspose::ocr::get_skew(image_path.c_str());
std::wcout << result << L'\n';
Aspose.OCR offers individual OCR APIs for other popular development environments as listed below: