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) RunCheckPicture(request *model.RunCheckPictureRequest) (*model.RunCheckPictureResponse, error)
- func (c *ImageSearchClient) RunCreateInstance(request *model.RunCreateInstanceRequest) (*model.RunCreateInstanceResponse, error)
- func (c *ImageSearchClient) RunDeleteInstance(request *model.RunDeleteInstanceRequest) (*model.RunDeleteInstanceResponse, error)
- func (c *ImageSearchClient) RunDeletePicture(request *model.RunDeletePictureRequest) (*model.RunDeletePictureResponse, error)
- func (c *ImageSearchClient) RunModifyPicture(request *model.RunModifyPictureRequest) (*model.RunModifyPictureResponse, error)
- func (c *ImageSearchClient) RunQueryInstance(request *model.RunQueryInstanceRequest) (*model.RunQueryInstanceResponse, error)
- func (c *ImageSearchClient) RunSearchPicture(request *model.RunSearchPictureRequest) (*model.RunSearchPictureResponse, error)
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)
添加图片 将图片导入图片索引库,该图片可以是同一区域OBS桶内的图片或请求消息体里的图片,只有导入图片索引库的图片方可被搜索到。 > - 添加或搜索的图片存储在OBS的桶中时,需要对OBS的桶授权。在图像搜索服务管理控制台“实例管理”页面,单击实例操作列的“离线导入”,进入“离线导入”页面。选择存放数据的OBS桶,单击“授权”按钮,字体显示为灰色即完成OBS授权访问。
func (*ImageSearchClient) RunCheckPicture ¶
func (c *ImageSearchClient) RunCheckPicture(request *model.RunCheckPictureRequest) (*model.RunCheckPictureResponse, error)
通过图片路径查询索引库中对应图片是否存在。
func (*ImageSearchClient) RunCreateInstance ¶
func (c *ImageSearchClient) RunCreateInstance(request *model.RunCreateInstanceRequest) (*model.RunCreateInstanceResponse, error)
创建实例,实例中会生成图片索引库,用来存放图片特征。
func (*ImageSearchClient) RunDeleteInstance ¶
func (c *ImageSearchClient) RunDeleteInstance(request *model.RunDeleteInstanceRequest) (*model.RunDeleteInstanceResponse, error)
删除已存在的实例。
func (*ImageSearchClient) RunDeletePicture ¶
func (c *ImageSearchClient) RunDeletePicture(request *model.RunDeletePictureRequest) (*model.RunDeletePictureResponse, error)
通过图片路径删除索引库中对应图片。
func (*ImageSearchClient) RunModifyPicture ¶
func (c *ImageSearchClient) RunModifyPicture(request *model.RunModifyPictureRequest) (*model.RunModifyPictureResponse, error)
修改图像索引库中已存在的图片信息。
func (*ImageSearchClient) RunQueryInstance ¶
func (c *ImageSearchClient) RunQueryInstance(request *model.RunQueryInstanceRequest) (*model.RunQueryInstanceResponse, error)
查看用户指定实例详细信息。
func (*ImageSearchClient) RunSearchPicture ¶
func (c *ImageSearchClient) RunSearchPicture(request *model.RunSearchPictureRequest) (*model.RunSearchPictureResponse, error)
从图片索引库中搜索相似图片。
Click to show internal directories.
Click to hide internal directories.