tencentcloud-sdk-ocr 3.0.950 → 3.0.951
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20181119/client.rb +0 -174
- data/lib/v20181119/models.rb +0 -739
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aba2e3fd0f74980309088982af73f4f2c43e8f7b
|
4
|
+
data.tar.gz: 01aedc6a9ff15f24fec314594218d3875768e0af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0c62432490376280d06e9cf3f3b3f303ae3069fbf076ba5eebb415afa5813766c29cf86bf6efe3083ad367d38a79ff5b0e5e3fc0775e508756de4bc211c010e
|
7
|
+
data.tar.gz: ea0608c98ec8be4b089bd57267517f712ea435f45b5b3c551bbdb696d11eecff2cb957f42d2bd1a47fab8583e4ec5c70df8fdbd56d3e37971ee7fc0b500757a8
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.951
|
data/lib/v20181119/client.rb
CHANGED
@@ -1812,32 +1812,6 @@ module TencentCloud
|
|
1812
1812
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1813
1813
|
end
|
1814
1814
|
|
1815
|
-
# 印尼身份证识别
|
1816
|
-
|
1817
|
-
# 默认接口请求频率限制:5次/秒。
|
1818
|
-
|
1819
|
-
# @param request: Request instance for RecognizeIndonesiaIDCardOCR.
|
1820
|
-
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeIndonesiaIDCardOCRRequest`
|
1821
|
-
# @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizeIndonesiaIDCardOCRResponse`
|
1822
|
-
def RecognizeIndonesiaIDCardOCR(request)
|
1823
|
-
body = send_request('RecognizeIndonesiaIDCardOCR', request.serialize)
|
1824
|
-
response = JSON.parse(body)
|
1825
|
-
if response['Response'].key?('Error') == false
|
1826
|
-
model = RecognizeIndonesiaIDCardOCRResponse.new
|
1827
|
-
model.deserialize(response['Response'])
|
1828
|
-
model
|
1829
|
-
else
|
1830
|
-
code = response['Response']['Error']['Code']
|
1831
|
-
message = response['Response']['Error']['Message']
|
1832
|
-
reqid = response['Response']['RequestId']
|
1833
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1834
|
-
end
|
1835
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1836
|
-
raise e
|
1837
|
-
rescue StandardError => e
|
1838
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1839
|
-
end
|
1840
|
-
|
1841
1815
|
# 韩国驾驶证识别
|
1842
1816
|
|
1843
1817
|
# @param request: Request instance for RecognizeKoreanDrivingLicenseOCR.
|
@@ -1862,30 +1836,6 @@ module TencentCloud
|
|
1862
1836
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1863
1837
|
end
|
1864
1838
|
|
1865
|
-
# 韩国身份证识别
|
1866
|
-
|
1867
|
-
# @param request: Request instance for RecognizeKoreanIDCardOCR.
|
1868
|
-
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeKoreanIDCardOCRRequest`
|
1869
|
-
# @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizeKoreanIDCardOCRResponse`
|
1870
|
-
def RecognizeKoreanIDCardOCR(request)
|
1871
|
-
body = send_request('RecognizeKoreanIDCardOCR', request.serialize)
|
1872
|
-
response = JSON.parse(body)
|
1873
|
-
if response['Response'].key?('Error') == false
|
1874
|
-
model = RecognizeKoreanIDCardOCRResponse.new
|
1875
|
-
model.deserialize(response['Response'])
|
1876
|
-
model
|
1877
|
-
else
|
1878
|
-
code = response['Response']['Error']['Code']
|
1879
|
-
message = response['Response']['Error']['Message']
|
1880
|
-
reqid = response['Response']['RequestId']
|
1881
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1882
|
-
end
|
1883
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1884
|
-
raise e
|
1885
|
-
rescue StandardError => e
|
1886
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1887
|
-
end
|
1888
|
-
|
1889
1839
|
# 医疗发票识别目前支持全国统一门诊发票、全国统一住院发票、以及部分地方的门诊和住院发票的识别。
|
1890
1840
|
|
1891
1841
|
# 默认接口请求频率限制:5次/秒。
|
@@ -1938,130 +1888,6 @@ module TencentCloud
|
|
1938
1888
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1939
1889
|
end
|
1940
1890
|
|
1941
|
-
# 菲律宾驾驶证识别
|
1942
|
-
|
1943
|
-
# 默认接口请求频率限制:20次/秒。
|
1944
|
-
|
1945
|
-
# @param request: Request instance for RecognizePhilippinesDrivingLicenseOCR.
|
1946
|
-
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizePhilippinesDrivingLicenseOCRRequest`
|
1947
|
-
# @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizePhilippinesDrivingLicenseOCRResponse`
|
1948
|
-
def RecognizePhilippinesDrivingLicenseOCR(request)
|
1949
|
-
body = send_request('RecognizePhilippinesDrivingLicenseOCR', request.serialize)
|
1950
|
-
response = JSON.parse(body)
|
1951
|
-
if response['Response'].key?('Error') == false
|
1952
|
-
model = RecognizePhilippinesDrivingLicenseOCRResponse.new
|
1953
|
-
model.deserialize(response['Response'])
|
1954
|
-
model
|
1955
|
-
else
|
1956
|
-
code = response['Response']['Error']['Code']
|
1957
|
-
message = response['Response']['Error']['Message']
|
1958
|
-
reqid = response['Response']['RequestId']
|
1959
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1960
|
-
end
|
1961
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1962
|
-
raise e
|
1963
|
-
rescue StandardError => e
|
1964
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1965
|
-
end
|
1966
|
-
|
1967
|
-
# 菲律宾SSSID/UMID识别
|
1968
|
-
|
1969
|
-
# @param request: Request instance for RecognizePhilippinesSssIDOCR.
|
1970
|
-
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizePhilippinesSssIDOCRRequest`
|
1971
|
-
# @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizePhilippinesSssIDOCRResponse`
|
1972
|
-
def RecognizePhilippinesSssIDOCR(request)
|
1973
|
-
body = send_request('RecognizePhilippinesSssIDOCR', request.serialize)
|
1974
|
-
response = JSON.parse(body)
|
1975
|
-
if response['Response'].key?('Error') == false
|
1976
|
-
model = RecognizePhilippinesSssIDOCRResponse.new
|
1977
|
-
model.deserialize(response['Response'])
|
1978
|
-
model
|
1979
|
-
else
|
1980
|
-
code = response['Response']['Error']['Code']
|
1981
|
-
message = response['Response']['Error']['Message']
|
1982
|
-
reqid = response['Response']['RequestId']
|
1983
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1984
|
-
end
|
1985
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1986
|
-
raise e
|
1987
|
-
rescue StandardError => e
|
1988
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1989
|
-
end
|
1990
|
-
|
1991
|
-
# 菲律宾TinID识别
|
1992
|
-
|
1993
|
-
# @param request: Request instance for RecognizePhilippinesTinIDOCR.
|
1994
|
-
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizePhilippinesTinIDOCRRequest`
|
1995
|
-
# @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizePhilippinesTinIDOCRResponse`
|
1996
|
-
def RecognizePhilippinesTinIDOCR(request)
|
1997
|
-
body = send_request('RecognizePhilippinesTinIDOCR', request.serialize)
|
1998
|
-
response = JSON.parse(body)
|
1999
|
-
if response['Response'].key?('Error') == false
|
2000
|
-
model = RecognizePhilippinesTinIDOCRResponse.new
|
2001
|
-
model.deserialize(response['Response'])
|
2002
|
-
model
|
2003
|
-
else
|
2004
|
-
code = response['Response']['Error']['Code']
|
2005
|
-
message = response['Response']['Error']['Message']
|
2006
|
-
reqid = response['Response']['RequestId']
|
2007
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2008
|
-
end
|
2009
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2010
|
-
raise e
|
2011
|
-
rescue StandardError => e
|
2012
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2013
|
-
end
|
2014
|
-
|
2015
|
-
# 菲律宾UMID识别
|
2016
|
-
|
2017
|
-
# @param request: Request instance for RecognizePhilippinesUMIDOCR.
|
2018
|
-
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizePhilippinesUMIDOCRRequest`
|
2019
|
-
# @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizePhilippinesUMIDOCRResponse`
|
2020
|
-
def RecognizePhilippinesUMIDOCR(request)
|
2021
|
-
body = send_request('RecognizePhilippinesUMIDOCR', request.serialize)
|
2022
|
-
response = JSON.parse(body)
|
2023
|
-
if response['Response'].key?('Error') == false
|
2024
|
-
model = RecognizePhilippinesUMIDOCRResponse.new
|
2025
|
-
model.deserialize(response['Response'])
|
2026
|
-
model
|
2027
|
-
else
|
2028
|
-
code = response['Response']['Error']['Code']
|
2029
|
-
message = response['Response']['Error']['Message']
|
2030
|
-
reqid = response['Response']['RequestId']
|
2031
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2032
|
-
end
|
2033
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2034
|
-
raise e
|
2035
|
-
rescue StandardError => e
|
2036
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2037
|
-
end
|
2038
|
-
|
2039
|
-
# 本接口支持菲律宾VoteID识别,识别字段包括姓名、姓氏、出生日期、婚姻状况、国籍、地址、地区、菲律宾VoteID的VIN等。
|
2040
|
-
|
2041
|
-
# 默认接口请求频率限制:20次/秒。
|
2042
|
-
|
2043
|
-
# @param request: Request instance for RecognizePhilippinesVoteIDOCR.
|
2044
|
-
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizePhilippinesVoteIDOCRRequest`
|
2045
|
-
# @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizePhilippinesVoteIDOCRResponse`
|
2046
|
-
def RecognizePhilippinesVoteIDOCR(request)
|
2047
|
-
body = send_request('RecognizePhilippinesVoteIDOCR', request.serialize)
|
2048
|
-
response = JSON.parse(body)
|
2049
|
-
if response['Response'].key?('Error') == false
|
2050
|
-
model = RecognizePhilippinesVoteIDOCRResponse.new
|
2051
|
-
model.deserialize(response['Response'])
|
2052
|
-
model
|
2053
|
-
else
|
2054
|
-
code = response['Response']['Error']['Code']
|
2055
|
-
message = response['Response']['Error']['Message']
|
2056
|
-
reqid = response['Response']['RequestId']
|
2057
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2058
|
-
end
|
2059
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2060
|
-
raise e
|
2061
|
-
rescue StandardError => e
|
2062
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2063
|
-
end
|
2064
|
-
|
2065
1891
|
# 本接口用于识别门头照文字识别结果以及对应分类标签信息
|
2066
1892
|
# 默认接口请求频率限制:1次/秒
|
2067
1893
|
|
data/lib/v20181119/models.rb
CHANGED
@@ -8237,142 +8237,6 @@ module TencentCloud
|
|
8237
8237
|
end
|
8238
8238
|
end
|
8239
8239
|
|
8240
|
-
# RecognizeIndonesiaIDCardOCR请求参数结构体
|
8241
|
-
class RecognizeIndonesiaIDCardOCRRequest < TencentCloud::Common::AbstractModel
|
8242
|
-
# @param ImageBase64: 图片的 Base64 值。
|
8243
|
-
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
8244
|
-
# 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
8245
|
-
# 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
8246
|
-
# @type ImageBase64: String
|
8247
|
-
# @param ImageUrl: 图片的 Url 地址。
|
8248
|
-
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
8249
|
-
# 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
8250
|
-
# 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
8251
|
-
# 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
8252
|
-
# @type ImageUrl: String
|
8253
|
-
# @param ReturnHeadImage: 是否返回人像照片。
|
8254
|
-
# @type ReturnHeadImage: Boolean
|
8255
|
-
# @param Scene: 场景参数,默认值为V1
|
8256
|
-
# 可选值:
|
8257
|
-
# V1
|
8258
|
-
# V2
|
8259
|
-
# @type Scene: String
|
8260
|
-
|
8261
|
-
attr_accessor :ImageBase64, :ImageUrl, :ReturnHeadImage, :Scene
|
8262
|
-
|
8263
|
-
def initialize(imagebase64=nil, imageurl=nil, returnheadimage=nil, scene=nil)
|
8264
|
-
@ImageBase64 = imagebase64
|
8265
|
-
@ImageUrl = imageurl
|
8266
|
-
@ReturnHeadImage = returnheadimage
|
8267
|
-
@Scene = scene
|
8268
|
-
end
|
8269
|
-
|
8270
|
-
def deserialize(params)
|
8271
|
-
@ImageBase64 = params['ImageBase64']
|
8272
|
-
@ImageUrl = params['ImageUrl']
|
8273
|
-
@ReturnHeadImage = params['ReturnHeadImage']
|
8274
|
-
@Scene = params['Scene']
|
8275
|
-
end
|
8276
|
-
end
|
8277
|
-
|
8278
|
-
# RecognizeIndonesiaIDCardOCR返回参数结构体
|
8279
|
-
class RecognizeIndonesiaIDCardOCRResponse < TencentCloud::Common::AbstractModel
|
8280
|
-
# @param NIK: 证件号码
|
8281
|
-
# @type NIK: String
|
8282
|
-
# @param Nama: 姓名
|
8283
|
-
# @type Nama: String
|
8284
|
-
# @param TempatTglLahir: 出生地/出生时间
|
8285
|
-
# @type TempatTglLahir: String
|
8286
|
-
# @param JenisKelamin: 性别
|
8287
|
-
# @type JenisKelamin: String
|
8288
|
-
# @param GolDarah: 血型
|
8289
|
-
# @type GolDarah: String
|
8290
|
-
# @param Alamat: 地址
|
8291
|
-
# @type Alamat: String
|
8292
|
-
# @param RTRW: 街道
|
8293
|
-
# @type RTRW: String
|
8294
|
-
# @param KelDesa: 村
|
8295
|
-
# @type KelDesa: String
|
8296
|
-
# @param Kecamatan: 地区
|
8297
|
-
# @type Kecamatan: String
|
8298
|
-
# @param Agama: 宗教信仰
|
8299
|
-
# @type Agama: String
|
8300
|
-
# @param StatusPerkawinan: 婚姻状况
|
8301
|
-
# @type StatusPerkawinan: String
|
8302
|
-
# @param Perkerjaan: 职业
|
8303
|
-
# @type Perkerjaan: String
|
8304
|
-
# @param KewargaNegaraan: 国籍
|
8305
|
-
# @type KewargaNegaraan: String
|
8306
|
-
# @param BerlakuHingga: 身份证有效期限
|
8307
|
-
# @type BerlakuHingga: String
|
8308
|
-
# @param IssuedDate: 发证日期
|
8309
|
-
# @type IssuedDate: String
|
8310
|
-
# @param Photo: 人像截图
|
8311
|
-
# @type Photo: String
|
8312
|
-
# @param Provinsi: 省份,Scene为V2时支持识别
|
8313
|
-
# @type Provinsi: String
|
8314
|
-
# @param Kota: 城市,Scene为V2时支持识别
|
8315
|
-
# @type Kota: String
|
8316
|
-
# @param WarnCardInfos: 告警码
|
8317
|
-
# -9101 证件边框不完整告警
|
8318
|
-
# -9102 证件复印件告警
|
8319
|
-
# -9103 证件翻拍告警
|
8320
|
-
# -9107 证件反光告警
|
8321
|
-
# -9108 证件模糊告警
|
8322
|
-
# -9109 告警能力未开通
|
8323
|
-
# @type WarnCardInfos: Array
|
8324
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
8325
|
-
# @type RequestId: String
|
8326
|
-
|
8327
|
-
attr_accessor :NIK, :Nama, :TempatTglLahir, :JenisKelamin, :GolDarah, :Alamat, :RTRW, :KelDesa, :Kecamatan, :Agama, :StatusPerkawinan, :Perkerjaan, :KewargaNegaraan, :BerlakuHingga, :IssuedDate, :Photo, :Provinsi, :Kota, :WarnCardInfos, :RequestId
|
8328
|
-
|
8329
|
-
def initialize(nik=nil, nama=nil, tempattgllahir=nil, jeniskelamin=nil, goldarah=nil, alamat=nil, rtrw=nil, keldesa=nil, kecamatan=nil, agama=nil, statusperkawinan=nil, perkerjaan=nil, kewarganegaraan=nil, berlakuhingga=nil, issueddate=nil, photo=nil, provinsi=nil, kota=nil, warncardinfos=nil, requestid=nil)
|
8330
|
-
@NIK = nik
|
8331
|
-
@Nama = nama
|
8332
|
-
@TempatTglLahir = tempattgllahir
|
8333
|
-
@JenisKelamin = jeniskelamin
|
8334
|
-
@GolDarah = goldarah
|
8335
|
-
@Alamat = alamat
|
8336
|
-
@RTRW = rtrw
|
8337
|
-
@KelDesa = keldesa
|
8338
|
-
@Kecamatan = kecamatan
|
8339
|
-
@Agama = agama
|
8340
|
-
@StatusPerkawinan = statusperkawinan
|
8341
|
-
@Perkerjaan = perkerjaan
|
8342
|
-
@KewargaNegaraan = kewarganegaraan
|
8343
|
-
@BerlakuHingga = berlakuhingga
|
8344
|
-
@IssuedDate = issueddate
|
8345
|
-
@Photo = photo
|
8346
|
-
@Provinsi = provinsi
|
8347
|
-
@Kota = kota
|
8348
|
-
@WarnCardInfos = warncardinfos
|
8349
|
-
@RequestId = requestid
|
8350
|
-
end
|
8351
|
-
|
8352
|
-
def deserialize(params)
|
8353
|
-
@NIK = params['NIK']
|
8354
|
-
@Nama = params['Nama']
|
8355
|
-
@TempatTglLahir = params['TempatTglLahir']
|
8356
|
-
@JenisKelamin = params['JenisKelamin']
|
8357
|
-
@GolDarah = params['GolDarah']
|
8358
|
-
@Alamat = params['Alamat']
|
8359
|
-
@RTRW = params['RTRW']
|
8360
|
-
@KelDesa = params['KelDesa']
|
8361
|
-
@Kecamatan = params['Kecamatan']
|
8362
|
-
@Agama = params['Agama']
|
8363
|
-
@StatusPerkawinan = params['StatusPerkawinan']
|
8364
|
-
@Perkerjaan = params['Perkerjaan']
|
8365
|
-
@KewargaNegaraan = params['KewargaNegaraan']
|
8366
|
-
@BerlakuHingga = params['BerlakuHingga']
|
8367
|
-
@IssuedDate = params['IssuedDate']
|
8368
|
-
@Photo = params['Photo']
|
8369
|
-
@Provinsi = params['Provinsi']
|
8370
|
-
@Kota = params['Kota']
|
8371
|
-
@WarnCardInfos = params['WarnCardInfos']
|
8372
|
-
@RequestId = params['RequestId']
|
8373
|
-
end
|
8374
|
-
end
|
8375
|
-
|
8376
8240
|
# RecognizeKoreanDrivingLicenseOCR请求参数结构体
|
8377
8241
|
class RecognizeKoreanDrivingLicenseOCRRequest < TencentCloud::Common::AbstractModel
|
8378
8242
|
# @param ImageBase64: 图片的 Base64 值。
|
@@ -8464,81 +8328,6 @@ module TencentCloud
|
|
8464
8328
|
end
|
8465
8329
|
end
|
8466
8330
|
|
8467
|
-
# RecognizeKoreanIDCardOCR请求参数结构体
|
8468
|
-
class RecognizeKoreanIDCardOCRRequest < TencentCloud::Common::AbstractModel
|
8469
|
-
# @param ImageBase64: 图片的 Base64 值。
|
8470
|
-
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
8471
|
-
# 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
8472
|
-
# 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
8473
|
-
# @type ImageBase64: String
|
8474
|
-
# @param ImageUrl: 图片的 Url 地址。
|
8475
|
-
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
8476
|
-
# 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
8477
|
-
# 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
8478
|
-
# 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
8479
|
-
# @type ImageUrl: String
|
8480
|
-
# @param ReturnHeadImage: 是否返回人像照片。
|
8481
|
-
# @type ReturnHeadImage: Boolean
|
8482
|
-
|
8483
|
-
attr_accessor :ImageBase64, :ImageUrl, :ReturnHeadImage
|
8484
|
-
|
8485
|
-
def initialize(imagebase64=nil, imageurl=nil, returnheadimage=nil)
|
8486
|
-
@ImageBase64 = imagebase64
|
8487
|
-
@ImageUrl = imageurl
|
8488
|
-
@ReturnHeadImage = returnheadimage
|
8489
|
-
end
|
8490
|
-
|
8491
|
-
def deserialize(params)
|
8492
|
-
@ImageBase64 = params['ImageBase64']
|
8493
|
-
@ImageUrl = params['ImageUrl']
|
8494
|
-
@ReturnHeadImage = params['ReturnHeadImage']
|
8495
|
-
end
|
8496
|
-
end
|
8497
|
-
|
8498
|
-
# RecognizeKoreanIDCardOCR返回参数结构体
|
8499
|
-
class RecognizeKoreanIDCardOCRResponse < TencentCloud::Common::AbstractModel
|
8500
|
-
# @param ID: 身份证号码
|
8501
|
-
# @type ID: String
|
8502
|
-
# @param Address: 地址
|
8503
|
-
# @type Address: String
|
8504
|
-
# @param Name: 姓名
|
8505
|
-
# @type Name: String
|
8506
|
-
# @param DateOfIssue: 发证日期
|
8507
|
-
# @type DateOfIssue: String
|
8508
|
-
# @param Photo: 人像截图Base64后的结果
|
8509
|
-
# @type Photo: String
|
8510
|
-
# @param Sex: 性别
|
8511
|
-
# @type Sex: String
|
8512
|
-
# @param Birthday: 生日,格式为dd/mm/yyyy
|
8513
|
-
# @type Birthday: String
|
8514
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
8515
|
-
# @type RequestId: String
|
8516
|
-
|
8517
|
-
attr_accessor :ID, :Address, :Name, :DateOfIssue, :Photo, :Sex, :Birthday, :RequestId
|
8518
|
-
|
8519
|
-
def initialize(id=nil, address=nil, name=nil, dateofissue=nil, photo=nil, sex=nil, birthday=nil, requestid=nil)
|
8520
|
-
@ID = id
|
8521
|
-
@Address = address
|
8522
|
-
@Name = name
|
8523
|
-
@DateOfIssue = dateofissue
|
8524
|
-
@Photo = photo
|
8525
|
-
@Sex = sex
|
8526
|
-
@Birthday = birthday
|
8527
|
-
@RequestId = requestid
|
8528
|
-
end
|
8529
|
-
|
8530
|
-
def deserialize(params)
|
8531
|
-
@ID = params['ID']
|
8532
|
-
@Address = params['Address']
|
8533
|
-
@Name = params['Name']
|
8534
|
-
@DateOfIssue = params['DateOfIssue']
|
8535
|
-
@Photo = params['Photo']
|
8536
|
-
@Sex = params['Sex']
|
8537
|
-
@Birthday = params['Birthday']
|
8538
|
-
@RequestId = params['RequestId']
|
8539
|
-
end
|
8540
|
-
end
|
8541
|
-
|
8542
8331
|
# RecognizeMedicalInvoiceOCR请求参数结构体
|
8543
8332
|
class RecognizeMedicalInvoiceOCRRequest < TencentCloud::Common::AbstractModel
|
8544
8333
|
# @param ImageBase64: 图片的Base64 值。
|
@@ -8675,507 +8464,6 @@ module TencentCloud
|
|
8675
8464
|
end
|
8676
8465
|
end
|
8677
8466
|
|
8678
|
-
# RecognizePhilippinesDrivingLicenseOCR请求参数结构体
|
8679
|
-
class RecognizePhilippinesDrivingLicenseOCRRequest < TencentCloud::Common::AbstractModel
|
8680
|
-
# @param ImageBase64: 图片的 Base64 值。
|
8681
|
-
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
8682
|
-
# 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
8683
|
-
# 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
8684
|
-
# @type ImageBase64: String
|
8685
|
-
# @param ImageUrl: 图片的 Url 地址。
|
8686
|
-
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
8687
|
-
# 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
8688
|
-
# 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
8689
|
-
# 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
8690
|
-
# @type ImageUrl: String
|
8691
|
-
# @param ReturnHeadImage: 是否返回人像照片。
|
8692
|
-
# @type ReturnHeadImage: Boolean
|
8693
|
-
|
8694
|
-
attr_accessor :ImageBase64, :ImageUrl, :ReturnHeadImage
|
8695
|
-
|
8696
|
-
def initialize(imagebase64=nil, imageurl=nil, returnheadimage=nil)
|
8697
|
-
@ImageBase64 = imagebase64
|
8698
|
-
@ImageUrl = imageurl
|
8699
|
-
@ReturnHeadImage = returnheadimage
|
8700
|
-
end
|
8701
|
-
|
8702
|
-
def deserialize(params)
|
8703
|
-
@ImageBase64 = params['ImageBase64']
|
8704
|
-
@ImageUrl = params['ImageUrl']
|
8705
|
-
@ReturnHeadImage = params['ReturnHeadImage']
|
8706
|
-
end
|
8707
|
-
end
|
8708
|
-
|
8709
|
-
# RecognizePhilippinesDrivingLicenseOCR返回参数结构体
|
8710
|
-
class RecognizePhilippinesDrivingLicenseOCRResponse < TencentCloud::Common::AbstractModel
|
8711
|
-
# @param HeadPortrait: 人像照片Base64后的结果
|
8712
|
-
# @type HeadPortrait: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
8713
|
-
# @param Name: 姓名
|
8714
|
-
# @type Name: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
8715
|
-
# @param LastName: 姓氏
|
8716
|
-
# @type LastName: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
8717
|
-
# @param FirstName: 首姓名
|
8718
|
-
# @type FirstName: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
8719
|
-
# @param MiddleName: 中间姓名
|
8720
|
-
# @type MiddleName: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
8721
|
-
# @param Nationality: 国籍
|
8722
|
-
# @type Nationality: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
8723
|
-
# @param Sex: 性别
|
8724
|
-
# @type Sex: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
8725
|
-
# @param Address: 地址
|
8726
|
-
# @type Address: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
8727
|
-
# @param LicenseNo: 证号
|
8728
|
-
# @type LicenseNo: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
8729
|
-
# @param ExpiresDate: 有效期
|
8730
|
-
# @type ExpiresDate: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
8731
|
-
# @param AgencyCode: 机构代码
|
8732
|
-
# @type AgencyCode: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
8733
|
-
# @param Birthday: 出生日期
|
8734
|
-
# @type Birthday: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
8735
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
8736
|
-
# @type RequestId: String
|
8737
|
-
|
8738
|
-
attr_accessor :HeadPortrait, :Name, :LastName, :FirstName, :MiddleName, :Nationality, :Sex, :Address, :LicenseNo, :ExpiresDate, :AgencyCode, :Birthday, :RequestId
|
8739
|
-
|
8740
|
-
def initialize(headportrait=nil, name=nil, lastname=nil, firstname=nil, middlename=nil, nationality=nil, sex=nil, address=nil, licenseno=nil, expiresdate=nil, agencycode=nil, birthday=nil, requestid=nil)
|
8741
|
-
@HeadPortrait = headportrait
|
8742
|
-
@Name = name
|
8743
|
-
@LastName = lastname
|
8744
|
-
@FirstName = firstname
|
8745
|
-
@MiddleName = middlename
|
8746
|
-
@Nationality = nationality
|
8747
|
-
@Sex = sex
|
8748
|
-
@Address = address
|
8749
|
-
@LicenseNo = licenseno
|
8750
|
-
@ExpiresDate = expiresdate
|
8751
|
-
@AgencyCode = agencycode
|
8752
|
-
@Birthday = birthday
|
8753
|
-
@RequestId = requestid
|
8754
|
-
end
|
8755
|
-
|
8756
|
-
def deserialize(params)
|
8757
|
-
unless params['HeadPortrait'].nil?
|
8758
|
-
@HeadPortrait = TextDetectionResult.new
|
8759
|
-
@HeadPortrait.deserialize(params['HeadPortrait'])
|
8760
|
-
end
|
8761
|
-
unless params['Name'].nil?
|
8762
|
-
@Name = TextDetectionResult.new
|
8763
|
-
@Name.deserialize(params['Name'])
|
8764
|
-
end
|
8765
|
-
unless params['LastName'].nil?
|
8766
|
-
@LastName = TextDetectionResult.new
|
8767
|
-
@LastName.deserialize(params['LastName'])
|
8768
|
-
end
|
8769
|
-
unless params['FirstName'].nil?
|
8770
|
-
@FirstName = TextDetectionResult.new
|
8771
|
-
@FirstName.deserialize(params['FirstName'])
|
8772
|
-
end
|
8773
|
-
unless params['MiddleName'].nil?
|
8774
|
-
@MiddleName = TextDetectionResult.new
|
8775
|
-
@MiddleName.deserialize(params['MiddleName'])
|
8776
|
-
end
|
8777
|
-
unless params['Nationality'].nil?
|
8778
|
-
@Nationality = TextDetectionResult.new
|
8779
|
-
@Nationality.deserialize(params['Nationality'])
|
8780
|
-
end
|
8781
|
-
unless params['Sex'].nil?
|
8782
|
-
@Sex = TextDetectionResult.new
|
8783
|
-
@Sex.deserialize(params['Sex'])
|
8784
|
-
end
|
8785
|
-
unless params['Address'].nil?
|
8786
|
-
@Address = TextDetectionResult.new
|
8787
|
-
@Address.deserialize(params['Address'])
|
8788
|
-
end
|
8789
|
-
unless params['LicenseNo'].nil?
|
8790
|
-
@LicenseNo = TextDetectionResult.new
|
8791
|
-
@LicenseNo.deserialize(params['LicenseNo'])
|
8792
|
-
end
|
8793
|
-
unless params['ExpiresDate'].nil?
|
8794
|
-
@ExpiresDate = TextDetectionResult.new
|
8795
|
-
@ExpiresDate.deserialize(params['ExpiresDate'])
|
8796
|
-
end
|
8797
|
-
unless params['AgencyCode'].nil?
|
8798
|
-
@AgencyCode = TextDetectionResult.new
|
8799
|
-
@AgencyCode.deserialize(params['AgencyCode'])
|
8800
|
-
end
|
8801
|
-
unless params['Birthday'].nil?
|
8802
|
-
@Birthday = TextDetectionResult.new
|
8803
|
-
@Birthday.deserialize(params['Birthday'])
|
8804
|
-
end
|
8805
|
-
@RequestId = params['RequestId']
|
8806
|
-
end
|
8807
|
-
end
|
8808
|
-
|
8809
|
-
# RecognizePhilippinesSssIDOCR请求参数结构体
|
8810
|
-
class RecognizePhilippinesSssIDOCRRequest < TencentCloud::Common::AbstractModel
|
8811
|
-
# @param ReturnHeadImage: 是否返回人像照片。
|
8812
|
-
# @type ReturnHeadImage: Boolean
|
8813
|
-
# @param ImageBase64: 图片的 Base64 值。
|
8814
|
-
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
8815
|
-
# 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
8816
|
-
# 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
8817
|
-
# @type ImageBase64: String
|
8818
|
-
# @param ImageUrl: 图片的 Url 地址。
|
8819
|
-
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
8820
|
-
# 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
8821
|
-
# 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
8822
|
-
# 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
8823
|
-
# @type ImageUrl: String
|
8824
|
-
|
8825
|
-
attr_accessor :ReturnHeadImage, :ImageBase64, :ImageUrl
|
8826
|
-
|
8827
|
-
def initialize(returnheadimage=nil, imagebase64=nil, imageurl=nil)
|
8828
|
-
@ReturnHeadImage = returnheadimage
|
8829
|
-
@ImageBase64 = imagebase64
|
8830
|
-
@ImageUrl = imageurl
|
8831
|
-
end
|
8832
|
-
|
8833
|
-
def deserialize(params)
|
8834
|
-
@ReturnHeadImage = params['ReturnHeadImage']
|
8835
|
-
@ImageBase64 = params['ImageBase64']
|
8836
|
-
@ImageUrl = params['ImageUrl']
|
8837
|
-
end
|
8838
|
-
end
|
8839
|
-
|
8840
|
-
# RecognizePhilippinesSssIDOCR返回参数结构体
|
8841
|
-
class RecognizePhilippinesSssIDOCRResponse < TencentCloud::Common::AbstractModel
|
8842
|
-
# @param HeadPortrait: 人像照片Base64后的结果
|
8843
|
-
# @type HeadPortrait: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
8844
|
-
# @param LicenseNumber: 编号
|
8845
|
-
# @type LicenseNumber: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
8846
|
-
# @param FullName: 姓名
|
8847
|
-
# @type FullName: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
8848
|
-
# @param Birthday: 生日
|
8849
|
-
# @type Birthday: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
8850
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
8851
|
-
# @type RequestId: String
|
8852
|
-
|
8853
|
-
attr_accessor :HeadPortrait, :LicenseNumber, :FullName, :Birthday, :RequestId
|
8854
|
-
|
8855
|
-
def initialize(headportrait=nil, licensenumber=nil, fullname=nil, birthday=nil, requestid=nil)
|
8856
|
-
@HeadPortrait = headportrait
|
8857
|
-
@LicenseNumber = licensenumber
|
8858
|
-
@FullName = fullname
|
8859
|
-
@Birthday = birthday
|
8860
|
-
@RequestId = requestid
|
8861
|
-
end
|
8862
|
-
|
8863
|
-
def deserialize(params)
|
8864
|
-
unless params['HeadPortrait'].nil?
|
8865
|
-
@HeadPortrait = TextDetectionResult.new
|
8866
|
-
@HeadPortrait.deserialize(params['HeadPortrait'])
|
8867
|
-
end
|
8868
|
-
unless params['LicenseNumber'].nil?
|
8869
|
-
@LicenseNumber = TextDetectionResult.new
|
8870
|
-
@LicenseNumber.deserialize(params['LicenseNumber'])
|
8871
|
-
end
|
8872
|
-
unless params['FullName'].nil?
|
8873
|
-
@FullName = TextDetectionResult.new
|
8874
|
-
@FullName.deserialize(params['FullName'])
|
8875
|
-
end
|
8876
|
-
unless params['Birthday'].nil?
|
8877
|
-
@Birthday = TextDetectionResult.new
|
8878
|
-
@Birthday.deserialize(params['Birthday'])
|
8879
|
-
end
|
8880
|
-
@RequestId = params['RequestId']
|
8881
|
-
end
|
8882
|
-
end
|
8883
|
-
|
8884
|
-
# RecognizePhilippinesTinIDOCR请求参数结构体
|
8885
|
-
class RecognizePhilippinesTinIDOCRRequest < TencentCloud::Common::AbstractModel
|
8886
|
-
# @param ReturnHeadImage: 是否返回人像照片。
|
8887
|
-
# @type ReturnHeadImage: Boolean
|
8888
|
-
# @param ImageBase64: 图片的 Base64 值。
|
8889
|
-
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
8890
|
-
# 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
8891
|
-
# 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
8892
|
-
# @type ImageBase64: String
|
8893
|
-
# @param ImageUrl: 图片的 Url 地址。
|
8894
|
-
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
8895
|
-
# 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
8896
|
-
# 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
8897
|
-
# 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
8898
|
-
# @type ImageUrl: String
|
8899
|
-
|
8900
|
-
attr_accessor :ReturnHeadImage, :ImageBase64, :ImageUrl
|
8901
|
-
|
8902
|
-
def initialize(returnheadimage=nil, imagebase64=nil, imageurl=nil)
|
8903
|
-
@ReturnHeadImage = returnheadimage
|
8904
|
-
@ImageBase64 = imagebase64
|
8905
|
-
@ImageUrl = imageurl
|
8906
|
-
end
|
8907
|
-
|
8908
|
-
def deserialize(params)
|
8909
|
-
@ReturnHeadImage = params['ReturnHeadImage']
|
8910
|
-
@ImageBase64 = params['ImageBase64']
|
8911
|
-
@ImageUrl = params['ImageUrl']
|
8912
|
-
end
|
8913
|
-
end
|
8914
|
-
|
8915
|
-
# RecognizePhilippinesTinIDOCR返回参数结构体
|
8916
|
-
class RecognizePhilippinesTinIDOCRResponse < TencentCloud::Common::AbstractModel
|
8917
|
-
# @param HeadPortrait: 人像照片Base64后的结果
|
8918
|
-
# @type HeadPortrait: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
8919
|
-
# @param LicenseNumber: 编码
|
8920
|
-
# @type LicenseNumber: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
8921
|
-
# @param FullName: 姓名
|
8922
|
-
# @type FullName: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
8923
|
-
# @param Address: 地址
|
8924
|
-
# @type Address: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
8925
|
-
# @param Birthday: 生日
|
8926
|
-
# @type Birthday: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
8927
|
-
# @param IssueDate: 发证日期
|
8928
|
-
# @type IssueDate: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
8929
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
8930
|
-
# @type RequestId: String
|
8931
|
-
|
8932
|
-
attr_accessor :HeadPortrait, :LicenseNumber, :FullName, :Address, :Birthday, :IssueDate, :RequestId
|
8933
|
-
|
8934
|
-
def initialize(headportrait=nil, licensenumber=nil, fullname=nil, address=nil, birthday=nil, issuedate=nil, requestid=nil)
|
8935
|
-
@HeadPortrait = headportrait
|
8936
|
-
@LicenseNumber = licensenumber
|
8937
|
-
@FullName = fullname
|
8938
|
-
@Address = address
|
8939
|
-
@Birthday = birthday
|
8940
|
-
@IssueDate = issuedate
|
8941
|
-
@RequestId = requestid
|
8942
|
-
end
|
8943
|
-
|
8944
|
-
def deserialize(params)
|
8945
|
-
unless params['HeadPortrait'].nil?
|
8946
|
-
@HeadPortrait = TextDetectionResult.new
|
8947
|
-
@HeadPortrait.deserialize(params['HeadPortrait'])
|
8948
|
-
end
|
8949
|
-
unless params['LicenseNumber'].nil?
|
8950
|
-
@LicenseNumber = TextDetectionResult.new
|
8951
|
-
@LicenseNumber.deserialize(params['LicenseNumber'])
|
8952
|
-
end
|
8953
|
-
unless params['FullName'].nil?
|
8954
|
-
@FullName = TextDetectionResult.new
|
8955
|
-
@FullName.deserialize(params['FullName'])
|
8956
|
-
end
|
8957
|
-
unless params['Address'].nil?
|
8958
|
-
@Address = TextDetectionResult.new
|
8959
|
-
@Address.deserialize(params['Address'])
|
8960
|
-
end
|
8961
|
-
unless params['Birthday'].nil?
|
8962
|
-
@Birthday = TextDetectionResult.new
|
8963
|
-
@Birthday.deserialize(params['Birthday'])
|
8964
|
-
end
|
8965
|
-
unless params['IssueDate'].nil?
|
8966
|
-
@IssueDate = TextDetectionResult.new
|
8967
|
-
@IssueDate.deserialize(params['IssueDate'])
|
8968
|
-
end
|
8969
|
-
@RequestId = params['RequestId']
|
8970
|
-
end
|
8971
|
-
end
|
8972
|
-
|
8973
|
-
# RecognizePhilippinesUMIDOCR请求参数结构体
|
8974
|
-
class RecognizePhilippinesUMIDOCRRequest < TencentCloud::Common::AbstractModel
|
8975
|
-
# @param ImageBase64: 图片的 Base64 值。 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
8976
|
-
# @type ImageBase64: String
|
8977
|
-
# @param ImageUrl: 图片的 Url 地址。 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
8978
|
-
# @type ImageUrl: String
|
8979
|
-
# @param ReturnHeadImage: 是否返回人像照片。
|
8980
|
-
# @type ReturnHeadImage: Boolean
|
8981
|
-
|
8982
|
-
attr_accessor :ImageBase64, :ImageUrl, :ReturnHeadImage
|
8983
|
-
|
8984
|
-
def initialize(imagebase64=nil, imageurl=nil, returnheadimage=nil)
|
8985
|
-
@ImageBase64 = imagebase64
|
8986
|
-
@ImageUrl = imageurl
|
8987
|
-
@ReturnHeadImage = returnheadimage
|
8988
|
-
end
|
8989
|
-
|
8990
|
-
def deserialize(params)
|
8991
|
-
@ImageBase64 = params['ImageBase64']
|
8992
|
-
@ImageUrl = params['ImageUrl']
|
8993
|
-
@ReturnHeadImage = params['ReturnHeadImage']
|
8994
|
-
end
|
8995
|
-
end
|
8996
|
-
|
8997
|
-
# RecognizePhilippinesUMIDOCR返回参数结构体
|
8998
|
-
class RecognizePhilippinesUMIDOCRResponse < TencentCloud::Common::AbstractModel
|
8999
|
-
# @param Surname: 姓
|
9000
|
-
# @type Surname: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
9001
|
-
# @param MiddleName: 中间名
|
9002
|
-
# @type MiddleName: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
9003
|
-
# @param GivenName: 名
|
9004
|
-
# @type GivenName: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
9005
|
-
# @param Address: 地址
|
9006
|
-
# @type Address: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
9007
|
-
# @param Birthday: 生日
|
9008
|
-
# @type Birthday: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
9009
|
-
# @param CRN: crn码
|
9010
|
-
# @type CRN: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
9011
|
-
# @param Sex: 性别
|
9012
|
-
# @type Sex: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
9013
|
-
# @param HeadPortrait: 人像照片Base64后的结果
|
9014
|
-
# @type HeadPortrait: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
9015
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9016
|
-
# @type RequestId: String
|
9017
|
-
|
9018
|
-
attr_accessor :Surname, :MiddleName, :GivenName, :Address, :Birthday, :CRN, :Sex, :HeadPortrait, :RequestId
|
9019
|
-
|
9020
|
-
def initialize(surname=nil, middlename=nil, givenname=nil, address=nil, birthday=nil, crn=nil, sex=nil, headportrait=nil, requestid=nil)
|
9021
|
-
@Surname = surname
|
9022
|
-
@MiddleName = middlename
|
9023
|
-
@GivenName = givenname
|
9024
|
-
@Address = address
|
9025
|
-
@Birthday = birthday
|
9026
|
-
@CRN = crn
|
9027
|
-
@Sex = sex
|
9028
|
-
@HeadPortrait = headportrait
|
9029
|
-
@RequestId = requestid
|
9030
|
-
end
|
9031
|
-
|
9032
|
-
def deserialize(params)
|
9033
|
-
unless params['Surname'].nil?
|
9034
|
-
@Surname = TextDetectionResult.new
|
9035
|
-
@Surname.deserialize(params['Surname'])
|
9036
|
-
end
|
9037
|
-
unless params['MiddleName'].nil?
|
9038
|
-
@MiddleName = TextDetectionResult.new
|
9039
|
-
@MiddleName.deserialize(params['MiddleName'])
|
9040
|
-
end
|
9041
|
-
unless params['GivenName'].nil?
|
9042
|
-
@GivenName = TextDetectionResult.new
|
9043
|
-
@GivenName.deserialize(params['GivenName'])
|
9044
|
-
end
|
9045
|
-
unless params['Address'].nil?
|
9046
|
-
@Address = TextDetectionResult.new
|
9047
|
-
@Address.deserialize(params['Address'])
|
9048
|
-
end
|
9049
|
-
unless params['Birthday'].nil?
|
9050
|
-
@Birthday = TextDetectionResult.new
|
9051
|
-
@Birthday.deserialize(params['Birthday'])
|
9052
|
-
end
|
9053
|
-
unless params['CRN'].nil?
|
9054
|
-
@CRN = TextDetectionResult.new
|
9055
|
-
@CRN.deserialize(params['CRN'])
|
9056
|
-
end
|
9057
|
-
unless params['Sex'].nil?
|
9058
|
-
@Sex = TextDetectionResult.new
|
9059
|
-
@Sex.deserialize(params['Sex'])
|
9060
|
-
end
|
9061
|
-
unless params['HeadPortrait'].nil?
|
9062
|
-
@HeadPortrait = TextDetectionResult.new
|
9063
|
-
@HeadPortrait.deserialize(params['HeadPortrait'])
|
9064
|
-
end
|
9065
|
-
@RequestId = params['RequestId']
|
9066
|
-
end
|
9067
|
-
end
|
9068
|
-
|
9069
|
-
# RecognizePhilippinesVoteIDOCR请求参数结构体
|
9070
|
-
class RecognizePhilippinesVoteIDOCRRequest < TencentCloud::Common::AbstractModel
|
9071
|
-
# @param ReturnHeadImage: 是否返回人像照片。
|
9072
|
-
# @type ReturnHeadImage: Boolean
|
9073
|
-
# @param ImageBase64: 图片的 Base64 值。
|
9074
|
-
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
9075
|
-
# 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
9076
|
-
# 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
9077
|
-
# @type ImageBase64: String
|
9078
|
-
# @param ImageUrl: 图片的 Url 地址。
|
9079
|
-
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
9080
|
-
# 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
9081
|
-
# 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
9082
|
-
# 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
9083
|
-
# @type ImageUrl: String
|
9084
|
-
|
9085
|
-
attr_accessor :ReturnHeadImage, :ImageBase64, :ImageUrl
|
9086
|
-
|
9087
|
-
def initialize(returnheadimage=nil, imagebase64=nil, imageurl=nil)
|
9088
|
-
@ReturnHeadImage = returnheadimage
|
9089
|
-
@ImageBase64 = imagebase64
|
9090
|
-
@ImageUrl = imageurl
|
9091
|
-
end
|
9092
|
-
|
9093
|
-
def deserialize(params)
|
9094
|
-
@ReturnHeadImage = params['ReturnHeadImage']
|
9095
|
-
@ImageBase64 = params['ImageBase64']
|
9096
|
-
@ImageUrl = params['ImageUrl']
|
9097
|
-
end
|
9098
|
-
end
|
9099
|
-
|
9100
|
-
# RecognizePhilippinesVoteIDOCR返回参数结构体
|
9101
|
-
class RecognizePhilippinesVoteIDOCRResponse < TencentCloud::Common::AbstractModel
|
9102
|
-
# @param HeadPortrait: 人像照片Base64后的结果
|
9103
|
-
# @type HeadPortrait: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
9104
|
-
# @param VIN: 菲律宾VoteID的VIN
|
9105
|
-
# @type VIN: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
9106
|
-
# @param FirstName: 姓名
|
9107
|
-
# @type FirstName: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
9108
|
-
# @param LastName: 姓氏
|
9109
|
-
# @type LastName: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
9110
|
-
# @param Birthday: 出生日期
|
9111
|
-
# @type Birthday: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
9112
|
-
# @param CivilStatus: 婚姻状况
|
9113
|
-
# @type CivilStatus: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
9114
|
-
# @param Citizenship: 国籍
|
9115
|
-
# @type Citizenship: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
9116
|
-
# @param Address: 地址
|
9117
|
-
# @type Address: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
9118
|
-
# @param PrecinctNo: 地区
|
9119
|
-
# @type PrecinctNo: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
9120
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9121
|
-
# @type RequestId: String
|
9122
|
-
|
9123
|
-
attr_accessor :HeadPortrait, :VIN, :FirstName, :LastName, :Birthday, :CivilStatus, :Citizenship, :Address, :PrecinctNo, :RequestId
|
9124
|
-
|
9125
|
-
def initialize(headportrait=nil, vin=nil, firstname=nil, lastname=nil, birthday=nil, civilstatus=nil, citizenship=nil, address=nil, precinctno=nil, requestid=nil)
|
9126
|
-
@HeadPortrait = headportrait
|
9127
|
-
@VIN = vin
|
9128
|
-
@FirstName = firstname
|
9129
|
-
@LastName = lastname
|
9130
|
-
@Birthday = birthday
|
9131
|
-
@CivilStatus = civilstatus
|
9132
|
-
@Citizenship = citizenship
|
9133
|
-
@Address = address
|
9134
|
-
@PrecinctNo = precinctno
|
9135
|
-
@RequestId = requestid
|
9136
|
-
end
|
9137
|
-
|
9138
|
-
def deserialize(params)
|
9139
|
-
unless params['HeadPortrait'].nil?
|
9140
|
-
@HeadPortrait = TextDetectionResult.new
|
9141
|
-
@HeadPortrait.deserialize(params['HeadPortrait'])
|
9142
|
-
end
|
9143
|
-
unless params['VIN'].nil?
|
9144
|
-
@VIN = TextDetectionResult.new
|
9145
|
-
@VIN.deserialize(params['VIN'])
|
9146
|
-
end
|
9147
|
-
unless params['FirstName'].nil?
|
9148
|
-
@FirstName = TextDetectionResult.new
|
9149
|
-
@FirstName.deserialize(params['FirstName'])
|
9150
|
-
end
|
9151
|
-
unless params['LastName'].nil?
|
9152
|
-
@LastName = TextDetectionResult.new
|
9153
|
-
@LastName.deserialize(params['LastName'])
|
9154
|
-
end
|
9155
|
-
unless params['Birthday'].nil?
|
9156
|
-
@Birthday = TextDetectionResult.new
|
9157
|
-
@Birthday.deserialize(params['Birthday'])
|
9158
|
-
end
|
9159
|
-
unless params['CivilStatus'].nil?
|
9160
|
-
@CivilStatus = TextDetectionResult.new
|
9161
|
-
@CivilStatus.deserialize(params['CivilStatus'])
|
9162
|
-
end
|
9163
|
-
unless params['Citizenship'].nil?
|
9164
|
-
@Citizenship = TextDetectionResult.new
|
9165
|
-
@Citizenship.deserialize(params['Citizenship'])
|
9166
|
-
end
|
9167
|
-
unless params['Address'].nil?
|
9168
|
-
@Address = TextDetectionResult.new
|
9169
|
-
@Address.deserialize(params['Address'])
|
9170
|
-
end
|
9171
|
-
unless params['PrecinctNo'].nil?
|
9172
|
-
@PrecinctNo = TextDetectionResult.new
|
9173
|
-
@PrecinctNo.deserialize(params['PrecinctNo'])
|
9174
|
-
end
|
9175
|
-
@RequestId = params['RequestId']
|
9176
|
-
end
|
9177
|
-
end
|
9178
|
-
|
9179
8467
|
# RecognizeStoreName请求参数结构体
|
9180
8468
|
class RecognizeStoreNameRequest < TencentCloud::Common::AbstractModel
|
9181
8469
|
# @param ImageBase64: 图片的 Base64 值。
|
@@ -11906,33 +11194,6 @@ module TencentCloud
|
|
11906
11194
|
end
|
11907
11195
|
end
|
11908
11196
|
|
11909
|
-
# 识别结果
|
11910
|
-
class TextDetectionResult < TencentCloud::Common::AbstractModel
|
11911
|
-
# @param Value: 识别出的文本行内容
|
11912
|
-
# @type Value: String
|
11913
|
-
# @param Polygon: 坐标,以四个顶点坐标表示
|
11914
|
-
# @type Polygon: Array
|
11915
|
-
|
11916
|
-
attr_accessor :Value, :Polygon
|
11917
|
-
|
11918
|
-
def initialize(value=nil, polygon=nil)
|
11919
|
-
@Value = value
|
11920
|
-
@Polygon = polygon
|
11921
|
-
end
|
11922
|
-
|
11923
|
-
def deserialize(params)
|
11924
|
-
@Value = params['Value']
|
11925
|
-
unless params['Polygon'].nil?
|
11926
|
-
@Polygon = []
|
11927
|
-
params['Polygon'].each do |i|
|
11928
|
-
coord_tmp = Coord.new
|
11929
|
-
coord_tmp.deserialize(i)
|
11930
|
-
@Polygon << coord_tmp
|
11931
|
-
end
|
11932
|
-
end
|
11933
|
-
end
|
11934
|
-
end
|
11935
|
-
|
11936
11197
|
# 数学试题识别结果
|
11937
11198
|
class TextEduPaper < TencentCloud::Common::AbstractModel
|
11938
11199
|
# @param Item: 识别出的字段名称(关键字)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-ocr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.951
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|