Versions in this module Expand all Collapse all v0 v0.3.0 Jan 25, 2023 v0.2.0 Jan 25, 2023 v0.1.0 Jan 25, 2023 Changes in this version + var EndpointMap map[string]string + var EndpointType = "regional" + func GetEndpointMap() map[string]string + func GetEndpointType() string + func SetClientProperty(client *Client, propertyName string, propertyValue interface{}) + func SetEndpointDataToClient(client *Client) + type Box struct + Box []float64 + type ClassifyingRubbishRequest struct + FormatResultToJson requests.Boolean + ImageURL string + OssFile string + RequestProxyBy string + func CreateClassifyingRubbishRequest() (request *ClassifyingRubbishRequest) + type ClassifyingRubbishResponse struct + Data Data + RequestId string + func CreateClassifyingRubbishResponse() (response *ClassifyingRubbishResponse) + type Client struct + func NewClient() (client *Client, err error) + func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) + func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) + func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) + func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) + func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) + func NewClientWithRamRoleArnAndPolicy(regionId string, ...) (client *Client, err error) + func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) + func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) + func (client *Client) ClassifyingRubbish(request *ClassifyingRubbishRequest) (response *ClassifyingRubbishResponse, err error) + func (client *Client) ClassifyingRubbishWithCallback(request *ClassifyingRubbishRequest, ...) <-chan int + func (client *Client) ClassifyingRubbishWithChan(request *ClassifyingRubbishRequest) (<-chan *ClassifyingRubbishResponse, <-chan error) + func (client *Client) DetectFruits(request *DetectFruitsRequest) (response *DetectFruitsResponse, err error) + func (client *Client) DetectFruitsWithCallback(request *DetectFruitsRequest, ...) <-chan int + func (client *Client) DetectFruitsWithChan(request *DetectFruitsRequest) (<-chan *DetectFruitsResponse, <-chan error) + func (client *Client) DetectImageElements(request *DetectImageElementsRequest) (response *DetectImageElementsResponse, err error) + func (client *Client) DetectImageElementsWithCallback(request *DetectImageElementsRequest, ...) <-chan int + func (client *Client) DetectImageElementsWithChan(request *DetectImageElementsRequest) (<-chan *DetectImageElementsResponse, <-chan error) + func (client *Client) EvaluateCertificateQuality(request *EvaluateCertificateQualityRequest) (response *EvaluateCertificateQualityResponse, err error) + func (client *Client) EvaluateCertificateQualityWithCallback(request *EvaluateCertificateQualityRequest, ...) <-chan int + func (client *Client) EvaluateCertificateQualityWithChan(request *EvaluateCertificateQualityRequest) (<-chan *EvaluateCertificateQualityResponse, <-chan error) + func (client *Client) GetAsyncJobResult(request *GetAsyncJobResultRequest) (response *GetAsyncJobResultResponse, err error) + func (client *Client) GetAsyncJobResultWithCallback(request *GetAsyncJobResultRequest, ...) <-chan int + func (client *Client) GetAsyncJobResultWithChan(request *GetAsyncJobResultRequest) (<-chan *GetAsyncJobResultResponse, <-chan error) + func (client *Client) RecognizeFood(request *RecognizeFoodRequest) (response *RecognizeFoodResponse, err error) + func (client *Client) RecognizeFoodWithCallback(request *RecognizeFoodRequest, ...) <-chan int + func (client *Client) RecognizeFoodWithChan(request *RecognizeFoodRequest) (<-chan *RecognizeFoodResponse, <-chan error) + func (client *Client) RecognizeImageColor(request *RecognizeImageColorRequest) (response *RecognizeImageColorResponse, err error) + func (client *Client) RecognizeImageColorWithCallback(request *RecognizeImageColorRequest, ...) <-chan int + func (client *Client) RecognizeImageColorWithChan(request *RecognizeImageColorRequest) (<-chan *RecognizeImageColorResponse, <-chan error) + func (client *Client) RecognizeImageStyle(request *RecognizeImageStyleRequest) (response *RecognizeImageStyleResponse, err error) + func (client *Client) RecognizeImageStyleWithCallback(request *RecognizeImageStyleRequest, ...) <-chan int + func (client *Client) RecognizeImageStyleWithChan(request *RecognizeImageStyleRequest) (<-chan *RecognizeImageStyleResponse, <-chan error) + func (client *Client) RecognizeLogo(request *RecognizeLogoRequest) (response *RecognizeLogoResponse, err error) + func (client *Client) RecognizeLogoWithCallback(request *RecognizeLogoRequest, ...) <-chan int + func (client *Client) RecognizeLogoWithChan(request *RecognizeLogoRequest) (<-chan *RecognizeLogoResponse, <-chan error) + func (client *Client) RecognizeScene(request *RecognizeSceneRequest) (response *RecognizeSceneResponse, err error) + func (client *Client) RecognizeSceneWithCallback(request *RecognizeSceneRequest, ...) <-chan int + func (client *Client) RecognizeSceneWithChan(request *RecognizeSceneRequest) (<-chan *RecognizeSceneResponse, <-chan error) + func (client *Client) RecognizeVehicleType(request *RecognizeVehicleTypeRequest) (response *RecognizeVehicleTypeResponse, err error) + func (client *Client) RecognizeVehicleTypeWithCallback(request *RecognizeVehicleTypeRequest, ...) <-chan int + func (client *Client) RecognizeVehicleTypeWithChan(request *RecognizeVehicleTypeRequest) (<-chan *RecognizeVehicleTypeResponse, <-chan error) + func (client *Client) TaggingAdImage(request *TaggingAdImageRequest) (response *TaggingAdImageResponse, err error) + func (client *Client) TaggingAdImageWithCallback(request *TaggingAdImageRequest, ...) <-chan int + func (client *Client) TaggingAdImageWithChan(request *TaggingAdImageRequest) (<-chan *TaggingAdImageResponse, <-chan error) + func (client *Client) TaggingImage(request *TaggingImageRequest) (response *TaggingImageResponse, err error) + func (client *Client) TaggingImageWithCallback(request *TaggingImageRequest, ...) <-chan int + func (client *Client) TaggingImageWithChan(request *TaggingImageRequest) (<-chan *TaggingImageResponse, <-chan error) + type ColorTemplate struct + Color string + Label string + Percentage float64 + type ColorTemplateList struct + ColorTemplate []ColorTemplate + type Data struct + ColorTemplateList []ColorTemplate + Elements []Element + ErrorCode string + ErrorMessage string + JobId string + Result string + Sensitive bool + Status string + Styles []string + Tags []Tag + Threshold float64 + TopFives []TopFivesItem + type DataInTaggingAdImage struct + TagInfo map[string]interface{} + Tags []Tags + type DetectFruitsRequest struct + FormatResultToJson requests.Boolean + ImageURL string + OssFile string + RequestProxyBy string + func CreateDetectFruitsRequest() (request *DetectFruitsRequest) + type DetectFruitsResponse struct + Data Data + RequestId string + func CreateDetectFruitsResponse() (response *DetectFruitsResponse) + type DetectImageElementsRequest struct + FormatResultToJson requests.Boolean + OssFile string + RequestProxyBy string + Url string + func CreateDetectImageElementsRequest() (request *DetectImageElementsRequest) + type DetectImageElementsResponse struct + Data Data + RequestId string + func CreateDetectImageElementsResponse() (response *DetectImageElementsResponse) + type Element struct + Box []float64 + Category string + CategoryScore float64 + Height int + ImageURL string + Name string + Results []Result + Rubbish string + RubbishScore float64 + Score float64 + TaskId string + Type string + Width int + X int + Y int + type ElementInEvaluateCertificateQuality struct + Pass string + Score string + Value string + type ElementsInClassifyingRubbish struct + Element []Element + type ElementsInDetectFruits struct + Element []Element + type ElementsInDetectImageElements struct + Element []Element + type ElementsInEvaluateCertificateQuality struct + Element []ElementInEvaluateCertificateQuality + type ElementsInRecognizeLogo struct + Element []Element + type ElementsInRecognizeVehicleType struct + Element []Element + type EvaluateCertificateQualityRequest struct + FormatResultToJson requests.Boolean + ImageURL string + OssFile string + RequestProxyBy string + Type string + func CreateEvaluateCertificateQualityRequest() (request *EvaluateCertificateQualityRequest) + type EvaluateCertificateQualityResponse struct + Data Data + RequestId string + func CreateEvaluateCertificateQualityResponse() (response *EvaluateCertificateQualityResponse) + type GetAsyncJobResultRequest struct + Async string + FormatResultToJson requests.Boolean + JobId string + OssFile string + RequestProxyBy string + func CreateGetAsyncJobResultRequest() (request *GetAsyncJobResultRequest) + type GetAsyncJobResultResponse struct + Data Data + RequestId string + func CreateGetAsyncJobResultResponse() (response *GetAsyncJobResultResponse) + type LogoData struct + H float64 + Name string + Type string + W float64 + X float64 + Y float64 + type LogosData struct + LogoData []LogoData + type RecognizeFoodRequest struct + FormatResultToJson requests.Boolean + ImageURL string + OssFile string + RequestProxyBy string + func CreateRecognizeFoodRequest() (request *RecognizeFoodRequest) + type RecognizeFoodResponse struct + Code string + Data Data + Message string + RequestId string + func CreateRecognizeFoodResponse() (response *RecognizeFoodResponse) + type RecognizeImageColorRequest struct + ColorCount requests.Integer + FormatResultToJson requests.Boolean + OssFile string + RequestProxyBy string + Url string + func CreateRecognizeImageColorRequest() (request *RecognizeImageColorRequest) + type RecognizeImageColorResponse struct + Data Data + RequestId string + func CreateRecognizeImageColorResponse() (response *RecognizeImageColorResponse) + type RecognizeImageStyleRequest struct + FormatResultToJson requests.Boolean + OssFile string + RequestProxyBy string + Url string + func CreateRecognizeImageStyleRequest() (request *RecognizeImageStyleRequest) + type RecognizeImageStyleResponse struct + Data Data + RequestId string + func CreateRecognizeImageStyleResponse() (response *RecognizeImageStyleResponse) + type RecognizeLogoRequest struct + FormatResultToJson requests.Boolean + OssFile string + RequestProxyBy string + Tasks *[]RecognizeLogoTasks + func CreateRecognizeLogoRequest() (request *RecognizeLogoRequest) + type RecognizeLogoResponse struct + Data Data + RequestId string + func CreateRecognizeLogoResponse() (response *RecognizeLogoResponse) + type RecognizeLogoTasks struct + ImageURL string + type RecognizeSceneRequest struct + FormatResultToJson requests.Boolean + ImageType requests.Integer + ImageURL string + OssFile string + RequestProxyBy string + func CreateRecognizeSceneRequest() (request *RecognizeSceneRequest) + type RecognizeSceneResponse struct + Data Data + RequestId string + func CreateRecognizeSceneResponse() (response *RecognizeSceneResponse) + type RecognizeVehicleTypeRequest struct + FormatResultToJson requests.Boolean + ImageURL string + OssFile string + RequestProxyBy string + func CreateRecognizeVehicleTypeRequest() (request *RecognizeVehicleTypeRequest) + type RecognizeVehicleTypeResponse struct + Data Data + RequestId string + func CreateRecognizeVehicleTypeResponse() (response *RecognizeVehicleTypeResponse) + type Result struct + Label string + LogosData []LogoData + Rate float64 + Suggestion string + type Results struct + Result []Result + type Styles struct + Style []string + type Tag struct + Confidence float64 + Value string + type TaggingAdImageRequest struct + Async requests.Boolean + FormatResultToJson requests.Boolean + ImageType requests.Integer + ImageURL string + OssFile string + RequestProxyBy string + func CreateTaggingAdImageRequest() (request *TaggingAdImageRequest) + type TaggingAdImageResponse struct + Code string + Data DataInTaggingAdImage + Message string + RequestId string + func CreateTaggingAdImageResponse() (response *TaggingAdImageResponse) + type TaggingImageRequest struct + Async requests.Boolean + FormatResultToJson requests.Boolean + ImageType requests.Integer + ImageURL string + Mode string + OssFile string + RequestProxyBy string + func CreateTaggingImageRequest() (request *TaggingImageRequest) + type TaggingImageResponse struct + Data Data + RequestId string + func CreateTaggingImageResponse() (response *TaggingImageResponse) + type Tags struct + Confidence float64 + Value string + type TagsInRecognizeScene struct + Tag []Tag + type TagsInTaggingAdImage struct + Tags []Tags + type TagsInTaggingImage struct + Tag []Tag + type TopFives struct + TopFivesItem []TopFivesItem + type TopFivesItem struct + Calorie string + Category string + Score float64