Get OCR Result as JSON

Get OCR Result as JSON

Aspose.OCR for Java provides the class RecognitionResult that contains elements with recognition information and result. To get the result is JSON format, you may use the GetJson method of the RecognitionResult class.

The following code snippet demonstrates the use of the GetJson method to get the recognition result in JSON format that is generated by the RecognizePageFromUri method.

Sample Code