vision api coorinates format

98 views
Skip to first unread message

Arun Kumar

unread,
Sep 16, 2021, 1:57:57 AM9/16/21
to cloud-vision-discuss
Hi Team,

I was going through the vision api document https://cloud.google.com/vision/docs/pdf to understand the format of the coordinates of the text.  I was a bit confused regarding the normalized values.

Could you please clarify on how can I find the original coordinates with respect the dimension of the document.

Thanks,
Arun

Krishnanunni K

unread,
Sep 16, 2021, 2:13:38 AM9/16/21
to cloud-vision-discuss
Normalized vertices are relative coordinates to the document width and height. I hope you are referring to https://cloud.google.com/vision/docs/reference/rest/v1/projects.locations.products.referenceImages#normalizedvertex.

If a document has width 800 and height 600, and normalized vertices come like {x: 0.1, y.0.5}, then the actual coordinates are like [800* 0.1 , 600*0.5].  


Arun Kumar

unread,
Sep 21, 2021, 3:53:55 AM9/21/21
to cloud-vision-discuss
Thanks for the clarification.
Reply all
Reply to author
Forward
0 new messages