lib/v20181119/client.rb in tencentcloud-sdk-ocr-3.0.749 vs lib/v20181119/client.rb in tencentcloud-sdk-ocr-3.0.750

- old
+ new

@@ -1455,9 +1455,33 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 外国人永久居留身份证识别 + + # @param request: Request instance for RecognizeForeignPermanentResidentIdCard. + # @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeForeignPermanentResidentIdCardRequest` + # @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizeForeignPermanentResidentIdCardResponse` + def RecognizeForeignPermanentResidentIdCard(request) + body = send_request('RecognizeForeignPermanentResidentIdCard', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = RecognizeForeignPermanentResidentIdCardResponse.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 + # 本接口支持 PDF多页(最多30页)、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(机票行程单)、电子发票(铁路电子客票)的第一页识别,并支持非上述类型的其他发票的智能识别,点击[立即试用](https://cloud.tencent.com/product/ocr)。 # 默认接口请求频率限制:5次/秒。 \ No newline at end of file