Assigned
Status Update
Comments
mi...@google.com <mi...@google.com>
mi...@google.com <mi...@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]
kt...@google.com <kt...@google.com> #3
I also need this problem solved :)
Description
```js
const language = require('@google-cloud/language');
const client = new language.LanguageServiceClient();
const [result] = await client.analyzeEntities({ document: {
content: 'In the wake of eTrade quietly opening Bitcoin trading for some of its customers, eTrade is preparing to begin offering Bitcoin trading to its 5 million or so customers who hold Bitcoin',
type: 'PLAIN_TEXT',
} });
console.log(result.entities[4], result.entities[5]);
```