Class: TencentCloud::Ocr::V20181119::Client
- Inherits:
-
Common::AbstractClient
- Object
- Common::AbstractClient
- TencentCloud::Ocr::V20181119::Client
- Defined in:
- lib/v20181119/client.rb
Instance Method Summary collapse
-
#AdvertiseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::AdvertiseOCRResponse`.
-
#ArithmeticOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ArithmeticOCRResponse`.
-
#BankCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::BankCardOCRResponse`.
-
#BankSlipOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::BankSlipOCRResponse`.
-
#BizLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::BizLicenseOCRResponse`.
-
#BusinessCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::BusinessCardOCRResponse`.
-
#BusInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::BusInvoiceOCRResponse`.
-
#CarInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::CarInvoiceOCRResponse`.
-
#ClassifyDetectOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ClassifyDetectOCRResponse`.
-
#ClassifyStoreName(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ClassifyStoreNameResponse`.
-
#DriverLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::DriverLicenseOCRResponse`.
-
#DutyPaidProofOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::DutyPaidProofOCRResponse`.
-
#EduPaperOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::EduPaperOCRResponse`.
-
#EnglishOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::EnglishOCRResponse`.
-
#EnterpriseLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::EnterpriseLicenseOCRResponse`.
-
#EstateCertOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::EstateCertOCRResponse`.
-
#ExtractDocBasic(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ExtractDocBasicResponse`.
-
#ExtractDocMulti(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ExtractDocMultiResponse`.
-
#ExtractDocMultiPro(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ExtractDocMultiProResponse`.
-
#FinanBillOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::FinanBillOCRResponse`.
-
#FinanBillSliceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::FinanBillSliceOCRResponse`.
-
#FlightInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::FlightInvoiceOCRResponse`.
-
#FormulaOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::FormulaOCRResponse`.
-
#GeneralAccurateOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralAccurateOCRResponse`.
-
#GeneralBasicOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralBasicOCRResponse`.
-
#GeneralEfficientOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralEfficientOCRResponse`.
-
#GeneralFastOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralFastOCRResponse`.
-
#GeneralHandwritingOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralHandwritingOCRResponse`.
-
#GetOCRResult(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GetOCRResultResponse`.
-
#GetOCRToken(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GetOCRTokenResponse`.
-
#HandwritingEssayOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::HandwritingEssayOCRResponse`.
-
#HKIDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::HKIDCardOCRResponse`.
-
#HmtResidentPermitOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::HmtResidentPermitOCRResponse`.
-
#IDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::IDCardOCRResponse`.
-
#ImageEnhancement(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ImageEnhancementResponse`.
-
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#InstitutionOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::InstitutionOCRResponse`.
-
#InsuranceBillOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::InsuranceBillOCRResponse`.
-
#InvoiceGeneralOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::InvoiceGeneralOCRResponse`.
-
#LicensePlateOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::LicensePlateOCRResponse`.
-
#MainlandPermitOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::MainlandPermitOCRResponse`.
-
#MixedInvoiceDetect(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::MixedInvoiceDetectResponse`.
-
#MixedInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::MixedInvoiceOCRResponse`.
-
#MLIDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::MLIDCardOCRResponse`.
-
#MLIDPassportOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::MLIDPassportOCRResponse`.
-
#OrgCodeCertOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::OrgCodeCertOCRResponse`.
-
#PassportOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::PassportOCRResponse`.
-
#PermitOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::PermitOCRResponse`.
-
#PropOwnerCertOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::PropOwnerCertOCRResponse`.
-
#QrcodeOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::QrcodeOCRResponse`.
-
#QuestionOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::QuestionOCRResponse`.
-
#QuestionSplitOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::QuestionSplitOCRResponse`.
-
#QuotaInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::QuotaInvoiceOCRResponse`.
-
#RecognizeContainerOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeContainerOCRResponse`.
-
#RecognizeEncryptedIDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeEncryptedIDCardOCRResponse`.
-
#RecognizeForeignPermanentResidentIdCard(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeForeignPermanentResidentIdCardResponse`.
-
#RecognizeFormulaOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeFormulaOCRResponse`.
-
#RecognizeGeneralCardWarn(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeGeneralCardWarnResponse`.
-
#RecognizeGeneralInvoice(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeGeneralInvoiceResponse`.
-
#RecognizeGeneralTextImageWarn(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeGeneralTextImageWarnResponse`.
-
#RecognizeHealthCodeOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeHealthCodeOCRResponse`.
-
#RecognizeMedicalInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeMedicalInvoiceOCRResponse`.
-
#RecognizeOnlineTaxiItineraryOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeOnlineTaxiItineraryOCRResponse`.
-
#RecognizeStoreName(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeStoreNameResponse`.
-
#RecognizeTableAccurateOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeTableAccurateOCRResponse`.
-
#RecognizeTableMultiOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeTableMultiOCRResponse`.
-
#RecognizeTableOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeTableOCRResponse`.
-
#RecognizeThaiIDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeThaiIDCardOCRResponse`.
-
#RecognizeTravelCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeTravelCardOCRResponse`.
-
#RecognizeValidIDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeValidIDCardOCRResponse`.
-
#ResidenceBookletOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ResidenceBookletOCRResponse`.
-
#RideHailingDriverLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RideHailingDriverLicenseOCRResponse`.
-
#RideHailingTransportLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RideHailingTransportLicenseOCRResponse`.
-
#SealOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::SealOCRResponse`.
-
#ShipInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ShipInvoiceOCRResponse`.
-
#SmartStructuralOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::SmartStructuralOCRResponse`.
-
#TableOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::TableOCRResponse`.
-
#TaxiInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::TaxiInvoiceOCRResponse`.
-
#TextDetect(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::TextDetectResponse`.
-
#TollInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::TollInvoiceOCRResponse`.
-
#TrainTicketOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::TrainTicketOCRResponse`.
-
#VatInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VatInvoiceOCRResponse`.
-
#VatInvoiceVerifyNew(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VatInvoiceVerifyNewResponse`.
-
#VatRollInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VatRollInvoiceOCRResponse`.
-
#VehicleLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VehicleLicenseOCRResponse`.
-
#VehicleRegCertOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VehicleRegCertOCRResponse`.
-
#VerifyOfdVatInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VerifyOfdVatInvoiceOCRResponse`.
-
#VinOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VinOCRResponse`.
-
#WaybillOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::WaybillOCRResponse`.
Constructor Details
#initialize(credential, region, profile = nil) ⇒ Client
Returns a new instance of Client.
24 25 26 27 28 29 |
# File 'lib/v20181119/client.rb', line 24 def initialize(credential, region, profile = nil) api_version = '2018-11-19' api_endpoint = 'ocr.tencentcloudapi.com' sdk_version = 'OCR_' + File.read(File.('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end |
Instance Method Details
#AdvertiseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::AdvertiseOCRResponse`
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/v20181119/client.rb', line 41 def AdvertiseOCR(request) body = send_request('AdvertiseOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AdvertiseOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ArithmeticOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ArithmeticOCRResponse`
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/v20181119/client.rb', line 67 def ArithmeticOCR(request) body = send_request('ArithmeticOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ArithmeticOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#BankCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::BankCardOCRResponse`
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/v20181119/client.rb', line 93 def BankCardOCR(request) body = send_request('BankCardOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = BankCardOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#BankSlipOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::BankSlipOCRResponse`
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/v20181119/client.rb', line 119 def BankSlipOCR(request) body = send_request('BankSlipOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = BankSlipOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#BizLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::BizLicenseOCRResponse`
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
# File 'lib/v20181119/client.rb', line 145 def BizLicenseOCR(request) body = send_request('BizLicenseOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = BizLicenseOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#BusinessCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::BusinessCardOCRResponse`
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 |
# File 'lib/v20181119/client.rb', line 197 def BusinessCardOCR(request) body = send_request('BusinessCardOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = BusinessCardOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#BusInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::BusInvoiceOCRResponse`
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 |
# File 'lib/v20181119/client.rb', line 171 def BusInvoiceOCR(request) body = send_request('BusInvoiceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = BusInvoiceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CarInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::CarInvoiceOCRResponse`
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 |
# File 'lib/v20181119/client.rb', line 223 def CarInvoiceOCR(request) body = send_request('CarInvoiceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CarInvoiceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ClassifyDetectOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ClassifyDetectOCRResponse`
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 |
# File 'lib/v20181119/client.rb', line 249 def ClassifyDetectOCR(request) body = send_request('ClassifyDetectOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ClassifyDetectOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ClassifyStoreName(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ClassifyStoreNameResponse`
274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 |
# File 'lib/v20181119/client.rb', line 274 def ClassifyStoreName(request) body = send_request('ClassifyStoreName', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ClassifyStoreNameResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DriverLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::DriverLicenseOCRResponse`
308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 |
# File 'lib/v20181119/client.rb', line 308 def DriverLicenseOCR(request) body = send_request('DriverLicenseOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DriverLicenseOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DutyPaidProofOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::DutyPaidProofOCRResponse`
334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 |
# File 'lib/v20181119/client.rb', line 334 def DutyPaidProofOCR(request) body = send_request('DutyPaidProofOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DutyPaidProofOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#EduPaperOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::EduPaperOCRResponse`
360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 |
# File 'lib/v20181119/client.rb', line 360 def EduPaperOCR(request) body = send_request('EduPaperOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = EduPaperOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#EnglishOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::EnglishOCRResponse`
386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 |
# File 'lib/v20181119/client.rb', line 386 def EnglishOCR(request) body = send_request('EnglishOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = EnglishOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#EnterpriseLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::EnterpriseLicenseOCRResponse`
412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 |
# File 'lib/v20181119/client.rb', line 412 def EnterpriseLicenseOCR(request) body = send_request('EnterpriseLicenseOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = EnterpriseLicenseOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#EstateCertOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::EstateCertOCRResponse`
438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 |
# File 'lib/v20181119/client.rb', line 438 def EstateCertOCR(request) body = send_request('EstateCertOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = EstateCertOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ExtractDocBasic(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ExtractDocBasicResponse`
466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 |
# File 'lib/v20181119/client.rb', line 466 def ExtractDocBasic(request) body = send_request('ExtractDocBasic', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExtractDocBasicResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ExtractDocMulti(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ExtractDocMultiResponse`
494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 |
# File 'lib/v20181119/client.rb', line 494 def ExtractDocMulti(request) body = send_request('ExtractDocMulti', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExtractDocMultiResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ExtractDocMultiPro(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ExtractDocMultiProResponse`
520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 |
# File 'lib/v20181119/client.rb', line 520 def ExtractDocMultiPro(request) body = send_request('ExtractDocMultiPro', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExtractDocMultiProResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#FinanBillOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::FinanBillOCRResponse`
546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 |
# File 'lib/v20181119/client.rb', line 546 def FinanBillOCR(request) body = send_request('FinanBillOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = FinanBillOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#FinanBillSliceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::FinanBillSliceOCRResponse`
572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 |
# File 'lib/v20181119/client.rb', line 572 def FinanBillSliceOCR(request) body = send_request('FinanBillSliceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = FinanBillSliceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#FlightInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::FlightInvoiceOCRResponse`
598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 |
# File 'lib/v20181119/client.rb', line 598 def FlightInvoiceOCR(request) body = send_request('FlightInvoiceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = FlightInvoiceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#FormulaOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::FormulaOCRResponse`
624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 |
# File 'lib/v20181119/client.rb', line 624 def FormulaOCR(request) body = send_request('FormulaOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = FormulaOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#GeneralAccurateOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralAccurateOCRResponse`
702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 |
# File 'lib/v20181119/client.rb', line 702 def GeneralAccurateOCR(request) body = send_request('GeneralAccurateOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GeneralAccurateOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#GeneralBasicOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralBasicOCRResponse`
780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 |
# File 'lib/v20181119/client.rb', line 780 def GeneralBasicOCR(request) body = send_request('GeneralBasicOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GeneralBasicOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#GeneralEfficientOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralEfficientOCRResponse`
866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 |
# File 'lib/v20181119/client.rb', line 866 def GeneralEfficientOCR(request) body = send_request('GeneralEfficientOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GeneralEfficientOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#GeneralFastOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralFastOCRResponse`
892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 |
# File 'lib/v20181119/client.rb', line 892 def GeneralFastOCR(request) body = send_request('GeneralFastOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GeneralFastOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#GeneralHandwritingOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralHandwritingOCRResponse`
920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 |
# File 'lib/v20181119/client.rb', line 920 def GeneralHandwritingOCR(request) body = send_request('GeneralHandwritingOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GeneralHandwritingOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#GetOCRResult(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GetOCRResultResponse`
944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 |
# File 'lib/v20181119/client.rb', line 944 def GetOCRResult(request) body = send_request('GetOCRResult', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetOCRResultResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#GetOCRToken(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GetOCRTokenResponse`
968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 |
# File 'lib/v20181119/client.rb', line 968 def GetOCRToken(request) body = send_request('GetOCRToken', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetOCRTokenResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#HandwritingEssayOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::HandwritingEssayOCRResponse`
1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 |
# File 'lib/v20181119/client.rb', line 1020 def HandwritingEssayOCR(request) body = send_request('HandwritingEssayOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = HandwritingEssayOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#HKIDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::HKIDCardOCRResponse`
994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 |
# File 'lib/v20181119/client.rb', line 994 def HKIDCardOCR(request) body = send_request('HKIDCardOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = HKIDCardOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#HmtResidentPermitOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::HmtResidentPermitOCRResponse`
1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 |
# File 'lib/v20181119/client.rb', line 1046 def HmtResidentPermitOCR(request) body = send_request('HmtResidentPermitOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = HmtResidentPermitOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#IDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::IDCardOCRResponse`
1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'lib/v20181119/client.rb', line 1116 def IDCardOCR(request) body = send_request('IDCardOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = IDCardOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ImageEnhancement(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ImageEnhancementResponse`
1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 |
# File 'lib/v20181119/client.rb', line 1142 def ImageEnhancement(request) body = send_request('ImageEnhancement', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ImageEnhancementResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#InstitutionOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::InstitutionOCRResponse`
1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 |
# File 'lib/v20181119/client.rb', line 1168 def InstitutionOCR(request) body = send_request('InstitutionOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InstitutionOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#InsuranceBillOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::InsuranceBillOCRResponse`
1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 |
# File 'lib/v20181119/client.rb', line 1194 def InsuranceBillOCR(request) body = send_request('InsuranceBillOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InsuranceBillOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#InvoiceGeneralOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::InvoiceGeneralOCRResponse`
1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 |
# File 'lib/v20181119/client.rb', line 1220 def InvoiceGeneralOCR(request) body = send_request('InvoiceGeneralOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InvoiceGeneralOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#LicensePlateOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::LicensePlateOCRResponse`
1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 |
# File 'lib/v20181119/client.rb', line 1246 def LicensePlateOCR(request) body = send_request('LicensePlateOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = LicensePlateOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#MainlandPermitOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::MainlandPermitOCRResponse`
1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 |
# File 'lib/v20181119/client.rb', line 1324 def MainlandPermitOCR(request) body = send_request('MainlandPermitOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = MainlandPermitOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#MixedInvoiceDetect(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::MixedInvoiceDetectResponse`
1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 |
# File 'lib/v20181119/client.rb', line 1349 def MixedInvoiceDetect(request) body = send_request('MixedInvoiceDetect', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = MixedInvoiceDetectResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#MixedInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::MixedInvoiceOCRResponse`
1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 |
# File 'lib/v20181119/client.rb', line 1375 def MixedInvoiceOCR(request) body = send_request('MixedInvoiceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = MixedInvoiceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#MLIDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::MLIDCardOCRResponse`
1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 |
# File 'lib/v20181119/client.rb', line 1271 def MLIDCardOCR(request) body = send_request('MLIDCardOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = MLIDCardOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#MLIDPassportOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::MLIDPassportOCRResponse`
1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 |
# File 'lib/v20181119/client.rb', line 1298 def MLIDPassportOCR(request) body = send_request('MLIDPassportOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = MLIDPassportOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#OrgCodeCertOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::OrgCodeCertOCRResponse`
1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 |
# File 'lib/v20181119/client.rb', line 1401 def OrgCodeCertOCR(request) body = send_request('OrgCodeCertOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = OrgCodeCertOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#PassportOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::PassportOCRResponse`
1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 |
# File 'lib/v20181119/client.rb', line 1427 def PassportOCR(request) body = send_request('PassportOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = PassportOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#PermitOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::PermitOCRResponse`
1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 |
# File 'lib/v20181119/client.rb', line 1453 def PermitOCR(request) body = send_request('PermitOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = PermitOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#PropOwnerCertOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::PropOwnerCertOCRResponse`
1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 |
# File 'lib/v20181119/client.rb', line 1480 def PropOwnerCertOCR(request) body = send_request('PropOwnerCertOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = PropOwnerCertOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#QrcodeOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::QrcodeOCRResponse`
1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 |
# File 'lib/v20181119/client.rb', line 1506 def QrcodeOCR(request) body = send_request('QrcodeOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = QrcodeOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#QuestionOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::QuestionOCRResponse`
1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 |
# File 'lib/v20181119/client.rb', line 1532 def QuestionOCR(request) body = send_request('QuestionOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = QuestionOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#QuestionSplitOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::QuestionSplitOCRResponse`
1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 |
# File 'lib/v20181119/client.rb', line 1558 def QuestionSplitOCR(request) body = send_request('QuestionSplitOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = QuestionSplitOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#QuotaInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::QuotaInvoiceOCRResponse`
1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 |
# File 'lib/v20181119/client.rb', line 1584 def QuotaInvoiceOCR(request) body = send_request('QuotaInvoiceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = QuotaInvoiceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeContainerOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeContainerOCRResponse`
1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 |
# File 'lib/v20181119/client.rb', line 1609 def RecognizeContainerOCR(request) body = send_request('RecognizeContainerOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecognizeContainerOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeEncryptedIDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeEncryptedIDCardOCRResponse`
1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 |
# File 'lib/v20181119/client.rb', line 1684 def RecognizeEncryptedIDCardOCR(request) body = send_request('RecognizeEncryptedIDCardOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecognizeEncryptedIDCardOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeForeignPermanentResidentIdCard(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeForeignPermanentResidentIdCardResponse`
1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 |
# File 'lib/v20181119/client.rb', line 1708 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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeFormulaOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeFormulaOCRResponse`
1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 |
# File 'lib/v20181119/client.rb', line 1734 def RecognizeFormulaOCR(request) body = send_request('RecognizeFormulaOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecognizeFormulaOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeGeneralCardWarn(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeGeneralCardWarnResponse`
1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 |
# File 'lib/v20181119/client.rb', line 1760 def RecognizeGeneralCardWarn(request) body = send_request('RecognizeGeneralCardWarn', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecognizeGeneralCardWarnResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeGeneralInvoice(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeGeneralInvoiceResponse`
1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 |
# File 'lib/v20181119/client.rb', line 1985 def RecognizeGeneralInvoice(request) body = send_request('RecognizeGeneralInvoice', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecognizeGeneralInvoiceResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeGeneralTextImageWarn(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeGeneralTextImageWarnResponse`
2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 |
# File 'lib/v20181119/client.rb', line 2009 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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeHealthCodeOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeHealthCodeOCRResponse`
2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 |
# File 'lib/v20181119/client.rb', line 2035 def RecognizeHealthCodeOCR(request) body = send_request('RecognizeHealthCodeOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecognizeHealthCodeOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeMedicalInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeMedicalInvoiceOCRResponse`
2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 |
# File 'lib/v20181119/client.rb', line 2061 def RecognizeMedicalInvoiceOCR(request) body = send_request('RecognizeMedicalInvoiceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecognizeMedicalInvoiceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeOnlineTaxiItineraryOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeOnlineTaxiItineraryOCRResponse`
2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 |
# File 'lib/v20181119/client.rb', line 2087 def RecognizeOnlineTaxiItineraryOCR(request) body = send_request('RecognizeOnlineTaxiItineraryOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecognizeOnlineTaxiItineraryOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeStoreName(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeStoreNameResponse`
2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 |
# File 'lib/v20181119/client.rb', line 2112 def RecognizeStoreName(request) body = send_request('RecognizeStoreName', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecognizeStoreNameResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeTableAccurateOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeTableAccurateOCRResponse`
2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 |
# File 'lib/v20181119/client.rb', line 2138 def RecognizeTableAccurateOCR(request) body = send_request('RecognizeTableAccurateOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecognizeTableAccurateOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeTableMultiOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeTableMultiOCRResponse`
2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 |
# File 'lib/v20181119/client.rb', line 2164 def RecognizeTableMultiOCR(request) body = send_request('RecognizeTableMultiOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecognizeTableMultiOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeTableOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeTableOCRResponse`
2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 |
# File 'lib/v20181119/client.rb', line 2190 def RecognizeTableOCR(request) body = send_request('RecognizeTableOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecognizeTableOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeThaiIDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeThaiIDCardOCRResponse`
2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 |
# File 'lib/v20181119/client.rb', line 2217 def RecognizeThaiIDCardOCR(request) body = send_request('RecognizeThaiIDCardOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecognizeThaiIDCardOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeTravelCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeTravelCardOCRResponse`
2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 |
# File 'lib/v20181119/client.rb', line 2243 def RecognizeTravelCardOCR(request) body = send_request('RecognizeTravelCardOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecognizeTravelCardOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeValidIDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeValidIDCardOCRResponse`
2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 |
# File 'lib/v20181119/client.rb', line 2269 def RecognizeValidIDCardOCR(request) body = send_request('RecognizeValidIDCardOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecognizeValidIDCardOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ResidenceBookletOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ResidenceBookletOCRResponse`
2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 |
# File 'lib/v20181119/client.rb', line 2295 def ResidenceBookletOCR(request) body = send_request('ResidenceBookletOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ResidenceBookletOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RideHailingDriverLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RideHailingDriverLicenseOCRResponse`
2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 |
# File 'lib/v20181119/client.rb', line 2321 def RideHailingDriverLicenseOCR(request) body = send_request('RideHailingDriverLicenseOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RideHailingDriverLicenseOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RideHailingTransportLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RideHailingTransportLicenseOCRResponse`
2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 |
# File 'lib/v20181119/client.rb', line 2347 def RideHailingTransportLicenseOCR(request) body = send_request('RideHailingTransportLicenseOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RideHailingTransportLicenseOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#SealOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::SealOCRResponse`
2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 |
# File 'lib/v20181119/client.rb', line 2373 def SealOCR(request) body = send_request('SealOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SealOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ShipInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ShipInvoiceOCRResponse`
2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 |
# File 'lib/v20181119/client.rb', line 2399 def ShipInvoiceOCR(request) body = send_request('ShipInvoiceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ShipInvoiceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#SmartStructuralOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::SmartStructuralOCRResponse`
2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 |
# File 'lib/v20181119/client.rb', line 2425 def SmartStructuralOCR(request) body = send_request('SmartStructuralOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SmartStructuralOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#TableOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::TableOCRResponse`
2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 |
# File 'lib/v20181119/client.rb', line 2453 def TableOCR(request) body = send_request('TableOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = TableOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#TaxiInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::TaxiInvoiceOCRResponse`
2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 |
# File 'lib/v20181119/client.rb', line 2479 def TaxiInvoiceOCR(request) body = send_request('TaxiInvoiceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = TaxiInvoiceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#TextDetect(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::TextDetectResponse`
2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 |
# File 'lib/v20181119/client.rb', line 2505 def TextDetect(request) body = send_request('TextDetect', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = TextDetectResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#TollInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::TollInvoiceOCRResponse`
2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 |
# File 'lib/v20181119/client.rb', line 2531 def TollInvoiceOCR(request) body = send_request('TollInvoiceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = TollInvoiceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#TrainTicketOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::TrainTicketOCRResponse`
2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 |
# File 'lib/v20181119/client.rb', line 2557 def TrainTicketOCR(request) body = send_request('TrainTicketOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = TrainTicketOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VatInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VatInvoiceOCRResponse`
2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 |
# File 'lib/v20181119/client.rb', line 2583 def VatInvoiceOCR(request) body = send_request('VatInvoiceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = VatInvoiceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VatInvoiceVerifyNew(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VatInvoiceVerifyNewResponse`
2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 |
# File 'lib/v20181119/client.rb', line 2609 def VatInvoiceVerifyNew(request) body = send_request('VatInvoiceVerifyNew', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = VatInvoiceVerifyNewResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VatRollInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VatRollInvoiceOCRResponse`
2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 |
# File 'lib/v20181119/client.rb', line 2635 def VatRollInvoiceOCR(request) body = send_request('VatRollInvoiceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = VatRollInvoiceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VehicleLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VehicleLicenseOCRResponse`
2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 |
# File 'lib/v20181119/client.rb', line 2667 def VehicleLicenseOCR(request) body = send_request('VehicleLicenseOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = VehicleLicenseOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VehicleRegCertOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VehicleRegCertOCRResponse`
2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 |
# File 'lib/v20181119/client.rb', line 2693 def VehicleRegCertOCR(request) body = send_request('VehicleRegCertOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = VehicleRegCertOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VerifyOfdVatInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VerifyOfdVatInvoiceOCRResponse`
2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 |
# File 'lib/v20181119/client.rb', line 2717 def VerifyOfdVatInvoiceOCR(request) body = send_request('VerifyOfdVatInvoiceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = VerifyOfdVatInvoiceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VinOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VinOCRResponse`
2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 |
# File 'lib/v20181119/client.rb', line 2742 def VinOCR(request) body = send_request('VinOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = VinOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#WaybillOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::WaybillOCRResponse`
2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 |
# File 'lib/v20181119/client.rb', line 2768 def WaybillOCR(request) body = send_request('WaybillOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = WaybillOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |