Class: TencentCloud::Ocr::V20181119::Client

Inherits:
Common::AbstractClient
  • Object
show all
Defined in:
lib/v20181119/client.rb

Instance Method Summary collapse

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.expand_path('../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`

Parameters:

  • request:

    Request instance for AdvertiseOCR.



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']
    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

#ArithmeticOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::ArithmeticOCRResponse`

Parameters:

  • request:

    Request instance for ArithmeticOCR.



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']
    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

#BankCardOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::BankCardOCRResponse`

Parameters:

  • request:

    Request instance for BankCardOCR.



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']
    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

#BankSlipOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::BankSlipOCRResponse`

Parameters:

  • request:

    Request instance for BankSlipOCR.



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']
    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

#BizLicenseOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::BizLicenseOCRResponse`

Parameters:

  • request:

    Request instance for BizLicenseOCR.



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']
    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

#BusinessCardOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::BusinessCardOCRResponse`

Parameters:

  • request:

    Request instance for BusinessCardOCR.



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']
    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

#BusInvoiceOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::BusInvoiceOCRResponse`

Parameters:

  • request:

    Request instance for BusInvoiceOCR.



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']
    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

#CarInvoiceOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::CarInvoiceOCRResponse`

Parameters:

  • request:

    Request instance for CarInvoiceOCR.



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']
    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

#ClassifyDetectOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::ClassifyDetectOCRResponse`

Parameters:

  • request:

    Request instance for ClassifyDetectOCR.



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']
    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

#ClassifyStoreName(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::ClassifyStoreNameResponse`

Parameters:

  • request:

    Request instance for ClassifyStoreName.



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']
    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

#CreateAIFormTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::CreateAIFormTaskResponse`

Parameters:

  • request:

    Request instance for CreateAIFormTask.



302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
# File 'lib/v20181119/client.rb', line 302

def CreateAIFormTask(request)
  body = send_request('CreateAIFormTask', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateAIFormTaskResponse.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

#DriverLicenseOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::DriverLicenseOCRResponse`

Parameters:

  • request:

    Request instance for DriverLicenseOCR.



336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
# File 'lib/v20181119/client.rb', line 336

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']
    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

#DutyPaidProofOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::DutyPaidProofOCRResponse`

Parameters:

  • request:

    Request instance for DutyPaidProofOCR.



362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
# File 'lib/v20181119/client.rb', line 362

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']
    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

#EduPaperOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::EduPaperOCRResponse`

Parameters:

  • request:

    Request instance for EduPaperOCR.



388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
# File 'lib/v20181119/client.rb', line 388

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']
    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

#EnglishOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::EnglishOCRResponse`

Parameters:

  • request:

    Request instance for EnglishOCR.



414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
# File 'lib/v20181119/client.rb', line 414

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']
    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

#EnterpriseLicenseOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::EnterpriseLicenseOCRResponse`

Parameters:

  • request:

    Request instance for EnterpriseLicenseOCR.



440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
# File 'lib/v20181119/client.rb', line 440

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']
    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

#EstateCertOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::EstateCertOCRResponse`

Parameters:

  • request:

    Request instance for EstateCertOCR.



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 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']
    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

#FinanBillOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::FinanBillOCRResponse`

Parameters:

  • request:

    Request instance for FinanBillOCR.



492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
# File 'lib/v20181119/client.rb', line 492

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']
    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

#FinanBillSliceOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::FinanBillSliceOCRResponse`

Parameters:

  • request:

    Request instance for FinanBillSliceOCR.



518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
# File 'lib/v20181119/client.rb', line 518

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']
    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

#FlightInvoiceOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::FlightInvoiceOCRResponse`

Parameters:

  • request:

    Request instance for FlightInvoiceOCR.



544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
# File 'lib/v20181119/client.rb', line 544

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']
    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

#FormulaOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::FormulaOCRResponse`

Parameters:

  • request:

    Request instance for FormulaOCR.



570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
# File 'lib/v20181119/client.rb', line 570

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']
    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

#GeneralAccurateOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralAccurateOCRResponse`

Parameters:

  • request:

    Request instance for GeneralAccurateOCR.



656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
# File 'lib/v20181119/client.rb', line 656

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']
    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

#GeneralBasicOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralBasicOCRResponse`

Parameters:

  • request:

    Request instance for GeneralBasicOCR.



742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
# File 'lib/v20181119/client.rb', line 742

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']
    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

#GeneralEfficientOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralEfficientOCRResponse`

Parameters:

  • request:

    Request instance for GeneralEfficientOCR.



828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
# File 'lib/v20181119/client.rb', line 828

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']
    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

#GeneralFastOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralFastOCRResponse`

Parameters:

  • request:

    Request instance for GeneralFastOCR.



854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
# File 'lib/v20181119/client.rb', line 854

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']
    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

#GeneralHandwritingOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralHandwritingOCRResponse`

Parameters:

  • request:

    Request instance for GeneralHandwritingOCR.



880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
# File 'lib/v20181119/client.rb', line 880

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']
    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

#GetTaskState(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::GetTaskStateResponse`

Parameters:

  • request:

    Request instance for GetTaskState.



906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
# File 'lib/v20181119/client.rb', line 906

def GetTaskState(request)
  body = send_request('GetTaskState', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = GetTaskStateResponse.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

#HKIDCardOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::HKIDCardOCRResponse`

Parameters:

  • request:

    Request instance for HKIDCardOCR.



932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
# File 'lib/v20181119/client.rb', line 932

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']
    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

#HmtResidentPermitOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::HmtResidentPermitOCRResponse`

Parameters:

  • request:

    Request instance for HmtResidentPermitOCR.



958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
# File 'lib/v20181119/client.rb', line 958

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']
    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

#IDCardOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::IDCardOCRResponse`

Parameters:

  • request:

    Request instance for IDCardOCR.



1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
# File 'lib/v20181119/client.rb', line 1031

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']
    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

#ImageEnhancement(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::ImageEnhancementResponse`

Parameters:

  • request:

    Request instance for ImageEnhancement.



1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
# File 'lib/v20181119/client.rb', line 1057

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']
    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

#InstitutionOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::InstitutionOCRResponse`

Parameters:

  • request:

    Request instance for InstitutionOCR.



1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
# File 'lib/v20181119/client.rb', line 1083

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']
    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

#InsuranceBillOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::InsuranceBillOCRResponse`

Parameters:

  • request:

    Request instance for InsuranceBillOCR.



1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
# File 'lib/v20181119/client.rb', line 1109

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']
    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

#InvoiceGeneralOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::InvoiceGeneralOCRResponse`

Parameters:

  • request:

    Request instance for InvoiceGeneralOCR.



1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
# File 'lib/v20181119/client.rb', line 1135

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']
    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

#LicensePlateOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::LicensePlateOCRResponse`

Parameters:

  • request:

    Request instance for LicensePlateOCR.



1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
# File 'lib/v20181119/client.rb', line 1161

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']
    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

#MainlandPermitOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::MainlandPermitOCRResponse`

Parameters:

  • request:

    Request instance for MainlandPermitOCR.



1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
# File 'lib/v20181119/client.rb', line 1239

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']
    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

#MixedInvoiceDetect(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::MixedInvoiceDetectResponse`

Parameters:

  • request:

    Request instance for MixedInvoiceDetect.



1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
# File 'lib/v20181119/client.rb', line 1264

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']
    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

#MixedInvoiceOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::MixedInvoiceOCRResponse`

Parameters:

  • request:

    Request instance for MixedInvoiceOCR.



1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
# File 'lib/v20181119/client.rb', line 1290

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']
    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

#MLIDCardOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::MLIDCardOCRResponse`

Parameters:

  • request:

    Request instance for MLIDCardOCR.



1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
# File 'lib/v20181119/client.rb', line 1186

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']
    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

#MLIDPassportOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::MLIDPassportOCRResponse`

Parameters:

  • request:

    Request instance for MLIDPassportOCR.



1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
# File 'lib/v20181119/client.rb', line 1213

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']
    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

#OrgCodeCertOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::OrgCodeCertOCRResponse`

Parameters:

  • request:

    Request instance for OrgCodeCertOCR.



1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
# File 'lib/v20181119/client.rb', line 1316

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']
    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

#PassportOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::PassportOCRResponse`

Parameters:

  • request:

    Request instance for PassportOCR.



1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
# File 'lib/v20181119/client.rb', line 1342

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']
    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

#PermitOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::PermitOCRResponse`

Parameters:

  • request:

    Request instance for PermitOCR.



1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
# File 'lib/v20181119/client.rb', line 1368

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']
    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

#PropOwnerCertOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::PropOwnerCertOCRResponse`

Parameters:

  • request:

    Request instance for PropOwnerCertOCR.



1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
# File 'lib/v20181119/client.rb', line 1395

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']
    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

#QrcodeOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::QrcodeOCRResponse`

Parameters:

  • request:

    Request instance for QrcodeOCR.



1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
# File 'lib/v20181119/client.rb', line 1421

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']
    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

#QuotaInvoiceOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::QuotaInvoiceOCRResponse`

Parameters:

  • request:

    Request instance for QuotaInvoiceOCR.



1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
# File 'lib/v20181119/client.rb', line 1447

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']
    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

#RecognizeContainerOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeContainerOCRResponse`

Parameters:

  • request:

    Request instance for RecognizeContainerOCR.



1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
# File 'lib/v20181119/client.rb', line 1472

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']
    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

#RecognizeEncryptedIDCardOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeEncryptedIDCardOCRResponse`

Parameters:

  • request:

    Request instance for RecognizeEncryptedIDCardOCR.



1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
# File 'lib/v20181119/client.rb', line 1547

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']
    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

#RecognizeForeignPermanentResidentIdCard(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeForeignPermanentResidentIdCardResponse`

Parameters:

  • request:

    Request instance for RecognizeForeignPermanentResidentIdCard.



1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
# File 'lib/v20181119/client.rb', line 1571

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

#RecognizeGeneralInvoice(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeGeneralInvoiceResponse`

Parameters:

  • request:

    Request instance for RecognizeGeneralInvoice.



1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
# File 'lib/v20181119/client.rb', line 1746

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']
    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

#RecognizeGeneralTextImageWarn(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeGeneralTextImageWarnResponse`

Parameters:

  • request:

    Request instance for RecognizeGeneralTextImageWarn.



1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
# File 'lib/v20181119/client.rb', line 1770

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

#RecognizeHealthCodeOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeHealthCodeOCRResponse`

Parameters:

  • request:

    Request instance for RecognizeHealthCodeOCR.



1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
# File 'lib/v20181119/client.rb', line 1796

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']
    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

#RecognizeIndonesiaIDCardOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeIndonesiaIDCardOCRResponse`

Parameters:

  • request:

    Request instance for RecognizeIndonesiaIDCardOCR.



1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
# File 'lib/v20181119/client.rb', line 1822

def RecognizeIndonesiaIDCardOCR(request)
  body = send_request('RecognizeIndonesiaIDCardOCR', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = RecognizeIndonesiaIDCardOCRResponse.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

#RecognizeKoreanDrivingLicenseOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeKoreanDrivingLicenseOCRResponse`

Parameters:

  • request:

    Request instance for RecognizeKoreanDrivingLicenseOCR.



1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
# File 'lib/v20181119/client.rb', line 1846

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

#RecognizeKoreanIDCardOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeKoreanIDCardOCRResponse`

Parameters:

  • request:

    Request instance for RecognizeKoreanIDCardOCR.



1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
# File 'lib/v20181119/client.rb', line 1870

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

#RecognizeMedicalInvoiceOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeMedicalInvoiceOCRResponse`

Parameters:

  • request:

    Request instance for RecognizeMedicalInvoiceOCR.



1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
# File 'lib/v20181119/client.rb', line 1896

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']
    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

#RecognizeOnlineTaxiItineraryOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeOnlineTaxiItineraryOCRResponse`

Parameters:

  • request:

    Request instance for RecognizeOnlineTaxiItineraryOCR.



1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
# File 'lib/v20181119/client.rb', line 1922

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']
    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

#RecognizePhilippinesDrivingLicenseOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizePhilippinesDrivingLicenseOCRResponse`

Parameters:

  • request:

    Request instance for RecognizePhilippinesDrivingLicenseOCR.



1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
# File 'lib/v20181119/client.rb', line 1948

def RecognizePhilippinesDrivingLicenseOCR(request)
  body = send_request('RecognizePhilippinesDrivingLicenseOCR', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = RecognizePhilippinesDrivingLicenseOCRResponse.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

#RecognizePhilippinesSssIDOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizePhilippinesSssIDOCRResponse`

Parameters:

  • request:

    Request instance for RecognizePhilippinesSssIDOCR.



1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
# File 'lib/v20181119/client.rb', line 1972

def RecognizePhilippinesSssIDOCR(request)
  body = send_request('RecognizePhilippinesSssIDOCR', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = RecognizePhilippinesSssIDOCRResponse.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

#RecognizePhilippinesTinIDOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizePhilippinesTinIDOCRResponse`

Parameters:

  • request:

    Request instance for RecognizePhilippinesTinIDOCR.



1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
# File 'lib/v20181119/client.rb', line 1996

def RecognizePhilippinesTinIDOCR(request)
  body = send_request('RecognizePhilippinesTinIDOCR', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = RecognizePhilippinesTinIDOCRResponse.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

#RecognizePhilippinesUMIDOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizePhilippinesUMIDOCRResponse`

Parameters:

  • request:

    Request instance for RecognizePhilippinesUMIDOCR.



2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
# File 'lib/v20181119/client.rb', line 2020

def RecognizePhilippinesUMIDOCR(request)
  body = send_request('RecognizePhilippinesUMIDOCR', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = RecognizePhilippinesUMIDOCRResponse.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

#RecognizePhilippinesVoteIDOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizePhilippinesVoteIDOCRResponse`

Parameters:

  • request:

    Request instance for RecognizePhilippinesVoteIDOCR.



2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
# File 'lib/v20181119/client.rb', line 2046

def RecognizePhilippinesVoteIDOCR(request)
  body = send_request('RecognizePhilippinesVoteIDOCR', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = RecognizePhilippinesVoteIDOCRResponse.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

#RecognizeStoreName(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeStoreNameResponse`

Parameters:

  • request:

    Request instance for RecognizeStoreName.



2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
# File 'lib/v20181119/client.rb', line 2071

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']
    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

#RecognizeTableAccurateOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeTableAccurateOCRResponse`

Parameters:

  • request:

    Request instance for RecognizeTableAccurateOCR.



2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
# File 'lib/v20181119/client.rb', line 2097

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']
    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

#RecognizeTableOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeTableOCRResponse`

Parameters:

  • request:

    Request instance for RecognizeTableOCR.



2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
# File 'lib/v20181119/client.rb', line 2123

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']
    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

#RecognizeThaiIDCardOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeThaiIDCardOCRResponse`

Parameters:

  • request:

    Request instance for RecognizeThaiIDCardOCR.



2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
# File 'lib/v20181119/client.rb', line 2150

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']
    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

#RecognizeTravelCardOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeTravelCardOCRResponse`

Parameters:

  • request:

    Request instance for RecognizeTravelCardOCR.



2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
# File 'lib/v20181119/client.rb', line 2176

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']
    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

#RecognizeValidIDCardOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeValidIDCardOCRResponse`

Parameters:

  • request:

    Request instance for RecognizeValidIDCardOCR.



2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
# File 'lib/v20181119/client.rb', line 2202

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']
    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

#ReconstructDocument(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::ReconstructDocumentResponse`

Parameters:

  • request:

    Request instance for ReconstructDocument.



2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
# File 'lib/v20181119/client.rb', line 2226

def ReconstructDocument(request)
  body = send_request('ReconstructDocument', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ReconstructDocumentResponse.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

#ResidenceBookletOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::ResidenceBookletOCRResponse`

Parameters:

  • request:

    Request instance for ResidenceBookletOCR.



2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
# File 'lib/v20181119/client.rb', line 2252

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']
    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

#RideHailingDriverLicenseOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RideHailingDriverLicenseOCRResponse`

Parameters:

  • request:

    Request instance for RideHailingDriverLicenseOCR.



2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
# File 'lib/v20181119/client.rb', line 2278

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']
    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

#RideHailingTransportLicenseOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::RideHailingTransportLicenseOCRResponse`

Parameters:

  • request:

    Request instance for RideHailingTransportLicenseOCR.



2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
# File 'lib/v20181119/client.rb', line 2304

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']
    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

#SealOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::SealOCRResponse`

Parameters:

  • request:

    Request instance for SealOCR.



2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
# File 'lib/v20181119/client.rb', line 2330

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']
    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

#ShipInvoiceOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::ShipInvoiceOCRResponse`

Parameters:

  • request:

    Request instance for ShipInvoiceOCR.



2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
# File 'lib/v20181119/client.rb', line 2356

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']
    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

#SmartStructuralOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::SmartStructuralOCRResponse`

Parameters:

  • request:

    Request instance for SmartStructuralOCR.



2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
# File 'lib/v20181119/client.rb', line 2382

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']
    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

#SmartStructuralOCRV2(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::SmartStructuralOCRV2Response`

Parameters:

  • request:

    Request instance for SmartStructuralOCRV2.



2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
# File 'lib/v20181119/client.rb', line 2408

def SmartStructuralOCRV2(request)
  body = send_request('SmartStructuralOCRV2', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = SmartStructuralOCRV2Response.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

#SmartStructuralPro(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::SmartStructuralProResponse`

Parameters:

  • request:

    Request instance for SmartStructuralPro.



2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
# File 'lib/v20181119/client.rb', line 2434

def SmartStructuralPro(request)
  body = send_request('SmartStructuralPro', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = SmartStructuralProResponse.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

#TableOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::TableOCRResponse`

Parameters:

  • request:

    Request instance for TableOCR.



2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
# File 'lib/v20181119/client.rb', line 2462

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']
    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

#TaxiInvoiceOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::TaxiInvoiceOCRResponse`

Parameters:

  • request:

    Request instance for TaxiInvoiceOCR.



2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
# File 'lib/v20181119/client.rb', line 2488

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']
    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

#TextDetect(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::TextDetectResponse`

Parameters:

  • request:

    Request instance for TextDetect.



2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
# File 'lib/v20181119/client.rb', line 2512

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']
    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

#TollInvoiceOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::TollInvoiceOCRResponse`

Parameters:

  • request:

    Request instance for TollInvoiceOCR.



2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
# File 'lib/v20181119/client.rb', line 2538

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']
    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

#TrainTicketOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::TrainTicketOCRResponse`

Parameters:

  • request:

    Request instance for TrainTicketOCR.



2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
# File 'lib/v20181119/client.rb', line 2564

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']
    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

#VatInvoiceOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::VatInvoiceOCRResponse`

Parameters:

  • request:

    Request instance for VatInvoiceOCR.



2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
# File 'lib/v20181119/client.rb', line 2590

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']
    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

#VatInvoiceVerify(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::VatInvoiceVerifyResponse`

Parameters:

  • request:

    Request instance for VatInvoiceVerify.



2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
# File 'lib/v20181119/client.rb', line 2618

def VatInvoiceVerify(request)
  body = send_request('VatInvoiceVerify', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = VatInvoiceVerifyResponse.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

#VatInvoiceVerifyNew(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::VatInvoiceVerifyNewResponse`

Parameters:

  • request:

    Request instance for VatInvoiceVerifyNew.



2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
# File 'lib/v20181119/client.rb', line 2644

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']
    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

#VatRollInvoiceOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::VatRollInvoiceOCRResponse`

Parameters:

  • request:

    Request instance for VatRollInvoiceOCR.



2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
# File 'lib/v20181119/client.rb', line 2670

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']
    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

#VehicleLicenseOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::VehicleLicenseOCRResponse`

Parameters:

  • request:

    Request instance for VehicleLicenseOCR.



2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
# File 'lib/v20181119/client.rb', line 2702

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']
    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

#VehicleRegCertOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::VehicleRegCertOCRResponse`

Parameters:

  • request:

    Request instance for VehicleRegCertOCR.



2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
# File 'lib/v20181119/client.rb', line 2728

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']
    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

#VerifyOfdVatInvoiceOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::VerifyOfdVatInvoiceOCRResponse`

Parameters:

  • request:

    Request instance for VerifyOfdVatInvoiceOCR.



2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
# File 'lib/v20181119/client.rb', line 2752

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']
    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

#VinOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::VinOCRResponse`

Parameters:

  • request:

    Request instance for VinOCR.



2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
# File 'lib/v20181119/client.rb', line 2777

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']
    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

#WaybillOCR(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ocr::V20181119::WaybillOCRResponse`

Parameters:

  • request:

    Request instance for WaybillOCR.



2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
# File 'lib/v20181119/client.rb', line 2803

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']
    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