We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Convert Image to text and save it in a file using aspose OCR

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

@pooja.jayan

We have noticed in our environment that API extracted some words incorrectly from the image. Hence, an investigation ticket as OCRNET-441 has been logged in our issue management system to further analyze this scenario. We will look into ticket details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.

Hai,

Any updates?

@pooja.jayan

The ticket was recently logged in our issue management system and it will be investigated and resolved on a first come first serve basis. We will surely inform you once it is fixed. Please give us some time.