@@ -103,28 +103,31 @@ func (s *CIService) ImageProcess(ctx context.Context, name string, opt *ImagePro
103103
104104// ImageRecognitionOptions is the option of ImageAuditing
105105type ImageRecognitionOptions struct {
106- CIProcess string `url:"ci-process,omitempty"`
107- DetectType string `url:"detect-type,omitempty"`
108- DetectUrl string `url:"detect-url,omitempty"`
109- Interval int `url:"interval,omitempty"`
110- MaxFrames int `url:"max-frames,omitempty"`
111- BizType string `url:"biz-type,omitempty"`
106+ CIProcess string `url:"ci-process,omitempty"`
107+ DetectType string `url:"detect-type,omitempty"`
108+ DetectUrl string `url:"detect-url,omitempty"`
109+ Interval int `url:"interval,omitempty"`
110+ MaxFrames int `url:"max-frames,omitempty"`
111+ BizType string `url:"biz-type,omitempty"`
112+ LargeImageDetect int `url:"large-image-detect,omitempty"`
112113}
113114
114115// ImageRecognitionResult is the result of ImageRecognition/ImageAuditing
115116type ImageRecognitionResult struct {
116- XMLName xml.Name `xml:"RecognitionResult"`
117- JobId string `xml:"JobId,omitempty"`
118- Text string `xml:"Text,omitempty"`
119- Label string `xml:"Label,omitempty"`
120- Result int `xml:"Result,omitempty"`
121- Score int `xml:"Score,omitempty"`
122- SubLabel string `xml:"SubLabel,omitempty"`
123- PornInfo * RecognitionInfo `xml:"PornInfo,omitempty"`
124- TerroristInfo * RecognitionInfo `xml:"TerroristInfo,omitempty"`
125- PoliticsInfo * RecognitionInfo `xml:"PoliticsInfo,omitempty"`
126- AdsInfo * RecognitionInfo `xml:"AdsInfo,omitempty"`
127- TeenagerInfo * RecognitionInfo `xml:"TeenagerInfo,omitempty"`
117+ XMLName xml.Name `xml:"RecognitionResult"`
118+ JobId string `xml:"JobId,omitempty"`
119+ Text string `xml:"Text,omitempty"`
120+ Label string `xml:"Label,omitempty"`
121+ Result int `xml:"Result,omitempty"`
122+ Score int `xml:"Score,omitempty"`
123+ SubLabel string `xml:"SubLabel,omitempty"`
124+ PornInfo * RecognitionInfo `xml:"PornInfo,omitempty"`
125+ TerroristInfo * RecognitionInfo `xml:"TerroristInfo,omitempty"`
126+ PoliticsInfo * RecognitionInfo `xml:"PoliticsInfo,omitempty"`
127+ AdsInfo * RecognitionInfo `xml:"AdsInfo,omitempty"`
128+ TeenagerInfo * RecognitionInfo `xml:"TeenagerInfo,omitempty"`
129+ TerrorismInfo * RecognitionInfo `xml:"TerrorismInfo,omitempty"`
130+ CompressionResult int `xml:"CompressionResult,omitempty"`
128131}
129132
130133// RecognitionInfo is the result of auditing scene
@@ -176,11 +179,12 @@ func (s *CIService) ImageAuditing(ctx context.Context, name string, opt *ImageRe
176179
177180// ImageAuditingInputOptions is the option of BatchImageAuditingOptions
178181type ImageAuditingInputOptions struct {
179- DataId string `xml:",omitempty"`
180- Object string `xml:",omitempty"`
181- Url string `xml:",omitempty"`
182- Interval int `xml:",omitempty"`
183- MaxFrames int `xml:",omitempty"`
182+ DataId string `xml:",omitempty"`
183+ Object string `xml:",omitempty"`
184+ Url string `xml:",omitempty"`
185+ Interval int `xml:",omitempty"`
186+ MaxFrames int `xml:",omitempty"`
187+ LargeImageDetect int `xml:",omitempty"`
184188}
185189
186190// ImageAuditingJobConf is the config of BatchImageAuditingOptions
@@ -196,24 +200,25 @@ type BatchImageAuditingOptions struct {
196200 Conf * ImageAuditingJobConf `xml:"Conf"`
197201}
198202
199- // ImageRecognitionResult is the result of BatchImageAuditingJobResult
203+ // ImageAuditingResult is the result of BatchImageAuditingJobResult
200204type ImageAuditingResult struct {
201- Code string `xml:",omitempty"`
202- Message string `xml:",omitempty"`
203- JobId string `xml:"JobId,omitempty"`
204- DataId string `xml:",omitempty"`
205- Object string `xml:",omitempty"`
206- Url string `xml:",omitempty"`
207- Text string `xml:",omitempty"`
208- Label string `xml:",omitempty"`
209- Result int `xml:",omitempty"`
210- Score int `xml:",omitempty"`
211- SubLabel string `xml:",omitempty"`
212- PornInfo * RecognitionInfo `xml:",omitempty"`
213- TerrorismInfo * RecognitionInfo `xml:",omitempty"`
214- PoliticsInfo * RecognitionInfo `xml:",omitempty"`
215- AdsInfo * RecognitionInfo `xml:",omitempty"`
216- TeenagerInfo * RecognitionInfo `xml:",omitempty"`
205+ Code string `xml:",omitempty"`
206+ Message string `xml:",omitempty"`
207+ JobId string `xml:"JobId,omitempty"`
208+ DataId string `xml:",omitempty"`
209+ Object string `xml:",omitempty"`
210+ Url string `xml:",omitempty"`
211+ Text string `xml:",omitempty"`
212+ Label string `xml:",omitempty"`
213+ Result int `xml:",omitempty"`
214+ Score int `xml:",omitempty"`
215+ SubLabel string `xml:",omitempty"`
216+ PornInfo * RecognitionInfo `xml:",omitempty"`
217+ TerrorismInfo * RecognitionInfo `xml:",omitempty"`
218+ PoliticsInfo * RecognitionInfo `xml:",omitempty"`
219+ AdsInfo * RecognitionInfo `xml:",omitempty"`
220+ TeenagerInfo * RecognitionInfo `xml:",omitempty"`
221+ CompressionResult int `xml:",omitempty"`
217222}
218223
219224// BatchImageAuditingJobResult is the result of BatchImageAuditing
@@ -682,9 +687,10 @@ func (s *CIService) GetDocumentAuditingJob(ctx context.Context, jobid string) (*
682687
683688// PutWebpageAuditingJobOptions is the option of PutWebpageAuditingJob
684689type PutWebpageAuditingJobOptions struct {
685- XMLName xml.Name `xml:"Request"`
686- InputUrl string `xml:"Input>Url,omitempty"`
687- Conf * WebpageAuditingJobConf `xml:"Conf"`
690+ XMLName xml.Name `xml:"Request"`
691+ InputUrl string `xml:"Input>Url,omitempty"`
692+ InputDataId string `xml:"Input>DataId,omitempty"`
693+ Conf * WebpageAuditingJobConf `xml:"Conf"`
688694}
689695
690696// WebpageAuditingJobConf is the config of PutWebpageAuditingJobOptions
@@ -731,6 +737,7 @@ type WebpageAuditingJobDetail struct {
731737 ImageResults * WebpageImageResults `xml:",omitempty"`
732738 TextResults * WebpageTextResults `xml:",omitempty"`
733739 HighlightHtml string `xml:",omitempty"`
740+ DataId string `xml:",omitempty"`
734741}
735742
736743// WebpageResultInfo
0 commit comments