Documentation ¶
Index ¶
- type CelebrityRecognitionReq
- type CelebrityRecognitionResultBody
- type CreateImageHighresolutionMattingTaskRequest
- type CreateImageHighresolutionMattingTaskResponse
- type CreateImageToVideoTaskRequest
- type CreateImageToVideoTaskResponse
- type CreateImageTranslateTaskRequest
- type CreateImageTranslateTaskResponse
- type CreateImageVariationTaskRequest
- type CreateImageVariationTaskRequestBody
- type CreateImageVariationTaskResponse
- type CreateTextToImageTaskRequest
- type CreateTextToImageTaskRequestBody
- type CreateTextToImageTaskResponse
- type CreateVideoCoverAnalysisTaskRequest
- type CreateVideoCoverAnalysisTaskResponse
- type CreateVideoCuttingTaskRequest
- type CreateVideoCuttingTaskResponse
- type CreateVideoObjectMaskingTaskRequest
- type CreateVideoObjectMaskingTaskRequestBody
- type CreateVideoObjectMaskingTaskResponse
- type CreateVideoShotSplitTaskRequest
- type CreateVideoShotSplitTaskResponse
- type CreateVideoSplitTaskRequestBody
- type CreateVideoSummarizationAnalysisTaskRequest
- type CreateVideoSummarizationAnalysisTaskResponse
- type CreateVideoSynthesisTaskRequest
- type CreateVideoSynthesisTaskResponse
- type CreateVideoTranslateTaskRequest
- type CreateVideoTranslateTaskResponse
- type ImageDescriptionReq
- type ImageDescriptionResponseResult
- type ImageHighresolutionMattingConfig
- type ImageHighresolutionMattingConfigCommon
- type ImageHighresolutionMattingInference
- type ImageHighresolutionMattingInferenceReturnType
- type ImageHighresolutionMattingInferenceReturnTypeEnum
- type ImageHighresolutionMattingRequestBody
- type ImageMainObjectDetectionInstance
- type ImageMainObjectDetectionReq
- type ImageMediaTaggingDetInstance
- type ImageMediaTaggingDetItemBody
- type ImageMediaTaggingDetItemBodyI18nTag
- type ImageMediaTaggingDetReq
- type ImageMediaTaggingDetResponseResult
- type ImageMediaTaggingItemBody
- type ImageMediaTaggingItemBodyI18nTag
- type ImageMediaTaggingItemBodyI18nType
- type ImageMediaTaggingReq
- type ImageMediaTaggingResponseResult
- type ImageSuperResolutionReq
- type ImageSuperResolutionResponseResult
- type ImageTaggingInstance
- type ImageTaggingItemBody
- type ImageTaggingItemBodyI18nTag
- type ImageTaggingItemBodyI18nType
- type ImageTaggingReq
- type ImageTaggingResponseResult
- type ImageToVideoConfig
- type ImageToVideoConfigCommon
- type ImageToVideoInference
- type ImageToVideoInfo
- type ImageToVideoRequestBody
- type ImageTranslateConfig
- type ImageTranslateConfigCommon
- type ImageTranslateInference
- type ImageTranslateInferenceRewrite
- type ImageTranslateInferenceRewriteEnum
- type ImageTranslateRequestBody
- type ImageVariationInference
- type ImageVariationInferenceResolution
- type ImageVariationInferenceResolutionEnum
- type ImageVariationTaskConfig
- type ImageVariationTaskConfigCommon
- type ImageWisedesignCropReq
- type ImageWisedesignCropResponseResult
- type ImageWisedesignInpaintingReq
- type ImageWisedesignInpaintingResponseResult
- type RecaptureDetectReq
- type RecaptureDetectResponseResult
- type RecaptureDetectResponseResultDetail
- type RunCelebrityRecognitionRequest
- type RunCelebrityRecognitionResponse
- type RunDeleteCustomTagsRequest
- type RunDeleteCustomTagsResponse
- 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 RunImageWisedesignCropRequest
- type RunImageWisedesignCropResponse
- type RunImageWisedesignInpaintingRequest
- type RunImageWisedesignInpaintingResponse
- type RunQueryCustomTagsRequest
- type RunQueryCustomTagsResponse
- type RunRecaptureDetectRequest
- type RunRecaptureDetectResponse
- type ShowImageHighresolutionMattingTaskRequest
- type ShowImageHighresolutionMattingTaskResponse
- type ShowImageToVideoTaskRequest
- type ShowImageToVideoTaskResponse
- type ShowImageTranslateTaskRequest
- type ShowImageTranslateTaskResponse
- type ShowImageVariationTaskRequest
- type ShowImageVariationTaskResponse
- type ShowImageVariationTaskResponseState
- type ShowImageVariationTaskResponseStateEnum
- type ShowTextToImageTaskRequest
- type ShowTextToImageTaskResponse
- type ShowTextToImageTaskResponseState
- type ShowTextToImageTaskResponseStateEnum
- type ShowVideoCoverAnalysisTaskRequest
- type ShowVideoCoverAnalysisTaskResponse
- type ShowVideoCoverAnalysisTaskResponseState
- type ShowVideoCoverAnalysisTaskResponseStateEnum
- type ShowVideoCuttingTaskRequest
- type ShowVideoCuttingTaskResponse
- type ShowVideoObjectMaskingTaskRequest
- type ShowVideoObjectMaskingTaskResponse
- type ShowVideoObjectMaskingTaskResponseState
- type ShowVideoObjectMaskingTaskResponseStateEnum
- type ShowVideoShotSplitTaskRequest
- type ShowVideoShotSplitTaskResponse
- type ShowVideoShotSplitTaskResponseState
- type ShowVideoShotSplitTaskResponseStateEnum
- type ShowVideoSummarizationAnalysisTaskRequest
- type ShowVideoSummarizationAnalysisTaskResponse
- type ShowVideoSummarizationAnalysisTaskResponseState
- type ShowVideoSummarizationAnalysisTaskResponseStateEnum
- type ShowVideoSynthesisTaskRequest
- type ShowVideoSynthesisTaskResponse
- type ShowVideoTranslateTaskRequest
- type ShowVideoTranslateTaskResponse
- type SummarizationAnalysisConfig
- type SummarizationAnalysisConfigCommon
- type SummarizationAnalysisInference
- type SummarizationAnalysisInferenceOutcomeType
- type SummarizationAnalysisInferenceOutcomeTypeEnum
- type TaskCallback
- type TaskInput
- type TaskInputData
- type TaskOutput
- type TaskOutputObs
- type TextToImageInference
- type TextToImageInferenceResolution
- type TextToImageInferenceResolutionEnum
- type TextToImageTaskConfig
- type TextToImageTaskConfigCommon
- type VideoCoverAnalysisConfig
- type VideoCoverAnalysisConfigCommon
- type VideoCoverAnalysisCreateTaskRequestBody
- type VideoCoverAnalysisinference
- type VideoCuttingConfig
- type VideoCuttingConfigCommon
- type VideoCuttingInference
- type VideoCuttingRequestBody
- type VideoObjectMaskingInference
- type VideoObjectMaskingInferenceSceneType
- type VideoObjectMaskingInferenceSceneTypeEnum
- type VideoObjectMaskingTaskConfig
- type VideoObjectMaskingTaskConfigCommon
- type VideoSegmentInfo
- type VideoSplitTaskInput
- type VideoSplitTaskInputData
- type VideoSummarizationCreateTaskRequestBody
- type VideoSynthesisConfig
- type VideoSynthesisConfigCommon
- type VideoSynthesisInference
- type VideoSynthesisInfo
- type VideoSynthesisRequestBody
- type VideoTranslateConfig
- type VideoTranslateConfigCommon
- type VideoTranslateInference
- type VideoTranslateInferenceRewrite
- type VideoTranslateInferenceRewriteConfig
- type VideoTranslateInferenceRewriteConfigBackground
- type VideoTranslateInferenceRewriteConfigStroke
- type VideoTranslateInferenceRewriteEnum
- type VideoTranslateRequestBody
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 ¶
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 CreateImageToVideoTaskRequest ¶ added in v0.1.28
type CreateImageToVideoTaskRequest struct {
Body *ImageToVideoRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateImageToVideoTaskRequest) String ¶ added in v0.1.28
func (o CreateImageToVideoTaskRequest) String() string
type CreateImageToVideoTaskResponse ¶ added in v0.1.28
type CreateImageToVideoTaskResponse struct { // 任务唯一标识 TaskId *string `json:"task_id,omitempty"` XRequestId *string `json:"X-request-id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateImageToVideoTaskResponse) String ¶ added in v0.1.28
func (o CreateImageToVideoTaskResponse) String() string
type CreateImageTranslateTaskRequest ¶ added in v0.1.28
type CreateImageTranslateTaskRequest struct {
Body *ImageTranslateRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateImageTranslateTaskRequest) String ¶ added in v0.1.28
func (o CreateImageTranslateTaskRequest) String() string
type CreateImageTranslateTaskResponse ¶ added in v0.1.28
type CreateImageTranslateTaskResponse struct { // 任务唯一标识 TaskId *string `json:"task_id,omitempty"` XRequestId *string `json:"X-request-id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateImageTranslateTaskResponse) String ¶ added in v0.1.28
func (o CreateImageTranslateTaskResponse) String() string
type CreateImageVariationTaskRequest ¶ added in v0.1.31
type CreateImageVariationTaskRequest struct {
Body *CreateImageVariationTaskRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateImageVariationTaskRequest) String ¶ added in v0.1.31
func (o CreateImageVariationTaskRequest) String() string
type CreateImageVariationTaskRequestBody ¶ added in v0.1.31
type CreateImageVariationTaskRequestBody struct { Input *TaskInput `json:"input"` Output *TaskOutput `json:"output"` Callback *TaskCallback `json:"callback,omitempty"` Config *ImageVariationTaskConfig `json:"config"` }
func (CreateImageVariationTaskRequestBody) String ¶ added in v0.1.31
func (o CreateImageVariationTaskRequestBody) String() string
type CreateImageVariationTaskResponse ¶ added in v0.1.31
type CreateImageVariationTaskResponse struct { // 任务唯一标识 TaskId *string `json:"task_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateImageVariationTaskResponse) String ¶ added in v0.1.31
func (o CreateImageVariationTaskResponse) String() string
type CreateTextToImageTaskRequest ¶ added in v0.1.31
type CreateTextToImageTaskRequest struct {
Body *CreateTextToImageTaskRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateTextToImageTaskRequest) String ¶ added in v0.1.31
func (o CreateTextToImageTaskRequest) String() string
type CreateTextToImageTaskRequestBody ¶ added in v0.1.31
type CreateTextToImageTaskRequestBody struct { Output *TaskOutput `json:"output"` Callback *TaskCallback `json:"callback,omitempty"` Config *TextToImageTaskConfig `json:"config"` }
func (CreateTextToImageTaskRequestBody) String ¶ added in v0.1.31
func (o CreateTextToImageTaskRequestBody) String() string
type CreateTextToImageTaskResponse ¶ added in v0.1.31
type CreateTextToImageTaskResponse struct { // 任务唯一标识 TaskId *string `json:"task_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateTextToImageTaskResponse) String ¶ added in v0.1.31
func (o CreateTextToImageTaskResponse) String() string
type CreateVideoCoverAnalysisTaskRequest ¶ added in v0.1.28
type CreateVideoCoverAnalysisTaskRequest struct {
Body *VideoCoverAnalysisCreateTaskRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateVideoCoverAnalysisTaskRequest) String ¶ added in v0.1.28
func (o CreateVideoCoverAnalysisTaskRequest) String() string
type CreateVideoCoverAnalysisTaskResponse ¶ added in v0.1.28
type CreateVideoCoverAnalysisTaskResponse struct { // 任务唯一标识 TaskId *string `json:"task_id,omitempty"` XRequestId *string `json:"X-request-id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateVideoCoverAnalysisTaskResponse) String ¶ added in v0.1.28
func (o CreateVideoCoverAnalysisTaskResponse) String() string
type CreateVideoCuttingTaskRequest ¶ added in v0.1.28
type CreateVideoCuttingTaskRequest struct {
Body *VideoCuttingRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateVideoCuttingTaskRequest) String ¶ added in v0.1.28
func (o CreateVideoCuttingTaskRequest) String() string
type CreateVideoCuttingTaskResponse ¶ added in v0.1.28
type CreateVideoCuttingTaskResponse struct { // 任务唯一标识 TaskId *string `json:"task_id,omitempty"` XRequestId *string `json:"X-request-id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateVideoCuttingTaskResponse) String ¶ added in v0.1.28
func (o CreateVideoCuttingTaskResponse) String() string
type CreateVideoObjectMaskingTaskRequest ¶ added in v0.1.32
type CreateVideoObjectMaskingTaskRequest struct {
Body *CreateVideoObjectMaskingTaskRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateVideoObjectMaskingTaskRequest) String ¶ added in v0.1.32
func (o CreateVideoObjectMaskingTaskRequest) String() string
type CreateVideoObjectMaskingTaskRequestBody ¶ added in v0.1.32
type CreateVideoObjectMaskingTaskRequestBody struct { Input *TaskInput `json:"input"` Output *TaskOutput `json:"output"` Callback *TaskCallback `json:"callback,omitempty"` Config *VideoObjectMaskingTaskConfig `json:"config"` }
func (CreateVideoObjectMaskingTaskRequestBody) String ¶ added in v0.1.32
func (o CreateVideoObjectMaskingTaskRequestBody) String() string
type CreateVideoObjectMaskingTaskResponse ¶ added in v0.1.32
type CreateVideoObjectMaskingTaskResponse struct { // 任务唯一标识 TaskId *string `json:"task_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateVideoObjectMaskingTaskResponse) String ¶ added in v0.1.32
func (o CreateVideoObjectMaskingTaskResponse) String() string
type CreateVideoShotSplitTaskRequest ¶ added in v0.1.28
type CreateVideoShotSplitTaskRequest struct {
Body *CreateVideoSplitTaskRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateVideoShotSplitTaskRequest) String ¶ added in v0.1.28
func (o CreateVideoShotSplitTaskRequest) String() string
type CreateVideoShotSplitTaskResponse ¶ added in v0.1.28
type CreateVideoShotSplitTaskResponse struct { // 任务唯一标识 TaskId *string `json:"task_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateVideoShotSplitTaskResponse) String ¶ added in v0.1.28
func (o CreateVideoShotSplitTaskResponse) String() string
type CreateVideoSplitTaskRequestBody ¶ added in v0.1.28
type CreateVideoSplitTaskRequestBody struct { Input *VideoSplitTaskInput `json:"input"` Output *TaskOutput `json:"output"` Callback *TaskCallback `json:"callback,omitempty"` }
func (CreateVideoSplitTaskRequestBody) String ¶ added in v0.1.28
func (o CreateVideoSplitTaskRequestBody) String() string
type CreateVideoSummarizationAnalysisTaskRequest ¶ added in v0.1.28
type CreateVideoSummarizationAnalysisTaskRequest struct {
Body *VideoSummarizationCreateTaskRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateVideoSummarizationAnalysisTaskRequest) String ¶ added in v0.1.28
func (o CreateVideoSummarizationAnalysisTaskRequest) String() string
type CreateVideoSummarizationAnalysisTaskResponse ¶ added in v0.1.28
type CreateVideoSummarizationAnalysisTaskResponse struct { // 任务唯一标识 TaskId *string `json:"task_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateVideoSummarizationAnalysisTaskResponse) String ¶ added in v0.1.28
func (o CreateVideoSummarizationAnalysisTaskResponse) String() string
type CreateVideoSynthesisTaskRequest ¶ added in v0.1.28
type CreateVideoSynthesisTaskRequest struct {
Body *VideoSynthesisRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateVideoSynthesisTaskRequest) String ¶ added in v0.1.28
func (o CreateVideoSynthesisTaskRequest) String() string
type CreateVideoSynthesisTaskResponse ¶ added in v0.1.28
type CreateVideoSynthesisTaskResponse struct { // 任务唯一标识 TaskId *string `json:"task_id,omitempty"` XRequestId *string `json:"X-request-id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateVideoSynthesisTaskResponse) String ¶ added in v0.1.28
func (o CreateVideoSynthesisTaskResponse) String() string
type CreateVideoTranslateTaskRequest ¶ added in v0.1.28
type CreateVideoTranslateTaskRequest struct {
Body *VideoTranslateRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateVideoTranslateTaskRequest) String ¶ added in v0.1.28
func (o CreateVideoTranslateTaskRequest) String() string
type CreateVideoTranslateTaskResponse ¶ added in v0.1.28
type CreateVideoTranslateTaskResponse struct { // 任务唯一标识 TaskId *string `json:"task_id,omitempty"` XRequestId *string `json:"X-request-id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateVideoTranslateTaskResponse) String ¶ added in v0.1.28
func (o CreateVideoTranslateTaskResponse) 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 ImageHighresolutionMattingRequestBody ¶ added in v0.1.28
type ImageHighresolutionMattingRequestBody struct { Input *TaskInput `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 { // 目标检测框位置信息,包括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
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 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
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 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 ¶
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 ImageToVideoConfig ¶ added in v0.1.28
type ImageToVideoConfig struct {
Common *ImageToVideoConfigCommon `json:"common,omitempty"`
}
func (ImageToVideoConfig) String ¶ added in v0.1.28
func (o ImageToVideoConfig) String() string
type ImageToVideoConfigCommon ¶ added in v0.1.28
type ImageToVideoConfigCommon struct {
Inference *ImageToVideoInference `json:"inference"`
}
func (ImageToVideoConfigCommon) String ¶ added in v0.1.28
func (o ImageToVideoConfigCommon) String() string
type ImageToVideoInference ¶ added in v0.1.28
type ImageToVideoInference struct {
ImageConfig *ImageToVideoInfo `json:"image_config"`
}
图像合成视频服务推理参数
func (ImageToVideoInference) String ¶ added in v0.1.28
func (o ImageToVideoInference) String() string
type ImageToVideoInfo ¶ added in v0.1.28
type ImageToVideoInfo struct { // 背景音乐url BgmUrl *string `json:"bgm_url,omitempty"` // 生成视频或gif开关,1生成gif,0生成视频,默认为视频 ToGif *int32 `json:"to_gif,omitempty"` // gif分辨率压缩率,gif最终分辨率为最终合成视频分辨率*gif_compress GifCompress *float32 `json:"gif_compress,omitempty"` // 图像展示时间List ImageDurations *[]float32 `json:"image_durations,omitempty"` // 分辨率 Resolution *[]int32 `json:"resolution,omitempty"` // 视频帧率,默认30 Fps *int32 `json:"fps,omitempty"` // 动画转场时间,默认1s AnimationDuration *float32 `json:"animation_duration,omitempty"` }
图像合成视频参数配置信息
func (ImageToVideoInfo) String ¶ added in v0.1.28
func (o ImageToVideoInfo) String() string
type ImageToVideoRequestBody ¶ added in v0.1.28
type ImageToVideoRequestBody struct { Input *TaskInput `json:"input"` Output *TaskOutput `json:"output"` Callback *TaskCallback `json:"callback,omitempty"` Config *ImageToVideoConfig `json:"config"` }
func (ImageToVideoRequestBody) String ¶ added in v0.1.28
func (o ImageToVideoRequestBody) String() string
type ImageTranslateConfig ¶ added in v0.1.28
type ImageTranslateConfig struct {
Common *ImageTranslateConfigCommon `json:"common"`
}
func (ImageTranslateConfig) String ¶ added in v0.1.28
func (o ImageTranslateConfig) String() string
type ImageTranslateConfigCommon ¶ added in v0.1.28
type ImageTranslateConfigCommon struct {
Inference *ImageTranslateInference `json:"inference"`
}
func (ImageTranslateConfigCommon) String ¶ added in v0.1.28
func (o ImageTranslateConfigCommon) String() string
type ImageTranslateInference ¶ added in v0.1.28
type ImageTranslateInference struct { // 文本翻译目标语言,支持中文(“zh”)、翻译中文(“zh-tw”)、英语(“en”)、日语(“ja”)、泰语(“th”)、阿拉伯语(“ar”)、韩语(“ko”) TargetLanguage string `json:"target_language"` // 是否回写,默认为是 Rewrite *ImageTranslateInferenceRewrite `json:"rewrite,omitempty"` }
func (ImageTranslateInference) String ¶ added in v0.1.28
func (o ImageTranslateInference) String() string
type ImageTranslateInferenceRewrite ¶ added in v0.1.28
type ImageTranslateInferenceRewrite struct {
// contains filtered or unexported fields
}
func (ImageTranslateInferenceRewrite) MarshalJSON ¶ added in v0.1.28
func (c ImageTranslateInferenceRewrite) MarshalJSON() ([]byte, error)
func (*ImageTranslateInferenceRewrite) UnmarshalJSON ¶ added in v0.1.28
func (c *ImageTranslateInferenceRewrite) UnmarshalJSON(b []byte) error
func (ImageTranslateInferenceRewrite) Value ¶ added in v0.1.28
func (c ImageTranslateInferenceRewrite) Value() string
type ImageTranslateInferenceRewriteEnum ¶ added in v0.1.28
type ImageTranslateInferenceRewriteEnum struct { TRUE ImageTranslateInferenceRewrite FALSE ImageTranslateInferenceRewrite }
func GetImageTranslateInferenceRewriteEnum ¶ added in v0.1.28
func GetImageTranslateInferenceRewriteEnum() ImageTranslateInferenceRewriteEnum
type ImageTranslateRequestBody ¶ added in v0.1.28
type ImageTranslateRequestBody struct { Input *TaskInput `json:"input"` Output *TaskOutput `json:"output"` Callback *TaskCallback `json:"callback,omitempty"` Config *ImageTranslateConfig `json:"config"` }
func (ImageTranslateRequestBody) String ¶ added in v0.1.28
func (o ImageTranslateRequestBody) String() string
type ImageVariationInference ¶ added in v0.1.31
type ImageVariationInference struct { // 随机数种子 Seed *int32 `json:"seed,omitempty"` // 生成图片分辨率,限定字符串\"512\\*768\",\"768\\*512\",\"512\\*512\",默认\"512\\*512\" Resolution *ImageVariationInferenceResolution `json:"resolution,omitempty"` // 生成图片数量,支持1-4张,默认为1 ImageNums *int32 `json:"image_nums,omitempty"` }
func (ImageVariationInference) String ¶ added in v0.1.31
func (o ImageVariationInference) String() string
type ImageVariationInferenceResolution ¶ added in v0.1.32
type ImageVariationInferenceResolution struct {
// contains filtered or unexported fields
}
func (ImageVariationInferenceResolution) MarshalJSON ¶ added in v0.1.32
func (c ImageVariationInferenceResolution) MarshalJSON() ([]byte, error)
func (*ImageVariationInferenceResolution) UnmarshalJSON ¶ added in v0.1.32
func (c *ImageVariationInferenceResolution) UnmarshalJSON(b []byte) error
func (ImageVariationInferenceResolution) Value ¶ added in v0.1.32
func (c ImageVariationInferenceResolution) Value() string
type ImageVariationInferenceResolutionEnum ¶ added in v0.1.32
type ImageVariationInferenceResolutionEnum struct { E_512768 ImageVariationInferenceResolution E_768512 ImageVariationInferenceResolution E_512512 ImageVariationInferenceResolution }
func GetImageVariationInferenceResolutionEnum ¶ added in v0.1.32
func GetImageVariationInferenceResolutionEnum() ImageVariationInferenceResolutionEnum
type ImageVariationTaskConfig ¶ added in v0.1.31
type ImageVariationTaskConfig struct {
Common *ImageVariationTaskConfigCommon `json:"common"`
}
func (ImageVariationTaskConfig) String ¶ added in v0.1.31
func (o ImageVariationTaskConfig) String() string
type ImageVariationTaskConfigCommon ¶ added in v0.1.31
type ImageVariationTaskConfigCommon struct {
Inference *ImageVariationInference `json:"inference"`
}
func (ImageVariationTaskConfigCommon) String ¶ added in v0.1.31
func (o ImageVariationTaskConfigCommon) String() string
type ImageWisedesignCropReq ¶ added in v0.1.28
type ImageWisedesignCropReq struct { // 图像数据,base64编码,要求base64编码最长边最大4000px,支持JPG/PNG/BMP/JPEG格式 ImageBase64 *string `json:"image_base64,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的区域需要和服务保持一致。 ImageUrl *string `json:"image_url,omitempty"` }
This is a auto crerate Body Object
func (ImageWisedesignCropReq) String ¶ added in v0.1.28
func (o ImageWisedesignCropReq) String() string
type ImageWisedesignCropResponseResult ¶ added in v0.1.28
type ImageWisedesignCropResponseResult struct { // 裁剪结果框,有四个整型数值,分别代表左上角横坐标、左上角纵坐标、右下角横坐标、右下角纵坐标,示例:[x_min, y_min, x_max, y_max] Box *[]int32 `json:"box,omitempty"` // 裁剪后图像的64位编码 ImageBase64 *string `json:"image_base64,omitempty"` // 请求的任务id TaskId *string `json:"task_id,omitempty"` }
智能设计商品图像裁剪结果信息
func (ImageWisedesignCropResponseResult) String ¶ added in v0.1.28
func (o ImageWisedesignCropResponseResult) String() string
type ImageWisedesignInpaintingReq ¶ added in v0.1.28
type ImageWisedesignInpaintingReq struct { // 图像数据,base64编码,要求base64编码最长边最大4000px,支持JPG/PNG/BMP/JPEG格式 ImageBase64 *string `json:"image_base64,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的区域需要和服务保持一致。 ImageUrl *string `json:"image_url,omitempty"` // 指定的多个待修复区域信息,每个待修复区域的类型为list[list[list[int,int]]],待修复区域至少由3个顺时针的坐标构成。若该参数为空,则会自动识别图像中的文字部分进行修复。默认为空 PolygonCoord *[][][]int32 `json:"polygon_coord,omitempty"` }
This is a auto crerate Body Object
func (ImageWisedesignInpaintingReq) String ¶ added in v0.1.28
func (o ImageWisedesignInpaintingReq) String() string
type ImageWisedesignInpaintingResponseResult ¶ added in v0.1.28
type ImageWisedesignInpaintingResponseResult struct { // 修复结果图片base64 ImageBase64 *string `json:"image_base64,omitempty"` // 请求类型 Action *string `json:"action,omitempty"` // 请求的任务id TaskId *string `json:"task_id,omitempty"` }
智能设计图像修复结果信息
func (ImageWisedesignInpaintingResponseResult) String ¶ added in v0.1.28
func (o ImageWisedesignInpaintingResponseResult) 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 RunDeleteCustomTagsRequest ¶ added in v0.1.14
type RunDeleteCustomTagsRequest struct { }
Request Object
func (RunDeleteCustomTagsRequest) String ¶ added in v0.1.14
func (o RunDeleteCustomTagsRequest) String() string
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
func (o RunDeleteCustomTagsResponse) 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 RunImageWisedesignCropRequest ¶ added in v0.1.28
type RunImageWisedesignCropRequest struct {
Body *ImageWisedesignCropReq `json:"body,omitempty"`
}
Request Object
func (RunImageWisedesignCropRequest) String ¶ added in v0.1.28
func (o RunImageWisedesignCropRequest) String() string
type RunImageWisedesignCropResponse ¶ added in v0.1.28
type RunImageWisedesignCropResponse struct { Result *ImageWisedesignCropResponseResult `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunImageWisedesignCropResponse) String ¶ added in v0.1.28
func (o RunImageWisedesignCropResponse) String() string
type RunImageWisedesignInpaintingRequest ¶ added in v0.1.28
type RunImageWisedesignInpaintingRequest struct {
Body *ImageWisedesignInpaintingReq `json:"body,omitempty"`
}
Request Object
func (RunImageWisedesignInpaintingRequest) String ¶ added in v0.1.28
func (o RunImageWisedesignInpaintingRequest) String() string
type RunImageWisedesignInpaintingResponse ¶ added in v0.1.28
type RunImageWisedesignInpaintingResponse struct { Result *ImageWisedesignInpaintingResponseResult `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunImageWisedesignInpaintingResponse) String ¶ added in v0.1.28
func (o RunImageWisedesignInpaintingResponse) 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
func (o RunQueryCustomTagsResponse) 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 *TaskInput `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 ShowImageToVideoTaskRequest ¶ added in v0.1.28
type ShowImageToVideoTaskRequest struct { // 任务id TaskId string `json:"task_id"` }
Request Object
func (ShowImageToVideoTaskRequest) String ¶ added in v0.1.28
func (o ShowImageToVideoTaskRequest) String() string
type ShowImageToVideoTaskResponse ¶ added in v0.1.28
type ShowImageToVideoTaskResponse 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 *TaskInput `json:"input,omitempty"` Output *TaskOutput `json:"output,omitempty"` Config *ImageToVideoConfig `json:"config,omitempty"` Callback *TaskCallback `json:"callback,omitempty"` XRequestId *string `json:"X-request-id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowImageToVideoTaskResponse) String ¶ added in v0.1.28
func (o ShowImageToVideoTaskResponse) String() string
type ShowImageTranslateTaskRequest ¶ added in v0.1.28
type ShowImageTranslateTaskRequest struct { // 任务id TaskId string `json:"task_id"` }
Request Object
func (ShowImageTranslateTaskRequest) String ¶ added in v0.1.28
func (o ShowImageTranslateTaskRequest) String() string
type ShowImageTranslateTaskResponse ¶ added in v0.1.28
type ShowImageTranslateTaskResponse 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 *TaskInput `json:"input,omitempty"` Output *TaskOutput `json:"output,omitempty"` Config *ImageTranslateConfig `json:"config,omitempty"` Callback *TaskCallback `json:"callback,omitempty"` XRequestId *string `json:"X-request-id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowImageTranslateTaskResponse) String ¶ added in v0.1.28
func (o ShowImageTranslateTaskResponse) String() string
type ShowImageVariationTaskRequest ¶ added in v0.1.31
type ShowImageVariationTaskRequest struct { // 任务ID TaskId string `json:"task_id"` }
Request Object
func (ShowImageVariationTaskRequest) String ¶ added in v0.1.31
func (o ShowImageVariationTaskRequest) String() string
type ShowImageVariationTaskResponse ¶ added in v0.1.31
type ShowImageVariationTaskResponse 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 *ShowImageVariationTaskResponseState `json:"state,omitempty"` Input *TaskInput `json:"input,omitempty"` Output *TaskOutput `json:"output,omitempty"` Config *ImageVariationTaskConfig `json:"config,omitempty"` Callback *TaskCallback `json:"callback,omitempty"` XRequestId *string `json:"X-request-id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowImageVariationTaskResponse) String ¶ added in v0.1.31
func (o ShowImageVariationTaskResponse) String() string
type ShowImageVariationTaskResponseState ¶ added in v0.1.31
type ShowImageVariationTaskResponseState struct {
// contains filtered or unexported fields
}
func (ShowImageVariationTaskResponseState) MarshalJSON ¶ added in v0.1.31
func (c ShowImageVariationTaskResponseState) MarshalJSON() ([]byte, error)
func (*ShowImageVariationTaskResponseState) UnmarshalJSON ¶ added in v0.1.31
func (c *ShowImageVariationTaskResponseState) UnmarshalJSON(b []byte) error
func (ShowImageVariationTaskResponseState) Value ¶ added in v0.1.31
func (c ShowImageVariationTaskResponseState) Value() string
type ShowImageVariationTaskResponseStateEnum ¶ added in v0.1.31
type ShowImageVariationTaskResponseStateEnum struct { SUCCEEDED ShowImageVariationTaskResponseState FAILED ShowImageVariationTaskResponseState RUNNING ShowImageVariationTaskResponseState }
func GetShowImageVariationTaskResponseStateEnum ¶ added in v0.1.31
func GetShowImageVariationTaskResponseStateEnum() ShowImageVariationTaskResponseStateEnum
type ShowTextToImageTaskRequest ¶ added in v0.1.31
type ShowTextToImageTaskRequest struct { // 任务ID TaskId string `json:"task_id"` }
Request Object
func (ShowTextToImageTaskRequest) String ¶ added in v0.1.31
func (o ShowTextToImageTaskRequest) String() string
type ShowTextToImageTaskResponse ¶ added in v0.1.31
type ShowTextToImageTaskResponse 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 *ShowTextToImageTaskResponseState `json:"state,omitempty"` Output *TaskOutput `json:"output,omitempty"` Config *TextToImageTaskConfig `json:"config,omitempty"` Callback *TaskCallback `json:"callback,omitempty"` XRequestId *string `json:"X-request-id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowTextToImageTaskResponse) String ¶ added in v0.1.31
func (o ShowTextToImageTaskResponse) String() string
type ShowTextToImageTaskResponseState ¶ added in v0.1.31
type ShowTextToImageTaskResponseState struct {
// contains filtered or unexported fields
}
func (ShowTextToImageTaskResponseState) MarshalJSON ¶ added in v0.1.31
func (c ShowTextToImageTaskResponseState) MarshalJSON() ([]byte, error)
func (*ShowTextToImageTaskResponseState) UnmarshalJSON ¶ added in v0.1.31
func (c *ShowTextToImageTaskResponseState) UnmarshalJSON(b []byte) error
func (ShowTextToImageTaskResponseState) Value ¶ added in v0.1.31
func (c ShowTextToImageTaskResponseState) Value() string
type ShowTextToImageTaskResponseStateEnum ¶ added in v0.1.31
type ShowTextToImageTaskResponseStateEnum struct { SUCCEEDED ShowTextToImageTaskResponseState FAILED ShowTextToImageTaskResponseState RUNNING ShowTextToImageTaskResponseState }
func GetShowTextToImageTaskResponseStateEnum ¶ added in v0.1.31
func GetShowTextToImageTaskResponseStateEnum() ShowTextToImageTaskResponseStateEnum
type ShowVideoCoverAnalysisTaskRequest ¶ added in v0.1.28
type ShowVideoCoverAnalysisTaskRequest struct { // 任务id TaskId string `json:"task_id"` }
Request Object
func (ShowVideoCoverAnalysisTaskRequest) String ¶ added in v0.1.28
func (o ShowVideoCoverAnalysisTaskRequest) String() string
type ShowVideoCoverAnalysisTaskResponse ¶ added in v0.1.28
type ShowVideoCoverAnalysisTaskResponse 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 *ShowVideoCoverAnalysisTaskResponseState `json:"state,omitempty"` Input *TaskInput `json:"input,omitempty"` Output *TaskOutput `json:"output,omitempty"` Config *VideoCoverAnalysisConfig `json:"config,omitempty"` Callback *TaskCallback `json:"callback,omitempty"` XRequestId *string `json:"X-request-id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowVideoCoverAnalysisTaskResponse) String ¶ added in v0.1.28
func (o ShowVideoCoverAnalysisTaskResponse) String() string
type ShowVideoCoverAnalysisTaskResponseState ¶ added in v0.1.28
type ShowVideoCoverAnalysisTaskResponseState struct {
// contains filtered or unexported fields
}
func (ShowVideoCoverAnalysisTaskResponseState) MarshalJSON ¶ added in v0.1.28
func (c ShowVideoCoverAnalysisTaskResponseState) MarshalJSON() ([]byte, error)
func (*ShowVideoCoverAnalysisTaskResponseState) UnmarshalJSON ¶ added in v0.1.28
func (c *ShowVideoCoverAnalysisTaskResponseState) UnmarshalJSON(b []byte) error
func (ShowVideoCoverAnalysisTaskResponseState) Value ¶ added in v0.1.28
func (c ShowVideoCoverAnalysisTaskResponseState) Value() string
type ShowVideoCoverAnalysisTaskResponseStateEnum ¶ added in v0.1.28
type ShowVideoCoverAnalysisTaskResponseStateEnum struct { SUCCEEDED ShowVideoCoverAnalysisTaskResponseState FAILED ShowVideoCoverAnalysisTaskResponseState RUNNING ShowVideoCoverAnalysisTaskResponseState }
func GetShowVideoCoverAnalysisTaskResponseStateEnum ¶ added in v0.1.28
func GetShowVideoCoverAnalysisTaskResponseStateEnum() ShowVideoCoverAnalysisTaskResponseStateEnum
type ShowVideoCuttingTaskRequest ¶ added in v0.1.28
type ShowVideoCuttingTaskRequest struct { // 任务id TaskId string `json:"task_id"` }
Request Object
func (ShowVideoCuttingTaskRequest) String ¶ added in v0.1.28
func (o ShowVideoCuttingTaskRequest) String() string
type ShowVideoCuttingTaskResponse ¶ added in v0.1.28
type ShowVideoCuttingTaskResponse 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 *TaskInput `json:"input,omitempty"` Output *TaskOutput `json:"output,omitempty"` Config *VideoCuttingConfig `json:"config,omitempty"` Callback *TaskCallback `json:"callback,omitempty"` XRequestId *string `json:"X-request-id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowVideoCuttingTaskResponse) String ¶ added in v0.1.28
func (o ShowVideoCuttingTaskResponse) String() string
type ShowVideoObjectMaskingTaskRequest ¶ added in v0.1.32
type ShowVideoObjectMaskingTaskRequest struct { // 任务ID TaskId string `json:"task_id"` }
Request Object
func (ShowVideoObjectMaskingTaskRequest) String ¶ added in v0.1.32
func (o ShowVideoObjectMaskingTaskRequest) String() string
type ShowVideoObjectMaskingTaskResponse ¶ added in v0.1.32
type ShowVideoObjectMaskingTaskResponse 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 *ShowVideoObjectMaskingTaskResponseState `json:"state,omitempty"` Input *TaskInput `json:"input,omitempty"` Output *TaskOutput `json:"output,omitempty"` Config *VideoObjectMaskingTaskConfig `json:"config,omitempty"` Callback *TaskCallback `json:"callback,omitempty"` XRequestId *string `json:"X-request-id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowVideoObjectMaskingTaskResponse) String ¶ added in v0.1.32
func (o ShowVideoObjectMaskingTaskResponse) String() string
type ShowVideoObjectMaskingTaskResponseState ¶ added in v0.1.32
type ShowVideoObjectMaskingTaskResponseState struct {
// contains filtered or unexported fields
}
func (ShowVideoObjectMaskingTaskResponseState) MarshalJSON ¶ added in v0.1.32
func (c ShowVideoObjectMaskingTaskResponseState) MarshalJSON() ([]byte, error)
func (*ShowVideoObjectMaskingTaskResponseState) UnmarshalJSON ¶ added in v0.1.32
func (c *ShowVideoObjectMaskingTaskResponseState) UnmarshalJSON(b []byte) error
func (ShowVideoObjectMaskingTaskResponseState) Value ¶ added in v0.1.32
func (c ShowVideoObjectMaskingTaskResponseState) Value() string
type ShowVideoObjectMaskingTaskResponseStateEnum ¶ added in v0.1.32
type ShowVideoObjectMaskingTaskResponseStateEnum struct { SUCCEEDED ShowVideoObjectMaskingTaskResponseState FAILED ShowVideoObjectMaskingTaskResponseState RUNNING ShowVideoObjectMaskingTaskResponseState }
func GetShowVideoObjectMaskingTaskResponseStateEnum ¶ added in v0.1.32
func GetShowVideoObjectMaskingTaskResponseStateEnum() ShowVideoObjectMaskingTaskResponseStateEnum
type ShowVideoShotSplitTaskRequest ¶ added in v0.1.28
type ShowVideoShotSplitTaskRequest struct { // 待查询任务ID TaskId string `json:"task_id"` }
Request Object
func (ShowVideoShotSplitTaskRequest) String ¶ added in v0.1.28
func (o ShowVideoShotSplitTaskRequest) String() string
type ShowVideoShotSplitTaskResponse ¶ added in v0.1.28
type ShowVideoShotSplitTaskResponse 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 *ShowVideoShotSplitTaskResponseState `json:"state,omitempty"` Input *VideoSplitTaskInput `json:"input,omitempty"` Output *TaskOutput `json:"output,omitempty"` Callback *TaskCallback `json:"callback,omitempty"` XRequestId *string `json:"X-request-id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowVideoShotSplitTaskResponse) String ¶ added in v0.1.28
func (o ShowVideoShotSplitTaskResponse) String() string
type ShowVideoShotSplitTaskResponseState ¶ added in v0.1.28
type ShowVideoShotSplitTaskResponseState struct {
// contains filtered or unexported fields
}
func (ShowVideoShotSplitTaskResponseState) MarshalJSON ¶ added in v0.1.28
func (c ShowVideoShotSplitTaskResponseState) MarshalJSON() ([]byte, error)
func (*ShowVideoShotSplitTaskResponseState) UnmarshalJSON ¶ added in v0.1.28
func (c *ShowVideoShotSplitTaskResponseState) UnmarshalJSON(b []byte) error
func (ShowVideoShotSplitTaskResponseState) Value ¶ added in v0.1.28
func (c ShowVideoShotSplitTaskResponseState) Value() string
type ShowVideoShotSplitTaskResponseStateEnum ¶ added in v0.1.28
type ShowVideoShotSplitTaskResponseStateEnum struct { SUCCEEDED ShowVideoShotSplitTaskResponseState FAILED ShowVideoShotSplitTaskResponseState RUNNING ShowVideoShotSplitTaskResponseState }
func GetShowVideoShotSplitTaskResponseStateEnum ¶ added in v0.1.28
func GetShowVideoShotSplitTaskResponseStateEnum() ShowVideoShotSplitTaskResponseStateEnum
type ShowVideoSummarizationAnalysisTaskRequest ¶ added in v0.1.28
type ShowVideoSummarizationAnalysisTaskRequest struct { // 任务ID TaskId string `json:"task_id"` }
Request Object
func (ShowVideoSummarizationAnalysisTaskRequest) String ¶ added in v0.1.28
func (o ShowVideoSummarizationAnalysisTaskRequest) String() string
type ShowVideoSummarizationAnalysisTaskResponse ¶ added in v0.1.28
type ShowVideoSummarizationAnalysisTaskResponse 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 *ShowVideoSummarizationAnalysisTaskResponseState `json:"state,omitempty"` Input *TaskInput `json:"input,omitempty"` Output *TaskOutput `json:"output,omitempty"` Config *SummarizationAnalysisConfig `json:"config,omitempty"` Callback *TaskCallback `json:"callback,omitempty"` XRequestId *string `json:"X-request-id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowVideoSummarizationAnalysisTaskResponse) String ¶ added in v0.1.28
func (o ShowVideoSummarizationAnalysisTaskResponse) String() string
type ShowVideoSummarizationAnalysisTaskResponseState ¶ added in v0.1.28
type ShowVideoSummarizationAnalysisTaskResponseState struct {
// contains filtered or unexported fields
}
func (ShowVideoSummarizationAnalysisTaskResponseState) MarshalJSON ¶ added in v0.1.28
func (c ShowVideoSummarizationAnalysisTaskResponseState) MarshalJSON() ([]byte, error)
func (*ShowVideoSummarizationAnalysisTaskResponseState) UnmarshalJSON ¶ added in v0.1.28
func (c *ShowVideoSummarizationAnalysisTaskResponseState) UnmarshalJSON(b []byte) error
func (ShowVideoSummarizationAnalysisTaskResponseState) Value ¶ added in v0.1.28
func (c ShowVideoSummarizationAnalysisTaskResponseState) Value() string
type ShowVideoSummarizationAnalysisTaskResponseStateEnum ¶ added in v0.1.28
type ShowVideoSummarizationAnalysisTaskResponseStateEnum struct { SUCCEEDED ShowVideoSummarizationAnalysisTaskResponseState FAILED ShowVideoSummarizationAnalysisTaskResponseState RUNNING ShowVideoSummarizationAnalysisTaskResponseState }
func GetShowVideoSummarizationAnalysisTaskResponseStateEnum ¶ added in v0.1.28
func GetShowVideoSummarizationAnalysisTaskResponseStateEnum() ShowVideoSummarizationAnalysisTaskResponseStateEnum
type ShowVideoSynthesisTaskRequest ¶ added in v0.1.28
type ShowVideoSynthesisTaskRequest struct { // 任务id TaskId string `json:"task_id"` }
Request Object
func (ShowVideoSynthesisTaskRequest) String ¶ added in v0.1.28
func (o ShowVideoSynthesisTaskRequest) String() string
type ShowVideoSynthesisTaskResponse ¶ added in v0.1.28
type ShowVideoSynthesisTaskResponse 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 *TaskInput `json:"input,omitempty"` Output *TaskOutput `json:"output,omitempty"` Config *VideoSynthesisConfig `json:"config,omitempty"` Callback *TaskCallback `json:"callback,omitempty"` XRequestId *string `json:"X-request-id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowVideoSynthesisTaskResponse) String ¶ added in v0.1.28
func (o ShowVideoSynthesisTaskResponse) String() string
type ShowVideoTranslateTaskRequest ¶ added in v0.1.28
type ShowVideoTranslateTaskRequest struct { // 任务id TaskId string `json:"task_id"` }
Request Object
func (ShowVideoTranslateTaskRequest) String ¶ added in v0.1.28
func (o ShowVideoTranslateTaskRequest) String() string
type ShowVideoTranslateTaskResponse ¶ added in v0.1.28
type ShowVideoTranslateTaskResponse 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 *TaskInput `json:"input,omitempty"` Output *TaskOutput `json:"output,omitempty"` Config *VideoTranslateConfig `json:"config,omitempty"` Callback *TaskCallback `json:"callback,omitempty"` XRequestId *string `json:"X-request-id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowVideoTranslateTaskResponse) String ¶ added in v0.1.28
func (o ShowVideoTranslateTaskResponse) String() string
type SummarizationAnalysisConfig ¶ added in v0.1.28
type SummarizationAnalysisConfig struct {
Common *SummarizationAnalysisConfigCommon `json:"common"`
}
func (SummarizationAnalysisConfig) String ¶ added in v0.1.28
func (o SummarizationAnalysisConfig) String() string
type SummarizationAnalysisConfigCommon ¶ added in v0.1.28
type SummarizationAnalysisConfigCommon struct {
Inference *SummarizationAnalysisInference `json:"inference"`
}
func (SummarizationAnalysisConfigCommon) String ¶ added in v0.1.28
func (o SummarizationAnalysisConfigCommon) String() string
type SummarizationAnalysisInference ¶ added in v0.1.28
type SummarizationAnalysisInference struct { // 摘要片段输出总时长 OutputDuration int32 `json:"output_duration"` // 输出类型,不填摘要片段和集锦都输出。填summary只输出集锦;填fragment只输出片段。 OutcomeType *SummarizationAnalysisInferenceOutcomeType `json:"outcome_type,omitempty"` }
func (SummarizationAnalysisInference) String ¶ added in v0.1.28
func (o SummarizationAnalysisInference) String() string
type SummarizationAnalysisInferenceOutcomeType ¶ added in v0.1.28
type SummarizationAnalysisInferenceOutcomeType struct {
// contains filtered or unexported fields
}
func (SummarizationAnalysisInferenceOutcomeType) MarshalJSON ¶ added in v0.1.28
func (c SummarizationAnalysisInferenceOutcomeType) MarshalJSON() ([]byte, error)
func (*SummarizationAnalysisInferenceOutcomeType) UnmarshalJSON ¶ added in v0.1.28
func (c *SummarizationAnalysisInferenceOutcomeType) UnmarshalJSON(b []byte) error
func (SummarizationAnalysisInferenceOutcomeType) Value ¶ added in v0.1.28
func (c SummarizationAnalysisInferenceOutcomeType) Value() string
type SummarizationAnalysisInferenceOutcomeTypeEnum ¶ added in v0.1.28
type SummarizationAnalysisInferenceOutcomeTypeEnum struct { FRAGMENT SummarizationAnalysisInferenceOutcomeType SUMMARY SummarizationAnalysisInferenceOutcomeType }
func GetSummarizationAnalysisInferenceOutcomeTypeEnum ¶ added in v0.1.28
func GetSummarizationAnalysisInferenceOutcomeTypeEnum() SummarizationAnalysisInferenceOutcomeTypeEnum
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 TaskInput ¶ added in v0.1.28
type TaskInput struct { // 任务的输入类型。可选类型有obs(对象存储服务存储的文件),url(指定的文件地址) Type string `json:"type"` // 任务的输入详情。针对不同的输入类型有不同的配置。 Data []TaskInputData `json:"data"` }
type TaskInputData ¶ added in v0.1.28
type TaskInputData struct { // OBS桶名,当输入为obs类型时必填。 Bucket *string `json:"bucket,omitempty"` // OBS的路径,当输入为obs类型时必填。 Path *string `json:"path,omitempty"` // url输入源的地址,当输入为url类型时必填。 长度不超过1000。 Url *string `json:"url,omitempty"` // 数据标识。多输入场景下必选,值由算法定义;单输入场景非必选。视频翻译场景,输入视频key为video;音频文件为audio;字幕文件为subtitle Key *string `json:"key,omitempty"` }
func (TaskInputData) String ¶ added in v0.1.28
func (o TaskInputData) 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 TextToImageInference ¶ added in v0.1.31
type TextToImageInference struct { // 文生图引导词 Prompt string `json:"prompt"` // 随机数种子 Seed *int32 `json:"seed,omitempty"` // 生成图片分辨率,限定字符串\"512\\*768\",\"768\\*512\",\"512\\*512\",默认\"512\\*512\" Resolution *TextToImageInferenceResolution `json:"resolution,omitempty"` // 生成图片数量,支持1-4张,默认为1 ImageNums *int32 `json:"image_nums,omitempty"` }
func (TextToImageInference) String ¶ added in v0.1.31
func (o TextToImageInference) String() string
type TextToImageInferenceResolution ¶ added in v0.1.32
type TextToImageInferenceResolution struct {
// contains filtered or unexported fields
}
func (TextToImageInferenceResolution) MarshalJSON ¶ added in v0.1.32
func (c TextToImageInferenceResolution) MarshalJSON() ([]byte, error)
func (*TextToImageInferenceResolution) UnmarshalJSON ¶ added in v0.1.32
func (c *TextToImageInferenceResolution) UnmarshalJSON(b []byte) error
func (TextToImageInferenceResolution) Value ¶ added in v0.1.32
func (c TextToImageInferenceResolution) Value() string
type TextToImageInferenceResolutionEnum ¶ added in v0.1.32
type TextToImageInferenceResolutionEnum struct { E_512768 TextToImageInferenceResolution E_768512 TextToImageInferenceResolution E_512512 TextToImageInferenceResolution }
func GetTextToImageInferenceResolutionEnum ¶ added in v0.1.32
func GetTextToImageInferenceResolutionEnum() TextToImageInferenceResolutionEnum
type TextToImageTaskConfig ¶ added in v0.1.31
type TextToImageTaskConfig struct {
Common *TextToImageTaskConfigCommon `json:"common"`
}
func (TextToImageTaskConfig) String ¶ added in v0.1.31
func (o TextToImageTaskConfig) String() string
type TextToImageTaskConfigCommon ¶ added in v0.1.31
type TextToImageTaskConfigCommon struct {
Inference *TextToImageInference `json:"inference"`
}
func (TextToImageTaskConfigCommon) String ¶ added in v0.1.31
func (o TextToImageTaskConfigCommon) String() string
type VideoCoverAnalysisConfig ¶ added in v0.1.28
type VideoCoverAnalysisConfig struct {
Common *VideoCoverAnalysisConfigCommon `json:"common,omitempty"`
}
func (VideoCoverAnalysisConfig) String ¶ added in v0.1.28
func (o VideoCoverAnalysisConfig) String() string
type VideoCoverAnalysisConfigCommon ¶ added in v0.1.28
type VideoCoverAnalysisConfigCommon struct {
Inference *VideoCoverAnalysisinference `json:"inference,omitempty"`
}
func (VideoCoverAnalysisConfigCommon) String ¶ added in v0.1.28
func (o VideoCoverAnalysisConfigCommon) String() string
type VideoCoverAnalysisCreateTaskRequestBody ¶ added in v0.1.28
type VideoCoverAnalysisCreateTaskRequestBody struct { Input *TaskInput `json:"input"` Output *TaskOutput `json:"output"` Callback *TaskCallback `json:"callback,omitempty"` Config *VideoCoverAnalysisConfig `json:"config,omitempty"` }
func (VideoCoverAnalysisCreateTaskRequestBody) String ¶ added in v0.1.28
func (o VideoCoverAnalysisCreateTaskRequestBody) String() string
type VideoCoverAnalysisinference ¶ added in v0.1.28
type VideoCoverAnalysisinference struct { // 动态封面帧率分子 GifRatenum *int32 `json:"gif_ratenum,omitempty"` // 动态封面帧率分母 GifRateden *int32 `json:"gif_rateden,omitempty"` // 动态封面长边长度 GifLongSide *int32 `json:"gif_long_side,omitempty"` // 动态封面短边长度 GifShortSide *int32 `json:"gif_short_side,omitempty"` }
func (VideoCoverAnalysisinference) String ¶ added in v0.1.28
func (o VideoCoverAnalysisinference) String() string
type VideoCuttingConfig ¶ added in v0.1.28
type VideoCuttingConfig struct {
Common *VideoCuttingConfigCommon `json:"common,omitempty"`
}
func (VideoCuttingConfig) String ¶ added in v0.1.28
func (o VideoCuttingConfig) String() string
type VideoCuttingConfigCommon ¶ added in v0.1.28
type VideoCuttingConfigCommon struct {
Inference *VideoCuttingInference `json:"inference"`
}
func (VideoCuttingConfigCommon) String ¶ added in v0.1.28
func (o VideoCuttingConfigCommon) String() string
type VideoCuttingInference ¶ added in v0.1.28
type VideoCuttingInference struct { // 视频剪切服务推理分段参数 SegmentInfo []VideoSegmentInfo `json:"segment_info"` }
视频剪切服务推理分段参数
func (VideoCuttingInference) String ¶ added in v0.1.28
func (o VideoCuttingInference) String() string
type VideoCuttingRequestBody ¶ added in v0.1.28
type VideoCuttingRequestBody struct { Input *TaskInput `json:"input"` Output *TaskOutput `json:"output"` Callback *TaskCallback `json:"callback,omitempty"` Config *VideoCuttingConfig `json:"config,omitempty"` }
func (VideoCuttingRequestBody) String ¶ added in v0.1.28
func (o VideoCuttingRequestBody) String() string
type VideoObjectMaskingInference ¶ added in v0.1.32
type VideoObjectMaskingInference struct { // 透传客户信息 PassThrough *string `json:"pass_through,omitempty"` // 擦除场景,可选车内或车外场景【inside,outside】 SceneType VideoObjectMaskingInferenceSceneType `json:"scene_type"` // 用户自定义产物名,无此项输入时,输出路径为{output结构体中指定输出path}/{task_id}/{task_id}.mp4;有此项输入时,输出路径为{output结构体中指定输出path}/{outcome_name}.mp4,自定义产物路径最多可定义5层文件夹目录。 OutcomeName *string `json:"outcome_name,omitempty"` }
func (VideoObjectMaskingInference) String ¶ added in v0.1.32
func (o VideoObjectMaskingInference) String() string
type VideoObjectMaskingInferenceSceneType ¶ added in v0.1.32
type VideoObjectMaskingInferenceSceneType struct {
// contains filtered or unexported fields
}
func (VideoObjectMaskingInferenceSceneType) MarshalJSON ¶ added in v0.1.32
func (c VideoObjectMaskingInferenceSceneType) MarshalJSON() ([]byte, error)
func (*VideoObjectMaskingInferenceSceneType) UnmarshalJSON ¶ added in v0.1.32
func (c *VideoObjectMaskingInferenceSceneType) UnmarshalJSON(b []byte) error
func (VideoObjectMaskingInferenceSceneType) Value ¶ added in v0.1.32
func (c VideoObjectMaskingInferenceSceneType) Value() string
type VideoObjectMaskingInferenceSceneTypeEnum ¶ added in v0.1.32
type VideoObjectMaskingInferenceSceneTypeEnum struct { INSIDE VideoObjectMaskingInferenceSceneType OUTSIDE VideoObjectMaskingInferenceSceneType }
func GetVideoObjectMaskingInferenceSceneTypeEnum ¶ added in v0.1.32
func GetVideoObjectMaskingInferenceSceneTypeEnum() VideoObjectMaskingInferenceSceneTypeEnum
type VideoObjectMaskingTaskConfig ¶ added in v0.1.32
type VideoObjectMaskingTaskConfig struct {
Common *VideoObjectMaskingTaskConfigCommon `json:"common"`
}
func (VideoObjectMaskingTaskConfig) String ¶ added in v0.1.32
func (o VideoObjectMaskingTaskConfig) String() string
type VideoObjectMaskingTaskConfigCommon ¶ added in v0.1.32
type VideoObjectMaskingTaskConfigCommon struct {
Inference *VideoObjectMaskingInference `json:"inference"`
}
func (VideoObjectMaskingTaskConfigCommon) String ¶ added in v0.1.32
func (o VideoObjectMaskingTaskConfigCommon) String() string
type VideoSegmentInfo ¶ added in v0.1.28
type VideoSegmentInfo struct { // 视频分段起始时间 StartTime float32 `json:"start_time"` // 视频分段持续时间 Duration float32 `json:"duration"` // 视频剪切服务生成视频或gif开关,1生成gif,0生成视频,默认为视频 ToGif *int32 `json:"to_gif,omitempty"` // 视频或gif倍速,默认1 Speed *float32 `json:"speed,omitempty"` // gif分辨率压缩率,gif最终分辨率为最终合成视频分辨率*gif_compress GifCompress *float32 `json:"gif_compress,omitempty"` }
视频剪切分段参数信息
func (VideoSegmentInfo) String ¶ added in v0.1.28
func (o VideoSegmentInfo) String() string
type VideoSplitTaskInput ¶ added in v0.1.28
type VideoSplitTaskInput struct { // 任务的输入类型。可选类型有obs(对象存储服务存储的文件),url(指定的文件地址) Type string `json:"type"` // 任务的输入详情。针对不同的输入类型有不同的配置。 Data []VideoSplitTaskInputData `json:"data"` }
func (VideoSplitTaskInput) String ¶ added in v0.1.28
func (o VideoSplitTaskInput) String() string
type VideoSplitTaskInputData ¶ added in v0.1.28
type VideoSplitTaskInputData struct { // OBS桶名,当输入为obs类型时必填。 Bucket *string `json:"bucket,omitempty"` // OBS的路径,当输入为obs类型时必填。 Path *string `json:"path,omitempty"` // url输入源的地址,当输入为url类型时必填。 长度不超过1000。 Url *string `json:"url,omitempty"` }
func (VideoSplitTaskInputData) String ¶ added in v0.1.28
func (o VideoSplitTaskInputData) String() string
type VideoSummarizationCreateTaskRequestBody ¶ added in v0.1.28
type VideoSummarizationCreateTaskRequestBody struct { Input *TaskInput `json:"input"` Output *TaskOutput `json:"output"` Callback *TaskCallback `json:"callback,omitempty"` Config *SummarizationAnalysisConfig `json:"config"` }
func (VideoSummarizationCreateTaskRequestBody) String ¶ added in v0.1.28
func (o VideoSummarizationCreateTaskRequestBody) String() string
type VideoSynthesisConfig ¶ added in v0.1.28
type VideoSynthesisConfig struct {
Common *VideoSynthesisConfigCommon `json:"common,omitempty"`
}
func (VideoSynthesisConfig) String ¶ added in v0.1.28
func (o VideoSynthesisConfig) String() string
type VideoSynthesisConfigCommon ¶ added in v0.1.28
type VideoSynthesisConfigCommon struct {
Inference *VideoSynthesisInference `json:"inference"`
}
func (VideoSynthesisConfigCommon) String ¶ added in v0.1.28
func (o VideoSynthesisConfigCommon) String() string
type VideoSynthesisInference ¶ added in v0.1.28
type VideoSynthesisInference struct {
VideoConfig *VideoSynthesisInfo `json:"video_config"`
}
视频合成服务推理参数
func (VideoSynthesisInference) String ¶ added in v0.1.28
func (o VideoSynthesisInference) String() string
type VideoSynthesisInfo ¶ added in v0.1.28
type VideoSynthesisInfo struct { // 背景音乐url BgmUrl *string `json:"bgm_url,omitempty"` // 视频分辨率 Resolution *[]int32 `json:"resolution,omitempty"` // 视频帧率 Fps *int32 `json:"fps,omitempty"` // 转场动画时间 AnimationDuration *float32 `json:"animation_duration,omitempty"` }
视频合成参数配置信息
func (VideoSynthesisInfo) String ¶ added in v0.1.28
func (o VideoSynthesisInfo) String() string
type VideoSynthesisRequestBody ¶ added in v0.1.28
type VideoSynthesisRequestBody struct { Input *TaskInput `json:"input"` Output *TaskOutput `json:"output"` Callback *TaskCallback `json:"callback,omitempty"` Config *VideoSynthesisConfig `json:"config"` }
func (VideoSynthesisRequestBody) String ¶ added in v0.1.28
func (o VideoSynthesisRequestBody) String() string
type VideoTranslateConfig ¶ added in v0.1.28
type VideoTranslateConfig struct {
Common *VideoTranslateConfigCommon `json:"common,omitempty"`
}
func (VideoTranslateConfig) String ¶ added in v0.1.28
func (o VideoTranslateConfig) String() string
type VideoTranslateConfigCommon ¶ added in v0.1.28
type VideoTranslateConfigCommon struct {
Inference *VideoTranslateInference `json:"inference"`
}
func (VideoTranslateConfigCommon) String ¶ added in v0.1.28
func (o VideoTranslateConfigCommon) String() string
type VideoTranslateInference ¶ added in v0.1.28
type VideoTranslateInference struct { // 字幕翻译目标语言 TargetLanguage string `json:"target_language"` // 是否回写 Rewrite *VideoTranslateInferenceRewrite `json:"rewrite,omitempty"` RewriteConfig *VideoTranslateInferenceRewriteConfig `json:"rewrite_config,omitempty"` }
func (VideoTranslateInference) String ¶ added in v0.1.28
func (o VideoTranslateInference) String() string
type VideoTranslateInferenceRewrite ¶ added in v0.1.28
type VideoTranslateInferenceRewrite struct {
// contains filtered or unexported fields
}
func (VideoTranslateInferenceRewrite) MarshalJSON ¶ added in v0.1.28
func (c VideoTranslateInferenceRewrite) MarshalJSON() ([]byte, error)
func (*VideoTranslateInferenceRewrite) UnmarshalJSON ¶ added in v0.1.28
func (c *VideoTranslateInferenceRewrite) UnmarshalJSON(b []byte) error
func (VideoTranslateInferenceRewrite) Value ¶ added in v0.1.28
func (c VideoTranslateInferenceRewrite) Value() string
type VideoTranslateInferenceRewriteConfig ¶ added in v0.1.28
type VideoTranslateInferenceRewriteConfig struct { // 字体类型 FontType *string `json:"font_type,omitempty"` // 字幕字体行间距 RewriteRowInterval *float32 `json:"rewrite_row_interval,omitempty"` Stroke *VideoTranslateInferenceRewriteConfigStroke `json:"stroke,omitempty"` Background *VideoTranslateInferenceRewriteConfigBackground `json:"background,omitempty"` }
回写配置
func (VideoTranslateInferenceRewriteConfig) String ¶ added in v0.1.28
func (o VideoTranslateInferenceRewriteConfig) String() string
type VideoTranslateInferenceRewriteConfigBackground ¶ added in v0.1.28
type VideoTranslateInferenceRewriteConfigBackground struct { // 文本背景框颜色 BoxColor *[]int32 `json:"box_color,omitempty"` // 文本字体颜色 BackgroundFontColor *[]int32 `json:"background_font_color,omitempty"` }
背景框配置
func (VideoTranslateInferenceRewriteConfigBackground) String ¶ added in v0.1.28
func (o VideoTranslateInferenceRewriteConfigBackground) String() string
type VideoTranslateInferenceRewriteConfigStroke ¶ added in v0.1.28
type VideoTranslateInferenceRewriteConfigStroke struct { // 文本描边颜色 StrokeColor *[]int32 `json:"stroke_color,omitempty"` // 文本字体颜色 FontColor *[]int32 `json:"font_color,omitempty"` // 描边宽度 StrokeRatio *float32 `json:"stroke_ratio,omitempty"` }
字体描边配置
func (VideoTranslateInferenceRewriteConfigStroke) String ¶ added in v0.1.28
func (o VideoTranslateInferenceRewriteConfigStroke) String() string
type VideoTranslateInferenceRewriteEnum ¶ added in v0.1.28
type VideoTranslateInferenceRewriteEnum struct { TRUE VideoTranslateInferenceRewrite FALSE VideoTranslateInferenceRewrite }
func GetVideoTranslateInferenceRewriteEnum ¶ added in v0.1.28
func GetVideoTranslateInferenceRewriteEnum() VideoTranslateInferenceRewriteEnum
type VideoTranslateRequestBody ¶ added in v0.1.28
type VideoTranslateRequestBody struct { Input *TaskInput `json:"input"` Output *TaskOutput `json:"output"` Callback *TaskCallback `json:"callback,omitempty"` Config *VideoTranslateConfig `json:"config,omitempty"` }
func (VideoTranslateRequestBody) String ¶ added in v0.1.28
func (o VideoTranslateRequestBody) String() string
Source Files ¶
- 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_image_to_video_task_request.go
- model_create_image_to_video_task_response.go
- model_create_image_translate_task_request.go
- model_create_image_translate_task_response.go
- model_create_image_variation_task_request.go
- model_create_image_variation_task_request_body.go
- model_create_image_variation_task_response.go
- model_create_text_to_image_task_request.go
- model_create_text_to_image_task_request_body.go
- model_create_text_to_image_task_response.go
- model_create_video_cover_analysis_task_request.go
- model_create_video_cover_analysis_task_response.go
- model_create_video_cutting_task_request.go
- model_create_video_cutting_task_response.go
- model_create_video_object_masking_task_request.go
- model_create_video_object_masking_task_request_body.go
- model_create_video_object_masking_task_response.go
- model_create_video_shot_split_task_request.go
- model_create_video_shot_split_task_response.go
- model_create_video_split_task_request_body.go
- model_create_video_summarization_analysis_task_request.go
- model_create_video_summarization_analysis_task_response.go
- model_create_video_synthesis_task_request.go
- model_create_video_synthesis_task_response.go
- model_create_video_translate_task_request.go
- model_create_video_translate_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_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_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_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_image_to_video_config.go
- model_image_to_video_config_common.go
- model_image_to_video_inference.go
- model_image_to_video_info.go
- model_image_to_video_request_body.go
- model_image_translate_config.go
- model_image_translate_config_common.go
- model_image_translate_inference.go
- model_image_translate_request_body.go
- model_image_variation_inference.go
- model_image_variation_task_config.go
- model_image_variation_task_config_common.go
- model_image_wisedesign_crop_req.go
- model_image_wisedesign_crop_response_result.go
- model_image_wisedesign_inpainting_req.go
- model_image_wisedesign_inpainting_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_delete_custom_tags_request.go
- model_run_delete_custom_tags_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_image_wisedesign_crop_request.go
- model_run_image_wisedesign_crop_response.go
- model_run_image_wisedesign_inpainting_request.go
- model_run_image_wisedesign_inpainting_response.go
- model_run_query_custom_tags_request.go
- model_run_query_custom_tags_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_image_to_video_task_request.go
- model_show_image_to_video_task_response.go
- model_show_image_translate_task_request.go
- model_show_image_translate_task_response.go
- model_show_image_variation_task_request.go
- model_show_image_variation_task_response.go
- model_show_text_to_image_task_request.go
- model_show_text_to_image_task_response.go
- model_show_video_cover_analysis_task_request.go
- model_show_video_cover_analysis_task_response.go
- model_show_video_cutting_task_request.go
- model_show_video_cutting_task_response.go
- model_show_video_object_masking_task_request.go
- model_show_video_object_masking_task_response.go
- model_show_video_shot_split_task_request.go
- model_show_video_shot_split_task_response.go
- model_show_video_summarization_analysis_task_request.go
- model_show_video_summarization_analysis_task_response.go
- model_show_video_synthesis_task_request.go
- model_show_video_synthesis_task_response.go
- model_show_video_translate_task_request.go
- model_show_video_translate_task_response.go
- model_summarization_analysis_config.go
- model_summarization_analysis_config_common.go
- model_summarization_analysis_inference.go
- model_task_callback.go
- model_task_input.go
- model_task_input_data.go
- model_task_output.go
- model_task_output_obs.go
- model_text_to_image_inference.go
- model_text_to_image_task_config.go
- model_text_to_image_task_config_common.go
- model_video_cover_analysis_config.go
- model_video_cover_analysis_config_common.go
- model_video_cover_analysis_create_task_request_body.go
- model_video_cover_analysisinference.go
- model_video_cutting_config.go
- model_video_cutting_config_common.go
- model_video_cutting_inference.go
- model_video_cutting_request_body.go
- model_video_object_masking_inference.go
- model_video_object_masking_task_config.go
- model_video_object_masking_task_config_common.go
- model_video_segment_info.go
- model_video_split_task_input.go
- model_video_split_task_input_data.go
- model_video_summarization_create_task_request_body.go
- model_video_synthesis_config.go
- model_video_synthesis_config_common.go
- model_video_synthesis_inference.go
- model_video_synthesis_info.go
- model_video_synthesis_request_body.go
- model_video_translate_config.go
- model_video_translate_config_common.go
- model_video_translate_inference.go
- model_video_translate_inference_rewrite_config.go
- model_video_translate_inference_rewrite_config_background.go
- model_video_translate_inference_rewrite_config_stroke.go
- model_video_translate_request_body.go