model

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 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 {

	// 与url二选一  图片文件Base64编码字符串。要求base64编码后大小不超过10M。  政治人物检测人脸部分不小于40*40像素。  支持JPG/PNG/BMP格式。
	Image *string `json:"image,omitempty"`

	// 与image二选一  图片的URL路径,目前支持:  - 公网HTTP/HTTPS URL  - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[配置OBS服务的访问权限](https://support.huaweicloud.com/api-image/image_03_0037.html)。  > - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 > - 请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。
	Url *string `json:"url,omitempty"`

	// 置信度的阈值(0~1),低于此置信数的标签,将不会返回。  默认值:0.48。
	Threshold *float32 `json:"threshold,omitempty"`
}

func (CelebrityRecognitionReq) String

func (o CelebrityRecognitionReq) String() string

type CelebrityRecognitionResultBody

type CelebrityRecognitionResultBody struct {

	// 置信度,取值范围 0-1。
	Confidence *float32 `json:"confidence,omitempty"`

	// 名人的面部信息,包括4个值:  h:人脸区域高度  w:人脸区域宽度  x:人脸区域左上角到y轴距离  y:人脸区域左上角到x轴距离
	FaceDetail *interface{} `json:"face_detail,omitempty"`

	// label为对应的名人信息。
	Label *string `json:"label,omitempty"`
}

func (CelebrityRecognitionResultBody) String

type ImageDescriptionReq added in v0.0.99

type ImageDescriptionReq struct {

	// 与url二选一  图像数据,base64编码,要求base64编码后大小不超过10M,最短边至少15px,最长边最大4096px,支持JPG/PNG/BMP格式。
	Image *string `json:"image,omitempty"`

	// 与image二选一  图片的URL路径,目前支持:  - 公网HTTP/HTTPS URL  - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[配置OBS服务的访问权限](https://support.huaweicloud.com/api-image/image_03_0037.html)。  > - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 > - 请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。
	Url *string `json:"url,omitempty"`
}

This is a auto create Body Object

func (ImageDescriptionReq) String added in v0.0.99

func (o ImageDescriptionReq) String() string

type ImageDescriptionResponseResult added in v0.0.99

type ImageDescriptionResponseResult struct {

	// 图像描述。
	Description *string `json:"description,omitempty"`
}

图像描述结果信息

func (ImageDescriptionResponseResult) String added in v0.0.99

type ImageMainObjectDetectionInstance added in v0.0.98

type ImageMainObjectDetectionInstance struct {

	// 主体的类别,现阶段分为:bounding_box和main_object_box
	Label *string `json:"label,omitempty"`

	//  目标检测框位置信息,包括4个值:  width:检测框区域宽度  height:检测框区域高度  top_left_x:检测框左上角到垂直轴距离  top_left_y:检测框左上角到水平轴距离 properties: width: type: string description: 检测框区域高度 example: 139.58 height: type: string description: 检测框区域高度 example: 261.32 top_left_x: type: string description: 检测框左上角到垂直轴距离 example: 256.13 top_left_y: type: string description: 检测框左上角到水平轴距离 example: 85.2
	Location *interface{} `json:"location,omitempty"`

	// 主体框的置信度,将Float型置信度转为String类型返回,Float取值范围(0~100)。
	Confidence *string `json:"confidence,omitempty"`
}

func (ImageMainObjectDetectionInstance) String added in v0.0.98

type ImageMainObjectDetectionReq added in v0.0.98

type ImageMainObjectDetectionReq struct {

	// 与url二选一  图像数据,base64编码,要求base64编码后大小不超过10M,最短边至少1px,最长边最大10000px,支持JPG/PNG/BMP格式。
	Image *string `json:"image,omitempty"`

	// 与image二选一  图片的URL路径,目前支持:  - 公网HTTP/HTTPS URL  - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[配置OBS服务的访问权限](https://support.huaweicloud.com/api-image/image_03_0037.html)。  > - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 > - 请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。
	Url *string `json:"url,omitempty"`

	// 置信度的阈值(0~100),低于此置信数的检测结果,将不会返回。  默认值:30。  最小值:0。  最大值:100。
	Threshold *float32 `json:"threshold,omitempty"`
}

This is a auto create Body Object

func (ImageMainObjectDetectionReq) String added in v0.0.98

type ImageMediaTaggingDetInstance added in v0.1.14

type ImageMediaTaggingDetInstance struct {

	// 目标检测框位置信息,包括4个值:  width:检测框区域宽度  height:检测框区域高度  top_left_x:检测框左上角到垂直轴距离  top_left_y:检测框左上角到水平轴距离
	BoundingBox *interface{} `json:"bounding_box,omitempty"`

	// 检测标签的置信度,将Float型置信度转为String类型返回,Float取值范围(0~100)。
	Confidence *string `json:"confidence,omitempty"`
}

func (ImageMediaTaggingDetInstance) String added in v0.1.14

type ImageMediaTaggingDetItemBody added in v0.1.14

type ImageMediaTaggingDetItemBody struct {

	// 置信度,将Float型置信度转为String类型返回,取值范围:0-100。
	Confidence *string `json:"confidence,omitempty"`

	// 标签的类别。返回的标签类型,包含二十种大类,具体可以参考[[图像标签](http://support.huaweicloud.com/image_faq/image_01_0037.html)](tag:hc)[[图像标签](https://support.huaweicloud.com/intl/zh-cn/image_faq/image_01_0037.html)](tag:hk)
	Type *string `json:"type,omitempty"`

	// 标签名称。
	Tag *string `json:"tag,omitempty"`

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

	// 目标检测框信息,为空则表示没有目标检测框。
	Instances *[]ImageMediaTaggingDetInstance `json:"instances,omitempty"`
}

func (ImageMediaTaggingDetItemBody) String added in v0.1.14

type ImageMediaTaggingDetItemBodyI18nTag added in v0.1.14

type ImageMediaTaggingDetItemBodyI18nTag struct {

	// 中文标签。
	Zh *string `json:"zh,omitempty"`

	// 英文标签。
	En *string `json:"en,omitempty"`
}

标签的多种语言输出。

func (ImageMediaTaggingDetItemBodyI18nTag) String added in v0.1.14

type ImageMediaTaggingDetReq added in v0.1.14

type ImageMediaTaggingDetReq struct {

	// 与url二选一  图像数据,base64编码,要求base64编码后大小不超过10M,最短边至少1px,最长边最大10000px,支持JPG、PNG、BMP、WEBP格式。
	Image *string `json:"image,omitempty"`

	// 与image二选一  图片的URL路径,目前支持:  - 公网HTTP/HTTPS URL  - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[[配置OBS服务的访问权限](https://support.huaweicloud.com/api-moderation/moderation_03_0020.html)](tag:hc)[[配置OBS服务的访问权限](https://support.huaweicloud.com/intl/zh-cn/api-moderation/moderation_03_0020.html)](tag:hk)。  > - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 > - 请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。 > - lmage不支持跨区域OBS,OBS的区域需要和服务保持一致。
	Url *string `json:"url,omitempty"`

	// zh:返回标签的语言类型为中文。  en:返回标签的语言类型为英文。  默认值为zh。
	Language *string `json:"language,omitempty"`

	// 置信度的阈值(0~100),低于此置信数的标签,将不会返回。  默认值:20。  最小值:0。  最大值:100。
	Threshold *float32 `json:"threshold,omitempty"`

	// 最多返回的tag数(取值范围:1~50),默认值: 10
	Limit *int32 `json:"limit,omitempty"`
}

This is a auto create Body Object

func (ImageMediaTaggingDetReq) String added in v0.1.14

func (o ImageMediaTaggingDetReq) String() string

type ImageMediaTaggingDetResponseResult added in v0.1.14

type ImageMediaTaggingDetResponseResult struct {

	// 标签列表集合。
	Tags *[]ImageMediaTaggingDetItemBody `json:"tags,omitempty"`
}

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

func (ImageMediaTaggingDetResponseResult) String added in v0.1.14

type ImageMediaTaggingItemBody added in v0.0.98

type ImageMediaTaggingItemBody struct {

	// 置信度,将Float型置信度转为String类型返回,取值范围:0-100。
	Confidence *string `json:"confidence,omitempty"`

	// 标签的类别。返回的标签类型,包含二十多种大类,具体可以参考[[图像标签](http://support.huaweicloud.com/image_faq/image_01_0037.html)](tag:hc)[[图像标签](https://support.huaweicloud.com/intl/zh-cn/image_faq/image_01_0037.html)](tag:hk)
	Type *string `json:"type,omitempty"`

	// 标签名称。
	Tag *string `json:"tag,omitempty"`

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

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

	// 目标检测框信息,为空则表示没有目标检测框。
	Instances *[]ImageTaggingInstance `json:"instances,omitempty"`
}

func (ImageMediaTaggingItemBody) String added in v0.0.98

func (o ImageMediaTaggingItemBody) String() string

type ImageMediaTaggingItemBodyI18nTag added in v0.0.98

type ImageMediaTaggingItemBodyI18nTag struct {

	// 中文标签。
	Zh *string `json:"zh,omitempty"`

	// 英文标签。
	En *string `json:"en,omitempty"`
}

标签的多种语言输出。

func (ImageMediaTaggingItemBodyI18nTag) String added in v0.0.98

type ImageMediaTaggingItemBodyI18nType added in v0.0.98

type ImageMediaTaggingItemBodyI18nType struct {

	// 中文标签类别。
	Zh *string `json:"zh,omitempty"`

	// 英文标签类别。
	En *string `json:"en,omitempty"`
}

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

func (ImageMediaTaggingItemBodyI18nType) String added in v0.0.98

type ImageMediaTaggingReq added in v0.0.98

type ImageMediaTaggingReq struct {

	// 与url二选一  图像数据,base64编码,要求base64编码后大小不超过10M,最短边至少15px,最长边最大4096px,支持JPG/PNG/BMP格式。
	Image *string `json:"image,omitempty"`

	// 与image二选一  图片的URL路径,目前支持:  - 公网HTTP/HTTPS URL  - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[[配置OBS服务的访问权限](https://support.huaweicloud.com/api-image/image_03_0037.html)](tag:hc)[[配置OBS服务的访问权限](https://support.huaweicloud.com/api-image/image_03_0037.html)](tag:hk)。  > - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 > - 请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。 > - lmage不支持跨区域OBS,OBS的区域需要和服务保持一致。
	Url *string `json:"url,omitempty"`

	// zh:返回标签的语言类型为中文。  en:返回标签的语言类型为英文。  默认值为zh。
	Language *string `json:"language,omitempty"`

	// 置信度的阈值(0~100),低于此置信数的标签,将不会返回。  默认值:60。  最小值:0。  最大值:100。  默认值:0。
	Threshold *float32 `json:"threshold,omitempty"`

	// 最多返回的tag数(取值范围:1~150),默认值: 50
	Limit *int32 `json:"limit,omitempty"`

	// \"true\":使用系统默认标签体系。  \"false\":使用用户自定义标签体系(用户需预先调用接口进行自定义标签体系的构建)。  默认值为\"true\"。
	UseDefaultTags *string `json:"use_default_tags,omitempty"`
}

This is a auto create Body Object

func (ImageMediaTaggingReq) String added in v0.0.98

func (o ImageMediaTaggingReq) String() string

type ImageMediaTaggingResponseResult added in v0.0.98

type ImageMediaTaggingResponseResult struct {

	// 标签列表集合。
	Tags *[]ImageMediaTaggingItemBody `json:"tags,omitempty"`
}

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

func (ImageMediaTaggingResponseResult) String added in v0.0.98

type ImageTaggingInstance

type ImageTaggingInstance struct {

	// 目标检测框位置信息,包括4个值:  width:检测框区域宽度  height:检测框区域高度  top_left_x:检测框左上角到垂直轴距离  top_left_y:检测框左上角到水平轴距离
	BoundingBox *interface{} `json:"bounding_box,omitempty"`

	// 检测标签置信度,将Float型置信度转为String类型返回,Float取值范围(0~100)。
	Confidence *string `json:"confidence,omitempty"`
}

func (ImageTaggingInstance) String

func (o ImageTaggingInstance) String() string

type ImageTaggingItemBody

type ImageTaggingItemBody struct {

	// 置信度,将Float型置信度转为String类型返回,取值范围:0-100。
	Confidence *string `json:"confidence,omitempty"`

	// 标签的类别。返回的标签类型,包含二十多种大类,具体可以参考[图像标签](http://support.huaweicloud.com/image_faq/image_01_0037.html)。
	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 {

	// 与url二选一  图像数据,base64编码,要求base64编码后大小不超过10M,最短边至少15px,最长边最大4096px,支持JPG/PNG/BMP格式。
	Image *string `json:"image,omitempty"`

	// 与image二选一  图片的URL路径,目前支持:  - 公网HTTP/HTTPS URL  - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[配置OBS服务的访问权限](https://support.huaweicloud.com/api-image/image_03_0037.html)。  > - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 > - 请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。
	Url *string `json:"url,omitempty"`

	// zh:返回标签的语言类型为中文。  en:返回标签的语言类型为英文。  默认值为zh。
	Language *string `json:"language,omitempty"`

	// 置信度的阈值(0~100),低于此置信数的标签,将不会返回。  默认值:60。
	Threshold *float32 `json:"threshold,omitempty"`

	// 最多返回的tag数(最大为150),默认值: 50。
	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 RunDeleteCustomTagsRequest added in v0.1.14

type RunDeleteCustomTagsRequest struct {
}

Request Object

func (RunDeleteCustomTagsRequest) String added in v0.1.14

type RunDeleteCustomTagsResponse added in v0.1.14

type RunDeleteCustomTagsResponse struct {

	// 查询/删除自定义标签结果
	Result         *string `json:"result,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (RunDeleteCustomTagsResponse) String added in v0.1.14

type RunImageDescriptionRequest added in v0.0.99

type RunImageDescriptionRequest struct {
	Body *ImageDescriptionReq `json:"body,omitempty"`
}

Request Object

func (RunImageDescriptionRequest) String added in v0.0.99

type RunImageDescriptionResponse added in v0.0.99

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

Response Object

func (RunImageDescriptionResponse) String added in v0.0.99

type RunImageMainObjectDetectionRequest added in v0.0.98

type RunImageMainObjectDetectionRequest struct {
	Body *ImageMainObjectDetectionReq `json:"body,omitempty"`
}

Request Object

func (RunImageMainObjectDetectionRequest) String added in v0.0.98

type RunImageMainObjectDetectionResponse added in v0.0.98

type RunImageMainObjectDetectionResponse struct {

	// 主体列表集合。
	Result         *[]ImageMainObjectDetectionInstance `json:"result,omitempty"`
	HttpStatusCode int                                 `json:"-"`
}

Response Object

func (RunImageMainObjectDetectionResponse) String added in v0.0.98

type RunImageMediaTaggingDetRequest added in v0.1.14

type RunImageMediaTaggingDetRequest struct {
	Body *ImageMediaTaggingDetReq `json:"body,omitempty"`
}

Request Object

func (RunImageMediaTaggingDetRequest) String added in v0.1.14

type RunImageMediaTaggingDetResponse added in v0.1.14

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

Response Object

func (RunImageMediaTaggingDetResponse) String added in v0.1.14

type RunImageMediaTaggingRequest added in v0.0.98

type RunImageMediaTaggingRequest struct {
	Body *ImageMediaTaggingReq `json:"body,omitempty"`
}

Request Object

func (RunImageMediaTaggingRequest) String added in v0.0.98

type RunImageMediaTaggingResponse added in v0.0.98

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

Response Object

func (RunImageMediaTaggingResponse) String added in v0.0.98

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

type RunQueryCustomTagsRequest added in v0.1.14

type RunQueryCustomTagsRequest struct {
}

Request Object

func (RunQueryCustomTagsRequest) String added in v0.1.14

func (o RunQueryCustomTagsRequest) String() string

type RunQueryCustomTagsResponse added in v0.1.14

type RunQueryCustomTagsResponse struct {

	// 查询/删除自定义标签结果
	Result         *string `json:"result,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (RunQueryCustomTagsResponse) String added in v0.1.14

Source Files

Jump to

Keyboard shortcuts

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