You can find more details at: Convert Image to Excel with OCR in C#
Last active
March 16, 2022 08:18
-
-
Save aspose-com-gists/fc8295feb215ab47140d2b068e6f6bbc to your computer and use it in GitHub Desktop.
Convert Image to Excel with OCR in C# .NET
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initialize an instance of AsposeOcr | |
AsposeOcr api = new AsposeOcr(); | |
// Recognize image | |
RecognitionResult result = api.RecognizeImage("OCR.png", new RecognitionSettings | |
{ | |
}); | |
// Save the result as XLSX file | |
result.Save("test.xlsx", SaveFormat.Xlsx); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get image for recognize | |
string uri = "https://qph.fs.quoracdn.net/main-qimg-0ff82d0dc3543dcd3b06028f5476c2e4"; | |
// Initialize an instance of AsposeOcr | |
AsposeOcr api = new AsposeOcr(); | |
// Recognize image | |
RecognitionResult result = api.RecognizeImageFromUri(uri, new RecognitionSettings | |
{ | |
}); | |
// Save the result in XLSX format | |
result.Save("test.xlsx", SaveFormat.Xlsx); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment