@huaweicloud/huaweicloud-sdk-ocr 3.1.4 → 3.1.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huaweicloud/huaweicloud-sdk-ocr",
3
- "version": "3.1.4",
3
+ "version": "3.1.6",
4
4
  "description": "Huaweicloud SDK for ocr",
5
5
  "main": "huaweicloud-sdk-ocr.js",
6
6
  "typings": "huaweicloud-sdk-ocr.d.ts",
@@ -14,6 +14,6 @@
14
14
  "author": "HuaweiCloud_SDK",
15
15
  "license": "Apache-2.0",
16
16
  "dependencies": {
17
- "@huaweicloud/huaweicloud-sdk-core": "^3.1.4"
17
+ "@huaweicloud/huaweicloud-sdk-core": "^3.1.6"
18
18
  }
19
19
  }
package/v1/OcrClient.d.ts CHANGED
@@ -262,7 +262,7 @@ export declare class OcrClient {
262
262
  */
263
263
  recognizeHandwriting(recognizeHandwritingRequest?: RecognizeHandwritingRequest): Promise<RecognizeHandwritingResponse>;
264
264
  /**
265
- * 识别防疫健康码中的文字信息,并将识别的结构化结果返回给用户。
265
+ * 支持对全国各地区不同版式的防疫健康码、核酸检测记录、行程卡中的14个关键字段进行结构化识别;支持识别4种健康码颜色,包括绿码、黄码、红码、灰码;支持返回各个关键字段的置信度,以便提高人工校验效率。
266
266
  *
267
267
  * 详细说明请参考华为云API Explorer。
268
268
  * Please refer to Huawei cloud API Explorer for details.
@@ -877,7 +877,7 @@ export declare const ParamCreater: () => {
877
877
  data: {};
878
878
  };
879
879
  /**
880
- * 识别防疫健康码中的文字信息,并将识别的结构化结果返回给用户。
880
+ * 支持对全国各地区不同版式的防疫健康码、核酸检测记录、行程卡中的14个关键字段进行结构化识别;支持识别4种健康码颜色,包括绿码、黄码、红码、灰码;支持返回各个关键字段的置信度,以便提高人工校验效率。
881
881
  *
882
882
  * 详细说明请参考华为云API Explorer。
883
883
  * Please refer to Huawei cloud API Explorer for details.
package/v1/OcrClient.js CHANGED
@@ -309,7 +309,7 @@ var OcrClient = /** @class */ (function () {
309
309
  return this.hcClient.sendRequest(options);
310
310
  };
311
311
  /**
312
- * 识别防疫健康码中的文字信息,并将识别的结构化结果返回给用户。
312
+ * 支持对全国各地区不同版式的防疫健康码、核酸检测记录、行程卡中的14个关键字段进行结构化识别;支持识别4种健康码颜色,包括绿码、黄码、红码、灰码;支持返回各个关键字段的置信度,以便提高人工校验效率。
313
313
  *
314
314
  * 详细说明请参考华为云API Explorer。
315
315
  * Please refer to Huawei cloud API Explorer for details.
@@ -1300,7 +1300,7 @@ var ParamCreater = function () {
1300
1300
  return options;
1301
1301
  },
1302
1302
  /**
1303
- * 识别防疫健康码中的文字信息,并将识别的结构化结果返回给用户。
1303
+ * 支持对全国各地区不同版式的防疫健康码、核酸检测记录、行程卡中的14个关键字段进行结构化识别;支持识别4种健康码颜色,包括绿码、黄码、红码、灰码;支持返回各个关键字段的置信度,以便提高人工校验效率。
1304
1304
  *
1305
1305
  * 详细说明请参考华为云API Explorer。
1306
1306
  * Please refer to Huawei cloud API Explorer for details.
@@ -1,15 +1,53 @@
1
1
  import { HealthCodeWordsBlockList } from './HealthCodeWordsBlockList';
2
2
  export declare class HealthCodeResult {
3
+ type: string;
3
4
  name: string;
5
+ private 'idcard_number';
6
+ private 'phone_number';
7
+ province: string;
8
+ city: string;
4
9
  time: string;
5
10
  color: string;
11
+ private 'vaccination_status';
12
+ private 'pcr_test_result';
13
+ private 'pcr_test_organization';
14
+ private 'pcr_test_time';
15
+ private 'pcr_sampling_time';
16
+ private 'reached_city';
6
17
  confidence: object;
7
18
  private 'words_block_count';
8
19
  private 'words_block_list';
9
- constructor(name?: any, time?: any, color?: any, confidence?: any, wordsBlockCount?: any, wordsBlockList?: any);
20
+ constructor(type?: any, name?: any, idcardNumber?: any, phoneNumber?: any, province?: any, city?: any, time?: any, color?: any, vaccinationStatus?: any, pcrTestResult?: any, pcrTestOrganization?: any, pcrTestTime?: any, pcrSamplingTime?: any, reachedCity?: any, confidence?: any, wordsBlockCount?: any, wordsBlockList?: any);
21
+ withType(type: string): HealthCodeResult;
10
22
  withName(name: string): HealthCodeResult;
23
+ withIdcardNumber(idcardNumber: string): HealthCodeResult;
24
+ set idcardNumber(idcardNumber: string | undefined);
25
+ get idcardNumber(): string | undefined;
26
+ withPhoneNumber(phoneNumber: string): HealthCodeResult;
27
+ set phoneNumber(phoneNumber: string | undefined);
28
+ get phoneNumber(): string | undefined;
29
+ withProvince(province: string): HealthCodeResult;
30
+ withCity(city: string): HealthCodeResult;
11
31
  withTime(time: string): HealthCodeResult;
12
32
  withColor(color: string): HealthCodeResult;
33
+ withVaccinationStatus(vaccinationStatus: string): HealthCodeResult;
34
+ set vaccinationStatus(vaccinationStatus: string | undefined);
35
+ get vaccinationStatus(): string | undefined;
36
+ withPcrTestResult(pcrTestResult: string): HealthCodeResult;
37
+ set pcrTestResult(pcrTestResult: string | undefined);
38
+ get pcrTestResult(): string | undefined;
39
+ withPcrTestOrganization(pcrTestOrganization: string): HealthCodeResult;
40
+ set pcrTestOrganization(pcrTestOrganization: string | undefined);
41
+ get pcrTestOrganization(): string | undefined;
42
+ withPcrTestTime(pcrTestTime: string): HealthCodeResult;
43
+ set pcrTestTime(pcrTestTime: string | undefined);
44
+ get pcrTestTime(): string | undefined;
45
+ withPcrSamplingTime(pcrSamplingTime: string): HealthCodeResult;
46
+ set pcrSamplingTime(pcrSamplingTime: string | undefined);
47
+ get pcrSamplingTime(): string | undefined;
48
+ withReachedCity(reachedCity: Array<string>): HealthCodeResult;
49
+ set reachedCity(reachedCity: Array<string> | undefined);
50
+ get reachedCity(): Array<string> | undefined;
13
51
  withConfidence(confidence: object): HealthCodeResult;
14
52
  withWordsBlockCount(wordsBlockCount: number): HealthCodeResult;
15
53
  set wordsBlockCount(wordsBlockCount: number | undefined);
@@ -2,18 +2,69 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.HealthCodeResult = void 0;
4
4
  var HealthCodeResult = /** @class */ (function () {
5
- function HealthCodeResult(name, time, color, confidence, wordsBlockCount, wordsBlockList) {
5
+ function HealthCodeResult(type, name, idcardNumber, phoneNumber, province, city, time, color, vaccinationStatus, pcrTestResult, pcrTestOrganization, pcrTestTime, pcrSamplingTime, reachedCity, confidence, wordsBlockCount, wordsBlockList) {
6
+ this['type'] = type;
6
7
  this['name'] = name;
8
+ this['idcard_number'] = idcardNumber;
9
+ this['phone_number'] = phoneNumber;
10
+ this['province'] = province;
11
+ this['city'] = city;
7
12
  this['time'] = time;
8
13
  this['color'] = color;
14
+ this['vaccination_status'] = vaccinationStatus;
15
+ this['pcr_test_result'] = pcrTestResult;
16
+ this['pcr_test_organization'] = pcrTestOrganization;
17
+ this['pcr_test_time'] = pcrTestTime;
18
+ this['pcr_sampling_time'] = pcrSamplingTime;
19
+ this['reached_city'] = reachedCity;
9
20
  this['confidence'] = confidence;
10
21
  this['words_block_count'] = wordsBlockCount;
11
22
  this['words_block_list'] = wordsBlockList;
12
23
  }
24
+ HealthCodeResult.prototype.withType = function (type) {
25
+ this['type'] = type;
26
+ return this;
27
+ };
13
28
  HealthCodeResult.prototype.withName = function (name) {
14
29
  this['name'] = name;
15
30
  return this;
16
31
  };
32
+ HealthCodeResult.prototype.withIdcardNumber = function (idcardNumber) {
33
+ this['idcard_number'] = idcardNumber;
34
+ return this;
35
+ };
36
+ Object.defineProperty(HealthCodeResult.prototype, "idcardNumber", {
37
+ get: function () {
38
+ return this['idcard_number'];
39
+ },
40
+ set: function (idcardNumber) {
41
+ this['idcard_number'] = idcardNumber;
42
+ },
43
+ enumerable: false,
44
+ configurable: true
45
+ });
46
+ HealthCodeResult.prototype.withPhoneNumber = function (phoneNumber) {
47
+ this['phone_number'] = phoneNumber;
48
+ return this;
49
+ };
50
+ Object.defineProperty(HealthCodeResult.prototype, "phoneNumber", {
51
+ get: function () {
52
+ return this['phone_number'];
53
+ },
54
+ set: function (phoneNumber) {
55
+ this['phone_number'] = phoneNumber;
56
+ },
57
+ enumerable: false,
58
+ configurable: true
59
+ });
60
+ HealthCodeResult.prototype.withProvince = function (province) {
61
+ this['province'] = province;
62
+ return this;
63
+ };
64
+ HealthCodeResult.prototype.withCity = function (city) {
65
+ this['city'] = city;
66
+ return this;
67
+ };
17
68
  HealthCodeResult.prototype.withTime = function (time) {
18
69
  this['time'] = time;
19
70
  return this;
@@ -22,6 +73,90 @@ var HealthCodeResult = /** @class */ (function () {
22
73
  this['color'] = color;
23
74
  return this;
24
75
  };
76
+ HealthCodeResult.prototype.withVaccinationStatus = function (vaccinationStatus) {
77
+ this['vaccination_status'] = vaccinationStatus;
78
+ return this;
79
+ };
80
+ Object.defineProperty(HealthCodeResult.prototype, "vaccinationStatus", {
81
+ get: function () {
82
+ return this['vaccination_status'];
83
+ },
84
+ set: function (vaccinationStatus) {
85
+ this['vaccination_status'] = vaccinationStatus;
86
+ },
87
+ enumerable: false,
88
+ configurable: true
89
+ });
90
+ HealthCodeResult.prototype.withPcrTestResult = function (pcrTestResult) {
91
+ this['pcr_test_result'] = pcrTestResult;
92
+ return this;
93
+ };
94
+ Object.defineProperty(HealthCodeResult.prototype, "pcrTestResult", {
95
+ get: function () {
96
+ return this['pcr_test_result'];
97
+ },
98
+ set: function (pcrTestResult) {
99
+ this['pcr_test_result'] = pcrTestResult;
100
+ },
101
+ enumerable: false,
102
+ configurable: true
103
+ });
104
+ HealthCodeResult.prototype.withPcrTestOrganization = function (pcrTestOrganization) {
105
+ this['pcr_test_organization'] = pcrTestOrganization;
106
+ return this;
107
+ };
108
+ Object.defineProperty(HealthCodeResult.prototype, "pcrTestOrganization", {
109
+ get: function () {
110
+ return this['pcr_test_organization'];
111
+ },
112
+ set: function (pcrTestOrganization) {
113
+ this['pcr_test_organization'] = pcrTestOrganization;
114
+ },
115
+ enumerable: false,
116
+ configurable: true
117
+ });
118
+ HealthCodeResult.prototype.withPcrTestTime = function (pcrTestTime) {
119
+ this['pcr_test_time'] = pcrTestTime;
120
+ return this;
121
+ };
122
+ Object.defineProperty(HealthCodeResult.prototype, "pcrTestTime", {
123
+ get: function () {
124
+ return this['pcr_test_time'];
125
+ },
126
+ set: function (pcrTestTime) {
127
+ this['pcr_test_time'] = pcrTestTime;
128
+ },
129
+ enumerable: false,
130
+ configurable: true
131
+ });
132
+ HealthCodeResult.prototype.withPcrSamplingTime = function (pcrSamplingTime) {
133
+ this['pcr_sampling_time'] = pcrSamplingTime;
134
+ return this;
135
+ };
136
+ Object.defineProperty(HealthCodeResult.prototype, "pcrSamplingTime", {
137
+ get: function () {
138
+ return this['pcr_sampling_time'];
139
+ },
140
+ set: function (pcrSamplingTime) {
141
+ this['pcr_sampling_time'] = pcrSamplingTime;
142
+ },
143
+ enumerable: false,
144
+ configurable: true
145
+ });
146
+ HealthCodeResult.prototype.withReachedCity = function (reachedCity) {
147
+ this['reached_city'] = reachedCity;
148
+ return this;
149
+ };
150
+ Object.defineProperty(HealthCodeResult.prototype, "reachedCity", {
151
+ get: function () {
152
+ return this['reached_city'];
153
+ },
154
+ set: function (reachedCity) {
155
+ this['reached_city'] = reachedCity;
156
+ },
157
+ enumerable: false,
158
+ configurable: true
159
+ });
25
160
  HealthCodeResult.prototype.withConfidence = function (confidence) {
26
161
  this['confidence'] = confidence;
27
162
  return this;