lib/v20190529/client.rb in tencentcloud-sdk-tiia-1.0.328 vs lib/v20190529/client.rb in tencentcloud-sdk-tiia-1.0.329

- old
+ new

@@ -334,9 +334,36 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 通用图像标签可识别数千种常见物体或场景,覆盖日常物品、场景、动物、植物、食物、饮品、交通工具等多个大类,返回主体的标签名称和所属细分类目等,广泛应用于拍照识物、场景分析、图像内容审核与推荐、智能相册分类等场景。 + + # > + # - 通用图像标签在原图像标签接口的基础上进行了升级,识别精度和标签覆盖范围相比原图像标签接口更优,推荐使用。 + + # @param request: Request instance for DetectLabelPro. + # @type request: :class:`Tencentcloud::tiia::V20190529::DetectLabelProRequest` + # @rtype: :class:`Tencentcloud::tiia::V20190529::DetectLabelProResponse` + def DetectLabelPro(request) + body = send_request('DetectLabelPro', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DetectLabelProResponse.new + model.deserialize(response['Response']) + model + else + code = response['Response']['Error']['Code'] + message = response['Response']['Error']['Message'] + reqid = response['Response']['RequestId'] + raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) + end + rescue TencentCloud::Common::TencentCloudSDKException => e + raise e + rescue StandardError => e + raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) + end + # 可以识别输入的图片中是否包含不良行为,例如打架斗殴、赌博、抽烟等,可以应用于广告图、直播截图、短视频截图等审核,减少不良行为对平台内容质量的影响,维护健康向上的互联网环境。 # > # - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。 # @param request: Request instance for DetectMisbehavior. \ No newline at end of file