Documentation
¶
Index ¶
- Variables
- func GetEndpointMap() map[string]string
- func GetEndpointType() string
- func SetClientProperty(client *Client, propertyName string, propertyValue interface{})
- func SetEndpointDataToClient(client *Client)
- type Box
- type ClassifyingRubbishRequest
- type ClassifyingRubbishResponse
- type Client
- 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
- type ColorTemplateList
- type Data
- type DataInTaggingAdImage
- type DetectFruitsRequest
- type DetectFruitsResponse
- type DetectImageElementsRequest
- type DetectImageElementsResponse
- type Element
- type ElementInEvaluateCertificateQuality
- type ElementsInClassifyingRubbish
- type ElementsInDetectFruits
- type ElementsInDetectImageElements
- type ElementsInEvaluateCertificateQuality
- type ElementsInRecognizeLogo
- type ElementsInRecognizeVehicleType
- type EvaluateCertificateQualityRequest
- type EvaluateCertificateQualityResponse
- type GetAsyncJobResultRequest
- type GetAsyncJobResultResponse
- type LogoData
- type LogosData
- type RecognizeFoodRequest
- type RecognizeFoodResponse
- type RecognizeImageColorRequest
- type RecognizeImageColorResponse
- type RecognizeImageStyleRequest
- type RecognizeImageStyleResponse
- type RecognizeLogoRequest
- type RecognizeLogoResponse
- type RecognizeLogoTasks
- type RecognizeSceneRequest
- type RecognizeSceneResponse
- type RecognizeVehicleTypeRequest
- type RecognizeVehicleTypeResponse
- type Result
- type Results
- type Styles
- type Tag
- type TaggingAdImageRequest
- type TaggingAdImageResponse
- type TaggingImageRequest
- type TaggingImageResponse
- type Tags
- type TagsInRecognizeScene
- type TagsInTaggingAdImage
- type TagsInTaggingImage
- type TopFives
- type TopFivesItem
Constants ¶
This section is empty.
Variables ¶
var EndpointMap map[string]string
EndpointMap Endpoint Data
var EndpointType = "regional"
EndpointType regional or central
Functions ¶
func SetClientProperty ¶
SetClientProperty Set Property by Reflect
func SetEndpointDataToClient ¶
func SetEndpointDataToClient(client *Client)
SetEndpointDataToClient Set EndpointMap and ENdpointType
Types ¶
type Box ¶
type Box struct {
Box []float64 `json:"Box" xml:"Box"`
}
Box is a nested struct in imagerecog response
type ClassifyingRubbishRequest ¶
type ClassifyingRubbishRequest struct { *requests.RpcRequest FormatResultToJson requests.Boolean `position:"Query" name:"FormatResultToJson"` OssFile string `position:"Query" name:"OssFile"` RequestProxyBy string `position:"Query" name:"RequestProxyBy"` ImageURL string `position:"Body" name:"ImageURL"` }
ClassifyingRubbishRequest is the request struct for api ClassifyingRubbish
func CreateClassifyingRubbishRequest ¶
func CreateClassifyingRubbishRequest() (request *ClassifyingRubbishRequest)
CreateClassifyingRubbishRequest creates a request to invoke ClassifyingRubbish API
type ClassifyingRubbishResponse ¶
type ClassifyingRubbishResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Data Data `json:"Data" xml:"Data"` }
ClassifyingRubbishResponse is the response struct for api ClassifyingRubbish
func CreateClassifyingRubbishResponse ¶
func CreateClassifyingRubbishResponse() (response *ClassifyingRubbishResponse)
CreateClassifyingRubbishResponse creates a response to parse from ClassifyingRubbish response
type Client ¶
Client is the sdk client struct, each func corresponds to an OpenAPI
func NewClientWithAccessKey ¶
func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)
NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithEcsRamRole ¶
NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithOptions ¶
func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)
NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client
func NewClientWithProvider ¶
func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)
NewClientWithProvider creates a sdk client with providers usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithRamRoleArn ¶
func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)
NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithRamRoleArnAndPolicy ¶
func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error)
NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithRsaKeyPair ¶
func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)
NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithStsToken ¶
func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)
NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func (*Client) ClassifyingRubbish ¶
func (client *Client) ClassifyingRubbish(request *ClassifyingRubbishRequest) (response *ClassifyingRubbishResponse, err error)
ClassifyingRubbish invokes the imagerecog.ClassifyingRubbish API synchronously
func (*Client) ClassifyingRubbishWithCallback ¶
func (client *Client) ClassifyingRubbishWithCallback(request *ClassifyingRubbishRequest, callback func(response *ClassifyingRubbishResponse, err error)) <-chan int
ClassifyingRubbishWithCallback invokes the imagerecog.ClassifyingRubbish API asynchronously
func (*Client) ClassifyingRubbishWithChan ¶
func (client *Client) ClassifyingRubbishWithChan(request *ClassifyingRubbishRequest) (<-chan *ClassifyingRubbishResponse, <-chan error)
ClassifyingRubbishWithChan invokes the imagerecog.ClassifyingRubbish API asynchronously
func (*Client) DetectFruits ¶
func (client *Client) DetectFruits(request *DetectFruitsRequest) (response *DetectFruitsResponse, err error)
DetectFruits invokes the imagerecog.DetectFruits API synchronously
func (*Client) DetectFruitsWithCallback ¶
func (client *Client) DetectFruitsWithCallback(request *DetectFruitsRequest, callback func(response *DetectFruitsResponse, err error)) <-chan int
DetectFruitsWithCallback invokes the imagerecog.DetectFruits API asynchronously
func (*Client) DetectFruitsWithChan ¶
func (client *Client) DetectFruitsWithChan(request *DetectFruitsRequest) (<-chan *DetectFruitsResponse, <-chan error)
DetectFruitsWithChan invokes the imagerecog.DetectFruits API asynchronously
func (*Client) DetectImageElements ¶
func (client *Client) DetectImageElements(request *DetectImageElementsRequest) (response *DetectImageElementsResponse, err error)
DetectImageElements invokes the imagerecog.DetectImageElements API synchronously
func (*Client) DetectImageElementsWithCallback ¶
func (client *Client) DetectImageElementsWithCallback(request *DetectImageElementsRequest, callback func(response *DetectImageElementsResponse, err error)) <-chan int
DetectImageElementsWithCallback invokes the imagerecog.DetectImageElements API asynchronously
func (*Client) DetectImageElementsWithChan ¶
func (client *Client) DetectImageElementsWithChan(request *DetectImageElementsRequest) (<-chan *DetectImageElementsResponse, <-chan error)
DetectImageElementsWithChan invokes the imagerecog.DetectImageElements API asynchronously
func (*Client) EvaluateCertificateQuality ¶ added in v1.61.778
func (client *Client) EvaluateCertificateQuality(request *EvaluateCertificateQualityRequest) (response *EvaluateCertificateQualityResponse, err error)
EvaluateCertificateQuality invokes the imagerecog.EvaluateCertificateQuality API synchronously
func (*Client) EvaluateCertificateQualityWithCallback ¶ added in v1.61.778
func (client *Client) EvaluateCertificateQualityWithCallback(request *EvaluateCertificateQualityRequest, callback func(response *EvaluateCertificateQualityResponse, err error)) <-chan int
EvaluateCertificateQualityWithCallback invokes the imagerecog.EvaluateCertificateQuality API asynchronously
func (*Client) EvaluateCertificateQualityWithChan ¶ added in v1.61.778
func (client *Client) EvaluateCertificateQualityWithChan(request *EvaluateCertificateQualityRequest) (<-chan *EvaluateCertificateQualityResponse, <-chan error)
EvaluateCertificateQualityWithChan invokes the imagerecog.EvaluateCertificateQuality API asynchronously
func (*Client) GetAsyncJobResult ¶ added in v1.61.906
func (client *Client) GetAsyncJobResult(request *GetAsyncJobResultRequest) (response *GetAsyncJobResultResponse, err error)
GetAsyncJobResult invokes the imagerecog.GetAsyncJobResult API synchronously
func (*Client) GetAsyncJobResultWithCallback ¶ added in v1.61.906
func (client *Client) GetAsyncJobResultWithCallback(request *GetAsyncJobResultRequest, callback func(response *GetAsyncJobResultResponse, err error)) <-chan int
GetAsyncJobResultWithCallback invokes the imagerecog.GetAsyncJobResult API asynchronously
func (*Client) GetAsyncJobResultWithChan ¶ added in v1.61.906
func (client *Client) GetAsyncJobResultWithChan(request *GetAsyncJobResultRequest) (<-chan *GetAsyncJobResultResponse, <-chan error)
GetAsyncJobResultWithChan invokes the imagerecog.GetAsyncJobResult API asynchronously
func (*Client) RecognizeFood ¶ added in v1.61.894
func (client *Client) RecognizeFood(request *RecognizeFoodRequest) (response *RecognizeFoodResponse, err error)
RecognizeFood invokes the imagerecog.RecognizeFood API synchronously
func (*Client) RecognizeFoodWithCallback ¶ added in v1.61.894
func (client *Client) RecognizeFoodWithCallback(request *RecognizeFoodRequest, callback func(response *RecognizeFoodResponse, err error)) <-chan int
RecognizeFoodWithCallback invokes the imagerecog.RecognizeFood API asynchronously
func (*Client) RecognizeFoodWithChan ¶ added in v1.61.894
func (client *Client) RecognizeFoodWithChan(request *RecognizeFoodRequest) (<-chan *RecognizeFoodResponse, <-chan error)
RecognizeFoodWithChan invokes the imagerecog.RecognizeFood API asynchronously
func (*Client) RecognizeImageColor ¶
func (client *Client) RecognizeImageColor(request *RecognizeImageColorRequest) (response *RecognizeImageColorResponse, err error)
RecognizeImageColor invokes the imagerecog.RecognizeImageColor API synchronously
func (*Client) RecognizeImageColorWithCallback ¶
func (client *Client) RecognizeImageColorWithCallback(request *RecognizeImageColorRequest, callback func(response *RecognizeImageColorResponse, err error)) <-chan int
RecognizeImageColorWithCallback invokes the imagerecog.RecognizeImageColor API asynchronously
func (*Client) RecognizeImageColorWithChan ¶
func (client *Client) RecognizeImageColorWithChan(request *RecognizeImageColorRequest) (<-chan *RecognizeImageColorResponse, <-chan error)
RecognizeImageColorWithChan invokes the imagerecog.RecognizeImageColor API asynchronously
func (*Client) RecognizeImageStyle ¶
func (client *Client) RecognizeImageStyle(request *RecognizeImageStyleRequest) (response *RecognizeImageStyleResponse, err error)
RecognizeImageStyle invokes the imagerecog.RecognizeImageStyle API synchronously
func (*Client) RecognizeImageStyleWithCallback ¶
func (client *Client) RecognizeImageStyleWithCallback(request *RecognizeImageStyleRequest, callback func(response *RecognizeImageStyleResponse, err error)) <-chan int
RecognizeImageStyleWithCallback invokes the imagerecog.RecognizeImageStyle API asynchronously
func (*Client) RecognizeImageStyleWithChan ¶
func (client *Client) RecognizeImageStyleWithChan(request *RecognizeImageStyleRequest) (<-chan *RecognizeImageStyleResponse, <-chan error)
RecognizeImageStyleWithChan invokes the imagerecog.RecognizeImageStyle API asynchronously
func (*Client) RecognizeLogo ¶
func (client *Client) RecognizeLogo(request *RecognizeLogoRequest) (response *RecognizeLogoResponse, err error)
RecognizeLogo invokes the imagerecog.RecognizeLogo API synchronously
func (*Client) RecognizeLogoWithCallback ¶
func (client *Client) RecognizeLogoWithCallback(request *RecognizeLogoRequest, callback func(response *RecognizeLogoResponse, err error)) <-chan int
RecognizeLogoWithCallback invokes the imagerecog.RecognizeLogo API asynchronously
func (*Client) RecognizeLogoWithChan ¶
func (client *Client) RecognizeLogoWithChan(request *RecognizeLogoRequest) (<-chan *RecognizeLogoResponse, <-chan error)
RecognizeLogoWithChan invokes the imagerecog.RecognizeLogo API asynchronously
func (*Client) RecognizeScene ¶
func (client *Client) RecognizeScene(request *RecognizeSceneRequest) (response *RecognizeSceneResponse, err error)
RecognizeScene invokes the imagerecog.RecognizeScene API synchronously
func (*Client) RecognizeSceneWithCallback ¶
func (client *Client) RecognizeSceneWithCallback(request *RecognizeSceneRequest, callback func(response *RecognizeSceneResponse, err error)) <-chan int
RecognizeSceneWithCallback invokes the imagerecog.RecognizeScene API asynchronously
func (*Client) RecognizeSceneWithChan ¶
func (client *Client) RecognizeSceneWithChan(request *RecognizeSceneRequest) (<-chan *RecognizeSceneResponse, <-chan error)
RecognizeSceneWithChan invokes the imagerecog.RecognizeScene API asynchronously
func (*Client) RecognizeVehicleType ¶
func (client *Client) RecognizeVehicleType(request *RecognizeVehicleTypeRequest) (response *RecognizeVehicleTypeResponse, err error)
RecognizeVehicleType invokes the imagerecog.RecognizeVehicleType API synchronously
func (*Client) RecognizeVehicleTypeWithCallback ¶
func (client *Client) RecognizeVehicleTypeWithCallback(request *RecognizeVehicleTypeRequest, callback func(response *RecognizeVehicleTypeResponse, err error)) <-chan int
RecognizeVehicleTypeWithCallback invokes the imagerecog.RecognizeVehicleType API asynchronously
func (*Client) RecognizeVehicleTypeWithChan ¶
func (client *Client) RecognizeVehicleTypeWithChan(request *RecognizeVehicleTypeRequest) (<-chan *RecognizeVehicleTypeResponse, <-chan error)
RecognizeVehicleTypeWithChan invokes the imagerecog.RecognizeVehicleType API asynchronously
func (*Client) TaggingAdImage ¶ added in v1.61.1227
func (client *Client) TaggingAdImage(request *TaggingAdImageRequest) (response *TaggingAdImageResponse, err error)
TaggingAdImage invokes the imagerecog.TaggingAdImage API synchronously
func (*Client) TaggingAdImageWithCallback ¶ added in v1.61.1227
func (client *Client) TaggingAdImageWithCallback(request *TaggingAdImageRequest, callback func(response *TaggingAdImageResponse, err error)) <-chan int
TaggingAdImageWithCallback invokes the imagerecog.TaggingAdImage API asynchronously
func (*Client) TaggingAdImageWithChan ¶ added in v1.61.1227
func (client *Client) TaggingAdImageWithChan(request *TaggingAdImageRequest) (<-chan *TaggingAdImageResponse, <-chan error)
TaggingAdImageWithChan invokes the imagerecog.TaggingAdImage API asynchronously
func (*Client) TaggingImage ¶
func (client *Client) TaggingImage(request *TaggingImageRequest) (response *TaggingImageResponse, err error)
TaggingImage invokes the imagerecog.TaggingImage API synchronously
func (*Client) TaggingImageWithCallback ¶
func (client *Client) TaggingImageWithCallback(request *TaggingImageRequest, callback func(response *TaggingImageResponse, err error)) <-chan int
TaggingImageWithCallback invokes the imagerecog.TaggingImage API asynchronously
func (*Client) TaggingImageWithChan ¶
func (client *Client) TaggingImageWithChan(request *TaggingImageRequest) (<-chan *TaggingImageResponse, <-chan error)
TaggingImageWithChan invokes the imagerecog.TaggingImage API asynchronously
type ColorTemplate ¶
type ColorTemplate struct { Color string `json:"Color" xml:"Color"` Percentage float64 `json:"Percentage" xml:"Percentage"` Label string `json:"Label" xml:"Label"` }
ColorTemplate is a nested struct in imagerecog response
type ColorTemplateList ¶
type ColorTemplateList struct {
ColorTemplate []ColorTemplate `json:"ColorTemplate" xml:"ColorTemplate"`
}
ColorTemplateList is a nested struct in imagerecog response
type Data ¶
type Data struct { JobId string `json:"JobId" xml:"JobId"` Result string `json:"Result" xml:"Result"` ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` Threshold float64 `json:"Threshold" xml:"Threshold"` Sensitive bool `json:"Sensitive" xml:"Sensitive"` Status string `json:"Status" xml:"Status"` ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` Styles []string `json:"Styles" xml:"Styles"` TopFives []TopFivesItem `json:"TopFives" xml:"TopFives"` Elements []Element `json:"Elements" xml:"Elements"` Tags []Tag `json:"Tags" xml:"Tags"` ColorTemplateList []ColorTemplate `json:"ColorTemplateList" xml:"ColorTemplateList"` }
Data is a nested struct in imagerecog response
type DataInTaggingAdImage ¶ added in v1.61.1227
type DataInTaggingAdImage struct { TagInfo map[string]interface{} `json:"TagInfo" xml:"TagInfo"` Tags []Tags `json:"Tags" xml:"Tags"` }
DataInTaggingAdImage is a nested struct in imagerecog response
type DetectFruitsRequest ¶
type DetectFruitsRequest struct { *requests.RpcRequest FormatResultToJson requests.Boolean `position:"Query" name:"FormatResultToJson"` OssFile string `position:"Query" name:"OssFile"` RequestProxyBy string `position:"Query" name:"RequestProxyBy"` ImageURL string `position:"Body" name:"ImageURL"` }
DetectFruitsRequest is the request struct for api DetectFruits
func CreateDetectFruitsRequest ¶
func CreateDetectFruitsRequest() (request *DetectFruitsRequest)
CreateDetectFruitsRequest creates a request to invoke DetectFruits API
type DetectFruitsResponse ¶
type DetectFruitsResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Data Data `json:"Data" xml:"Data"` }
DetectFruitsResponse is the response struct for api DetectFruits
func CreateDetectFruitsResponse ¶
func CreateDetectFruitsResponse() (response *DetectFruitsResponse)
CreateDetectFruitsResponse creates a response to parse from DetectFruits response
type DetectImageElementsRequest ¶
type DetectImageElementsRequest struct { *requests.RpcRequest FormatResultToJson requests.Boolean `position:"Query" name:"FormatResultToJson"` OssFile string `position:"Query" name:"OssFile"` RequestProxyBy string `position:"Query" name:"RequestProxyBy"` Url string `position:"Body" name:"Url"` }
DetectImageElementsRequest is the request struct for api DetectImageElements
func CreateDetectImageElementsRequest ¶
func CreateDetectImageElementsRequest() (request *DetectImageElementsRequest)
CreateDetectImageElementsRequest creates a request to invoke DetectImageElements API
type DetectImageElementsResponse ¶
type DetectImageElementsResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Data Data `json:"Data" xml:"Data"` }
DetectImageElementsResponse is the response struct for api DetectImageElements
func CreateDetectImageElementsResponse ¶
func CreateDetectImageElementsResponse() (response *DetectImageElementsResponse)
CreateDetectImageElementsResponse creates a response to parse from DetectImageElements response
type Element ¶
type Element struct { Category string `json:"Category" xml:"Category"` Name string `json:"Name" xml:"Name"` Score float64 `json:"Score" xml:"Score"` Y int `json:"Y" xml:"Y"` RubbishScore float64 `json:"RubbishScore" xml:"RubbishScore"` CategoryScore float64 `json:"CategoryScore" xml:"CategoryScore"` X int `json:"X" xml:"X"` TaskId string `json:"TaskId" xml:"TaskId"` ImageURL string `json:"ImageURL" xml:"ImageURL"` Width int `json:"Width" xml:"Width"` Height int `json:"Height" xml:"Height"` Rubbish string `json:"Rubbish" xml:"Rubbish"` Type string `json:"Type" xml:"Type"` Box []float64 `json:"Box" xml:"Box"` Results []Result `json:"Results" xml:"Results"` }
Element is a nested struct in imagerecog response
type ElementInEvaluateCertificateQuality ¶ added in v1.61.778
type ElementInEvaluateCertificateQuality struct { Value string `json:"Value" xml:"Value"` Pass string `json:"Pass" xml:"Pass"` Score string `json:"Score" xml:"Score"` }
ElementInEvaluateCertificateQuality is a nested struct in imagerecog response
type ElementsInClassifyingRubbish ¶
type ElementsInClassifyingRubbish struct {
Element []Element `json:"Element" xml:"Element"`
}
ElementsInClassifyingRubbish is a nested struct in imagerecog response
type ElementsInDetectFruits ¶
type ElementsInDetectFruits struct {
Element []Element `json:"Element" xml:"Element"`
}
ElementsInDetectFruits is a nested struct in imagerecog response
type ElementsInDetectImageElements ¶
type ElementsInDetectImageElements struct {
Element []Element `json:"Element" xml:"Element"`
}
ElementsInDetectImageElements is a nested struct in imagerecog response
type ElementsInEvaluateCertificateQuality ¶ added in v1.61.778
type ElementsInEvaluateCertificateQuality struct {
Element []ElementInEvaluateCertificateQuality `json:"Element" xml:"Element"`
}
ElementsInEvaluateCertificateQuality is a nested struct in imagerecog response
type ElementsInRecognizeLogo ¶
type ElementsInRecognizeLogo struct {
Element []Element `json:"Element" xml:"Element"`
}
ElementsInRecognizeLogo is a nested struct in imagerecog response
type ElementsInRecognizeVehicleType ¶
type ElementsInRecognizeVehicleType struct {
Element []Element `json:"Element" xml:"Element"`
}
ElementsInRecognizeVehicleType is a nested struct in imagerecog response
type EvaluateCertificateQualityRequest ¶ added in v1.61.778
type EvaluateCertificateQualityRequest struct { *requests.RpcRequest FormatResultToJson requests.Boolean `position:"Query" name:"FormatResultToJson"` Type string `position:"Body" name:"Type"` OssFile string `position:"Query" name:"OssFile"` RequestProxyBy string `position:"Query" name:"RequestProxyBy"` ImageURL string `position:"Body" name:"ImageURL"` }
EvaluateCertificateQualityRequest is the request struct for api EvaluateCertificateQuality
func CreateEvaluateCertificateQualityRequest ¶ added in v1.61.778
func CreateEvaluateCertificateQualityRequest() (request *EvaluateCertificateQualityRequest)
CreateEvaluateCertificateQualityRequest creates a request to invoke EvaluateCertificateQuality API
type EvaluateCertificateQualityResponse ¶ added in v1.61.778
type EvaluateCertificateQualityResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Data Data `json:"Data" xml:"Data"` }
EvaluateCertificateQualityResponse is the response struct for api EvaluateCertificateQuality
func CreateEvaluateCertificateQualityResponse ¶ added in v1.61.778
func CreateEvaluateCertificateQualityResponse() (response *EvaluateCertificateQualityResponse)
CreateEvaluateCertificateQualityResponse creates a response to parse from EvaluateCertificateQuality response
type GetAsyncJobResultRequest ¶ added in v1.61.906
type GetAsyncJobResultRequest struct { *requests.RpcRequest FormatResultToJson requests.Boolean `position:"Query" name:"FormatResultToJson"` JobId string `position:"Query" name:"JobId"` OssFile string `position:"Query" name:"OssFile"` RequestProxyBy string `position:"Query" name:"RequestProxyBy"` Async string `position:"Query" name:"Async"` }
GetAsyncJobResultRequest is the request struct for api GetAsyncJobResult
func CreateGetAsyncJobResultRequest ¶ added in v1.61.906
func CreateGetAsyncJobResultRequest() (request *GetAsyncJobResultRequest)
CreateGetAsyncJobResultRequest creates a request to invoke GetAsyncJobResult API
type GetAsyncJobResultResponse ¶ added in v1.61.906
type GetAsyncJobResultResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Data Data `json:"Data" xml:"Data"` }
GetAsyncJobResultResponse is the response struct for api GetAsyncJobResult
func CreateGetAsyncJobResultResponse ¶ added in v1.61.906
func CreateGetAsyncJobResultResponse() (response *GetAsyncJobResultResponse)
CreateGetAsyncJobResultResponse creates a response to parse from GetAsyncJobResult response
type LogoData ¶
type LogoData struct { Type string `json:"Type" xml:"Type"` W float64 `json:"W" xml:"W"` H float64 `json:"H" xml:"H"` Y float64 `json:"Y" xml:"Y"` Name string `json:"Name" xml:"Name"` X float64 `json:"X" xml:"X"` }
LogoData is a nested struct in imagerecog response
type LogosData ¶
type LogosData struct {
LogoData []LogoData `json:"LogoData" xml:"LogoData"`
}
LogosData is a nested struct in imagerecog response
type RecognizeFoodRequest ¶ added in v1.61.894
type RecognizeFoodRequest struct { *requests.RpcRequest FormatResultToJson requests.Boolean `position:"Query" name:"FormatResultToJson"` OssFile string `position:"Query" name:"OssFile"` RequestProxyBy string `position:"Query" name:"RequestProxyBy"` ImageURL string `position:"Body" name:"ImageURL"` }
RecognizeFoodRequest is the request struct for api RecognizeFood
func CreateRecognizeFoodRequest ¶ added in v1.61.894
func CreateRecognizeFoodRequest() (request *RecognizeFoodRequest)
CreateRecognizeFoodRequest creates a request to invoke RecognizeFood API
type RecognizeFoodResponse ¶ added in v1.61.894
type RecognizeFoodResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Code string `json:"Code" xml:"Code"` Message string `json:"Message" xml:"Message"` Data Data `json:"Data" xml:"Data"` }
RecognizeFoodResponse is the response struct for api RecognizeFood
func CreateRecognizeFoodResponse ¶ added in v1.61.894
func CreateRecognizeFoodResponse() (response *RecognizeFoodResponse)
CreateRecognizeFoodResponse creates a response to parse from RecognizeFood response
type RecognizeImageColorRequest ¶
type RecognizeImageColorRequest struct { *requests.RpcRequest FormatResultToJson requests.Boolean `position:"Query" name:"FormatResultToJson"` ColorCount requests.Integer `position:"Body" name:"ColorCount"` OssFile string `position:"Query" name:"OssFile"` RequestProxyBy string `position:"Query" name:"RequestProxyBy"` Url string `position:"Body" name:"Url"` }
RecognizeImageColorRequest is the request struct for api RecognizeImageColor
func CreateRecognizeImageColorRequest ¶
func CreateRecognizeImageColorRequest() (request *RecognizeImageColorRequest)
CreateRecognizeImageColorRequest creates a request to invoke RecognizeImageColor API
type RecognizeImageColorResponse ¶
type RecognizeImageColorResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Data Data `json:"Data" xml:"Data"` }
RecognizeImageColorResponse is the response struct for api RecognizeImageColor
func CreateRecognizeImageColorResponse ¶
func CreateRecognizeImageColorResponse() (response *RecognizeImageColorResponse)
CreateRecognizeImageColorResponse creates a response to parse from RecognizeImageColor response
type RecognizeImageStyleRequest ¶
type RecognizeImageStyleRequest struct { *requests.RpcRequest Url string `position:"Body" name:"Url"` }
RecognizeImageStyleRequest is the request struct for api RecognizeImageStyle
func CreateRecognizeImageStyleRequest ¶
func CreateRecognizeImageStyleRequest() (request *RecognizeImageStyleRequest)
CreateRecognizeImageStyleRequest creates a request to invoke RecognizeImageStyle API
type RecognizeImageStyleResponse ¶
type RecognizeImageStyleResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Data Data `json:"Data" xml:"Data"` }
RecognizeImageStyleResponse is the response struct for api RecognizeImageStyle
func CreateRecognizeImageStyleResponse ¶
func CreateRecognizeImageStyleResponse() (response *RecognizeImageStyleResponse)
CreateRecognizeImageStyleResponse creates a response to parse from RecognizeImageStyle response
type RecognizeLogoRequest ¶
type RecognizeLogoRequest struct { *requests.RpcRequest FormatResultToJson requests.Boolean `position:"Query" name:"FormatResultToJson"` OssFile string `position:"Query" name:"OssFile"` Tasks *[]RecognizeLogoTasks `position:"Body" name:"Tasks" type:"Repeated"` RequestProxyBy string `position:"Query" name:"RequestProxyBy"` }
RecognizeLogoRequest is the request struct for api RecognizeLogo
func CreateRecognizeLogoRequest ¶
func CreateRecognizeLogoRequest() (request *RecognizeLogoRequest)
CreateRecognizeLogoRequest creates a request to invoke RecognizeLogo API
type RecognizeLogoResponse ¶
type RecognizeLogoResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Data Data `json:"Data" xml:"Data"` }
RecognizeLogoResponse is the response struct for api RecognizeLogo
func CreateRecognizeLogoResponse ¶
func CreateRecognizeLogoResponse() (response *RecognizeLogoResponse)
CreateRecognizeLogoResponse creates a response to parse from RecognizeLogo response
type RecognizeLogoTasks ¶
type RecognizeLogoTasks struct {
ImageURL string `name:"ImageURL"`
}
RecognizeLogoTasks is a repeated param struct in RecognizeLogoRequest
type RecognizeSceneRequest ¶
type RecognizeSceneRequest struct { *requests.RpcRequest ImageType requests.Integer `position:"Body" name:"ImageType"` ImageURL string `position:"Body" name:"ImageURL"` }
RecognizeSceneRequest is the request struct for api RecognizeScene
func CreateRecognizeSceneRequest ¶
func CreateRecognizeSceneRequest() (request *RecognizeSceneRequest)
CreateRecognizeSceneRequest creates a request to invoke RecognizeScene API
type RecognizeSceneResponse ¶
type RecognizeSceneResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Data Data `json:"Data" xml:"Data"` }
RecognizeSceneResponse is the response struct for api RecognizeScene
func CreateRecognizeSceneResponse ¶
func CreateRecognizeSceneResponse() (response *RecognizeSceneResponse)
CreateRecognizeSceneResponse creates a response to parse from RecognizeScene response
type RecognizeVehicleTypeRequest ¶
type RecognizeVehicleTypeRequest struct { *requests.RpcRequest FormatResultToJson requests.Boolean `position:"Query" name:"FormatResultToJson"` OssFile string `position:"Query" name:"OssFile"` RequestProxyBy string `position:"Query" name:"RequestProxyBy"` ImageURL string `position:"Body" name:"ImageURL"` }
RecognizeVehicleTypeRequest is the request struct for api RecognizeVehicleType
func CreateRecognizeVehicleTypeRequest ¶
func CreateRecognizeVehicleTypeRequest() (request *RecognizeVehicleTypeRequest)
CreateRecognizeVehicleTypeRequest creates a request to invoke RecognizeVehicleType API
type RecognizeVehicleTypeResponse ¶
type RecognizeVehicleTypeResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Data Data `json:"Data" xml:"Data"` }
RecognizeVehicleTypeResponse is the response struct for api RecognizeVehicleType
func CreateRecognizeVehicleTypeResponse ¶
func CreateRecognizeVehicleTypeResponse() (response *RecognizeVehicleTypeResponse)
CreateRecognizeVehicleTypeResponse creates a response to parse from RecognizeVehicleType response
type Result ¶
type Result struct { Suggestion string `json:"Suggestion" xml:"Suggestion"` Label string `json:"Label" xml:"Label"` Rate float64 `json:"Rate" xml:"Rate"` LogosData []LogoData `json:"LogosData" xml:"LogosData"` }
Result is a nested struct in imagerecog response
type Results ¶
type Results struct {
Result []Result `json:"Result" xml:"Result"`
}
Results is a nested struct in imagerecog response
type Styles ¶
type Styles struct {
Style []string `json:"Style" xml:"Style"`
}
Styles is a nested struct in imagerecog response
type Tag ¶
type Tag struct { Value string `json:"Value" xml:"Value"` Confidence float64 `json:"Confidence" xml:"Confidence"` }
Tag is a nested struct in imagerecog response
type TaggingAdImageRequest ¶ added in v1.61.1227
type TaggingAdImageRequest struct { *requests.RpcRequest FormatResultToJson requests.Boolean `position:"Query" name:"FormatResultToJson"` OssFile string `position:"Query" name:"OssFile"` ImageType requests.Integer `position:"Body" name:"ImageType"` RequestProxyBy string `position:"Query" name:"RequestProxyBy"` Async requests.Boolean `position:"Body" name:"Async"` ImageURL string `position:"Body" name:"ImageURL"` }
TaggingAdImageRequest is the request struct for api TaggingAdImage
func CreateTaggingAdImageRequest ¶ added in v1.61.1227
func CreateTaggingAdImageRequest() (request *TaggingAdImageRequest)
CreateTaggingAdImageRequest creates a request to invoke TaggingAdImage API
type TaggingAdImageResponse ¶ added in v1.61.1227
type TaggingAdImageResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Code string `json:"Code" xml:"Code"` Message string `json:"Message" xml:"Message"` Data DataInTaggingAdImage `json:"Data" xml:"Data"` }
TaggingAdImageResponse is the response struct for api TaggingAdImage
func CreateTaggingAdImageResponse ¶ added in v1.61.1227
func CreateTaggingAdImageResponse() (response *TaggingAdImageResponse)
CreateTaggingAdImageResponse creates a response to parse from TaggingAdImage response
type TaggingImageRequest ¶
type TaggingImageRequest struct { *requests.RpcRequest Mode string `position:"Body" name:"Mode"` ImageType requests.Integer `position:"Body" name:"ImageType"` Async requests.Boolean `position:"Body" name:"Async"` ImageURL string `position:"Body" name:"ImageURL"` }
TaggingImageRequest is the request struct for api TaggingImage
func CreateTaggingImageRequest ¶
func CreateTaggingImageRequest() (request *TaggingImageRequest)
CreateTaggingImageRequest creates a request to invoke TaggingImage API
type TaggingImageResponse ¶
type TaggingImageResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Data Data `json:"Data" xml:"Data"` }
TaggingImageResponse is the response struct for api TaggingImage
func CreateTaggingImageResponse ¶
func CreateTaggingImageResponse() (response *TaggingImageResponse)
CreateTaggingImageResponse creates a response to parse from TaggingImage response
type Tags ¶ added in v1.61.1227
type Tags struct { Value string `json:"Value" xml:"Value"` Confidence float64 `json:"Confidence" xml:"Confidence"` }
Tags is a nested struct in imagerecog response
type TagsInRecognizeScene ¶
type TagsInRecognizeScene struct {
Tag []Tag `json:"Tag" xml:"Tag"`
}
TagsInRecognizeScene is a nested struct in imagerecog response
type TagsInTaggingAdImage ¶ added in v1.61.1227
type TagsInTaggingAdImage struct {
Tags []Tags `json:"tags" xml:"tags"`
}
TagsInTaggingAdImage is a nested struct in imagerecog response
type TagsInTaggingImage ¶
type TagsInTaggingImage struct {
Tag []Tag `json:"Tag" xml:"Tag"`
}
TagsInTaggingImage is a nested struct in imagerecog response
type TopFives ¶ added in v1.61.894
type TopFives struct {
TopFivesItem []TopFivesItem `json:"TopFives" xml:"TopFives"`
}
TopFives is a nested struct in imagerecog response
type TopFivesItem ¶ added in v1.61.894
type TopFivesItem struct { Category string `json:"Category" xml:"Category"` Score float64 `json:"Score" xml:"Score"` Calorie string `json:"Calorie" xml:"Calorie"` }
TopFivesItem is a nested struct in imagerecog response
Source Files
¶
- classifying_rubbish.go
- client.go
- detect_fruits.go
- detect_image_elements.go
- endpoint.go
- evaluate_certificate_quality.go
- get_async_job_result.go
- recognize_food.go
- recognize_image_color.go
- recognize_image_style.go
- recognize_logo.go
- recognize_scene.go
- recognize_vehicle_type.go
- struct_box.go
- struct_color_template.go
- struct_color_template_list.go
- struct_data.go
- struct_data_in_tagging_ad_image.go
- struct_element.go
- struct_element_in_evaluate_certificate_quality.go
- struct_elements_in_classifying_rubbish.go
- struct_elements_in_detect_fruits.go
- struct_elements_in_detect_image_elements.go
- struct_elements_in_evaluate_certificate_quality.go
- struct_elements_in_recognize_logo.go
- struct_elements_in_recognize_vehicle_type.go
- struct_logo_data.go
- struct_logos_data.go
- struct_result.go
- struct_results.go
- struct_styles.go
- struct_tag.go
- struct_tags.go
- struct_tags_in_recognize_scene.go
- struct_tags_in_tagging_ad_image.go
- struct_tags_in_tagging_image.go
- struct_top_fives.go
- struct_top_fives_item.go
- tagging_ad_image.go
- tagging_image.go