Class: TencentCloud::Ocr::V20181119::Client
- Inherits:
-
Common::AbstractClient
- Object
- Common::AbstractClient
- TencentCloud::Ocr::V20181119::Client
- Defined in:
- lib/v20181119/client.rb
Instance Method Summary collapse
-
#AdvertiseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::AdvertiseOCRResponse`.
-
#ArithmeticOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ArithmeticOCRResponse`.
-
#BankCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::BankCardOCRResponse`.
-
#BankSlipOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::BankSlipOCRResponse`.
-
#BizLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::BizLicenseOCRResponse`.
-
#BusinessCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::BusinessCardOCRResponse`.
-
#BusInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::BusInvoiceOCRResponse`.
-
#CarInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::CarInvoiceOCRResponse`.
-
#ClassifyDetectOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ClassifyDetectOCRResponse`.
-
#ClassifyStoreName(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ClassifyStoreNameResponse`.
-
#CreateAIFormTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::CreateAIFormTaskResponse`.
-
#DriverLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::DriverLicenseOCRResponse`.
-
#DutyPaidProofOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::DutyPaidProofOCRResponse`.
-
#EduPaperOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::EduPaperOCRResponse`.
-
#EnglishOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::EnglishOCRResponse`.
-
#EnterpriseLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::EnterpriseLicenseOCRResponse`.
-
#EstateCertOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::EstateCertOCRResponse`.
-
#FinanBillOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::FinanBillOCRResponse`.
-
#FinanBillSliceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::FinanBillSliceOCRResponse`.
-
#FlightInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::FlightInvoiceOCRResponse`.
-
#FormulaOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::FormulaOCRResponse`.
-
#GeneralAccurateOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralAccurateOCRResponse`.
-
#GeneralBasicOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralBasicOCRResponse`.
-
#GeneralEfficientOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralEfficientOCRResponse`.
-
#GeneralFastOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralFastOCRResponse`.
-
#GeneralHandwritingOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralHandwritingOCRResponse`.
-
#GetTaskState(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GetTaskStateResponse`.
-
#HKIDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::HKIDCardOCRResponse`.
-
#HmtResidentPermitOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::HmtResidentPermitOCRResponse`.
-
#IDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::IDCardOCRResponse`.
-
#ImageEnhancement(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ImageEnhancementResponse`.
-
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#InstitutionOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::InstitutionOCRResponse`.
-
#InsuranceBillOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::InsuranceBillOCRResponse`.
-
#InvoiceGeneralOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::InvoiceGeneralOCRResponse`.
-
#LicensePlateOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::LicensePlateOCRResponse`.
-
#MainlandPermitOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::MainlandPermitOCRResponse`.
-
#MixedInvoiceDetect(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::MixedInvoiceDetectResponse`.
-
#MixedInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::MixedInvoiceOCRResponse`.
-
#MLIDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::MLIDCardOCRResponse`.
-
#MLIDPassportOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::MLIDPassportOCRResponse`.
-
#OrgCodeCertOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::OrgCodeCertOCRResponse`.
-
#PassportOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::PassportOCRResponse`.
-
#PermitOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::PermitOCRResponse`.
-
#PropOwnerCertOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::PropOwnerCertOCRResponse`.
-
#QrcodeOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::QrcodeOCRResponse`.
-
#QuotaInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::QuotaInvoiceOCRResponse`.
-
#RecognizeContainerOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeContainerOCRResponse`.
-
#RecognizeEncryptedIDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeEncryptedIDCardOCRResponse`.
-
#RecognizeForeignPermanentResidentIdCard(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeForeignPermanentResidentIdCardResponse`.
-
#RecognizeGeneralInvoice(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeGeneralInvoiceResponse`.
-
#RecognizeGeneralTextImageWarn(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeGeneralTextImageWarnResponse`.
-
#RecognizeHealthCodeOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeHealthCodeOCRResponse`.
-
#RecognizeIndonesiaIDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeIndonesiaIDCardOCRResponse`.
-
#RecognizeMedicalInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeMedicalInvoiceOCRResponse`.
-
#RecognizeOnlineTaxiItineraryOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeOnlineTaxiItineraryOCRResponse`.
-
#RecognizePhilippinesDrivingLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizePhilippinesDrivingLicenseOCRResponse`.
-
#RecognizePhilippinesSssIDOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizePhilippinesSssIDOCRResponse`.
-
#RecognizePhilippinesTinIDOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizePhilippinesTinIDOCRResponse`.
-
#RecognizePhilippinesUMIDOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizePhilippinesUMIDOCRResponse`.
-
#RecognizePhilippinesVoteIDOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizePhilippinesVoteIDOCRResponse`.
-
#RecognizeStoreName(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeStoreNameResponse`.
-
#RecognizeTableAccurateOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeTableAccurateOCRResponse`.
-
#RecognizeTableOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeTableOCRResponse`.
-
#RecognizeThaiIDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeThaiIDCardOCRResponse`.
-
#RecognizeTravelCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeTravelCardOCRResponse`.
-
#ReconstructDocument(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ReconstructDocumentResponse`.
-
#ResidenceBookletOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ResidenceBookletOCRResponse`.
-
#RideHailingDriverLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RideHailingDriverLicenseOCRResponse`.
-
#RideHailingTransportLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RideHailingTransportLicenseOCRResponse`.
-
#SealOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::SealOCRResponse`.
-
#ShipInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ShipInvoiceOCRResponse`.
-
#SmartStructuralOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::SmartStructuralOCRResponse`.
-
#SmartStructuralOCRV2(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::SmartStructuralOCRV2Response`.
-
#TableOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::TableOCRResponse`.
-
#TaxiInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::TaxiInvoiceOCRResponse`.
-
#TextDetect(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::TextDetectResponse`.
-
#TollInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::TollInvoiceOCRResponse`.
-
#TrainTicketOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::TrainTicketOCRResponse`.
-
#VatInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VatInvoiceOCRResponse`.
-
#VatInvoiceVerify(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VatInvoiceVerifyResponse`.
-
#VatInvoiceVerifyNew(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VatInvoiceVerifyNewResponse`.
-
#VatRollInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VatRollInvoiceOCRResponse`.
-
#VehicleLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VehicleLicenseOCRResponse`.
-
#VehicleRegCertOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VehicleRegCertOCRResponse`.
-
#VerifyOfdVatInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VerifyOfdVatInvoiceOCRResponse`.
-
#VinOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VinOCRResponse`.
-
#WaybillOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::WaybillOCRResponse`.
Constructor Details
#initialize(credential, region, profile = nil) ⇒ Client
Returns a new instance of Client.
24 25 26 27 28 29 |
# File 'lib/v20181119/client.rb', line 24 def initialize(credential, region, profile = nil) api_version = '2018-11-19' api_endpoint = 'ocr.tencentcloudapi.com' sdk_version = 'OCR_' + File.read(File.('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end |
Instance Method Details
#AdvertiseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::AdvertiseOCRResponse`
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/v20181119/client.rb', line 41 def AdvertiseOCR(request) body = send_request('AdvertiseOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AdvertiseOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ArithmeticOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ArithmeticOCRResponse`
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/v20181119/client.rb', line 67 def ArithmeticOCR(request) body = send_request('ArithmeticOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ArithmeticOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#BankCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::BankCardOCRResponse`
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/v20181119/client.rb', line 93 def BankCardOCR(request) body = send_request('BankCardOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = BankCardOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#BankSlipOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::BankSlipOCRResponse`
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/v20181119/client.rb', line 119 def BankSlipOCR(request) body = send_request('BankSlipOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = BankSlipOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#BizLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::BizLicenseOCRResponse`
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
# File 'lib/v20181119/client.rb', line 145 def BizLicenseOCR(request) body = send_request('BizLicenseOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = BizLicenseOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#BusinessCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::BusinessCardOCRResponse`
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 |
# File 'lib/v20181119/client.rb', line 197 def BusinessCardOCR(request) body = send_request('BusinessCardOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = BusinessCardOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#BusInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::BusInvoiceOCRResponse`
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 |
# File 'lib/v20181119/client.rb', line 171 def BusInvoiceOCR(request) body = send_request('BusInvoiceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = BusInvoiceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CarInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::CarInvoiceOCRResponse`
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 |
# File 'lib/v20181119/client.rb', line 223 def CarInvoiceOCR(request) body = send_request('CarInvoiceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CarInvoiceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ClassifyDetectOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ClassifyDetectOCRResponse`
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 |
# File 'lib/v20181119/client.rb', line 249 def ClassifyDetectOCR(request) body = send_request('ClassifyDetectOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ClassifyDetectOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ClassifyStoreName(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ClassifyStoreNameResponse`
274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 |
# File 'lib/v20181119/client.rb', line 274 def ClassifyStoreName(request) body = send_request('ClassifyStoreName', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ClassifyStoreNameResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateAIFormTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::CreateAIFormTaskResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DriverLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::DriverLicenseOCRResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DutyPaidProofOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::DutyPaidProofOCRResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#EduPaperOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::EduPaperOCRResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#EnglishOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::EnglishOCRResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#EnterpriseLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::EnterpriseLicenseOCRResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#EstateCertOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::EstateCertOCRResponse`
467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 |
# File 'lib/v20181119/client.rb', line 467 def EstateCertOCR(request) body = send_request('EstateCertOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = EstateCertOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#FinanBillOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::FinanBillOCRResponse`
493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 |
# File 'lib/v20181119/client.rb', line 493 def FinanBillOCR(request) body = send_request('FinanBillOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = FinanBillOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#FinanBillSliceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::FinanBillSliceOCRResponse`
519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 |
# File 'lib/v20181119/client.rb', line 519 def FinanBillSliceOCR(request) body = send_request('FinanBillSliceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = FinanBillSliceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#FlightInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::FlightInvoiceOCRResponse`
545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 |
# File 'lib/v20181119/client.rb', line 545 def FlightInvoiceOCR(request) body = send_request('FlightInvoiceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = FlightInvoiceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#FormulaOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::FormulaOCRResponse`
571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 |
# File 'lib/v20181119/client.rb', line 571 def FormulaOCR(request) body = send_request('FormulaOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = FormulaOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#GeneralAccurateOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralAccurateOCRResponse`
657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 |
# File 'lib/v20181119/client.rb', line 657 def GeneralAccurateOCR(request) body = send_request('GeneralAccurateOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GeneralAccurateOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#GeneralBasicOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralBasicOCRResponse`
743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 |
# File 'lib/v20181119/client.rb', line 743 def GeneralBasicOCR(request) body = send_request('GeneralBasicOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GeneralBasicOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#GeneralEfficientOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralEfficientOCRResponse`
829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 |
# File 'lib/v20181119/client.rb', line 829 def GeneralEfficientOCR(request) body = send_request('GeneralEfficientOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GeneralEfficientOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#GeneralFastOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralFastOCRResponse`
855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 |
# File 'lib/v20181119/client.rb', line 855 def GeneralFastOCR(request) body = send_request('GeneralFastOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GeneralFastOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#GeneralHandwritingOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GeneralHandwritingOCRResponse`
881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 |
# File 'lib/v20181119/client.rb', line 881 def GeneralHandwritingOCR(request) body = send_request('GeneralHandwritingOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GeneralHandwritingOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#GetTaskState(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::GetTaskStateResponse`
907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 |
# File 'lib/v20181119/client.rb', line 907 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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#HKIDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::HKIDCardOCRResponse`
933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 |
# File 'lib/v20181119/client.rb', line 933 def HKIDCardOCR(request) body = send_request('HKIDCardOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = HKIDCardOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#HmtResidentPermitOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::HmtResidentPermitOCRResponse`
959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 |
# File 'lib/v20181119/client.rb', line 959 def HmtResidentPermitOCR(request) body = send_request('HmtResidentPermitOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = HmtResidentPermitOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#IDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::IDCardOCRResponse`
1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 |
# File 'lib/v20181119/client.rb', line 1032 def IDCardOCR(request) body = send_request('IDCardOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = IDCardOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ImageEnhancement(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ImageEnhancementResponse`
1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 |
# File 'lib/v20181119/client.rb', line 1058 def ImageEnhancement(request) body = send_request('ImageEnhancement', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ImageEnhancementResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#InstitutionOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::InstitutionOCRResponse`
1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 |
# File 'lib/v20181119/client.rb', line 1084 def InstitutionOCR(request) body = send_request('InstitutionOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InstitutionOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#InsuranceBillOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::InsuranceBillOCRResponse`
1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 |
# File 'lib/v20181119/client.rb', line 1110 def InsuranceBillOCR(request) body = send_request('InsuranceBillOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InsuranceBillOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#InvoiceGeneralOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::InvoiceGeneralOCRResponse`
1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 |
# File 'lib/v20181119/client.rb', line 1136 def InvoiceGeneralOCR(request) body = send_request('InvoiceGeneralOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InvoiceGeneralOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#LicensePlateOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::LicensePlateOCRResponse`
1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 |
# File 'lib/v20181119/client.rb', line 1162 def LicensePlateOCR(request) body = send_request('LicensePlateOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = LicensePlateOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#MainlandPermitOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::MainlandPermitOCRResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#MixedInvoiceDetect(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::MixedInvoiceDetectResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#MixedInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::MixedInvoiceOCRResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#MLIDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::MLIDCardOCRResponse`
1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 |
# File 'lib/v20181119/client.rb', line 1187 def MLIDCardOCR(request) body = send_request('MLIDCardOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = MLIDCardOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#MLIDPassportOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::MLIDPassportOCRResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#OrgCodeCertOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::OrgCodeCertOCRResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#PassportOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::PassportOCRResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#PermitOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::PermitOCRResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#PropOwnerCertOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::PropOwnerCertOCRResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#QrcodeOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::QrcodeOCRResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#QuotaInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::QuotaInvoiceOCRResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeContainerOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeContainerOCRResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeEncryptedIDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeEncryptedIDCardOCRResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeForeignPermanentResidentIdCard(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeForeignPermanentResidentIdCardResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeGeneralInvoice(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeGeneralInvoiceResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeGeneralTextImageWarn(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeGeneralTextImageWarnResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeHealthCodeOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeHealthCodeOCRResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeIndonesiaIDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeIndonesiaIDCardOCRResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeMedicalInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeMedicalInvoiceOCRResponse`
1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 |
# File 'lib/v20181119/client.rb', line 1848 def RecognizeMedicalInvoiceOCR(request) body = send_request('RecognizeMedicalInvoiceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecognizeMedicalInvoiceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeOnlineTaxiItineraryOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeOnlineTaxiItineraryOCRResponse`
1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 |
# File 'lib/v20181119/client.rb', line 1874 def RecognizeOnlineTaxiItineraryOCR(request) body = send_request('RecognizeOnlineTaxiItineraryOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecognizeOnlineTaxiItineraryOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizePhilippinesDrivingLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizePhilippinesDrivingLicenseOCRResponse`
1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 |
# File 'lib/v20181119/client.rb', line 1898 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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizePhilippinesSssIDOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizePhilippinesSssIDOCRResponse`
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 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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizePhilippinesTinIDOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizePhilippinesTinIDOCRResponse`
1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 |
# File 'lib/v20181119/client.rb', line 1946 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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizePhilippinesUMIDOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizePhilippinesUMIDOCRResponse`
1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 |
# File 'lib/v20181119/client.rb', line 1970 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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizePhilippinesVoteIDOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizePhilippinesVoteIDOCRResponse`
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 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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeStoreName(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeStoreNameResponse`
2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 |
# File 'lib/v20181119/client.rb', line 2021 def RecognizeStoreName(request) body = send_request('RecognizeStoreName', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecognizeStoreNameResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeTableAccurateOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeTableAccurateOCRResponse`
2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 |
# File 'lib/v20181119/client.rb', line 2047 def RecognizeTableAccurateOCR(request) body = send_request('RecognizeTableAccurateOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecognizeTableAccurateOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeTableOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeTableOCRResponse`
2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 |
# File 'lib/v20181119/client.rb', line 2073 def RecognizeTableOCR(request) body = send_request('RecognizeTableOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecognizeTableOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeThaiIDCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeThaiIDCardOCRResponse`
2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 |
# File 'lib/v20181119/client.rb', line 2100 def RecognizeThaiIDCardOCR(request) body = send_request('RecognizeThaiIDCardOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecognizeThaiIDCardOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RecognizeTravelCardOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RecognizeTravelCardOCRResponse`
2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 |
# File 'lib/v20181119/client.rb', line 2126 def RecognizeTravelCardOCR(request) body = send_request('RecognizeTravelCardOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecognizeTravelCardOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ReconstructDocument(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ReconstructDocumentResponse`
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 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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ResidenceBookletOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ResidenceBookletOCRResponse`
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 ResidenceBookletOCR(request) body = send_request('ResidenceBookletOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ResidenceBookletOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RideHailingDriverLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RideHailingDriverLicenseOCRResponse`
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 RideHailingDriverLicenseOCR(request) body = send_request('RideHailingDriverLicenseOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RideHailingDriverLicenseOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RideHailingTransportLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::RideHailingTransportLicenseOCRResponse`
2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 |
# File 'lib/v20181119/client.rb', line 2228 def RideHailingTransportLicenseOCR(request) body = send_request('RideHailingTransportLicenseOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RideHailingTransportLicenseOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#SealOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::SealOCRResponse`
2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 |
# File 'lib/v20181119/client.rb', line 2254 def SealOCR(request) body = send_request('SealOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SealOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ShipInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::ShipInvoiceOCRResponse`
2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 |
# File 'lib/v20181119/client.rb', line 2280 def ShipInvoiceOCR(request) body = send_request('ShipInvoiceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ShipInvoiceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#SmartStructuralOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::SmartStructuralOCRResponse`
2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 |
# File 'lib/v20181119/client.rb', line 2306 def SmartStructuralOCR(request) body = send_request('SmartStructuralOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SmartStructuralOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#SmartStructuralOCRV2(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::SmartStructuralOCRV2Response`
2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 |
# File 'lib/v20181119/client.rb', line 2332 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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#TableOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::TableOCRResponse`
2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 |
# File 'lib/v20181119/client.rb', line 2360 def TableOCR(request) body = send_request('TableOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = TableOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#TaxiInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::TaxiInvoiceOCRResponse`
2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 |
# File 'lib/v20181119/client.rb', line 2386 def TaxiInvoiceOCR(request) body = send_request('TaxiInvoiceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = TaxiInvoiceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#TextDetect(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::TextDetectResponse`
2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 |
# File 'lib/v20181119/client.rb', line 2410 def TextDetect(request) body = send_request('TextDetect', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = TextDetectResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#TollInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::TollInvoiceOCRResponse`
2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 |
# File 'lib/v20181119/client.rb', line 2436 def TollInvoiceOCR(request) body = send_request('TollInvoiceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = TollInvoiceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#TrainTicketOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::TrainTicketOCRResponse`
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 TrainTicketOCR(request) body = send_request('TrainTicketOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = TrainTicketOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VatInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VatInvoiceOCRResponse`
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 VatInvoiceOCR(request) body = send_request('VatInvoiceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = VatInvoiceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VatInvoiceVerify(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VatInvoiceVerifyResponse`
2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 |
# File 'lib/v20181119/client.rb', line 2516 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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VatInvoiceVerifyNew(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VatInvoiceVerifyNewResponse`
2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 |
# File 'lib/v20181119/client.rb', line 2542 def VatInvoiceVerifyNew(request) body = send_request('VatInvoiceVerifyNew', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = VatInvoiceVerifyNewResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VatRollInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VatRollInvoiceOCRResponse`
2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 |
# File 'lib/v20181119/client.rb', line 2568 def VatRollInvoiceOCR(request) body = send_request('VatRollInvoiceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = VatRollInvoiceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VehicleLicenseOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VehicleLicenseOCRResponse`
2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 |
# File 'lib/v20181119/client.rb', line 2600 def VehicleLicenseOCR(request) body = send_request('VehicleLicenseOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = VehicleLicenseOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VehicleRegCertOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VehicleRegCertOCRResponse`
2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 |
# File 'lib/v20181119/client.rb', line 2626 def VehicleRegCertOCR(request) body = send_request('VehicleRegCertOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = VehicleRegCertOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VerifyOfdVatInvoiceOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VerifyOfdVatInvoiceOCRResponse`
2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 |
# File 'lib/v20181119/client.rb', line 2650 def VerifyOfdVatInvoiceOCR(request) body = send_request('VerifyOfdVatInvoiceOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = VerifyOfdVatInvoiceOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VinOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::VinOCRResponse`
2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 |
# File 'lib/v20181119/client.rb', line 2675 def VinOCR(request) body = send_request('VinOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = VinOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#WaybillOCR(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ocr::V20181119::WaybillOCRResponse`
2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 |
# File 'lib/v20181119/client.rb', line 2701 def WaybillOCR(request) body = send_request('WaybillOCR', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = WaybillOCRResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |