@@ -485,7 +485,7 @@ def get_object(self, Bucket, Key, **kwargs):
485485 return response
486486
487487 def get_object_sensitive_content_recognition (self , Bucket , Key , DetectType = None , Interval = None , MaxFrames = None , BizType = None , DetectUrl = None , LargeImageDetect = None ,
488- dataid = None , ** kwargs ):
488+ DataId = None , ** kwargs ):
489489 """文件内容识别接口 https://cloud.tencent.com/document/product/460/37318
490490
491491 :param Bucket(string): 存储桶名称.
@@ -498,7 +498,7 @@ def get_object_sensitive_content_recognition(self, Bucket, Key, DetectType=None,
498498 填写了detect-url时,后台会审核detect-url链接,无需再填写ObjectKey。 detect-url示例:http://www.example.com/abc.jpg.
499499 :param LargeImageDetect(int): 对于超过大小限制的图片是否进行压缩后再审核,取值为: 0(不压缩),1(压缩)。默认为0。
500500 注:压缩最大支持32M的图片,且会收取压缩费用。
501- :param dataid (string): 图片标识,该字段在结果中返回原始内容,长度限制为512字节.
501+ :param DataId (string): 图片标识,该字段在结果中返回原始内容,长度限制为512字节.
502502 :param kwargs(dict): 设置下载的headers.
503503 :return(dict): 下载成功返回的结果,dict类型.
504504
@@ -560,8 +560,8 @@ def get_object_sensitive_content_recognition(self, Bucket, Key, DetectType=None,
560560 params ['detect-url' ] = DetectUrl
561561 if LargeImageDetect :
562562 params ['large-image-detect' ] = LargeImageDetect
563- if dataid :
564- params ['dataid' ] = dataid
563+ if DataId :
564+ params ['dataid' ] = DataId
565565 params = format_values (params )
566566
567567 url = self ._conf .uri (bucket = Bucket , path = Key )
@@ -578,7 +578,7 @@ def get_object_sensitive_content_recognition(self, Bucket, Key, DetectType=None,
578578 params = params ,
579579 headers = headers )
580580
581- logging .debug ("get object sensitive content recognition rsp:%s" , rt .content )
581+ logger .debug ("get object sensitive content recognition rsp:%s" , rt .content )
582582 data = xml_to_dict (rt .content )
583583 # format res
584584 if 'PornInfo' in data :
@@ -4736,7 +4736,7 @@ def ci_auditing_submit_common(self, Bucket, Key, DetectType, Type, Url=None, Biz
47364736 params = params ,
47374737 headers = headers )
47384738
4739- logging .debug ("ci auditing rsp:%s" , rt .content )
4739+ logger .debug ("ci auditing rsp:%s" , rt .content )
47404740 data = xml_to_dict (rt .content )
47414741
47424742 return data
@@ -4789,7 +4789,7 @@ def ci_auditing_query_common(self, Bucket, Type, JobID, **kwargs):
47894789 params = params ,
47904790 headers = headers )
47914791
4792- logging .debug ("query ci auditing:%s" , rt .content )
4792+ logger .debug ("query ci auditing:%s" , rt .content )
47934793 data = xml_to_dict (rt .content )
47944794
47954795 return data
@@ -5410,7 +5410,7 @@ def ci_auditing_image_batch(self, Bucket, Input, DetectType=None, BizType=None,
54105410 params = params ,
54115411 headers = headers )
54125412
5413- logging .debug ("ci auditing rsp:%s" , rt .content )
5413+ logger .debug ("ci auditing rsp:%s" , rt .content )
54145414 data = xml_to_dict (rt .content )
54155415
54165416 if 'JobsDetail' in data :
@@ -5581,7 +5581,7 @@ def ci_auditing_live_video_cancle(self, Bucket, JobID, **kwargs):
55815581 params = params ,
55825582 headers = headers )
55835583
5584- logging .debug ("live video canlce:%s" , rt .content )
5584+ logger .debug ("live video canlce:%s" , rt .content )
55855585 data = xml_to_dict (rt .content )
55865586
55875587 return data
@@ -5653,7 +5653,7 @@ def ci_auditing_virus_submit(self, Bucket, Key=None, Url=None, Callback=None, **
56535653 params = params ,
56545654 headers = headers )
56555655
5656- logging .debug ("ci auditing rsp:%s" , rt .content )
5656+ logger .debug ("ci auditing rsp:%s" , rt .content )
56575657 data = xml_to_dict (rt .content )
56585658
56595659 return data
@@ -5704,7 +5704,7 @@ def ci_auditing_virus_query(self, Bucket, JobID, **kwargs):
57045704 params = params ,
57055705 headers = headers )
57065706
5707- logging .debug ("query ci auditing:%s" , rt .content )
5707+ logger .debug ("query ci auditing:%s" , rt .content )
57085708 data = xml_to_dict (rt .content )
57095709
57105710 # 格式化array的输出
0 commit comments