Documentation ¶
Index ¶
- func GenReqDefForRunAddPicture() *def.HttpRequestDef
- func GenReqDefForRunCheckPicture() *def.HttpRequestDef
- func GenReqDefForRunCreateInstance() *def.HttpRequestDef
- func GenReqDefForRunDeleteInstance() *def.HttpRequestDef
- func GenReqDefForRunDeletePicture() *def.HttpRequestDef
- func GenReqDefForRunModifyPicture() *def.HttpRequestDef
- func GenReqDefForRunQueryInstance() *def.HttpRequestDef
- func GenReqDefForRunSearchPicture() *def.HttpRequestDef
- func ImageSearchClientBuilder() *http_client.HcHttpClientBuilder
- type ImageSearchClient
- func (c *ImageSearchClient) RunAddPicture(request *model.RunAddPictureRequest) (*model.RunAddPictureResponse, error)
- func (c *ImageSearchClient) RunAddPictureInvoker(request *model.RunAddPictureRequest) *RunAddPictureInvoker
- func (c *ImageSearchClient) RunCheckPicture(request *model.RunCheckPictureRequest) (*model.RunCheckPictureResponse, error)
- func (c *ImageSearchClient) RunCheckPictureInvoker(request *model.RunCheckPictureRequest) *RunCheckPictureInvoker
- func (c *ImageSearchClient) RunCreateInstance(request *model.RunCreateInstanceRequest) (*model.RunCreateInstanceResponse, error)
- func (c *ImageSearchClient) RunCreateInstanceInvoker(request *model.RunCreateInstanceRequest) *RunCreateInstanceInvoker
- func (c *ImageSearchClient) RunDeleteInstance(request *model.RunDeleteInstanceRequest) (*model.RunDeleteInstanceResponse, error)
- func (c *ImageSearchClient) RunDeleteInstanceInvoker(request *model.RunDeleteInstanceRequest) *RunDeleteInstanceInvoker
- func (c *ImageSearchClient) RunDeletePicture(request *model.RunDeletePictureRequest) (*model.RunDeletePictureResponse, error)
- func (c *ImageSearchClient) RunDeletePictureInvoker(request *model.RunDeletePictureRequest) *RunDeletePictureInvoker
- func (c *ImageSearchClient) RunModifyPicture(request *model.RunModifyPictureRequest) (*model.RunModifyPictureResponse, error)
- func (c *ImageSearchClient) RunModifyPictureInvoker(request *model.RunModifyPictureRequest) *RunModifyPictureInvoker
- func (c *ImageSearchClient) RunQueryInstance(request *model.RunQueryInstanceRequest) (*model.RunQueryInstanceResponse, error)
- func (c *ImageSearchClient) RunQueryInstanceInvoker(request *model.RunQueryInstanceRequest) *RunQueryInstanceInvoker
- func (c *ImageSearchClient) RunSearchPicture(request *model.RunSearchPictureRequest) (*model.RunSearchPictureResponse, error)
- func (c *ImageSearchClient) RunSearchPictureInvoker(request *model.RunSearchPictureRequest) *RunSearchPictureInvoker
- type RunAddPictureInvoker
- type RunCheckPictureInvoker
- type RunCreateInstanceInvoker
- type RunDeleteInstanceInvoker
- type RunDeletePictureInvoker
- type RunModifyPictureInvoker
- type RunQueryInstanceInvoker
- type RunSearchPictureInvoker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenReqDefForRunAddPicture ¶
func GenReqDefForRunAddPicture() *def.HttpRequestDef
func GenReqDefForRunCheckPicture ¶
func GenReqDefForRunCheckPicture() *def.HttpRequestDef
func GenReqDefForRunCreateInstance ¶
func GenReqDefForRunCreateInstance() *def.HttpRequestDef
func GenReqDefForRunDeleteInstance ¶
func GenReqDefForRunDeleteInstance() *def.HttpRequestDef
func GenReqDefForRunDeletePicture ¶
func GenReqDefForRunDeletePicture() *def.HttpRequestDef
func GenReqDefForRunModifyPicture ¶
func GenReqDefForRunModifyPicture() *def.HttpRequestDef
func GenReqDefForRunQueryInstance ¶
func GenReqDefForRunQueryInstance() *def.HttpRequestDef
func GenReqDefForRunSearchPicture ¶
func GenReqDefForRunSearchPicture() *def.HttpRequestDef
func ImageSearchClientBuilder ¶
func ImageSearchClientBuilder() *http_client.HcHttpClientBuilder
Types ¶
type ImageSearchClient ¶
type ImageSearchClient struct {
HcClient *http_client.HcHttpClient
}
func NewImageSearchClient ¶
func NewImageSearchClient(hcClient *http_client.HcHttpClient) *ImageSearchClient
func (*ImageSearchClient) RunAddPicture ¶
func (c *ImageSearchClient) RunAddPicture(request *model.RunAddPictureRequest) (*model.RunAddPictureResponse, error)
RunAddPicture 添加图片
添加图片 将图片导入图片索引库,该图片可以是同一区域OBS桶内的图片或请求消息体里的图片,只有导入图片索引库的图片方可被搜索到。
> - 添加或搜索的图片存储在OBS的桶中时,需要对OBS的桶授权。在图像搜索服务管理控制台“实例管理”页面,单击实例操作列的“离线导入”,进入“离线导入”页面。选择存放数据的OBS桶,单击“授权”按钮,字体显示为灰色即完成OBS授权访问。
Please refer to HUAWEI cloud API Explorer for details.
func (*ImageSearchClient) RunAddPictureInvoker ¶ added in v0.0.90
func (c *ImageSearchClient) RunAddPictureInvoker(request *model.RunAddPictureRequest) *RunAddPictureInvoker
RunAddPictureInvoker 添加图片
func (*ImageSearchClient) RunCheckPicture ¶
func (c *ImageSearchClient) RunCheckPicture(request *model.RunCheckPictureRequest) (*model.RunCheckPictureResponse, error)
RunCheckPicture 查询图片
通过图片路径查询索引库中对应图片是否存在。
Please refer to HUAWEI cloud API Explorer for details.
func (*ImageSearchClient) RunCheckPictureInvoker ¶ added in v0.0.90
func (c *ImageSearchClient) RunCheckPictureInvoker(request *model.RunCheckPictureRequest) *RunCheckPictureInvoker
RunCheckPictureInvoker 查询图片
func (*ImageSearchClient) RunCreateInstance ¶
func (c *ImageSearchClient) RunCreateInstance(request *model.RunCreateInstanceRequest) (*model.RunCreateInstanceResponse, error)
RunCreateInstance 创建实例
创建实例,实例中会生成图片索引库,用来存放图片特征。
Please refer to HUAWEI cloud API Explorer for details.
func (*ImageSearchClient) RunCreateInstanceInvoker ¶ added in v0.0.90
func (c *ImageSearchClient) RunCreateInstanceInvoker(request *model.RunCreateInstanceRequest) *RunCreateInstanceInvoker
RunCreateInstanceInvoker 创建实例
func (*ImageSearchClient) RunDeleteInstance ¶
func (c *ImageSearchClient) RunDeleteInstance(request *model.RunDeleteInstanceRequest) (*model.RunDeleteInstanceResponse, error)
RunDeleteInstance 删除实例
删除已存在的实例。
Please refer to HUAWEI cloud API Explorer for details.
func (*ImageSearchClient) RunDeleteInstanceInvoker ¶ added in v0.0.90
func (c *ImageSearchClient) RunDeleteInstanceInvoker(request *model.RunDeleteInstanceRequest) *RunDeleteInstanceInvoker
RunDeleteInstanceInvoker 删除实例
func (*ImageSearchClient) RunDeletePicture ¶
func (c *ImageSearchClient) RunDeletePicture(request *model.RunDeletePictureRequest) (*model.RunDeletePictureResponse, error)
RunDeletePicture 删除图片
通过图片路径删除索引库中对应图片。
Please refer to HUAWEI cloud API Explorer for details.
func (*ImageSearchClient) RunDeletePictureInvoker ¶ added in v0.0.90
func (c *ImageSearchClient) RunDeletePictureInvoker(request *model.RunDeletePictureRequest) *RunDeletePictureInvoker
RunDeletePictureInvoker 删除图片
func (*ImageSearchClient) RunModifyPicture ¶
func (c *ImageSearchClient) RunModifyPicture(request *model.RunModifyPictureRequest) (*model.RunModifyPictureResponse, error)
RunModifyPicture 修改图片信息
修改图像索引库中已存在的图片信息。
Please refer to HUAWEI cloud API Explorer for details.
func (*ImageSearchClient) RunModifyPictureInvoker ¶ added in v0.0.90
func (c *ImageSearchClient) RunModifyPictureInvoker(request *model.RunModifyPictureRequest) *RunModifyPictureInvoker
RunModifyPictureInvoker 修改图片信息
func (*ImageSearchClient) RunQueryInstance ¶
func (c *ImageSearchClient) RunQueryInstance(request *model.RunQueryInstanceRequest) (*model.RunQueryInstanceResponse, error)
RunQueryInstance 查询用户实例信息
查看用户指定实例详细信息。
Please refer to HUAWEI cloud API Explorer for details.
func (*ImageSearchClient) RunQueryInstanceInvoker ¶ added in v0.0.90
func (c *ImageSearchClient) RunQueryInstanceInvoker(request *model.RunQueryInstanceRequest) *RunQueryInstanceInvoker
RunQueryInstanceInvoker 查询用户实例信息
func (*ImageSearchClient) RunSearchPicture ¶
func (c *ImageSearchClient) RunSearchPicture(request *model.RunSearchPictureRequest) (*model.RunSearchPictureResponse, error)
RunSearchPicture 搜索图片
从图片索引库中搜索相似图片。
Please refer to HUAWEI cloud API Explorer for details.
func (*ImageSearchClient) RunSearchPictureInvoker ¶ added in v0.0.90
func (c *ImageSearchClient) RunSearchPictureInvoker(request *model.RunSearchPictureRequest) *RunSearchPictureInvoker
RunSearchPictureInvoker 搜索图片
type RunAddPictureInvoker ¶ added in v0.0.90
type RunAddPictureInvoker struct {
*invoker.BaseInvoker
}
func (*RunAddPictureInvoker) Invoke ¶ added in v0.0.90
func (i *RunAddPictureInvoker) Invoke() (*model.RunAddPictureResponse, error)
type RunCheckPictureInvoker ¶ added in v0.0.90
type RunCheckPictureInvoker struct {
*invoker.BaseInvoker
}
func (*RunCheckPictureInvoker) Invoke ¶ added in v0.0.90
func (i *RunCheckPictureInvoker) Invoke() (*model.RunCheckPictureResponse, error)
type RunCreateInstanceInvoker ¶ added in v0.0.90
type RunCreateInstanceInvoker struct {
*invoker.BaseInvoker
}
func (*RunCreateInstanceInvoker) Invoke ¶ added in v0.0.90
func (i *RunCreateInstanceInvoker) Invoke() (*model.RunCreateInstanceResponse, error)
type RunDeleteInstanceInvoker ¶ added in v0.0.90
type RunDeleteInstanceInvoker struct {
*invoker.BaseInvoker
}
func (*RunDeleteInstanceInvoker) Invoke ¶ added in v0.0.90
func (i *RunDeleteInstanceInvoker) Invoke() (*model.RunDeleteInstanceResponse, error)
type RunDeletePictureInvoker ¶ added in v0.0.90
type RunDeletePictureInvoker struct {
*invoker.BaseInvoker
}
func (*RunDeletePictureInvoker) Invoke ¶ added in v0.0.90
func (i *RunDeletePictureInvoker) Invoke() (*model.RunDeletePictureResponse, error)
type RunModifyPictureInvoker ¶ added in v0.0.90
type RunModifyPictureInvoker struct {
*invoker.BaseInvoker
}
func (*RunModifyPictureInvoker) Invoke ¶ added in v0.0.90
func (i *RunModifyPictureInvoker) Invoke() (*model.RunModifyPictureResponse, error)
type RunQueryInstanceInvoker ¶ added in v0.0.90
type RunQueryInstanceInvoker struct {
*invoker.BaseInvoker
}
func (*RunQueryInstanceInvoker) Invoke ¶ added in v0.0.90
func (i *RunQueryInstanceInvoker) Invoke() (*model.RunQueryInstanceResponse, error)
type RunSearchPictureInvoker ¶ added in v0.0.90
type RunSearchPictureInvoker struct {
*invoker.BaseInvoker
}
func (*RunSearchPictureInvoker) Invoke ¶ added in v0.0.90
func (i *RunSearchPictureInvoker) Invoke() (*model.RunSearchPictureResponse, error)