Learn how to Convert Image Text to Editable Text Using Aspose.OCR
Created
August 2, 2025 04:54
-
-
Save aspose-com-gists/2e06e8d50f0b532ce3c28b855bc3a350 to your computer and use it in GitHub Desktop.
Convert Image Text to Editable Text Using Aspose.OCR
This file contains hidden or 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 AsposeOCR recognition engine | |
Aspose.OCR.AsposeOcr recognitionEngine = new Aspose.OCR.AsposeOcr(); | |
// Load and recognize an image | |
string result = recognitionEngine.RecognizeImage("sample.jpg"); | |
// Show results | |
Console.WriteLine(result); |
This file contains hidden or 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 AsposeOCR recognition engine | |
AsposeOCR api = new AsposeOCR(); | |
// Load and recognize an image | |
String result = RecognizePage("sample.jpg"); | |
// Show results | |
System.out.println("Recognition result:\n" + result + "\n\n"); |
This file contains hidden or 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
import aspose.ocr as ocr | |
# Instantiate Aspose.OCR API | |
api = ocr.AsposeOcr() | |
# Add image to the recognition batch | |
img = ocr.OcrInput(ocr.InputType.SINGLE_IMAGE) | |
img.add("sample.jpg") | |
# Recognize the image | |
result = api.recognize(img) | |
# Print recognition result | |
print(result[0].recognition_text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment