tencentcloud-sdk-ocr 1.0.244 → 1.0.248
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20181119/client.rb +25 -1
- data/lib/v20181119/models.rb +61 -2
- 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: 92727bc5b5004a08dc5d0f52028a43221daf5cef
|
4
|
+
data.tar.gz: 120841e35b20cfcc79e65832ec211c2b3e706dff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d80d7ad2b6b709c7a857e1f658082a41716f602f846e010d4a6d1127fbbae1c4ea6ab12d34f87d98206b9813c73c99eb7eb616de1d454330a2103d15abb9a603
|
7
|
+
data.tar.gz: 4386ef694d5539101eef68f2c8e646eaa89e88655c00086d7383b487e75e23cf75ba4fa7e8dd17d2a8254c928aa214a04a9e725307e06d6ba7a03c6e39d11596
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.248
|
data/lib/v20181119/client.rb
CHANGED
@@ -1002,7 +1002,7 @@ module TencentCloud
|
|
1002
1002
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1003
1003
|
end
|
1004
1004
|
|
1005
|
-
#
|
1005
|
+
# 本接口支持对中国大陆机动车车牌的自动定位和识别,返回地域编号和车牌号码与车牌颜色信息。
|
1006
1006
|
|
1007
1007
|
# @param request: Request instance for LicensePlateOCR.
|
1008
1008
|
# @type request: :class:`Tencentcloud::ocr::V20181119::LicensePlateOCRRequest`
|
@@ -1342,6 +1342,30 @@ module TencentCloud
|
|
1342
1342
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1343
1343
|
end
|
1344
1344
|
|
1345
|
+
# 本接口支持粤康码识别,包括姓名、更新时间、健康码颜色,三个字段的识别结果输出。
|
1346
|
+
|
1347
|
+
# @param request: Request instance for RecognizeHealthCodeOCR.
|
1348
|
+
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeHealthCodeOCRRequest`
|
1349
|
+
# @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizeHealthCodeOCRResponse`
|
1350
|
+
def RecognizeHealthCodeOCR(request)
|
1351
|
+
body = send_request('RecognizeHealthCodeOCR', request.serialize)
|
1352
|
+
response = JSON.parse(body)
|
1353
|
+
if response['Response'].key?('Error') == false
|
1354
|
+
model = RecognizeHealthCodeOCRResponse.new
|
1355
|
+
model.deserialize(response['Response'])
|
1356
|
+
model
|
1357
|
+
else
|
1358
|
+
code = response['Response']['Error']['Code']
|
1359
|
+
message = response['Response']['Error']['Message']
|
1360
|
+
reqid = response['Response']['RequestId']
|
1361
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1362
|
+
end
|
1363
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1364
|
+
raise e
|
1365
|
+
rescue StandardError => e
|
1366
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1367
|
+
end
|
1368
|
+
|
1345
1369
|
# 本接口支持网约车行程单关键字段的识别,包括行程起止日期、上车时间、起点、终点、里程、金额等字段。
|
1346
1370
|
|
1347
1371
|
# @param request: Request instance for RecognizeOnlineTaxiItineraryOCR.
|
data/lib/v20181119/models.rb
CHANGED
@@ -2871,15 +2871,18 @@ module TencentCloud
|
|
2871
2871
|
# @type Confidence: Integer
|
2872
2872
|
# @param Rect: 文本行在原图片中的像素坐标框。
|
2873
2873
|
# @type Rect: :class:`Tencentcloud::Ocr.v20181119.models.Rect`
|
2874
|
+
# @param Color: 识别出的车牌颜色,目前支持颜色包括 “白”、“黑”、“蓝”、“绿“、“黄”、“黄绿”、“临牌”。
|
2875
|
+
# @type Color: String
|
2874
2876
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2875
2877
|
# @type RequestId: String
|
2876
2878
|
|
2877
|
-
attr_accessor :Number, :Confidence, :Rect, :RequestId
|
2879
|
+
attr_accessor :Number, :Confidence, :Rect, :Color, :RequestId
|
2878
2880
|
|
2879
|
-
def initialize(number=nil, confidence=nil, rect=nil, requestid=nil)
|
2881
|
+
def initialize(number=nil, confidence=nil, rect=nil, color=nil, requestid=nil)
|
2880
2882
|
@Number = number
|
2881
2883
|
@Confidence = confidence
|
2882
2884
|
@Rect = rect
|
2885
|
+
@Color = color
|
2883
2886
|
@RequestId = requestid
|
2884
2887
|
end
|
2885
2888
|
|
@@ -2890,6 +2893,7 @@ module TencentCloud
|
|
2890
2893
|
@Rect = Rect.new
|
2891
2894
|
@Rect.deserialize(params['Rect'])
|
2892
2895
|
end
|
2896
|
+
@Color = params['Color']
|
2893
2897
|
@RequestId = params['RequestId']
|
2894
2898
|
end
|
2895
2899
|
end
|
@@ -4247,6 +4251,61 @@ module TencentCloud
|
|
4247
4251
|
end
|
4248
4252
|
end
|
4249
4253
|
|
4254
|
+
# RecognizeHealthCodeOCR请求参数结构体
|
4255
|
+
class RecognizeHealthCodeOCRRequest < TencentCloud::Common::AbstractModel
|
4256
|
+
# @param ImageBase64: 图片的 Base64 值。
|
4257
|
+
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4258
|
+
# 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
4259
|
+
# 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
4260
|
+
# @type ImageBase64: String
|
4261
|
+
# @param ImageUrl: 图片的 Url 地址。
|
4262
|
+
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4263
|
+
# 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
4264
|
+
# 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
4265
|
+
# 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
4266
|
+
# @type ImageUrl: String
|
4267
|
+
|
4268
|
+
attr_accessor :ImageBase64, :ImageUrl
|
4269
|
+
|
4270
|
+
def initialize(imagebase64=nil, imageurl=nil)
|
4271
|
+
@ImageBase64 = imagebase64
|
4272
|
+
@ImageUrl = imageurl
|
4273
|
+
end
|
4274
|
+
|
4275
|
+
def deserialize(params)
|
4276
|
+
@ImageBase64 = params['ImageBase64']
|
4277
|
+
@ImageUrl = params['ImageUrl']
|
4278
|
+
end
|
4279
|
+
end
|
4280
|
+
|
4281
|
+
# RecognizeHealthCodeOCR返回参数结构体
|
4282
|
+
class RecognizeHealthCodeOCRResponse < TencentCloud::Common::AbstractModel
|
4283
|
+
# @param Name: 持码人姓名
|
4284
|
+
# @type Name: String
|
4285
|
+
# @param Time: 健康码更新时间,格式为:XXXX-XX-XX XX:XX:XX
|
4286
|
+
# @type Time: String
|
4287
|
+
# @param Color: 健康码颜色:绿色、黄色、红色
|
4288
|
+
# @type Color: String
|
4289
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4290
|
+
# @type RequestId: String
|
4291
|
+
|
4292
|
+
attr_accessor :Name, :Time, :Color, :RequestId
|
4293
|
+
|
4294
|
+
def initialize(name=nil, time=nil, color=nil, requestid=nil)
|
4295
|
+
@Name = name
|
4296
|
+
@Time = time
|
4297
|
+
@Color = color
|
4298
|
+
@RequestId = requestid
|
4299
|
+
end
|
4300
|
+
|
4301
|
+
def deserialize(params)
|
4302
|
+
@Name = params['Name']
|
4303
|
+
@Time = params['Time']
|
4304
|
+
@Color = params['Color']
|
4305
|
+
@RequestId = params['RequestId']
|
4306
|
+
end
|
4307
|
+
end
|
4308
|
+
|
4250
4309
|
# RecognizeOnlineTaxiItineraryOCR请求参数结构体
|
4251
4310
|
class RecognizeOnlineTaxiItineraryOCRRequest < TencentCloud::Common::AbstractModel
|
4252
4311
|
# @param ImageBase64: 图片的 Base64 值。
|
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: 1.0.
|
4
|
+
version: 1.0.248
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|