imagerecog

package
v1.61.1038 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndpointMap map[string]string

EndpointMap Endpoint Data

View Source
var EndpointType = "regional"

EndpointType regional or central

Functions

func GetEndpointMap

func GetEndpointMap() map[string]string

GetEndpointMap Get Endpoint Data Map

func GetEndpointType

func GetEndpointType() string

GetEndpointType Get Endpoint Type Value

func SetClientProperty

func SetClientProperty(client *Client, propertyName string, propertyValue interface{})

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
	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

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClient

func NewClient() (client *Client, err error)

NewClient creates a sdk client with environment variables

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

func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)

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 *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) 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"`
	Label      string  `json:"Label" xml:"Label"`
	Percentage float64 `json:"Percentage" xml:"Percentage"`
}

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"`
	Tags              []Tag           `json:"Tags" xml:"Tags"`
	Elements          []Element       `json:"Elements" xml:"Elements"`
	TopFives          []TopFivesItem  `json:"TopFives" xml:"TopFives"`
	ColorTemplateList []ColorTemplate `json:"ColorTemplateList" xml:"ColorTemplateList"`
}

Data is a nested struct in imagerecog response

type DetectFruitsRequest

type DetectFruitsRequest struct {
	*requests.RpcRequest
	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
	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 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
	Type     string `position:"Body" name:"Type"`
	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
	JobId string `position:"Query" name:"JobId"`
	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 {
	Name string  `json:"Name" xml:"Name"`
	Type string  `json:"Type" xml:"Type"`
	X    float64 `json:"X" xml:"X"`
	Y    float64 `json:"Y" xml:"Y"`
	H    float64 `json:"H" xml:"H"`
	W    float64 `json:"W" xml:"W"`
}

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
	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
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Code      string `json:"Code" xml:"Code"`
	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
	Url        string           `position:"Body" name:"Url"`
	ColorCount requests.Integer `position:"Body" name:"ColorCount"`
}

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
	Tasks *[]RecognizeLogoTasks `position:"Body" name:"Tasks"  type:"Repeated"`
}

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
	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 {
	Label      string     `json:"Label" xml:"Label"`
	Suggestion string     `json:"Suggestion" xml:"Suggestion"`
	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 TaggingImageRequest

type TaggingImageRequest struct {
	*requests.RpcRequest
	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 TagsInRecognizeScene

type TagsInRecognizeScene struct {
	Tag []Tag `json:"Tag" xml:"Tag"`
}

TagsInRecognizeScene 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 {
	Calorie  string  `json:"Calorie" xml:"Calorie"`
	Score    float64 `json:"Score" xml:"Score"`
	Category string  `json:"Category" xml:"Category"`
}

TopFivesItem is a nested struct in imagerecog response

Jump to

Keyboard shortcuts

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