【发布时间】:2021-04-27 23:52:20
【问题描述】:
我正在尝试将节点客户端用于 Google Cloud Vision API。 我设法使用以下方法在远程图像上获得裁剪提示:
const [result] = await clientVision.cropHints(`gs://mybucket/${image.name}`,
{imageContext : {cropHintsParams : {aspectRatios : [1]}}});
但没有考虑纵横比。我可以将 aspectRatios 的值更改为 1 或 4 或浮点 1.33333,我的顶点得到相同的坐标。默认纵横比似乎是 1.77。
知道为什么吗?
【问题讨论】:
标签: node.js google-vision