我试图在使用GCP的云视觉API进行产品搜索时指定边界保利。我已经在代码中进行了一些挖掘,并构建了以下函数,特别是试图构建多边形的行。image_uri: Cloud Storage location of image to be searched.product_search_client = vision.ProductSearchClient()
image_annotator_client = vision.Image
我做了通过Python使用的设置,但是它不起作用,我也找不到任何好的解决方案。不管我做什么,我总能得到"AttributeError: module 'google.cloud.vision' has no attribute 'types'".from __future__ import print_functionfrom
在google cloudvision上,你是按请求收费的。如果你做了一个“标签检测”,你会得到一个免费的“安全搜索”,但它必须被放入同一个请求中。我有标签检测和安全搜索检测的工作代码,但我不确定如何将这两个结合到一个请求中。 有人已经用Python回答了这个问题,但不确定如何将其翻译成PHP。How to call for "Label Detection" and "Safe Search Detection" at a t