Assigned
Status Update
Comments
sh...@google.com <sh...@google.com>
sh...@google.com <sh...@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]
sr...@toppannexus.com <sr...@toppannexus.com> #3
I also need this problem solved :)
Description
=== command ===
curl -X POST \
-H "Authorization: Bearer "$(gcloud auth application-default print-access-token) \
-H "Content-Type: application/json; charset=utf-8" \
-d @request.json \
"
=== request.json ===
{
"sourceLanguageCode": "zh-hk",
"targetLanguageCode": "en",
"contents": ["<p><span class='t12'>附注: 本集团已初步采用经修订的追溯方法应用国际财务报告准则第</span><span class='t13'>16</span><span class='t12'>号。根据该方法,比较资料不予重</span></p>"]
}
=== Response ===
{"translations": [{
"translatedText": "\u003cp\u003e\u003cspan class='t12'\u003eNote: The Group has initially applied IFRS\u003c/span\u003e \u003cspan class='t13'\u003e16\u003c/span\u003e using a modified retrospective approach \u003cspan class='t12'\u003e. According to this method, comparative information is not weighted\u003c/span\u003e\u003c/p\u003e"
}]}