Assigned
Status Update
Comments
gs...@google.com <gs...@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]
pu...@gmail.com <pu...@gmail.com> #3
I also need this problem solved :)
jm...@google.com <jm...@google.com>
ja...@diverseprogrammers.com <ja...@diverseprogrammers.com> #6
+1
[Deleted User] <[Deleted User]> #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.
js...@gmail.com <js...@gmail.com> #8
+1
se...@doncelsoft.com <se...@doncelsoft.com> #9
Would be great if this could be implemented.
sr...@gmail.com <sr...@gmail.com> #10
+1
hr...@gmail.com <hr...@gmail.com> #11
+1
sw...@gmail.com <sw...@gmail.com> #12
+1
ni...@aramix.ai <ni...@aramix.ai> #13
+1.
fr...@aramix.ai <fr...@aramix.ai> #14
The rotation information should already be available, basically the order of the bounding box vertices encode that rotation information:
https://cloud.google.com/vision/docs/reference/rest/v1/images/annotate#block
Could you please test and see if that works for your case?
Could you please test and see if that works for your case?
Description
Problem you have encountered:
BlockType 'TABLE' is never returned from REST API I receive only TEXT
Attached one of the images i tried to get table from.
What you expected to happen:
To receive a BlockType TABLE
Steps to reproduce:
I run the default example on pyton:
```
from google.cloud import vision
client = vision.ImageAnnotatorClient()
with io.open(path, 'rb') as image_file:
content = image_file.read()
image = vision.types.Image(content=content)
response = client.document_text_detection(image=image)
```
Other information (workarounds you have tried, documentation consulted, etc):