Documentation ¶
Index ¶
- type BoundingBox
- type CelebrityRecognitionReq
- type CelebrityRecognitionResultBody
- type CreateImageHighresolutionMattingTaskRequest
- type CreateImageHighresolutionMattingTaskResponse
- type CreateVideoTaggingMediaTaskRequest
- type CreateVideoTaggingMediaTaskRequestBody
- type CreateVideoTaggingMediaTaskResponse
- type ImageDescriptionReq
- type ImageDescriptionResponseResult
- type ImageHighresolutionMattingConfig
- type ImageHighresolutionMattingConfigCommon
- type ImageHighresolutionMattingInference
- type ImageHighresolutionMattingInferenceReturnType
- type ImageHighresolutionMattingInferenceReturnTypeEnum
- type ImageHighresolutionMattingInput
- type ImageHighresolutionMattingInputData
- type ImageHighresolutionMattingRequestBody
- type ImageMainObjectDetectionInstance
- type ImageMainObjectDetectionReq
- type ImageMediaTaggingDetInstance
- type ImageMediaTaggingDetItemBody
- type ImageMediaTaggingDetItemBodyI18nTag
- type ImageMediaTaggingDetReq
- type ImageMediaTaggingDetResponseResult
- type ImageMediaTaggingInstance
- type ImageMediaTaggingItemBody
- type ImageMediaTaggingItemBodyI18nTag
- type ImageMediaTaggingItemBodyI18nType
- type ImageMediaTaggingReq
- type ImageMediaTaggingResponseResult
- type ImageSuperResolutionReq
- type ImageSuperResolutionResponseResult
- type ImageTaggingBoundingBox
- type ImageTaggingInstance
- type ImageTaggingItemBody
- type ImageTaggingItemBodyI18nTag
- type ImageTaggingItemBodyI18nType
- type ImageTaggingReq
- type ImageTaggingResponseResult
- type RecaptureDetectReq
- type RecaptureDetectResponseResult
- type RecaptureDetectResponseResultDetail
- type RunCelebrityRecognitionRequest
- type RunCelebrityRecognitionResponse
- type RunImageDescriptionRequest
- type RunImageDescriptionResponse
- type RunImageMainObjectDetectionRequest
- type RunImageMainObjectDetectionResponse
- type RunImageMediaTaggingDetRequest
- type RunImageMediaTaggingDetResponse
- type RunImageMediaTaggingRequest
- type RunImageMediaTaggingResponse
- type RunImageSuperResolutionRequest
- type RunImageSuperResolutionResponse
- type RunImageTaggingRequest
- type RunImageTaggingResponse
- type RunRecaptureDetectRequest
- type RunRecaptureDetectResponse
- type ShowImageHighresolutionMattingTaskRequest
- type ShowImageHighresolutionMattingTaskResponse
- type ShowVideoTaggingMediaTaskRequest
- type ShowVideoTaggingMediaTaskResponse
- type TaskCallback
- type TaskOutput
- type TaskOutputObs
- type VideoTaggingMediaTaskInput
- type VideoTaggingMediaTaskInputData
- type VideoTaggingTaskConfig
- type VideoTaggingTaskConfigCommon
- type VideoTagginginference
- type VideoTagginginferenceLanguage
- type VideoTagginginferenceLanguageEnum
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoundingBox ¶ added in v0.1.36
type BoundingBox struct { // 检测框区域宽度 Width *int32 `json:"width,omitempty"` // 检测框区域高度 Height *int32 `json:"height,omitempty"` // 检测框左上角到垂直轴距离 TopLeftX *int32 `json:"top_left_x,omitempty"` // 检测框左上角到水平轴距离 TopLeftY *int32 `json:"top_left_y,omitempty"` }
目标检测框位置信息
func (BoundingBox) String ¶ added in v0.1.36
func (o BoundingBox) String() string
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 ¶
func (o CelebrityRecognitionResultBody) String() string
type CreateImageHighresolutionMattingTaskRequest ¶ added in v0.1.28
type CreateImageHighresolutionMattingTaskRequest struct {
Body *ImageHighresolutionMattingRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateImageHighresolutionMattingTaskRequest) String ¶ added in v0.1.28
func (o CreateImageHighresolutionMattingTaskRequest) String() string
type CreateImageHighresolutionMattingTaskResponse ¶ added in v0.1.28
type CreateImageHighresolutionMattingTaskResponse struct { // 任务唯一标识 TaskId *string `json:"task_id,omitempty"` XRequestId *string `json:"X-request-id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateImageHighresolutionMattingTaskResponse) String ¶ added in v0.1.28
func (o CreateImageHighresolutionMattingTaskResponse) String() string
type CreateVideoTaggingMediaTaskRequest ¶ added in v0.1.39
type CreateVideoTaggingMediaTaskRequest struct {
Body *CreateVideoTaggingMediaTaskRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateVideoTaggingMediaTaskRequest) String ¶ added in v0.1.39
func (o CreateVideoTaggingMediaTaskRequest) String() string
type CreateVideoTaggingMediaTaskRequestBody ¶ added in v0.1.39
type CreateVideoTaggingMediaTaskRequestBody struct { Input *VideoTaggingMediaTaskInput `json:"input"` Output *TaskOutput `json:"output"` Callback *TaskCallback `json:"callback,omitempty"` Config *VideoTaggingTaskConfig `json:"config,omitempty"` }
func (CreateVideoTaggingMediaTaskRequestBody) String ¶ added in v0.1.39
func (o CreateVideoTaggingMediaTaskRequestBody) String() string
type CreateVideoTaggingMediaTaskResponse ¶ added in v0.1.39
type CreateVideoTaggingMediaTaskResponse struct { // 任务唯一标识 TaskId *string `json:"task_id,omitempty"` XRequestId *string `json:"X-request-id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateVideoTaggingMediaTaskResponse) String ¶ added in v0.1.39
func (o CreateVideoTaggingMediaTaskResponse) String() 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
func (o ImageDescriptionResponseResult) String() string
type ImageHighresolutionMattingConfig ¶ added in v0.1.28
type ImageHighresolutionMattingConfig struct {
Common *ImageHighresolutionMattingConfigCommon `json:"common"`
}
func (ImageHighresolutionMattingConfig) String ¶ added in v0.1.28
func (o ImageHighresolutionMattingConfig) String() string
type ImageHighresolutionMattingConfigCommon ¶ added in v0.1.28
type ImageHighresolutionMattingConfigCommon struct {
Inference *ImageHighresolutionMattingInference `json:"inference"`
}
func (ImageHighresolutionMattingConfigCommon) String ¶ added in v0.1.28
func (o ImageHighresolutionMattingConfigCommon) String() string
type ImageHighresolutionMattingInference ¶ added in v0.1.28
type ImageHighresolutionMattingInference struct { // 是否只返回处理结果的alpha通道,\"foreground\"代表返回带alpha通道的前景图片,\"alpha\"字符串代表仅返回alpha通道 ReturnType ImageHighresolutionMattingInferenceReturnType `json:"return_type"` // 指定抠图区域坐标,默认全图,示例:[x_min,y_min,x_max,y_max] Coord *[]int32 `json:"coord,omitempty"` }
func (ImageHighresolutionMattingInference) String ¶ added in v0.1.28
func (o ImageHighresolutionMattingInference) String() string
type ImageHighresolutionMattingInferenceReturnType ¶ added in v0.1.28
type ImageHighresolutionMattingInferenceReturnType struct {
// contains filtered or unexported fields
}
func (ImageHighresolutionMattingInferenceReturnType) MarshalJSON ¶ added in v0.1.28
func (c ImageHighresolutionMattingInferenceReturnType) MarshalJSON() ([]byte, error)
func (*ImageHighresolutionMattingInferenceReturnType) UnmarshalJSON ¶ added in v0.1.28
func (c *ImageHighresolutionMattingInferenceReturnType) UnmarshalJSON(b []byte) error
func (ImageHighresolutionMattingInferenceReturnType) Value ¶ added in v0.1.28
func (c ImageHighresolutionMattingInferenceReturnType) Value() string
type ImageHighresolutionMattingInferenceReturnTypeEnum ¶ added in v0.1.28
type ImageHighresolutionMattingInferenceReturnTypeEnum struct { FOREGROUND ImageHighresolutionMattingInferenceReturnType ALPHA ImageHighresolutionMattingInferenceReturnType }
func GetImageHighresolutionMattingInferenceReturnTypeEnum ¶ added in v0.1.28
func GetImageHighresolutionMattingInferenceReturnTypeEnum() ImageHighresolutionMattingInferenceReturnTypeEnum
type ImageHighresolutionMattingInput ¶ added in v0.1.36
type ImageHighresolutionMattingInput struct { // 任务的输入类型。可选类型为url(指定的文件地址) Type string `json:"type"` // 任务的输入详情。针对不同的输入类型有不同的配置。高清图像抠图服务目前只支持识别PNG、JPEG、BMP、JPG、TIF格式的图片,只支持单张图片的url输入方式,图像各边的像素大小在1px至10000px之间, URL提供的图片大小不超过20MB Data []ImageHighresolutionMattingInputData `json:"data"` }
func (ImageHighresolutionMattingInput) String ¶ added in v0.1.36
func (o ImageHighresolutionMattingInput) String() string
type ImageHighresolutionMattingInputData ¶ added in v0.1.36
type ImageHighresolutionMattingInputData struct { // url输入源的地址,当输入为url类型时必填。 长度不超过1000。输入的图片大小不能大于20M,长边不能大于10000px。 Url *string `json:"url,omitempty"` // 数据标识。多输入场景下必选,值由算法定义;单输入场景非必选。 Key *string `json:"key,omitempty"` }
func (ImageHighresolutionMattingInputData) String ¶ added in v0.1.36
func (o ImageHighresolutionMattingInputData) String() string
type ImageHighresolutionMattingRequestBody ¶ added in v0.1.28
type ImageHighresolutionMattingRequestBody struct { Input *ImageHighresolutionMattingInput `json:"input"` Output *TaskOutput `json:"output"` Callback *TaskCallback `json:"callback,omitempty"` Config *ImageHighresolutionMattingConfig `json:"config"` }
func (ImageHighresolutionMattingRequestBody) String ¶ added in v0.1.28
func (o ImageHighresolutionMattingRequestBody) String() string
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
func (o ImageMainObjectDetectionInstance) String() string
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
func (o ImageMainObjectDetectionReq) String() string
type ImageMediaTaggingDetInstance ¶ added in v0.1.14
type ImageMediaTaggingDetInstance struct { BoundingBox *BoundingBox `json:"bounding_box,omitempty"` // 检测标签的置信度,将Float型置信度转为String类型返回,Float取值范围(0~100)。 Confidence *string `json:"confidence,omitempty"` }
func (ImageMediaTaggingDetInstance) String ¶ added in v0.1.14
func (o ImageMediaTaggingDetInstance) String() string
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
func (o ImageMediaTaggingDetItemBody) String() string
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
func (o ImageMediaTaggingDetItemBodyI18nTag) String() string
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
func (o ImageMediaTaggingDetResponseResult) String() string
type ImageMediaTaggingInstance ¶ added in v0.1.36
type ImageMediaTaggingInstance struct { BoundingBox *BoundingBox `json:"bounding_box,omitempty"` // 检测标签置信度,将Float型置信度转为String类型返回,Float取值范围(0~100)。 Confidence *string `json:"confidence,omitempty"` }
func (ImageMediaTaggingInstance) String ¶ added in v0.1.36
func (o ImageMediaTaggingInstance) String() string
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 *[]ImageMediaTaggingInstance `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
func (o ImageMediaTaggingItemBodyI18nTag) String() string
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
func (o ImageMediaTaggingItemBodyI18nType) String() string
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
func (o ImageMediaTaggingResponseResult) String() string
type ImageSuperResolutionReq ¶ added in v0.1.26
type ImageSuperResolutionReq struct { // 图像数据,base64编码,输入图像范围200px ~ 1080px,支持JPG/PNG/BMP/JPEG/WEBP格式 Image *string `json:"image,omitempty"` // 与image_base64二选一 图片的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"` // 图片放大倍数,目前支持2、3、4,默认为2 Scale *int32 `json:"scale,omitempty"` }
This is a auto crerate Body Object
func (ImageSuperResolutionReq) String ¶ added in v0.1.26
func (o ImageSuperResolutionReq) String() string
type ImageSuperResolutionResponseResult ¶ added in v0.1.26
type ImageSuperResolutionResponseResult struct { // 超分结果图片的base64码 ResultBase64 *string `json:"result_base64,omitempty"` }
图像超分结果信息
func (ImageSuperResolutionResponseResult) String ¶ added in v0.1.26
func (o ImageSuperResolutionResponseResult) String() string
type ImageTaggingBoundingBox ¶ added in v0.1.36
type ImageTaggingBoundingBox struct { // 检测框区域宽度 Width *float64 `json:"width,omitempty"` // 检测框区域高度 Height *float64 `json:"height,omitempty"` // 检测框左上角到垂直轴距离 TopLeftX *float64 `json:"top_left_x,omitempty"` // 检测框左上角到水平轴距离 TopLeftY *float64 `json:"top_left_y,omitempty"` }
目标检测框位置信息
func (ImageTaggingBoundingBox) String ¶ added in v0.1.36
func (o ImageTaggingBoundingBox) String() string
type ImageTaggingInstance ¶
type ImageTaggingInstance struct { BoundingBox *ImageTaggingBoundingBox `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 ¶
func (o ImageTaggingItemBodyI18nTag) String() string
type ImageTaggingItemBodyI18nType ¶
type ImageTaggingItemBodyI18nType struct { // 中文标签类别 Zh *string `json:"zh,omitempty"` // 英文标签类别 En *string `json:"en,omitempty"` }
标签类别的多种语言输出。
func (ImageTaggingItemBodyI18nType) String ¶
func (o ImageTaggingItemBodyI18nType) String() 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 ¶
func (o ImageTaggingResponseResult) String() string
type RecaptureDetectReq ¶ added in v0.1.26
type RecaptureDetectReq struct { // 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB,最短边至少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"` // 判断图片真实或虚假的阈值,默认值为0.95,取值范围(0~1),输入非该范围内值算法即取默认值。 Threshold *float32 `json:"threshold,omitempty"` }
func (RecaptureDetectReq) String ¶ added in v0.1.26
func (o RecaptureDetectReq) String() string
type RecaptureDetectResponseResult ¶ added in v0.1.26
type RecaptureDetectResponseResult struct { // 总体的结论: true:真实 false:虚假 uncertainty:不确定 Suggestion *string `json:"suggestion,omitempty"` // 标签(如果suggestion为真时,则该值为空字符串,否则不为空)。recapture:翻拍图 Category *string `json:"category,omitempty"` // 总体置信度,取值范围(0~1)。 Score *string `json:"score,omitempty"` // 识别结果详情。 Detail *[]RecaptureDetectResponseResultDetail `json:"detail,omitempty"` }
调用成功时为图片标签内容。调用失败时无此字段。
func (RecaptureDetectResponseResult) String ¶ added in v0.1.26
func (o RecaptureDetectResponseResult) String() string
type RecaptureDetectResponseResultDetail ¶ added in v0.1.26
type RecaptureDetectResponseResultDetail struct { // 标签值。| original:原始图 recapture:翻拍图 Label *string `json:"label,omitempty"` // 置信度,取值范围(0~1)。 Confidence *string `json:"confidence,omitempty"` }
func (RecaptureDetectResponseResultDetail) String ¶ added in v0.1.26
func (o RecaptureDetectResponseResultDetail) String() string
type RunCelebrityRecognitionRequest ¶
type RunCelebrityRecognitionRequest struct {
Body *CelebrityRecognitionReq `json:"body,omitempty"`
}
Request Object
func (RunCelebrityRecognitionRequest) String ¶
func (o RunCelebrityRecognitionRequest) String() string
type RunCelebrityRecognitionResponse ¶
type RunCelebrityRecognitionResponse struct { // 调用成功时表示调用结果。 调用失败时无此字段。 Result *[]CelebrityRecognitionResultBody `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunCelebrityRecognitionResponse) String ¶
func (o RunCelebrityRecognitionResponse) String() string
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
func (o RunImageDescriptionRequest) String() string
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
func (o RunImageDescriptionResponse) String() string
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
func (o RunImageMainObjectDetectionRequest) String() string
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
func (o RunImageMainObjectDetectionResponse) String() string
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
func (o RunImageMediaTaggingDetRequest) String() string
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
func (o RunImageMediaTaggingDetResponse) String() string
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
func (o RunImageMediaTaggingRequest) String() string
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
func (o RunImageMediaTaggingResponse) String() string
type RunImageSuperResolutionRequest ¶ added in v0.1.26
type RunImageSuperResolutionRequest struct {
Body *ImageSuperResolutionReq `json:"body,omitempty"`
}
Request Object
func (RunImageSuperResolutionRequest) String ¶ added in v0.1.26
func (o RunImageSuperResolutionRequest) String() string
type RunImageSuperResolutionResponse ¶ added in v0.1.26
type RunImageSuperResolutionResponse struct { Result *ImageSuperResolutionResponseResult `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunImageSuperResolutionResponse) String ¶ added in v0.1.26
func (o RunImageSuperResolutionResponse) String() 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
type RunRecaptureDetectRequest ¶ added in v0.1.26
type RunRecaptureDetectRequest struct {
Body *RecaptureDetectReq `json:"body,omitempty"`
}
Request Object
func (RunRecaptureDetectRequest) String ¶ added in v0.1.26
func (o RunRecaptureDetectRequest) String() string
type RunRecaptureDetectResponse ¶ added in v0.1.26
type RunRecaptureDetectResponse struct { Result *RecaptureDetectResponseResult `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunRecaptureDetectResponse) String ¶ added in v0.1.26
func (o RunRecaptureDetectResponse) String() string
type ShowImageHighresolutionMattingTaskRequest ¶ added in v0.1.28
type ShowImageHighresolutionMattingTaskRequest struct { // 任务id TaskId string `json:"task_id"` }
Request Object
func (ShowImageHighresolutionMattingTaskRequest) String ¶ added in v0.1.28
func (o ShowImageHighresolutionMattingTaskRequest) String() string
type ShowImageHighresolutionMattingTaskResponse ¶ added in v0.1.28
type ShowImageHighresolutionMattingTaskResponse struct { // 任务id TaskId *string `json:"task_id,omitempty"` // 任务创建时间,格式为ISO8601:YYYY-MM-DDThh:mm:ssZ CreateTime *string `json:"create_time,omitempty"` // 任务更新时间,格式为ISO8601:YYYY-MM-DDThh:mm:ssZ UpdateTime *string `json:"update_time,omitempty"` // 任务当前的状态,分别为SUCCEEDED(运行成功),FAILED(运行失败),RUNNING(运行中)。 State *string `json:"state,omitempty"` Input *ImageHighresolutionMattingInput `json:"input,omitempty"` Output *TaskOutput `json:"output,omitempty"` Config *ImageHighresolutionMattingConfig `json:"config,omitempty"` Callback *TaskCallback `json:"callback,omitempty"` XRequestId *string `json:"X-request-id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowImageHighresolutionMattingTaskResponse) String ¶ added in v0.1.28
func (o ShowImageHighresolutionMattingTaskResponse) String() string
type ShowVideoTaggingMediaTaskRequest ¶ added in v0.1.39
type ShowVideoTaggingMediaTaskRequest struct { // 任务id TaskId string `json:"task_id"` }
Request Object
func (ShowVideoTaggingMediaTaskRequest) String ¶ added in v0.1.39
func (o ShowVideoTaggingMediaTaskRequest) String() string
type ShowVideoTaggingMediaTaskResponse ¶ added in v0.1.39
type ShowVideoTaggingMediaTaskResponse struct { // 任务id TaskId *string `json:"task_id,omitempty"` // 任务创建时间,格式为ISO8601:YYYY-MM-DDThh:mm:ssZ CreateTime *string `json:"create_time,omitempty"` // 任务更新时间,格式为ISO8601:YYYY-MM-DDThh:mm:ssZ UpdateTime *string `json:"update_time,omitempty"` // 任务当前的状态,分别为SUCCEEDED(运行成功),FAILED(运行失败),RUNNING(运行中)。 State *string `json:"state,omitempty"` Input *VideoTaggingMediaTaskInput `json:"input,omitempty"` Output *TaskOutput `json:"output,omitempty"` Config *VideoTaggingTaskConfig `json:"config,omitempty"` Callback *TaskCallback `json:"callback,omitempty"` XRequestId *string `json:"X-request-id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowVideoTaggingMediaTaskResponse) String ¶ added in v0.1.39
func (o ShowVideoTaggingMediaTaskResponse) String() string
type TaskCallback ¶ added in v0.1.28
type TaskCallback struct { // 回调url地址,用于通知客户任务运行结束。 Url *string `json:"url,omitempty"` }
func (TaskCallback) String ¶ added in v0.1.28
func (o TaskCallback) String() string
type TaskOutput ¶ added in v0.1.28
type TaskOutput struct {
Obs *TaskOutputObs `json:"obs"`
}
func (TaskOutput) String ¶ added in v0.1.28
func (o TaskOutput) String() string
type TaskOutputObs ¶ added in v0.1.28
type TaskOutputObs struct { // 任务运行结果输出的OBS桶名。 Bucket string `json:"bucket"` // 任务运行结果输出的OBS路径。 Path string `json:"path"` }
func (TaskOutputObs) String ¶ added in v0.1.28
func (o TaskOutputObs) String() string
type VideoTaggingMediaTaskInput ¶ added in v0.1.39
type VideoTaggingMediaTaskInput struct { // 任务的输入类型。可选类型有obs(对象存储服务存储的文件),url(指定的文件地址) Type string `json:"type"` // 任务的输入详情。针对不同的输入类型有不同的配置。 Data []VideoTaggingMediaTaskInputData `json:"data"` }
func (VideoTaggingMediaTaskInput) String ¶ added in v0.1.39
func (o VideoTaggingMediaTaskInput) String() string
type VideoTaggingMediaTaskInputData ¶ added in v0.1.39
type VideoTaggingMediaTaskInputData struct { // OBS桶名,当输入为obs类型时必填。 Bucket *string `json:"bucket,omitempty"` // OBS的路径,当输入为obs类型时必填。 Path *string `json:"path,omitempty"` // url输入源的地址,当输入为url类型时必填。 长度不超过1000。必须为公网可匿名访问的HTTP/HTTPS URL。 Url *string `json:"url,omitempty"` // 数据标识。多输入场景下必选,值由算法定义;单输入场景非必选。 Key *string `json:"key,omitempty"` }
func (VideoTaggingMediaTaskInputData) String ¶ added in v0.1.39
func (o VideoTaggingMediaTaskInputData) String() string
type VideoTaggingTaskConfig ¶ added in v0.1.39
type VideoTaggingTaskConfig struct {
Common *VideoTaggingTaskConfigCommon `json:"common,omitempty"`
}
func (VideoTaggingTaskConfig) String ¶ added in v0.1.39
func (o VideoTaggingTaskConfig) String() string
type VideoTaggingTaskConfigCommon ¶ added in v0.1.39
type VideoTaggingTaskConfigCommon struct {
Inference *VideoTagginginference `json:"inference"`
}
func (VideoTaggingTaskConfigCommon) String ¶ added in v0.1.39
func (o VideoTaggingTaskConfigCommon) String() string
type VideoTagginginference ¶ added in v0.1.39
type VideoTagginginference struct { // 视频标题 VideoTitle *string `json:"video_title,omitempty"` // 标签语种 Language *VideoTagginginferenceLanguage `json:"language,omitempty"` // 名人识别使用开关 UseCelebrity *string `json:"use_celebrity,omitempty"` // 地标识别使用开关 UseLandmark *string `json:"use_landmark,omitempty"` // LOGO识别使用开关 UseLogo *string `json:"use_logo,omitempty"` // OCR识别使用开关 UseOcr *string `json:"use_ocr,omitempty"` // 视频语音识别开关 UseSis *string `json:"use_sis,omitempty"` // 图像标签识别开关 UseTagging *string `json:"use_tagging,omitempty"` }
func (VideoTagginginference) String ¶ added in v0.1.39
func (o VideoTagginginference) String() string
type VideoTagginginferenceLanguage ¶ added in v0.1.39
type VideoTagginginferenceLanguage struct {
// contains filtered or unexported fields
}
func (VideoTagginginferenceLanguage) MarshalJSON ¶ added in v0.1.39
func (c VideoTagginginferenceLanguage) MarshalJSON() ([]byte, error)
func (*VideoTagginginferenceLanguage) UnmarshalJSON ¶ added in v0.1.39
func (c *VideoTagginginferenceLanguage) UnmarshalJSON(b []byte) error
func (VideoTagginginferenceLanguage) Value ¶ added in v0.1.39
func (c VideoTagginginferenceLanguage) Value() string
type VideoTagginginferenceLanguageEnum ¶ added in v0.1.39
type VideoTagginginferenceLanguageEnum struct { ZH VideoTagginginferenceLanguage EN VideoTagginginferenceLanguage }
func GetVideoTagginginferenceLanguageEnum ¶ added in v0.1.39
func GetVideoTagginginferenceLanguageEnum() VideoTagginginferenceLanguageEnum
Source Files ¶
- model_bounding_box.go
- model_celebrity_recognition_req.go
- model_celebrity_recognition_result_body.go
- model_create_image_highresolution_matting_task_request.go
- model_create_image_highresolution_matting_task_response.go
- model_create_video_tagging_media_task_request.go
- model_create_video_tagging_media_task_request_body.go
- model_create_video_tagging_media_task_response.go
- model_image_description_req.go
- model_image_description_response_result.go
- model_image_highresolution_matting_config.go
- model_image_highresolution_matting_config_common.go
- model_image_highresolution_matting_inference.go
- model_image_highresolution_matting_input.go
- model_image_highresolution_matting_input_data.go
- model_image_highresolution_matting_request_body.go
- model_image_main_object_detection_instance.go
- model_image_main_object_detection_req.go
- model_image_media_tagging_det_instance.go
- model_image_media_tagging_det_item_body.go
- model_image_media_tagging_det_item_body_i18n_tag.go
- model_image_media_tagging_det_req.go
- model_image_media_tagging_det_response_result.go
- model_image_media_tagging_instance.go
- model_image_media_tagging_item_body.go
- model_image_media_tagging_item_body_i18n_tag.go
- model_image_media_tagging_item_body_i18n_type.go
- model_image_media_tagging_req.go
- model_image_media_tagging_response_result.go
- model_image_super_resolution_req.go
- model_image_super_resolution_response_result.go
- model_image_tagging_bounding_box.go
- model_image_tagging_instance.go
- model_image_tagging_item_body.go
- model_image_tagging_item_body_i18n_tag.go
- model_image_tagging_item_body_i18n_type.go
- model_image_tagging_req.go
- model_image_tagging_response_result.go
- model_recapture_detect_req.go
- model_recapture_detect_response_result.go
- model_recapture_detect_response_result_detail.go
- model_run_celebrity_recognition_request.go
- model_run_celebrity_recognition_response.go
- model_run_image_description_request.go
- model_run_image_description_response.go
- model_run_image_main_object_detection_request.go
- model_run_image_main_object_detection_response.go
- model_run_image_media_tagging_det_request.go
- model_run_image_media_tagging_det_response.go
- model_run_image_media_tagging_request.go
- model_run_image_media_tagging_response.go
- model_run_image_super_resolution_request.go
- model_run_image_super_resolution_response.go
- model_run_image_tagging_request.go
- model_run_image_tagging_response.go
- model_run_recapture_detect_request.go
- model_run_recapture_detect_response.go
- model_show_image_highresolution_matting_task_request.go
- model_show_image_highresolution_matting_task_response.go
- model_show_video_tagging_media_task_request.go
- model_show_video_tagging_media_task_response.go
- model_task_callback.go
- model_task_output.go
- model_task_output_obs.go
- model_video_tagging_media_task_input.go
- model_video_tagging_media_task_input_data.go
- model_video_tagging_task_config.go
- model_video_tagging_task_config_common.go
- model_video_tagginginference.go