v1

package
v0.1.50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

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

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

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

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

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

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

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

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

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

type RunCheckPictureInvoker added in v0.0.90

type RunCheckPictureInvoker struct {
	*invoker.BaseInvoker
}

func (*RunCheckPictureInvoker) Invoke added in v0.0.90

type RunCreateInstanceInvoker added in v0.0.90

type RunCreateInstanceInvoker struct {
	*invoker.BaseInvoker
}

func (*RunCreateInstanceInvoker) Invoke added in v0.0.90

type RunDeleteInstanceInvoker added in v0.0.90

type RunDeleteInstanceInvoker struct {
	*invoker.BaseInvoker
}

func (*RunDeleteInstanceInvoker) Invoke added in v0.0.90

type RunDeletePictureInvoker added in v0.0.90

type RunDeletePictureInvoker struct {
	*invoker.BaseInvoker
}

func (*RunDeletePictureInvoker) Invoke added in v0.0.90

type RunModifyPictureInvoker added in v0.0.90

type RunModifyPictureInvoker struct {
	*invoker.BaseInvoker
}

func (*RunModifyPictureInvoker) Invoke added in v0.0.90

type RunQueryInstanceInvoker added in v0.0.90

type RunQueryInstanceInvoker struct {
	*invoker.BaseInvoker
}

func (*RunQueryInstanceInvoker) Invoke added in v0.0.90

type RunSearchPictureInvoker added in v0.0.90

type RunSearchPictureInvoker struct {
	*invoker.BaseInvoker
}

func (*RunSearchPictureInvoker) Invoke added in v0.0.90

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL