lib/v20181119/client.rb in tencentcloud-sdk-ocr-3.0.941 vs lib/v20181119/client.rb in tencentcloud-sdk-ocr-3.0.942

- old
+ new

@@ -1837,10 +1837,58 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 韩国驾驶证识别 + + # @param request: Request instance for RecognizeKoreanDrivingLicenseOCR. + # @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeKoreanDrivingLicenseOCRRequest` + # @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizeKoreanDrivingLicenseOCRResponse` + def RecognizeKoreanDrivingLicenseOCR(request) + body = send_request('RecognizeKoreanDrivingLicenseOCR', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = RecognizeKoreanDrivingLicenseOCRResponse.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 + + # 韩国身份证识别 + + # @param request: Request instance for RecognizeKoreanIDCardOCR. + # @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeKoreanIDCardOCRRequest` + # @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizeKoreanIDCardOCRResponse` + def RecognizeKoreanIDCardOCR(request) + body = send_request('RecognizeKoreanIDCardOCR', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = RecognizeKoreanIDCardOCRResponse.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 + # 医疗发票识别目前支持全国统一门诊发票、全国统一住院发票、以及部分地方的门诊和住院发票的识别。 # 默认接口请求频率限制:5次/秒。 # @param request: Request instance for RecognizeMedicalInvoiceOCR. @@ -1890,9 +1938,11 @@ rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 菲律宾驾驶证识别 + + # 默认接口请求频率限制:20次/秒。 # @param request: Request instance for RecognizePhilippinesDrivingLicenseOCR. # @type request: :class:`Tencentcloud::ocr::V20181119::RecognizePhilippinesDrivingLicenseOCRRequest` # @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizePhilippinesDrivingLicenseOCRResponse` def RecognizePhilippinesDrivingLicenseOCR(request) \ No newline at end of file