@Arkadeep Das Which API of computer vision are you using? I could see using the computer vision READ API, the result provides the output in response in natural reading order i.e left to right. For example, for this image with a table in it. The response is as below.
As you can observe, the result JSON shows the values from left to right for the first row in the table. This is the case with any text in the image including written or printed text.
To use the REST API with java you would need to call the API with the same headers and parse the JSON. This sample should work with any CV READ REST API as it POSTs the request and if successful uses the operation location to get the JSON result. You might want to use the latest version of the API i.e v3.2 instead of v3.1 though. I hope this helps!!
If an answer is helpful, please click on or upvote which might help other community members reading this thread.