tencentcloud-sdk-nodejs-ocr 4.1.120 → 4.1.128
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/README.md
CHANGED
@@ -62,6 +62,8 @@ npm install tencentcloud-sdk-slim-nodejs --save
|
|
62
62
|
|
63
63
|
1. clone 代码到本地:
|
64
64
|
```
|
65
|
+
git clone https://cnb.cool/tencent/cloud/api/sdk/tencentcloud-sdk-nodejs
|
66
|
+
# 或者
|
65
67
|
git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
|
66
68
|
# 或者
|
67
69
|
git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
|
@@ -135,7 +137,7 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
135
137
|
// ...
|
136
138
|
```
|
137
139
|
|
138
|
-
实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](
|
140
|
+
实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](src/common/interface.ts)。
|
139
141
|
|
140
142
|
## Common Client
|
141
143
|
|
@@ -143,17 +145,17 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
143
145
|
|
144
146
|
**注意,您必须明确知道您调用的接口所需参数,否则可能会调用失败。**
|
145
147
|
|
146
|
-
详细使用请参阅示例:[使用 Common Client 进行调用](
|
148
|
+
详细使用请参阅示例:[使用 Common Client 进行调用](examples/common)
|
147
149
|
|
148
150
|
## 更多示例
|
149
151
|
|
150
|
-
请参考 [examples](
|
152
|
+
请参考 [examples](examples) 目录。
|
151
153
|
|
152
154
|
# 相关配置
|
153
155
|
|
154
156
|
## 代理
|
155
157
|
|
156
|
-
如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](
|
158
|
+
如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
|
157
159
|
|
158
160
|
# 凭证管理
|
159
161
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "tencentcloud-sdk-nodejs-ocr",
|
3
|
-
"version": "4.1.
|
3
|
+
"version": "4.1.128",
|
4
4
|
"description": "腾讯云 API NODEJS SDK",
|
5
5
|
"main": "./tencentcloud/index.js",
|
6
6
|
"module": "./es/index.js",
|
@@ -45,6 +45,7 @@
|
|
45
45
|
"url": "https://github.com/tencentcloud/tencentcloud-sdk-nodejs"
|
46
46
|
},
|
47
47
|
"devDependencies": {
|
48
|
+
"@types/ini": "^4.1.1",
|
48
49
|
"@types/json-bigint": "^1.0.1",
|
49
50
|
"@types/node": "^18.0.0",
|
50
51
|
"@types/node-fetch": "^2.5.7",
|
@@ -557,7 +557,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
557
557
|
*/
|
558
558
|
RecognizeThaiIDCardOCR(req: RecognizeThaiIDCardOCRRequest, cb?: (error: string, rep: RecognizeThaiIDCardOCRResponse) => void): Promise<RecognizeThaiIDCardOCRResponse>;
|
559
559
|
/**
|
560
|
-
* 本接口当前仅支持复杂磅单收发货单抽取,更多强推理场景支持定制咨询。点击[立即体验](https://ocrdemo.cloud.tencent.com
|
560
|
+
* 本接口当前仅支持复杂磅单收发货单抽取,更多强推理场景支持定制咨询。点击[立即体验](https://ocrdemo.cloud.tencent.com/?action=ExtractDocMultiPro)。
|
561
561
|
|
562
562
|
默认接口请求频率限制:5次/秒。
|
563
563
|
*/
|
@@ -712,7 +712,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
712
712
|
*/
|
713
713
|
GeneralHandwritingOCR(req: GeneralHandwritingOCRRequest, cb?: (error: string, rep: GeneralHandwritingOCRResponse) => void): Promise<GeneralHandwritingOCRResponse>;
|
714
714
|
/**
|
715
|
-
* 本接口支持识别并提取制式卡证、票据、表单等结构化场景的字段信息。无需任何配置,灵活高效。适用于各类结构化信息录入场景。点击[立即体验](https://ocrdemo.cloud.tencent.com
|
715
|
+
* 本接口支持识别并提取制式卡证、票据、表单等结构化场景的字段信息。无需任何配置,灵活高效。适用于各类结构化信息录入场景。点击[立即体验](https://ocrdemo.cloud.tencent.com/?action=ExtractDocBasic)。
|
716
716
|
|
717
717
|
接口别名:SmartStructuralOCRV2
|
718
718
|
|
@@ -902,7 +902,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
902
902
|
*/
|
903
903
|
LicensePlateOCR(req: LicensePlateOCRRequest, cb?: (error: string, rep: LicensePlateOCRResponse) => void): Promise<LicensePlateOCRResponse>;
|
904
904
|
/**
|
905
|
-
* 本接口支持识别并提取场景复杂、版式多等结构化场景的字段信息。重点场景包括:金融、医疗、交通、出行、保险。点击[立即体验](https://ocrdemo.cloud.tencent.com
|
905
|
+
* 本接口支持识别并提取场景复杂、版式多等结构化场景的字段信息。重点场景包括:金融、医疗、交通、出行、保险。点击[立即体验](https://ocrdemo.cloud.tencent.com/?action=ExtractDocMulti)。
|
906
906
|
|
907
907
|
接口别名:SmartStructuralPro
|
908
908
|
|
@@ -643,7 +643,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
643
643
|
return this.request("RecognizeThaiIDCardOCR", req, cb);
|
644
644
|
}
|
645
645
|
/**
|
646
|
-
* 本接口当前仅支持复杂磅单收发货单抽取,更多强推理场景支持定制咨询。点击[立即体验](https://ocrdemo.cloud.tencent.com
|
646
|
+
* 本接口当前仅支持复杂磅单收发货单抽取,更多强推理场景支持定制咨询。点击[立即体验](https://ocrdemo.cloud.tencent.com/?action=ExtractDocMultiPro)。
|
647
647
|
|
648
648
|
默认接口请求频率限制:5次/秒。
|
649
649
|
*/
|
@@ -834,7 +834,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
834
834
|
return this.request("GeneralHandwritingOCR", req, cb);
|
835
835
|
}
|
836
836
|
/**
|
837
|
-
* 本接口支持识别并提取制式卡证、票据、表单等结构化场景的字段信息。无需任何配置,灵活高效。适用于各类结构化信息录入场景。点击[立即体验](https://ocrdemo.cloud.tencent.com
|
837
|
+
* 本接口支持识别并提取制式卡证、票据、表单等结构化场景的字段信息。无需任何配置,灵活高效。适用于各类结构化信息录入场景。点击[立即体验](https://ocrdemo.cloud.tencent.com/?action=ExtractDocBasic)。
|
838
838
|
|
839
839
|
接口别名:SmartStructuralOCRV2
|
840
840
|
|
@@ -1084,7 +1084,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
1084
1084
|
return this.request("LicensePlateOCR", req, cb);
|
1085
1085
|
}
|
1086
1086
|
/**
|
1087
|
-
* 本接口支持识别并提取场景复杂、版式多等结构化场景的字段信息。重点场景包括:金融、医疗、交通、出行、保险。点击[立即体验](https://ocrdemo.cloud.tencent.com
|
1087
|
+
* 本接口支持识别并提取场景复杂、版式多等结构化场景的字段信息。重点场景包括:金融、医疗、交通、出行、保险。点击[立即体验](https://ocrdemo.cloud.tencent.com/?action=ExtractDocMulti)。
|
1088
1088
|
|
1089
1089
|
接口别名:SmartStructuralPro
|
1090
1090
|
|