hi,
iam using Aspose.OCR for c++. i am trying to read text but not getting desired result, here is my code
aspose::ocr::set_license(“D:\Aspose\Aspose.OCR.CPP\Aspose.OCRforC++.lic”);
std::wcout << aspose::ocr::get_state() << ‘\n’;
// Provide the image for recognition
string file = “D:\DDrive\MYProjectsNew\Sample PDF for OCR\ABC2.png”;
AsposeOCRInput source;
source.url = file.c_str();
vector content = { source };
// Set recognition language
RecognitionSettings settings;
settings.language_alphabet = language::eng;
// Extract text from the image
AsposeOCRRecognitionResult result = asposeocr_recognize(content.data(), content.size(), settings);
// Output the recognized text
size_t size = 0;
wchar_t* buffer = asposeocr_serialize_result(result, size);
wcout << wstring(buffer) << endl;
// Release the resources
asposeocr_free_result(result);
What i am doing wrong, please help