Assigned
Status Update
Comments
ji...@google.com <ji...@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]
an...@gmail.com <an...@gmail.com> #3
I also need this problem solved :)
id...@mile.cloud <id...@mile.cloud> #4
same :D
an...@gmail.com <an...@gmail.com> #5
+1
an...@gmail.com <an...@gmail.com> #6
+1
ji...@google.com <ji...@google.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.
an...@gmail.com <an...@gmail.com> #8
+1
Description
Please provide as much information as possible. At least, this should include a description of your issue and steps to reproduce the problem. If possible please provide a summary of what steps or workarounds you have already tried, and any docs or articles you found (un)helpful.
Problem you have encountered:
- I am facing alignment issues in PDF translation. I would like to fix this issue so that the result of translation has the same alignment as the source file.
- It is not a transient issue. This has been tested a few times with the same results.
-observed the same issue, using -
curl --request POST \
'
--header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{"sourceLanguageCode":"de","targetLanguageCode":"en","documentInputConfig":{"gcsSource":{"inputUri":[FILE_LOCATION]}},"documentOutputConfig":{"gcsDestination":{"outputUriPrefix":[DESTINATION_LOCATION]}}}' \
--compressed
What you expected to happen:
- I would like to fix this issue so that the result of translation has the same alignment as the source file.