Hai,
I want to extract text from Image and save the extracted text into a text file.
I am sharing the code I have used, But what I am getting is not an expected result.
new.PNG (52.3 KB)
Code:
string path = @“C:\Data Folder\Images”;
string docPath = @"C:\Data Folder\Images\";
string fileName = "new.png";
AsposeOcr api = new AsposeOcr();
RecognitionResult result = api.RecognizeImage(destFileName, new RecognitionSettings
{
DetectAreas = false,
RecognizeSingleLine = false,
AutoSkew = true,
AllowedCharacters = CharactersAllowedType.ALL,
//AutoContrast = true,
Language = Language.Eng
});
result.Save(path + "demo.docx", SaveFormat.Docx);
Output I am getting:
demo.docx (8.2 KB)
I have been using a licensed version of aspose. Any help will be appreciate