Documentation
¶
Index ¶
- func SplicingBusinessExpansion(businessExtension *BusinessExtension, params url.Values)
- type AdvancedFrequency
- type AntiImageDetails
- type AntiSpam
- type AntiVideoDetails
- type Antispam
- type Asr
- type AudioAntiSpam
- type AudioAsr
- type AudioAsrDetail
- type AudioCheckSubmitResponse
- type AudioCheckSubmitResult
- type AudioDetail
- type AudioDetectReq
- type AudioDetectResp
- type AudioDetectSubmitReq
- type AudioHitLabel
- type AudioHitSubLabel
- type AudioLabel
- type AudioLanguage
- type AudioResult
- type AudioSegment
- type AudioSubLabel
- type AudioSubLabelDetails
- type AudioSubLabelHint
- type AudioSubLabelHitInfo
- type AudioSyncDetectResp
- type BackgroundInfo
- type BaseResp
- type BoarderInfo
- type BusinessExtension
- type Detail
- type DeviceExtension
- type Face
- type FaceContents
- type FaceDetail
- type FeedbackReq
- type FrontAudioSegment
- type HitInfo
- type ImageDetectReq
- type ImageDetectResp
- type ImageDetectResult
- type ImageHitInfo
- type ImageHitLabelInfo
- type ImageHitSubLabelInfo
- type ImageInfo
- type ImageLabels
- type ImageSubLabel
- type Keyword
- type Label
- type Language
- type LibInfo
- type LineContents
- type LiveAudioDetectAntispam
- type LiveAudioDetectEvidence
- type LiveAudioDetectFeedback
- type LiveAudioDetectFeedbackResp
- type LiveAudioDetectResult
- type LiveAudioDetectResultResp
- type LiveAudioDetectReviewEvidences
- type LiveAudioDetectStopResp
- type LiveAudioDetectSubLabel
- type LiveAudioDetectSubmitReq
- type LiveAudioDetectSubmitResp
- type LiveAudioLabel
- type LiveDetectAntispam
- type LiveDetectAudio
- type LiveDetectAudioLabel
- type LiveDetectAudioSubLabel
- type LiveDetectEvidenceDetail
- type LiveDetectEvidences
- type LiveDetectFrontPic
- type LiveDetectHitInfo
- type LiveDetectLabel
- type LiveDetectResult
- type LiveDetectResultResp
- type LiveDetectStopResp
- type LiveDetectSubLabel
- type LiveDetectSubLabelDetails
- type LiveDetectSubmitReq
- type LiveDetectSubmitResp
- type LiveDetectTaskInfo
- type LiveDetectVideo
- type Logo
- type MetaInfo
- type Ocr
- type OcrDetails
- type OtherExtension
- type Quality
- type QualityDetails
- type Result
- type Scene
- type SceneExtension
- type Segment
- type Segments
- type SubLabel
- type UserExtension
- type VideoCallbackBackPic
- type VideoCallbackDetail
- type VideoCallbackEvidence
- type VideoCallbackHitLocationInfo
- type VideoCallbackImageTagInfo
- type VideoCallbackLabel
- type VideoCallbackResp
- type VideoCallbackSubLabel
- type VideoCheckSubmitResp
- type VideoCheckSubmitResult
- type VideoDetectResp
- type VideoDetectResult
- type VideoDetectResultEvidence
- type VideoDetectSubmitReq
- type VideoLabels
- type Voice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplicingBusinessExpansion ¶
func SplicingBusinessExpansion(businessExtension *BusinessExtension, params url.Values)
SplicingBusinessExpansion 拼接业务拓展参数
Types ¶
type AdvancedFrequency ¶
type AdvancedFrequency struct {
DurationPoints []int `json:"durationPoints"` // 数组 Y 5 视频时长区间分割,单位为秒
Frequencies []int `json:"frequencies"` // 数组 Y 6 视频时长区间对应的截帧频率,可设置范围为0.5~600秒
}
AdvancedFrequency advancedFrequency字符串数据结构
type AntiImageDetails ¶
type AntiImageDetails struct {
HitInfos []string `json:"hitInfos"`
AnticheatInfo string `json:"anticheatInfo"`
ImageTagInfos []struct {
TagName string `json:"tagName"`
TagGroup string `json:"tagGroup"`
} `json:"imageTagInfos"`
ImageListInfos []struct {
Type string `json:"type"`
URL string `json:"url"`
HitCount string `json:"hitCount"`
Word string `json:"word"`
} `json:"imageListInfos"`
HitLocationInfos []struct {
HitInfo string `json:"hitInfo"`
X1 float64 `json:"x1"`
Y1 float64 `json:"y1"`
X2 float64 `json:"x2"`
Y2 float64 `json:"y2"`
} `json:"hitLocationInfos"`
}
type AntiSpam ¶
type AntiSpam struct {
TaskID string `json:"taskId"`
Status int `json:"status"` // 0:检测成功,610:图片下载失败,620:图片格式错误,630:其它
Action int `json:"action"`
CensorType int `json:"censorType"`
StrategyVersions string `json:"strategyVersions"`
Name string `json:"name"`
ImageLabels []ImageLabels `json:"labels"`
}
type AntiVideoDetails ¶
type AntiVideoDetails struct {
HitInfos []string `json:"hitInfos"`
AnticheatInfo string `json:"anticheatInfo"`
ImageTagInfo []struct {
TagName string `json:"tagName"`
TagGroup string `json:"tagGroup"`
} `json:"imageTagInfo"`
ImageListInfo []struct {
Type string `json:"type"`
URL string `json:"url"`
HitCount string `json:"hitCount"`
Word string `json:"word"`
} `json:"imageListInfo"`
HitLocationInfos []struct {
HitInfo string `json:"hitInfo"`
X1 float64 `json:"x1"`
Y1 float64 `json:"y1"`
X2 float64 `json:"x2"`
Y2 float64 `json:"y2"`
} `json:"hitLocationInfos"`
}
type Antispam ¶ added in v1.0.2
type Antispam struct {
TaskID string `json:"taskId"`
Status int `json:"status"`
FailureReason int `json:"failureReason"`
Suggestion int `json:"suggestion"`
ResultType int `json:"resultType"`
Segments []*Segments `json:"segments"`
Callback string `json:"callback"`
DataID string `json:"dataId"`
CensorSource int `json:"censorSource"`
Duration int `json:"duration"`
CensorTime int64 `json:"censorTime"`
CustomAction int `json:"customAction"`
CensorLabels []interface{} `json:"censorLabels"`
}
type Asr ¶
type Asr struct {
TaskID string `json:"taskId" bson:"taskId"` // 是 检测任务 ID,示例值:"38e08da8d2574df4bd2eca9b5153df72"
StartTime int `json:"startTime" bson:"startTime"` // 是 断句开始时间,单位毫秒
EndTime int `json:"endTime" bson:"endTime"` // 是 断句结束时间,单位毫秒
Content string `json:"content" bson:"content"` // 是 语音识别结果
SpeakerID string `json:"speakerId" bson:"speakerId"` // 否 针对接入SDK监听客户,返回说话人ID信息
}
Asr 语音识别检测结果
type AudioAntiSpam ¶
type AudioAsr ¶ added in v1.0.2
type AudioAsr struct {
TaskID string `json:"taskId"`
DataID string `json:"dataId"`
Callback string `json:"callback"`
Details []*AudioAsrDetail `json:"details"`
}
type AudioAsrDetail ¶ added in v1.0.2
type AudioCheckSubmitResponse ¶
type AudioCheckSubmitResponse struct {
BaseResp
Result *AudioCheckSubmitResult `json:"result"`
}
type AudioCheckSubmitResult ¶
type AudioDetail ¶ added in v1.0.2
type AudioDetectReq ¶ added in v1.0.2
type AudioDetectReq struct {
DataCheckType int // 否 1 检测类型,默认0-url,1-语音内容base64
URL string // 否 1024 音频下载url,当检测类型是url时,url必填
Data string // 否 2560000 语音内容base64,当检测类型是base64时,data必填
Title string // 否 512 音频标题
DataID string // 否 128 数据唯一标识,能够根据该值定位到该条数据,如对数据结果有异议,可以发送该值给客户经理查询
Callback string // 否 65535 数据回调参数,调用方根据业务情况自行设计,当调用离线结果获取接口或查询接口时,该接口会原样返回该字段,详细见音频离线检测结果获取音频轮询模式结果获取。作为数据处理标识,因此该字段应该设计为能唯一定位到该次请求的数据结构,如对用户的昵称进行检测,dataId可设为用户标识(用户ID),用户修改多次,每次请求数据的dataId可能一致,但是callback参数可以设计成定位该次请求的数据结构,比如callback字段设计成json,包含dataId和请求的时间戳等信息,当然如果不想做区分,也可以直接把callback设置成dataId的值。
CallbackURL string // 否 512 离线结果回调通知到客户的URL。主动回调数据接口超时时间默认设置为2s,为了保证顺利接收数据,需保证接收接口性能稳定并且保证幂等性。
PublishTime int64 // 否 13 发表时间,UNIX 时间戳(毫秒值)
Nickname string // 否 128 用户昵称,建议抄送,辅助机审策略精准调优
IP string // 否 128 用户IP地址,建议抄送,辅助机审策略精准调优
Account string // 否 128 用户唯一标识,与易盾账号画像库匹配,建议抄送,辅助机审策略精准调优
DeviceID string // 否 128 用户设备id,与易盾设备画像库匹配,明文请转大写传入;MD5加密请明文转大写后MD5计算,再转大写传入,建议抄送
DeviceType int // 否 4 用户设备id的类型,0:其他,10:IMEI,11:AndroidID,12:IDFA,13:IDFV,14:MAC ,20:IMEI_MD5,21:AndroidID_MD5,22:IDFA_MD5,23:IDFV_MD5,24:MAC_MD5,可选值-10000~10000
Extension string // 否 35000 自定义扩展参数,json字符串
SubProduct string // 否 32 业务结算id(自定义),业务方传入参数,用于资源账单统计,如需开启请联系易盾客户经理。开启之后资源账单按套餐结算sheet增加subProduct维度的数据请求量、检测量、消耗金额的统计
UniqueKey string // 否 256 检测去重字段,填入后使用此字段去重,如果没填入则默认使用url进行去重
RelatedKeys []string // 否 3个且单个长度最大128 上下文关联检测key
// 业务拓展参数
*BusinessExtension
}
type AudioDetectResp ¶
type AudioDetectResp struct {
BaseResp
AntiSpam []*AudioAntiSpam `json:"antispam"`
}
type AudioDetectSubmitReq ¶ added in v1.0.2
type AudioDetectSubmitReq struct {
URL string // Y 512 语音文件url
Version string // Y 4 接口版本号,可选值 v3.5
Title string // N 512 文件标题
IP string // N 32 用户IP地址
Account string // N 128 用户唯一标识,如果无需登录则为空
DeviceID string // N 128 用户设备 id,与易盾设备画像库匹配,明文请转大写传入;MD5加密请明文转大写后MD5计算,再转大写传入,建议抄送
DeviceType int // N 4 用户设备id的类型,0:其他,10:IMEI,11:AndroidID,12:IDFA,13:IDFV,14:MAC ,20:IMEI_MD5,21:AndroidID_MD5,22:IDFA_MD5,23:IDFV_MD5,24:MAC_MD5
Callback string // N 2^16-1 数据回调参数,调用方根据业务情况自行设计,当调用离线结果获取接口时,该接口会原样返回该字段,详细见音频离线检测结果获取。作为数据处理标识,因此该字段应该设计为能唯一定位到该次请求的数据结构,如对用户的昵称进行检测,dataId可设为用户标识(用户ID),用户修改多次,每次请求数据的dataId可能一致,但是callback参数可以设计成定位该次请求的数据结构,比如callback字段设计成json,包含dataId和请求的时间戳等信息,当然如果不想做区分,也可以直接把callback设置成dataId的值。
CallbackURL string // N 256 离线结果回调通知到客户的URL。主动回调数据接口超时时间设置为2s,为了保证顺利接收数据,需保证接收接口性能稳定并且保证幂等性。
SubProduct string // N 32 业务结算id(自定义),业务方传入参数,用于资源账单统计,如需开启请联系易盾客户经理。开启之后资源账单按套餐结算sheet增加subProduct维度的数据请求量、检测量、消耗金额的统计
}
type AudioHitLabel ¶
type AudioHitLabel struct {
Label int `json:"label"` // 100:色情,200:广告,260:广告法,300:暴恐,400:违禁,500:涉政,600:谩骂,1100:涉价值观
LabelName string `json:"label_name"`
SubLabels map[int]*AudioHitSubLabel `json:"subLabels"`
}
type AudioHitSubLabel ¶
type AudioHitSubLabel struct {
SubLabel int `json:"subLabel"`
SubLabelName string `json:"sub_label_name"`
Details *AudioSubLabelDetails `json:"details"`
}
type AudioLabel ¶
type AudioLabel struct {
Label int `json:"label"` // 100:色情,200:广告,260:广告法,300:暴恐,400:违禁,500:涉政,600:谩骂,1100:涉价值观
Level int `json:"level"` // 0:通过,1:嫌疑,2:不通过
SubLabels []*AudioSubLabel `json:"subLabels"`
}
type AudioLanguage ¶ added in v1.0.2
type AudioLanguage struct {
TaskID string `json:"taskId"`
DataID string `json:"dataId"`
Callback string `json:"callback"`
Details []*AudioDetail `json:"details"`
}
type AudioResult ¶ added in v1.0.2
type AudioResult struct {
Antispam *Antispam `json:"antispam"`
Language *AudioLanguage `json:"language"`
Asr *AudioAsr `json:"asr"`
Voice *Voice `json:"voice"`
}
type AudioSegment ¶ added in v1.0.2
type AudioSubLabel ¶
type AudioSubLabel struct {
SubLabel string `json:"subLabel"`
Details *AudioSubLabelDetails `json:"details"`
}
type AudioSubLabelDetails ¶
type AudioSubLabelDetails struct {
HitType int `json:"hitType"`
Hint []*AudioSubLabelHint `json:"hint"`
HitInfos []*AudioSubLabelHitInfo `json:"hitInfos"`
}
type AudioSubLabelHint ¶
type AudioSubLabelHint struct {
Value string `json:"value"`
}
type AudioSubLabelHitInfo ¶
type AudioSyncDetectResp ¶ added in v1.0.2
type AudioSyncDetectResp struct {
Code int `json:"code"`
Msg string `json:"msg"`
Result *AudioResult `json:"result"`
}
AudioSyncDetectResp 点播音频同步检测
type BackgroundInfo ¶
type BackgroundInfo struct {
PureBackground bool `json:"pureBackground"`
}
type BoarderInfo ¶
type BusinessExtension ¶
type BusinessExtension struct {
UserExtension *UserExtension
DeviceExtension *DeviceExtension
SceneExtension *SceneExtension
OtherExtension *OtherExtension
}
type DeviceExtension ¶
type DeviceExtension struct {
DeviceID string `json:"deviceId"` // N 128 用户设备 id,与易盾设备画像库匹配,明文请转大写传入;MD5加密请明文转大写后MD5计算,再转大写传入,建议抄送
DeviceType int `json:"deviceType"` // N 4 用户设备id的类型,0:其他,10:IMEI,11:AndroidID,12:IDFA,13:IDFV,14:MAC ,20:IMEI_MD5,21:AndroidID_MD5,22:IDFA_MD5,23:IDFV_MD5,24:MAC_MD5
Mac string `json:"mac"` // N 128 用户设备 id,与易盾设备画像库匹配,明文请转大写传入;MD5加密请明文转大写后MD5计算,再转大写传入,建议抄送 N 64 用户设备mac信息,与易盾设备画像库匹配,建议抄送
Imei string `json:"imei"` // N 128 用户设备 id,与易盾设备画像库匹配,明文请转大写传入;MD5加密请明文转大写后MD5计算,再转大写传入,建议抄送 N 64 国际移动设备识别码,与易盾设备画像库匹配,建议抄送
Idfa string `json:"idfa"` // N 128 用户设备 id,与易盾设备画像库匹配,明文请转大写传入;MD5加密请明文转大写后MD5计算,再转大写传入,建议抄送N 64 iOS设备标识码,与易盾设备画像库匹配,建议抄送
Idfv string `json:"idfv"` // N 128 用户设备 id,与易盾设备画像库匹配,明文请转大写传入;MD5加密请明文转大写后MD5计算,再转大写传入,建议抄送N 64 iOS设备标识码 ,与易盾设备画像库匹配,建议抄送
AppVersion string `json:"appVersion"` // N 128 用户设备 id,与易盾设备画像库匹配,明文请转大写传入;MD5加密请明文转大写后MD5计算,再转大写传入,建议抄送N 32 APP版本号 ,可根据不同版本号配置不同策略,建议抄送
}
DeviceExtension 设备扩展参数 根据设备信息输出设备画像,并与易盾自有设备画像库比对,辅助反垃圾结果判定
type Face ¶
type Face struct {
Name string `json:"name"`
TaskID string `json:"taskId"`
Details []FaceDetail `json:"details"`
}
type FaceContents ¶
type FaceDetail ¶
type FaceDetail struct {
FaceNumber int `json:"faceNumber"`
FaceContents []FaceContents `json:"faceContents"`
}
type FeedbackReq ¶
type FeedbackReq struct {
TaskID string `json:"taskId"` // 是 32 音频taskId,示例值:"38e08da8d2574df4bd2eca9b5153df72"
Level int `json:"level"` // 是 3 数据级别,0:正常,2:确定
Label int `json:"label"` // 否 4 分类信息,100:色情,200:广告,260:广告法,300:暴恐,400:违禁,500:涉政,600:谩骂,700:灌水,900:其他,1100:涉价值观,当返回level是正常时,label字段可不传
}
FeedbackReq 反馈接口请求体
type FrontAudioSegment ¶
type ImageDetectReq ¶
type ImageDetectReq struct {
Images []*ImageInfo `json:"images"` // String(ImageInfo json数组) Y 32张或10MB images为json数组,支持批量检测
IP string `json:"ip"` // N 128 用户IP地址
CheckLabels []string `json:"checkLabels"` // String数组 // N 64 接口指定过检分类,可多选,过检分类列表:100:色情,110:性感低俗,200:广告,210:二维码,260:广告法,300:暴恐,400:违禁,500:涉政,800:恶心类,900:其他,1100:涉价值观
SubProduct string `json:"subProduct"` // N 32 业务结算id(自定义),业务方传入参数,用于资源账单统计,如需开启请联系易盾客户经理。开启之后资源账单按套餐结算sheet增加subProduct维度的数据请求量、检测量、消耗金额的统计
Extension string `json:"extension"` // N 30000 自定义扩展参数
// 业务拓展参数
*BusinessExtension
}
type ImageDetectResp ¶
type ImageDetectResult ¶
type ImageHitInfo ¶
type ImageHitLabelInfo ¶
type ImageHitLabelInfo struct {
Label int `json:"label"`
LabelName string `json:"label_name"`
Level int `json:"level"`
SubLabels map[int]*ImageHitSubLabelInfo `json:"sub_labels"`
}
type ImageHitSubLabelInfo ¶
type ImageHitSubLabelInfo struct {
SubLabel int `json:"label"`
SubLabelDetails *AntiImageDetails `json:"sub_details"`
}
type ImageInfo ¶
type ImageInfo struct {
Name string `json:"name"` // Y 1024 图片名称(或图片标识), 该字段为回调信号字段,产品可以根据业务情况自行设计,如json结构、或者为图片url均可
ImageType int `json:"type"` // Y 4 类型,分别为1:图片URL,2:图片BASE64值
Data string `json:"data"` // Y 32张或者10MB 图片内容,如type=1,则该值为图片URL,图片URL检测单次请求最多支持32张。如type=2,则该值为图片Base64值,转换后的base64内容以及所有请求参数大小不超过10M
CallbackURL string `json:"callbackUrl"` // N 256 离线结果回调通知到客户的URL。主动回调数据接口超时时间设置为2s,为了保证顺利接收数据,需保证接收接口性能稳定并且保证幂等性。
}
type ImageLabels ¶
type ImageLabels struct {
Label int `json:"label"`
SubLabels []*ImageSubLabel `json:"subLabels"`
Level int `json:"level"` // 0:正常,1:不确定,2:确定
Rate float64 `json:"rate"`
}
type ImageSubLabel ¶
type ImageSubLabel struct {
SubLabel int `json:"subLabel"`
Rate float64 `json:"rate"`
Details *AntiImageDetails `json:"details"`
}
type Language ¶
type Language struct {
TaskID string `json:"taskId" bson:"taskId"` // 是 检测任务 ID,示例值:"38e08da8d2574df4bd2eca9b5153df72"
StartTime int `json:"startTime" bson:"startTime"` // 是 断句开始时间,单位毫秒
EndTime int `json:"endTime" bson:"endTime"` // 是 断句结束时间,单位毫秒
Content string `json:"content" bson:"content"` // 是 语种识别结果
Callback string `json:"callback" bson:"callback"` // 否 提交时传递的callback
SegmentID string `json:"segmentId" bson:"segmentId"` // 是 断句id
}
Language 语种识别检测结果
type LineContents ¶
type LiveAudioDetectAntispam ¶
type LiveAudioDetectAntispam struct {
TaskID string `json:"taskId" bson:"taskId"` // 是 检测任务 ID,示例值:"38e08da8d2574df4bd2eca9b5153df72"
Callback string `json:"callback" bson:"callback"` // 否 提交时传递的callback
DataID string `json:"dataId" bson:"dataId"` // 否 提交时传递的dataId
CensorSource int `json:"censorSource" bson:"censorSource"` // 否 审核来源,0:易盾人审,1:客户人审,2:易盾机审
Status int `json:"status" bson:"status"` // 是 检测状态,1-检测中,2-检测成功,3-检测失败
FailureReason int `json:"failureReason" bson:"failureReason"` // 否 检测失败原因,当检测失败时返回,1:下载失败,2:直播流不存在,3:解析失败,4:格式错误
RiskLevel int `json:"riskLevel" bson:"riskLevel"` // 否 直播异常风险等级, 0-正常,1-低危,2-中危,3-中高危,4-高危
RiskScore int `json:"riskScore" bson:"riskScore"` // 否 直播异常分数
Duration int `json:"duration" bson:"duration"` // 否 直播时长字段,直播结束返回直播整体时长,单位s
Evidences *LiveAudioDetectEvidence `json:"evidences" bson:"evidences"` // 否 直播审核证据信息
ReviewEvidences *LiveAudioDetectReviewEvidences `json:"reviewEvidences" bson:"reviewEvidences"` // 否 直播墙人审证据信息
}
type LiveAudioDetectEvidence ¶
type LiveAudioDetectEvidence struct {
Suggestion int `json:"suggestion" bson:"suggestion"` // 是 建议结果 0-通过 1-嫌疑 2-删除
StartTime int `json:"startTime" bson:"startTime"` // 是 断句开始时间,单位毫秒
EndTime int `json:"endTime" bson:"endTime"` // 是 断句结束时间,单位毫秒
Content string `json:"content" bson:"content"` // 是 检测命中内容返回
URL string `json:"url" bson:"url"` // 否 需要开启返回直播语音片段播放地址,请联系易盾策略经理
SpeakerID string `json:"speakerId" bson:"speakerId"` // 否 针对接入SDK监听客户,返回说话人ID信息
SegmentID string `json:"segmentId" bson:"segmentId"` // 是 断句id
FrontSegment *FrontAudioSegment `json:"frontSegment" bson:"frontSegment"` // 否 关联证据信息,异常/嫌疑断句命中时返回,命中断句前20s的证据信息,包含前20s的音频语音识别内容及对应url,通过时数据为空
Labels []*LiveAudioLabel `json:"labels" bson:"labels"` // 否 分类信息,通过时数据为空
}
type LiveAudioDetectFeedback ¶
type LiveAudioDetectResult ¶
type LiveAudioDetectResult struct {
Antispam *LiveAudioDetectAntispam `json:"antispam" bson:"antispam"` // 否 内容安全检测结果
Asr *Asr `json:"asr" bson:"asr"` // 否 语音识别检测结果
Language *Language `json:"language" bson:"language"` // 否 语种识别检测结果
}
LiveAudioDetectResult 检测结果
type LiveAudioDetectResultResp ¶
type LiveAudioDetectResultResp struct {
Code int `json:"code"`
Msg string `json:"msg"`
Result []*LiveAudioDetectResult `json:"result"`
}
type LiveAudioDetectReviewEvidences ¶
type LiveAudioDetectReviewEvidences struct {
Action int `json:"action" bson:"action"` // 是 审核操作, 1为忽略,2为警告,3为断流,4为提示,10为机器检测结束
ActionTime int64 `json:"actionTime" bson:"actionTime"` // 是 操作时间,UNIX_TIME时间戳,毫秒为单位
SpamType int `json:"spamType" bson:"spamType"` // 是 违规类型, 100-色情, 115-音乐内容低俗, 116-言论低俗涉黄, 121-发出涉黄声音, 122-ASMR, 200-广告, 211-商业推广, 212-提及竞品, 300-暴恐, 400-违禁, 500-涉政, 511-影响政府形象, 512-邪教迷信, 513-涉军事, 514-涉宗教, 515-国歌、严肃歌曲, 516-涉及少数民族,517-涉及政治敏感话题 800-不文明, 826-传播负面情绪, 827-违反公序良俗, 828-侵害他人隐私, 1000-其他, 1023-无营养, 1027-话题炒作, 1030-挂机, 1050-自定义
SpeakerID string `json:"speakerId" bson:"speakerId"` // 否 针对接入SDK监听客户,针对房间内具体说话人的处罚,返回说话人ID信息,若为空,则针对房间维度处罚
SpamDetail string `json:"spamDetail" bson:"spamDetail"` // 否 违规详细说明
CensorAccount string `json:"censorAccount" bson:"censorAccount"` // 是 审核员账号
WarnCount int `json:"warnCount" bson:"warnCount"` // 否 警告次数
PromptCount int `json:"promptCount" bson:"promptCount"` // 是 提示次数
Segments []Segment `json:"segments" bson:"segments"` // 否 人审断句信息, 可为空
}
LiveAudioDetectReviewEvidences 直播墙人审证据信息 否
type LiveAudioDetectStopResp ¶
type LiveAudioDetectSubLabel ¶
type LiveAudioDetectSubLabel struct {
SubLabel string `json:"subLabel" bson:"subLabel"` // 是 细分类,详细编码请参考下方对应细分类编码对照表
Rate float64 `json:"rate" bson:"rate"` // 是 置信度分数,0-1之间取值,1为置信度最高,0为置信度最低
Details LiveDetectSubLabelDetails `json:"details" bson:"details"` // 否 命中的详细对象信息
}
type LiveAudioDetectSubmitReq ¶
type LiveAudioDetectSubmitReq struct {
Version string `json:"version"` // 是 4 接口版本号,值为v4
URL string `json:"url"` // 是 1024 使用拉流检测为直播流地址;使用SDK检测请根据不同服务商生成相应的URL
DataID string `json:"dataId"` // 是 128 数据唯一标识,能够根据该值定位到该条数据,如对数据结果有异议,可以发送该值给客户经理查询
Title string `json:"title"` // 否 512 直播语音标题
IP string `json:"ip"` // 否 128 用户IP地址
Account string `json:"account"` // 否 128 用户唯一标识,如果无需登录则为空
RoomNo string `json:"roomNo"` // 否 128 主播房间号
AccountLevel string `json:"accountLevel"` // 否 10 账号级别/主播级别(大写A-Z)
AccountName string `json:"accountName"` // 否 30 账号名称/主播名称
DeviceID string `json:"deviceId"` // 否 128 用户设备 id,与易盾设备画像库匹配,明文请转大写传入;MD5加密请明文转大写后MD5计算,再转大写传入,建议抄送
DeviceType int `json:"deviceType"` // 否 4 用户设备id的类型,0:其他,10:IMEI,11:AndroidID,12:IDFA,13:IDFV,14:MAC ,20:IMEI_MD5,21:AndroidID_MD5,22:IDFA_MD5,23:IDFV_MD5,24:MAC_MD5
Callback string `json:"callback"` // 否 1024 据回调参数,调用方根据业务情况自行设计,当调用callback接口获取直播音频结果时,该接口会原样返回该字段,详细见直播音频离线检测结果获取。作为数据处理标识,因此该字段应该设计为能唯一定位到该次请求的数据结构,如对用户的昵称进行检测,dataId可设为用户标识(用户ID),用户修改多次,每次请求数据的dataId可能一致,但是callback参数可以设计成定位该次请求的数据结构,比如callback字段设计成json,包含dataId和请求的时间戳等信息,当然如果不想做区分,也可以直接把callback设置成dataId的值。
CallbackURL string `json:"callbackUrl"` // 否 512 离线结果回调通知到客户的URL。主动回调数据接口超时时间设置为2s,为了保证顺利接收数据,需保证接收接口性能稳定并且保证幂等性。
UniqueKey string `json:"uniqueKey"` // 否 256 客户个性化直播流唯一性标识,传入后,将以此值作为重复检测依据,若不传,默认以URL作为查重依据
CheckLanguageCode string `json:"checkLanguageCode"` // 否 2 指定语言检测音频内容,需以易盾标准填入,可选范围:zh:中文,en:英语,it:意大利语,id:印尼语,es:西班牙语,fr:法语,ms:马来语,tl:菲利宾语,th:泰语,de:德语,hi:印地语,ru:俄语,ar:阿拉伯语,vi:越南语,ja:日语,ko:韩语;不填以后台配置为准
}
type LiveAudioLabel ¶
type LiveAudioLabel struct {
Label int `json:"label" bson:"label"` // 是 分类信息,100:色情,110:性感低俗,200:广告,210:二维码,260:广告法,300:暴恐,400:违禁,500:涉政,800:恶心类,900:其他,1020:黑屏,1030:挂机,1100:涉价值观
Level int `json:"level" bson:"level"` // 是 分类级别,0:正常,1:不确定,2:确定
Rate float64 `json:"rate" bson:"rate"` // 是 置信度分数,0-1之间取值,1为置信度最高,0为置信度最低。若level为正常,置信度越大,说明正常的可能性越高。若level为不确定或确定,置信度越大,说明垃圾的可能性越高
SubLabels []*LiveAudioDetectSubLabel `json:"subLabels"` // 是 细分类信息,可能包含多个
}
type LiveDetectAntispam ¶
type LiveDetectAntispam struct {
TaskID string `json:"taskId" bson:"taskId"` // 是 检测任务 ID,示例值:"38e08da8d2574df4bd2eca9b5153df72"
Callback string `json:"callback" bson:"callback"` // 否 提交时传递的callback
DataID string `json:"dataId" bson:"dataId"` // 否 提交时传递的dataId
Status int `json:"status" bson:"status"` // 是 检测状态,1-检测中,2-检测成功,3-检测失败
FailureReason int `json:"failureReason" bson:"failureReason"` // 否 检测失败原因,当检测失败时返回,1:下载失败,2:直播流不存在,3:解析失败,4:格式错误
RiskLevel int `json:"riskLevel" bson:"riskLevel"` // 否 直播异常风险等级, 0-正常,1-低危,2-中危,3-中高危,4-高危
Duration int `json:"duration" bson:"duration"` // 否 直播时长字段,直播结束返回直播整体时长,单位s
Evidences *LiveDetectEvidences `json:"evidences" bson:"evidences"` // 否 直播审核证据信息
}
type LiveDetectAudio ¶
type LiveDetectAudio struct {
Suggestion int `json:"suggestion" bson:"suggestion"` // 是 建议结果 0-通过 1-嫌疑 2-删除
StartTime int64 `json:"startTime" bson:"startTime"` // 是 断句开始时间,单位毫秒
EndTime int64 `json:"endTime" bson:"endTime"` // 是 断句结束时间,单位毫秒
Content string `json:"content" bson:"content"` // 是 检测命中内容返回
URL string `json:"url" bson:"url"` // 否 需要开启返回直播语音片段播放地址,请联系易盾策略经理
SpeakerID string `json:"speakerId" bson:"speakerId"` // 否 针对接入SDK监听客户,返回说话人ID信息
FrontSegment *FrontAudioSegment `json:"frontSegment" bson:"frontSegment"` // 否 关联证据信息,异常/嫌疑断句命中时返回,命中断句前20s的证据信息,包含前20s的音频语音识别内容及对应url,通过时数据为空
Labels []*LiveDetectAudioLabel `json:"labels" bson:"labels"` // 否 分类信息,通过时数据为空
SegmentID string `json:"segmentId" bson:"segmentId"` // 是 断句id
}
type LiveDetectAudioLabel ¶
type LiveDetectAudioLabel struct {
Label int `json:"label" bson:"label"` // 是 分类信息,100:色情,110:性感低俗,200:广告,210:二维码,260:广告法,300:暴恐,400:违禁,500:涉政,800:恶心类,900:其他,1020:黑屏,1030:挂机,1100:涉价值观
Level int `json:"level" bson:"level"` // 是 分类级别,0:正常,1:不确定,2:确定
Rate float64 `json:"rate" bson:"rate"` // 是 置信度分数,0-1之间取值,1为置信度最高,0为置信度最低。若level为正常,置信度越大,说明正常的可能性越高。若level为不确定或确定,置信度越大,说明垃圾的可能性越高
SubLabels []*LiveDetectAudioSubLabel `json:"subLabels" bson:"subLabels"` // 是 细分类信息,可能包含多个
}
type LiveDetectAudioSubLabel ¶
type LiveDetectAudioSubLabel struct {
SubLabel string `json:"subLabel" bson:"subLabel"` // 是 细分类,详细编码请参考下方对应细分类编码对照表
Rate float64 `json:"rate" bson:"rate"` // 是 置信度分数,0-1之间取值,1为置信度最高,0为置信度最低
Details *LiveDetectSubLabelDetails `json:"details" bson:"details"` // 否 命中的详细对象信息
}
type LiveDetectEvidenceDetail ¶
type LiveDetectEvidenceDetail struct {
Suggestion int `json:"suggestion" bson:"suggestion"` // 是 建议结果 0-通过 1-嫌疑 2-删除
Type int `json:"type" bson:"type"` // 是 证据信息类型,1-图片,2-视频
URL string `json:"url" bson:"url"` // 是 证据信息内容
BeginTime int64 `json:"beginTime" bson:"beginTime"` // 是 直播当前时间点,单位为毫秒
EndTime int64 `json:"endTime" bson:"endTime"` // 是 直播当前时间点,单位为毫秒
SpeakerID string `json:"speakerId" bson:"speakerId"` // 否 针对接入SDK监听客户,返回说话人ID信息
FrontPics []*LiveDetectFrontPic `json:"frontPics" bson:"frontPics"` // 是 关联信息-命中前截图信息
}
type LiveDetectEvidences ¶
type LiveDetectEvidences struct {
LiveDetectVideo *LiveDetectVideo `json:"video" bson:"video"`
LiveDetectAudio *LiveDetectAudio `json:"audio" bson:"audio"`
}
type LiveDetectFrontPic ¶
type LiveDetectFrontPic struct {
URL string `json:"url"` // 是 命中前截图信息
}
type LiveDetectHitInfo ¶
type LiveDetectLabel ¶
type LiveDetectLabel struct {
Label int `json:"label" bson:"label"` // 是 分类信息,100:色情,110:性感低俗,200:广告,210:二维码,260:广告法,300:暴恐,400:违禁,500:涉政,800:恶心类,900:其他,1020:黑屏,1030:挂机,1100:涉价值观
Level int `json:"level" bson:"level"` // 是 分类级别,0:正常,1:不确定,2:确定
Rate float64 `json:"rate" bson:"rate"` // 是 置信度分数,0-1之间取值,1为置信度最高,0为置信度最低。若level为正常,置信度越大,说明正常的可能性越高。若level为不确定或确定,置信度越大,说明垃圾的可能性越高
SubLabels []*LiveDetectSubLabel `json:"subLabels" bson:"subLabels"` // 是 细分类信息,可能包含多个
}
type LiveDetectResult ¶
type LiveDetectResult struct {
Antispam *LiveDetectAntispam `json:"antispam" bson:"antispam"` // 否 内容安全检测结果
}
type LiveDetectResultResp ¶
type LiveDetectResultResp struct {
Code int `json:"code"`
Msg string `json:"msg"`
Result []*LiveDetectResult `json:"result"`
}
type LiveDetectStopResp ¶
type LiveDetectSubLabel ¶
type LiveDetectSubLabel struct {
SubLabel int `json:"subLabel" bson:"subLabel"` // 是 细分类,详细编码请参考下方对应细分类编码对照表
Rate float64 `json:"rate" bson:"rate"` // 是 置信度分数,0-1之间取值,1为置信度最高,0为置信度最低
Details *LiveDetectSubLabelDetails `json:"details" bson:"details"` // 否 命中的详细对象信息
}
LiveDetectSubLabel 网易坑爹的,audio和video subLabel数据类型不一致
type LiveDetectSubLabelDetails ¶
type LiveDetectSubLabelDetails struct {
HitInfos []*LiveDetectHitInfo `json:"hitInfos" bson:"hitInfos"` // 是 命中的线索信息
}
type LiveDetectSubmitReq ¶
type LiveDetectSubmitReq struct {
Version string `json:"version"` // 是 4 接口版本号,值为v3
URL string `json:"url"` // 是 1024 直播流地址
DataID string `json:"dataId"` // 是 128 数据唯一标识,能够根据该值定位到该条数据,如对数据结果有异议,可以发送该值给客户经理查询
Title string `json:"title"` // 否 512 直播语音标题
IP string `json:"ip"` // 否 128 用户IP地址
Account string `json:"account"` // 否 128 账号ID/主播ID
RoomNo string `json:"roomNo"` // 否 128 主播房间号
Age string `json:"age"` // 否 64 主播年龄
AccountLevel string `json:"accountLevel"` // 否 10 账号级别/主播级别(大写A-Z)
AccountName string `json:"accountName"` // 否 30 账号名称/主播名称
DeviceID string `json:"deviceId"` // 否 128 用户设备 id,与易盾设备画像库匹配,明文请转大写传入;MD5加密请明文转大写后MD5计算,再转大写传入,建议抄送
DeviceType int `json:"deviceType"` // 否 4 用户设备id的类型,0:其他,10:IMEI,11:AndroidID,12:IDFA,13:IDFV,14:MAC ,20:IMEI_MD5,21:AndroidID_MD5,22:IDFA_MD5,23:IDFV_MD5,24:MAC_MD5
Livelink string `json:"livelink"` // 否 128 传入该路直播的前台直播路径(必须使用https协议),主要用于SaaS审核系统-直播音视频查询页面和审核页面增加前台跳转链接功能
ScreenMode int `json:"ScreenMode"` // 否 1 0-竖屏,1-横屏,默认竖屏
DetectType int `json:"detectType"` // 否 1 机器过检类型,0:直播视频与直播音频同时过检,1:仅过检直播视频,2:仅过检音频,不填写默认为0,请注意
LabourUnion string `json:"labourUnion"` // 否 256 主播所属工会
OperationManager string `json:"operationManager"` // 否 128 运营管理者
ScFrequency int `json:"scFrequency"` // 否 4 截图检测频率,默认5秒截图检测一次,可设置范围为0.5~600秒
Callback string `json:"callback"` // 否 1024 数据回调参数,调用方根据业务情况自行设计,当调用callback接口获取直播音视频结果时,该接口会原样返回该字段,详细见直播音视频离线检测结果获取。作为数据处理标识,因此该字段应该设计为能唯一定位到该次请求的数据结构,如对用户的昵称进行检测,dataId可设为用户标识(用户ID),用户修改多次,每次请求数据的dataId可能一致,但是callback参数可以设计成定位该次请求的数据结构,比如callback字段设计成json,包含dataId和请求的时间戳等信息,当然如果不想做区分,也可以直接把callback设置成dataId的值。
CallbackURL string `json:"callbackUrl"` // 否 512 离线结果回调通知到客户的URL。主动回调数据接口超时时间设置为2s,为了保证顺利接收数据,需保证接收接口性能稳定并且保证幂等性。
UniqueKey string `json:"uniqueKey"` // 否 256 客户个性化直播流唯一性标识,传入后,将以此值作为重复检测依据,若不传,默认以URL作为查重依据
WallHidden int `json:"wallHidden"` // 否 1 是否从审核墙上隐藏,0-否, 1-是
CheckLanguageCode string `json:"checkLanguageCode"` // 否 2 指定语言检测语音内容,不填以后台配置为准;zh:中文,en:英语,it:意大利语,id:印尼语,es:西班牙语,fr:法语,ms:马来语,tl:菲利宾语,th:泰语,de:德语,hi:印地语,ru:俄语,ar:阿拉伯语,vi:越南语
}
type LiveDetectSubmitResp ¶
type LiveDetectTaskInfo ¶
type LiveDetectVideo ¶
type LiveDetectVideo struct {
Evidence *LiveDetectEvidenceDetail `json:"evidence" bson:"evidence"` // 否 证据信息
Labels []*LiveDetectLabel `json:"labels" bson:"labels"` // 否 分类信息
}
type Ocr ¶
type Ocr struct {
Name string `json:"name"`
Height int `json:"height"`
Width int `json:"width"`
TaskID string `json:"taskId"`
Details []OcrDetails `json:"details"`
}
type OcrDetails ¶
type OcrDetails struct {
Content string `json:"content"`
LineContents []LineContents `json:"lineContents"`
}
type OtherExtension ¶
type OtherExtension struct {
IP string `json:"ip"` // 否 128 用户IP地址,建议抄送,辅助机审策略精准调优
RelatedKeys string `json:"relatedKeys"` // 否 512 String数组,多个关联Key以逗号分隔("xxx,xxx"),最多三个Key,单个Key长度不超过128,适用于私聊/评论/跟帖等情况同一用户或不同用户发送多条违规内容关联检测的场景。如需要检测同一评论下的同一用户或不同用户发送违规内容盖楼场景,Key传值方式可以为("评论ID,用户ID")
ExtStr1 string `json:"extStr1"` // 否 128 自定义扩展参数
ExtStr2 string `json:"extStr2"` // 否 128 自定义扩展参数
ExtLon1 int64 `json:"extLon1"` // 否 2^63-1 自定义扩展参数
ExtLon2 int64 `json:"extLon2"` // 否 2^63-1 自定义扩展参数
}
OtherExtension 其他拓展参数
type Quality ¶
type Quality struct {
Name string `json:"name"`
TaskID string `json:"taskId"`
Details []QualityDetails `json:"details"`
}
type QualityDetails ¶
type QualityDetails struct {
AestheticsRate float64 `json:"aestheticsRate"`
MetaInfo MetaInfo `json:"metaInfo"`
BoarderInfo BoarderInfo `json:"boarderInfo"`
BackgroundInfo BackgroundInfo `json:"backgroundInfo"`
}
type SceneExtension ¶
type SceneExtension struct {
ReceiveUID string `json:"receiveUid"` // N 64 接受消息的用户标识,私聊/评论回复场景使用,易盾可根据该id关联检测,辅助机审策略精准调优
Relationship int `json:"relationship"` // N 11 收发消息者好友关系,1接收人关注发送人,2发送人关注接收人,3互相关注,4互未关注,私聊/评论场景抄送
GroupID string `json:"groupId"` // N 32 群聊id,群聊场景使用,建议抄送,辅助机审策略精准调优
RoomID string `json:"roomId"` // N 32 聊天室/直播/游戏房间,派对房/直播场景使用,可根据不同的房间设置不同策略,建议抄送,辅助机审策略精准调优
Topic string `json:"topic"` // N 128 文章/帖子id,发帖/动态场景使用,易盾可根据该id,关联检测,辅助机审策略精准调优
CommentID string `json:"commentId"` // N 32 主评论id,围绕主评论盖楼场景使用,建议抄送,辅助机审策略精准调优
CommodityID string `json:"commodityId"` // N 32 商品id,直播卖货/商品介绍场景使用,可根据商品类型设置策略,建议抄送,辅助机审策略精准调优
}
SceneExtension 场景扩展参数 场景扩展参数,有助于通过业务场景维度辅助反垃圾结果判定
type Segment ¶
type Segment struct {
StartTime int `json:"startTime" bson:"startTime"` // 断句开始时间,单位毫秒
EndTime int `json:"endTime" bson:"endTime"` // 断句结束时间 ,单位毫秒
}
Segment 人审断句信息, 可为空
type UserExtension ¶
type UserExtension struct {
Account string `json:"account"` // N 128 用户唯一标识,与易盾账号画像库匹配,建议抄送,辅助机审策略精准调优
Phone string `json:"phone"` // N 64 手机号,与易盾风险库匹配。默认国内手机号,如有海外手机,需包含国家地区代码,格式为“+447410xxx186(+44即为国家码)”。如果需要加密,支持传入hash值,hash算法:md5(phone)
Nickname string `json:"nickname"` // N 128 用户昵称,建议抄送,辅助机审策略精准调优
Gender int `json:"gender"` // N 4 用户性别,0未知,1男,2女,在社交、直播场景建议抄送,辅助策略精准调优
Age int `json:"age"` // N 4 用户年龄,0未知,在社交场景建议抄送,辅助策略精准调优
Level int `json:"level"` // N 4 用户等级,0未知,1初级,2中级,3高级,其他值请与易盾策略约定,建议抄送,辅助策略精准调优
RegisterTime int64 `json:"registerTime"` // N 13 注册时间,UNIX 时间戳(毫秒值)
FriendNum int64 `json:"friendNum"` // N 20 好友数,在社交、直播场景中使用,建议抄送
FansNum int64 `json:"fansNum"` // N 20 粉丝数,在社交、直播场景中使用,建议抄送
IsPremiumUse int `json:"isPremiumUse"` // N 4 是否付费用户,0为默认值,1为付费,建议抄送,易盾将结合该信息综合判断
Role string `json:"role"` // N 32 用户类型角色,可针对不同的角色配置不同的策略。角色与易盾策略约定即可
}
UserExtension 用户扩展参数 根据用户信息输出用户画像,并与易盾自有画像库比对,辅助反垃圾结果判定
type VideoCallbackBackPic ¶ added in v1.0.2
type VideoCallbackBackPic struct {
URL string `json:"url"`
}
type VideoCallbackDetail ¶ added in v1.0.2
type VideoCallbackDetail struct {
HitInfos []string `json:"hitInfos"`
ImageTagInfos []*VideoCallbackImageTagInfo `json:"imageTagInfos"`
HitLocationInfos []*VideoCallbackHitLocationInfo `json:"hitLocationInfos"`
}
type VideoCallbackEvidence ¶ added in v1.0.2
type VideoCallbackEvidence struct {
Type int `json:"type"`
URL string `json:"url"`
BeginTime int `json:"beginTime"`
EndTime int `json:"endTime"`
Labels []*VideoCallbackLabel `json:"labels"`
CensorSource int `json:"censorSource"`
BackPics []*VideoCallbackBackPic `json:"backPics"`
}
type VideoCallbackHitLocationInfo ¶ added in v1.0.2
type VideoCallbackImageTagInfo ¶ added in v1.0.2
type VideoCallbackLabel ¶ added in v1.0.2
type VideoCallbackLabel struct {
Label int `json:"label"`
Level int `json:"level"`
Rate float64 `json:"rate"`
SubLabels []*VideoCallbackSubLabel `json:"subLabels"`
}
type VideoCallbackResp ¶ added in v1.0.2
type VideoCallbackResp struct {
TaskID string `json:"taskId"`
Callback string `json:"callback"`
Status int `json:"status"`
Level int `json:"level"`
CensorSource int `json:"censorSource"`
CensorTime int64 `json:"censorTime"`
Duration int `json:"duration"`
Evidences []*VideoCallbackEvidence `json:"evidences"`
}
VideoCallbackResp 点播视频检测结果回调返回值(跟http调用返回的数据结构不一样)
type VideoCallbackSubLabel ¶ added in v1.0.2
type VideoCallbackSubLabel struct {
SubLabel int `json:"subLabel"`
Rate float64 `json:"rate"`
Details *VideoCallbackDetail `json:"details"`
}
type VideoCheckSubmitResp ¶
type VideoCheckSubmitResp struct {
BaseResp
Result VideoCheckSubmitResult `json:"result"`
}
VideoCheckSubmitResp 视频点播Response
type VideoCheckSubmitResult ¶
type VideoDetectResp ¶
type VideoDetectResp struct {
BaseResp
Result []*VideoDetectResult `json:"result"`
}
type VideoDetectResult ¶
type VideoDetectResult struct {
Status int `json:"status"` // 视频处理状态码,定义为:0:检测成功,110:请求重复,120:参数错误,130:解析错误,140:数据类型错误,160:视频大小超限(>5G)
TaskID string `json:"taskId"`
CensorSource int `json:"censorSource"`
CensorTime int64 `json:"censorTime"`
Level int `json:"level"`
Evidences []VideoDetectResultEvidence `json:"evidences"`
Callback string `json:"callback"`
}
type VideoDetectResultEvidence ¶
type VideoDetectResultEvidence struct {
BeginTime int `json:"beginTime"` // 证据开始相对时间,单位为毫秒 如:149000 转换为"00:02:29"
EndTime int `json:"endTime"` // 证据结束相对时间,单位为毫秒
Type int `json:"type"` // 1:图片,2:视频
URL string `json:"url"`
Labels []*VideoLabels `json:"labels"`
}
type VideoDetectSubmitReq ¶ added in v1.0.2
type VideoDetectSubmitReq struct {
URL string // Y 512 点播视频地址
DataID string // Y 128 点播视频唯一标识
Version string // Y 4 接口版本号,可选值 v3.2
Title string // N 512 视频名称
Callback string // N 512 数据回调参数,产品根据业务情况自行设计,当获取离线检测结果时,易盾内容安全服务会返回该字段
CallbackURL string // N 256 离线结果回调通知到客户的URL。主动回调数据接口超时时间设置为2s,为了保证顺利接收数据,需保证接收接口性能稳定并且保证幂等性。
UniqueKey string // N 64 客户个性化视频唯一性标识,传入后,将以此值作为重复检测依据,若不传,默认以URL作为查重依据,如果重复提交会被拒绝,返回报错信息请求重复,以及原提交taskID值,具体返回请查看响应示例
SubProduct string // N 32 业务结算id(自定义),业务方传入参数,用于资源账单统计,如需开启请联系易盾客户经理。开启之后资源账单按套餐结算sheet增加subProduct维度的数据请求量、检测量、消耗金额的统计
Account string // 用户扩展参数 N 128 用户唯一标识,与易盾账号画像库匹配,建议抄送,辅助机审策略精准调优
// ----------------截帧频率指定参数---------------
AdvancedFrequency string // json字符串 N 128 高级截帧设置,此项填写,默认截帧策略失效
}
type VideoLabels ¶
Click to show internal directories.
Click to hide internal directories.