Assigned
Status Update
Comments
ro...@google.com <ro...@google.com> #2
I have informed our engineering team of this feature request. There is currently no ETA for its implementation.
A current workaround would be to check the returned "boundingPoly" [1] "vertices" for the returned "textAnnotations". If the calculated rectangle's heights > widths, than your image is sideways.
[1]https://cloud.google.com/vision/reference/rest/v1/images/annotate#boundingpoly
A current workaround would be to check the returned "boundingPoly" [1] "vertices" for the returned "textAnnotations". If the calculated rectangle's heights > widths, than your image is sideways.
[1]
ro...@google.com <ro...@google.com> #3
I also need this problem solved :)
[Deleted User] <[Deleted User]> #4
same :D
[Deleted User] <[Deleted User]> #6
+1
cr...@gmail.com <cr...@gmail.com> #7
This needs more attention. It's not just a display issue as described in the report. The co-ordinates returned in 'boundingPoly' are incorrect if the image was taken on a phone. All the x points should be y and vice versa.
The workaround does not make sense as "boundingPoly" [1] "vertices" for "textAnnotations" does not indicate the image dimensions - it indicates the dimensions of the relevant text block inside the image.
The workaround does not make sense as "boundingPoly" [1] "vertices" for "textAnnotations" does not indicate the image dimensions - it indicates the dimensions of the relevant text block inside the image.
Description
I am using Google API V2 for translating content.
Here's a sample request:
Here's what I get in the response:
{ "data": { "translations": [ { "translatedText": "\u003cdiv style=\"text-align: center;;text-align:right;direction:rtl\"\u003eSpas dikim\u003c/div\u003e" } ] } }
I am concerned with style i.e text-align:right;direction:rtl
Kurdish is left-to-right language. However since I am getting this style tag added by translate API, the text appears from right-to-left.