Documentation ¶
Index ¶
- Constants
- type AddCustomPersonImageRequest
- type AddCustomPersonImageRequestParams
- type AddCustomPersonImageResponse
- type AddCustomPersonImageResponseParams
- type AppearIndexPair
- type AppearInfo
- type AudioData
- type AudioInfo
- type AudioMetadata
- type ClassifiedPersonInfo
- type Client
- func (c *Client) AddCustomPersonImage(request *AddCustomPersonImageRequest) (response *AddCustomPersonImageResponse, err error)
- func (c *Client) AddCustomPersonImageWithContext(ctx context.Context, request *AddCustomPersonImageRequest) (response *AddCustomPersonImageResponse, err error)
- func (c *Client) CreateCustomCategory(request *CreateCustomCategoryRequest) (response *CreateCustomCategoryResponse, err error)
- func (c *Client) CreateCustomCategoryWithContext(ctx context.Context, request *CreateCustomCategoryRequest) (response *CreateCustomCategoryResponse, err error)
- func (c *Client) CreateCustomGroup(request *CreateCustomGroupRequest) (response *CreateCustomGroupResponse, err error)
- func (c *Client) CreateCustomGroupWithContext(ctx context.Context, request *CreateCustomGroupRequest) (response *CreateCustomGroupResponse, err error)
- func (c *Client) CreateCustomPerson(request *CreateCustomPersonRequest) (response *CreateCustomPersonResponse, err error)
- func (c *Client) CreateCustomPersonWithContext(ctx context.Context, request *CreateCustomPersonRequest) (response *CreateCustomPersonResponse, err error)
- func (c *Client) CreateDefaultCategories(request *CreateDefaultCategoriesRequest) (response *CreateDefaultCategoriesResponse, err error)
- func (c *Client) CreateDefaultCategoriesWithContext(ctx context.Context, request *CreateDefaultCategoriesRequest) (response *CreateDefaultCategoriesResponse, err error)
- func (c *Client) CreateTask(request *CreateTaskRequest) (response *CreateTaskResponse, err error)
- func (c *Client) CreateTaskWithContext(ctx context.Context, request *CreateTaskRequest) (response *CreateTaskResponse, err error)
- func (c *Client) DeleteCustomCategory(request *DeleteCustomCategoryRequest) (response *DeleteCustomCategoryResponse, err error)
- func (c *Client) DeleteCustomCategoryWithContext(ctx context.Context, request *DeleteCustomCategoryRequest) (response *DeleteCustomCategoryResponse, err error)
- func (c *Client) DeleteCustomPerson(request *DeleteCustomPersonRequest) (response *DeleteCustomPersonResponse, err error)
- func (c *Client) DeleteCustomPersonImage(request *DeleteCustomPersonImageRequest) (response *DeleteCustomPersonImageResponse, err error)
- func (c *Client) DeleteCustomPersonImageWithContext(ctx context.Context, request *DeleteCustomPersonImageRequest) (response *DeleteCustomPersonImageResponse, err error)
- func (c *Client) DeleteCustomPersonWithContext(ctx context.Context, request *DeleteCustomPersonRequest) (response *DeleteCustomPersonResponse, err error)
- func (c *Client) DeleteMedia(request *DeleteMediaRequest) (response *DeleteMediaResponse, err error)
- func (c *Client) DeleteMediaWithContext(ctx context.Context, request *DeleteMediaRequest) (response *DeleteMediaResponse, err error)
- func (c *Client) DeleteTask(request *DeleteTaskRequest) (response *DeleteTaskResponse, err error)
- func (c *Client) DeleteTaskWithContext(ctx context.Context, request *DeleteTaskRequest) (response *DeleteTaskResponse, err error)
- func (c *Client) DescribeCustomCategories(request *DescribeCustomCategoriesRequest) (response *DescribeCustomCategoriesResponse, err error)
- func (c *Client) DescribeCustomCategoriesWithContext(ctx context.Context, request *DescribeCustomCategoriesRequest) (response *DescribeCustomCategoriesResponse, err error)
- func (c *Client) DescribeCustomGroup(request *DescribeCustomGroupRequest) (response *DescribeCustomGroupResponse, err error)
- func (c *Client) DescribeCustomGroupWithContext(ctx context.Context, request *DescribeCustomGroupRequest) (response *DescribeCustomGroupResponse, err error)
- func (c *Client) DescribeCustomPersonDetail(request *DescribeCustomPersonDetailRequest) (response *DescribeCustomPersonDetailResponse, err error)
- func (c *Client) DescribeCustomPersonDetailWithContext(ctx context.Context, request *DescribeCustomPersonDetailRequest) (response *DescribeCustomPersonDetailResponse, err error)
- func (c *Client) DescribeCustomPersons(request *DescribeCustomPersonsRequest) (response *DescribeCustomPersonsResponse, err error)
- func (c *Client) DescribeCustomPersonsWithContext(ctx context.Context, request *DescribeCustomPersonsRequest) (response *DescribeCustomPersonsResponse, err error)
- func (c *Client) DescribeMedia(request *DescribeMediaRequest) (response *DescribeMediaResponse, err error)
- func (c *Client) DescribeMediaWithContext(ctx context.Context, request *DescribeMediaRequest) (response *DescribeMediaResponse, err error)
- func (c *Client) DescribeMedias(request *DescribeMediasRequest) (response *DescribeMediasResponse, err error)
- func (c *Client) DescribeMediasWithContext(ctx context.Context, request *DescribeMediasRequest) (response *DescribeMediasResponse, err error)
- func (c *Client) DescribeTask(request *DescribeTaskRequest) (response *DescribeTaskResponse, err error)
- func (c *Client) DescribeTaskDetail(request *DescribeTaskDetailRequest) (response *DescribeTaskDetailResponse, err error)
- func (c *Client) DescribeTaskDetailWithContext(ctx context.Context, request *DescribeTaskDetailRequest) (response *DescribeTaskDetailResponse, err error)
- func (c *Client) DescribeTaskWithContext(ctx context.Context, request *DescribeTaskRequest) (response *DescribeTaskResponse, err error)
- func (c *Client) DescribeTasks(request *DescribeTasksRequest) (response *DescribeTasksResponse, err error)
- func (c *Client) DescribeTasksWithContext(ctx context.Context, request *DescribeTasksRequest) (response *DescribeTasksResponse, err error)
- func (c *Client) ImportMedia(request *ImportMediaRequest) (response *ImportMediaResponse, err error)
- func (c *Client) ImportMediaWithContext(ctx context.Context, request *ImportMediaRequest) (response *ImportMediaResponse, err error)
- func (c *Client) ModifyCallback(request *ModifyCallbackRequest) (response *ModifyCallbackResponse, err error)
- func (c *Client) ModifyCallbackWithContext(ctx context.Context, request *ModifyCallbackRequest) (response *ModifyCallbackResponse, err error)
- func (c *Client) QueryCallback(request *QueryCallbackRequest) (response *QueryCallbackResponse, err error)
- func (c *Client) QueryCallbackWithContext(ctx context.Context, request *QueryCallbackRequest) (response *QueryCallbackResponse, err error)
- func (c *Client) UpdateCustomCategory(request *UpdateCustomCategoryRequest) (response *UpdateCustomCategoryResponse, err error)
- func (c *Client) UpdateCustomCategoryWithContext(ctx context.Context, request *UpdateCustomCategoryRequest) (response *UpdateCustomCategoryResponse, err error)
- func (c *Client) UpdateCustomPerson(request *UpdateCustomPersonRequest) (response *UpdateCustomPersonResponse, err error)
- func (c *Client) UpdateCustomPersonWithContext(ctx context.Context, request *UpdateCustomPersonRequest) (response *UpdateCustomPersonResponse, err error)
- type CreateCustomCategoryRequest
- type CreateCustomCategoryRequestParams
- type CreateCustomCategoryResponse
- type CreateCustomCategoryResponseParams
- type CreateCustomGroupRequest
- type CreateCustomGroupRequestParams
- type CreateCustomGroupResponse
- type CreateCustomGroupResponseParams
- type CreateCustomPersonRequest
- type CreateCustomPersonRequestParams
- type CreateCustomPersonResponse
- type CreateCustomPersonResponseParams
- type CreateDefaultCategoriesRequest
- type CreateDefaultCategoriesRequestParams
- type CreateDefaultCategoriesResponse
- type CreateDefaultCategoriesResponseParams
- type CreateTaskRequest
- type CreateTaskRequestParams
- type CreateTaskResponse
- type CreateTaskResponseParams
- type CustomCategory
- type CustomPersonFilter
- type CustomPersonInfo
- type Data
- type DeleteCustomCategoryRequest
- type DeleteCustomCategoryRequestParams
- type DeleteCustomCategoryResponse
- type DeleteCustomCategoryResponseParams
- type DeleteCustomPersonImageRequest
- type DeleteCustomPersonImageRequestParams
- type DeleteCustomPersonImageResponse
- type DeleteCustomPersonImageResponseParams
- type DeleteCustomPersonRequest
- type DeleteCustomPersonRequestParams
- type DeleteCustomPersonResponse
- type DeleteCustomPersonResponseParams
- type DeleteMediaRequest
- type DeleteMediaRequestParams
- type DeleteMediaResponse
- type DeleteMediaResponseParams
- type DeleteTaskRequest
- type DeleteTaskRequestParams
- type DeleteTaskResponse
- type DeleteTaskResponseParams
- type DescribeCustomCategoriesRequest
- type DescribeCustomCategoriesRequestParams
- type DescribeCustomCategoriesResponse
- type DescribeCustomCategoriesResponseParams
- type DescribeCustomGroupRequest
- type DescribeCustomGroupRequestParams
- type DescribeCustomGroupResponse
- type DescribeCustomGroupResponseParams
- type DescribeCustomPersonDetailRequest
- type DescribeCustomPersonDetailRequestParams
- type DescribeCustomPersonDetailResponse
- type DescribeCustomPersonDetailResponseParams
- type DescribeCustomPersonsRequest
- type DescribeCustomPersonsRequestParams
- type DescribeCustomPersonsResponse
- type DescribeCustomPersonsResponseParams
- type DescribeMediaRequest
- type DescribeMediaRequestParams
- type DescribeMediaResponse
- type DescribeMediaResponseParams
- type DescribeMediasRequest
- type DescribeMediasRequestParams
- type DescribeMediasResponse
- type DescribeMediasResponseParams
- type DescribeTaskDetailRequest
- type DescribeTaskDetailRequestParams
- type DescribeTaskDetailResponse
- type DescribeTaskDetailResponseParams
- type DescribeTaskRequest
- type DescribeTaskRequestParams
- type DescribeTaskResponse
- type DescribeTaskResponseParams
- type DescribeTasksRequest
- type DescribeTasksRequestParams
- type DescribeTasksResponse
- type DescribeTasksResponseParams
- type ImageData
- type ImageLogo
- type ImageMetadata
- type ImageOcr
- type ImportMediaRequest
- type ImportMediaRequestParams
- type ImportMediaResponse
- type ImportMediaResponseParams
- type L1Tag
- type L2Tag
- type L3Tag
- type MediaFilter
- type MediaInfo
- type MediaMetadata
- type MediaPreknownInfo
- type ModifyCallbackRequest
- type ModifyCallbackRequestParams
- type ModifyCallbackResponse
- type ModifyCallbackResponseParams
- type MultiLevelPersonInfo
- type MultiLevelTag
- type PersonImageInfo
- type PersonInfo
- type QueryCallbackRequest
- type QueryCallbackRequestParams
- type QueryCallbackResponse
- type QueryCallbackResponseParams
- type Rectf
- type ShowInfo
- type SortBy
- type TaskFilter
- type TaskInfo
- type TextAppearInfo
- type TextData
- type TextInfo
- type TextMetadata
- type UnknownPerson
- type UpdateCustomCategoryRequest
- type UpdateCustomCategoryRequestParams
- type UpdateCustomCategoryResponse
- type UpdateCustomCategoryResponseParams
- type UpdateCustomPersonRequest
- type UpdateCustomPersonRequestParams
- type UpdateCustomPersonResponse
- type UpdateCustomPersonResponseParams
- type VideoAppearInfo
Constants ¶
const ( // SecredId失效。 AUTHFAILURE_INVALIDSECRETID = "AuthFailure.InvalidSecretId" // MFA失败。 AUTHFAILURE_MFAFAILURE = "AuthFailure.MFAFailure" // SecretId不存在。 AUTHFAILURE_SECRETIDNOTFOUND = "AuthFailure.SecretIdNotFound" // 签名已过期。 AUTHFAILURE_SIGNATUREEXPIRE = "AuthFailure.SignatureExpire" // 签名校验失败。 AUTHFAILURE_SIGNATUREFAILURE = "AuthFailure.SignatureFailure" // 任务已完成。 AUTHFAILURE_TASKFINISHED = "AuthFailure.TaskFinished" // 令牌失败。 AUTHFAILURE_TOKENFAILURE = "AuthFailure.TokenFailure" // 用户已激活。 AUTHFAILURE_USERACTIVATED = "AuthFailure.UserActivated" // 用户状态异常。 AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" // 用户无权限。 AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" // 用户已欠费停服。 AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" // 操作失败。 FAILEDOPERATION = "FailedOperation" // 匹配的模板不存在。 FAILEDOPERATION_AITEMPLATENOTEXIST = "FailedOperation.AiTemplateNotExist" // 自定义人物分类已存在。 FAILEDOPERATION_CATEGORYEXIST = "FailedOperation.CategoryExist" // 自定义类型层级变化。 FAILEDOPERATION_CATEGORYLEVELCHANGED = "FailedOperation.CategoryLevelChanged" // 自定义人物分类被引用,不能删除。 FAILEDOPERATION_CATEGORYREFERRED = "FailedOperation.CategoryReferred" // 自定义人物库已存在。 FAILEDOPERATION_CUSTOMGROUPALREADYEXIST = "FailedOperation.CustomGroupAlreadyExist" // 内部DB连接失败。 FAILEDOPERATION_DBCONNECTIONERROR = "FailedOperation.DBConnectionError" // 媒资文件下载失败。 FAILEDOPERATION_DOWNLOADFAILED = "FailedOperation.DownloadFailed" // 图片特征提取失败。 FAILEDOPERATION_FEATUREALGOFAILED = "FailedOperation.FeatureAlgoFailed" // 获取CAM临时鉴权失败。 FAILEDOPERATION_GETCAMTOKENFAILED = "FailedOperation.GetCAMTokenFailed" // 获取任务列表失败。 FAILEDOPERATION_GETTASKLISTFAILED = "FailedOperation.GetTaskListFailed" // 获取媒资信息失败。 FAILEDOPERATION_GETVIDEOMETADATAFAILED = "FailedOperation.GetVideoMetadataFailed" // 图片数量过多。 FAILEDOPERATION_IMAGENUMEXCEEDED = "FailedOperation.ImageNumExceeded" // MD5不匹配。 FAILEDOPERATION_MD5MISMATCH = "FailedOperation.MD5Mismatch" // 媒资文件已经存在。 FAILEDOPERATION_MEDIAALREADYEXIST = "FailedOperation.MediaAlreadyExist" // 媒资文件已经过期。 FAILEDOPERATION_MEDIAEXPIRED = "FailedOperation.MediaExpired" // 媒资正在使用。 FAILEDOPERATION_MEDIAINUSE = "FailedOperation.MediaInUse" // 媒体文件未就绪。 FAILEDOPERATION_MEDIANOTREADY = "FailedOperation.MediaNotReady" // 图片中包含多张人脸。 FAILEDOPERATION_MULTIPLEFACESINIMAGE = "FailedOperation.MultipleFacesInImage" // 图片中不包含人脸。 FAILEDOPERATION_NOFACEINIMAGE = "FailedOperation.NoFaceInImage" // 计费开通失败。 FAILEDOPERATION_OPENCHARGEFAILED = "FailedOperation.OpenChargeFailed" // 人脸库中存在相似的人脸: %!s(MISSING)。 FAILEDOPERATION_PERSONDUPLICATED = "FailedOperation.PersonDuplicated" // 人脸图片不属于已知人物。 FAILEDOPERATION_PERSONNOTMATCHED = "FailedOperation.PersonNotMatched" // 自定义人物数量过多。 FAILEDOPERATION_PERSONNUMEXCEEDED = "FailedOperation.PersonNumExceeded" // 图片质量分检测失败。 FAILEDOPERATION_QUALITYALGOFAILED = "FailedOperation.QualityAlgoFailed" // 图片质量分过低。 FAILEDOPERATION_QUALITYTOOLOW = "FailedOperation.QualityTooLow" // 结果快照反序列化失败。 FAILEDOPERATION_SNAPSHOTDESERIALIZEFAILED = "FailedOperation.SnapshotDeserializeFailed" // 停止AI工作室任务失败。 FAILEDOPERATION_STOPFLOWFAILED = "FailedOperation.StopFlowFailed" // 存在相同的任务。 FAILEDOPERATION_TASKALREADYEXIST = "FailedOperation.TaskAlreadyExist" // 视频分析未完成。 FAILEDOPERATION_TASKNOTFINISHED = "FailedOperation.TaskNotFinished" // 转码失败。 FAILEDOPERATION_TRANSCODEFAILED = "FailedOperation.TranscodeFailed" // 上传文件失败。 FAILEDOPERATION_UPLOADFAILED = "FailedOperation.UploadFailed" // 内部错误。 INTERNALERROR = "InternalError" // 内部DB连接失败。 INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" // 内部DB操作错误。 INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" // 内部错误。 INTERNALERROR_INNERERROR = "InternalError.InnerError" // 自定义人物请求超过限制。 INTERNALERROR_INTERNALOVERFLOW = "InternalError.InternalOverflow" // 参数错误。 INVALIDPARAMETER = "InvalidParameter" // 自定义人物类型ID不合法。 INVALIDPARAMETER_INVALIDCATEGORYID = "InvalidParameter.InvalidCategoryId" // 文件路径不合法。 INVALIDPARAMETER_INVALIDFILEPATH = "InvalidParameter.InvalidFilePath" // 图片不合法。 INVALIDPARAMETER_INVALIDIMAGE = "InvalidParameter.InvalidImage" // 图片ID不合法。 INVALIDPARAMETER_INVALIDIMAGEID = "InvalidParameter.InvalidImageId" // 一级自定义类型不合法。 INVALIDPARAMETER_INVALIDL1CATEGORY = "InvalidParameter.InvalidL1Category" // 二级自定义类型不合法。 INVALIDPARAMETER_INVALIDL2CATEGORY = "InvalidParameter.InvalidL2Category" // MD5不合法。 INVALIDPARAMETER_INVALIDMD5 = "InvalidParameter.InvalidMD5" // 媒体ID不合法。 INVALIDPARAMETER_INVALIDMEDIAID = "InvalidParameter.InvalidMediaId" // MediaLabel无效。 INVALIDPARAMETER_INVALIDMEDIALABEL = "InvalidParameter.InvalidMediaLabel" // MediaLang无效。 INVALIDPARAMETER_INVALIDMEDIALANG = "InvalidParameter.InvalidMediaLang" // 媒体名称非法。 INVALIDPARAMETER_INVALIDMEDIANAME = "InvalidParameter.InvalidMediaName" // MediaPreknownInfo无效。 INVALIDPARAMETER_INVALIDMEDIAPREKNOWNINFO = "InvalidParameter.InvalidMediaPreknownInfo" // 媒资状态不合法。 INVALIDPARAMETER_INVALIDMEDIASTATUS = "InvalidParameter.InvalidMediaStatus" // MediaType无效。 INVALIDPARAMETER_INVALIDMEDIATYPE = "InvalidParameter.InvalidMediaType" // 名称不合法。 INVALIDPARAMETER_INVALIDNAME = "InvalidParameter.InvalidName" // 分页序号不合法。 INVALIDPARAMETER_INVALIDPAGENUMBER = "InvalidParameter.InvalidPageNumber" // 分页大小不合法。 INVALIDPARAMETER_INVALIDPAGESIZE = "InvalidParameter.InvalidPageSize" // 输入字段 %!s(MISSING) 不合法。 INVALIDPARAMETER_INVALIDPARAM = "InvalidParameter.InvalidParam" // 人物ID不合法。 INVALIDPARAMETER_INVALIDPERSONID = "InvalidParameter.InvalidPersonId" // 排序字段不合法。 INVALIDPARAMETER_INVALIDSORTBY = "InvalidParameter.InvalidSortBy" // 排序方式不合法。 INVALIDPARAMETER_INVALIDSORTORDER = "InvalidParameter.InvalidSortOrder" // 任务ID不合法。 INVALIDPARAMETER_INVALIDTASKID = "InvalidParameter.InvalidTaskId" // 任务名称不合法。 INVALIDPARAMETER_INVALIDTASKNAME = "InvalidParameter.InvalidTaskName" // 任务状态不合法。 INVALIDPARAMETER_INVALIDTASKSTATUS = "InvalidParameter.InvalidTaskStatus" // URL不合法。 INVALIDPARAMETER_INVALIDURL = "InvalidParameter.InvalidURL" // 用户Uin无效。 INVALIDPARAMETER_INVALIDUIN = "InvalidParameter.InvalidUin" // 名称超过长度限制。 INVALIDPARAMETER_NAMETOOLONG = "InvalidParameter.NameTooLong" // 参数超过长度限制。 INVALIDPARAMETER_PARAMTOOLONG = "InvalidParameter.ParamTooLong" // 输入URL域名无法解析。 INVALIDPARAMETER_URLNOTRESOLVED = "InvalidParameter.URLNotResolved" // 不支持的URL类型。 INVALIDPARAMETER_UNSUPPORTURL = "InvalidParameter.UnsupportURL" // 使用量超过限制。 LIMITEXCEEDED_USAGELIMITEXCEEDED = "LimitExceeded.UsageLimitExceeded" // 批量导入超过限制。 REQUESTLIMITEXCEEDED_BATCHIMPORTOVERFLOW = "RequestLimitExceeded.BatchImportOverflow" // 同时发起过多任务。 REQUESTLIMITEXCEEDED_CONCURRENCYOVERFLOW = "RequestLimitExceeded.ConcurrencyOverflow" // 自定义人物类型不存在。 RESOURCENOTFOUND_CUSTOMCATEGORYNOTFOUND = "ResourceNotFound.CustomCategoryNotFound" // 自定义人物库不存在。 RESOURCENOTFOUND_CUSTOMGROUPNOTFOUND = "ResourceNotFound.CustomGroupNotFound" // 媒资文件不存在。 RESOURCENOTFOUND_MEDIANOTFOUND = "ResourceNotFound.MediaNotFound" // 记录不存在。 RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" // 任务不存在。 RESOURCENOTFOUND_TASKNOTFOUND = "ResourceNotFound.TaskNotFound" // 未授权操作。 UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // 用户未激活该产品。 UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct" // 媒资文件不可访问。 UNSUPPORTEDOPERATION_MEDIANOTACCESSIBLE = "UnsupportedOperation.MediaNotAccessible" // 任务不可访问。 UNSUPPORTEDOPERATION_TASKNOTACCESSIBLE = "UnsupportedOperation.TaskNotAccessible" )
const APIVersion = "2021-09-03"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddCustomPersonImageRequest ¶ added in v1.0.338
type AddCustomPersonImageRequest struct { *tchttp.BaseRequest // 自定义人物Id PersonId *string `json:"PersonId,omitnil,omitempty" name:"PersonId"` // 自定义人物图片地址 ImageURL *string `json:"ImageURL,omitnil,omitempty" name:"ImageURL"` // 图片数据base64之后的结果 Image *string `json:"Image,omitnil,omitempty" name:"Image"` }
func NewAddCustomPersonImageRequest ¶ added in v1.0.338
func NewAddCustomPersonImageRequest() (request *AddCustomPersonImageRequest)
func (*AddCustomPersonImageRequest) FromJsonString ¶ added in v1.0.338
func (r *AddCustomPersonImageRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddCustomPersonImageRequest) ToJsonString ¶ added in v1.0.338
func (r *AddCustomPersonImageRequest) ToJsonString() string
type AddCustomPersonImageRequestParams ¶ added in v1.0.426
type AddCustomPersonImageRequestParams struct { // 自定义人物Id PersonId *string `json:"PersonId,omitnil,omitempty" name:"PersonId"` // 自定义人物图片地址 ImageURL *string `json:"ImageURL,omitnil,omitempty" name:"ImageURL"` // 图片数据base64之后的结果 Image *string `json:"Image,omitnil,omitempty" name:"Image"` }
Predefined struct for user
type AddCustomPersonImageResponse ¶ added in v1.0.338
type AddCustomPersonImageResponse struct { *tchttp.BaseResponse Response *AddCustomPersonImageResponseParams `json:"Response"` }
func NewAddCustomPersonImageResponse ¶ added in v1.0.338
func NewAddCustomPersonImageResponse() (response *AddCustomPersonImageResponse)
func (*AddCustomPersonImageResponse) FromJsonString ¶ added in v1.0.338
func (r *AddCustomPersonImageResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddCustomPersonImageResponse) ToJsonString ¶ added in v1.0.338
func (r *AddCustomPersonImageResponse) ToJsonString() string
type AddCustomPersonImageResponseParams ¶ added in v1.0.426
type AddCustomPersonImageResponseParams struct { // 自定义人物Id PersonId *string `json:"PersonId,omitnil,omitempty" name:"PersonId"` // 自定义人脸图片信息 ImageInfo *PersonImageInfo `json:"ImageInfo,omitnil,omitempty" name:"ImageInfo"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type AppearIndexPair ¶
type AppearInfo ¶
type AppearInfo struct { // 关键词在音频文本结果中的出现位置数组 // 注意:此字段可能返回 null,表示取不到有效值。 AudioAppearSet []*TextAppearInfo `json:"AudioAppearSet,omitnil,omitempty" name:"AudioAppearSet"` // 关键词在可视文本结果中的出现位置数组 // 注意:此字段可能返回 null,表示取不到有效值。 TextAppearSet []*TextAppearInfo `json:"TextAppearSet,omitnil,omitempty" name:"TextAppearSet"` // 关键词在视频信息中的出现位置数组 // 注意:此字段可能返回 null,表示取不到有效值。 VideoAppearSet []*VideoAppearInfo `json:"VideoAppearSet,omitnil,omitempty" name:"VideoAppearSet"` }
type AudioData ¶ added in v1.0.501
type AudioData struct { // 音频识别文本结果 // 注意:此字段可能返回 null,表示取不到有效值。 AudioInfoSet []*AudioInfo `json:"AudioInfoSet,omitnil,omitempty" name:"AudioInfoSet"` // 音频识别标签数据 TextTagSet *MultiLevelTag `json:"TextTagSet,omitnil,omitempty" name:"TextTagSet"` }
type AudioInfo ¶
type AudioInfo struct { // ASR提取的文字信息 Content *string `json:"Content,omitnil,omitempty" name:"Content"` // ASR起始时间戳,从0开始 StartTimeStamp *float64 `json:"StartTimeStamp,omitnil,omitempty" name:"StartTimeStamp"` // ASR结束时间戳,从0开始 EndTimeStamp *float64 `json:"EndTimeStamp,omitnil,omitempty" name:"EndTimeStamp"` // ASR提取的音频标签 Tag *string `json:"Tag,omitnil,omitempty" name:"Tag"` }
type AudioMetadata ¶ added in v1.0.501
type AudioMetadata struct { // 媒资音频文件大小,单位为Byte // 注意:此字段可能返回 null,表示取不到有效值。 FileSize *int64 `json:"FileSize,omitnil,omitempty" name:"FileSize"` // 媒资音频文件MD5 // 注意:此字段可能返回 null,表示取不到有效值。 MD5 *string `json:"MD5,omitnil,omitempty" name:"MD5"` // 媒资音频时长,单位为秒 // 注意:此字段可能返回 null,表示取不到有效值。 Duration *float64 `json:"Duration,omitnil,omitempty" name:"Duration"` // 媒资音频采样率,单位为khz // 注意:此字段可能返回 null,表示取不到有效值。 SampleRate *float64 `json:"SampleRate,omitnil,omitempty" name:"SampleRate"` // 媒资音频码率,单位为kbps // 注意:此字段可能返回 null,表示取不到有效值。 BitRate *int64 `json:"BitRate,omitnil,omitempty" name:"BitRate"` // 媒资音频文件格式 // 注意:此字段可能返回 null,表示取不到有效值。 Format *string `json:"Format,omitnil,omitempty" name:"Format"` }
type ClassifiedPersonInfo ¶ added in v1.0.361
type ClassifiedPersonInfo struct { // 人物分类名称 // 注意:此字段可能返回 null,表示取不到有效值。 ClassifyName *string `json:"ClassifyName,omitnil,omitempty" name:"ClassifyName"` // 符合特定分类的人物信息数组 // 注意:此字段可能返回 null,表示取不到有效值。 PersonInfoSet []*PersonInfo `json:"PersonInfoSet,omitnil,omitempty" name:"PersonInfoSet"` }
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AddCustomPersonImage ¶ added in v1.0.338
func (c *Client) AddCustomPersonImage(request *AddCustomPersonImageRequest) (response *AddCustomPersonImageResponse, err error)
AddCustomPersonImage 增加自定义人脸图片,每个自定义人物最多可包含10张人脸图片
请注意,与创建自定义人物一样,图片数据优先级优于图片URL优先级
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_DOWNLOADFAILED = "FailedOperation.DownloadFailed" FAILEDOPERATION_FEATUREALGOFAILED = "FailedOperation.FeatureAlgoFailed" FAILEDOPERATION_IMAGENUMEXCEEDED = "FailedOperation.ImageNumExceeded" FAILEDOPERATION_MULTIPLEFACESINIMAGE = "FailedOperation.MultipleFacesInImage" FAILEDOPERATION_NOFACEINIMAGE = "FailedOperation.NoFaceInImage" FAILEDOPERATION_PERSONNOTMATCHED = "FailedOperation.PersonNotMatched" FAILEDOPERATION_QUALITYALGOFAILED = "FailedOperation.QualityAlgoFailed" FAILEDOPERATION_QUALITYTOOLOW = "FailedOperation.QualityTooLow" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INTERNALERROR_INTERNALOVERFLOW = "InternalError.InternalOverflow" INVALIDPARAMETER_INVALIDIMAGE = "InvalidParameter.InvalidImage" INVALIDPARAMETER_INVALIDPERSONID = "InvalidParameter.InvalidPersonId" INVALIDPARAMETER_INVALIDURL = "InvalidParameter.InvalidURL" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) AddCustomPersonImageWithContext ¶ added in v1.0.338
func (c *Client) AddCustomPersonImageWithContext(ctx context.Context, request *AddCustomPersonImageRequest) (response *AddCustomPersonImageResponse, err error)
AddCustomPersonImage 增加自定义人脸图片,每个自定义人物最多可包含10张人脸图片
请注意,与创建自定义人物一样,图片数据优先级优于图片URL优先级
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_DOWNLOADFAILED = "FailedOperation.DownloadFailed" FAILEDOPERATION_FEATUREALGOFAILED = "FailedOperation.FeatureAlgoFailed" FAILEDOPERATION_IMAGENUMEXCEEDED = "FailedOperation.ImageNumExceeded" FAILEDOPERATION_MULTIPLEFACESINIMAGE = "FailedOperation.MultipleFacesInImage" FAILEDOPERATION_NOFACEINIMAGE = "FailedOperation.NoFaceInImage" FAILEDOPERATION_PERSONNOTMATCHED = "FailedOperation.PersonNotMatched" FAILEDOPERATION_QUALITYALGOFAILED = "FailedOperation.QualityAlgoFailed" FAILEDOPERATION_QUALITYTOOLOW = "FailedOperation.QualityTooLow" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INTERNALERROR_INTERNALOVERFLOW = "InternalError.InternalOverflow" INVALIDPARAMETER_INVALIDIMAGE = "InvalidParameter.InvalidImage" INVALIDPARAMETER_INVALIDPERSONID = "InvalidParameter.InvalidPersonId" INVALIDPARAMETER_INVALIDURL = "InvalidParameter.InvalidURL" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) CreateCustomCategory ¶ added in v1.0.338
func (c *Client) CreateCustomCategory(request *CreateCustomCategoryRequest) (response *CreateCustomCategoryResponse, err error)
CreateCustomCategory 创建自定义人物分类信息
当L2Category为空时,将创建一级自定义分类。
当L1Category与L2Category均不为空时,将创建二级自定义分类。请注意,**只有当一级自定义分类存在时,才可创建二级自定义分类**。
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_CATEGORYEXIST = "FailedOperation.CategoryExist" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDL1CATEGORY = "InvalidParameter.InvalidL1Category" INVALIDPARAMETER_INVALIDL2CATEGORY = "InvalidParameter.InvalidL2Category" INVALIDPARAMETER_INVALIDPARAM = "InvalidParameter.InvalidParam" RESOURCENOTFOUND_CUSTOMCATEGORYNOTFOUND = "ResourceNotFound.CustomCategoryNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) CreateCustomCategoryWithContext ¶ added in v1.0.338
func (c *Client) CreateCustomCategoryWithContext(ctx context.Context, request *CreateCustomCategoryRequest) (response *CreateCustomCategoryResponse, err error)
CreateCustomCategory 创建自定义人物分类信息
当L2Category为空时,将创建一级自定义分类。
当L1Category与L2Category均不为空时,将创建二级自定义分类。请注意,**只有当一级自定义分类存在时,才可创建二级自定义分类**。
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_CATEGORYEXIST = "FailedOperation.CategoryExist" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDL1CATEGORY = "InvalidParameter.InvalidL1Category" INVALIDPARAMETER_INVALIDL2CATEGORY = "InvalidParameter.InvalidL2Category" INVALIDPARAMETER_INVALIDPARAM = "InvalidParameter.InvalidParam" RESOURCENOTFOUND_CUSTOMCATEGORYNOTFOUND = "ResourceNotFound.CustomCategoryNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) CreateCustomGroup ¶ added in v1.0.338
func (c *Client) CreateCustomGroup(request *CreateCustomGroupRequest) (response *CreateCustomGroupResponse, err error)
CreateCustomGroup 创建自定义人物库
Bucket的格式参考为 `bucketName-123456.cos.ap-shanghai.myqcloud.com`
在调用CreateCustomPerson和AddCustomPersonImage接口之前,请先确保本接口成功调用。当前每个用户只支持一个自定义人物库,一旦自定义人物库创建成功,后续接口调用均会返回人物库已存在错误。
由于人脸图片对于自定义人物识别至关重要,因此自定义人物识别功能需要用户显式指定COS存储桶方可使用。具体来说,自定义人物识别功能接口(主要是CreateCustomPerson和AddCustomPersonImage)会在此COS桶下面新建IVLDCustomPersonImage目录,并在此目录下存储自定义人物图片数据以支持后续潜在的特征更新。
请注意:本接口指定的COS桶仅用于**备份存储自定义人物图片**,CreateCustomPerson和AddCustomPersonImage接口入参URL可使用任意COS存储桶下的任意图片。
**重要**:请务必确保本接口指定的COS存储桶存在(不要手动删除COS桶)。COS存储桶一旦指定,将不能修改。
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_CUSTOMGROUPALREADYEXIST = "FailedOperation.CustomGroupAlreadyExist" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDURL = "InvalidParameter.InvalidURL" INVALIDPARAMETER_UNSUPPORTURL = "InvalidParameter.UnsupportURL" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) CreateCustomGroupWithContext ¶ added in v1.0.338
func (c *Client) CreateCustomGroupWithContext(ctx context.Context, request *CreateCustomGroupRequest) (response *CreateCustomGroupResponse, err error)
CreateCustomGroup 创建自定义人物库
Bucket的格式参考为 `bucketName-123456.cos.ap-shanghai.myqcloud.com`
在调用CreateCustomPerson和AddCustomPersonImage接口之前,请先确保本接口成功调用。当前每个用户只支持一个自定义人物库,一旦自定义人物库创建成功,后续接口调用均会返回人物库已存在错误。
由于人脸图片对于自定义人物识别至关重要,因此自定义人物识别功能需要用户显式指定COS存储桶方可使用。具体来说,自定义人物识别功能接口(主要是CreateCustomPerson和AddCustomPersonImage)会在此COS桶下面新建IVLDCustomPersonImage目录,并在此目录下存储自定义人物图片数据以支持后续潜在的特征更新。
请注意:本接口指定的COS桶仅用于**备份存储自定义人物图片**,CreateCustomPerson和AddCustomPersonImage接口入参URL可使用任意COS存储桶下的任意图片。
**重要**:请务必确保本接口指定的COS存储桶存在(不要手动删除COS桶)。COS存储桶一旦指定,将不能修改。
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_CUSTOMGROUPALREADYEXIST = "FailedOperation.CustomGroupAlreadyExist" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDURL = "InvalidParameter.InvalidURL" INVALIDPARAMETER_UNSUPPORTURL = "InvalidParameter.UnsupportURL" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) CreateCustomPerson ¶ added in v1.0.338
func (c *Client) CreateCustomPerson(request *CreateCustomPersonRequest) (response *CreateCustomPersonResponse, err error)
CreateCustomPerson 创建自定义人物。
输入人物名称,基本信息,分类信息与人脸图片,创建自定义人物
人脸图片可使用图片数据(base64编码的图片数据)或者图片URL(推荐使用COS以减少下载时间,其他地址也支持),原始图片优先,也即如果同时指定了图片数据和图片URL,接口将仅使用图片数据
可能返回的错误码:
AUTHFAILURE_INVALIDSECRETID = "AuthFailure.InvalidSecretId" AUTHFAILURE_SECRETIDNOTFOUND = "AuthFailure.SecretIdNotFound" AUTHFAILURE_SIGNATUREEXPIRE = "AuthFailure.SignatureExpire" AUTHFAILURE_SIGNATUREFAILURE = "AuthFailure.SignatureFailure" AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_DOWNLOADFAILED = "FailedOperation.DownloadFailed" FAILEDOPERATION_FEATUREALGOFAILED = "FailedOperation.FeatureAlgoFailed" FAILEDOPERATION_MULTIPLEFACESINIMAGE = "FailedOperation.MultipleFacesInImage" FAILEDOPERATION_NOFACEINIMAGE = "FailedOperation.NoFaceInImage" FAILEDOPERATION_PERSONDUPLICATED = "FailedOperation.PersonDuplicated" FAILEDOPERATION_PERSONNUMEXCEEDED = "FailedOperation.PersonNumExceeded" FAILEDOPERATION_QUALITYALGOFAILED = "FailedOperation.QualityAlgoFailed" FAILEDOPERATION_QUALITYTOOLOW = "FailedOperation.QualityTooLow" FAILEDOPERATION_UPLOADFAILED = "FailedOperation.UploadFailed" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INTERNALERROR_INTERNALOVERFLOW = "InternalError.InternalOverflow" INVALIDPARAMETER_INVALIDCATEGORYID = "InvalidParameter.InvalidCategoryId" INVALIDPARAMETER_INVALIDIMAGE = "InvalidParameter.InvalidImage" INVALIDPARAMETER_INVALIDNAME = "InvalidParameter.InvalidName" INVALIDPARAMETER_INVALIDPARAM = "InvalidParameter.InvalidParam" INVALIDPARAMETER_INVALIDURL = "InvalidParameter.InvalidURL" INVALIDPARAMETER_UNSUPPORTURL = "InvalidParameter.UnsupportURL" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) CreateCustomPersonWithContext ¶ added in v1.0.338
func (c *Client) CreateCustomPersonWithContext(ctx context.Context, request *CreateCustomPersonRequest) (response *CreateCustomPersonResponse, err error)
CreateCustomPerson 创建自定义人物。
输入人物名称,基本信息,分类信息与人脸图片,创建自定义人物
人脸图片可使用图片数据(base64编码的图片数据)或者图片URL(推荐使用COS以减少下载时间,其他地址也支持),原始图片优先,也即如果同时指定了图片数据和图片URL,接口将仅使用图片数据
可能返回的错误码:
AUTHFAILURE_INVALIDSECRETID = "AuthFailure.InvalidSecretId" AUTHFAILURE_SECRETIDNOTFOUND = "AuthFailure.SecretIdNotFound" AUTHFAILURE_SIGNATUREEXPIRE = "AuthFailure.SignatureExpire" AUTHFAILURE_SIGNATUREFAILURE = "AuthFailure.SignatureFailure" AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_DOWNLOADFAILED = "FailedOperation.DownloadFailed" FAILEDOPERATION_FEATUREALGOFAILED = "FailedOperation.FeatureAlgoFailed" FAILEDOPERATION_MULTIPLEFACESINIMAGE = "FailedOperation.MultipleFacesInImage" FAILEDOPERATION_NOFACEINIMAGE = "FailedOperation.NoFaceInImage" FAILEDOPERATION_PERSONDUPLICATED = "FailedOperation.PersonDuplicated" FAILEDOPERATION_PERSONNUMEXCEEDED = "FailedOperation.PersonNumExceeded" FAILEDOPERATION_QUALITYALGOFAILED = "FailedOperation.QualityAlgoFailed" FAILEDOPERATION_QUALITYTOOLOW = "FailedOperation.QualityTooLow" FAILEDOPERATION_UPLOADFAILED = "FailedOperation.UploadFailed" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INTERNALERROR_INTERNALOVERFLOW = "InternalError.InternalOverflow" INVALIDPARAMETER_INVALIDCATEGORYID = "InvalidParameter.InvalidCategoryId" INVALIDPARAMETER_INVALIDIMAGE = "InvalidParameter.InvalidImage" INVALIDPARAMETER_INVALIDNAME = "InvalidParameter.InvalidName" INVALIDPARAMETER_INVALIDPARAM = "InvalidParameter.InvalidParam" INVALIDPARAMETER_INVALIDURL = "InvalidParameter.InvalidURL" INVALIDPARAMETER_UNSUPPORTURL = "InvalidParameter.UnsupportURL" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) CreateDefaultCategories ¶ added in v1.0.338
func (c *Client) CreateDefaultCategories(request *CreateDefaultCategoriesRequest) (response *CreateDefaultCategoriesResponse, err error)
CreateDefaultCategories 创建默认自定义人物类型
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" INTERNALERROR = "InternalError" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) CreateDefaultCategoriesWithContext ¶ added in v1.0.338
func (c *Client) CreateDefaultCategoriesWithContext(ctx context.Context, request *CreateDefaultCategoriesRequest) (response *CreateDefaultCategoriesResponse, err error)
CreateDefaultCategories 创建默认自定义人物类型
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" INTERNALERROR = "InternalError" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) CreateTask ¶
func (c *Client) CreateTask(request *CreateTaskRequest) (response *CreateTaskResponse, err error)
CreateTask 创建智能标签任务。
请注意,本接口为异步接口,**返回TaskId只代表任务创建成功,不代表任务执行成功**。
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_AITEMPLATENOTEXIST = "FailedOperation.AiTemplateNotExist" FAILEDOPERATION_MEDIAEXPIRED = "FailedOperation.MediaExpired" FAILEDOPERATION_MEDIANOTREADY = "FailedOperation.MediaNotReady" FAILEDOPERATION_TASKALREADYEXIST = "FailedOperation.TaskAlreadyExist" FAILEDOPERATION_TASKNOTFINISHED = "FailedOperation.TaskNotFinished" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDMEDIAID = "InvalidParameter.InvalidMediaId" INVALIDPARAMETER_INVALIDMEDIALABEL = "InvalidParameter.InvalidMediaLabel" INVALIDPARAMETER_INVALIDMEDIALANG = "InvalidParameter.InvalidMediaLang" INVALIDPARAMETER_INVALIDMEDIANAME = "InvalidParameter.InvalidMediaName" INVALIDPARAMETER_INVALIDMEDIATYPE = "InvalidParameter.InvalidMediaType" INVALIDPARAMETER_INVALIDNAME = "InvalidParameter.InvalidName" INVALIDPARAMETER_INVALIDPARAM = "InvalidParameter.InvalidParam" INVALIDPARAMETER_INVALIDURL = "InvalidParameter.InvalidURL" INVALIDPARAMETER_NAMETOOLONG = "InvalidParameter.NameTooLong" INVALIDPARAMETER_PARAMTOOLONG = "InvalidParameter.ParamTooLong" INVALIDPARAMETER_URLNOTRESOLVED = "InvalidParameter.URLNotResolved" RESOURCENOTFOUND_MEDIANOTFOUND = "ResourceNotFound.MediaNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) CreateTaskWithContext ¶ added in v1.0.324
func (c *Client) CreateTaskWithContext(ctx context.Context, request *CreateTaskRequest) (response *CreateTaskResponse, err error)
CreateTask 创建智能标签任务。
请注意,本接口为异步接口,**返回TaskId只代表任务创建成功,不代表任务执行成功**。
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_AITEMPLATENOTEXIST = "FailedOperation.AiTemplateNotExist" FAILEDOPERATION_MEDIAEXPIRED = "FailedOperation.MediaExpired" FAILEDOPERATION_MEDIANOTREADY = "FailedOperation.MediaNotReady" FAILEDOPERATION_TASKALREADYEXIST = "FailedOperation.TaskAlreadyExist" FAILEDOPERATION_TASKNOTFINISHED = "FailedOperation.TaskNotFinished" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDMEDIAID = "InvalidParameter.InvalidMediaId" INVALIDPARAMETER_INVALIDMEDIALABEL = "InvalidParameter.InvalidMediaLabel" INVALIDPARAMETER_INVALIDMEDIALANG = "InvalidParameter.InvalidMediaLang" INVALIDPARAMETER_INVALIDMEDIANAME = "InvalidParameter.InvalidMediaName" INVALIDPARAMETER_INVALIDMEDIATYPE = "InvalidParameter.InvalidMediaType" INVALIDPARAMETER_INVALIDNAME = "InvalidParameter.InvalidName" INVALIDPARAMETER_INVALIDPARAM = "InvalidParameter.InvalidParam" INVALIDPARAMETER_INVALIDURL = "InvalidParameter.InvalidURL" INVALIDPARAMETER_NAMETOOLONG = "InvalidParameter.NameTooLong" INVALIDPARAMETER_PARAMTOOLONG = "InvalidParameter.ParamTooLong" INVALIDPARAMETER_URLNOTRESOLVED = "InvalidParameter.URLNotResolved" RESOURCENOTFOUND_MEDIANOTFOUND = "ResourceNotFound.MediaNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DeleteCustomCategory ¶ added in v1.0.338
func (c *Client) DeleteCustomCategory(request *DeleteCustomCategoryRequest) (response *DeleteCustomCategoryResponse, err error)
DeleteCustomCategory 删除自定义分类信息
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_CATEGORYREFERRED = "FailedOperation.CategoryReferred" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDCATEGORYID = "InvalidParameter.InvalidCategoryId" RESOURCENOTFOUND_CUSTOMCATEGORYNOTFOUND = "ResourceNotFound.CustomCategoryNotFound" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DeleteCustomCategoryWithContext ¶ added in v1.0.338
func (c *Client) DeleteCustomCategoryWithContext(ctx context.Context, request *DeleteCustomCategoryRequest) (response *DeleteCustomCategoryResponse, err error)
DeleteCustomCategory 删除自定义分类信息
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_CATEGORYREFERRED = "FailedOperation.CategoryReferred" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDCATEGORYID = "InvalidParameter.InvalidCategoryId" RESOURCENOTFOUND_CUSTOMCATEGORYNOTFOUND = "ResourceNotFound.CustomCategoryNotFound" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DeleteCustomPerson ¶ added in v1.0.338
func (c *Client) DeleteCustomPerson(request *DeleteCustomPersonRequest) (response *DeleteCustomPersonResponse, err error)
DeleteCustomPerson 删除自定义人物
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDPERSONID = "InvalidParameter.InvalidPersonId" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DeleteCustomPersonImage ¶ added in v1.0.338
func (c *Client) DeleteCustomPersonImage(request *DeleteCustomPersonImageRequest) (response *DeleteCustomPersonImageResponse, err error)
DeleteCustomPersonImage 删除自定义人脸数据
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_IMAGENUMEXCEEDED = "FailedOperation.ImageNumExceeded" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INTERNALERROR_INTERNALOVERFLOW = "InternalError.InternalOverflow" INVALIDPARAMETER_INVALIDIMAGEID = "InvalidParameter.InvalidImageId" INVALIDPARAMETER_INVALIDPERSONID = "InvalidParameter.InvalidPersonId" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DeleteCustomPersonImageWithContext ¶ added in v1.0.338
func (c *Client) DeleteCustomPersonImageWithContext(ctx context.Context, request *DeleteCustomPersonImageRequest) (response *DeleteCustomPersonImageResponse, err error)
DeleteCustomPersonImage 删除自定义人脸数据
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_IMAGENUMEXCEEDED = "FailedOperation.ImageNumExceeded" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INTERNALERROR_INTERNALOVERFLOW = "InternalError.InternalOverflow" INVALIDPARAMETER_INVALIDIMAGEID = "InvalidParameter.InvalidImageId" INVALIDPARAMETER_INVALIDPERSONID = "InvalidParameter.InvalidPersonId" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DeleteCustomPersonWithContext ¶ added in v1.0.338
func (c *Client) DeleteCustomPersonWithContext(ctx context.Context, request *DeleteCustomPersonRequest) (response *DeleteCustomPersonResponse, err error)
DeleteCustomPerson 删除自定义人物
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDPERSONID = "InvalidParameter.InvalidPersonId" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DeleteMedia ¶
func (c *Client) DeleteMedia(request *DeleteMediaRequest) (response *DeleteMediaResponse, err error)
DeleteMedia 将MediaId对应的媒资文件从系统中删除。
**请注意,本接口仅删除媒资文件,媒资文件对应的视频分析结果不会被删除**。如您需要删除结构化分析结果,请调用DeleteTask接口。
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_MEDIAALREADYEXIST = "FailedOperation.MediaAlreadyExist" FAILEDOPERATION_MEDIAINUSE = "FailedOperation.MediaInUse" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDMEDIAID = "InvalidParameter.InvalidMediaId" INVALIDPARAMETER_INVALIDMEDIASTATUS = "InvalidParameter.InvalidMediaStatus" RESOURCENOTFOUND_MEDIANOTFOUND = "ResourceNotFound.MediaNotFound" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct" UNSUPPORTEDOPERATION_MEDIANOTACCESSIBLE = "UnsupportedOperation.MediaNotAccessible"
func (*Client) DeleteMediaWithContext ¶ added in v1.0.324
func (c *Client) DeleteMediaWithContext(ctx context.Context, request *DeleteMediaRequest) (response *DeleteMediaResponse, err error)
DeleteMedia 将MediaId对应的媒资文件从系统中删除。
**请注意,本接口仅删除媒资文件,媒资文件对应的视频分析结果不会被删除**。如您需要删除结构化分析结果,请调用DeleteTask接口。
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_MEDIAALREADYEXIST = "FailedOperation.MediaAlreadyExist" FAILEDOPERATION_MEDIAINUSE = "FailedOperation.MediaInUse" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDMEDIAID = "InvalidParameter.InvalidMediaId" INVALIDPARAMETER_INVALIDMEDIASTATUS = "InvalidParameter.InvalidMediaStatus" RESOURCENOTFOUND_MEDIANOTFOUND = "ResourceNotFound.MediaNotFound" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct" UNSUPPORTEDOPERATION_MEDIANOTACCESSIBLE = "UnsupportedOperation.MediaNotAccessible"
func (*Client) DeleteTask ¶ added in v1.0.359
func (c *Client) DeleteTask(request *DeleteTaskRequest) (response *DeleteTaskResponse, err error)
DeleteTask 删除任务信息
请注意,本接口**不会**删除媒资文件
只有已完成(成功或者失败)的任务可以删除,**正在执行中的任务不支持删除**
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_TASKNOTFINISHED = "FailedOperation.TaskNotFinished" INVALIDPARAMETER_INVALIDTASKID = "InvalidParameter.InvalidTaskId" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" RESOURCENOTFOUND_TASKNOTFOUND = "ResourceNotFound.TaskNotFound" UNSUPPORTEDOPERATION_TASKNOTACCESSIBLE = "UnsupportedOperation.TaskNotAccessible"
func (*Client) DeleteTaskWithContext ¶ added in v1.0.359
func (c *Client) DeleteTaskWithContext(ctx context.Context, request *DeleteTaskRequest) (response *DeleteTaskResponse, err error)
DeleteTask 删除任务信息
请注意,本接口**不会**删除媒资文件
只有已完成(成功或者失败)的任务可以删除,**正在执行中的任务不支持删除**
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_TASKNOTFINISHED = "FailedOperation.TaskNotFinished" INVALIDPARAMETER_INVALIDTASKID = "InvalidParameter.InvalidTaskId" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" RESOURCENOTFOUND_TASKNOTFOUND = "ResourceNotFound.TaskNotFound" UNSUPPORTEDOPERATION_TASKNOTACCESSIBLE = "UnsupportedOperation.TaskNotAccessible"
func (*Client) DescribeCustomCategories ¶ added in v1.0.338
func (c *Client) DescribeCustomCategories(request *DescribeCustomCategoriesRequest) (response *DescribeCustomCategoriesResponse, err error)
DescribeCustomCategories 批量描述自定义人物分类信息
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DescribeCustomCategoriesWithContext ¶ added in v1.0.338
func (c *Client) DescribeCustomCategoriesWithContext(ctx context.Context, request *DescribeCustomCategoriesRequest) (response *DescribeCustomCategoriesResponse, err error)
DescribeCustomCategories 批量描述自定义人物分类信息
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DescribeCustomGroup ¶ added in v1.0.338
func (c *Client) DescribeCustomGroup(request *DescribeCustomGroupRequest) (response *DescribeCustomGroupResponse, err error)
DescribeCustomGroup 描述自定义人物库信息,当前库大小(库中有多少人脸),以及库中的存储桶
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_INNERERROR = "InternalError.InnerError" RESOURCENOTFOUND_CUSTOMGROUPNOTFOUND = "ResourceNotFound.CustomGroupNotFound" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DescribeCustomGroupWithContext ¶ added in v1.0.338
func (c *Client) DescribeCustomGroupWithContext(ctx context.Context, request *DescribeCustomGroupRequest) (response *DescribeCustomGroupResponse, err error)
DescribeCustomGroup 描述自定义人物库信息,当前库大小(库中有多少人脸),以及库中的存储桶
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_INNERERROR = "InternalError.InnerError" RESOURCENOTFOUND_CUSTOMGROUPNOTFOUND = "ResourceNotFound.CustomGroupNotFound" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DescribeCustomPersonDetail ¶ added in v1.0.338
func (c *Client) DescribeCustomPersonDetail(request *DescribeCustomPersonDetailRequest) (response *DescribeCustomPersonDetailResponse, err error)
DescribeCustomPersonDetail 描述自定义人物详细信息,包括人物信息与人物信息
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDPERSONID = "InvalidParameter.InvalidPersonId" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DescribeCustomPersonDetailWithContext ¶ added in v1.0.338
func (c *Client) DescribeCustomPersonDetailWithContext(ctx context.Context, request *DescribeCustomPersonDetailRequest) (response *DescribeCustomPersonDetailResponse, err error)
DescribeCustomPersonDetail 描述自定义人物详细信息,包括人物信息与人物信息
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDPERSONID = "InvalidParameter.InvalidPersonId" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DescribeCustomPersons ¶ added in v1.0.338
func (c *Client) DescribeCustomPersons(request *DescribeCustomPersonsRequest) (response *DescribeCustomPersonsResponse, err error)
DescribeCustomPersons 批量描述自定义人物
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDCATEGORYID = "InvalidParameter.InvalidCategoryId" INVALIDPARAMETER_INVALIDL1CATEGORY = "InvalidParameter.InvalidL1Category" INVALIDPARAMETER_INVALIDNAME = "InvalidParameter.InvalidName" INVALIDPARAMETER_INVALIDPAGENUMBER = "InvalidParameter.InvalidPageNumber" INVALIDPARAMETER_INVALIDPAGESIZE = "InvalidParameter.InvalidPageSize" INVALIDPARAMETER_INVALIDPARAM = "InvalidParameter.InvalidParam" INVALIDPARAMETER_INVALIDPERSONID = "InvalidParameter.InvalidPersonId" INVALIDPARAMETER_INVALIDSORTBY = "InvalidParameter.InvalidSortBy" RESOURCENOTFOUND_CUSTOMCATEGORYNOTFOUND = "ResourceNotFound.CustomCategoryNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DescribeCustomPersonsWithContext ¶ added in v1.0.338
func (c *Client) DescribeCustomPersonsWithContext(ctx context.Context, request *DescribeCustomPersonsRequest) (response *DescribeCustomPersonsResponse, err error)
DescribeCustomPersons 批量描述自定义人物
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDCATEGORYID = "InvalidParameter.InvalidCategoryId" INVALIDPARAMETER_INVALIDL1CATEGORY = "InvalidParameter.InvalidL1Category" INVALIDPARAMETER_INVALIDNAME = "InvalidParameter.InvalidName" INVALIDPARAMETER_INVALIDPAGENUMBER = "InvalidParameter.InvalidPageNumber" INVALIDPARAMETER_INVALIDPAGESIZE = "InvalidParameter.InvalidPageSize" INVALIDPARAMETER_INVALIDPARAM = "InvalidParameter.InvalidParam" INVALIDPARAMETER_INVALIDPERSONID = "InvalidParameter.InvalidPersonId" INVALIDPARAMETER_INVALIDSORTBY = "InvalidParameter.InvalidSortBy" RESOURCENOTFOUND_CUSTOMCATEGORYNOTFOUND = "ResourceNotFound.CustomCategoryNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DescribeMedia ¶
func (c *Client) DescribeMedia(request *DescribeMediaRequest) (response *DescribeMediaResponse, err error)
DescribeMedia 描述媒资文件信息,包括媒资状态,分辨率,帧率等。
如果媒资文件未完成导入,本接口将仅输出媒资文件的状态信息;导入完成后,本接口还将输出媒资文件的其他元信息。
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_DOWNLOADFAILED = "FailedOperation.DownloadFailed" FAILEDOPERATION_MD5MISMATCH = "FailedOperation.MD5Mismatch" FAILEDOPERATION_MEDIAEXPIRED = "FailedOperation.MediaExpired" FAILEDOPERATION_MEDIANOTREADY = "FailedOperation.MediaNotReady" FAILEDOPERATION_TRANSCODEFAILED = "FailedOperation.TranscodeFailed" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDMEDIAID = "InvalidParameter.InvalidMediaId" RESOURCENOTFOUND_MEDIANOTFOUND = "ResourceNotFound.MediaNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DescribeMediaWithContext ¶ added in v1.0.324
func (c *Client) DescribeMediaWithContext(ctx context.Context, request *DescribeMediaRequest) (response *DescribeMediaResponse, err error)
DescribeMedia 描述媒资文件信息,包括媒资状态,分辨率,帧率等。
如果媒资文件未完成导入,本接口将仅输出媒资文件的状态信息;导入完成后,本接口还将输出媒资文件的其他元信息。
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_DOWNLOADFAILED = "FailedOperation.DownloadFailed" FAILEDOPERATION_MD5MISMATCH = "FailedOperation.MD5Mismatch" FAILEDOPERATION_MEDIAEXPIRED = "FailedOperation.MediaExpired" FAILEDOPERATION_MEDIANOTREADY = "FailedOperation.MediaNotReady" FAILEDOPERATION_TRANSCODEFAILED = "FailedOperation.TranscodeFailed" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDMEDIAID = "InvalidParameter.InvalidMediaId" RESOURCENOTFOUND_MEDIANOTFOUND = "ResourceNotFound.MediaNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DescribeMedias ¶
func (c *Client) DescribeMedias(request *DescribeMediasRequest) (response *DescribeMediasResponse, err error)
DescribeMedias 依照输入条件,描述命中的媒资文件信息,包括媒资状态,分辨率,帧率等。
请注意,本接口最多支持同时描述**50**个媒资文件
如果媒资文件未完成导入,本接口将仅输出媒资文件的状态信息;导入完成后,本接口还将输出媒资文件的其他元信息。
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_MEDIAALREADYEXIST = "FailedOperation.MediaAlreadyExist" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDMD5 = "InvalidParameter.InvalidMD5" INVALIDPARAMETER_INVALIDMEDIAID = "InvalidParameter.InvalidMediaId" INVALIDPARAMETER_INVALIDMEDIANAME = "InvalidParameter.InvalidMediaName" INVALIDPARAMETER_INVALIDMEDIASTATUS = "InvalidParameter.InvalidMediaStatus" INVALIDPARAMETER_INVALIDMEDIATYPE = "InvalidParameter.InvalidMediaType" INVALIDPARAMETER_INVALIDNAME = "InvalidParameter.InvalidName" INVALIDPARAMETER_INVALIDPAGENUMBER = "InvalidParameter.InvalidPageNumber" INVALIDPARAMETER_INVALIDPAGESIZE = "InvalidParameter.InvalidPageSize" INVALIDPARAMETER_INVALIDSORTBY = "InvalidParameter.InvalidSortBy" INVALIDPARAMETER_INVALIDSORTORDER = "InvalidParameter.InvalidSortOrder" INVALIDPARAMETER_INVALIDURL = "InvalidParameter.InvalidURL" INVALIDPARAMETER_INVALIDUIN = "InvalidParameter.InvalidUin" INVALIDPARAMETER_NAMETOOLONG = "InvalidParameter.NameTooLong" INVALIDPARAMETER_UNSUPPORTURL = "InvalidParameter.UnsupportURL" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DescribeMediasWithContext ¶ added in v1.0.324
func (c *Client) DescribeMediasWithContext(ctx context.Context, request *DescribeMediasRequest) (response *DescribeMediasResponse, err error)
DescribeMedias 依照输入条件,描述命中的媒资文件信息,包括媒资状态,分辨率,帧率等。
请注意,本接口最多支持同时描述**50**个媒资文件
如果媒资文件未完成导入,本接口将仅输出媒资文件的状态信息;导入完成后,本接口还将输出媒资文件的其他元信息。
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_MEDIAALREADYEXIST = "FailedOperation.MediaAlreadyExist" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDMD5 = "InvalidParameter.InvalidMD5" INVALIDPARAMETER_INVALIDMEDIAID = "InvalidParameter.InvalidMediaId" INVALIDPARAMETER_INVALIDMEDIANAME = "InvalidParameter.InvalidMediaName" INVALIDPARAMETER_INVALIDMEDIASTATUS = "InvalidParameter.InvalidMediaStatus" INVALIDPARAMETER_INVALIDMEDIATYPE = "InvalidParameter.InvalidMediaType" INVALIDPARAMETER_INVALIDNAME = "InvalidParameter.InvalidName" INVALIDPARAMETER_INVALIDPAGENUMBER = "InvalidParameter.InvalidPageNumber" INVALIDPARAMETER_INVALIDPAGESIZE = "InvalidParameter.InvalidPageSize" INVALIDPARAMETER_INVALIDSORTBY = "InvalidParameter.InvalidSortBy" INVALIDPARAMETER_INVALIDSORTORDER = "InvalidParameter.InvalidSortOrder" INVALIDPARAMETER_INVALIDURL = "InvalidParameter.InvalidURL" INVALIDPARAMETER_INVALIDUIN = "InvalidParameter.InvalidUin" INVALIDPARAMETER_NAMETOOLONG = "InvalidParameter.NameTooLong" INVALIDPARAMETER_UNSUPPORTURL = "InvalidParameter.UnsupportURL" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DescribeTask ¶
func (c *Client) DescribeTask(request *DescribeTaskRequest) (response *DescribeTaskResponse, err error)
DescribeTask 描述智能标签任务进度。
请注意,**此接口仅返回任务执行状态信息,不返回任务执行结果**
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDTASKID = "InvalidParameter.InvalidTaskId" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" RESOURCENOTFOUND_TASKNOTFOUND = "ResourceNotFound.TaskNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DescribeTaskDetail ¶
func (c *Client) DescribeTaskDetail(request *DescribeTaskDetailRequest) (response *DescribeTaskDetailResponse, err error)
DescribeTaskDetail 描述任务信息,如果任务成功完成,还将返回任务结果
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_TASKNOTFINISHED = "FailedOperation.TaskNotFinished" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDTASKID = "InvalidParameter.InvalidTaskId" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" RESOURCENOTFOUND_TASKNOTFOUND = "ResourceNotFound.TaskNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DescribeTaskDetailWithContext ¶ added in v1.0.324
func (c *Client) DescribeTaskDetailWithContext(ctx context.Context, request *DescribeTaskDetailRequest) (response *DescribeTaskDetailResponse, err error)
DescribeTaskDetail 描述任务信息,如果任务成功完成,还将返回任务结果
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_TASKNOTFINISHED = "FailedOperation.TaskNotFinished" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDTASKID = "InvalidParameter.InvalidTaskId" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" RESOURCENOTFOUND_TASKNOTFOUND = "ResourceNotFound.TaskNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DescribeTaskWithContext ¶ added in v1.0.324
func (c *Client) DescribeTaskWithContext(ctx context.Context, request *DescribeTaskRequest) (response *DescribeTaskResponse, err error)
DescribeTask 描述智能标签任务进度。
请注意,**此接口仅返回任务执行状态信息,不返回任务执行结果**
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDTASKID = "InvalidParameter.InvalidTaskId" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" RESOURCENOTFOUND_TASKNOTFOUND = "ResourceNotFound.TaskNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DescribeTasks ¶
func (c *Client) DescribeTasks(request *DescribeTasksRequest) (response *DescribeTasksResponse, err error)
DescribeTasks 依照输入条件,描述命中的任务信息,包括任务创建时间,处理时间信息等。
请注意,本接口最多支持同时描述**50**个任务信息
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_GETTASKLISTFAILED = "FailedOperation.GetTaskListFailed" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDPAGENUMBER = "InvalidParameter.InvalidPageNumber" INVALIDPARAMETER_INVALIDPAGESIZE = "InvalidParameter.InvalidPageSize" INVALIDPARAMETER_INVALIDPARAM = "InvalidParameter.InvalidParam" INVALIDPARAMETER_INVALIDSORTBY = "InvalidParameter.InvalidSortBy" INVALIDPARAMETER_INVALIDTASKID = "InvalidParameter.InvalidTaskId" INVALIDPARAMETER_INVALIDTASKNAME = "InvalidParameter.InvalidTaskName" INVALIDPARAMETER_INVALIDTASKSTATUS = "InvalidParameter.InvalidTaskStatus" INVALIDPARAMETER_INVALIDUIN = "InvalidParameter.InvalidUin" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) DescribeTasksWithContext ¶ added in v1.0.324
func (c *Client) DescribeTasksWithContext(ctx context.Context, request *DescribeTasksRequest) (response *DescribeTasksResponse, err error)
DescribeTasks 依照输入条件,描述命中的任务信息,包括任务创建时间,处理时间信息等。
请注意,本接口最多支持同时描述**50**个任务信息
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_GETTASKLISTFAILED = "FailedOperation.GetTaskListFailed" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDPAGENUMBER = "InvalidParameter.InvalidPageNumber" INVALIDPARAMETER_INVALIDPAGESIZE = "InvalidParameter.InvalidPageSize" INVALIDPARAMETER_INVALIDPARAM = "InvalidParameter.InvalidParam" INVALIDPARAMETER_INVALIDSORTBY = "InvalidParameter.InvalidSortBy" INVALIDPARAMETER_INVALIDTASKID = "InvalidParameter.InvalidTaskId" INVALIDPARAMETER_INVALIDTASKNAME = "InvalidParameter.InvalidTaskName" INVALIDPARAMETER_INVALIDTASKSTATUS = "InvalidParameter.InvalidTaskStatus" INVALIDPARAMETER_INVALIDUIN = "InvalidParameter.InvalidUin" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) ImportMedia ¶
func (c *Client) ImportMedia(request *ImportMediaRequest) (response *ImportMediaResponse, err error)
ImportMedia 将URL指向的媒资视频文件导入系统之中。
**请注意,本接口为异步接口**。接口返回MediaId仅代表导入视频任务发起,不代表任务完成,您可调用读接口(DescribeMedia/DescribeMedias)接口查询MediaId
URL字段推荐您使用COS地址,其形式为`https://${Bucket}-${AppId}.cos.${Region}.myqcloud.com/${ObjectKey}`,其中`${Bucket}`为您的COS桶名称,Region为COS桶所在[可用区](https://cloud.tencent.com/document/product/213/6091),`${ObjectKey}`为指向存储在COS桶内的待分析的视频的[ObjectKey](https://cloud.tencent.com/document/product/436/13324)
另外,目前产品也支持使用外部URL地址,但是当传入URL为非COS地址时,需要您指定额外的WriteBackCosPath以供产品回写结果数据。
分析完成后,本产品将在您的`${Bucket}`桶内创建名为`${ObjectKey}_${task-create-time}`的目录(`task-create-time`形式为1970-01-01T08:08:08)并将分析结果将回传回该目录,也即,结构化分析结果(包括图片,JSON等数据)将会写回`https://${Bucket}-${AppId}.cos.${Region}.myqcloud.com/${ObjectKey}_${task-create-time}`目录
可能返回的错误码:
AUTHFAILURE_INVALIDSECRETID = "AuthFailure.InvalidSecretId" AUTHFAILURE_MFAFAILURE = "AuthFailure.MFAFailure" AUTHFAILURE_SECRETIDNOTFOUND = "AuthFailure.SecretIdNotFound" AUTHFAILURE_SIGNATUREEXPIRE = "AuthFailure.SignatureExpire" AUTHFAILURE_SIGNATUREFAILURE = "AuthFailure.SignatureFailure" AUTHFAILURE_TASKFINISHED = "AuthFailure.TaskFinished" AUTHFAILURE_TOKENFAILURE = "AuthFailure.TokenFailure" AUTHFAILURE_USERACTIVATED = "AuthFailure.UserActivated" AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_AITEMPLATENOTEXIST = "FailedOperation.AiTemplateNotExist" FAILEDOPERATION_CATEGORYEXIST = "FailedOperation.CategoryExist" FAILEDOPERATION_CATEGORYLEVELCHANGED = "FailedOperation.CategoryLevelChanged" FAILEDOPERATION_CATEGORYREFERRED = "FailedOperation.CategoryReferred" FAILEDOPERATION_CUSTOMGROUPALREADYEXIST = "FailedOperation.CustomGroupAlreadyExist" FAILEDOPERATION_DBCONNECTIONERROR = "FailedOperation.DBConnectionError" FAILEDOPERATION_DOWNLOADFAILED = "FailedOperation.DownloadFailed" FAILEDOPERATION_FEATUREALGOFAILED = "FailedOperation.FeatureAlgoFailed" FAILEDOPERATION_GETCAMTOKENFAILED = "FailedOperation.GetCAMTokenFailed" FAILEDOPERATION_GETTASKLISTFAILED = "FailedOperation.GetTaskListFailed" FAILEDOPERATION_GETVIDEOMETADATAFAILED = "FailedOperation.GetVideoMetadataFailed" FAILEDOPERATION_IMAGENUMEXCEEDED = "FailedOperation.ImageNumExceeded" FAILEDOPERATION_MD5MISMATCH = "FailedOperation.MD5Mismatch" FAILEDOPERATION_MEDIAALREADYEXIST = "FailedOperation.MediaAlreadyExist" FAILEDOPERATION_MEDIAEXPIRED = "FailedOperation.MediaExpired" FAILEDOPERATION_MEDIAINUSE = "FailedOperation.MediaInUse" FAILEDOPERATION_MEDIANOTREADY = "FailedOperation.MediaNotReady" FAILEDOPERATION_MULTIPLEFACESINIMAGE = "FailedOperation.MultipleFacesInImage" FAILEDOPERATION_NOFACEINIMAGE = "FailedOperation.NoFaceInImage" FAILEDOPERATION_OPENCHARGEFAILED = "FailedOperation.OpenChargeFailed" FAILEDOPERATION_PERSONDUPLICATED = "FailedOperation.PersonDuplicated" FAILEDOPERATION_PERSONNOTMATCHED = "FailedOperation.PersonNotMatched" FAILEDOPERATION_PERSONNUMEXCEEDED = "FailedOperation.PersonNumExceeded" FAILEDOPERATION_QUALITYALGOFAILED = "FailedOperation.QualityAlgoFailed" FAILEDOPERATION_QUALITYTOOLOW = "FailedOperation.QualityTooLow" FAILEDOPERATION_SNAPSHOTDESERIALIZEFAILED = "FailedOperation.SnapshotDeserializeFailed" FAILEDOPERATION_STOPFLOWFAILED = "FailedOperation.StopFlowFailed" FAILEDOPERATION_TASKALREADYEXIST = "FailedOperation.TaskAlreadyExist" FAILEDOPERATION_TASKNOTFINISHED = "FailedOperation.TaskNotFinished" FAILEDOPERATION_TRANSCODEFAILED = "FailedOperation.TranscodeFailed" FAILEDOPERATION_UPLOADFAILED = "FailedOperation.UploadFailed" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INTERNALERROR_INTERNALOVERFLOW = "InternalError.InternalOverflow" INVALIDPARAMETER_INVALIDCATEGORYID = "InvalidParameter.InvalidCategoryId" INVALIDPARAMETER_INVALIDFILEPATH = "InvalidParameter.InvalidFilePath" INVALIDPARAMETER_INVALIDIMAGE = "InvalidParameter.InvalidImage" INVALIDPARAMETER_INVALIDIMAGEID = "InvalidParameter.InvalidImageId" INVALIDPARAMETER_INVALIDL1CATEGORY = "InvalidParameter.InvalidL1Category" INVALIDPARAMETER_INVALIDL2CATEGORY = "InvalidParameter.InvalidL2Category" INVALIDPARAMETER_INVALIDMD5 = "InvalidParameter.InvalidMD5" INVALIDPARAMETER_INVALIDMEDIAID = "InvalidParameter.InvalidMediaId" INVALIDPARAMETER_INVALIDMEDIALABEL = "InvalidParameter.InvalidMediaLabel" INVALIDPARAMETER_INVALIDMEDIALANG = "InvalidParameter.InvalidMediaLang" INVALIDPARAMETER_INVALIDMEDIANAME = "InvalidParameter.InvalidMediaName" INVALIDPARAMETER_INVALIDMEDIAPREKNOWNINFO = "InvalidParameter.InvalidMediaPreknownInfo" INVALIDPARAMETER_INVALIDMEDIASTATUS = "InvalidParameter.InvalidMediaStatus" INVALIDPARAMETER_INVALIDMEDIATYPE = "InvalidParameter.InvalidMediaType" INVALIDPARAMETER_INVALIDNAME = "InvalidParameter.InvalidName" INVALIDPARAMETER_INVALIDPAGENUMBER = "InvalidParameter.InvalidPageNumber" INVALIDPARAMETER_INVALIDPAGESIZE = "InvalidParameter.InvalidPageSize" INVALIDPARAMETER_INVALIDPARAM = "InvalidParameter.InvalidParam" INVALIDPARAMETER_INVALIDPERSONID = "InvalidParameter.InvalidPersonId" INVALIDPARAMETER_INVALIDSORTBY = "InvalidParameter.InvalidSortBy" INVALIDPARAMETER_INVALIDSORTORDER = "InvalidParameter.InvalidSortOrder" INVALIDPARAMETER_INVALIDTASKID = "InvalidParameter.InvalidTaskId" INVALIDPARAMETER_INVALIDTASKNAME = "InvalidParameter.InvalidTaskName" INVALIDPARAMETER_INVALIDTASKSTATUS = "InvalidParameter.InvalidTaskStatus" INVALIDPARAMETER_INVALIDURL = "InvalidParameter.InvalidURL" INVALIDPARAMETER_INVALIDUIN = "InvalidParameter.InvalidUin" INVALIDPARAMETER_NAMETOOLONG = "InvalidParameter.NameTooLong" INVALIDPARAMETER_PARAMTOOLONG = "InvalidParameter.ParamTooLong" INVALIDPARAMETER_URLNOTRESOLVED = "InvalidParameter.URLNotResolved" INVALIDPARAMETER_UNSUPPORTURL = "InvalidParameter.UnsupportURL" LIMITEXCEEDED_USAGELIMITEXCEEDED = "LimitExceeded.UsageLimitExceeded" REQUESTLIMITEXCEEDED_BATCHIMPORTOVERFLOW = "RequestLimitExceeded.BatchImportOverflow" REQUESTLIMITEXCEEDED_CONCURRENCYOVERFLOW = "RequestLimitExceeded.ConcurrencyOverflow" RESOURCENOTFOUND_CUSTOMCATEGORYNOTFOUND = "ResourceNotFound.CustomCategoryNotFound" RESOURCENOTFOUND_CUSTOMGROUPNOTFOUND = "ResourceNotFound.CustomGroupNotFound" RESOURCENOTFOUND_MEDIANOTFOUND = "ResourceNotFound.MediaNotFound" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" RESOURCENOTFOUND_TASKNOTFOUND = "ResourceNotFound.TaskNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct" UNSUPPORTEDOPERATION_MEDIANOTACCESSIBLE = "UnsupportedOperation.MediaNotAccessible" UNSUPPORTEDOPERATION_TASKNOTACCESSIBLE = "UnsupportedOperation.TaskNotAccessible"
func (*Client) ImportMediaWithContext ¶ added in v1.0.324
func (c *Client) ImportMediaWithContext(ctx context.Context, request *ImportMediaRequest) (response *ImportMediaResponse, err error)
ImportMedia 将URL指向的媒资视频文件导入系统之中。
**请注意,本接口为异步接口**。接口返回MediaId仅代表导入视频任务发起,不代表任务完成,您可调用读接口(DescribeMedia/DescribeMedias)接口查询MediaId
URL字段推荐您使用COS地址,其形式为`https://${Bucket}-${AppId}.cos.${Region}.myqcloud.com/${ObjectKey}`,其中`${Bucket}`为您的COS桶名称,Region为COS桶所在[可用区](https://cloud.tencent.com/document/product/213/6091),`${ObjectKey}`为指向存储在COS桶内的待分析的视频的[ObjectKey](https://cloud.tencent.com/document/product/436/13324)
另外,目前产品也支持使用外部URL地址,但是当传入URL为非COS地址时,需要您指定额外的WriteBackCosPath以供产品回写结果数据。
分析完成后,本产品将在您的`${Bucket}`桶内创建名为`${ObjectKey}_${task-create-time}`的目录(`task-create-time`形式为1970-01-01T08:08:08)并将分析结果将回传回该目录,也即,结构化分析结果(包括图片,JSON等数据)将会写回`https://${Bucket}-${AppId}.cos.${Region}.myqcloud.com/${ObjectKey}_${task-create-time}`目录
可能返回的错误码:
AUTHFAILURE_INVALIDSECRETID = "AuthFailure.InvalidSecretId" AUTHFAILURE_MFAFAILURE = "AuthFailure.MFAFailure" AUTHFAILURE_SECRETIDNOTFOUND = "AuthFailure.SecretIdNotFound" AUTHFAILURE_SIGNATUREEXPIRE = "AuthFailure.SignatureExpire" AUTHFAILURE_SIGNATUREFAILURE = "AuthFailure.SignatureFailure" AUTHFAILURE_TASKFINISHED = "AuthFailure.TaskFinished" AUTHFAILURE_TOKENFAILURE = "AuthFailure.TokenFailure" AUTHFAILURE_USERACTIVATED = "AuthFailure.UserActivated" AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_AITEMPLATENOTEXIST = "FailedOperation.AiTemplateNotExist" FAILEDOPERATION_CATEGORYEXIST = "FailedOperation.CategoryExist" FAILEDOPERATION_CATEGORYLEVELCHANGED = "FailedOperation.CategoryLevelChanged" FAILEDOPERATION_CATEGORYREFERRED = "FailedOperation.CategoryReferred" FAILEDOPERATION_CUSTOMGROUPALREADYEXIST = "FailedOperation.CustomGroupAlreadyExist" FAILEDOPERATION_DBCONNECTIONERROR = "FailedOperation.DBConnectionError" FAILEDOPERATION_DOWNLOADFAILED = "FailedOperation.DownloadFailed" FAILEDOPERATION_FEATUREALGOFAILED = "FailedOperation.FeatureAlgoFailed" FAILEDOPERATION_GETCAMTOKENFAILED = "FailedOperation.GetCAMTokenFailed" FAILEDOPERATION_GETTASKLISTFAILED = "FailedOperation.GetTaskListFailed" FAILEDOPERATION_GETVIDEOMETADATAFAILED = "FailedOperation.GetVideoMetadataFailed" FAILEDOPERATION_IMAGENUMEXCEEDED = "FailedOperation.ImageNumExceeded" FAILEDOPERATION_MD5MISMATCH = "FailedOperation.MD5Mismatch" FAILEDOPERATION_MEDIAALREADYEXIST = "FailedOperation.MediaAlreadyExist" FAILEDOPERATION_MEDIAEXPIRED = "FailedOperation.MediaExpired" FAILEDOPERATION_MEDIAINUSE = "FailedOperation.MediaInUse" FAILEDOPERATION_MEDIANOTREADY = "FailedOperation.MediaNotReady" FAILEDOPERATION_MULTIPLEFACESINIMAGE = "FailedOperation.MultipleFacesInImage" FAILEDOPERATION_NOFACEINIMAGE = "FailedOperation.NoFaceInImage" FAILEDOPERATION_OPENCHARGEFAILED = "FailedOperation.OpenChargeFailed" FAILEDOPERATION_PERSONDUPLICATED = "FailedOperation.PersonDuplicated" FAILEDOPERATION_PERSONNOTMATCHED = "FailedOperation.PersonNotMatched" FAILEDOPERATION_PERSONNUMEXCEEDED = "FailedOperation.PersonNumExceeded" FAILEDOPERATION_QUALITYALGOFAILED = "FailedOperation.QualityAlgoFailed" FAILEDOPERATION_QUALITYTOOLOW = "FailedOperation.QualityTooLow" FAILEDOPERATION_SNAPSHOTDESERIALIZEFAILED = "FailedOperation.SnapshotDeserializeFailed" FAILEDOPERATION_STOPFLOWFAILED = "FailedOperation.StopFlowFailed" FAILEDOPERATION_TASKALREADYEXIST = "FailedOperation.TaskAlreadyExist" FAILEDOPERATION_TASKNOTFINISHED = "FailedOperation.TaskNotFinished" FAILEDOPERATION_TRANSCODEFAILED = "FailedOperation.TranscodeFailed" FAILEDOPERATION_UPLOADFAILED = "FailedOperation.UploadFailed" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INTERNALERROR_INTERNALOVERFLOW = "InternalError.InternalOverflow" INVALIDPARAMETER_INVALIDCATEGORYID = "InvalidParameter.InvalidCategoryId" INVALIDPARAMETER_INVALIDFILEPATH = "InvalidParameter.InvalidFilePath" INVALIDPARAMETER_INVALIDIMAGE = "InvalidParameter.InvalidImage" INVALIDPARAMETER_INVALIDIMAGEID = "InvalidParameter.InvalidImageId" INVALIDPARAMETER_INVALIDL1CATEGORY = "InvalidParameter.InvalidL1Category" INVALIDPARAMETER_INVALIDL2CATEGORY = "InvalidParameter.InvalidL2Category" INVALIDPARAMETER_INVALIDMD5 = "InvalidParameter.InvalidMD5" INVALIDPARAMETER_INVALIDMEDIAID = "InvalidParameter.InvalidMediaId" INVALIDPARAMETER_INVALIDMEDIALABEL = "InvalidParameter.InvalidMediaLabel" INVALIDPARAMETER_INVALIDMEDIALANG = "InvalidParameter.InvalidMediaLang" INVALIDPARAMETER_INVALIDMEDIANAME = "InvalidParameter.InvalidMediaName" INVALIDPARAMETER_INVALIDMEDIAPREKNOWNINFO = "InvalidParameter.InvalidMediaPreknownInfo" INVALIDPARAMETER_INVALIDMEDIASTATUS = "InvalidParameter.InvalidMediaStatus" INVALIDPARAMETER_INVALIDMEDIATYPE = "InvalidParameter.InvalidMediaType" INVALIDPARAMETER_INVALIDNAME = "InvalidParameter.InvalidName" INVALIDPARAMETER_INVALIDPAGENUMBER = "InvalidParameter.InvalidPageNumber" INVALIDPARAMETER_INVALIDPAGESIZE = "InvalidParameter.InvalidPageSize" INVALIDPARAMETER_INVALIDPARAM = "InvalidParameter.InvalidParam" INVALIDPARAMETER_INVALIDPERSONID = "InvalidParameter.InvalidPersonId" INVALIDPARAMETER_INVALIDSORTBY = "InvalidParameter.InvalidSortBy" INVALIDPARAMETER_INVALIDSORTORDER = "InvalidParameter.InvalidSortOrder" INVALIDPARAMETER_INVALIDTASKID = "InvalidParameter.InvalidTaskId" INVALIDPARAMETER_INVALIDTASKNAME = "InvalidParameter.InvalidTaskName" INVALIDPARAMETER_INVALIDTASKSTATUS = "InvalidParameter.InvalidTaskStatus" INVALIDPARAMETER_INVALIDURL = "InvalidParameter.InvalidURL" INVALIDPARAMETER_INVALIDUIN = "InvalidParameter.InvalidUin" INVALIDPARAMETER_NAMETOOLONG = "InvalidParameter.NameTooLong" INVALIDPARAMETER_PARAMTOOLONG = "InvalidParameter.ParamTooLong" INVALIDPARAMETER_URLNOTRESOLVED = "InvalidParameter.URLNotResolved" INVALIDPARAMETER_UNSUPPORTURL = "InvalidParameter.UnsupportURL" LIMITEXCEEDED_USAGELIMITEXCEEDED = "LimitExceeded.UsageLimitExceeded" REQUESTLIMITEXCEEDED_BATCHIMPORTOVERFLOW = "RequestLimitExceeded.BatchImportOverflow" REQUESTLIMITEXCEEDED_CONCURRENCYOVERFLOW = "RequestLimitExceeded.ConcurrencyOverflow" RESOURCENOTFOUND_CUSTOMCATEGORYNOTFOUND = "ResourceNotFound.CustomCategoryNotFound" RESOURCENOTFOUND_CUSTOMGROUPNOTFOUND = "ResourceNotFound.CustomGroupNotFound" RESOURCENOTFOUND_MEDIANOTFOUND = "ResourceNotFound.MediaNotFound" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" RESOURCENOTFOUND_TASKNOTFOUND = "ResourceNotFound.TaskNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct" UNSUPPORTEDOPERATION_MEDIANOTACCESSIBLE = "UnsupportedOperation.MediaNotAccessible" UNSUPPORTEDOPERATION_TASKNOTACCESSIBLE = "UnsupportedOperation.TaskNotAccessible"
func (*Client) ModifyCallback ¶ added in v1.0.359
func (c *Client) ModifyCallback(request *ModifyCallbackRequest) (response *ModifyCallbackResponse, err error)
ModifyCallback 用户设置对应事件的回调地址
### 回调事件消息通知协议
#### 网络协议
- 回调接口协议目前仅支持http/https协议;
- 请求:HTTP POST 请求,包体内容为 JSON,每一种消息的具体包体内容参见后文。
- 应答:HTTP STATUS CODE = 200,服务端忽略应答包具体内容,为了协议友好,建议客户应答内容携带 JSON: `{"code":0}`
#### 通知可靠性
事件通知服务具备重试能力,事件通知失败后会总计重试3次;
为了避免重试对您的服务器以及网络带宽造成冲击,请保持正常回包。触发重试条件如下:
- 长时间(5 秒)未回包应答。
- 应答 HTTP STATUS 不为200。
#### 回调接口协议
##### 分析任务完成消息回调
| 参数名称 | 必选 | 类型 | 描述 |
|---------|---------|---------|---------|
| EventType | 是 | int | 回调时间类型,1-任务分析完成,2-媒资导入完成 |
| TaskId | 是 | String | 任务ID |
| TaskStatus | 是 | [TaskStatus](/document/product/1509/65063#TaskInfo) | 任务执行状态 |
| FailedReason | 是 | String | 若任务失败,该字段为失败原因 |
##### 导入媒资完成消息回调
| 参数名称 | 必选 | 类型 | 描述 |
|---------|---------|---------|---------|
| EventType | 是 | int | 回调时间类型,1-任务分析完成,2-媒资导入完成 |
| MediaId | 是 | String | 媒资ID |
| MediaStatus | 是 | [MediaStatus](/document/product/1509/65063#MediaInfo) | 媒资导入状态|
| FailedReason | 是 | String | 若任务失败,该字段为失败原因 |
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" INTERNALERROR = "InternalError" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDPARAM = "InvalidParameter.InvalidParam" INVALIDPARAMETER_INVALIDURL = "InvalidParameter.InvalidURL" INVALIDPARAMETER_NAMETOOLONG = "InvalidParameter.NameTooLong" INVALIDPARAMETER_PARAMTOOLONG = "InvalidParameter.ParamTooLong" INVALIDPARAMETER_URLNOTRESOLVED = "InvalidParameter.URLNotResolved" INVALIDPARAMETER_UNSUPPORTURL = "InvalidParameter.UnsupportURL" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) ModifyCallbackWithContext ¶ added in v1.0.359
func (c *Client) ModifyCallbackWithContext(ctx context.Context, request *ModifyCallbackRequest) (response *ModifyCallbackResponse, err error)
ModifyCallback 用户设置对应事件的回调地址
### 回调事件消息通知协议
#### 网络协议
- 回调接口协议目前仅支持http/https协议;
- 请求:HTTP POST 请求,包体内容为 JSON,每一种消息的具体包体内容参见后文。
- 应答:HTTP STATUS CODE = 200,服务端忽略应答包具体内容,为了协议友好,建议客户应答内容携带 JSON: `{"code":0}`
#### 通知可靠性
事件通知服务具备重试能力,事件通知失败后会总计重试3次;
为了避免重试对您的服务器以及网络带宽造成冲击,请保持正常回包。触发重试条件如下:
- 长时间(5 秒)未回包应答。
- 应答 HTTP STATUS 不为200。
#### 回调接口协议
##### 分析任务完成消息回调
| 参数名称 | 必选 | 类型 | 描述 |
|---------|---------|---------|---------|
| EventType | 是 | int | 回调时间类型,1-任务分析完成,2-媒资导入完成 |
| TaskId | 是 | String | 任务ID |
| TaskStatus | 是 | [TaskStatus](/document/product/1509/65063#TaskInfo) | 任务执行状态 |
| FailedReason | 是 | String | 若任务失败,该字段为失败原因 |
##### 导入媒资完成消息回调
| 参数名称 | 必选 | 类型 | 描述 |
|---------|---------|---------|---------|
| EventType | 是 | int | 回调时间类型,1-任务分析完成,2-媒资导入完成 |
| MediaId | 是 | String | 媒资ID |
| MediaStatus | 是 | [MediaStatus](/document/product/1509/65063#MediaInfo) | 媒资导入状态|
| FailedReason | 是 | String | 若任务失败,该字段为失败原因 |
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" INTERNALERROR = "InternalError" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDPARAM = "InvalidParameter.InvalidParam" INVALIDPARAMETER_INVALIDURL = "InvalidParameter.InvalidURL" INVALIDPARAMETER_NAMETOOLONG = "InvalidParameter.NameTooLong" INVALIDPARAMETER_PARAMTOOLONG = "InvalidParameter.ParamTooLong" INVALIDPARAMETER_URLNOTRESOLVED = "InvalidParameter.URLNotResolved" INVALIDPARAMETER_UNSUPPORTURL = "InvalidParameter.UnsupportURL" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) QueryCallback ¶ added in v1.0.359
func (c *Client) QueryCallback(request *QueryCallbackRequest) (response *QueryCallbackResponse, err error)
QueryCallback 查询用户回调设置
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) QueryCallbackWithContext ¶ added in v1.0.359
func (c *Client) QueryCallbackWithContext(ctx context.Context, request *QueryCallbackRequest) (response *QueryCallbackResponse, err error)
QueryCallback 查询用户回调设置
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) UpdateCustomCategory ¶ added in v1.0.338
func (c *Client) UpdateCustomCategory(request *UpdateCustomCategoryRequest) (response *UpdateCustomCategoryResponse, err error)
UpdateCustomCategory 更新自定义人物分类
当L2Category为空时,代表更新CategoryId对应的一级自定义人物类型以及所有二级自定义人物类型所从属的一级自定义人物类型;
当L2Category非空时,仅更新CategoryId对应的二级自定义人物类型
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_CATEGORYEXIST = "FailedOperation.CategoryExist" FAILEDOPERATION_CATEGORYLEVELCHANGED = "FailedOperation.CategoryLevelChanged" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INTERNALERROR_INTERNALOVERFLOW = "InternalError.InternalOverflow" INVALIDPARAMETER_INVALIDCATEGORYID = "InvalidParameter.InvalidCategoryId" INVALIDPARAMETER_INVALIDL1CATEGORY = "InvalidParameter.InvalidL1Category" INVALIDPARAMETER_INVALIDL2CATEGORY = "InvalidParameter.InvalidL2Category" INVALIDPARAMETER_INVALIDPARAM = "InvalidParameter.InvalidParam" RESOURCENOTFOUND_CUSTOMCATEGORYNOTFOUND = "ResourceNotFound.CustomCategoryNotFound" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) UpdateCustomCategoryWithContext ¶ added in v1.0.338
func (c *Client) UpdateCustomCategoryWithContext(ctx context.Context, request *UpdateCustomCategoryRequest) (response *UpdateCustomCategoryResponse, err error)
UpdateCustomCategory 更新自定义人物分类
当L2Category为空时,代表更新CategoryId对应的一级自定义人物类型以及所有二级自定义人物类型所从属的一级自定义人物类型;
当L2Category非空时,仅更新CategoryId对应的二级自定义人物类型
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" FAILEDOPERATION_CATEGORYEXIST = "FailedOperation.CategoryExist" FAILEDOPERATION_CATEGORYLEVELCHANGED = "FailedOperation.CategoryLevelChanged" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INTERNALERROR_INTERNALOVERFLOW = "InternalError.InternalOverflow" INVALIDPARAMETER_INVALIDCATEGORYID = "InvalidParameter.InvalidCategoryId" INVALIDPARAMETER_INVALIDL1CATEGORY = "InvalidParameter.InvalidL1Category" INVALIDPARAMETER_INVALIDL2CATEGORY = "InvalidParameter.InvalidL2Category" INVALIDPARAMETER_INVALIDPARAM = "InvalidParameter.InvalidParam" RESOURCENOTFOUND_CUSTOMCATEGORYNOTFOUND = "ResourceNotFound.CustomCategoryNotFound" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) UpdateCustomPerson ¶ added in v1.0.338
func (c *Client) UpdateCustomPerson(request *UpdateCustomPersonRequest) (response *UpdateCustomPersonResponse, err error)
UpdateCustomPerson 更新自定义人物信息,包括姓名,简要信息,分类信息等
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDCATEGORYID = "InvalidParameter.InvalidCategoryId" INVALIDPARAMETER_INVALIDNAME = "InvalidParameter.InvalidName" INVALIDPARAMETER_INVALIDPARAM = "InvalidParameter.InvalidParam" INVALIDPARAMETER_INVALIDPERSONID = "InvalidParameter.InvalidPersonId" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
func (*Client) UpdateCustomPersonWithContext ¶ added in v1.0.338
func (c *Client) UpdateCustomPersonWithContext(ctx context.Context, request *UpdateCustomPersonRequest) (response *UpdateCustomPersonResponse, err error)
UpdateCustomPerson 更新自定义人物信息,包括姓名,简要信息,分类信息等
可能返回的错误码:
AUTHFAILURE_USERINVALIDSTATUS = "AuthFailure.UserInvalidStatus" AUTHFAILURE_USERNOTFOUND = "AuthFailure.UserNotFound" AUTHFAILURE_USERSTOPARREAR = "AuthFailure.UserStopArrear" INTERNALERROR_DBCONNECTIONERROR = "InternalError.DBConnectionError" INTERNALERROR_INNERERROR = "InternalError.InnerError" INVALIDPARAMETER_INVALIDCATEGORYID = "InvalidParameter.InvalidCategoryId" INVALIDPARAMETER_INVALIDNAME = "InvalidParameter.InvalidName" INVALIDPARAMETER_INVALIDPARAM = "InvalidParameter.InvalidParam" INVALIDPARAMETER_INVALIDPERSONID = "InvalidParameter.InvalidPersonId" RESOURCENOTFOUND_RECORDNOTFOUND = "ResourceNotFound.RecordNotFound" UNAUTHORIZEDOPERATION_UNAUTHORIZEDPRODUCT = "UnauthorizedOperation.UnauthorizedProduct"
type CreateCustomCategoryRequest ¶ added in v1.0.338
type CreateCustomCategoryRequest struct { *tchttp.BaseRequest // 自定义一级类型 L1Category *string `json:"L1Category,omitnil,omitempty" name:"L1Category"` // 自定义二级类型 L2Category *string `json:"L2Category,omitnil,omitempty" name:"L2Category"` }
func NewCreateCustomCategoryRequest ¶ added in v1.0.338
func NewCreateCustomCategoryRequest() (request *CreateCustomCategoryRequest)
func (*CreateCustomCategoryRequest) FromJsonString ¶ added in v1.0.338
func (r *CreateCustomCategoryRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateCustomCategoryRequest) ToJsonString ¶ added in v1.0.338
func (r *CreateCustomCategoryRequest) ToJsonString() string
type CreateCustomCategoryRequestParams ¶ added in v1.0.426
type CreateCustomCategoryRequestParams struct { // 自定义一级类型 L1Category *string `json:"L1Category,omitnil,omitempty" name:"L1Category"` // 自定义二级类型 L2Category *string `json:"L2Category,omitnil,omitempty" name:"L2Category"` }
Predefined struct for user
type CreateCustomCategoryResponse ¶ added in v1.0.338
type CreateCustomCategoryResponse struct { *tchttp.BaseResponse Response *CreateCustomCategoryResponseParams `json:"Response"` }
func NewCreateCustomCategoryResponse ¶ added in v1.0.338
func NewCreateCustomCategoryResponse() (response *CreateCustomCategoryResponse)
func (*CreateCustomCategoryResponse) FromJsonString ¶ added in v1.0.338
func (r *CreateCustomCategoryResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateCustomCategoryResponse) ToJsonString ¶ added in v1.0.338
func (r *CreateCustomCategoryResponse) ToJsonString() string
type CreateCustomCategoryResponseParams ¶ added in v1.0.426
type CreateCustomCategoryResponseParams struct { // 自定义分类信息ID CategoryId *string `json:"CategoryId,omitnil,omitempty" name:"CategoryId"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateCustomGroupRequest ¶ added in v1.0.338
type CreateCustomGroupRequest struct { *tchttp.BaseRequest // 人脸图片COS存储桶Host地址 Bucket *string `json:"Bucket,omitnil,omitempty" name:"Bucket"` }
func NewCreateCustomGroupRequest ¶ added in v1.0.338
func NewCreateCustomGroupRequest() (request *CreateCustomGroupRequest)
func (*CreateCustomGroupRequest) FromJsonString ¶ added in v1.0.338
func (r *CreateCustomGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateCustomGroupRequest) ToJsonString ¶ added in v1.0.338
func (r *CreateCustomGroupRequest) ToJsonString() string
type CreateCustomGroupRequestParams ¶ added in v1.0.426
type CreateCustomGroupRequestParams struct { // 人脸图片COS存储桶Host地址 Bucket *string `json:"Bucket,omitnil,omitempty" name:"Bucket"` }
Predefined struct for user
type CreateCustomGroupResponse ¶ added in v1.0.338
type CreateCustomGroupResponse struct { *tchttp.BaseResponse Response *CreateCustomGroupResponseParams `json:"Response"` }
func NewCreateCustomGroupResponse ¶ added in v1.0.338
func NewCreateCustomGroupResponse() (response *CreateCustomGroupResponse)
func (*CreateCustomGroupResponse) FromJsonString ¶ added in v1.0.338
func (r *CreateCustomGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateCustomGroupResponse) ToJsonString ¶ added in v1.0.338
func (r *CreateCustomGroupResponse) ToJsonString() string
type CreateCustomGroupResponseParams ¶ added in v1.0.426
type CreateCustomGroupResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateCustomPersonRequest ¶ added in v1.0.338
type CreateCustomPersonRequest struct { *tchttp.BaseRequest // 自定义人物姓名 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 自定义人物简要信息(仅用于标记,不支持检索) BasicInfo *string `json:"BasicInfo,omitnil,omitempty" name:"BasicInfo"` // 自定义分类ID,如不存在接口会报错 CategoryId *string `json:"CategoryId,omitnil,omitempty" name:"CategoryId"` // 自定义人物图片URL,可支持任意地址,推荐使用COS ImageURL *string `json:"ImageURL,omitnil,omitempty" name:"ImageURL"` // 原始图片base64编码后的数据 Image *string `json:"Image,omitnil,omitempty" name:"Image"` }
func NewCreateCustomPersonRequest ¶ added in v1.0.338
func NewCreateCustomPersonRequest() (request *CreateCustomPersonRequest)
func (*CreateCustomPersonRequest) FromJsonString ¶ added in v1.0.338
func (r *CreateCustomPersonRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateCustomPersonRequest) ToJsonString ¶ added in v1.0.338
func (r *CreateCustomPersonRequest) ToJsonString() string
type CreateCustomPersonRequestParams ¶ added in v1.0.426
type CreateCustomPersonRequestParams struct { // 自定义人物姓名 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 自定义人物简要信息(仅用于标记,不支持检索) BasicInfo *string `json:"BasicInfo,omitnil,omitempty" name:"BasicInfo"` // 自定义分类ID,如不存在接口会报错 CategoryId *string `json:"CategoryId,omitnil,omitempty" name:"CategoryId"` // 自定义人物图片URL,可支持任意地址,推荐使用COS ImageURL *string `json:"ImageURL,omitnil,omitempty" name:"ImageURL"` // 原始图片base64编码后的数据 Image *string `json:"Image,omitnil,omitempty" name:"Image"` }
Predefined struct for user
type CreateCustomPersonResponse ¶ added in v1.0.338
type CreateCustomPersonResponse struct { *tchttp.BaseResponse Response *CreateCustomPersonResponseParams `json:"Response"` }
func NewCreateCustomPersonResponse ¶ added in v1.0.338
func NewCreateCustomPersonResponse() (response *CreateCustomPersonResponse)
func (*CreateCustomPersonResponse) FromJsonString ¶ added in v1.0.338
func (r *CreateCustomPersonResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateCustomPersonResponse) ToJsonString ¶ added in v1.0.338
func (r *CreateCustomPersonResponse) ToJsonString() string
type CreateCustomPersonResponseParams ¶ added in v1.0.426
type CreateCustomPersonResponseParams struct { // 自定义人物Id PersonId *string `json:"PersonId,omitnil,omitempty" name:"PersonId"` // 自定义人脸信息 ImageInfo *PersonImageInfo `json:"ImageInfo,omitnil,omitempty" name:"ImageInfo"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateDefaultCategoriesRequest ¶ added in v1.0.338
type CreateDefaultCategoriesRequest struct {
*tchttp.BaseRequest
}
func NewCreateDefaultCategoriesRequest ¶ added in v1.0.338
func NewCreateDefaultCategoriesRequest() (request *CreateDefaultCategoriesRequest)
func (*CreateDefaultCategoriesRequest) FromJsonString ¶ added in v1.0.338
func (r *CreateDefaultCategoriesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDefaultCategoriesRequest) ToJsonString ¶ added in v1.0.338
func (r *CreateDefaultCategoriesRequest) ToJsonString() string
type CreateDefaultCategoriesRequestParams ¶ added in v1.0.426
type CreateDefaultCategoriesRequestParams struct { }
Predefined struct for user
type CreateDefaultCategoriesResponse ¶ added in v1.0.338
type CreateDefaultCategoriesResponse struct { *tchttp.BaseResponse Response *CreateDefaultCategoriesResponseParams `json:"Response"` }
func NewCreateDefaultCategoriesResponse ¶ added in v1.0.338
func NewCreateDefaultCategoriesResponse() (response *CreateDefaultCategoriesResponse)
func (*CreateDefaultCategoriesResponse) FromJsonString ¶ added in v1.0.338
func (r *CreateDefaultCategoriesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDefaultCategoriesResponse) ToJsonString ¶ added in v1.0.338
func (r *CreateDefaultCategoriesResponse) ToJsonString() string
type CreateDefaultCategoriesResponseParams ¶ added in v1.0.426
type CreateDefaultCategoriesResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateTaskRequest ¶
type CreateTaskRequest struct { *tchttp.BaseRequest // 媒资文件ID,最长32B MediaId *string `json:"MediaId,omitnil,omitempty" name:"MediaId"` // 媒资素材先验知识,相关限制参考MediaPreknownInfo MediaPreknownInfo *MediaPreknownInfo `json:"MediaPreknownInfo,omitnil,omitempty" name:"MediaPreknownInfo"` // 任务名称,最长100个中文字符 TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` // 是否上传转码后的视频,仅设置true时上传,默认为false UploadVideo *bool `json:"UploadVideo,omitnil,omitempty" name:"UploadVideo"` // 自定义标签,可用于查询 Label *string `json:"Label,omitnil,omitempty" name:"Label"` // 任务分析完成的回调地址,该设置优先级高于控制台全局的设置; CallbackURL *string `json:"CallbackURL,omitnil,omitempty" name:"CallbackURL"` }
func NewCreateTaskRequest ¶
func NewCreateTaskRequest() (request *CreateTaskRequest)
func (*CreateTaskRequest) FromJsonString ¶
func (r *CreateTaskRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTaskRequest) ToJsonString ¶
func (r *CreateTaskRequest) ToJsonString() string
type CreateTaskRequestParams ¶ added in v1.0.426
type CreateTaskRequestParams struct { // 媒资文件ID,最长32B MediaId *string `json:"MediaId,omitnil,omitempty" name:"MediaId"` // 媒资素材先验知识,相关限制参考MediaPreknownInfo MediaPreknownInfo *MediaPreknownInfo `json:"MediaPreknownInfo,omitnil,omitempty" name:"MediaPreknownInfo"` // 任务名称,最长100个中文字符 TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` // 是否上传转码后的视频,仅设置true时上传,默认为false UploadVideo *bool `json:"UploadVideo,omitnil,omitempty" name:"UploadVideo"` // 自定义标签,可用于查询 Label *string `json:"Label,omitnil,omitempty" name:"Label"` // 任务分析完成的回调地址,该设置优先级高于控制台全局的设置; CallbackURL *string `json:"CallbackURL,omitnil,omitempty" name:"CallbackURL"` }
Predefined struct for user
type CreateTaskResponse ¶
type CreateTaskResponse struct { *tchttp.BaseResponse Response *CreateTaskResponseParams `json:"Response"` }
func NewCreateTaskResponse ¶
func NewCreateTaskResponse() (response *CreateTaskResponse)
func (*CreateTaskResponse) FromJsonString ¶
func (r *CreateTaskResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTaskResponse) ToJsonString ¶
func (r *CreateTaskResponse) ToJsonString() string
type CreateTaskResponseParams ¶ added in v1.0.426
type CreateTaskResponseParams struct { // 智能标签视频分析任务ID TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type CustomCategory ¶ added in v1.0.338
type CustomPersonFilter ¶ added in v1.0.338
type CustomPersonFilter struct { // 待查询的人物姓名 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 待过滤的自定义类型Id数组 CategoryIdSet []*string `json:"CategoryIdSet,omitnil,omitempty" name:"CategoryIdSet"` // 待过滤的自定义人物Id数组 PersonIdSet []*string `json:"PersonIdSet,omitnil,omitempty" name:"PersonIdSet"` // 一级自定义人物类型数组 L1CategorySet []*string `json:"L1CategorySet,omitnil,omitempty" name:"L1CategorySet"` }
type CustomPersonInfo ¶ added in v1.0.338
type CustomPersonInfo struct { // 自定义人物Id PersonId *string `json:"PersonId,omitnil,omitempty" name:"PersonId"` // 自定义人物姓名 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 自定义人物简介信息 BasicInfo *string `json:"BasicInfo,omitnil,omitempty" name:"BasicInfo"` // 一级自定义人物类型 L1Category *string `json:"L1Category,omitnil,omitempty" name:"L1Category"` // 二级自定义人物类型 L2Category *string `json:"L2Category,omitnil,omitempty" name:"L2Category"` // 自定义人物图片信息 ImageInfoSet []*PersonImageInfo `json:"ImageInfoSet,omitnil,omitempty" name:"ImageInfoSet"` // 自定义人物创建时间 CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` }
type Data ¶
type Data struct { // 节目粒度结构化结果 // 注意:此字段可能返回 null,表示取不到有效值。 ShowInfo *ShowInfo `json:"ShowInfo,omitnil,omitempty" name:"ShowInfo"` }
type DeleteCustomCategoryRequest ¶ added in v1.0.338
type DeleteCustomCategoryRequest struct { *tchttp.BaseRequest // 自定义分类ID CategoryId *string `json:"CategoryId,omitnil,omitempty" name:"CategoryId"` }
func NewDeleteCustomCategoryRequest ¶ added in v1.0.338
func NewDeleteCustomCategoryRequest() (request *DeleteCustomCategoryRequest)
func (*DeleteCustomCategoryRequest) FromJsonString ¶ added in v1.0.338
func (r *DeleteCustomCategoryRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteCustomCategoryRequest) ToJsonString ¶ added in v1.0.338
func (r *DeleteCustomCategoryRequest) ToJsonString() string
type DeleteCustomCategoryRequestParams ¶ added in v1.0.426
type DeleteCustomCategoryRequestParams struct { // 自定义分类ID CategoryId *string `json:"CategoryId,omitnil,omitempty" name:"CategoryId"` }
Predefined struct for user
type DeleteCustomCategoryResponse ¶ added in v1.0.338
type DeleteCustomCategoryResponse struct { *tchttp.BaseResponse Response *DeleteCustomCategoryResponseParams `json:"Response"` }
func NewDeleteCustomCategoryResponse ¶ added in v1.0.338
func NewDeleteCustomCategoryResponse() (response *DeleteCustomCategoryResponse)
func (*DeleteCustomCategoryResponse) FromJsonString ¶ added in v1.0.338
func (r *DeleteCustomCategoryResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteCustomCategoryResponse) ToJsonString ¶ added in v1.0.338
func (r *DeleteCustomCategoryResponse) ToJsonString() string
type DeleteCustomCategoryResponseParams ¶ added in v1.0.426
type DeleteCustomCategoryResponseParams struct { // 123 CategoryId *string `json:"CategoryId,omitnil,omitempty" name:"CategoryId"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteCustomPersonImageRequest ¶ added in v1.0.338
type DeleteCustomPersonImageRequest struct { *tchttp.BaseRequest // 自定义人物Id PersonId *string `json:"PersonId,omitnil,omitempty" name:"PersonId"` // 自定义人脸图片Id ImageId *string `json:"ImageId,omitnil,omitempty" name:"ImageId"` }
func NewDeleteCustomPersonImageRequest ¶ added in v1.0.338
func NewDeleteCustomPersonImageRequest() (request *DeleteCustomPersonImageRequest)
func (*DeleteCustomPersonImageRequest) FromJsonString ¶ added in v1.0.338
func (r *DeleteCustomPersonImageRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteCustomPersonImageRequest) ToJsonString ¶ added in v1.0.338
func (r *DeleteCustomPersonImageRequest) ToJsonString() string
type DeleteCustomPersonImageRequestParams ¶ added in v1.0.426
type DeleteCustomPersonImageRequestParams struct { // 自定义人物Id PersonId *string `json:"PersonId,omitnil,omitempty" name:"PersonId"` // 自定义人脸图片Id ImageId *string `json:"ImageId,omitnil,omitempty" name:"ImageId"` }
Predefined struct for user
type DeleteCustomPersonImageResponse ¶ added in v1.0.338
type DeleteCustomPersonImageResponse struct { *tchttp.BaseResponse Response *DeleteCustomPersonImageResponseParams `json:"Response"` }
func NewDeleteCustomPersonImageResponse ¶ added in v1.0.338
func NewDeleteCustomPersonImageResponse() (response *DeleteCustomPersonImageResponse)
func (*DeleteCustomPersonImageResponse) FromJsonString ¶ added in v1.0.338
func (r *DeleteCustomPersonImageResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteCustomPersonImageResponse) ToJsonString ¶ added in v1.0.338
func (r *DeleteCustomPersonImageResponse) ToJsonString() string
type DeleteCustomPersonImageResponseParams ¶ added in v1.0.426
type DeleteCustomPersonImageResponseParams struct { // 自定义人物Id PersonId *string `json:"PersonId,omitnil,omitempty" name:"PersonId"` // 已删除的人物图片Id ImageId *string `json:"ImageId,omitnil,omitempty" name:"ImageId"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteCustomPersonRequest ¶ added in v1.0.338
type DeleteCustomPersonRequest struct { *tchttp.BaseRequest // 待删除的自定义人物ID PersonId *string `json:"PersonId,omitnil,omitempty" name:"PersonId"` }
func NewDeleteCustomPersonRequest ¶ added in v1.0.338
func NewDeleteCustomPersonRequest() (request *DeleteCustomPersonRequest)
func (*DeleteCustomPersonRequest) FromJsonString ¶ added in v1.0.338
func (r *DeleteCustomPersonRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteCustomPersonRequest) ToJsonString ¶ added in v1.0.338
func (r *DeleteCustomPersonRequest) ToJsonString() string
type DeleteCustomPersonRequestParams ¶ added in v1.0.426
type DeleteCustomPersonRequestParams struct { // 待删除的自定义人物ID PersonId *string `json:"PersonId,omitnil,omitempty" name:"PersonId"` }
Predefined struct for user
type DeleteCustomPersonResponse ¶ added in v1.0.338
type DeleteCustomPersonResponse struct { *tchttp.BaseResponse Response *DeleteCustomPersonResponseParams `json:"Response"` }
func NewDeleteCustomPersonResponse ¶ added in v1.0.338
func NewDeleteCustomPersonResponse() (response *DeleteCustomPersonResponse)
func (*DeleteCustomPersonResponse) FromJsonString ¶ added in v1.0.338
func (r *DeleteCustomPersonResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteCustomPersonResponse) ToJsonString ¶ added in v1.0.338
func (r *DeleteCustomPersonResponse) ToJsonString() string
type DeleteCustomPersonResponseParams ¶ added in v1.0.426
type DeleteCustomPersonResponseParams struct { // 已删除的自定义人物Id PersonId *string `json:"PersonId,omitnil,omitempty" name:"PersonId"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteMediaRequest ¶
type DeleteMediaRequest struct { *tchttp.BaseRequest // 媒资文件在系统中的ID MediaId *string `json:"MediaId,omitnil,omitempty" name:"MediaId"` }
func NewDeleteMediaRequest ¶
func NewDeleteMediaRequest() (request *DeleteMediaRequest)
func (*DeleteMediaRequest) FromJsonString ¶
func (r *DeleteMediaRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteMediaRequest) ToJsonString ¶
func (r *DeleteMediaRequest) ToJsonString() string
type DeleteMediaRequestParams ¶ added in v1.0.426
type DeleteMediaRequestParams struct { // 媒资文件在系统中的ID MediaId *string `json:"MediaId,omitnil,omitempty" name:"MediaId"` }
Predefined struct for user
type DeleteMediaResponse ¶
type DeleteMediaResponse struct { *tchttp.BaseResponse Response *DeleteMediaResponseParams `json:"Response"` }
func NewDeleteMediaResponse ¶
func NewDeleteMediaResponse() (response *DeleteMediaResponse)
func (*DeleteMediaResponse) FromJsonString ¶
func (r *DeleteMediaResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteMediaResponse) ToJsonString ¶
func (r *DeleteMediaResponse) ToJsonString() string
type DeleteMediaResponseParams ¶ added in v1.0.426
type DeleteMediaResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteTaskRequest ¶ added in v1.0.359
type DeleteTaskRequest struct { *tchttp.BaseRequest // 任务Id TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` }
func NewDeleteTaskRequest ¶ added in v1.0.359
func NewDeleteTaskRequest() (request *DeleteTaskRequest)
func (*DeleteTaskRequest) FromJsonString ¶ added in v1.0.359
func (r *DeleteTaskRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteTaskRequest) ToJsonString ¶ added in v1.0.359
func (r *DeleteTaskRequest) ToJsonString() string
type DeleteTaskRequestParams ¶ added in v1.0.426
type DeleteTaskRequestParams struct { // 任务Id TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` }
Predefined struct for user
type DeleteTaskResponse ¶ added in v1.0.359
type DeleteTaskResponse struct { *tchttp.BaseResponse Response *DeleteTaskResponseParams `json:"Response"` }
func NewDeleteTaskResponse ¶ added in v1.0.359
func NewDeleteTaskResponse() (response *DeleteTaskResponse)
func (*DeleteTaskResponse) FromJsonString ¶ added in v1.0.359
func (r *DeleteTaskResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteTaskResponse) ToJsonString ¶ added in v1.0.359
func (r *DeleteTaskResponse) ToJsonString() string
type DeleteTaskResponseParams ¶ added in v1.0.426
type DeleteTaskResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeCustomCategoriesRequest ¶ added in v1.0.338
type DescribeCustomCategoriesRequest struct {
*tchttp.BaseRequest
}
func NewDescribeCustomCategoriesRequest ¶ added in v1.0.338
func NewDescribeCustomCategoriesRequest() (request *DescribeCustomCategoriesRequest)
func (*DescribeCustomCategoriesRequest) FromJsonString ¶ added in v1.0.338
func (r *DescribeCustomCategoriesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCustomCategoriesRequest) ToJsonString ¶ added in v1.0.338
func (r *DescribeCustomCategoriesRequest) ToJsonString() string
type DescribeCustomCategoriesRequestParams ¶ added in v1.0.426
type DescribeCustomCategoriesRequestParams struct { }
Predefined struct for user
type DescribeCustomCategoriesResponse ¶ added in v1.0.338
type DescribeCustomCategoriesResponse struct { *tchttp.BaseResponse Response *DescribeCustomCategoriesResponseParams `json:"Response"` }
func NewDescribeCustomCategoriesResponse ¶ added in v1.0.338
func NewDescribeCustomCategoriesResponse() (response *DescribeCustomCategoriesResponse)
func (*DescribeCustomCategoriesResponse) FromJsonString ¶ added in v1.0.338
func (r *DescribeCustomCategoriesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCustomCategoriesResponse) ToJsonString ¶ added in v1.0.338
func (r *DescribeCustomCategoriesResponse) ToJsonString() string
type DescribeCustomCategoriesResponseParams ¶ added in v1.0.426
type DescribeCustomCategoriesResponseParams struct { // 自定义人物类型数组 CategorySet []*CustomCategory `json:"CategorySet,omitnil,omitempty" name:"CategorySet"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeCustomGroupRequest ¶ added in v1.0.338
type DescribeCustomGroupRequest struct {
*tchttp.BaseRequest
}
func NewDescribeCustomGroupRequest ¶ added in v1.0.338
func NewDescribeCustomGroupRequest() (request *DescribeCustomGroupRequest)
func (*DescribeCustomGroupRequest) FromJsonString ¶ added in v1.0.338
func (r *DescribeCustomGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCustomGroupRequest) ToJsonString ¶ added in v1.0.338
func (r *DescribeCustomGroupRequest) ToJsonString() string
type DescribeCustomGroupRequestParams ¶ added in v1.0.426
type DescribeCustomGroupRequestParams struct { }
Predefined struct for user
type DescribeCustomGroupResponse ¶ added in v1.0.338
type DescribeCustomGroupResponse struct { *tchttp.BaseResponse Response *DescribeCustomGroupResponseParams `json:"Response"` }
func NewDescribeCustomGroupResponse ¶ added in v1.0.338
func NewDescribeCustomGroupResponse() (response *DescribeCustomGroupResponse)
func (*DescribeCustomGroupResponse) FromJsonString ¶ added in v1.0.338
func (r *DescribeCustomGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCustomGroupResponse) ToJsonString ¶ added in v1.0.338
func (r *DescribeCustomGroupResponse) ToJsonString() string
type DescribeCustomGroupResponseParams ¶ added in v1.0.426
type DescribeCustomGroupResponseParams struct { // 自定义人物库所包含的人物个数 GroupSize *int64 `json:"GroupSize,omitnil,omitempty" name:"GroupSize"` // 自定义人物库图片后续所在的存储桶 Bucket *string `json:"Bucket,omitnil,omitempty" name:"Bucket"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeCustomPersonDetailRequest ¶ added in v1.0.338
type DescribeCustomPersonDetailRequest struct { *tchttp.BaseRequest // 自定义人物Id PersonId *string `json:"PersonId,omitnil,omitempty" name:"PersonId"` }
func NewDescribeCustomPersonDetailRequest ¶ added in v1.0.338
func NewDescribeCustomPersonDetailRequest() (request *DescribeCustomPersonDetailRequest)
func (*DescribeCustomPersonDetailRequest) FromJsonString ¶ added in v1.0.338
func (r *DescribeCustomPersonDetailRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCustomPersonDetailRequest) ToJsonString ¶ added in v1.0.338
func (r *DescribeCustomPersonDetailRequest) ToJsonString() string
type DescribeCustomPersonDetailRequestParams ¶ added in v1.0.426
type DescribeCustomPersonDetailRequestParams struct { // 自定义人物Id PersonId *string `json:"PersonId,omitnil,omitempty" name:"PersonId"` }
Predefined struct for user
type DescribeCustomPersonDetailResponse ¶ added in v1.0.338
type DescribeCustomPersonDetailResponse struct { *tchttp.BaseResponse Response *DescribeCustomPersonDetailResponseParams `json:"Response"` }
func NewDescribeCustomPersonDetailResponse ¶ added in v1.0.338
func NewDescribeCustomPersonDetailResponse() (response *DescribeCustomPersonDetailResponse)
func (*DescribeCustomPersonDetailResponse) FromJsonString ¶ added in v1.0.338
func (r *DescribeCustomPersonDetailResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCustomPersonDetailResponse) ToJsonString ¶ added in v1.0.338
func (r *DescribeCustomPersonDetailResponse) ToJsonString() string
type DescribeCustomPersonDetailResponseParams ¶ added in v1.0.426
type DescribeCustomPersonDetailResponseParams struct { // 自定义人物信息 PersonInfo *CustomPersonInfo `json:"PersonInfo,omitnil,omitempty" name:"PersonInfo"` // 出现该自定义人物的所有分析人物Id // 注意:此字段可能返回 null,表示取不到有效值。 TaskIdSet []*string `json:"TaskIdSet,omitnil,omitempty" name:"TaskIdSet"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeCustomPersonsRequest ¶ added in v1.0.338
type DescribeCustomPersonsRequest struct { *tchttp.BaseRequest // 分页序号,从1开始 PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` // 分页数据行数,最多50 PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` // 排序信息,默认倒序 SortBy *SortBy `json:"SortBy,omitnil,omitempty" name:"SortBy"` // 自定义人物过滤条件 Filter *CustomPersonFilter `json:"Filter,omitnil,omitempty" name:"Filter"` }
func NewDescribeCustomPersonsRequest ¶ added in v1.0.338
func NewDescribeCustomPersonsRequest() (request *DescribeCustomPersonsRequest)
func (*DescribeCustomPersonsRequest) FromJsonString ¶ added in v1.0.338
func (r *DescribeCustomPersonsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCustomPersonsRequest) ToJsonString ¶ added in v1.0.338
func (r *DescribeCustomPersonsRequest) ToJsonString() string
type DescribeCustomPersonsRequestParams ¶ added in v1.0.426
type DescribeCustomPersonsRequestParams struct { // 分页序号,从1开始 PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` // 分页数据行数,最多50 PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` // 排序信息,默认倒序 SortBy *SortBy `json:"SortBy,omitnil,omitempty" name:"SortBy"` // 自定义人物过滤条件 Filter *CustomPersonFilter `json:"Filter,omitnil,omitempty" name:"Filter"` }
Predefined struct for user
type DescribeCustomPersonsResponse ¶ added in v1.0.338
type DescribeCustomPersonsResponse struct { *tchttp.BaseResponse Response *DescribeCustomPersonsResponseParams `json:"Response"` }
func NewDescribeCustomPersonsResponse ¶ added in v1.0.338
func NewDescribeCustomPersonsResponse() (response *DescribeCustomPersonsResponse)
func (*DescribeCustomPersonsResponse) FromJsonString ¶ added in v1.0.338
func (r *DescribeCustomPersonsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCustomPersonsResponse) ToJsonString ¶ added in v1.0.338
func (r *DescribeCustomPersonsResponse) ToJsonString() string
type DescribeCustomPersonsResponseParams ¶ added in v1.0.426
type DescribeCustomPersonsResponseParams struct { // 满足过滤条件的自定义人物数量 TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` // 自定义人物信息 PersonInfoSet []*CustomPersonInfo `json:"PersonInfoSet,omitnil,omitempty" name:"PersonInfoSet"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeMediaRequest ¶
type DescribeMediaRequest struct { *tchttp.BaseRequest // 导入媒资返回的媒资ID,最长32B MediaId *string `json:"MediaId,omitnil,omitempty" name:"MediaId"` }
func NewDescribeMediaRequest ¶
func NewDescribeMediaRequest() (request *DescribeMediaRequest)
func (*DescribeMediaRequest) FromJsonString ¶
func (r *DescribeMediaRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeMediaRequest) ToJsonString ¶
func (r *DescribeMediaRequest) ToJsonString() string
type DescribeMediaRequestParams ¶ added in v1.0.426
type DescribeMediaRequestParams struct { // 导入媒资返回的媒资ID,最长32B MediaId *string `json:"MediaId,omitnil,omitempty" name:"MediaId"` }
Predefined struct for user
type DescribeMediaResponse ¶
type DescribeMediaResponse struct { *tchttp.BaseResponse Response *DescribeMediaResponseParams `json:"Response"` }
func NewDescribeMediaResponse ¶
func NewDescribeMediaResponse() (response *DescribeMediaResponse)
func (*DescribeMediaResponse) FromJsonString ¶
func (r *DescribeMediaResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeMediaResponse) ToJsonString ¶
func (r *DescribeMediaResponse) ToJsonString() string
type DescribeMediaResponseParams ¶ added in v1.0.426
type DescribeMediaResponseParams struct { // 媒资信息 // 注意:此字段可能返回 null,表示取不到有效值。 MediaInfo *MediaInfo `json:"MediaInfo,omitnil,omitempty" name:"MediaInfo"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeMediasRequest ¶
type DescribeMediasRequest struct { *tchttp.BaseRequest // 分页序号,从1开始 PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` // 每个分页所包含的元素数量,最大为50 PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` // 列举过滤条件,相关限制相见MediaFilter MediaFilter *MediaFilter `json:"MediaFilter,omitnil,omitempty" name:"MediaFilter"` // 返回结果排序信息,By字段只支持CreateTime SortBy *SortBy `json:"SortBy,omitnil,omitempty" name:"SortBy"` }
func NewDescribeMediasRequest ¶
func NewDescribeMediasRequest() (request *DescribeMediasRequest)
func (*DescribeMediasRequest) FromJsonString ¶
func (r *DescribeMediasRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeMediasRequest) ToJsonString ¶
func (r *DescribeMediasRequest) ToJsonString() string
type DescribeMediasRequestParams ¶ added in v1.0.426
type DescribeMediasRequestParams struct { // 分页序号,从1开始 PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` // 每个分页所包含的元素数量,最大为50 PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` // 列举过滤条件,相关限制相见MediaFilter MediaFilter *MediaFilter `json:"MediaFilter,omitnil,omitempty" name:"MediaFilter"` // 返回结果排序信息,By字段只支持CreateTime SortBy *SortBy `json:"SortBy,omitnil,omitempty" name:"SortBy"` }
Predefined struct for user
type DescribeMediasResponse ¶
type DescribeMediasResponse struct { *tchttp.BaseResponse Response *DescribeMediasResponseParams `json:"Response"` }
func NewDescribeMediasResponse ¶
func NewDescribeMediasResponse() (response *DescribeMediasResponse)
func (*DescribeMediasResponse) FromJsonString ¶
func (r *DescribeMediasResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeMediasResponse) ToJsonString ¶
func (r *DescribeMediasResponse) ToJsonString() string
type DescribeMediasResponseParams ¶ added in v1.0.426
type DescribeMediasResponseParams struct { // 满足过滤条件的媒资视频总数量 TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` // 满足过滤条件的媒资信息 // 注意:此字段可能返回 null,表示取不到有效值。 MediaInfoSet []*MediaInfo `json:"MediaInfoSet,omitnil,omitempty" name:"MediaInfoSet"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeTaskDetailRequest ¶
type DescribeTaskDetailRequest struct { *tchttp.BaseRequest // 创建任务返回的TaskId TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` }
func NewDescribeTaskDetailRequest ¶
func NewDescribeTaskDetailRequest() (request *DescribeTaskDetailRequest)
func (*DescribeTaskDetailRequest) FromJsonString ¶
func (r *DescribeTaskDetailRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTaskDetailRequest) ToJsonString ¶
func (r *DescribeTaskDetailRequest) ToJsonString() string
type DescribeTaskDetailRequestParams ¶ added in v1.0.426
type DescribeTaskDetailRequestParams struct { // 创建任务返回的TaskId TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` }
Predefined struct for user
type DescribeTaskDetailResponse ¶
type DescribeTaskDetailResponse struct { *tchttp.BaseResponse Response *DescribeTaskDetailResponseParams `json:"Response"` }
func NewDescribeTaskDetailResponse ¶
func NewDescribeTaskDetailResponse() (response *DescribeTaskDetailResponse)
func (*DescribeTaskDetailResponse) FromJsonString ¶
func (r *DescribeTaskDetailResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTaskDetailResponse) ToJsonString ¶
func (r *DescribeTaskDetailResponse) ToJsonString() string
type DescribeTaskDetailResponseParams ¶ added in v1.0.426
type DescribeTaskDetailResponseParams struct { // 任务信息,不包含任务结果 // 注意:此字段可能返回 null,表示取不到有效值。 TaskInfo *TaskInfo `json:"TaskInfo,omitnil,omitempty" name:"TaskInfo"` // 视频任务结果数据,只在视频任务结束时返回 // 注意:此字段可能返回 null,表示取不到有效值。 TaskData *Data `json:"TaskData,omitnil,omitempty" name:"TaskData"` // 图片任务结果数据,只在图片任务结束时返回 // 注意:此字段可能返回 null,表示取不到有效值。 ImageTaskData *ImageData `json:"ImageTaskData,omitnil,omitempty" name:"ImageTaskData"` // 音频任务结果数据,只在音频任务结束时返回 // 注意:此字段可能返回 null,表示取不到有效值。 AudioTaskData *AudioData `json:"AudioTaskData,omitnil,omitempty" name:"AudioTaskData"` // 文本任务结果数据,只在文本任务结束时返回 // 注意:此字段可能返回 null,表示取不到有效值。 TextTaskData *TextData `json:"TextTaskData,omitnil,omitempty" name:"TextTaskData"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeTaskRequest ¶
type DescribeTaskRequest struct { *tchttp.BaseRequest // CreateTask返回的任务ID,最长32B TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` }
func NewDescribeTaskRequest ¶
func NewDescribeTaskRequest() (request *DescribeTaskRequest)
func (*DescribeTaskRequest) FromJsonString ¶
func (r *DescribeTaskRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTaskRequest) ToJsonString ¶
func (r *DescribeTaskRequest) ToJsonString() string
type DescribeTaskRequestParams ¶ added in v1.0.426
type DescribeTaskRequestParams struct { // CreateTask返回的任务ID,最长32B TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` }
Predefined struct for user
type DescribeTaskResponse ¶
type DescribeTaskResponse struct { *tchttp.BaseResponse Response *DescribeTaskResponseParams `json:"Response"` }
func NewDescribeTaskResponse ¶
func NewDescribeTaskResponse() (response *DescribeTaskResponse)
func (*DescribeTaskResponse) FromJsonString ¶
func (r *DescribeTaskResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTaskResponse) ToJsonString ¶
func (r *DescribeTaskResponse) ToJsonString() string
type DescribeTaskResponseParams ¶ added in v1.0.426
type DescribeTaskResponseParams struct { // 任务信息,详情参见TaskInfo的定义 // 注意:此字段可能返回 null,表示取不到有效值。 TaskInfo *TaskInfo `json:"TaskInfo,omitnil,omitempty" name:"TaskInfo"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeTasksRequest ¶
type DescribeTasksRequest struct { *tchttp.BaseRequest // 分页序号,从1开始 PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` // 每个分页所包含的元素数量,最大为50 PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` // 任务过滤条件,相关限制参见TaskFilter TaskFilter *TaskFilter `json:"TaskFilter,omitnil,omitempty" name:"TaskFilter"` // 返回结果排序信息,By字段只支持CreateTimeStamp SortBy *SortBy `json:"SortBy,omitnil,omitempty" name:"SortBy"` }
func NewDescribeTasksRequest ¶
func NewDescribeTasksRequest() (request *DescribeTasksRequest)
func (*DescribeTasksRequest) FromJsonString ¶
func (r *DescribeTasksRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTasksRequest) ToJsonString ¶
func (r *DescribeTasksRequest) ToJsonString() string
type DescribeTasksRequestParams ¶ added in v1.0.426
type DescribeTasksRequestParams struct { // 分页序号,从1开始 PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` // 每个分页所包含的元素数量,最大为50 PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` // 任务过滤条件,相关限制参见TaskFilter TaskFilter *TaskFilter `json:"TaskFilter,omitnil,omitempty" name:"TaskFilter"` // 返回结果排序信息,By字段只支持CreateTimeStamp SortBy *SortBy `json:"SortBy,omitnil,omitempty" name:"SortBy"` }
Predefined struct for user
type DescribeTasksResponse ¶
type DescribeTasksResponse struct { *tchttp.BaseResponse Response *DescribeTasksResponseParams `json:"Response"` }
func NewDescribeTasksResponse ¶
func NewDescribeTasksResponse() (response *DescribeTasksResponse)
func (*DescribeTasksResponse) FromJsonString ¶
func (r *DescribeTasksResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTasksResponse) ToJsonString ¶
func (r *DescribeTasksResponse) ToJsonString() string
type DescribeTasksResponseParams ¶ added in v1.0.426
type DescribeTasksResponseParams struct { // 满足过滤条件的任务总数量 TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` // 满足过滤条件的任务数组 // 注意:此字段可能返回 null,表示取不到有效值。 TaskInfoSet []*TaskInfo `json:"TaskInfoSet,omitnil,omitempty" name:"TaskInfoSet"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type ImageData ¶ added in v1.0.501
type ImageData struct { // 图片中出现的可视文本识别结果 // 注意:此字段可能返回 null,表示取不到有效值。 OcrSet []*ImageOcr `json:"OcrSet,omitnil,omitempty" name:"OcrSet"` // 图片中出现的帧标签识别结果 // 注意:此字段可能返回 null,表示取不到有效值。 FrameTagSet *MultiLevelTag `json:"FrameTagSet,omitnil,omitempty" name:"FrameTagSet"` // 图片中出现的层级人物识别结果 // 注意:此字段可能返回 null,表示取不到有效值。 MultiLevelPersonInfoSet []*MultiLevelPersonInfo `json:"MultiLevelPersonInfoSet,omitnil,omitempty" name:"MultiLevelPersonInfoSet"` // 图片中出现的台标识别结果 // 注意:此字段可能返回 null,表示取不到有效值。 TvLogo *ImageLogo `json:"TvLogo,omitnil,omitempty" name:"TvLogo"` // 图片中出现的来源信息识别结果 // 注意:此字段可能返回 null,表示取不到有效值。 SourceLogo *ImageLogo `json:"SourceLogo,omitnil,omitempty" name:"SourceLogo"` }
type ImageMetadata ¶ added in v1.0.501
type ImageMetadata struct { // 媒资图片文件大小,单位为Byte // 注意:此字段可能返回 null,表示取不到有效值。 FileSize *int64 `json:"FileSize,omitnil,omitempty" name:"FileSize"` // 媒资图片文件MD5 // 注意:此字段可能返回 null,表示取不到有效值。 MD5 *string `json:"MD5,omitnil,omitempty" name:"MD5"` // 媒资图片文件宽度 // 注意:此字段可能返回 null,表示取不到有效值。 Width *int64 `json:"Width,omitnil,omitempty" name:"Width"` // 媒资图片文件高度 // 注意:此字段可能返回 null,表示取不到有效值。 Height *int64 `json:"Height,omitnil,omitempty" name:"Height"` // 媒资图片文件格式 // 注意:此字段可能返回 null,表示取不到有效值。 Format *string `json:"Format,omitnil,omitempty" name:"Format"` }
type ImportMediaRequest ¶
type ImportMediaRequest struct { *tchttp.BaseRequest // 待分析视频的URL,目前只支持*不带签名的*COS地址,长度最长1KB URL *string `json:"URL,omitnil,omitempty" name:"URL"` // 待分析视频的MD5,为空时不做校验,否则会做MD5校验,长度必须为32B MD5 *string `json:"MD5,omitnil,omitempty" name:"MD5"` // 待分析视频的名称,指定后可支持筛选,最多64B Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 当非本人外部视频地址导入时,该字段为转存的cos桶地址且不可为空; 示例:https://${Bucket}-${AppId}.cos.${Region}.myqcloud.com/${PathPrefix}/ (注意,cos路径需要以/分隔符结尾)。 // 推荐采用本主帐号COS桶,如果使用其他帐号COS桶,请确保COS桶可写,否则可导致分析失败 WriteBackCosPath *string `json:"WriteBackCosPath,omitnil,omitempty" name:"WriteBackCosPath"` // 自定义标签,可用于查询 Label *string `json:"Label,omitnil,omitempty" name:"Label"` // 媒资导入完成的回调地址,该设置优先级高于控制台全局的设置; CallbackURL *string `json:"CallbackURL,omitnil,omitempty" name:"CallbackURL"` // 媒资文件类型,详细定义参见[MediaPreknownInfo.MediaType](https://cloud.tencent.com/document/product/1509/65063#MediaPreknownInfo) // 默认为2(视频) MediaType *int64 `json:"MediaType,omitnil,omitempty" name:"MediaType"` }
func NewImportMediaRequest ¶
func NewImportMediaRequest() (request *ImportMediaRequest)
func (*ImportMediaRequest) FromJsonString ¶
func (r *ImportMediaRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ImportMediaRequest) ToJsonString ¶
func (r *ImportMediaRequest) ToJsonString() string
type ImportMediaRequestParams ¶ added in v1.0.426
type ImportMediaRequestParams struct { // 待分析视频的URL,目前只支持*不带签名的*COS地址,长度最长1KB URL *string `json:"URL,omitnil,omitempty" name:"URL"` // 待分析视频的MD5,为空时不做校验,否则会做MD5校验,长度必须为32B MD5 *string `json:"MD5,omitnil,omitempty" name:"MD5"` // 待分析视频的名称,指定后可支持筛选,最多64B Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 当非本人外部视频地址导入时,该字段为转存的cos桶地址且不可为空; 示例:https://${Bucket}-${AppId}.cos.${Region}.myqcloud.com/${PathPrefix}/ (注意,cos路径需要以/分隔符结尾)。 // 推荐采用本主帐号COS桶,如果使用其他帐号COS桶,请确保COS桶可写,否则可导致分析失败 WriteBackCosPath *string `json:"WriteBackCosPath,omitnil,omitempty" name:"WriteBackCosPath"` // 自定义标签,可用于查询 Label *string `json:"Label,omitnil,omitempty" name:"Label"` // 媒资导入完成的回调地址,该设置优先级高于控制台全局的设置; CallbackURL *string `json:"CallbackURL,omitnil,omitempty" name:"CallbackURL"` // 媒资文件类型,详细定义参见[MediaPreknownInfo.MediaType](https://cloud.tencent.com/document/product/1509/65063#MediaPreknownInfo) // 默认为2(视频) MediaType *int64 `json:"MediaType,omitnil,omitempty" name:"MediaType"` }
Predefined struct for user
type ImportMediaResponse ¶
type ImportMediaResponse struct { *tchttp.BaseResponse Response *ImportMediaResponseParams `json:"Response"` }
func NewImportMediaResponse ¶
func NewImportMediaResponse() (response *ImportMediaResponse)
func (*ImportMediaResponse) FromJsonString ¶
func (r *ImportMediaResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ImportMediaResponse) ToJsonString ¶
func (r *ImportMediaResponse) ToJsonString() string
type ImportMediaResponseParams ¶ added in v1.0.426
type ImportMediaResponseParams struct { // 媒资文件在系统中的ID MediaId *string `json:"MediaId,omitnil,omitempty" name:"MediaId"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type L1Tag ¶
type L1Tag struct { // 一级标签名 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 二级标签数组 // 注意:此字段可能返回 null,表示取不到有效值。 L2TagSet []*L2Tag `json:"L2TagSet,omitnil,omitempty" name:"L2TagSet"` // 一级标签出现信息 // 注意:此字段可能返回 null,表示取不到有效值。 AppearIndexPairSet []*AppearIndexPair `json:"AppearIndexPairSet,omitnil,omitempty" name:"AppearIndexPairSet"` // 一级标签首次出现信息 // 注意:此字段可能返回 null,表示取不到有效值。 FirstAppear *int64 `json:"FirstAppear,omitnil,omitempty" name:"FirstAppear"` }
type L2Tag ¶
type L2Tag struct { // 二级标签名 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 从属于此二级标签的三级标签数组 // 注意:此字段可能返回 null,表示取不到有效值。 L3TagSet []*L3Tag `json:"L3TagSet,omitnil,omitempty" name:"L3TagSet"` // 二级标签出现信息 // 注意:此字段可能返回 null,表示取不到有效值。 AppearIndexPairSet []*AppearIndexPair `json:"AppearIndexPairSet,omitnil,omitempty" name:"AppearIndexPairSet"` // 二级标签首次出现信息 // 注意:此字段可能返回 null,表示取不到有效值。 FirstAppear *int64 `json:"FirstAppear,omitnil,omitempty" name:"FirstAppear"` }
type L3Tag ¶
type L3Tag struct { // 三级标签名 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 三级标签出现信息索引数组 // 注意:此字段可能返回 null,表示取不到有效值。 AppearIndexPairSet []*AppearIndexPair `json:"AppearIndexPairSet,omitnil,omitempty" name:"AppearIndexPairSet"` // 三级标签首次出现信息,可选值为[1,3] // 注意:此字段可能返回 null,表示取不到有效值。 FirstAppear *int64 `json:"FirstAppear,omitnil,omitempty" name:"FirstAppear"` }
type MediaFilter ¶
type MediaFilter struct { // 媒资名称过滤条件 MediaNameSet []*string `json:"MediaNameSet,omitnil,omitempty" name:"MediaNameSet"` // 媒资状态数组,媒资状态可选值参见MediaInfo StatusSet []*int64 `json:"StatusSet,omitnil,omitempty" name:"StatusSet"` // 媒资ID数组 MediaIdSet []*string `json:"MediaIdSet,omitnil,omitempty" name:"MediaIdSet"` // 媒资自定义标签数组 LabelSet []*string `json:"LabelSet,omitnil,omitempty" name:"LabelSet"` // 媒资文件类型,定义参见[MediaPreknownInfo.MediaType](https://cloud.tencent.com/document/product/1509/65063#MediaPreknownInfo) MediaType *int64 `json:"MediaType,omitnil,omitempty" name:"MediaType"` }
type MediaInfo ¶
type MediaInfo struct { // 媒资ID MediaId *string `json:"MediaId,omitnil,omitempty" name:"MediaId"` // 媒资名称 // 注意:此字段可能返回 null,表示取不到有效值。 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 媒资下载地址 // 注意:此字段可能返回 null,表示取不到有效值。 DownLoadURL *string `json:"DownLoadURL,omitnil,omitempty" name:"DownLoadURL"` // 媒资状态,取值参看上方表格 // 注意:此字段可能返回 null,表示取不到有效值。 Status *int64 `json:"Status,omitnil,omitempty" name:"Status"` // 若状态为失败,表示失败原因 // 注意:此字段可能返回 null,表示取不到有效值。 FailedReason *string `json:"FailedReason,omitnil,omitempty" name:"FailedReason"` // 媒资视频元信息,仅在MediaType=VIDEO时有效 // 注意:此字段可能返回 null,表示取不到有效值。 Metadata *MediaMetadata `json:"Metadata,omitnil,omitempty" name:"Metadata"` // 导入视频进度,取值范围为[0,100] // 注意:此字段可能返回 null,表示取不到有效值。 Progress *float64 `json:"Progress,omitnil,omitempty" name:"Progress"` // 媒资自定义标签 // 注意:此字段可能返回 null,表示取不到有效值。 Label *string `json:"Label,omitnil,omitempty" name:"Label"` // 媒资导入完成后的回调地址 // 注意:此字段可能返回 null,表示取不到有效值。 CallbackURL *string `json:"CallbackURL,omitnil,omitempty" name:"CallbackURL"` // 媒资文件类型,具体参看[MediaPreknownInfo](https://cloud.tencent.com/document/product/1509/65063#MediaPreknownInfo) // 注意:此字段可能返回 null,表示取不到有效值。 MediaType *int64 `json:"MediaType,omitnil,omitempty" name:"MediaType"` // 媒资音频元信息,仅在MediaType=Audio时有效 // 注意:此字段可能返回 null,表示取不到有效值。 AudioMetadata *AudioMetadata `json:"AudioMetadata,omitnil,omitempty" name:"AudioMetadata"` // 媒资图片文件元信息,仅在MediaType=Image时有效 // 注意:此字段可能返回 null,表示取不到有效值。 ImageMetadata *ImageMetadata `json:"ImageMetadata,omitnil,omitempty" name:"ImageMetadata"` // 媒资文本文件元信息,仅在MediaType=Text时有效 // 注意:此字段可能返回 null,表示取不到有效值。 TextMetadata *TextMetadata `json:"TextMetadata,omitnil,omitempty" name:"TextMetadata"` }
type MediaMetadata ¶
type MediaMetadata struct { // 媒资视频文件大小,单位为字节 FileSize *int64 `json:"FileSize,omitnil,omitempty" name:"FileSize"` // 媒资视频文件MD5 MD5 *string `json:"MD5,omitnil,omitempty" name:"MD5"` // 媒资视频时长,单位为秒 // 注意:此字段可能返回 null,表示取不到有效值。 Duration *float64 `json:"Duration,omitnil,omitempty" name:"Duration"` // 媒资视频总帧数 // 注意:此字段可能返回 null,表示取不到有效值。 NumFrames *int64 `json:"NumFrames,omitnil,omitempty" name:"NumFrames"` // 媒资视频宽度,单位为像素 // 注意:此字段可能返回 null,表示取不到有效值。 Width *int64 `json:"Width,omitnil,omitempty" name:"Width"` // 媒资视频高度,单位为像素 // 注意:此字段可能返回 null,表示取不到有效值。 Height *int64 `json:"Height,omitnil,omitempty" name:"Height"` // 媒资视频帧率,单位为Hz // 注意:此字段可能返回 null,表示取不到有效值。 FPS *float64 `json:"FPS,omitnil,omitempty" name:"FPS"` // 媒资视频比特率,单位为kbps // 注意:此字段可能返回 null,表示取不到有效值。 BitRate *int64 `json:"BitRate,omitnil,omitempty" name:"BitRate"` }
type MediaPreknownInfo ¶
type MediaPreknownInfo struct { // 媒资文件类型,参见MediaPreknownInfo结构体定义 MediaType *int64 `json:"MediaType,omitnil,omitempty" name:"MediaType"` // 媒资素材一级类型,参见MediaPreknownInfo结构体定义 MediaLabel *int64 `json:"MediaLabel,omitnil,omitempty" name:"MediaLabel"` // 媒资素材二级类型,参见MediaPreknownInfo结构体定义 // 注意:此字段可能返回 null,表示取不到有效值。 MediaSecondLabel *int64 `json:"MediaSecondLabel,omitnil,omitempty" name:"MediaSecondLabel"` // 媒资音频类型,参见MediaPreknownInfo结构体定义 // 注意:此字段可能返回 null,表示取不到有效值。 MediaLang *int64 `json:"MediaLang,omitnil,omitempty" name:"MediaLang"` }
type ModifyCallbackRequest ¶ added in v1.0.359
type ModifyCallbackRequest struct { *tchttp.BaseRequest // 任务分析完成后回调地址 TaskFinishNotifyURL *string `json:"TaskFinishNotifyURL,omitnil,omitempty" name:"TaskFinishNotifyURL"` // 媒体导入完成后回调地址 MediaFinishNotifyURL *string `json:"MediaFinishNotifyURL,omitnil,omitempty" name:"MediaFinishNotifyURL"` }
func NewModifyCallbackRequest ¶ added in v1.0.359
func NewModifyCallbackRequest() (request *ModifyCallbackRequest)
func (*ModifyCallbackRequest) FromJsonString ¶ added in v1.0.359
func (r *ModifyCallbackRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyCallbackRequest) ToJsonString ¶ added in v1.0.359
func (r *ModifyCallbackRequest) ToJsonString() string
type ModifyCallbackRequestParams ¶ added in v1.0.426
type ModifyCallbackRequestParams struct { // 任务分析完成后回调地址 TaskFinishNotifyURL *string `json:"TaskFinishNotifyURL,omitnil,omitempty" name:"TaskFinishNotifyURL"` // 媒体导入完成后回调地址 MediaFinishNotifyURL *string `json:"MediaFinishNotifyURL,omitnil,omitempty" name:"MediaFinishNotifyURL"` }
Predefined struct for user
type ModifyCallbackResponse ¶ added in v1.0.359
type ModifyCallbackResponse struct { *tchttp.BaseResponse Response *ModifyCallbackResponseParams `json:"Response"` }
func NewModifyCallbackResponse ¶ added in v1.0.359
func NewModifyCallbackResponse() (response *ModifyCallbackResponse)
func (*ModifyCallbackResponse) FromJsonString ¶ added in v1.0.359
func (r *ModifyCallbackResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyCallbackResponse) ToJsonString ¶ added in v1.0.359
func (r *ModifyCallbackResponse) ToJsonString() string
type ModifyCallbackResponseParams ¶ added in v1.0.426
type ModifyCallbackResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type MultiLevelPersonInfo ¶ added in v1.0.501
type MultiLevelPersonInfo struct { // 一级分类名称(分类信息参见自定义人物类型) // 注意:此字段可能返回 null,表示取不到有效值。 L1ClassifyName *string `json:"L1ClassifyName,omitnil,omitempty" name:"L1ClassifyName"` // 已分类人物信息数组(所有分类类型为二级分类) // 注意:此字段可能返回 null,表示取不到有效值。 L2ClassifiedPersonInfoSet []*ClassifiedPersonInfo `json:"L2ClassifiedPersonInfoSet,omitnil,omitempty" name:"L2ClassifiedPersonInfoSet"` // 检测结果来源 // 注意:此字段可能返回 null,表示取不到有效值。 Source *uint64 `json:"Source,omitnil,omitempty" name:"Source"` }
type MultiLevelTag ¶
type MultiLevelTag struct { // 树状标签信息 // 注意:此字段可能返回 null,表示取不到有效值。 TagSet []*L1Tag `json:"TagSet,omitnil,omitempty" name:"TagSet"` // 标签在识别结果中的定位信息 // 注意:此字段可能返回 null,表示取不到有效值。 AppearInfo *AppearInfo `json:"AppearInfo,omitnil,omitempty" name:"AppearInfo"` }
type PersonImageInfo ¶ added in v1.0.338
type PersonImageInfo struct { // 人脸图片ID ImageId *string `json:"ImageId,omitnil,omitempty" name:"ImageId"` // 自定义人脸图片的URL,存储在IVLDCustomPreson存储桶内 ImageURL *string `json:"ImageURL,omitnil,omitempty" name:"ImageURL"` // 自定义人脸图片处理错误码 ErrorCode *string `json:"ErrorCode,omitnil,omitempty" name:"ErrorCode"` // 自定义人脸图片处理错误信息 ErrorMsg *string `json:"ErrorMsg,omitnil,omitempty" name:"ErrorMsg"` }
type PersonInfo ¶ added in v1.0.361
type PersonInfo struct { // 公众人物姓名 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 公众人物职务 Job *string `json:"Job,omitnil,omitempty" name:"Job"` // 首次出现模态,可选值为[1,3],详细参见AppearIndex定义 FirstAppear *int64 `json:"FirstAppear,omitnil,omitempty" name:"FirstAppear"` // 人物出现信息 AppearInfo *AppearInfo `json:"AppearInfo,omitnil,omitempty" name:"AppearInfo"` // 人脸在图片中的位置,仅在图片标签任务有效 // 注意:此字段可能返回 null,表示取不到有效值。 AppearRect *Rectf `json:"AppearRect,omitnil,omitempty" name:"AppearRect"` }
type QueryCallbackRequest ¶ added in v1.0.359
type QueryCallbackRequest struct {
*tchttp.BaseRequest
}
func NewQueryCallbackRequest ¶ added in v1.0.359
func NewQueryCallbackRequest() (request *QueryCallbackRequest)
func (*QueryCallbackRequest) FromJsonString ¶ added in v1.0.359
func (r *QueryCallbackRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QueryCallbackRequest) ToJsonString ¶ added in v1.0.359
func (r *QueryCallbackRequest) ToJsonString() string
type QueryCallbackRequestParams ¶ added in v1.0.426
type QueryCallbackRequestParams struct { }
Predefined struct for user
type QueryCallbackResponse ¶ added in v1.0.359
type QueryCallbackResponse struct { *tchttp.BaseResponse Response *QueryCallbackResponseParams `json:"Response"` }
func NewQueryCallbackResponse ¶ added in v1.0.359
func NewQueryCallbackResponse() (response *QueryCallbackResponse)
func (*QueryCallbackResponse) FromJsonString ¶ added in v1.0.359
func (r *QueryCallbackResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QueryCallbackResponse) ToJsonString ¶ added in v1.0.359
func (r *QueryCallbackResponse) ToJsonString() string
type QueryCallbackResponseParams ¶ added in v1.0.426
type QueryCallbackResponseParams struct { // 任务分析完成后回调地址 TaskFinishNotifyURL *string `json:"TaskFinishNotifyURL,omitnil,omitempty" name:"TaskFinishNotifyURL"` // 媒体导入完成后回调地址 MediaFinishNotifyURL *string `json:"MediaFinishNotifyURL,omitnil,omitempty" name:"MediaFinishNotifyURL"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type Rectf ¶ added in v1.0.501
type Rectf struct { // 矩形框左上角水平座标 // 注意:此字段可能返回 null,表示取不到有效值。 X *float64 `json:"X,omitnil,omitempty" name:"X"` // 矩形框左上角竖直座标 // 注意:此字段可能返回 null,表示取不到有效值。 Y *float64 `json:"Y,omitnil,omitempty" name:"Y"` // 矩形框宽度 // 注意:此字段可能返回 null,表示取不到有效值。 Width *float64 `json:"Width,omitnil,omitempty" name:"Width"` // 矩形框长度 // 注意:此字段可能返回 null,表示取不到有效值。 Height *float64 `json:"Height,omitnil,omitempty" name:"Height"` }
type ShowInfo ¶
type ShowInfo struct { // 节目日期(只在新闻有效) // 注意:此字段可能返回 null,表示取不到有效值。 Date *string `json:"Date,omitnil,omitempty" name:"Date"` // 台标 // 注意:此字段可能返回 null,表示取不到有效值。 Logo *string `json:"Logo,omitnil,omitempty" name:"Logo"` // 节目名称 // 注意:此字段可能返回 null,表示取不到有效值。 Column *string `json:"Column,omitnil,omitempty" name:"Column"` // 来源信息 // 注意:此字段可能返回 null,表示取不到有效值。 Source *string `json:"Source,omitnil,omitempty" name:"Source"` // 节目封面 // 注意:此字段可能返回 null,表示取不到有效值。 CoverImageURL *string `json:"CoverImageURL,omitnil,omitempty" name:"CoverImageURL"` // 节目内容概要列表 // 注意:此字段可能返回 null,表示取不到有效值。 SummarySet []*string `json:"SummarySet,omitnil,omitempty" name:"SummarySet"` // 节目片段标题列表 // 注意:此字段可能返回 null,表示取不到有效值。 TitleSet []*string `json:"TitleSet,omitnil,omitempty" name:"TitleSet"` // 音频识别结果列表 // 注意:此字段可能返回 null,表示取不到有效值。 AudioInfoSet []*AudioInfo `json:"AudioInfoSet,omitnil,omitempty" name:"AudioInfoSet"` // 可视文字识别结果列表 // 注意:此字段可能返回 null,表示取不到有效值。 TextInfoSet []*TextInfo `json:"TextInfoSet,omitnil,omitempty" name:"TextInfoSet"` // 已分类人物信息列表 // 注意:此字段可能返回 null,表示取不到有效值。 ClassifiedPersonInfoSet []*ClassifiedPersonInfo `json:"ClassifiedPersonInfoSet,omitnil,omitempty" name:"ClassifiedPersonInfoSet"` // 文本标签列表,包含标签内容和出现信息 // 注意:此字段可能返回 null,表示取不到有效值。 TextTagSet *MultiLevelTag `json:"TextTagSet,omitnil,omitempty" name:"TextTagSet"` // 帧标签列表,包括人物信息,场景信息等 // 注意:此字段可能返回 null,表示取不到有效值。 FrameTagSet *MultiLevelTag `json:"FrameTagSet,omitnil,omitempty" name:"FrameTagSet"` // 视频下载地址 // 注意:此字段可能返回 null,表示取不到有效值。 WebMediaURL *string `json:"WebMediaURL,omitnil,omitempty" name:"WebMediaURL"` // 媒资分类信息 // 注意:此字段可能返回 null,表示取不到有效值。 MediaClassifierSet []*string `json:"MediaClassifierSet,omitnil,omitempty" name:"MediaClassifierSet"` // 概要标签信息 // 注意:此字段可能返回 null,表示取不到有效值。 SummaryTagSet []*string `json:"SummaryTagSet,omitnil,omitempty" name:"SummaryTagSet"` // 未知人物信息 // 注意:此字段可能返回 null,表示取不到有效值。 UnknownPersonSet []*UnknownPerson `json:"UnknownPersonSet,omitnil,omitempty" name:"UnknownPersonSet"` // 树状已分类人物信息 // 注意:此字段可能返回 null,表示取不到有效值。 MultiLevelPersonInfoSet []*MultiLevelPersonInfo `json:"MultiLevelPersonInfoSet,omitnil,omitempty" name:"MultiLevelPersonInfoSet"` }
type TaskFilter ¶
type TaskFilter struct { // 媒资文件类型 MediaTypeSet []*int64 `json:"MediaTypeSet,omitnil,omitempty" name:"MediaTypeSet"` // 待筛选的任务状态列表 TaskStatusSet []*int64 `json:"TaskStatusSet,omitnil,omitempty" name:"TaskStatusSet"` // 待筛选的任务名称数组 TaskNameSet []*string `json:"TaskNameSet,omitnil,omitempty" name:"TaskNameSet"` // TaskId数组 TaskIdSet []*string `json:"TaskIdSet,omitnil,omitempty" name:"TaskIdSet"` // 媒资文件名数组 MediaNameSet []*string `json:"MediaNameSet,omitnil,omitempty" name:"MediaNameSet"` // 媒资语言类型 MediaLangSet []*int64 `json:"MediaLangSet,omitnil,omitempty" name:"MediaLangSet"` // 媒资素材一级类型 MediaLabelSet []*int64 `json:"MediaLabelSet,omitnil,omitempty" name:"MediaLabelSet"` // 媒资自定义标签数组 LabelSet []*string `json:"LabelSet,omitnil,omitempty" name:"LabelSet"` }
type TaskInfo ¶
type TaskInfo struct { // 任务ID TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` // 描述任务名称,指定后可根据名称筛选 // 注意:此字段可能返回 null,表示取不到有效值。 TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` // 媒资文件ID MediaId *string `json:"MediaId,omitnil,omitempty" name:"MediaId"` // 任务执行状态 TaskStatus *int64 `json:"TaskStatus,omitnil,omitempty" name:"TaskStatus"` // 任务进度,范围为[0,100] // 注意:此字段可能返回 null,表示取不到有效值。 TaskProgress *float64 `json:"TaskProgress,omitnil,omitempty" name:"TaskProgress"` // 任务执行时间 // 注意:此字段可能返回 null,表示取不到有效值。 TaskTimeCost *int64 `json:"TaskTimeCost,omitnil,omitempty" name:"TaskTimeCost"` // 任务创建时间 TaskCreateTime *string `json:"TaskCreateTime,omitnil,omitempty" name:"TaskCreateTime"` // 任务开始执行时间 // 注意:此字段可能返回 null,表示取不到有效值。 TaskStartTime *string `json:"TaskStartTime,omitnil,omitempty" name:"TaskStartTime"` // 任务失败原因 // 注意:此字段可能返回 null,表示取不到有效值。 FailedReason *string `json:"FailedReason,omitnil,omitempty" name:"FailedReason"` // 任务执行时指定的先验知识 MediaPreknownInfo *MediaPreknownInfo `json:"MediaPreknownInfo,omitnil,omitempty" name:"MediaPreknownInfo"` // 媒资文件名称 // 注意:此字段可能返回 null,表示取不到有效值。 MediaName *string `json:"MediaName,omitnil,omitempty" name:"MediaName"` // 媒资自定义标签 // 注意:此字段可能返回 null,表示取不到有效值。 Label *string `json:"Label,omitnil,omitempty" name:"Label"` // 任务分析完成后的后调地址 // 注意:此字段可能返回 null,表示取不到有效值。 CallbackURL *string `json:"CallbackURL,omitnil,omitempty" name:"CallbackURL"` // 任务对应的媒资文件元信息,仅在MediaType为Audio时有效 // 注意:此字段可能返回 null,表示取不到有效值。 AudioMetadata *AudioMetadata `json:"AudioMetadata,omitnil,omitempty" name:"AudioMetadata"` // 任务对应的媒资文件元信息,仅在MediaType为Audio时有效 // 注意:此字段可能返回 null,表示取不到有效值。 ImageMetadata *ImageMetadata `json:"ImageMetadata,omitnil,omitempty" name:"ImageMetadata"` // 任务对应的媒资文件元信息,仅在MediaType为Text时有效 // 注意:此字段可能返回 null,表示取不到有效值。 TextMetadata *TextMetadata `json:"TextMetadata,omitnil,omitempty" name:"TextMetadata"` // 任务对应的媒资文件元信息,仅在MediaType为Video时有效 // 注意:此字段可能返回 null,表示取不到有效值。 Metadata *MediaMetadata `json:"Metadata,omitnil,omitempty" name:"Metadata"` }
type TextAppearInfo ¶
type TextAppearInfo struct { // 文本结果数组中的下标 Index *int64 `json:"Index,omitnil,omitempty" name:"Index"` // 关键词在文本中出现的起始偏移量(包含) StartPosition *int64 `json:"StartPosition,omitnil,omitempty" name:"StartPosition"` // 关键词在文本中出现的结束偏移量(不包含) EndPosition *int64 `json:"EndPosition,omitnil,omitempty" name:"EndPosition"` }
type TextData ¶ added in v1.0.501
type TextData struct { // 文本内容信息 // 注意:此字段可能返回 null,表示取不到有效值。 Content *string `json:"Content,omitnil,omitempty" name:"Content"` // 文本概要信息 // 注意:此字段可能返回 null,表示取不到有效值。 Summary *string `json:"Summary,omitnil,omitempty" name:"Summary"` // 文本标签信息 // 注意:此字段可能返回 null,表示取不到有效值。 TextTagSet *MultiLevelTag `json:"TextTagSet,omitnil,omitempty" name:"TextTagSet"` }
type TextInfo ¶
type TextInfo struct { // OCR提取的内容 Content *string `json:"Content,omitnil,omitempty" name:"Content"` // OCR起始时间戳,从0开始 StartTimeStamp *float64 `json:"StartTimeStamp,omitnil,omitempty" name:"StartTimeStamp"` // OCR结束时间戳,从0开始 EndTimeStamp *float64 `json:"EndTimeStamp,omitnil,omitempty" name:"EndTimeStamp"` // OCR标签信息 Tag *string `json:"Tag,omitnil,omitempty" name:"Tag"` }
type TextMetadata ¶ added in v1.0.501
type TextMetadata struct { // 媒资文本文件大小,单位为字节 // 注意:此字段可能返回 null,表示取不到有效值。 FileSize *int64 `json:"FileSize,omitnil,omitempty" name:"FileSize"` // 媒资文本文件MD5 // 注意:此字段可能返回 null,表示取不到有效值。 MD5 *string `json:"MD5,omitnil,omitempty" name:"MD5"` // 媒资文本文件字符数 // 注意:此字段可能返回 null,表示取不到有效值。 Length *int64 `json:"Length,omitnil,omitempty" name:"Length"` // 媒资文本文件格式 // 注意:此字段可能返回 null,表示取不到有效值。 Format *string `json:"Format,omitnil,omitempty" name:"Format"` }
type UnknownPerson ¶ added in v1.0.501
type UnknownPerson struct { // 视觉出现信息 // 注意:此字段可能返回 null,表示取不到有效值。 VideoAppearSet []*VideoAppearInfo `json:"VideoAppearSet,omitnil,omitempty" name:"VideoAppearSet"` // 未知人物是否可以入库(只有当未知人物人脸小图质量分符合要求时才可入库) // 注意:此字段可能返回 null,表示取不到有效值。 PutLibraryAllowed *bool `json:"PutLibraryAllowed,omitnil,omitempty" name:"PutLibraryAllowed"` }
type UpdateCustomCategoryRequest ¶ added in v1.0.338
type UpdateCustomCategoryRequest struct { *tchttp.BaseRequest // 自定义人物类型Id CategoryId *string `json:"CategoryId,omitnil,omitempty" name:"CategoryId"` // 一级自定义人物类型 L1Category *string `json:"L1Category,omitnil,omitempty" name:"L1Category"` // 二级自定义人物类型 L2Category *string `json:"L2Category,omitnil,omitempty" name:"L2Category"` }
func NewUpdateCustomCategoryRequest ¶ added in v1.0.338
func NewUpdateCustomCategoryRequest() (request *UpdateCustomCategoryRequest)
func (*UpdateCustomCategoryRequest) FromJsonString ¶ added in v1.0.338
func (r *UpdateCustomCategoryRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateCustomCategoryRequest) ToJsonString ¶ added in v1.0.338
func (r *UpdateCustomCategoryRequest) ToJsonString() string
type UpdateCustomCategoryRequestParams ¶ added in v1.0.426
type UpdateCustomCategoryRequestParams struct { // 自定义人物类型Id CategoryId *string `json:"CategoryId,omitnil,omitempty" name:"CategoryId"` // 一级自定义人物类型 L1Category *string `json:"L1Category,omitnil,omitempty" name:"L1Category"` // 二级自定义人物类型 L2Category *string `json:"L2Category,omitnil,omitempty" name:"L2Category"` }
Predefined struct for user
type UpdateCustomCategoryResponse ¶ added in v1.0.338
type UpdateCustomCategoryResponse struct { *tchttp.BaseResponse Response *UpdateCustomCategoryResponseParams `json:"Response"` }
func NewUpdateCustomCategoryResponse ¶ added in v1.0.338
func NewUpdateCustomCategoryResponse() (response *UpdateCustomCategoryResponse)
func (*UpdateCustomCategoryResponse) FromJsonString ¶ added in v1.0.338
func (r *UpdateCustomCategoryResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateCustomCategoryResponse) ToJsonString ¶ added in v1.0.338
func (r *UpdateCustomCategoryResponse) ToJsonString() string
type UpdateCustomCategoryResponseParams ¶ added in v1.0.426
type UpdateCustomCategoryResponseParams struct { // 成功更新的自定义人物类型Id CategoryId *string `json:"CategoryId,omitnil,omitempty" name:"CategoryId"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type UpdateCustomPersonRequest ¶ added in v1.0.338
type UpdateCustomPersonRequest struct { *tchttp.BaseRequest // 待更新的自定义人物Id PersonId *string `json:"PersonId,omitnil,omitempty" name:"PersonId"` // 更新后的自定义人物名称,如为空则不更新 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 更新后的自定义人物简介,如为空则不更新 BasicInfo *string `json:"BasicInfo,omitnil,omitempty" name:"BasicInfo"` // 更新后的分类信息,如为空则不更新 CategoryId *string `json:"CategoryId,omitnil,omitempty" name:"CategoryId"` }
func NewUpdateCustomPersonRequest ¶ added in v1.0.338
func NewUpdateCustomPersonRequest() (request *UpdateCustomPersonRequest)
func (*UpdateCustomPersonRequest) FromJsonString ¶ added in v1.0.338
func (r *UpdateCustomPersonRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateCustomPersonRequest) ToJsonString ¶ added in v1.0.338
func (r *UpdateCustomPersonRequest) ToJsonString() string
type UpdateCustomPersonRequestParams ¶ added in v1.0.426
type UpdateCustomPersonRequestParams struct { // 待更新的自定义人物Id PersonId *string `json:"PersonId,omitnil,omitempty" name:"PersonId"` // 更新后的自定义人物名称,如为空则不更新 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 更新后的自定义人物简介,如为空则不更新 BasicInfo *string `json:"BasicInfo,omitnil,omitempty" name:"BasicInfo"` // 更新后的分类信息,如为空则不更新 CategoryId *string `json:"CategoryId,omitnil,omitempty" name:"CategoryId"` }
Predefined struct for user
type UpdateCustomPersonResponse ¶ added in v1.0.338
type UpdateCustomPersonResponse struct { *tchttp.BaseResponse Response *UpdateCustomPersonResponseParams `json:"Response"` }
func NewUpdateCustomPersonResponse ¶ added in v1.0.338
func NewUpdateCustomPersonResponse() (response *UpdateCustomPersonResponse)
func (*UpdateCustomPersonResponse) FromJsonString ¶ added in v1.0.338
func (r *UpdateCustomPersonResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateCustomPersonResponse) ToJsonString ¶ added in v1.0.338
func (r *UpdateCustomPersonResponse) ToJsonString() string
type UpdateCustomPersonResponseParams ¶ added in v1.0.426
type UpdateCustomPersonResponseParams struct { // 成功更新的自定义人物Id PersonId *string `json:"PersonId,omitnil,omitempty" name:"PersonId"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type VideoAppearInfo ¶
type VideoAppearInfo struct { // 视觉信息起始时间戳,从0开始 StartTimeStamp *float64 `json:"StartTimeStamp,omitnil,omitempty" name:"StartTimeStamp"` // 视觉信息终止时间戳,从0开始 // 关键词在视觉信息中的区间为[StartTimeStamp, EndTimeStamp) EndTimeStamp *float64 `json:"EndTimeStamp,omitnil,omitempty" name:"EndTimeStamp"` // 关键词在视觉信息中的封面图片 ImageURL *string `json:"ImageURL,omitnil,omitempty" name:"ImageURL"` }