You can find more details at: Convert Image to JSON with OCR in C#
Last active
May 30, 2022 21:12
Convert Image to JSON with OCR in C# | PNG to JSON | JPG JPEG to JSON
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 class | |
AsposeOcr api = new AsposeOcr(); | |
// Recognize the input image | |
RecognitionResult result = api.RecognizeImage("sample.png", new RecognitionSettings | |
{ | |
AutoSkew = true, | |
ThresholdValue = 230, | |
Language = Language.Eng | |
}); | |
// Print result as JSON | |
Console.WriteLine($"JSON: {result.GetJson()}"); |
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 class | |
AsposeOcr api = new AsposeOcr(); | |
// Recognize the input image | |
RecognitionResult result = api.RecognizeImage("sample.png", new RecognitionSettings()); | |
// Print result as JSON | |
Console.WriteLine($"JSON: {result.GetJson()}"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment