Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) DeleteImage(lib, source string) (*api.BaseResponse, error)
- func (c *Client) DeleteVideo(lib, source string) (*api.BaseResponse, error)
- func (c *Client) GetInsertVideoResult(lib, source string) (*api.BaseResponse, error)
- func (c *Client) GetSearchVideoByVideoResult(lib, source string) (*api.SearchTaskResultResponse, error)
- func (c *Client) InsertImage(lib string, args *api.BaseRequest) (*api.BaseResponse, error)
- func (c *Client) InsertVideo(lib string, args *api.BaseRequest) (*api.BaseResponse, error)
- func (c *Client) SearchImageByImage(lib string, args *api.BaseRequest) (*api.SearchTaskResultResponse, error)
- func (c *Client) SearchVideoByImage(lib string, args *api.BaseRequest) (*api.SearchTaskResultResponse, error)
- func (c *Client) SearchVideoByVideo(lib string, args *api.BaseRequest) (*api.SearchTaskResultResponse, error)
Constants ¶
View Source
const (
DEFAULT_SERVICE_DOMAIN = "mms." + bce.DEFAULT_REGION + "." + bce.DEFAULT_DOMAIN
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client of MMS service
func (*Client) DeleteImage ¶
func (c *Client) DeleteImage(lib, source string) (*api.BaseResponse, error)
DeleteImage - delete a image PARAMS:
- lib: image library name
- source: image source
RETURN:
- BaseResponse: the result of delete a image
- error: nil if success otherwise the specific error
func (*Client) DeleteVideo ¶
func (c *Client) DeleteVideo(lib, source string) (*api.BaseResponse, error)
DeleteVideo - delete a video PARAMS:
- lib: vedio library name
- source: vedio source
RETURN:
- BaseResponse: the result of delete video
- error: nil if success otherwise the specific error
func (*Client) GetInsertVideoResult ¶
func (c *Client) GetInsertVideoResult(lib, source string) (*api.BaseResponse, error)
GetInsertVideoResult - get video insert result and video recognize task result PARAMS:
- lib: vedio library name
- source: vedio source
RETURN:
- BaseResponse: the result of get result
- error: nil if success otherwise the specific error
func (*Client) GetSearchVideoByVideoResult ¶
func (c *Client) GetSearchVideoByVideoResult(lib, source string) (*api.SearchTaskResultResponse, error)
GetSearchVideoByVideoResult - get result of searching videos by video PARAMS:
- lib: video library name
- source: video source
RETURN:
- BaseResponse: the result of searching videos by video
- error: nil if success otherwise the specific error
func (*Client) InsertImage ¶
func (c *Client) InsertImage(lib string, args *api.BaseRequest) (*api.BaseResponse, error)
InsertImage - insert a image PARAMS:
- lib: image library name
- args: image source and description
RETURN:
- BaseResponse: the result of insert a image
- error: nil if success otherwise the specific error
func (*Client) InsertVideo ¶
func (c *Client) InsertVideo(lib string, args *api.BaseRequest) (*api.BaseResponse, error)
InsertVideo - insert a video, and create a video recognize task PARAMS:
- lib: vedio library name
- args: vedio source and description
RETURN:
- BaseResponse: the result of insert a video
- error: nil if success otherwise the specific error
func (*Client) SearchImageByImage ¶
func (c *Client) SearchImageByImage(lib string, args *api.BaseRequest) (*api.SearchTaskResultResponse, error)
SearchImageByImage - search images by a image PARAMS:
- lib: image library name
- args: image source and description
RETURN:
- BaseResponse: the result of search
- error: nil if success otherwise the specific error
func (*Client) SearchVideoByImage ¶
func (c *Client) SearchVideoByImage(lib string, args *api.BaseRequest) (*api.SearchTaskResultResponse, error)
SearchVideoByImage - search videos by a image PARAMS:
- lib: video library name
- args: image source and description
RETURN:
- BaseResponse: the result of search
- error: nil if success otherwise the specific error
func (*Client) SearchVideoByVideo ¶
func (c *Client) SearchVideoByVideo(lib string, args *api.BaseRequest) (*api.SearchTaskResultResponse, error)
SearchVideoByVideo - create a search videos by a video task PARAMS:
- lib: video library name
- args: video source and description
RETURN:
- BaseResponse: search task info
- error: nil if success otherwise the specific error
Click to show internal directories.
Click to hide internal directories.