Documentation ¶
Index ¶
- Constants
- type AudioModerationRequest
- type AudioModerationResponse
- type Client
- func (c *Client) AudioModeration(request *AudioModerationRequest) (response *AudioModerationResponse, err error)
- func (c *Client) CreateFileSample(request *CreateFileSampleRequest) (response *CreateFileSampleResponse, err error)
- func (c *Client) CreateTextSample(request *CreateTextSampleRequest) (response *CreateTextSampleResponse, err error)
- func (c *Client) DeleteFileSample(request *DeleteFileSampleRequest) (response *DeleteFileSampleResponse, err error)
- func (c *Client) DeleteTextSample(request *DeleteTextSampleRequest) (response *DeleteTextSampleResponse, err error)
- func (c *Client) DescribeFileSample(request *DescribeFileSampleRequest) (response *DescribeFileSampleResponse, err error)
- func (c *Client) DescribeModerationOverview(request *DescribeModerationOverviewRequest) (response *DescribeModerationOverviewResponse, err error)
- func (c *Client) DescribeTextSample(request *DescribeTextSampleRequest) (response *DescribeTextSampleResponse, err error)
- func (c *Client) ImageModeration(request *ImageModerationRequest) (response *ImageModerationResponse, err error)
- func (c *Client) TextModeration(request *TextModerationRequest) (response *TextModerationResponse, err error)
- func (c *Client) VideoModeration(request *VideoModerationRequest) (response *VideoModerationResponse, err error)
- type CreateFileSampleRequest
- type CreateFileSampleResponse
- type CreateTextSampleRequest
- type CreateTextSampleResponse
- type DeleteFileSampleRequest
- type DeleteFileSampleResponse
- type DeleteTextSampleRequest
- type DeleteTextSampleResponse
- type DescribeFileSampleRequest
- type DescribeFileSampleResponse
- type DescribeModerationOverviewRequest
- type DescribeModerationOverviewResponse
- type DescribeTextSampleRequest
- type DescribeTextSampleResponse
- type FileSample
- type FileSampleInfo
- type Filter
- type ImageData
- type ImageHotDetect
- type ImageIllegalDetect
- type ImageModerationRequest
- type ImageModerationResponse
- type ImagePolityDetect
- type ImagePornDetect
- type ImageTerrorDetect
- type OCRDetect
- type OverviewRecord
- type Similar
- type TextData
- type TextModerationRequest
- type TextModerationResponse
- type TextSample
- type VideoModerationRequest
- type VideoModerationResponse
Constants ¶
const APIVersion = "2019-03-21"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioModerationRequest ¶
type AudioModerationRequest struct { *tchttp.BaseRequest // 回调url CallbackUrl *string `json:"CallbackUrl,omitempty" name:"CallbackUrl"` // 音频内容的base64 FileContent *string `json:"FileContent,omitempty" name:"FileContent"` // 音频文件的MD5值 FileMD5 *string `json:"FileMD5,omitempty" name:"FileMD5"` // 音频内容Url ,其中FileUrl和FileContent二选一 FileUrl *string `json:"FileUrl,omitempty" name:"FileUrl"` }
func NewAudioModerationRequest ¶
func NewAudioModerationRequest() (request *AudioModerationRequest)
func (*AudioModerationRequest) FromJsonString ¶
func (r *AudioModerationRequest) FromJsonString(s string) error
func (*AudioModerationRequest) ToJsonString ¶
func (r *AudioModerationRequest) ToJsonString() string
type AudioModerationResponse ¶
type AudioModerationResponse struct { *tchttp.BaseResponse Response *struct { // 业务返回码 // 60001:成功请求回调任务 BusinessCode *int64 `json:"BusinessCode,omitempty" name:"BusinessCode"` // 识别返回结果 Data []*string `json:"Data,omitempty" name:"Data" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAudioModerationResponse ¶
func NewAudioModerationResponse() (response *AudioModerationResponse)
func (*AudioModerationResponse) FromJsonString ¶
func (r *AudioModerationResponse) FromJsonString(s string) error
func (*AudioModerationResponse) ToJsonString ¶
func (r *AudioModerationResponse) ToJsonString() string
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AudioModeration ¶
func (c *Client) AudioModeration(request *AudioModerationRequest) (response *AudioModerationResponse, err error)
音频内容检测(Audio Moderation, AM)服务使用了波形分析、声纹分析等技术,能识别涉黄、涉政、涉恐等违规音频,同时支持用户配置音频黑库,打击自定义的违规内容。
<br> 接口返回值说明:调用本接口有两个返回值,一个是同步返回值,一个是识别完成后的异步回调返回值。
音频识别结果存在于异步回调返回值中,异步回调返回值明细:
参数名 | 类型 | 描述 -|-|- SeqID | String | 请求seqId唯一标识 EvilFlag | Integer | 是否恶意:0正常,1可疑(Homology模块下:0未匹配到,1恶意,2白样本) EvilType | Integer | 恶意类型:100正常,20001政治,20002色情,20007谩骂 Duration | Integer | 音频时长(单位:毫秒) PornDetect | | 音频智能鉴黄 PolityDetect | | 音频涉政识别 CurseDetect | | 音频谩骂识别 Homology | | 相似度识别 HitFlag | Integer | 0正常,1可疑 Score | Integer | 判断分值 Keywords | Array of String | 关键词明细 StartTime | Array of String | 恶意开始时间 EndTime | Array of String | 恶意结束时间 SeedUrl | String | 命中的种子URL
func (*Client) CreateFileSample ¶
func (c *Client) CreateFileSample(request *CreateFileSampleRequest) (response *CreateFileSampleResponse, err error)
通过该接口可以将文件新增到样本库
func (*Client) CreateTextSample ¶
func (c *Client) CreateTextSample(request *CreateTextSampleRequest) (response *CreateTextSampleResponse, err error)
新增文本类型样本库
func (*Client) DeleteFileSample ¶
func (c *Client) DeleteFileSample(request *DeleteFileSampleRequest) (response *DeleteFileSampleResponse, err error)
删除文件样本库,支持批量删除,一次提交不超过20个
func (*Client) DeleteTextSample ¶
func (c *Client) DeleteTextSample(request *DeleteTextSampleRequest) (response *DeleteTextSampleResponse, err error)
删除文字样本库,暂时只支持单个删除
func (*Client) DescribeFileSample ¶
func (c *Client) DescribeFileSample(request *DescribeFileSampleRequest) (response *DescribeFileSampleResponse, err error)
查询文件样本库,支持批量查询
func (*Client) DescribeModerationOverview ¶
func (c *Client) DescribeModerationOverview(request *DescribeModerationOverviewRequest) (response *DescribeModerationOverviewResponse, err error)
根据日期,渠道和服务类型查询识别结果概览数据
func (*Client) DescribeTextSample ¶
func (c *Client) DescribeTextSample(request *DescribeTextSampleRequest) (response *DescribeTextSampleResponse, err error)
支持批量查询文字样本库
func (*Client) ImageModeration ¶
func (c *Client) ImageModeration(request *ImageModerationRequest) (response *ImageModerationResponse, err error)
图片内容检测服务(Image Moderation, IM)能自动扫描图片,识别涉黄、涉恐、涉政、涉毒等有害内容,同时支持用户配置图片黑名单,打击自定义的违规图片。
func (*Client) TextModeration ¶
func (c *Client) TextModeration(request *TextModerationRequest) (response *TextModerationResponse, err error)
文本内容检测(Text Moderation)服务使用了深度学习技术,识别涉黄、涉政、涉恐等有害内容,同时支持用户配置词库,打击自定义的违规文本。
func (*Client) VideoModeration ¶
func (c *Client) VideoModeration(request *VideoModerationRequest) (response *VideoModerationResponse, err error)
视频内容检测(Video Moderation, VM)服务能识别涉黄、涉政、涉恐等违规视频,同时支持用户配置视频黑库,打击自定义的违规内容。
<br> 接口返回值说明:调用本接口有两个返回值,一个是同步返回值,一个是识别完成后的异步回调返回值。
视频识别结果存在于异步回调返回值中,异步回调返回值明细:
参数名 | 类型 | 描述 -|-|- SeqID | String | 请求seqId唯一标识 EvilFlag | Integer | 是否恶意:0正常,1可疑(Homology模块下:0未匹配到,1恶意,2白样本) EvilType | Integer | 恶意类型:100正常,20001政治,20002色情 Duration | Integer | 视频时长(单位:秒) PornDetect | | 视频智能鉴黄 PolityDetect | | 视频涉政识别 Homology | | 相似度识别 HitFlag | Integer | 0正常,1可疑 Score | Integer | 判断分值 SeedUrl | String | 命中的种子URL
type CreateFileSampleRequest ¶
type CreateFileSampleRequest struct { *tchttp.BaseRequest // 文件类型结构数组 Contents []*FileSample `json:"Contents,omitempty" name:"Contents" list` // 恶意类型 // 100:正常 // 20001:政治 // 20002:色情 // 20006:涉毒违法 // 20007:谩骂 // 24001:暴恐 // 21000:综合 // 20105:广告引流 EvilType *int64 `json:"EvilType,omitempty" name:"EvilType"` // 文件类型 // image:图片 // audio:音频 // video:视频 FileType *string `json:"FileType,omitempty" name:"FileType"` // 样本类型 // 1:黑库 // 2:白库 Label *uint64 `json:"Label,omitempty" name:"Label"` }
func NewCreateFileSampleRequest ¶
func NewCreateFileSampleRequest() (request *CreateFileSampleRequest)
func (*CreateFileSampleRequest) FromJsonString ¶
func (r *CreateFileSampleRequest) FromJsonString(s string) error
func (*CreateFileSampleRequest) ToJsonString ¶
func (r *CreateFileSampleRequest) ToJsonString() string
type CreateFileSampleResponse ¶
type CreateFileSampleResponse struct { *tchttp.BaseResponse Response *struct { // 任务状态 // 1:已完成 // 2:处理中 Progress *uint64 `json:"Progress,omitempty" name:"Progress"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateFileSampleResponse ¶
func NewCreateFileSampleResponse() (response *CreateFileSampleResponse)
func (*CreateFileSampleResponse) FromJsonString ¶
func (r *CreateFileSampleResponse) FromJsonString(s string) error
func (*CreateFileSampleResponse) ToJsonString ¶
func (r *CreateFileSampleResponse) ToJsonString() string
type CreateTextSampleRequest ¶
type CreateTextSampleRequest struct { *tchttp.BaseRequest // 关键词数组 Contents []*string `json:"Contents,omitempty" name:"Contents" list` // 恶意类型 // 100:正常 // 20001:政治 // 20002:色情 // 20006:涉毒违法 // 20007:谩骂 // 24001:暴恐 // 21000:综合 // 20105:广告引流 EvilType *int64 `json:"EvilType,omitempty" name:"EvilType"` // 样本类型 // 1:黑库 // 2:白库 Label *uint64 `json:"Label,omitempty" name:"Label"` }
func NewCreateTextSampleRequest ¶
func NewCreateTextSampleRequest() (request *CreateTextSampleRequest)
func (*CreateTextSampleRequest) FromJsonString ¶
func (r *CreateTextSampleRequest) FromJsonString(s string) error
func (*CreateTextSampleRequest) ToJsonString ¶
func (r *CreateTextSampleRequest) ToJsonString() string
type CreateTextSampleResponse ¶
type CreateTextSampleResponse struct { *tchttp.BaseResponse Response *struct { // 任务状态 // 1:已完成 // 2:处理中 Progress *uint64 `json:"Progress,omitempty" name:"Progress"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateTextSampleResponse ¶
func NewCreateTextSampleResponse() (response *CreateTextSampleResponse)
func (*CreateTextSampleResponse) FromJsonString ¶
func (r *CreateTextSampleResponse) FromJsonString(s string) error
func (*CreateTextSampleResponse) ToJsonString ¶
func (r *CreateTextSampleResponse) ToJsonString() string
type DeleteFileSampleRequest ¶
type DeleteFileSampleRequest struct { *tchttp.BaseRequest // 唯一标识数组 Ids []*string `json:"Ids,omitempty" name:"Ids" list` }
func NewDeleteFileSampleRequest ¶
func NewDeleteFileSampleRequest() (request *DeleteFileSampleRequest)
func (*DeleteFileSampleRequest) FromJsonString ¶
func (r *DeleteFileSampleRequest) FromJsonString(s string) error
func (*DeleteFileSampleRequest) ToJsonString ¶
func (r *DeleteFileSampleRequest) ToJsonString() string
type DeleteFileSampleResponse ¶
type DeleteFileSampleResponse struct { *tchttp.BaseResponse Response *struct { // 任务状态 // 1:已完成 // 2:处理中 Progress *uint64 `json:"Progress,omitempty" name:"Progress"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteFileSampleResponse ¶
func NewDeleteFileSampleResponse() (response *DeleteFileSampleResponse)
func (*DeleteFileSampleResponse) FromJsonString ¶
func (r *DeleteFileSampleResponse) FromJsonString(s string) error
func (*DeleteFileSampleResponse) ToJsonString ¶
func (r *DeleteFileSampleResponse) ToJsonString() string
type DeleteTextSampleRequest ¶
type DeleteTextSampleRequest struct { *tchttp.BaseRequest // 唯一标识数组,目前暂时只支持单个删除 Ids []*string `json:"Ids,omitempty" name:"Ids" list` }
func NewDeleteTextSampleRequest ¶
func NewDeleteTextSampleRequest() (request *DeleteTextSampleRequest)
func (*DeleteTextSampleRequest) FromJsonString ¶
func (r *DeleteTextSampleRequest) FromJsonString(s string) error
func (*DeleteTextSampleRequest) ToJsonString ¶
func (r *DeleteTextSampleRequest) ToJsonString() string
type DeleteTextSampleResponse ¶
type DeleteTextSampleResponse struct { *tchttp.BaseResponse Response *struct { // 任务状态 // 1:已完成 // 2:处理中 Progress *uint64 `json:"Progress,omitempty" name:"Progress"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteTextSampleResponse ¶
func NewDeleteTextSampleResponse() (response *DeleteTextSampleResponse)
func (*DeleteTextSampleResponse) FromJsonString ¶
func (r *DeleteTextSampleResponse) FromJsonString(s string) error
func (*DeleteTextSampleResponse) ToJsonString ¶
func (r *DeleteTextSampleResponse) ToJsonString() string
type DescribeFileSampleRequest ¶
type DescribeFileSampleRequest struct { *tchttp.BaseRequest // 支持通过标签值进行筛选 Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` // 数量限制,默认为20,最大值为100 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 偏移量,默认为0 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 升序(asc)还是降序(desc),默认:desc OrderDirection *string `json:"OrderDirection,omitempty" name:"OrderDirection"` // 按某个字段排序,目前仅支持CreatedAt排序 OrderField *string `json:"OrderField,omitempty" name:"OrderField"` }
func NewDescribeFileSampleRequest ¶
func NewDescribeFileSampleRequest() (request *DescribeFileSampleRequest)
func (*DescribeFileSampleRequest) FromJsonString ¶
func (r *DescribeFileSampleRequest) FromJsonString(s string) error
func (*DescribeFileSampleRequest) ToJsonString ¶
func (r *DescribeFileSampleRequest) ToJsonString() string
type DescribeFileSampleResponse ¶
type DescribeFileSampleResponse struct { *tchttp.BaseResponse Response *struct { // 符合要求的样本的信息 FileSampleSet []*FileSampleInfo `json:"FileSampleSet,omitempty" name:"FileSampleSet" list` // 符合要求的样本的数量 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeFileSampleResponse ¶
func NewDescribeFileSampleResponse() (response *DescribeFileSampleResponse)
func (*DescribeFileSampleResponse) FromJsonString ¶
func (r *DescribeFileSampleResponse) FromJsonString(s string) error
func (*DescribeFileSampleResponse) ToJsonString ¶
func (r *DescribeFileSampleResponse) ToJsonString() string
type DescribeModerationOverviewRequest ¶
type DescribeModerationOverviewRequest struct { *tchttp.BaseRequest // 日期,如2019-01-01, 查询该日期的概览数据 Date *string `json:"Date,omitempty" name:"Date"` // 服务类型数组,可以动态配置,Text:文本,Image:图片,Audio:音频,Video:视频, 使用"ALL"表示所有类型, 不区分大小写,如 ["Text", "Image"]查询文本和图片服务的数据,["all"]查询所有服务的数据。 ServiceTypes []*string `json:"ServiceTypes,omitempty" name:"ServiceTypes" list` // 渠道号数组,1:直播 2:点播 3:IM 4:GME,统计指定渠道组合的汇总数据,如[1,2]表示获取直播和点播两个渠道的汇总数据,不填[]为所有渠道汇总数据 Channels []*uint64 `json:"Channels,omitempty" name:"Channels" list` }
func NewDescribeModerationOverviewRequest ¶
func NewDescribeModerationOverviewRequest() (request *DescribeModerationOverviewRequest)
func (*DescribeModerationOverviewRequest) FromJsonString ¶
func (r *DescribeModerationOverviewRequest) FromJsonString(s string) error
func (*DescribeModerationOverviewRequest) ToJsonString ¶
func (r *DescribeModerationOverviewRequest) ToJsonString() string
type DescribeModerationOverviewResponse ¶
type DescribeModerationOverviewResponse struct { *tchttp.BaseResponse Response *struct { // 概览数据集合 Results []*OverviewRecord `json:"Results,omitempty" name:"Results" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeModerationOverviewResponse ¶
func NewDescribeModerationOverviewResponse() (response *DescribeModerationOverviewResponse)
func (*DescribeModerationOverviewResponse) FromJsonString ¶
func (r *DescribeModerationOverviewResponse) FromJsonString(s string) error
func (*DescribeModerationOverviewResponse) ToJsonString ¶
func (r *DescribeModerationOverviewResponse) ToJsonString() string
type DescribeTextSampleRequest ¶
type DescribeTextSampleRequest struct { *tchttp.BaseRequest // 支持通过标签值进行筛选 Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` // 数量限制,默认为20,最大值为100 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 偏移量,默认为0 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 升序(asc)还是降序(desc),默认:desc OrderDirection *string `json:"OrderDirection,omitempty" name:"OrderDirection"` // 按某个字段排序,目前仅支持CreatedAt排序 OrderField *string `json:"OrderField,omitempty" name:"OrderField"` }
func NewDescribeTextSampleRequest ¶
func NewDescribeTextSampleRequest() (request *DescribeTextSampleRequest)
func (*DescribeTextSampleRequest) FromJsonString ¶
func (r *DescribeTextSampleRequest) FromJsonString(s string) error
func (*DescribeTextSampleRequest) ToJsonString ¶
func (r *DescribeTextSampleRequest) ToJsonString() string
type DescribeTextSampleResponse ¶
type DescribeTextSampleResponse struct { *tchttp.BaseResponse Response *struct { // 符合要求的样本的信息 TextSampleSet []*TextSample `json:"TextSampleSet,omitempty" name:"TextSampleSet" list` // 符合要求的样本的数量 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeTextSampleResponse ¶
func NewDescribeTextSampleResponse() (response *DescribeTextSampleResponse)
func (*DescribeTextSampleResponse) FromJsonString ¶
func (r *DescribeTextSampleResponse) FromJsonString(s string) error
func (*DescribeTextSampleResponse) ToJsonString ¶
func (r *DescribeTextSampleResponse) ToJsonString() string
type FileSample ¶
type FileSampleInfo ¶
type FileSampleInfo struct { // 处理错误码 Code *int64 `json:"Code,omitempty" name:"Code"` // 创建时间戳 CreatedAt *uint64 `json:"CreatedAt,omitempty" name:"CreatedAt"` // 恶意类型 // 100:正常 // 20001:政治 // 20002:色情 // 20006:涉毒违法 // 20007:谩骂 // 24001:暴恐 // 21000:综合 EvilType *uint64 `json:"EvilType,omitempty" name:"EvilType"` // 文件的md5 FileMd5 *string `json:"FileMd5,omitempty" name:"FileMd5"` // 文件名称 FileName *string `json:"FileName,omitempty" name:"FileName"` // 文件类型 FileType *string `json:"FileType,omitempty" name:"FileType"` // 唯一标识 Id *string `json:"Id,omitempty" name:"Id"` // 样本类型 // 1:黑库 // 2:白库 Label *uint64 `json:"Label,omitempty" name:"Label"` // 任务状态 // 1:已完成 // 2:处理中 Status *uint64 `json:"Status,omitempty" name:"Status"` // 文件的url FileUrl *string `json:"FileUrl,omitempty" name:"FileUrl"` }
type ImageData ¶
type ImageData struct { // 是否恶意 0:正常 1:可疑 EvilFlag *int64 `json:"EvilFlag,omitempty" name:"EvilFlag"` // 恶意类型 // 100:正常 // 20001:政治 // 20002:色情 // 20006:涉毒违法 // 20007:谩骂 // 20103:性感 // 24001:暴恐 // 21000:综合 EvilType *int64 `json:"EvilType,omitempty" name:"EvilType"` // 图片性感详情 HotDetect *ImageHotDetect `json:"HotDetect,omitempty" name:"HotDetect"` // 图片违法详情 IllegalDetect *ImageIllegalDetect `json:"IllegalDetect,omitempty" name:"IllegalDetect"` // 图片OCR详情 OCRDetect *OCRDetect `json:"OCRDetect,omitempty" name:"OCRDetect"` // 图片涉政详情 PolityDetect *ImagePolityDetect `json:"PolityDetect,omitempty" name:"PolityDetect"` // 图片涉黄详情 PornDetect *ImagePornDetect `json:"PornDetect,omitempty" name:"PornDetect"` // 图片相似度详情 Similar *Similar `json:"Similar,omitempty" name:"Similar"` // 图片暴恐详情 TerrorDetect *ImageTerrorDetect `json:"TerrorDetect,omitempty" name:"TerrorDetect"` }
type ImageHotDetect ¶
type ImageHotDetect struct { // 恶意类型 // 100:正常 // 20103:性感 EvilType *int64 `json:"EvilType,omitempty" name:"EvilType"` // 处置判定 0:正常 1:可疑 HitFlag *int64 `json:"HitFlag,omitempty" name:"HitFlag"` // 关键词明细 Keywords []*string `json:"Keywords,omitempty" name:"Keywords" list` // 性感标签:性感特征中文描述 Labels []*string `json:"Labels,omitempty" name:"Labels" list` // 性感分:分值范围 0-100,分数越高性感倾向越明显 Score *int64 `json:"Score,omitempty" name:"Score"` }
type ImageIllegalDetect ¶
type ImageIllegalDetect struct { // 恶意类型 // 100:正常 // 20006:涉毒违法 EvilType *int64 `json:"EvilType,omitempty" name:"EvilType"` // 处置判定 0:正常 1:可疑 HitFlag *int64 `json:"HitFlag,omitempty" name:"HitFlag"` // 关键词明细 Keywords []*string `json:"Keywords,omitempty" name:"Keywords" list` // 违法标签:返回违法特征中文描述,如赌桌,枪支 Labels []*string `json:"Labels,omitempty" name:"Labels" list` // 违法分:分值范围 0-100,分数越高违法倾向越明显 Score *int64 `json:"Score,omitempty" name:"Score"` }
type ImageModerationRequest ¶
type ImageModerationRequest struct { *tchttp.BaseRequest // 文件内容 Base64,与FileUrl必须二填一 FileContent *string `json:"FileContent,omitempty" name:"FileContent"` // 文件MD5值 FileMD5 *string `json:"FileMD5,omitempty" name:"FileMD5"` // 文件地址 FileUrl *string `json:"FileUrl,omitempty" name:"FileUrl"` }
func NewImageModerationRequest ¶
func NewImageModerationRequest() (request *ImageModerationRequest)
func (*ImageModerationRequest) FromJsonString ¶
func (r *ImageModerationRequest) FromJsonString(s string) error
func (*ImageModerationRequest) ToJsonString ¶
func (r *ImageModerationRequest) ToJsonString() string
type ImageModerationResponse ¶
type ImageModerationResponse struct { *tchttp.BaseResponse Response *struct { // 识别结果 Data *ImageData `json:"Data,omitempty" name:"Data"` // 业务返回码 BusinessCode *int64 `json:"BusinessCode,omitempty" name:"BusinessCode"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewImageModerationResponse ¶
func NewImageModerationResponse() (response *ImageModerationResponse)
func (*ImageModerationResponse) FromJsonString ¶
func (r *ImageModerationResponse) FromJsonString(s string) error
func (*ImageModerationResponse) ToJsonString ¶
func (r *ImageModerationResponse) ToJsonString() string
type ImagePolityDetect ¶
type ImagePolityDetect struct { // 恶意类型 // 100:正常 // 20001:政治 EvilType *int64 `json:"EvilType,omitempty" name:"EvilType"` // 处置判定 0:正常 1:可疑 HitFlag *int64 `json:"HitFlag,omitempty" name:"HitFlag"` // 命中的人脸名称 FaceNames []*string `json:"FaceNames,omitempty" name:"FaceNames" list` // 关键词明细 Keywords []*string `json:"Keywords,omitempty" name:"Keywords" list` // 命中的政治物品名称 PolityItems []*string `json:"PolityItems,omitempty" name:"PolityItems" list` // 政治(人脸)分:分值范围 0-100,分数越高可疑程度越高 Score *int64 `json:"Score,omitempty" name:"Score"` }
type ImagePornDetect ¶
type ImagePornDetect struct { // 恶意类型 // 100:正常 // 20002:色情 EvilType *int64 `json:"EvilType,omitempty" name:"EvilType"` // 处置判定 0:正常 1:可疑 HitFlag *int64 `json:"HitFlag,omitempty" name:"HitFlag"` // 关键词明细 Keywords []*string `json:"Keywords,omitempty" name:"Keywords" list` // 色情标签:色情特征中文描述 Labels []*string `json:"Labels,omitempty" name:"Labels" list` // 色情分:分值范围 0-100,分数越高色情倾向越明显 Score *int64 `json:"Score,omitempty" name:"Score"` }
type ImageTerrorDetect ¶
type ImageTerrorDetect struct { // 恶意类型 // 100:正常 // 24001:暴恐 EvilType *int64 `json:"EvilType,omitempty" name:"EvilType"` // 处置判定 0:正常 1:可疑 HitFlag *int64 `json:"HitFlag,omitempty" name:"HitFlag"` // 关键词明细 Keywords []*string `json:"Keywords,omitempty" name:"Keywords" list` // 暴恐标签:返回暴恐特征中文描述 Labels []*string `json:"Labels,omitempty" name:"Labels" list` // 暴恐分:分值范围0--100,分数越高暴恐倾向越明显 Score *int64 `json:"Score,omitempty" name:"Score"` }
type OCRDetect ¶
type OCRDetect struct { // 识别到的文本信息 TextInfo *string `json:"TextInfo,omitempty" name:"TextInfo"` }
type OverviewRecord ¶
type OverviewRecord struct { // 调用恶意量 EvilCount *uint64 `json:"EvilCount,omitempty" name:"EvilCount"` // Text表示文本,Image表示图片,Audio表示音频,Video表示视频 ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"` // 调用总量 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 恶意量同比增长率 Yoy *string `json:"Yoy,omitempty" name:"Yoy"` }
type Similar ¶
type Similar struct { // 恶意类型 // 100:正常 // 20001:政治 // 20002:色情 // 20006:涉毒违法 // 20007:谩骂 // 24001:暴恐 // 21000:综合 EvilType *int64 `json:"EvilType,omitempty" name:"EvilType"` // 处置判定 0:未匹配到 1:恶意 2:白样本 HitFlag *int64 `json:"HitFlag,omitempty" name:"HitFlag"` // 返回的种子url SeedUrl *string `json:"SeedUrl,omitempty" name:"SeedUrl"` }
type TextData ¶
type TextData struct { // 是否恶意 0:正常 1:可疑 EvilFlag *int64 `json:"EvilFlag,omitempty" name:"EvilFlag"` // 恶意类型 // 100:正常 // 20001:政治 // 20002:色情 // 20006:涉毒违法 // 20007:谩骂 // 20105:广告引流 // 24001:暴恐 // 21000:综合 EvilType *int64 `json:"EvilType,omitempty" name:"EvilType"` // 命中的关键词 Keywords []*string `json:"Keywords,omitempty" name:"Keywords" list` }
type TextModerationRequest ¶
type TextModerationRequest struct { *tchttp.BaseRequest // 文本内容Base64编码 Content *string `json:"Content,omitempty" name:"Content"` }
func NewTextModerationRequest ¶
func NewTextModerationRequest() (request *TextModerationRequest)
func (*TextModerationRequest) FromJsonString ¶
func (r *TextModerationRequest) FromJsonString(s string) error
func (*TextModerationRequest) ToJsonString ¶
func (r *TextModerationRequest) ToJsonString() string
type TextModerationResponse ¶
type TextModerationResponse struct { *tchttp.BaseResponse Response *struct { // 识别结果 Data *TextData `json:"Data,omitempty" name:"Data"` // 业务返回码 BusinessCode *int64 `json:"BusinessCode,omitempty" name:"BusinessCode"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewTextModerationResponse ¶
func NewTextModerationResponse() (response *TextModerationResponse)
func (*TextModerationResponse) FromJsonString ¶
func (r *TextModerationResponse) FromJsonString(s string) error
func (*TextModerationResponse) ToJsonString ¶
func (r *TextModerationResponse) ToJsonString() string
type TextSample ¶
type TextSample struct { // 处理错误码 Code *int64 `json:"Code,omitempty" name:"Code"` // 关键词 Content *string `json:"Content,omitempty" name:"Content"` // 创建时间戳 CreatedAt *uint64 `json:"CreatedAt,omitempty" name:"CreatedAt"` // 恶意类型 // 100:正常 // 20001:政治 // 20002:色情 // 20006:涉毒违法 // 20007:谩骂 // 24001:暴恐 // 21000:综合 EvilType *uint64 `json:"EvilType,omitempty" name:"EvilType"` // 唯一标识 Id *string `json:"Id,omitempty" name:"Id"` // 样本类型 // 1:黑库 // 2:白库 Label *uint64 `json:"Label,omitempty" name:"Label"` // 任务状态 // 1:已完成 // 2:处理中 Status *uint64 `json:"Status,omitempty" name:"Status"` }
type VideoModerationRequest ¶
type VideoModerationRequest struct { *tchttp.BaseRequest // 回调Url CallbackUrl *string `json:"CallbackUrl,omitempty" name:"CallbackUrl"` // 视频文件MD5 FileMD5 *string `json:"FileMD5,omitempty" name:"FileMD5"` // 视频内容base64 FileContent *string `json:"FileContent,omitempty" name:"FileContent"` // 视频内容Url,其中FileUrl与FileContent二选一 FileUrl *string `json:"FileUrl,omitempty" name:"FileUrl"` }
func NewVideoModerationRequest ¶
func NewVideoModerationRequest() (request *VideoModerationRequest)
func (*VideoModerationRequest) FromJsonString ¶
func (r *VideoModerationRequest) FromJsonString(s string) error
func (*VideoModerationRequest) ToJsonString ¶
func (r *VideoModerationRequest) ToJsonString() string
type VideoModerationResponse ¶
type VideoModerationResponse struct { *tchttp.BaseResponse Response *struct { // 业务返回码 // 60001:成功请求回调任务 BusinessCode *int64 `json:"BusinessCode,omitempty" name:"BusinessCode"` // 识别返回结果 Data *string `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewVideoModerationResponse ¶
func NewVideoModerationResponse() (response *VideoModerationResponse)
func (*VideoModerationResponse) FromJsonString ¶
func (r *VideoModerationResponse) FromJsonString(s string) error
func (*VideoModerationResponse) ToJsonString ¶
func (r *VideoModerationResponse) ToJsonString() string