Documentation ¶
Index ¶
- type AudioCreateRequest
- type AudioCreateRequestCategories
- type AudioCreateRequestCategoriesEnum
- type AudioCreateRequestEventType
- type AudioCreateRequestEventTypeEnum
- type AudioCreateResponse
- type AudioInputBody
- type AudioModerationResultDetail
- type AudioModerationResultDetailSuggestion
- type AudioModerationResultDetailSuggestionEnum
- type AudioModerationResultRequestParams
- type AudioModerationResultRequestParamsData
- type AudioModerationResultResult
- type AudioModerationResultResultSuggestion
- type AudioModerationResultResultSuggestionEnum
- type AudioStreamCreateRequest
- type AudioStreamCreateRequestData
- type BatchCheckImageSyncRequest
- type BatchCheckImageSyncResponse
- type CheckImageModerationRequest
- type CheckImageModerationResponse
- type DocumentAudioDetail
- type DocumentCreateRequest
- type DocumentCreateRequestData
- type DocumentQueryResponseRequestParams
- type DocumentQueryResponseRequestParamsData
- type DocumentQueryResponseResult
- type DocumentQueryResponseResultDetails
- type DocumentQueryResponseResultSegments
- type DocumentVideoImageDetail
- type DocumentVideoImageDetailSegments
- type FaceLocationDetail
- type ImageBatchSyncDetectionResult
- type ImageBatchSyncReq
- type ImageBatchSyncReqImageTextConfig
- type ImageBatchSyncReqUrls
- type ImageDetectionReq
- type ImageDetectionReqLanguage
- type ImageDetectionReqLanguageEnum
- type ImageDetectionResult
- type ImageDetectionResultDetail
- type ImgTextConfig
- type OcrTextDetail
- type QrLocationDetail
- type RunCloseAudioStreamModerationJobRequest
- type RunCloseAudioStreamModerationJobResponse
- type RunCloseVideoStreamModerationJobRequest
- type RunCloseVideoStreamModerationJobResponse
- type RunCreateAudioModerationJobRequest
- type RunCreateAudioModerationJobResponse
- type RunCreateAudioStreamModerationJobRequest
- type RunCreateAudioStreamModerationJobResponse
- type RunCreateDocumentModerationJobRequest
- type RunCreateDocumentModerationJobResponse
- type RunCreateVideoModerationJobRequest
- type RunCreateVideoModerationJobResponse
- type RunCreateVideoStreamModerationJobRequest
- type RunCreateVideoStreamModerationJobResponse
- type RunQueryAudioModerationJobRequest
- type RunQueryAudioModerationJobResponse
- type RunQueryAudioModerationJobResponseStatus
- type RunQueryAudioModerationJobResponseStatusEnum
- type RunQueryDocumentModerationJobRequest
- type RunQueryDocumentModerationJobResponse
- type RunQueryVideoModerationJobRequest
- type RunQueryVideoModerationJobResponse
- type RunQueryVideoModerationJobResponseStatus
- type RunQueryVideoModerationJobResponseStatusEnum
- type RunTextModerationRequest
- type RunTextModerationResponse
- type SegmentResult
- type TextDetectionDataReq
- type TextDetectionDataReqLanguage
- type TextDetectionDataReqLanguageEnum
- type TextDetectionReq
- type TextDetectionResult
- type TextDetectionResultDetail
- type VideoCreateRequest
- type VideoCreateRequestAudioCategories
- type VideoCreateRequestAudioCategoriesEnum
- type VideoCreateRequestData
- type VideoCreateRequestDataLanguage
- type VideoCreateRequestDataLanguageEnum
- type VideoCreateRequestEventType
- type VideoCreateRequestEventTypeEnum
- type VideoCreateRequestImageCategories
- type VideoCreateRequestImageCategoriesEnum
- type VideoModerationAudioDetailList
- type VideoModerationAudioDetailListSuggestion
- type VideoModerationAudioDetailListSuggestionEnum
- type VideoModerationDetailSegment
- type VideoModerationImageDetail
- type VideoModerationImageDetailCategory
- type VideoModerationImageDetailCategoryEnum
- type VideoModerationImageDetailList
- type VideoModerationImageDetailListCategory
- type VideoModerationImageDetailListCategoryEnum
- type VideoModerationImageDetailListFaceLocation
- type VideoModerationImageDetailListQrLocation
- type VideoModerationImageDetailListSuggestion
- type VideoModerationImageDetailListSuggestionEnum
- type VideoModerationImageDetailSuggestion
- type VideoModerationImageDetailSuggestionEnum
- type VideoModerationResultRequestParams
- type VideoModerationResultRequestParamsData
- type VideoModerationResultResult
- type VideoModerationResultResultSuggestion
- type VideoModerationResultResultSuggestionEnum
- type VideoModerationVideoDetail
- type VideoModerationVideoDetailSuggestion
- type VideoModerationVideoDetailSuggestionEnum
- type VideoStreamCreateRequest
- type VideoStreamCreateRequestAudioCategories
- type VideoStreamCreateRequestAudioCategoriesEnum
- type VideoStreamCreateRequestData
- type VideoStreamCreateRequestEventType
- type VideoStreamCreateRequestEventTypeEnum
- type VideoStreamCreateRequestImageCategories
- type VideoStreamCreateRequestImageCategoriesEnum
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioCreateRequest ¶ added in v0.0.103
type AudioCreateRequest struct { Data *AudioInputBody `json:"data"` // 用户在控制台界面创建的biz_type名称,如果请求参数中传了biz_type则优先使用biz_type;如果用户没传biz_type则event_type和categories必须传。 BizType *string `json:"biz_type,omitempty"` // 事件类型,可选值如下: default:默认事件 audiobook:有声书 education:教育音频 game:游戏语音房 live:秀场直播 ecommerce:电商直播 voiceroom:交友语音房 private:私密语音聊天 EventType *AudioCreateRequestEventType `json:"event_type,omitempty"` // 需要检测的风险类型,列表不能为空。 风险类型如下: - porn:涉黄检测 - ad:广告检测 - moan:娇喘检测 - abuse:辱骂检测 Categories *[]AudioCreateRequestCategories `json:"categories,omitempty"` // 回调http接口:当该字段非空时,服务将根据该字段回调通知用户审核结果。 Callback *string `json:"callback,omitempty"` // 用于回调通知时校验请求由华为云内容安全服务发起,由您自定义。随机字符串,由英文字母、数字、下划线组成,不超过64个字符。 说明:当seed非空时,headers中将包含X-Auth-Signature字段,字段的值使用HmacSHA256算法生成,待加密字符串由create_time、job_id、request_id、seed按照顺序拼接而成,密钥为seed。 Seed *string `json:"seed,omitempty"` }
AudioCreateRequest 音频内容审核请求体
func (AudioCreateRequest) String ¶ added in v0.0.103
func (o AudioCreateRequest) String() string
type AudioCreateRequestCategories ¶ added in v0.0.103
type AudioCreateRequestCategories struct {
// contains filtered or unexported fields
}
func (AudioCreateRequestCategories) MarshalJSON ¶ added in v0.0.103
func (c AudioCreateRequestCategories) MarshalJSON() ([]byte, error)
func (*AudioCreateRequestCategories) UnmarshalJSON ¶ added in v0.0.103
func (c *AudioCreateRequestCategories) UnmarshalJSON(b []byte) error
func (AudioCreateRequestCategories) Value ¶ added in v0.0.103
func (c AudioCreateRequestCategories) Value() string
type AudioCreateRequestCategoriesEnum ¶ added in v0.0.103
type AudioCreateRequestCategoriesEnum struct { POLITICS AudioCreateRequestCategories PORN AudioCreateRequestCategories AD AudioCreateRequestCategories MOAN AudioCreateRequestCategories ABUSE AudioCreateRequestCategories }
func GetAudioCreateRequestCategoriesEnum ¶ added in v0.0.103
func GetAudioCreateRequestCategoriesEnum() AudioCreateRequestCategoriesEnum
type AudioCreateRequestEventType ¶ added in v0.0.103
type AudioCreateRequestEventType struct {
// contains filtered or unexported fields
}
func (AudioCreateRequestEventType) MarshalJSON ¶ added in v0.0.103
func (c AudioCreateRequestEventType) MarshalJSON() ([]byte, error)
func (*AudioCreateRequestEventType) UnmarshalJSON ¶ added in v0.0.103
func (c *AudioCreateRequestEventType) UnmarshalJSON(b []byte) error
func (AudioCreateRequestEventType) Value ¶ added in v0.0.103
func (c AudioCreateRequestEventType) Value() string
type AudioCreateRequestEventTypeEnum ¶ added in v0.0.103
type AudioCreateRequestEventTypeEnum struct { DEFAULT AudioCreateRequestEventType AUDIOBOOK AudioCreateRequestEventType EDUCATION AudioCreateRequestEventType GAME AudioCreateRequestEventType LIVE AudioCreateRequestEventType ECOMMERCE AudioCreateRequestEventType VOICEROOM AudioCreateRequestEventType PRIVATE AudioCreateRequestEventType }
func GetAudioCreateRequestEventTypeEnum ¶ added in v0.0.103
func GetAudioCreateRequestEventTypeEnum() AudioCreateRequestEventTypeEnum
type AudioCreateResponse ¶ added in v0.1.63
type AudioCreateResponse struct { // 本次请求的唯⼀标识,⽤于问题排查,建议保存。 RequestId *string `json:"request_id,omitempty"` // 作业唯一标识。 JobId *string `json:"job_id,omitempty"` }
func (AudioCreateResponse) String ¶ added in v0.1.63
func (o AudioCreateResponse) String() string
type AudioInputBody ¶ added in v0.0.103
type AudioInputBody struct { // 音频url地址。 Url string `json:"url"` // 支持的语言,默认为zh,zh:中文 Language *string `json:"language,omitempty"` }
AudioInputBody 音频数据的输入
func (AudioInputBody) String ¶ added in v0.0.103
func (o AudioInputBody) String() string
type AudioModerationResultDetail ¶ added in v0.1.1
type AudioModerationResultDetail struct { // 音频片段开始时间 StartTime *float32 `json:"start_time,omitempty"` // 音频片段审核处理建议: block:包含敏感信息,不通过 review:需要人工复检 Suggestion *AudioModerationResultDetailSuggestion `json:"suggestion,omitempty"` // 音频片段结束时间 EndTime *float32 `json:"end_time,omitempty"` // 音频片段标签 Label *string `json:"label,omitempty"` // 音频片段文本内容 AudioText *string `json:"audio_text,omitempty"` // 命中的风险片段信息列表,如果命中语义算法模型,则该字段不会存在 Segments *[]VideoModerationDetailSegment `json:"segments,omitempty"` }
func (AudioModerationResultDetail) String ¶ added in v0.1.1
func (o AudioModerationResultDetail) String() string
type AudioModerationResultDetailSuggestion ¶ added in v0.1.1
type AudioModerationResultDetailSuggestion struct {
// contains filtered or unexported fields
}
func (AudioModerationResultDetailSuggestion) MarshalJSON ¶ added in v0.1.1
func (c AudioModerationResultDetailSuggestion) MarshalJSON() ([]byte, error)
func (*AudioModerationResultDetailSuggestion) UnmarshalJSON ¶ added in v0.1.1
func (c *AudioModerationResultDetailSuggestion) UnmarshalJSON(b []byte) error
func (AudioModerationResultDetailSuggestion) Value ¶ added in v0.1.1
func (c AudioModerationResultDetailSuggestion) Value() string
type AudioModerationResultDetailSuggestionEnum ¶ added in v0.1.1
type AudioModerationResultDetailSuggestionEnum struct { BLOCK AudioModerationResultDetailSuggestion REVIEW AudioModerationResultDetailSuggestion }
func GetAudioModerationResultDetailSuggestionEnum ¶ added in v0.1.1
func GetAudioModerationResultDetailSuggestionEnum() AudioModerationResultDetailSuggestionEnum
type AudioModerationResultRequestParams ¶ added in v0.0.103
type AudioModerationResultRequestParams struct { // 创建作业时传的event_type参数 EventType *string `json:"event_type,omitempty"` Data *AudioModerationResultRequestParamsData `json:"data,omitempty"` // 创建作业时传的callback参数 Callback *string `json:"callback,omitempty"` // 创建作业时传的categories参数 Categories *[]string `json:"categories,omitempty"` }
AudioModerationResultRequestParams 作业创建参数
func (AudioModerationResultRequestParams) String ¶ added in v0.0.103
func (o AudioModerationResultRequestParams) String() string
type AudioModerationResultRequestParamsData ¶ added in v0.0.103
type AudioModerationResultRequestParamsData struct {
Url *string `json:"url,omitempty"`
}
AudioModerationResultRequestParamsData 创建作业时传的data参数
func (AudioModerationResultRequestParamsData) String ¶ added in v0.0.103
func (o AudioModerationResultRequestParamsData) String() string
type AudioModerationResultResult ¶ added in v0.0.103
type AudioModerationResultResult struct { // 音频审核结果是否通过。 block:包含敏感信息,不通过 pass:不包含敏感信息,通过 review:需要人工复检 Suggestion *AudioModerationResultResultSuggestion `json:"suggestion,omitempty"` // 审核详情 Details *[]AudioModerationResultDetail `json:"details,omitempty"` // 音频文本内容 AudioText *string `json:"audio_text,omitempty"` }
AudioModerationResultResult 作业审核结果,当作业状态为succeeded时存在
func (AudioModerationResultResult) String ¶ added in v0.0.103
func (o AudioModerationResultResult) String() string
type AudioModerationResultResultSuggestion ¶ added in v0.0.103
type AudioModerationResultResultSuggestion struct {
// contains filtered or unexported fields
}
func (AudioModerationResultResultSuggestion) MarshalJSON ¶ added in v0.0.103
func (c AudioModerationResultResultSuggestion) MarshalJSON() ([]byte, error)
func (*AudioModerationResultResultSuggestion) UnmarshalJSON ¶ added in v0.0.103
func (c *AudioModerationResultResultSuggestion) UnmarshalJSON(b []byte) error
func (AudioModerationResultResultSuggestion) Value ¶ added in v0.0.103
func (c AudioModerationResultResultSuggestion) Value() string
type AudioModerationResultResultSuggestionEnum ¶ added in v0.0.103
type AudioModerationResultResultSuggestionEnum struct { BLOCK AudioModerationResultResultSuggestion PASS AudioModerationResultResultSuggestion REVIEW AudioModerationResultResultSuggestion }
func GetAudioModerationResultResultSuggestionEnum ¶ added in v0.0.103
func GetAudioModerationResultResultSuggestionEnum() AudioModerationResultResultSuggestionEnum
type AudioStreamCreateRequest ¶ added in v0.1.63
type AudioStreamCreateRequest struct { Data *AudioStreamCreateRequestData `json:"data"` // 事件类型,可选值如下: default:默认事件 audiobook:有声书 education:教育音频 game:游戏语音房 live:秀场直播 ecommerce:电商直播 voiceroom:交友语音房 private:私密语音聊天 EventType string `json:"event_type"` // 需要检测的风险类型,列表不能为空。 porn:涉黄检测 politics: 涉政检测 abuse: 辱骂检测 ad: 广告检测 moan: 娇喘检测 Categories []string `json:"categories"` // 回调http接口,服务将根据该字段回调通知用户审核结果,流未结束时,回调审核违规内容,流结束时,审核片段违规或不违规都将回调客户端。 回调内容如下: “` { \"job_id\":\"xxxxxx\", \"status\":\"running\", //running - 审核中,succeeded - 审核完成,failed - 审核失败 \"request_id\":\"2419446b1fe14203f64e4018d12db3dd\", \"create_time\":\"2022-07-30T08:57:11.011Z\", \"update_time\":\"2022-07-30T08:57:14.014Z\", \"result\":{ \"suggestion\":\"block\", \"details\":[ { \"suggestion\":\"block\", \"label\":\"politics\", \"audio_text\":\"xxxx\", \"start_time\":\"2022-07-30T08:57:11.011Z\", // 当前音频片段开始的绝对时间 \"end_time\":\"2022-07-30T08:57:21.011Z\", // 当前音频片段结束的绝对时间 \"segments\":[ { \"segment\":\"xxx\" }, { \"segment\":\"xxx\" }, { \"segment\":\"xxx\" } ] } ], \"request_params\":{ \"event_type\":\"default\", \"data\":{ \"url\":\"rtmp://xxxx\" }, \"callback\":\"http://xxx\", \"categories\":[ \"porn\", \"ad\" ] } } } Callback string `json:"callback"` // 用于回调通知时校验请求由华为云内容安全服务发起,由您自定义。随机字符串,由英文字母、数字、下划线组成,不超过64个字符。 说明:当seed非空时,headers中将包含X-Auth-Signature字段,字段的值使用HmacSHA256算法生成,待加密字符串由create_time、job_id、request_id、seed按照顺序拼接而成,密钥为seed。 Seed *string `json:"seed,omitempty"` }
func (AudioStreamCreateRequest) String ¶ added in v0.1.63
func (o AudioStreamCreateRequest) String() string
type AudioStreamCreateRequestData ¶ added in v0.1.63
type AudioStreamCreateRequestData struct { // 音频流url地址,支持rtmp、rtmps、hls、http、https等主流协议。 Url string `json:"url"` // 指定音频流中语种类型 zh: 中文,默认值为zh Language *string `json:"language,omitempty"` }
AudioStreamCreateRequestData 音频流数据输入
func (AudioStreamCreateRequestData) String ¶ added in v0.1.63
func (o AudioStreamCreateRequestData) String() string
type BatchCheckImageSyncRequest ¶ added in v0.1.107
type BatchCheckImageSyncRequest struct {
Body *ImageBatchSyncReq `json:"body,omitempty"`
}
BatchCheckImageSyncRequest Request Object
func (BatchCheckImageSyncRequest) String ¶ added in v0.1.107
func (o BatchCheckImageSyncRequest) String() string
type BatchCheckImageSyncResponse ¶ added in v0.1.107
type BatchCheckImageSyncResponse struct { // 本次请求的唯⼀标识,⽤于问题排查,建议保存。 RequestId *string `json:"request_id,omitempty"` // 调用结果。 Results *[]ImageBatchSyncDetectionResult `json:"results,omitempty"` HttpStatusCode int `json:"-"` }
BatchCheckImageSyncResponse Response Object
func (BatchCheckImageSyncResponse) String ¶ added in v0.1.107
func (o BatchCheckImageSyncResponse) String() string
type CheckImageModerationRequest ¶ added in v0.1.3
type CheckImageModerationRequest struct { // 企业项目ID。Moderation支持通过企业项目管理(EPS)对不同用户组和用户的资源使用,进行分账。 获取方法:[进入“[企业项目管理](https://console.huaweicloud.com/eps/?region=cn-north-4#/projects/list)”页面,](tag:hc)[进入“[企业项目管理](https://console-intl.huaweicloud.com/eps/?region=ap-southeast-1#/projects/list)”页面,](tag:hk)单击企业项目名称,在企业项目详情页获取Enterprise-Project-Id(企业项目ID)。 企业项目创建步骤请参见用户指南。 > 说明: 创建企业项目后,在传参时,有以下三类场景。 - 携带正确的ID,正常使用Moderation服务,账单的企业项目会被分类到企业ID对应的企业项目中。 - 携带格式正确但不存在的ID,正常使用Moderation服务,账单的企业项目会显示对应不存在的企业项目ID。 - 不携带ID或格式错误ID(包含特殊字符等),正常使用Moderation服务,账单的企业项目会被分类到\"default\"中。 EnterpriseProjectId *string `json:"Enterprise-Project-Id,omitempty"` Body *ImageDetectionReq `json:"body,omitempty"` }
CheckImageModerationRequest Request Object
func (CheckImageModerationRequest) String ¶ added in v0.1.3
func (o CheckImageModerationRequest) String() string
type CheckImageModerationResponse ¶ added in v0.1.3
type CheckImageModerationResponse struct { // 本次请求的唯⼀标识,⽤于问题排查,建议保存。 RequestId *string `json:"request_id,omitempty"` Result *ImageDetectionResult `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
CheckImageModerationResponse Response Object
func (CheckImageModerationResponse) String ¶ added in v0.1.3
func (o CheckImageModerationResponse) String() string
type DocumentAudioDetail ¶ added in v0.1.65
type DocumentAudioDetail struct { // 音频片段开始时间 StartTime *float32 `json:"start_time,omitempty"` // 音频片段结束时间 EndTime *float32 `json:"end_time,omitempty"` // 音频片段审核处理建议: block:包含敏感信息,不通过 review:需要人工复检 Suggestion *string `json:"suggestion,omitempty"` // 音频片段文本内容 AudioText *string `json:"audio_text,omitempty"` // 音频片段标签 Label *string `json:"label,omitempty"` // 命中的风险片段信息列表 Segments *[]DocumentVideoImageDetailSegments `json:"segments,omitempty"` }
func (DocumentAudioDetail) String ¶ added in v0.1.65
func (o DocumentAudioDetail) String() string
type DocumentCreateRequest ¶ added in v0.1.65
type DocumentCreateRequest struct { Data *DocumentCreateRequestData `json:"data"` // 事件类型,可选值如下: default:默认事件 liberal_arts_education:文科教育 sciences_education:理科教育 news:新闻 forums:论坛 novels:小说 EventType string `json:"event_type"` // 文档中图片需要检测的风险类型,不传或为空时表示不审核图片内容, 可取值如下: politics: 涉政检测 porn:涉黄检测 terrorism: 暴恐检测 bad_scene: 不良场景检测 image_text: 图文检测 ImageCategories *[]string `json:"image_categories,omitempty"` // 文档中文本需要检测的风险类型,不传或为空时表示不审核文本内容, 可取值如下: default: 检测涉政、暴恐、违禁、色情、辱骂、广告等违规内容 TextCategories *[]string `json:"text_categories,omitempty"` // 网页视频中图片需要检测的风险类型,不传或为空时表示不审核网页视频内容, 可取值如下: politics: 涉政检测 porn:涉黄检测 terrorism: 暴恐检测 bad_scene: 不良场景检测 image_text: 图文检测 VideoImageCategories *[]string `json:"video_image_categories,omitempty"` // 网页视频中音频需要检测的风险类型,不传或为空时表示不审核网页视频中音频的内容, 可取值如下: politics: 涉政检测 porn:涉黄检测 ad:广告检测 abuse:辱骂检测 moan:娇喘检测 AudioCategories *[]string `json:"audio_categories,omitempty"` // 回调http接口:当该字段非空时,服务将根据该字段回调通知用户审核结果。 Callback *string `json:"callback,omitempty"` // 用于回调通知时校验请求由华为云内容安全服务发起,由您自定义。随机字符串,由英文字母、数字、下划线组成,不超过64个字符。 说明:当seed非空时,headers中将包含X-Auth-Signature字段,字段的值使用HmacSHA256算法生成,待加密字符串由create_time、job_id、request_id、seed按照顺序拼接而成,密钥为seed。 Seed *string `json:"seed,omitempty"` }
func (DocumentCreateRequest) String ¶ added in v0.1.65
func (o DocumentCreateRequest) String() string
type DocumentCreateRequestData ¶ added in v0.1.65
type DocumentCreateRequestData struct { // 文档url。目前支持:公网HTTP/HTTPS URL。 Url string `json:"url"` // 文档格式。可选值: docx pdf doc xls xlsx ppt pptx pps ppsx xltx xltm xlsb xlsm txt csv epub webpage 若format与文档实际格式不一致,则返回报错参数错误 Format string `json:"format"` // 当需要审核网页视频时,视频截帧频率间隔,单位为秒,取值范围为1~60s;若不传递默认5s截帧一次 FrameInterval *int32 `json:"frame_interval,omitempty"` }
DocumentCreateRequestData 文档数据输入
func (DocumentCreateRequestData) String ¶ added in v0.1.65
func (o DocumentCreateRequestData) String() string
type DocumentQueryResponseRequestParams ¶ added in v0.1.65
type DocumentQueryResponseRequestParams struct { Data *DocumentQueryResponseRequestParamsData `json:"data"` // 创建作业时传的event_type参数 EventType string `json:"event_type"` // 创建作业时传的image_categories参数 ImageCategories *[]string `json:"image_categories,omitempty"` // 创建作业时传的text_categories参数 TextCategories *[]string `json:"text_categories,omitempty"` // 创建作业时传的video_image_categories参数 VideoImageCategories *[]string `json:"video_image_categories,omitempty"` // 创建作业时传的audio_categories参数 AudioCategories *[]string `json:"audio_categories,omitempty"` // 创建作业时传的callback参数 Callback *string `json:"callback,omitempty"` }
DocumentQueryResponseRequestParams 作业创建参数
func (DocumentQueryResponseRequestParams) String ¶ added in v0.1.65
func (o DocumentQueryResponseRequestParams) String() string
type DocumentQueryResponseRequestParamsData ¶ added in v0.1.65
type DocumentQueryResponseRequestParamsData struct { // 创建作业时传的url参数。目前支持:公网HTTP/HTTPS URL。 Url string `json:"url"` // 创建作业时传的format参数 Format string `json:"format"` // 创建作业时传的frame_interval参数 FrameInterval *int32 `json:"frame_interval,omitempty"` }
DocumentQueryResponseRequestParamsData 创建作业时传的data参数
func (DocumentQueryResponseRequestParamsData) String ¶ added in v0.1.65
func (o DocumentQueryResponseRequestParamsData) String() string
type DocumentQueryResponseResult ¶ added in v0.1.65
type DocumentQueryResponseResult struct { // 文档审核结果是否通过。 block:包含敏感信息,不通过 review:需要人工复检 pass:不包含敏感信息,通过 Suggestion *string `json:"suggestion,omitempty"` // 审核详情 Details *[]DocumentQueryResponseResultDetails `json:"details,omitempty"` }
DocumentQueryResponseResult 作业审核结果,当作业状态为succeeded时存在。
func (DocumentQueryResponseResult) String ¶ added in v0.1.65
func (o DocumentQueryResponseResult) String() string
type DocumentQueryResponseResultDetails ¶ added in v0.1.65
type DocumentQueryResponseResultDetails struct { // 当前内容片段的处置建议: block:包含敏感信息,不通过 review:需要人工复检 Suggestion *string `json:"suggestion,omitempty"` // 当前内容片段的类型,可取值有: text: 文本 image: 图像 video: 视频 Type *string `json:"type,omitempty"` // 当前内容片段的风险类型: politics:涉政 terrorism:暴恐 porn:色情 sexy:性感 abuse:辱骂 ad:广告 qr_code:二维码 watermark:水印 meaningless:无意义 ban:违禁 bad_scene:不良场景 moan:娇喘 Label *string `json:"label,omitempty"` // 当前处理的片段索引 Index *int32 `json:"index,omitempty"` // 当前内容片段中的文本内容,仅当type为text时存在 Text *string `json:"text,omitempty"` // 当前文本内容片段在输入中的起始位置,仅当type为text时存在 StartPosition *int32 `json:"start_position,omitempty"` // 当前文本内容片段在输入中的结束位置,仅当type为text时存在 EndPosition *int32 `json:"end_position,omitempty"` // 网页图片url,仅当type为image且文档格式为webpage时存在 ImageUrl *string `json:"image_url,omitempty"` // 命中的风险片段信息列表,仅在有命中敏感词时才返回 Segments *[]DocumentQueryResponseResultSegments `json:"segments,omitempty"` // 网页视频中截帧部分审核详情 VideoImageDetails *[]DocumentVideoImageDetail `json:"video_image_details,omitempty"` // 网页视频中音频部分审核详情 AudioDetails *[]DocumentAudioDetail `json:"audio_details,omitempty"` }
func (DocumentQueryResponseResultDetails) String ¶ added in v0.1.65
func (o DocumentQueryResponseResultDetails) String() string
type DocumentQueryResponseResultSegments ¶ added in v0.1.65
type DocumentQueryResponseResultSegments struct { // 命中的敏感词 Segment *string `json:"segment,omitempty"` }
func (DocumentQueryResponseResultSegments) String ¶ added in v0.1.65
func (o DocumentQueryResponseResultSegments) String() string
type DocumentVideoImageDetail ¶ added in v0.1.65
type DocumentVideoImageDetail struct { // 截帧在视频文件中的时间,单位为秒 Time *float32 `json:"time,omitempty"` // 截帧审核结果是否通过。 block:包含敏感信息,不通过 review:需要人工复检 Suggestion *string `json:"suggestion,omitempty"` // 截帧检测出的文本 OcrText *string `json:"ocr_text,omitempty"` // 识别的详细标签 Label *string `json:"label,omitempty"` // 命中的文本风险片段列表 Segments *[]DocumentVideoImageDetailSegments `json:"segments,omitempty"` }
func (DocumentVideoImageDetail) String ¶ added in v0.1.65
func (o DocumentVideoImageDetail) String() string
type DocumentVideoImageDetailSegments ¶ added in v0.1.65
type DocumentVideoImageDetailSegments struct { // 命中的风险片段 Segment *string `json:"segment,omitempty"` }
func (DocumentVideoImageDetailSegments) String ¶ added in v0.1.65
func (o DocumentVideoImageDetailSegments) String() string
type FaceLocationDetail ¶ added in v0.1.3
type FaceLocationDetail struct { // 检测出人脸的左上角横坐标。 TopLeftX *int32 `json:"top_left_x,omitempty"` // 检测出人脸的左上角纵坐标。 TopLeftY *int32 `json:"top_left_y,omitempty"` // 检测出人脸的右下角横坐标。 BottomRightX *int32 `json:"bottom_right_x,omitempty"` // 检测出人脸的右下角纵坐标。 BottomRightY *int32 `json:"bottom_right_y,omitempty"` }
func (FaceLocationDetail) String ¶ added in v0.1.3
func (o FaceLocationDetail) String() string
type ImageBatchSyncDetectionResult ¶ added in v0.1.107
type ImageBatchSyncDetectionResult struct { // 审核结果是否通过。 - block:包含敏感信息,不通过。 - pass:不包含敏感信息,通过 。 - review:需要人工复检。 Suggestion *string `json:"suggestion,omitempty"` // 检测结果的一级标签。支持category列表如下: - terrorism: 暴恐 - porn: 色情 - image_text: 图文审核 Category *string `json:"category,omitempty"` // 检测详情。 Details *[]ImageDetectionResultDetail `json:"details,omitempty"` // 图文审核检测出的文本,只有在category参数配置image_text且检测出文本时展示该字段。 OcrText *string `json:"ocr_text,omitempty"` // 图片唯一标识。同一次请求中不可重复,由大小写英文字母、数字、下划线(_)、中划线(-)组成,不超过30个字符。 DataId string `json:"data_id"` // 调用失败时的错误码,具体请参见错误码。 调用成功时无此字段。 ErrorCode *string `json:"error_code,omitempty"` // 调用失败时的错误信息。 调用成功时无此字段。 ErrorMsg *string `json:"error_msg,omitempty"` }
func (ImageBatchSyncDetectionResult) String ¶ added in v0.1.107
func (o ImageBatchSyncDetectionResult) String() string
type ImageBatchSyncReq ¶ added in v0.1.107
type ImageBatchSyncReq struct { // 事件类型。可选值如下: - head_image:头像 - album:相册 - dynamic:动态 - article:帖子 - comment:评论 - room_cover:房间封面 - group_message:群聊图片 - message:私聊图片 - product:商品图片 EventType *string `json:"event_type,omitempty"` // 检测场景。可添加的检测场景如下: - terrorism:暴恐元素的检测。 - porn:涉黄元素的检测。 - image_text:广告图文的检测。 可通过配置上述场景,来完对应场景元素的检测。每个检测场景的检测次数会分类统计。 Categories *[]string `json:"categories,omitempty"` ImageTextConfig *ImageBatchSyncReqImageTextConfig `json:"image_text_config,omitempty"` // 图片url列表。 Urls []ImageBatchSyncReqUrls `json:"urls"` // 指定图片中文字语种类型。 - zh: 中文 - en: 英文 默认值为zh,中国站仅支持zh。 Language *string `json:"language,omitempty"` // 用户在控制台界面创建的自定义审核策略名称。 - 如果请求参数中包含biz_type则优先使用biztype。 - 如果未传biz_type则event_type和categories为必传参数。 BizType *string `json:"biz_type,omitempty"` }
ImageBatchSyncReq 图像审核批量同步接口请求参数Body体
func (ImageBatchSyncReq) String ¶ added in v0.1.107
func (o ImageBatchSyncReq) String() string
type ImageBatchSyncReqImageTextConfig ¶ added in v0.1.107
type ImageBatchSyncReqImageTextConfig struct { // 检测时使用的自定义黑名单词库列表。 BlackGlossaryNames *[]string `json:"black_glossary_names,omitempty"` // 检测时使用的自定义白名单词库列表。 WhiteGlossaryNames *[]string `json:"white_glossary_names,omitempty"` }
ImageBatchSyncReqImageTextConfig 图文审核黑白词库配置。
func (ImageBatchSyncReqImageTextConfig) String ¶ added in v0.1.107
func (o ImageBatchSyncReqImageTextConfig) String() string
type ImageBatchSyncReqUrls ¶ added in v0.1.107
type ImageBatchSyncReqUrls struct { // 图片url,目前支持:公网HTTP/HTTPS URL。 Url string `json:"url"` // 图片唯一标识。同一次请求中不可重复,由大小写英文字母、数字、下划线(_)、中划线(-)组成,不超过30个字符。 DataId string `json:"data_id"` }
func (ImageBatchSyncReqUrls) String ¶ added in v0.1.107
func (o ImageBatchSyncReqUrls) String() string
type ImageDetectionReq ¶ added in v0.1.3
type ImageDetectionReq struct { // 事件类型。 可选值如下: head_image:头像 album:相册 dynamic:动态 article:帖子 comment:评论 room_cover:房间封面 group_message:群聊图片 message:私聊图片 product:商品图片 EventType *string `json:"event_type,omitempty"` // 检测场景。可添加的检测场景如下: - terrorism:暴恐元素的检测。 - porn:涉黄元素的检测。 - image_text:广告图文的检测。 - 可通过配置上述场景,来完对应场景元素的检测。 > 每个检测场景的检测次数会分类统计。 Categories *[]string `json:"categories,omitempty"` ImageTextConfig *ImgTextConfig `json:"image_text_config,omitempty"` // 图片url, 与image二选一,目前支持: - 公网HTTP/HTTPS URL Url *string `json:"url,omitempty"` // 与url二选一,图片文件Base64编码字符串,要求base64编码后大小不超过10M,支持JPG/PNG/JPEG/WEBP/GIF/TIFF/TIF/HEIF等格式。 Image *string `json:"image,omitempty"` // 自定义审核策略名称,可在控制台配置;如果请求参数中传了biz_type则优先使用biz_type,如果用户没传biz_type则event_type和categories必须传。 BizType *string `json:"biz_type,omitempty"` // 可指定图片中文字语种类型 Language *ImageDetectionReqLanguage `json:"language,omitempty"` }
ImageDetectionReq 图像内容审核请求体
func (ImageDetectionReq) String ¶ added in v0.1.3
func (o ImageDetectionReq) String() string
type ImageDetectionReqLanguage ¶ added in v0.1.65
type ImageDetectionReqLanguage struct {
// contains filtered or unexported fields
}
func (ImageDetectionReqLanguage) MarshalJSON ¶ added in v0.1.65
func (c ImageDetectionReqLanguage) MarshalJSON() ([]byte, error)
func (*ImageDetectionReqLanguage) UnmarshalJSON ¶ added in v0.1.65
func (c *ImageDetectionReqLanguage) UnmarshalJSON(b []byte) error
func (ImageDetectionReqLanguage) Value ¶ added in v0.1.65
func (c ImageDetectionReqLanguage) Value() string
type ImageDetectionReqLanguageEnum ¶ added in v0.1.65
type ImageDetectionReqLanguageEnum struct {
ZH ImageDetectionReqLanguage
}
func GetImageDetectionReqLanguageEnum ¶ added in v0.1.65
func GetImageDetectionReqLanguageEnum() ImageDetectionReqLanguageEnum
type ImageDetectionResult ¶ added in v0.1.3
type ImageDetectionResult struct { // 审核结果是否通过。 block:包含敏感信息,不通过 pass:不包含敏感信息,通过 review:需要人工复检 Suggestion *string `json:"suggestion,omitempty"` // 检测结果的一级标签。 支持category列表如下: terrorism: 暴恐 porn: 色情 image_text: 图文审核 Category *string `json:"category,omitempty"` // 检测详情 Details *[]ImageDetectionResultDetail `json:"details,omitempty"` // 图文审核检测出的文本,只有在category参数配置image_text且检测出文本时展示该字段。 OcrText *string `json:"ocr_text,omitempty"` }
func (ImageDetectionResult) String ¶ added in v0.1.3
func (o ImageDetectionResult) String() string
type ImageDetectionResultDetail ¶ added in v0.1.3
type ImageDetectionResultDetail struct { // 审核结果是否通过。 block:包含敏感信息,不通过 review:需要人工复检 Suggestion string `json:"suggestion"` // 检测结果的一级标签。 支持category列表如下: terrorism: 暴恐 porn: 色情 image_text: 图文审核 Category string `json:"category"` // 置信度,可选值在0-1之间,值越大,可信度越高。 Confidence float32 `json:"confidence"` FaceLocation *FaceLocationDetail `json:"face_location,omitempty"` QrLocation *QrLocationDetail `json:"qr_location,omitempty"` // 图片中二维码指向的链接,当请求参数categories中包含image_text时存在。 QrContent *string `json:"qr_content,omitempty"` // image_text场景下命中的文本片段。 Segments *[]OcrTextDetail `json:"segments,omitempty"` // 识别的详细标签。 Label *string `json:"label,omitempty"` }
ImageDetectionResultDetail 返回结果的详细内容。
func (ImageDetectionResultDetail) String ¶ added in v0.1.3
func (o ImageDetectionResultDetail) String() string
type ImgTextConfig ¶ added in v0.1.3
type ImgTextConfig struct { // 检测时使用的自定义黑名单词库列表。 BlackGlossaryNames *[]string `json:"black_glossary_names,omitempty"` // 检测时使用的自定义白名单词库列表。 WhiteGlossaryNames *[]string `json:"white_glossary_names,omitempty"` }
ImgTextConfig 图文审核场景的黑白词库传入参数设置。
func (ImgTextConfig) String ¶ added in v0.1.3
func (o ImgTextConfig) String() string
type OcrTextDetail ¶ added in v0.1.3
type OcrTextDetail struct { // 命中的风险片段 Segment *string `json:"segment,omitempty"` // 命中的自定义词库名称。 命中自定义词库时,才会返回当前字段。 GlossaryName *string `json:"glossary_name,omitempty"` }
func (OcrTextDetail) String ¶ added in v0.1.3
func (o OcrTextDetail) String() string
type QrLocationDetail ¶ added in v0.1.3
type QrLocationDetail struct { // 检测出的二维码左上角横坐标。 TopLeftX *int32 `json:"top_left_x,omitempty"` // 检测出的二维码左上角纵坐标。 TopLeftY *int32 `json:"top_left_y,omitempty"` // 检测出的二维码右下角横坐标。 BottomRightX *int32 `json:"bottom_right_x,omitempty"` // 检测出的二维码右下角纵坐标。 BottomRightY *int32 `json:"bottom_right_y,omitempty"` }
func (QrLocationDetail) String ¶ added in v0.1.3
func (o QrLocationDetail) String() string
type RunCloseAudioStreamModerationJobRequest ¶ added in v0.1.63
type RunCloseAudioStreamModerationJobRequest struct { // 创建作业成功时,接口返回的job_id。 JobId string `json:"job_id"` }
RunCloseAudioStreamModerationJobRequest Request Object
func (RunCloseAudioStreamModerationJobRequest) String ¶ added in v0.1.63
func (o RunCloseAudioStreamModerationJobRequest) String() string
type RunCloseAudioStreamModerationJobResponse ¶ added in v0.1.63
type RunCloseAudioStreamModerationJobResponse struct { // 关闭音频流审核作业响应结果 Result *string `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
RunCloseAudioStreamModerationJobResponse Response Object
func (RunCloseAudioStreamModerationJobResponse) String ¶ added in v0.1.63
func (o RunCloseAudioStreamModerationJobResponse) String() string
type RunCloseVideoStreamModerationJobRequest ¶ added in v0.1.63
type RunCloseVideoStreamModerationJobRequest struct { // 创建作业成功时,接口返回的job_id。 JobId string `json:"job_id"` }
RunCloseVideoStreamModerationJobRequest Request Object
func (RunCloseVideoStreamModerationJobRequest) String ¶ added in v0.1.63
func (o RunCloseVideoStreamModerationJobRequest) String() string
type RunCloseVideoStreamModerationJobResponse ¶ added in v0.1.63
type RunCloseVideoStreamModerationJobResponse struct { // 关闭视频流内容审核作业结果 Result *string `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
RunCloseVideoStreamModerationJobResponse Response Object
func (RunCloseVideoStreamModerationJobResponse) String ¶ added in v0.1.63
func (o RunCloseVideoStreamModerationJobResponse) String() string
type RunCreateAudioModerationJobRequest ¶ added in v0.0.103
type RunCreateAudioModerationJobRequest struct {
Body *AudioCreateRequest `json:"body,omitempty"`
}
RunCreateAudioModerationJobRequest Request Object
func (RunCreateAudioModerationJobRequest) String ¶ added in v0.0.103
func (o RunCreateAudioModerationJobRequest) String() string
type RunCreateAudioModerationJobResponse ¶ added in v0.0.103
type RunCreateAudioModerationJobResponse struct { // 本次请求的唯⼀标识,⽤于问题排查,建议保存。 RequestId *string `json:"request_id,omitempty"` // 作业唯一标识。 JobId *string `json:"job_id,omitempty"` HttpStatusCode int `json:"-"` }
RunCreateAudioModerationJobResponse Response Object
func (RunCreateAudioModerationJobResponse) String ¶ added in v0.0.103
func (o RunCreateAudioModerationJobResponse) String() string
type RunCreateAudioStreamModerationJobRequest ¶ added in v0.1.63
type RunCreateAudioStreamModerationJobRequest struct {
Body *AudioStreamCreateRequest `json:"body,omitempty"`
}
RunCreateAudioStreamModerationJobRequest Request Object
func (RunCreateAudioStreamModerationJobRequest) String ¶ added in v0.1.63
func (o RunCreateAudioStreamModerationJobRequest) String() string
type RunCreateAudioStreamModerationJobResponse ¶ added in v0.1.63
type RunCreateAudioStreamModerationJobResponse struct { // 本次请求的唯⼀标识,⽤于问题排查,建议保存。 RequestId *string `json:"request_id,omitempty"` // 作业唯一标识。 JobId *string `json:"job_id,omitempty"` HttpStatusCode int `json:"-"` }
RunCreateAudioStreamModerationJobResponse Response Object
func (RunCreateAudioStreamModerationJobResponse) String ¶ added in v0.1.63
func (o RunCreateAudioStreamModerationJobResponse) String() string
type RunCreateDocumentModerationJobRequest ¶ added in v0.1.65
type RunCreateDocumentModerationJobRequest struct {
Body *DocumentCreateRequest `json:"body,omitempty"`
}
RunCreateDocumentModerationJobRequest Request Object
func (RunCreateDocumentModerationJobRequest) String ¶ added in v0.1.65
func (o RunCreateDocumentModerationJobRequest) String() string
type RunCreateDocumentModerationJobResponse ¶ added in v0.1.65
type RunCreateDocumentModerationJobResponse struct { // 本次请求的唯⼀标识,⽤于问题排查,建议保存。 RequestId *string `json:"request_id,omitempty"` // 作业唯一标识。 JobId *string `json:"job_id,omitempty"` HttpStatusCode int `json:"-"` }
RunCreateDocumentModerationJobResponse Response Object
func (RunCreateDocumentModerationJobResponse) String ¶ added in v0.1.65
func (o RunCreateDocumentModerationJobResponse) String() string
type RunCreateVideoModerationJobRequest ¶ added in v0.1.1
type RunCreateVideoModerationJobRequest struct {
Body *VideoCreateRequest `json:"body,omitempty"`
}
RunCreateVideoModerationJobRequest Request Object
func (RunCreateVideoModerationJobRequest) String ¶ added in v0.1.1
func (o RunCreateVideoModerationJobRequest) String() string
type RunCreateVideoModerationJobResponse ¶ added in v0.1.1
type RunCreateVideoModerationJobResponse struct { // 本次请求的唯⼀标识,⽤于问题排查,建议保存。 RequestId *string `json:"request_id,omitempty"` // 作业唯一标识。 JobId *string `json:"job_id,omitempty"` HttpStatusCode int `json:"-"` }
RunCreateVideoModerationJobResponse Response Object
func (RunCreateVideoModerationJobResponse) String ¶ added in v0.1.1
func (o RunCreateVideoModerationJobResponse) String() string
type RunCreateVideoStreamModerationJobRequest ¶ added in v0.1.63
type RunCreateVideoStreamModerationJobRequest struct {
Body *VideoStreamCreateRequest `json:"body,omitempty"`
}
RunCreateVideoStreamModerationJobRequest Request Object
func (RunCreateVideoStreamModerationJobRequest) String ¶ added in v0.1.63
func (o RunCreateVideoStreamModerationJobRequest) String() string
type RunCreateVideoStreamModerationJobResponse ¶ added in v0.1.63
type RunCreateVideoStreamModerationJobResponse struct { // 本次请求的唯⼀标识,⽤于问题排查,建议保存。 RequestId *string `json:"request_id,omitempty"` // 作业唯一标识。 JobId *string `json:"job_id,omitempty"` HttpStatusCode int `json:"-"` }
RunCreateVideoStreamModerationJobResponse Response Object
func (RunCreateVideoStreamModerationJobResponse) String ¶ added in v0.1.63
func (o RunCreateVideoStreamModerationJobResponse) String() string
type RunQueryAudioModerationJobRequest ¶ added in v0.0.103
type RunQueryAudioModerationJobRequest struct { // 创建作业成功时,接口返回的job_id。 JobId string `json:"job_id"` }
RunQueryAudioModerationJobRequest Request Object
func (RunQueryAudioModerationJobRequest) String ¶ added in v0.0.103
func (o RunQueryAudioModerationJobRequest) String() string
type RunQueryAudioModerationJobResponse ¶ added in v0.0.103
type RunQueryAudioModerationJobResponse struct { // 作业id JobId *string `json:"job_id,omitempty"` // 作业状态,可取值有: running: 正在运行 succeeded: 运行成功 failed: 运行失败 Status *RunQueryAudioModerationJobResponseStatus `json:"status,omitempty"` Result *AudioModerationResultResult `json:"result,omitempty"` RequestParams *AudioModerationResultRequestParams `json:"request_params,omitempty"` // 作业创建时间 CreateTime *string `json:"create_time,omitempty"` // 作业更新时间 UpdateTime *string `json:"update_time,omitempty"` // 本次请求的唯⼀标识,⽤于问题排查,建议保存。 RequestId *string `json:"request_id,omitempty"` HttpStatusCode int `json:"-"` }
RunQueryAudioModerationJobResponse Response Object
func (RunQueryAudioModerationJobResponse) String ¶ added in v0.0.103
func (o RunQueryAudioModerationJobResponse) String() string
type RunQueryAudioModerationJobResponseStatus ¶ added in v0.0.103
type RunQueryAudioModerationJobResponseStatus struct {
// contains filtered or unexported fields
}
func (RunQueryAudioModerationJobResponseStatus) MarshalJSON ¶ added in v0.0.103
func (c RunQueryAudioModerationJobResponseStatus) MarshalJSON() ([]byte, error)
func (*RunQueryAudioModerationJobResponseStatus) UnmarshalJSON ¶ added in v0.0.103
func (c *RunQueryAudioModerationJobResponseStatus) UnmarshalJSON(b []byte) error
func (RunQueryAudioModerationJobResponseStatus) Value ¶ added in v0.0.103
func (c RunQueryAudioModerationJobResponseStatus) Value() string
type RunQueryAudioModerationJobResponseStatusEnum ¶ added in v0.0.103
type RunQueryAudioModerationJobResponseStatusEnum struct { RUNNING RunQueryAudioModerationJobResponseStatus SUCCEEDED RunQueryAudioModerationJobResponseStatus FAILED RunQueryAudioModerationJobResponseStatus }
func GetRunQueryAudioModerationJobResponseStatusEnum ¶ added in v0.0.103
func GetRunQueryAudioModerationJobResponseStatusEnum() RunQueryAudioModerationJobResponseStatusEnum
type RunQueryDocumentModerationJobRequest ¶ added in v0.1.65
type RunQueryDocumentModerationJobRequest struct { // 创建作业成功时,接口返回的job_id。 JobId string `json:"job_id"` }
RunQueryDocumentModerationJobRequest Request Object
func (RunQueryDocumentModerationJobRequest) String ¶ added in v0.1.65
func (o RunQueryDocumentModerationJobRequest) String() string
type RunQueryDocumentModerationJobResponse ¶ added in v0.1.65
type RunQueryDocumentModerationJobResponse struct { // 作业id JobId *string `json:"job_id,omitempty"` // 作业状态,可取值有: running: 正在运行 succeeded: 运行成功 failed: 运行失败 Status *string `json:"status,omitempty"` Result *DocumentQueryResponseResult `json:"result,omitempty"` RequestParams *DocumentQueryResponseRequestParams `json:"request_params,omitempty"` // 作业创建时间 CreateTime *string `json:"create_time,omitempty"` // 作业更新时间 UpdateTime *string `json:"update_time,omitempty"` // 本次请求的唯⼀标识,⽤于问题排查,建议保存。 RequestId *string `json:"request_id,omitempty"` HttpStatusCode int `json:"-"` }
RunQueryDocumentModerationJobResponse Response Object
func (RunQueryDocumentModerationJobResponse) String ¶ added in v0.1.65
func (o RunQueryDocumentModerationJobResponse) String() string
type RunQueryVideoModerationJobRequest ¶ added in v0.1.1
type RunQueryVideoModerationJobRequest struct { // 创建作业成功时,接口返回的job_id。 JobId string `json:"job_id"` }
RunQueryVideoModerationJobRequest Request Object
func (RunQueryVideoModerationJobRequest) String ¶ added in v0.1.1
func (o RunQueryVideoModerationJobRequest) String() string
type RunQueryVideoModerationJobResponse ¶ added in v0.1.1
type RunQueryVideoModerationJobResponse struct { // 本次请求的唯⼀标识,⽤于问题排查,建议保存。 RequestId *string `json:"request_id,omitempty"` // 作业id JobId *string `json:"job_id,omitempty"` // 作业状态,可取值有: running: 正在运行 succeeded: 运行成功 failed: 运行失败 Status *RunQueryVideoModerationJobResponseStatus `json:"status,omitempty"` RequestParams *VideoModerationResultRequestParams `json:"request_params,omitempty"` // 作业创建时间 CreateTime *string `json:"create_time,omitempty"` // 作业更新时间 UpdateTime *string `json:"update_time,omitempty"` Result *VideoModerationResultResult `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
RunQueryVideoModerationJobResponse Response Object
func (RunQueryVideoModerationJobResponse) String ¶ added in v0.1.1
func (o RunQueryVideoModerationJobResponse) String() string
type RunQueryVideoModerationJobResponseStatus ¶ added in v0.1.1
type RunQueryVideoModerationJobResponseStatus struct {
// contains filtered or unexported fields
}
func (RunQueryVideoModerationJobResponseStatus) MarshalJSON ¶ added in v0.1.1
func (c RunQueryVideoModerationJobResponseStatus) MarshalJSON() ([]byte, error)
func (*RunQueryVideoModerationJobResponseStatus) UnmarshalJSON ¶ added in v0.1.1
func (c *RunQueryVideoModerationJobResponseStatus) UnmarshalJSON(b []byte) error
func (RunQueryVideoModerationJobResponseStatus) Value ¶ added in v0.1.1
func (c RunQueryVideoModerationJobResponseStatus) Value() string
type RunQueryVideoModerationJobResponseStatusEnum ¶ added in v0.1.1
type RunQueryVideoModerationJobResponseStatusEnum struct { RUNNING RunQueryVideoModerationJobResponseStatus SUCCEEDED RunQueryVideoModerationJobResponseStatus FAILED RunQueryVideoModerationJobResponseStatus }
func GetRunQueryVideoModerationJobResponseStatusEnum ¶ added in v0.1.1
func GetRunQueryVideoModerationJobResponseStatusEnum() RunQueryVideoModerationJobResponseStatusEnum
type RunTextModerationRequest ¶
type RunTextModerationRequest struct { // 企业项目ID。Moderation支持通过企业项目管理(EPS)对不同用户组和用户的资源使用,进行分账。 获取方法:[进入“[企业项目管理](https://console.huaweicloud.com/eps/?region=cn-north-4#/projects/list)”页面,](tag:hc)[进入“[企业项目管理](https://console-intl.huaweicloud.com/eps/?region=ap-southeast-1#/projects/list)”页面,](tag:hk)单击企业项目名称,在企业项目详情页获取Enterprise-Project-Id(企业项目ID)。 企业项目创建步骤请参见用户指南。 > 说明: 创建企业项目后,在传参时,有以下三类场景。 - 携带正确的ID,正常使用Moderation服务,账单的企业项目会被分类到企业ID对应的企业项目中。 - 携带格式正确但不存在的ID,正常使用Moderation服务,账单的企业项目会显示对应不存在的企业项目ID。 - 不携带ID或格式错误ID(包含特殊字符等),正常使用Moderation服务,账单的企业项目会被分类到\"default\"中。 EnterpriseProjectId *string `json:"Enterprise-Project-Id,omitempty"` Body *TextDetectionReq `json:"body,omitempty"` }
RunTextModerationRequest Request Object
func (RunTextModerationRequest) String ¶
func (o RunTextModerationRequest) String() string
type RunTextModerationResponse ¶
type RunTextModerationResponse struct { // 本次请求的唯⼀标识,⽤于问题排查,建议保存 RequestId *string `json:"request_id,omitempty"` Result *TextDetectionResult `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
RunTextModerationResponse Response Object
func (RunTextModerationResponse) String ¶
func (o RunTextModerationResponse) String() string
type SegmentResult ¶
type SegmentResult struct { // 命中的风险片段。 Segment *string `json:"segment,omitempty"` // 命中的自定义词库名称。 命中自定义词库时,才会返回当前字段。 GlossaryName *string `json:"glossary_name,omitempty"` // 命中的风险片段在文本中的位置,起始位置从0开始 Position *[]int32 `json:"position,omitempty"` }
func (SegmentResult) String ¶
func (o SegmentResult) String() string
type TextDetectionDataReq ¶
type TextDetectionDataReq struct { // 待检测文本,编码格式为“utf-8”,限定2000个字符以内,文本长度超过1500个字符时,只检测前1500个字符。 Text string `json:"text"` // 支持检测的文本语言 Language *TextDetectionDataReqLanguage `json:"language,omitempty"` }
func (TextDetectionDataReq) String ¶
func (o TextDetectionDataReq) String() string
type TextDetectionDataReqLanguage ¶ added in v0.1.65
type TextDetectionDataReqLanguage struct {
// contains filtered or unexported fields
}
func (TextDetectionDataReqLanguage) MarshalJSON ¶ added in v0.1.65
func (c TextDetectionDataReqLanguage) MarshalJSON() ([]byte, error)
func (*TextDetectionDataReqLanguage) UnmarshalJSON ¶ added in v0.1.65
func (c *TextDetectionDataReqLanguage) UnmarshalJSON(b []byte) error
func (TextDetectionDataReqLanguage) Value ¶ added in v0.1.65
func (c TextDetectionDataReqLanguage) Value() string
type TextDetectionDataReqLanguageEnum ¶ added in v0.1.65
type TextDetectionDataReqLanguageEnum struct {
ZH TextDetectionDataReqLanguage
}
func GetTextDetectionDataReqLanguageEnum ¶ added in v0.1.65
func GetTextDetectionDataReqLanguageEnum() TextDetectionDataReqLanguageEnum
type TextDetectionReq ¶
type TextDetectionReq struct { // 事件类型。 可选值如下: nickname: 昵称 title: 标题 article: 帖⼦ comment: 评论 barrage: 弹幕 search: 搜索栏 profile: 个⼈简介 EventType *string `json:"event_type,omitempty"` // 文本审核场景,可选值如下: terrorism: 暴恐 porn: 色情 ban: 违禁 abuse: 辱骂 ad: 广告 当categories缺省或为空时,默认审核terrorism、porn、ban、abuse、ad。 Categories *[]string `json:"categories,omitempty"` // 检测时使用的自定义黑名单词库列表。自定义黑词库的创建和使用请参见[配置定义黑名单词库](https://support.huaweicloud.com/api-moderation/moderation_03_0027.html#moderation_03_0027__section12400140132318)。 GlossaryNames *[]string `json:"glossary_names,omitempty"` Data *TextDetectionDataReq `json:"data"` // 检测时使用的自定义白名单词库列表。自定义白词库的创建和使用请参见[配置定义白名单词库](https://support.huaweicloud.com/api-moderation/moderation_03_0027.html#moderation_03_0027__section178844141394)。 WhiteGlossaryNames *[]string `json:"white_glossary_names,omitempty"` // 自定义审核策略名称,可在控制台配置;如果请求参数中传了biz_type则优先使用biz_type,如果用户没传biz_type则event_type必须传。 BizType *string `json:"biz_type,omitempty"` }
TextDetectionReq 文本内容审核请求体
func (TextDetectionReq) String ¶
func (o TextDetectionReq) String() string
type TextDetectionResult ¶
type TextDetectionResult struct { // 审核结果是否通过。 block:包含敏感信息,不通过 pass:不包含敏感信息,通过 review:需要人工复检 Suggestion *string `json:"suggestion,omitempty"` // 检测结果的标签。 支持label列表如下: politics: 涉政 terrorism: 暴恐 porn: 色情 ban: 违禁 abuse: 辱骂 ad: 广告 ad_law: 广告法 meaningless: ⽆意义 customized:自定义(命中自定义词库中的关键词) Label *string `json:"label,omitempty"` // 检测详情 Details *[]TextDetectionResultDetail `json:"details,omitempty"` }
func (TextDetectionResult) String ¶
func (o TextDetectionResult) String() string
type TextDetectionResultDetail ¶
type TextDetectionResultDetail struct { // 审核结果是否通过。 block:包含敏感信息,不通过 pass:不包含敏感信息,通过 review:需要人工复检 Suggestion *string `json:"suggestion,omitempty"` // 检测结果的标签。 支持label列表如下: politics: 涉政 terrorism: 暴恐 porn: 色情 ban: 违禁 abuse: 辱骂 ad: 广告 ad_law: 广告法 customized:自定义(命中自定义词库中的关键词) Label *string `json:"label,omitempty"` // 置信度,取值范围 0-1,值越⼤,可信度越⾼。 Confidence *float32 `json:"confidence,omitempty"` // 命中的风险片段信息,如果命中了语义算法模型,则会返回一个空的列表。 Segments *[]SegmentResult `json:"segments,omitempty"` }
func (TextDetectionResultDetail) String ¶
func (o TextDetectionResultDetail) String() string
type VideoCreateRequest ¶ added in v0.1.1
type VideoCreateRequest struct { Data *VideoCreateRequestData `json:"data"` // 用户在控制台界面创建的biz_type名称,如果请求参数中传了biz_type则优先使用biz_type;如果用户没传biz_type则event_type和image_categories必须传。 BizType *string `json:"biz_type,omitempty"` // 事件类型,可选值如下: default:默认事件 EventType *VideoCreateRequestEventType `json:"event_type,omitempty"` // 视频中画面需要检测的风险类型,列表不能为空。 terrorism:涉政暴恐内容的检测 porn:鉴黄内容的检测 politics:政治敏感人物内容的检测 image_text:图文违规内容的检测(检测图片中出现的广告、色情、暴恐、涉政的文字违规内容以及二维码内容) ImageCategories *[]VideoCreateRequestImageCategories `json:"image_categories,omitempty"` // 视频中音频需要检测的风险类型,不传或为空时表示不审核音频维度。 politics: 涉政检测 porn:涉黄检测 ad: 广告检测 moan: 娇喘检测 abuse: 辱骂检测 AudioCategories *[]VideoCreateRequestAudioCategories `json:"audio_categories,omitempty"` // 回调http接口:当该字段非空时,服务将根据该字段回调通知用户审核结果。 Callback *string `json:"callback,omitempty"` // 用于回调通知时校验请求由华为云内容安全服务发起,由您自定义。随机字符串,由英文字母、数字、下划线组成,不超过64个字符。 说明:当seed非空时,headers中将包含X-Auth-Signature字段,字段的值使用HmacSHA256算法生成,待加密字符串由create_time、job_id、request_id、seed按照顺序拼接而成,密钥为seed。 Seed *string `json:"seed,omitempty"` }
func (VideoCreateRequest) String ¶ added in v0.1.1
func (o VideoCreateRequest) String() string
type VideoCreateRequestAudioCategories ¶ added in v0.1.1
type VideoCreateRequestAudioCategories struct {
// contains filtered or unexported fields
}
func (VideoCreateRequestAudioCategories) MarshalJSON ¶ added in v0.1.1
func (c VideoCreateRequestAudioCategories) MarshalJSON() ([]byte, error)
func (*VideoCreateRequestAudioCategories) UnmarshalJSON ¶ added in v0.1.1
func (c *VideoCreateRequestAudioCategories) UnmarshalJSON(b []byte) error
func (VideoCreateRequestAudioCategories) Value ¶ added in v0.1.1
func (c VideoCreateRequestAudioCategories) Value() string
type VideoCreateRequestAudioCategoriesEnum ¶ added in v0.1.1
type VideoCreateRequestAudioCategoriesEnum struct { PORN VideoCreateRequestAudioCategories AD VideoCreateRequestAudioCategories POLITICS VideoCreateRequestAudioCategories MOAN VideoCreateRequestAudioCategories ABUSE VideoCreateRequestAudioCategories }
func GetVideoCreateRequestAudioCategoriesEnum ¶ added in v0.1.1
func GetVideoCreateRequestAudioCategoriesEnum() VideoCreateRequestAudioCategoriesEnum
type VideoCreateRequestData ¶ added in v0.1.1
type VideoCreateRequestData struct { // 视频url地址 Url string `json:"url"` // 截帧频率间隔,单位为秒,取值范围为1~60s;若不传递默认5s截帧一次 FrameInterval *int32 `json:"frame_interval,omitempty"` // 支持的语言,默认为zh zh:中文 Language *VideoCreateRequestDataLanguage `json:"language,omitempty"` }
VideoCreateRequestData 视频数据输入
func (VideoCreateRequestData) String ¶ added in v0.1.1
func (o VideoCreateRequestData) String() string
type VideoCreateRequestDataLanguage ¶ added in v0.1.47
type VideoCreateRequestDataLanguage struct {
// contains filtered or unexported fields
}
func (VideoCreateRequestDataLanguage) MarshalJSON ¶ added in v0.1.47
func (c VideoCreateRequestDataLanguage) MarshalJSON() ([]byte, error)
func (*VideoCreateRequestDataLanguage) UnmarshalJSON ¶ added in v0.1.47
func (c *VideoCreateRequestDataLanguage) UnmarshalJSON(b []byte) error
func (VideoCreateRequestDataLanguage) Value ¶ added in v0.1.47
func (c VideoCreateRequestDataLanguage) Value() string
type VideoCreateRequestDataLanguageEnum ¶ added in v0.1.47
type VideoCreateRequestDataLanguageEnum struct {
ZH VideoCreateRequestDataLanguage
}
func GetVideoCreateRequestDataLanguageEnum ¶ added in v0.1.47
func GetVideoCreateRequestDataLanguageEnum() VideoCreateRequestDataLanguageEnum
type VideoCreateRequestEventType ¶ added in v0.1.1
type VideoCreateRequestEventType struct {
// contains filtered or unexported fields
}
func (VideoCreateRequestEventType) MarshalJSON ¶ added in v0.1.1
func (c VideoCreateRequestEventType) MarshalJSON() ([]byte, error)
func (*VideoCreateRequestEventType) UnmarshalJSON ¶ added in v0.1.1
func (c *VideoCreateRequestEventType) UnmarshalJSON(b []byte) error
func (VideoCreateRequestEventType) Value ¶ added in v0.1.1
func (c VideoCreateRequestEventType) Value() string
type VideoCreateRequestEventTypeEnum ¶ added in v0.1.1
type VideoCreateRequestEventTypeEnum struct {
DEFAULT VideoCreateRequestEventType
}
func GetVideoCreateRequestEventTypeEnum ¶ added in v0.1.1
func GetVideoCreateRequestEventTypeEnum() VideoCreateRequestEventTypeEnum
type VideoCreateRequestImageCategories ¶ added in v0.1.1
type VideoCreateRequestImageCategories struct {
// contains filtered or unexported fields
}
func (VideoCreateRequestImageCategories) MarshalJSON ¶ added in v0.1.1
func (c VideoCreateRequestImageCategories) MarshalJSON() ([]byte, error)
func (*VideoCreateRequestImageCategories) UnmarshalJSON ¶ added in v0.1.1
func (c *VideoCreateRequestImageCategories) UnmarshalJSON(b []byte) error
func (VideoCreateRequestImageCategories) Value ¶ added in v0.1.1
func (c VideoCreateRequestImageCategories) Value() string
type VideoCreateRequestImageCategoriesEnum ¶ added in v0.1.1
type VideoCreateRequestImageCategoriesEnum struct { PORN VideoCreateRequestImageCategories POLITICS VideoCreateRequestImageCategories TERRORISM VideoCreateRequestImageCategories IMAGE_TEXT VideoCreateRequestImageCategories }
func GetVideoCreateRequestImageCategoriesEnum ¶ added in v0.1.1
func GetVideoCreateRequestImageCategoriesEnum() VideoCreateRequestImageCategoriesEnum
type VideoModerationAudioDetailList ¶ added in v0.1.1
type VideoModerationAudioDetailList struct { // 风险置信度 Confidence *float32 `json:"confidence,omitempty"` // 风险标签 Label *string `json:"label,omitempty"` // 审核处理建议: block:包含敏感信息,不通过 review:需要人工复检 Suggestion *VideoModerationAudioDetailListSuggestion `json:"suggestion,omitempty"` // 命中的风险片段信息列表,如果命中语义算法模型,则该字段不会存在 Segments *[]VideoModerationDetailSegment `json:"segments,omitempty"` }
func (VideoModerationAudioDetailList) String ¶ added in v0.1.1
func (o VideoModerationAudioDetailList) String() string
type VideoModerationAudioDetailListSuggestion ¶ added in v0.1.1
type VideoModerationAudioDetailListSuggestion struct {
// contains filtered or unexported fields
}
func (VideoModerationAudioDetailListSuggestion) MarshalJSON ¶ added in v0.1.1
func (c VideoModerationAudioDetailListSuggestion) MarshalJSON() ([]byte, error)
func (*VideoModerationAudioDetailListSuggestion) UnmarshalJSON ¶ added in v0.1.1
func (c *VideoModerationAudioDetailListSuggestion) UnmarshalJSON(b []byte) error
func (VideoModerationAudioDetailListSuggestion) Value ¶ added in v0.1.1
func (c VideoModerationAudioDetailListSuggestion) Value() string
type VideoModerationAudioDetailListSuggestionEnum ¶ added in v0.1.1
type VideoModerationAudioDetailListSuggestionEnum struct { BLOCK VideoModerationAudioDetailListSuggestion REVIEW VideoModerationAudioDetailListSuggestion }
func GetVideoModerationAudioDetailListSuggestionEnum ¶ added in v0.1.1
func GetVideoModerationAudioDetailListSuggestionEnum() VideoModerationAudioDetailListSuggestionEnum
type VideoModerationDetailSegment ¶ added in v0.1.1
type VideoModerationDetailSegment struct { // 命中的风险片段 Segment *string `json:"segment,omitempty"` }
func (VideoModerationDetailSegment) String ¶ added in v0.1.1
func (o VideoModerationDetailSegment) String() string
type VideoModerationImageDetail ¶ added in v0.1.1
type VideoModerationImageDetail struct { // 图像审核结果是否通过。 block:包含敏感信息,不通过 review:需要人工复检 Suggestion *VideoModerationImageDetailSuggestion `json:"suggestion,omitempty"` // 检测结果的一级标签。 支持category列表如下: politics: 涉政 terrorism: 暴恐 porn: 色情 image_text: 图文审核 Category *VideoModerationImageDetailCategory `json:"category,omitempty"` // 图文审核检测出的文本,只有在category参数配置image_text且检测出文本时展示该字段。 OcrText *string `json:"ocr_text,omitempty"` // 截帧在视频文件中的时间,单位为秒 Time *float32 `json:"time,omitempty"` // 图像帧审核详情 Detail *[]VideoModerationImageDetailList `json:"detail,omitempty"` }
func (VideoModerationImageDetail) String ¶ added in v0.1.1
func (o VideoModerationImageDetail) String() string
type VideoModerationImageDetailCategory ¶ added in v0.1.1
type VideoModerationImageDetailCategory struct {
// contains filtered or unexported fields
}
func (VideoModerationImageDetailCategory) MarshalJSON ¶ added in v0.1.1
func (c VideoModerationImageDetailCategory) MarshalJSON() ([]byte, error)
func (*VideoModerationImageDetailCategory) UnmarshalJSON ¶ added in v0.1.1
func (c *VideoModerationImageDetailCategory) UnmarshalJSON(b []byte) error
func (VideoModerationImageDetailCategory) Value ¶ added in v0.1.1
func (c VideoModerationImageDetailCategory) Value() string
type VideoModerationImageDetailCategoryEnum ¶ added in v0.1.1
type VideoModerationImageDetailCategoryEnum struct { POLITICS VideoModerationImageDetailCategory TERRORISM VideoModerationImageDetailCategory PORN VideoModerationImageDetailCategory IMAGE_TEXT VideoModerationImageDetailCategory }
func GetVideoModerationImageDetailCategoryEnum ¶ added in v0.1.1
func GetVideoModerationImageDetailCategoryEnum() VideoModerationImageDetailCategoryEnum
type VideoModerationImageDetailList ¶ added in v0.1.1
type VideoModerationImageDetailList struct { // 置信度,可选值在0-1之间,值越大,可信度越高。 Confidence *float32 `json:"confidence,omitempty"` // 检测结果的一级标签。 支持category列表如下: politics: 涉政 terrorism: 暴恐 porn: 色情 image_text: 图文审核 Category *VideoModerationImageDetailListCategory `json:"category,omitempty"` // 审核结果是否通过。 block:包含敏感信息,不通过 review:需要人工复检 Suggestion *VideoModerationImageDetailListSuggestion `json:"suggestion,omitempty"` // 识别的详细标签。 Label *string `json:"label,omitempty"` FaceLocation *VideoModerationImageDetailListFaceLocation `json:"face_location,omitempty"` QrLocation *VideoModerationImageDetailListQrLocation `json:"qr_location,omitempty"` // 图片中二维码指向的链接,当请求参数categories中包含image_text时存在。 QrContent *string `json:"qr_content,omitempty"` // image_text场景下命中的文本片段。 Segments *[]VideoModerationDetailSegment `json:"segments,omitempty"` }
func (VideoModerationImageDetailList) String ¶ added in v0.1.1
func (o VideoModerationImageDetailList) String() string
type VideoModerationImageDetailListCategory ¶ added in v0.1.1
type VideoModerationImageDetailListCategory struct {
// contains filtered or unexported fields
}
func (VideoModerationImageDetailListCategory) MarshalJSON ¶ added in v0.1.1
func (c VideoModerationImageDetailListCategory) MarshalJSON() ([]byte, error)
func (*VideoModerationImageDetailListCategory) UnmarshalJSON ¶ added in v0.1.1
func (c *VideoModerationImageDetailListCategory) UnmarshalJSON(b []byte) error
func (VideoModerationImageDetailListCategory) Value ¶ added in v0.1.1
func (c VideoModerationImageDetailListCategory) Value() string
type VideoModerationImageDetailListCategoryEnum ¶ added in v0.1.1
type VideoModerationImageDetailListCategoryEnum struct { POLITICS VideoModerationImageDetailListCategory TERRORISM VideoModerationImageDetailListCategory PORN VideoModerationImageDetailListCategory IMAGE_TEXT VideoModerationImageDetailListCategory }
func GetVideoModerationImageDetailListCategoryEnum ¶ added in v0.1.1
func GetVideoModerationImageDetailListCategoryEnum() VideoModerationImageDetailListCategoryEnum
type VideoModerationImageDetailListFaceLocation ¶ added in v0.1.1
type VideoModerationImageDetailListFaceLocation struct { // 检测出人脸的左上角横坐标。 TopLeftX *int32 `json:"top_left_x,omitempty"` // 检测出人脸的左上角纵坐标。 TopLeftY *int32 `json:"top_left_y,omitempty"` // 检测出人脸的右下角横坐标。 BottomRightX *int32 `json:"bottom_right_x,omitempty"` // 检测出人脸的右下角纵坐标。 BottomRightY *int32 `json:"bottom_right_y,omitempty"` }
VideoModerationImageDetailListFaceLocation 人物位置信息,该数组有四个值,分别代表左上角的坐标和右下角的坐标。例如[207,522,340,567] 207代表的是左上角的坐标 522代表左上角的坐标 340代表的是右下角的坐标 567代表的是右下角的坐标。
func (VideoModerationImageDetailListFaceLocation) String ¶ added in v0.1.1
func (o VideoModerationImageDetailListFaceLocation) String() string
type VideoModerationImageDetailListQrLocation ¶ added in v0.1.1
type VideoModerationImageDetailListQrLocation struct { // 检测出的二维码左上角横坐标。 TopLeftX *int32 `json:"top_left_x,omitempty"` // 检测出的二维码左上角纵坐标。 TopLeftY *int32 `json:"top_left_y,omitempty"` // 检测出的二维码右下角横坐标。 BottomRightX *int32 `json:"bottom_right_x,omitempty"` // 检测出的二维码右下角纵坐标。 BottomRightY *int32 `json:"bottom_right_y,omitempty"` }
VideoModerationImageDetailListQrLocation 二维码位置信息,该数组有四个值,分别代表左上角的坐标和右下角的坐标。例如[207,522,340,567] 207代表的是左上角的坐标 522代表左上角的坐标 340代表的是右下角的坐标 567代表的是右下角的坐标。
func (VideoModerationImageDetailListQrLocation) String ¶ added in v0.1.1
func (o VideoModerationImageDetailListQrLocation) String() string
type VideoModerationImageDetailListSuggestion ¶ added in v0.1.1
type VideoModerationImageDetailListSuggestion struct {
// contains filtered or unexported fields
}
func (VideoModerationImageDetailListSuggestion) MarshalJSON ¶ added in v0.1.1
func (c VideoModerationImageDetailListSuggestion) MarshalJSON() ([]byte, error)
func (*VideoModerationImageDetailListSuggestion) UnmarshalJSON ¶ added in v0.1.1
func (c *VideoModerationImageDetailListSuggestion) UnmarshalJSON(b []byte) error
func (VideoModerationImageDetailListSuggestion) Value ¶ added in v0.1.1
func (c VideoModerationImageDetailListSuggestion) Value() string
type VideoModerationImageDetailListSuggestionEnum ¶ added in v0.1.1
type VideoModerationImageDetailListSuggestionEnum struct { BLOCK VideoModerationImageDetailListSuggestion REVIEW VideoModerationImageDetailListSuggestion }
func GetVideoModerationImageDetailListSuggestionEnum ¶ added in v0.1.1
func GetVideoModerationImageDetailListSuggestionEnum() VideoModerationImageDetailListSuggestionEnum
type VideoModerationImageDetailSuggestion ¶ added in v0.1.1
type VideoModerationImageDetailSuggestion struct {
// contains filtered or unexported fields
}
func (VideoModerationImageDetailSuggestion) MarshalJSON ¶ added in v0.1.1
func (c VideoModerationImageDetailSuggestion) MarshalJSON() ([]byte, error)
func (*VideoModerationImageDetailSuggestion) UnmarshalJSON ¶ added in v0.1.1
func (c *VideoModerationImageDetailSuggestion) UnmarshalJSON(b []byte) error
func (VideoModerationImageDetailSuggestion) Value ¶ added in v0.1.1
func (c VideoModerationImageDetailSuggestion) Value() string
type VideoModerationImageDetailSuggestionEnum ¶ added in v0.1.1
type VideoModerationImageDetailSuggestionEnum struct { BLOCK VideoModerationImageDetailSuggestion REVIEW VideoModerationImageDetailSuggestion }
func GetVideoModerationImageDetailSuggestionEnum ¶ added in v0.1.1
func GetVideoModerationImageDetailSuggestionEnum() VideoModerationImageDetailSuggestionEnum
type VideoModerationResultRequestParams ¶ added in v0.1.1
type VideoModerationResultRequestParams struct { Data *VideoModerationResultRequestParamsData `json:"data"` // 创建作业时传的event_type参数 EventType string `json:"event_type"` // 创建作业时传的image_categories参数 ImageCategories []string `json:"image_categories"` // 创建作业时传的audio_categories参数 AudioCategories *[]string `json:"audio_categories,omitempty"` // 创建作业时传的callback参数 Callback *string `json:"callback,omitempty"` }
VideoModerationResultRequestParams 作业创建参数
func (VideoModerationResultRequestParams) String ¶ added in v0.1.1
func (o VideoModerationResultRequestParams) String() string
type VideoModerationResultRequestParamsData ¶ added in v0.1.1
type VideoModerationResultRequestParamsData struct { // 创建作业时传的url参数 Url string `json:"url"` // 创建作业时传的frame_interval参数,默认为5秒截取一帧 FrameInterval *int32 `json:"frame_interval,omitempty"` }
VideoModerationResultRequestParamsData 创建作业时传的data参数
func (VideoModerationResultRequestParamsData) String ¶ added in v0.1.1
func (o VideoModerationResultRequestParamsData) String() string
type VideoModerationResultResult ¶ added in v0.1.1
type VideoModerationResultResult struct { // 视频审核结果是否通过。 block:包含敏感信息,不通过 review:需要人工复检 pass:不包含敏感信息,通过 Suggestion *VideoModerationResultResultSuggestion `json:"suggestion,omitempty"` // 图像审核详情 ImageDetail *[]VideoModerationImageDetail `json:"image_detail,omitempty"` // 音频审核详情 AudioDetail *[]VideoModerationVideoDetail `json:"audio_detail,omitempty"` }
VideoModerationResultResult 作业审核结果,当作业状态为succeeded时存在
func (VideoModerationResultResult) String ¶ added in v0.1.1
func (o VideoModerationResultResult) String() string
type VideoModerationResultResultSuggestion ¶ added in v0.1.1
type VideoModerationResultResultSuggestion struct {
// contains filtered or unexported fields
}
func (VideoModerationResultResultSuggestion) MarshalJSON ¶ added in v0.1.1
func (c VideoModerationResultResultSuggestion) MarshalJSON() ([]byte, error)
func (*VideoModerationResultResultSuggestion) UnmarshalJSON ¶ added in v0.1.1
func (c *VideoModerationResultResultSuggestion) UnmarshalJSON(b []byte) error
func (VideoModerationResultResultSuggestion) Value ¶ added in v0.1.1
func (c VideoModerationResultResultSuggestion) Value() string
type VideoModerationResultResultSuggestionEnum ¶ added in v0.1.1
type VideoModerationResultResultSuggestionEnum struct { BLOCK VideoModerationResultResultSuggestion PASS VideoModerationResultResultSuggestion REVIEW VideoModerationResultResultSuggestion }
func GetVideoModerationResultResultSuggestionEnum ¶ added in v0.1.1
func GetVideoModerationResultResultSuggestionEnum() VideoModerationResultResultSuggestionEnum
type VideoModerationVideoDetail ¶ added in v0.1.1
type VideoModerationVideoDetail struct { // 音频片段审核结果是否通过。 block:包含敏感信息,不通过 review:需要人工复检 Suggestion *VideoModerationVideoDetailSuggestion `json:"suggestion,omitempty"` // 音频片段检测标签,选取detail中置信度最大的标签,可取值如下: politics: 涉政 terrorism: 暴恐 porn: 色情 ad: 广告 ad_law: 广告法 abuse: 辱骂 ban: 违禁 meaningless: 无意义 moan: 娇喘 Label *string `json:"label,omitempty"` // 音频片段文本内容 AudioText *string `json:"audio_text,omitempty"` // 音频片段结束时间 EndTime *float32 `json:"end_time,omitempty"` // 音频片段开始时间 StartTime *float32 `json:"start_time,omitempty"` // 音频片段审核详情 Detail *[]VideoModerationAudioDetailList `json:"detail,omitempty"` }
func (VideoModerationVideoDetail) String ¶ added in v0.1.1
func (o VideoModerationVideoDetail) String() string
type VideoModerationVideoDetailSuggestion ¶ added in v0.1.1
type VideoModerationVideoDetailSuggestion struct {
// contains filtered or unexported fields
}
func (VideoModerationVideoDetailSuggestion) MarshalJSON ¶ added in v0.1.1
func (c VideoModerationVideoDetailSuggestion) MarshalJSON() ([]byte, error)
func (*VideoModerationVideoDetailSuggestion) UnmarshalJSON ¶ added in v0.1.1
func (c *VideoModerationVideoDetailSuggestion) UnmarshalJSON(b []byte) error
func (VideoModerationVideoDetailSuggestion) Value ¶ added in v0.1.1
func (c VideoModerationVideoDetailSuggestion) Value() string
type VideoModerationVideoDetailSuggestionEnum ¶ added in v0.1.1
type VideoModerationVideoDetailSuggestionEnum struct { BLOCK VideoModerationVideoDetailSuggestion REVIEW VideoModerationVideoDetailSuggestion }
func GetVideoModerationVideoDetailSuggestionEnum ¶ added in v0.1.1
func GetVideoModerationVideoDetailSuggestionEnum() VideoModerationVideoDetailSuggestionEnum
type VideoStreamCreateRequest ¶ added in v0.1.63
type VideoStreamCreateRequest struct { Data *VideoStreamCreateRequestData `json:"data"` // 事件类型,可选值如下: default:默认事件 EventType VideoStreamCreateRequestEventType `json:"event_type"` // 视频流中画面需要检测的风险类型,列表不能为空。 porn:鉴黄内容的检测 terrorism:涉政暴恐内容的检测 politics:政治敏感人物内容的检测 image_text:图文违规内容的检测(检测图片中出现的广告、色情、暴恐、涉政的文字违规内容以及二维码内容) ImageCategories []VideoStreamCreateRequestImageCategories `json:"image_categories"` // 视频流中音频需要检测的风险类型,不传或为空时表示不审核音频维度。 porn:涉黄检测 politics: 涉政检测 abuse: 辱骂检测 ad: 广告检测 moan: 娇喘检测 AudioCategories *[]VideoStreamCreateRequestAudioCategories `json:"audio_categories,omitempty"` // 回调http接口,回调内容如下: “`{ \"job_id\":\"xxxxxx\", \"status\":\"running\", //running - 审核中,succeeded - 审核完成,failed - 审核失败 \"request_id\":\"2419446b1fe14203f64e4018d12db3dd\", \"craete_time\":\"2022-07-30T08:57:11.011Z\", \"update_time\":\"2022-07-30T08:57:14.014Z\", \"result\":{ \"suggestion\":\"block\", \"audio_detail\":[ { \"suggestion\":\"block\", \"label\":\"politics\", \"audio_text\":\"xxxx\", \"detail\":[ { \"confidence\":1, \"suggestion\":\"block\", \"label\":\"politics\", \"segments\":[ { \"segment\":\"xxx\" }, { \"segment\":\"xxx\" }, { \"segment\":\"xxx\" } ] } ] } ], \"image_detail\":[ { \"suggestion\":\"block\", \"category\":\"xxx\", \"time\":\"xxx\", // 视频流截帧图片发生的绝对时间 \"detail\":[ { \"face_location\":{ \"bottom_right_x\":247, \"bottom_right_y\":191, \"top_left_y\":79, \"top_left_x\":160 }, \"confidence\":1, \"suggestion\":\"block\", \"label\":\"xxx\", \"category\":\"xxx\" }, { \"qr_content\":\"xxx\", \"confidence\":\"xxx\", \"suggestion\":\"xxx\", \"label\":\"xxx\", \"category\":\"xxx\", \"qr_location\":{ \"bottom_right_x\":554, \"bottom_right_y\":842, \"top_left_y\":426, \"top_left_x\":140 } }, { \"confidence\":1, \"suggestion\":\"block\", \"label\":\"politics\", \"category\":\"image_text\", \"segments\":[ { \"segment\":\"x\" }, { \"segment\":\"xxx\" }, { \"segment\":\"xx\" }, { \"segment\":\"x\" }, { \"segment\":\"xxxx\" } ] } ] } ] }, \"request_params\":{ \"data\":{ \"url\":\"rtmp://xxxx\", \"frame_interval\":3 }, \"event_type\":\"default\", \"image_categories\":[ \"politics\", \"porn\", \"image_text\", \"terrorism\" ], \"audio_categories\":[ \"porn\", \"ad\", \"politics\", \"moan\", \"abuse\" ], \"callback\":\"http://xxx/callback\" } } Callback string `json:"callback"` // 用于回调通知时校验请求由华为云内容安全服务发起,由您自定义。随机字符串,由英文字母、数字、下划线组成,不超过64个字符。 说明:当seed非空时,headers中将包含X-Auth-Signature字段,字段的值使用HmacSHA256算法生成,待加密字符串由create_time、job_id、request_id、seed按照顺序拼接而成,密钥为seed。 Seed *string `json:"seed,omitempty"` }
func (VideoStreamCreateRequest) String ¶ added in v0.1.63
func (o VideoStreamCreateRequest) String() string
type VideoStreamCreateRequestAudioCategories ¶ added in v0.1.63
type VideoStreamCreateRequestAudioCategories struct {
// contains filtered or unexported fields
}
func (VideoStreamCreateRequestAudioCategories) MarshalJSON ¶ added in v0.1.63
func (c VideoStreamCreateRequestAudioCategories) MarshalJSON() ([]byte, error)
func (*VideoStreamCreateRequestAudioCategories) UnmarshalJSON ¶ added in v0.1.63
func (c *VideoStreamCreateRequestAudioCategories) UnmarshalJSON(b []byte) error
func (VideoStreamCreateRequestAudioCategories) Value ¶ added in v0.1.63
func (c VideoStreamCreateRequestAudioCategories) Value() string
type VideoStreamCreateRequestAudioCategoriesEnum ¶ added in v0.1.63
type VideoStreamCreateRequestAudioCategoriesEnum struct { PORN VideoStreamCreateRequestAudioCategories AD VideoStreamCreateRequestAudioCategories POLITICS VideoStreamCreateRequestAudioCategories MOAN VideoStreamCreateRequestAudioCategories ABUSE VideoStreamCreateRequestAudioCategories }
func GetVideoStreamCreateRequestAudioCategoriesEnum ¶ added in v0.1.63
func GetVideoStreamCreateRequestAudioCategoriesEnum() VideoStreamCreateRequestAudioCategoriesEnum
type VideoStreamCreateRequestData ¶ added in v0.1.63
type VideoStreamCreateRequestData struct { // 视频流url,支持rtmp、rtmps、hls、http、https等主流协议。 Url string `json:"url"` // 截帧频率间隔,单位为秒,取值范围为1~60s;若不传递默认5s截帧一次 FrameInterval *int32 `json:"frame_interval,omitempty"` }
VideoStreamCreateRequestData 视频流数据输入
func (VideoStreamCreateRequestData) String ¶ added in v0.1.63
func (o VideoStreamCreateRequestData) String() string
type VideoStreamCreateRequestEventType ¶ added in v0.1.63
type VideoStreamCreateRequestEventType struct {
// contains filtered or unexported fields
}
func (VideoStreamCreateRequestEventType) MarshalJSON ¶ added in v0.1.63
func (c VideoStreamCreateRequestEventType) MarshalJSON() ([]byte, error)
func (*VideoStreamCreateRequestEventType) UnmarshalJSON ¶ added in v0.1.63
func (c *VideoStreamCreateRequestEventType) UnmarshalJSON(b []byte) error
func (VideoStreamCreateRequestEventType) Value ¶ added in v0.1.63
func (c VideoStreamCreateRequestEventType) Value() string
type VideoStreamCreateRequestEventTypeEnum ¶ added in v0.1.63
type VideoStreamCreateRequestEventTypeEnum struct {
DEFAULT VideoStreamCreateRequestEventType
}
func GetVideoStreamCreateRequestEventTypeEnum ¶ added in v0.1.63
func GetVideoStreamCreateRequestEventTypeEnum() VideoStreamCreateRequestEventTypeEnum
type VideoStreamCreateRequestImageCategories ¶ added in v0.1.63
type VideoStreamCreateRequestImageCategories struct {
// contains filtered or unexported fields
}
func (VideoStreamCreateRequestImageCategories) MarshalJSON ¶ added in v0.1.63
func (c VideoStreamCreateRequestImageCategories) MarshalJSON() ([]byte, error)
func (*VideoStreamCreateRequestImageCategories) UnmarshalJSON ¶ added in v0.1.63
func (c *VideoStreamCreateRequestImageCategories) UnmarshalJSON(b []byte) error
func (VideoStreamCreateRequestImageCategories) Value ¶ added in v0.1.63
func (c VideoStreamCreateRequestImageCategories) Value() string
type VideoStreamCreateRequestImageCategoriesEnum ¶ added in v0.1.63
type VideoStreamCreateRequestImageCategoriesEnum struct { PORN VideoStreamCreateRequestImageCategories POLITICS VideoStreamCreateRequestImageCategories TERRORISM VideoStreamCreateRequestImageCategories IMAGE_TEXT VideoStreamCreateRequestImageCategories }
func GetVideoStreamCreateRequestImageCategoriesEnum ¶ added in v0.1.63
func GetVideoStreamCreateRequestImageCategoriesEnum() VideoStreamCreateRequestImageCategoriesEnum
Source Files ¶
- model_audio_create_request.go
- model_audio_create_response.go
- model_audio_input_body.go
- model_audio_moderation_result_detail.go
- model_audio_moderation_result_request_params.go
- model_audio_moderation_result_request_params_data.go
- model_audio_moderation_result_result.go
- model_audio_stream_create_request.go
- model_audio_stream_create_request_data.go
- model_batch_check_image_sync_request.go
- model_batch_check_image_sync_response.go
- model_check_image_moderation_request.go
- model_check_image_moderation_response.go
- model_document_audio_detail.go
- model_document_create_request.go
- model_document_create_request_data.go
- model_document_query_response_request_params.go
- model_document_query_response_request_params_data.go
- model_document_query_response_result.go
- model_document_query_response_result_details.go
- model_document_query_response_result_segments.go
- model_document_video_image_detail.go
- model_document_video_image_detail_segments.go
- model_face_location_detail.go
- model_image_batch_sync_detection_result.go
- model_image_batch_sync_req.go
- model_image_batch_sync_req_image_text_config.go
- model_image_batch_sync_req_urls.go
- model_image_detection_req.go
- model_image_detection_result.go
- model_image_detection_result_detail.go
- model_img_text_config.go
- model_ocr_text_detail.go
- model_qr_location_detail.go
- model_run_close_audio_stream_moderation_job_request.go
- model_run_close_audio_stream_moderation_job_response.go
- model_run_close_video_stream_moderation_job_request.go
- model_run_close_video_stream_moderation_job_response.go
- model_run_create_audio_moderation_job_request.go
- model_run_create_audio_moderation_job_response.go
- model_run_create_audio_stream_moderation_job_request.go
- model_run_create_audio_stream_moderation_job_response.go
- model_run_create_document_moderation_job_request.go
- model_run_create_document_moderation_job_response.go
- model_run_create_video_moderation_job_request.go
- model_run_create_video_moderation_job_response.go
- model_run_create_video_stream_moderation_job_request.go
- model_run_create_video_stream_moderation_job_response.go
- model_run_query_audio_moderation_job_request.go
- model_run_query_audio_moderation_job_response.go
- model_run_query_document_moderation_job_request.go
- model_run_query_document_moderation_job_response.go
- model_run_query_video_moderation_job_request.go
- model_run_query_video_moderation_job_response.go
- model_run_text_moderation_request.go
- model_run_text_moderation_response.go
- model_segment_result.go
- model_text_detection_data_req.go
- model_text_detection_req.go
- model_text_detection_result.go
- model_text_detection_result_detail.go
- model_video_create_request.go
- model_video_create_request_data.go
- model_video_moderation_audio_detail_list.go
- model_video_moderation_detail_segment.go
- model_video_moderation_image_detail.go
- model_video_moderation_image_detail_list.go
- model_video_moderation_image_detail_list_face_location.go
- model_video_moderation_image_detail_list_qr_location.go
- model_video_moderation_result_request_params.go
- model_video_moderation_result_request_params_data.go
- model_video_moderation_result_result.go
- model_video_moderation_video_detail.go
- model_video_stream_create_request.go
- model_video_stream_create_request_data.go