google-cloud-python icon indicating copy to clipboard operation
google-cloud-python copied to clipboard

how to get the box of ocr text[0] Detect text in images detail api

Open cumthxy opened this issue 3 years ago • 2 comments

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

i use Detect text in images detail api.

response = self.client.text_detection(image=image, timeout=10, retry = self.retry) texts = response.text_annotations how to get the texts[0] box? the code : for text in texts: allextractList.append(text.description) vertices = (['({},{})'.format(vertex.x, vertex.y) for vertex in text.bounding_poly.vertices])

can only get each text box but can't get the text[0] box

cumthxy avatar Nov 07 '22 02:11 cumthxy

I'm going to transfer this issue to google-cloud-python as we're planning to move the code for google-cloud-vision there in the next 1-2 weeks

parthea avatar Oct 21 '23 20:10 parthea

Thanks for filing this issue!. We'll look into this and post updates.

Could you clarify what you mean by the following?

can only get each text box but can't get the text[0] box

vchudnov-g avatar Dec 08 '23 21:12 vchudnov-g

Closing this issue due to no response. Please feel free to re-open with the additional info.

vchudnov-g avatar Jul 16 '24 17:07 vchudnov-g