imagerecog

package
v1.62.647 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 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
	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

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

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    []TagsItem             `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 {
	CategoryScore float64   `json:"CategoryScore" xml:"CategoryScore"`
	Category      string    `json:"Category" xml:"Category"`
	Name          string    `json:"Name" xml:"Name"`
	X             int       `json:"X" xml:"X"`
	Score         float64   `json:"Score" xml:"Score"`
	Y             int       `json:"Y" xml:"Y"`
	Width         int       `json:"Width" xml:"Width"`
	Height        int       `json:"Height" xml:"Height"`
	Rubbish       string    `json:"Rubbish" xml:"Rubbish"`
	RubbishScore  float64   `json:"RubbishScore" xml:"RubbishScore"`
	Type          string    `json:"Type" xml:"Type"`
	Box           []float64 `json:"Box" xml:"Box"`
}

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 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 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
	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"`
}

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 RecognizeSceneRequest

type RecognizeSceneRequest 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"`
	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 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
	FormatResultToJson requests.Boolean `position:"Query" name:"FormatResultToJson"`
	Mode               string           `position:"Body" name:"Mode"`
	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"`
}

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 TagsInTaggingAdImage added in v1.61.1227

type TagsInTaggingAdImage struct {
	TagsItem []TagsItem `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 TagsItem added in v1.62.241

type TagsItem struct {
	Value      string  `json:"Value" xml:"Value"`
	Confidence float64 `json:"Confidence" xml:"Confidence"`
}

TagsItem 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

Jump to

Keyboard shortcuts

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