lib/v20181119/client.rb in tencentcloud-sdk-ocr-3.0.811 vs lib/v20181119/client.rb in tencentcloud-sdk-ocr-3.0.812

- old
+ new

@@ -1729,9 +1729,35 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 本接口支持多种类型证件有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能。可以应用于各种证件信息有效性校验场景,例如银行开户、用户注册等场景。 + + # 默认接口请求频率限制:10次/秒。 + + # @param request: Request instance for RecognizeGeneralTextImageWarn. + # @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeGeneralTextImageWarnRequest` + # @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizeGeneralTextImageWarnResponse` + def RecognizeGeneralTextImageWarn(request) + body = send_request('RecognizeGeneralTextImageWarn', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = RecognizeGeneralTextImageWarnResponse.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 + # 本接口支持北京、上海、广东、江苏、吉林、黑龙江、天津、辽宁、浙江、河南、四川、贵州、山东、安徽、福建、江西、湖北、湖南等省份健康码的识别,包括持码人姓名、持码人身份证号、健康码更新时间、健康码颜色、核酸检测结果、核酸检测间隔时长、核酸检测时间,疫苗接种信息,八个字段的识别结果输出。不同省市健康码显示的字段信息有所不同,上述字段的识别结果可能为空,以图片上具体展示的信息为准。 # 默认接口请求频率限制:10次/秒。 # @param request: Request instance for RecognizeHealthCodeOCR. \ No newline at end of file