tencentcloud-sdk-ocr 1.0.354 → 1.0.357
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 +4 -1
- data/lib/v20181119/models.rb +44 -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: 1f3ff726b03b5ee5adbf57545270b76190fc9b3c
|
4
|
+
data.tar.gz: 7e210b69f7e2b130b4119249bfffd7a7c70bccc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b0dd9eacc282bc2e6cf8cdf4c860b86782db941c289a8ab2a99b91ab868a74c78b8bf4a5a4f4e1f81dabc59acf406cee622457063a5ae28c17e51a0b54a0be8
|
7
|
+
data.tar.gz: 523402430969de5a162e9af2dc7d9a6d60049512e2b926031d745775cfdd30933f30e603597fad26752cd21118bf40b67654b572b9a0c68b7773a28efe90b697
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.357
|
data/lib/v20181119/client.rb
CHANGED
@@ -799,7 +799,6 @@ module TencentCloud
|
|
799
799
|
end
|
800
800
|
|
801
801
|
# 本接口支持中国香港身份证人像面中关键字段的识别,包括中文姓名、英文姓名、姓名电码、出生日期、性别、证件符号、首次签发日期、最近领用日期、身份证号、是否是永久性居民身份证;具备防伪识别、人像照片裁剪等扩展功能。
|
802
|
-
# 本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
|
803
802
|
|
804
803
|
# @param request: Request instance for HKIDCardOCR.
|
805
804
|
# @type request: :class:`Tencentcloud::ocr::V20181119::HKIDCardOCRRequest`
|
@@ -990,6 +989,8 @@ module TencentCloud
|
|
990
989
|
|
991
990
|
# 本接口支持对中国大陆机动车车牌的自动定位和识别,返回地域编号和车牌号码与车牌颜色信息。
|
992
991
|
|
992
|
+
# 默认接口请求频率限制:10次/秒。
|
993
|
+
|
993
994
|
# @param request: Request instance for LicensePlateOCR.
|
994
995
|
# @type request: :class:`Tencentcloud::ocr::V20181119::LicensePlateOCRRequest`
|
995
996
|
# @rtype: :class:`Tencentcloud::ocr::V20181119::LicensePlateOCRResponse`
|
@@ -2067,6 +2068,8 @@ module TencentCloud
|
|
2067
2068
|
|
2068
2069
|
# 本接口支持市面上主流版式电子运单的识别,包括收件人和寄件人的姓名、电话、地址以及运单号等字段,精度均处于业界领先水平,识别准确率达到99%以上。
|
2069
2070
|
|
2071
|
+
# 默认接口请求频率限制:10次/秒。
|
2072
|
+
|
2070
2073
|
# @param request: Request instance for WaybillOCR.
|
2071
2074
|
# @type request: :class:`Tencentcloud::ocr::V20181119::WaybillOCRRequest`
|
2072
2075
|
# @rtype: :class:`Tencentcloud::ocr::V20181119::WaybillOCRResponse`
|
data/lib/v20181119/models.rb
CHANGED
@@ -2838,6 +2838,37 @@ module TencentCloud
|
|
2838
2838
|
end
|
2839
2839
|
end
|
2840
2840
|
|
2841
|
+
# 全部车牌信息
|
2842
|
+
class LicensePlateInfo < TencentCloud::Common::AbstractModel
|
2843
|
+
# @param Number: 识别出的车牌号码。
|
2844
|
+
# @type Number: String
|
2845
|
+
# @param Confidence: 置信度,0 - 100 之间。
|
2846
|
+
# @type Confidence: Integer
|
2847
|
+
# @param Rect: 文本行在原图片中的像素坐标框。
|
2848
|
+
# @type Rect: :class:`Tencentcloud::Ocr.v20181119.models.Rect`
|
2849
|
+
# @param Color: 识别出的车牌颜色,目前支持颜色包括 “白”、“黑”、“蓝”、“绿“、“黄”、“黄绿”、“临牌”。
|
2850
|
+
# @type Color: String
|
2851
|
+
|
2852
|
+
attr_accessor :Number, :Confidence, :Rect, :Color
|
2853
|
+
|
2854
|
+
def initialize(number=nil, confidence=nil, rect=nil, color=nil)
|
2855
|
+
@Number = number
|
2856
|
+
@Confidence = confidence
|
2857
|
+
@Rect = rect
|
2858
|
+
@Color = color
|
2859
|
+
end
|
2860
|
+
|
2861
|
+
def deserialize(params)
|
2862
|
+
@Number = params['Number']
|
2863
|
+
@Confidence = params['Confidence']
|
2864
|
+
unless params['Rect'].nil?
|
2865
|
+
@Rect = Rect.new
|
2866
|
+
@Rect.deserialize(params['Rect'])
|
2867
|
+
end
|
2868
|
+
@Color = params['Color']
|
2869
|
+
end
|
2870
|
+
end
|
2871
|
+
|
2841
2872
|
# LicensePlateOCR请求参数结构体
|
2842
2873
|
class LicensePlateOCRRequest < TencentCloud::Common::AbstractModel
|
2843
2874
|
# @param ImageBase64: 图片的 Base64 值。
|
@@ -2875,16 +2906,19 @@ module TencentCloud
|
|
2875
2906
|
# @type Rect: :class:`Tencentcloud::Ocr.v20181119.models.Rect`
|
2876
2907
|
# @param Color: 识别出的车牌颜色,目前支持颜色包括 “白”、“黑”、“蓝”、“绿“、“黄”、“黄绿”、“临牌”。
|
2877
2908
|
# @type Color: String
|
2909
|
+
# @param LicensePlateInfos: 全部车牌信息。
|
2910
|
+
# @type LicensePlateInfos: Array
|
2878
2911
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2879
2912
|
# @type RequestId: String
|
2880
2913
|
|
2881
|
-
attr_accessor :Number, :Confidence, :Rect, :Color, :RequestId
|
2914
|
+
attr_accessor :Number, :Confidence, :Rect, :Color, :LicensePlateInfos, :RequestId
|
2882
2915
|
|
2883
|
-
def initialize(number=nil, confidence=nil, rect=nil, color=nil, requestid=nil)
|
2916
|
+
def initialize(number=nil, confidence=nil, rect=nil, color=nil, licenseplateinfos=nil, requestid=nil)
|
2884
2917
|
@Number = number
|
2885
2918
|
@Confidence = confidence
|
2886
2919
|
@Rect = rect
|
2887
2920
|
@Color = color
|
2921
|
+
@LicensePlateInfos = licenseplateinfos
|
2888
2922
|
@RequestId = requestid
|
2889
2923
|
end
|
2890
2924
|
|
@@ -2896,6 +2930,14 @@ module TencentCloud
|
|
2896
2930
|
@Rect.deserialize(params['Rect'])
|
2897
2931
|
end
|
2898
2932
|
@Color = params['Color']
|
2933
|
+
unless params['LicensePlateInfos'].nil?
|
2934
|
+
@LicensePlateInfos = []
|
2935
|
+
params['LicensePlateInfos'].each do |i|
|
2936
|
+
licenseplateinfo_tmp = LicensePlateInfo.new
|
2937
|
+
licenseplateinfo_tmp.deserialize(i)
|
2938
|
+
@LicensePlateInfos << licenseplateinfo_tmp
|
2939
|
+
end
|
2940
|
+
end
|
2899
2941
|
@RequestId = params['RequestId']
|
2900
2942
|
end
|
2901
2943
|
end
|
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.357
|
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-07-
|
11
|
+
date: 2022-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|