model

package
v0.0.67 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CelebrityRecognitionReq

type CelebrityRecognitionReq struct {
	Image *string `json:"image,omitempty"`

	Url *string `json:"url,omitempty"`

	Threshold *float32 `json:"threshold,omitempty"`
}

func (CelebrityRecognitionReq) String

func (o CelebrityRecognitionReq) String() string

type CelebrityRecognitionResultBody

type CelebrityRecognitionResultBody struct {
	Confidence *float32 `json:"confidence,omitempty"`

	FaceDetail *interface{} `json:"face_detail,omitempty"`

	Label *string `json:"label,omitempty"`
}

func (CelebrityRecognitionResultBody) String

type ImageTaggingInstance

type ImageTaggingInstance struct {
	BoundingBox *interface{} `json:"bounding_box,omitempty"`

	Confidence *string `json:"confidence,omitempty"`
}

func (ImageTaggingInstance) String

func (o ImageTaggingInstance) String() string

type ImageTaggingItemBody

type ImageTaggingItemBody struct {
	Confidence *string `json:"confidence,omitempty"`

	Type *string `json:"type,omitempty"`

	Tag *string `json:"tag,omitempty"`

	I18nTag *ImageTaggingItemBodyI18nTag `json:"i18n_tag,omitempty"`

	I18nType *ImageTaggingItemBodyI18nType `json:"i18n_type,omitempty"`

	Instances *[]ImageTaggingInstance `json:"instances,omitempty"`
}

func (ImageTaggingItemBody) String

func (o ImageTaggingItemBody) String() string

type ImageTaggingItemBodyI18nTag

type ImageTaggingItemBodyI18nTag struct {
	Zh *string `json:"zh,omitempty"`

	En *string `json:"en,omitempty"`
}

标签的多种语言输出。

func (ImageTaggingItemBodyI18nTag) String

type ImageTaggingItemBodyI18nType

type ImageTaggingItemBodyI18nType struct {
	Zh *string `json:"zh,omitempty"`

	En *string `json:"en,omitempty"`
}

标签类别的多种语言输出。

func (ImageTaggingItemBodyI18nType) String

type ImageTaggingReq

type ImageTaggingReq struct {
	Image *string `json:"image,omitempty"`

	Url *string `json:"url,omitempty"`

	Language *string `json:"language,omitempty"`

	Threshold *float32 `json:"threshold,omitempty"`

	Limit *int32 `json:"limit,omitempty"`
}

This is a auto create Body Object

func (ImageTaggingReq) String

func (o ImageTaggingReq) String() string

type ImageTaggingResponseResult

type ImageTaggingResponseResult struct {
	Tags *[]ImageTaggingItemBody `json:"tags,omitempty"`
}

调用成功时为图片标签内容。 调用失败时无此字段。

func (ImageTaggingResponseResult) String

type RunCelebrityRecognitionRequest

type RunCelebrityRecognitionRequest struct {
	Body *CelebrityRecognitionReq `json:"body,omitempty"`
}

Request Object

func (RunCelebrityRecognitionRequest) String

type RunCelebrityRecognitionResponse

type RunCelebrityRecognitionResponse struct {
	Result         *[]CelebrityRecognitionResultBody `json:"result,omitempty"`
	HttpStatusCode int                               `json:"-"`
}

Response Object

func (RunCelebrityRecognitionResponse) String

type RunImageTaggingRequest

type RunImageTaggingRequest struct {
	Body *ImageTaggingReq `json:"body,omitempty"`
}

Request Object

func (RunImageTaggingRequest) String

func (o RunImageTaggingRequest) String() string

type RunImageTaggingResponse

type RunImageTaggingResponse struct {
	Result         *ImageTaggingResponseResult `json:"result,omitempty"`
	HttpStatusCode int                         `json:"-"`
}

Response Object

func (RunImageTaggingResponse) String

func (o RunImageTaggingResponse) String() string

Jump to

Keyboard shortcuts

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