@huaweicloud/huaweicloud-sdk-ocr 3.1.7 → 3.1.8
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 +2 -2
- package/v1/OcrClient.d.ts +1 -1
- package/v1/OcrClient.js +1 -1
- package/v1/model/GeneralTextCharList.d.ts +15 -0
- package/v1/model/GeneralTextCharList.js +51 -0
- package/v1/model/GeneralTextRequestBody.d.ts +4 -0
- package/v1/model/GeneralTextRequestBody.js +14 -0
- package/v1/model/GeneralTextWordsBlockList.d.ts +8 -1
- package/v1/model/GeneralTextWordsBlockList.js +21 -1
- package/v1/model/ThailandIdcardRequestBody.d.ts +4 -0
- package/v1/model/ThailandIdcardRequestBody.js +14 -0
- package/v1/model/ThailandIdcardResult.d.ts +4 -0
- package/v1/model/ThailandIdcardResult.js +14 -0
- package/v1/public-api.d.ts +1 -0
- package/v1/public-api.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huaweicloud/huaweicloud-sdk-ocr",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.8",
|
|
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.
|
|
17
|
+
"@huaweicloud/huaweicloud-sdk-core": "^3.1.8"
|
|
18
18
|
}
|
|
19
19
|
}
|
package/v1/OcrClient.d.ts
CHANGED
|
@@ -479,7 +479,7 @@ export declare class OcrClient {
|
|
|
479
479
|
* 详细说明请参考华为云API Explorer。
|
|
480
480
|
* Please refer to Huawei cloud API Explorer for details.
|
|
481
481
|
*
|
|
482
|
-
* @summary
|
|
482
|
+
* @summary 道路运输从业资格证识别
|
|
483
483
|
* @param {QualificationCertificateRequestBody} qualificationCertificateRequestBody This is a auto create Body Object Object
|
|
484
484
|
* @param {*} [options] Override http request option.
|
|
485
485
|
* @throws {RequiredError}
|
package/v1/OcrClient.js
CHANGED
|
@@ -596,7 +596,7 @@ var OcrClient = /** @class */ (function () {
|
|
|
596
596
|
* 详细说明请参考华为云API Explorer。
|
|
597
597
|
* Please refer to Huawei cloud API Explorer for details.
|
|
598
598
|
*
|
|
599
|
-
* @summary
|
|
599
|
+
* @summary 道路运输从业资格证识别
|
|
600
600
|
* @param {QualificationCertificateRequestBody} qualificationCertificateRequestBody This is a auto create Body Object Object
|
|
601
601
|
* @param {*} [options] Override http request option.
|
|
602
602
|
* @throws {RequiredError}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class GeneralTextCharList {
|
|
2
|
+
private 'char'?;
|
|
3
|
+
private 'char_location'?;
|
|
4
|
+
private 'char_confidence'?;
|
|
5
|
+
constructor();
|
|
6
|
+
withChar(_char: string): GeneralTextCharList;
|
|
7
|
+
set _char(_char: string | undefined);
|
|
8
|
+
get _char(): string | undefined;
|
|
9
|
+
withCharLocation(charLocation: Array<Array<number>>): GeneralTextCharList;
|
|
10
|
+
set charLocation(charLocation: Array<Array<number>> | undefined);
|
|
11
|
+
get charLocation(): Array<Array<number>> | undefined;
|
|
12
|
+
withCharConfidence(charConfidence: number): GeneralTextCharList;
|
|
13
|
+
set charConfidence(charConfidence: number | undefined);
|
|
14
|
+
get charConfidence(): number | undefined;
|
|
15
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GeneralTextCharList = void 0;
|
|
4
|
+
var GeneralTextCharList = /** @class */ (function () {
|
|
5
|
+
function GeneralTextCharList() {
|
|
6
|
+
}
|
|
7
|
+
GeneralTextCharList.prototype.withChar = function (_char) {
|
|
8
|
+
this['char'] = _char;
|
|
9
|
+
return this;
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(GeneralTextCharList.prototype, "_char", {
|
|
12
|
+
get: function () {
|
|
13
|
+
return this['char'];
|
|
14
|
+
},
|
|
15
|
+
set: function (_char) {
|
|
16
|
+
this['char'] = _char;
|
|
17
|
+
},
|
|
18
|
+
enumerable: false,
|
|
19
|
+
configurable: true
|
|
20
|
+
});
|
|
21
|
+
GeneralTextCharList.prototype.withCharLocation = function (charLocation) {
|
|
22
|
+
this['char_location'] = charLocation;
|
|
23
|
+
return this;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(GeneralTextCharList.prototype, "charLocation", {
|
|
26
|
+
get: function () {
|
|
27
|
+
return this['char_location'];
|
|
28
|
+
},
|
|
29
|
+
set: function (charLocation) {
|
|
30
|
+
this['char_location'] = charLocation;
|
|
31
|
+
},
|
|
32
|
+
enumerable: false,
|
|
33
|
+
configurable: true
|
|
34
|
+
});
|
|
35
|
+
GeneralTextCharList.prototype.withCharConfidence = function (charConfidence) {
|
|
36
|
+
this['char_confidence'] = charConfidence;
|
|
37
|
+
return this;
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(GeneralTextCharList.prototype, "charConfidence", {
|
|
40
|
+
get: function () {
|
|
41
|
+
return this['char_confidence'];
|
|
42
|
+
},
|
|
43
|
+
set: function (charConfidence) {
|
|
44
|
+
this['char_confidence'] = charConfidence;
|
|
45
|
+
},
|
|
46
|
+
enumerable: false,
|
|
47
|
+
configurable: true
|
|
48
|
+
});
|
|
49
|
+
return GeneralTextCharList;
|
|
50
|
+
}());
|
|
51
|
+
exports.GeneralTextCharList = GeneralTextCharList;
|
|
@@ -3,6 +3,7 @@ export declare class GeneralTextRequestBody {
|
|
|
3
3
|
url?: string;
|
|
4
4
|
private 'detect_direction'?;
|
|
5
5
|
private 'quick_mode'?;
|
|
6
|
+
private 'character_mode'?;
|
|
6
7
|
constructor();
|
|
7
8
|
withImage(image: string): GeneralTextRequestBody;
|
|
8
9
|
withUrl(url: string): GeneralTextRequestBody;
|
|
@@ -12,4 +13,7 @@ export declare class GeneralTextRequestBody {
|
|
|
12
13
|
withQuickMode(quickMode: boolean): GeneralTextRequestBody;
|
|
13
14
|
set quickMode(quickMode: boolean | undefined);
|
|
14
15
|
get quickMode(): boolean | undefined;
|
|
16
|
+
withCharacterMode(characterMode: boolean): GeneralTextRequestBody;
|
|
17
|
+
set characterMode(characterMode: boolean | undefined);
|
|
18
|
+
get characterMode(): boolean | undefined;
|
|
15
19
|
}
|
|
@@ -40,6 +40,20 @@ var GeneralTextRequestBody = /** @class */ (function () {
|
|
|
40
40
|
enumerable: false,
|
|
41
41
|
configurable: true
|
|
42
42
|
});
|
|
43
|
+
GeneralTextRequestBody.prototype.withCharacterMode = function (characterMode) {
|
|
44
|
+
this['character_mode'] = characterMode;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(GeneralTextRequestBody.prototype, "characterMode", {
|
|
48
|
+
get: function () {
|
|
49
|
+
return this['character_mode'];
|
|
50
|
+
},
|
|
51
|
+
set: function (characterMode) {
|
|
52
|
+
this['character_mode'] = characterMode;
|
|
53
|
+
},
|
|
54
|
+
enumerable: false,
|
|
55
|
+
configurable: true
|
|
56
|
+
});
|
|
43
57
|
return GeneralTextRequestBody;
|
|
44
58
|
}());
|
|
45
59
|
exports.GeneralTextRequestBody = GeneralTextRequestBody;
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
import { GeneralTextCharList } from './GeneralTextCharList';
|
|
1
2
|
export declare class GeneralTextWordsBlockList {
|
|
2
3
|
words: string;
|
|
3
4
|
location: Array<Array<number>>;
|
|
4
|
-
|
|
5
|
+
confidence: number;
|
|
6
|
+
private 'char_list';
|
|
7
|
+
constructor(words?: any, location?: any, confidence?: any, charList?: any);
|
|
5
8
|
withWords(words: string): GeneralTextWordsBlockList;
|
|
6
9
|
withLocation(location: Array<Array<number>>): GeneralTextWordsBlockList;
|
|
10
|
+
withConfidence(confidence: number): GeneralTextWordsBlockList;
|
|
11
|
+
withCharList(charList: Array<GeneralTextCharList>): GeneralTextWordsBlockList;
|
|
12
|
+
set charList(charList: Array<GeneralTextCharList> | undefined);
|
|
13
|
+
get charList(): Array<GeneralTextCharList> | undefined;
|
|
7
14
|
}
|
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GeneralTextWordsBlockList = void 0;
|
|
4
4
|
var GeneralTextWordsBlockList = /** @class */ (function () {
|
|
5
|
-
function GeneralTextWordsBlockList(words, location) {
|
|
5
|
+
function GeneralTextWordsBlockList(words, location, confidence, charList) {
|
|
6
6
|
this['words'] = words;
|
|
7
7
|
this['location'] = location;
|
|
8
|
+
this['confidence'] = confidence;
|
|
9
|
+
this['char_list'] = charList;
|
|
8
10
|
}
|
|
9
11
|
GeneralTextWordsBlockList.prototype.withWords = function (words) {
|
|
10
12
|
this['words'] = words;
|
|
@@ -14,6 +16,24 @@ var GeneralTextWordsBlockList = /** @class */ (function () {
|
|
|
14
16
|
this['location'] = location;
|
|
15
17
|
return this;
|
|
16
18
|
};
|
|
19
|
+
GeneralTextWordsBlockList.prototype.withConfidence = function (confidence) {
|
|
20
|
+
this['confidence'] = confidence;
|
|
21
|
+
return this;
|
|
22
|
+
};
|
|
23
|
+
GeneralTextWordsBlockList.prototype.withCharList = function (charList) {
|
|
24
|
+
this['char_list'] = charList;
|
|
25
|
+
return this;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(GeneralTextWordsBlockList.prototype, "charList", {
|
|
28
|
+
get: function () {
|
|
29
|
+
return this['char_list'];
|
|
30
|
+
},
|
|
31
|
+
set: function (charList) {
|
|
32
|
+
this['char_list'] = charList;
|
|
33
|
+
},
|
|
34
|
+
enumerable: false,
|
|
35
|
+
configurable: true
|
|
36
|
+
});
|
|
17
37
|
return GeneralTextWordsBlockList;
|
|
18
38
|
}());
|
|
19
39
|
exports.GeneralTextWordsBlockList = GeneralTextWordsBlockList;
|
|
@@ -5,6 +5,7 @@ export declare class ThailandIdcardRequestBody {
|
|
|
5
5
|
private 'return_portrait_image'?;
|
|
6
6
|
private 'return_portrait_location'?;
|
|
7
7
|
private 'return_idcard_type'?;
|
|
8
|
+
private 'return_text_location'?;
|
|
8
9
|
constructor();
|
|
9
10
|
withImage(image: string): ThailandIdcardRequestBody;
|
|
10
11
|
withUrl(url: string): ThailandIdcardRequestBody;
|
|
@@ -18,4 +19,7 @@ export declare class ThailandIdcardRequestBody {
|
|
|
18
19
|
withReturnIdcardType(returnIdcardType: boolean): ThailandIdcardRequestBody;
|
|
19
20
|
set returnIdcardType(returnIdcardType: boolean | undefined);
|
|
20
21
|
get returnIdcardType(): boolean | undefined;
|
|
22
|
+
withReturnTextLocation(returnTextLocation: boolean): ThailandIdcardRequestBody;
|
|
23
|
+
set returnTextLocation(returnTextLocation: boolean | undefined);
|
|
24
|
+
get returnTextLocation(): boolean | undefined;
|
|
21
25
|
}
|
|
@@ -58,6 +58,20 @@ var ThailandIdcardRequestBody = /** @class */ (function () {
|
|
|
58
58
|
enumerable: false,
|
|
59
59
|
configurable: true
|
|
60
60
|
});
|
|
61
|
+
ThailandIdcardRequestBody.prototype.withReturnTextLocation = function (returnTextLocation) {
|
|
62
|
+
this['return_text_location'] = returnTextLocation;
|
|
63
|
+
return this;
|
|
64
|
+
};
|
|
65
|
+
Object.defineProperty(ThailandIdcardRequestBody.prototype, "returnTextLocation", {
|
|
66
|
+
get: function () {
|
|
67
|
+
return this['return_text_location'];
|
|
68
|
+
},
|
|
69
|
+
set: function (returnTextLocation) {
|
|
70
|
+
this['return_text_location'] = returnTextLocation;
|
|
71
|
+
},
|
|
72
|
+
enumerable: false,
|
|
73
|
+
configurable: true
|
|
74
|
+
});
|
|
61
75
|
return ThailandIdcardRequestBody;
|
|
62
76
|
}());
|
|
63
77
|
exports.ThailandIdcardRequestBody = ThailandIdcardRequestBody;
|
|
@@ -20,6 +20,7 @@ export declare class ThailandIdcardResult {
|
|
|
20
20
|
private 'portrait_image'?;
|
|
21
21
|
private 'portrait_location'?;
|
|
22
22
|
private 'idcard_type'?;
|
|
23
|
+
private 'text_location'?;
|
|
23
24
|
constructor();
|
|
24
25
|
withSide(side: string): ThailandIdcardResult;
|
|
25
26
|
withIdNumber(idNumber: string): ThailandIdcardResult;
|
|
@@ -77,4 +78,7 @@ export declare class ThailandIdcardResult {
|
|
|
77
78
|
withIdcardType(idcardType: string): ThailandIdcardResult;
|
|
78
79
|
set idcardType(idcardType: string | undefined);
|
|
79
80
|
get idcardType(): string | undefined;
|
|
81
|
+
withTextLocation(textLocation: object): ThailandIdcardResult;
|
|
82
|
+
set textLocation(textLocation: object | undefined);
|
|
83
|
+
get textLocation(): object | undefined;
|
|
80
84
|
}
|
|
@@ -264,6 +264,20 @@ var ThailandIdcardResult = /** @class */ (function () {
|
|
|
264
264
|
enumerable: false,
|
|
265
265
|
configurable: true
|
|
266
266
|
});
|
|
267
|
+
ThailandIdcardResult.prototype.withTextLocation = function (textLocation) {
|
|
268
|
+
this['text_location'] = textLocation;
|
|
269
|
+
return this;
|
|
270
|
+
};
|
|
271
|
+
Object.defineProperty(ThailandIdcardResult.prototype, "textLocation", {
|
|
272
|
+
get: function () {
|
|
273
|
+
return this['text_location'];
|
|
274
|
+
},
|
|
275
|
+
set: function (textLocation) {
|
|
276
|
+
this['text_location'] = textLocation;
|
|
277
|
+
},
|
|
278
|
+
enumerable: false,
|
|
279
|
+
configurable: true
|
|
280
|
+
});
|
|
267
281
|
return ThailandIdcardResult;
|
|
268
282
|
}());
|
|
269
283
|
exports.ThailandIdcardResult = ThailandIdcardResult;
|
package/v1/public-api.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export * from './model/FlightItineraryResult';
|
|
|
31
31
|
export * from './model/GeneralTableRequestBody';
|
|
32
32
|
export * from './model/GeneralTableResult';
|
|
33
33
|
export * from './model/GeneralTableWordsBlockList';
|
|
34
|
+
export * from './model/GeneralTextCharList';
|
|
34
35
|
export * from './model/GeneralTextRequestBody';
|
|
35
36
|
export * from './model/GeneralTextResult';
|
|
36
37
|
export * from './model/GeneralTextWordsBlockList';
|
package/v1/public-api.js
CHANGED
|
@@ -47,6 +47,7 @@ __exportStar(require("./model/FlightItineraryResult"), exports);
|
|
|
47
47
|
__exportStar(require("./model/GeneralTableRequestBody"), exports);
|
|
48
48
|
__exportStar(require("./model/GeneralTableResult"), exports);
|
|
49
49
|
__exportStar(require("./model/GeneralTableWordsBlockList"), exports);
|
|
50
|
+
__exportStar(require("./model/GeneralTextCharList"), exports);
|
|
50
51
|
__exportStar(require("./model/GeneralTextRequestBody"), exports);
|
|
51
52
|
__exportStar(require("./model/GeneralTextResult"), exports);
|
|
52
53
|
__exportStar(require("./model/GeneralTextWordsBlockList"), exports);
|