tencentcloud-sdk-nodejs-intl-en 3.0.1388 → 3.0.1389
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 +1 -1
- package/tencentcloud/cam/v20190116/cam_client.js +27 -0
- package/tencentcloud/cam/v20190116/models.js +221 -0
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/cwp/v20180228/cwp_client.js +1 -1
- package/tencentcloud/cwp/v20180228/models.js +1 -1
- package/tencentcloud/monitor/index.js +1 -1
- package/tencentcloud/monitor/v20230616/index.js +4 -0
- package/tencentcloud/monitor/v20230616/models.js +536 -0
- package/tencentcloud/monitor/v20230616/monitor_client.js +52 -0
- package/tencentcloud/mps/v20190612/models.js +1205 -224
- package/tencentcloud/mps/v20190612/mps_client.js +65 -4
- package/tencentcloud/ocr/v20181119/models.js +2049 -7844
- package/tencentcloud/ocr/v20181119/ocr_client.js +33 -393
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
*/
|
|
17
17
|
const models = require("./models");
|
|
18
18
|
const AbstractClient = require('../../common/abstract_client')
|
|
19
|
-
const InvoiceItem = models.InvoiceItem;
|
|
20
19
|
const RecognizeMexicoVTIDResponse = models.RecognizeMexicoVTIDResponse;
|
|
21
20
|
const HKIDCardOCRRequest = models.HKIDCardOCRRequest;
|
|
22
21
|
const ExtractDocMultiRequest = models.ExtractDocMultiRequest;
|
|
@@ -26,136 +25,84 @@ const WordItem = models.WordItem;
|
|
|
26
25
|
const MLIDPassportOCRRequest = models.MLIDPassportOCRRequest;
|
|
27
26
|
const ItemInfo = models.ItemInfo;
|
|
28
27
|
const SmartStructuralOCRV2Request = models.SmartStructuralOCRV2Request;
|
|
29
|
-
const
|
|
28
|
+
const RecognizeThaiIDCardOCRResponse = models.RecognizeThaiIDCardOCRResponse;
|
|
30
29
|
const RecognizeBrazilCommonOCRResponse = models.RecognizeBrazilCommonOCRResponse;
|
|
31
30
|
const RecognizeMacaoIDCardOCRResponse = models.RecognizeMacaoIDCardOCRResponse;
|
|
32
31
|
const GetCardVerificationExternalResultResponse = models.GetCardVerificationExternalResultResponse;
|
|
33
32
|
const PermitOCRResponse = models.PermitOCRResponse;
|
|
34
33
|
const RecognizeBrazilDriverLicenseOCRRequest = models.RecognizeBrazilDriverLicenseOCRRequest;
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const VatRollItem = models.VatRollItem;
|
|
38
|
-
const HmtResidentPermitOCRResponse = models.HmtResidentPermitOCRResponse;
|
|
34
|
+
const RecognizeMainlandIDCardOCRRequest = models.RecognizeMainlandIDCardOCRRequest;
|
|
35
|
+
const MLIDCardOCRRequest = models.MLIDCardOCRRequest;
|
|
39
36
|
const WordPolygon = models.WordPolygon;
|
|
40
|
-
const FlightItem = models.FlightItem;
|
|
41
37
|
const Value = models.Value;
|
|
42
38
|
const RecognizeDetectCardCoordsResponse = models.RecognizeDetectCardCoordsResponse;
|
|
43
|
-
const SealInfo = models.SealInfo;
|
|
44
39
|
const RecognizePhilippinesVoteIDOCRRequest = models.RecognizePhilippinesVoteIDOCRRequest;
|
|
45
|
-
const RecognizeKoreanDrivingLicenseOCRRequest = models.RecognizeKoreanDrivingLicenseOCRRequest;
|
|
46
40
|
const BrazilRNMInfo = models.BrazilRNMInfo;
|
|
47
|
-
const
|
|
48
|
-
const SmartStructuralProRequest = models.SmartStructuralProRequest;
|
|
49
|
-
const LicensePlateOCRResponse = models.LicensePlateOCRResponse;
|
|
41
|
+
const TextDetection = models.TextDetection;
|
|
50
42
|
const RecognizeDetectCardCoordsRequest = models.RecognizeDetectCardCoordsRequest;
|
|
51
|
-
const VatInvoiceItemInfo = models.VatInvoiceItemInfo;
|
|
52
43
|
const GeneralCard = models.GeneralCard;
|
|
53
44
|
const MainlandPermitOCRRequest = models.MainlandPermitOCRRequest;
|
|
54
45
|
const RecognizeBrazilCommonOCRRequest = models.RecognizeBrazilCommonOCRRequest;
|
|
55
|
-
const TextDetection = models.TextDetection;
|
|
56
46
|
const RecognizePhilippinesTinIDOCRResponse = models.RecognizePhilippinesTinIDOCRResponse;
|
|
57
47
|
const DetectedWords = models.DetectedWords;
|
|
58
|
-
const
|
|
59
|
-
const ShippingInvoice = models.ShippingInvoice;
|
|
60
|
-
const RecognizePhilippinesVoteIDOCRResponse = models.RecognizePhilippinesVoteIDOCRResponse;
|
|
48
|
+
const LineInfo = models.LineInfo;
|
|
61
49
|
const BrazilDriverLicenseInfo = models.BrazilDriverLicenseInfo;
|
|
62
|
-
const GeneralMachineItem = models.GeneralMachineItem;
|
|
63
50
|
const GeneralAccurateOCRResponse = models.GeneralAccurateOCRResponse;
|
|
64
|
-
const HmtResidentPermitOCRRequest = models.HmtResidentPermitOCRRequest;
|
|
65
|
-
const BusInvoice = models.BusInvoice;
|
|
66
|
-
const RecognizeGeneralInvoiceRequest = models.RecognizeGeneralInvoiceRequest;
|
|
67
51
|
const GeneralBasicOCRResponse = models.GeneralBasicOCRResponse;
|
|
68
|
-
const
|
|
69
|
-
const
|
|
70
|
-
const RecognizePhilippinesDrivingLicenseOCRResponse = models.RecognizePhilippinesDrivingLicenseOCRResponse;
|
|
71
|
-
const BankCardOCRRequest = models.BankCardOCRRequest;
|
|
52
|
+
const VinOCRRequest = models.VinOCRRequest;
|
|
53
|
+
const RecognizePhilippinesUMIDOCRRequest = models.RecognizePhilippinesUMIDOCRRequest;
|
|
72
54
|
const RecognizePhilippinesSssIDOCRRequest = models.RecognizePhilippinesSssIDOCRRequest;
|
|
73
55
|
const Key = models.Key;
|
|
74
|
-
const IDCardOCRResponse = models.IDCardOCRResponse;
|
|
75
|
-
const MLIDCardOCRRequest = models.MLIDCardOCRRequest;
|
|
76
56
|
const BrazilIDCardInfo = models.BrazilIDCardInfo;
|
|
77
57
|
const HKIDCardOCRResponse = models.HKIDCardOCRResponse;
|
|
78
58
|
const GroupInfo = models.GroupInfo;
|
|
79
|
-
const QuotaInvoice = models.QuotaInvoice;
|
|
80
59
|
const PermitOCRRequest = models.PermitOCRRequest;
|
|
81
|
-
const SingleInvoiceItem = models.SingleInvoiceItem;
|
|
82
|
-
const VatInvoiceInfo = models.VatInvoiceInfo;
|
|
83
60
|
const ExtractDocMultiResponse = models.ExtractDocMultiResponse;
|
|
84
61
|
const RecognizePhilippinesSssIDOCRResponse = models.RecognizePhilippinesSssIDOCRResponse;
|
|
85
|
-
const MachinePrintedInvoice = models.MachinePrintedInvoice;
|
|
86
|
-
const RecognizeKoreanIDCardOCRResponse = models.RecognizeKoreanIDCardOCRResponse;
|
|
87
62
|
const RecognizePhilippinesUMIDOCRResponse = models.RecognizePhilippinesUMIDOCRResponse;
|
|
88
|
-
const
|
|
89
|
-
const ApplyCardVerificationExternalRequest = models.ApplyCardVerificationExternalRequest;
|
|
90
|
-
const MotorVehicleSaleInvoice = models.MotorVehicleSaleInvoice;
|
|
91
|
-
const RecognizeKoreanIDCardOCRRequest = models.RecognizeKoreanIDCardOCRRequest;
|
|
92
|
-
const TableOCRRequest = models.TableOCRRequest;
|
|
63
|
+
const RecognizeThaiIDCardOCRRequest = models.RecognizeThaiIDCardOCRRequest;
|
|
93
64
|
const PassportRecognizeInfos = models.PassportRecognizeInfos;
|
|
94
65
|
const RecognizeSingaporeIDCardOCRRequest = models.RecognizeSingaporeIDCardOCRRequest;
|
|
95
|
-
const TaxiTicket = models.TaxiTicket;
|
|
96
66
|
const RecognizeBrazilRNMOCRResponse = models.RecognizeBrazilRNMOCRResponse;
|
|
97
|
-
const RecognizeThaiIDCardOCRRequest = models.RecognizeThaiIDCardOCRRequest;
|
|
98
|
-
const LicensePlateOCRRequest = models.LicensePlateOCRRequest;
|
|
99
67
|
const GeneralBasicOCRRequest = models.GeneralBasicOCRRequest;
|
|
100
68
|
const RecognizeBrazilRNMOCRRequest = models.RecognizeBrazilRNMOCRRequest;
|
|
101
69
|
const RecognizeBrazilIDCardOCRResponse = models.RecognizeBrazilIDCardOCRResponse;
|
|
102
70
|
const RecognizeBrazilRNEOCRRequest = models.RecognizeBrazilRNEOCRRequest;
|
|
103
|
-
const VatElectronicInfo = models.VatElectronicInfo;
|
|
104
|
-
const IDCardOCRRequest = models.IDCardOCRRequest;
|
|
105
71
|
const GeneralAccurateOCRRequest = models.GeneralAccurateOCRRequest;
|
|
106
|
-
const UsedCarPurchaseInvoice = models.UsedCarPurchaseInvoice;
|
|
107
72
|
const RecognizeMacaoIDCardOCRRequest = models.RecognizeMacaoIDCardOCRRequest;
|
|
108
73
|
const CoordsItem = models.CoordsItem;
|
|
109
|
-
const NonTaxIncomeBill = models.NonTaxIncomeBill;
|
|
110
74
|
const MLIDPassportOCRResponse = models.MLIDPassportOCRResponse;
|
|
111
|
-
const
|
|
75
|
+
const ApplyCardVerificationExternalRequest = models.ApplyCardVerificationExternalRequest;
|
|
112
76
|
const GetCardVerificationExternalResultRequest = models.GetCardVerificationExternalResultRequest;
|
|
113
|
-
const RecognizeTableAccurateOCRRequest = models.RecognizeTableAccurateOCRRequest;
|
|
114
77
|
const Coord = models.Coord;
|
|
115
|
-
const SealOCRResponse = models.SealOCRResponse;
|
|
116
78
|
const RecognizeBrazilRNEOCRResponse = models.RecognizeBrazilRNEOCRResponse;
|
|
117
79
|
const RecognizeIndonesiaIDCardOCRResponse = models.RecognizeIndonesiaIDCardOCRResponse;
|
|
118
|
-
const TableInfo = models.TableInfo;
|
|
119
80
|
const VinOCRResponse = models.VinOCRResponse;
|
|
120
|
-
const RecognizeKoreanDrivingLicenseOCRResponse = models.RecognizeKoreanDrivingLicenseOCRResponse;
|
|
121
|
-
const VatElectronicItemInfo = models.VatElectronicItemInfo;
|
|
122
81
|
const ConfigAdvanced = models.ConfigAdvanced;
|
|
123
|
-
const
|
|
82
|
+
const RecognizePhilippinesVoteIDOCRResponse = models.RecognizePhilippinesVoteIDOCRResponse;
|
|
124
83
|
const ItemCoord = models.ItemCoord;
|
|
125
|
-
const RecognizeMainlandIDCardOCRRequest = models.RecognizeMainlandIDCardOCRRequest;
|
|
126
|
-
const VatInvoiceRoll = models.VatInvoiceRoll;
|
|
127
84
|
const ApplyCardVerificationExternalResponse = models.ApplyCardVerificationExternalResponse;
|
|
128
85
|
const Polygon = models.Polygon;
|
|
129
86
|
const TextDetectionResult = models.TextDetectionResult;
|
|
130
|
-
const RecognizeGeneralInvoiceResponse = models.RecognizeGeneralInvoiceResponse;
|
|
131
87
|
const RecognizeSingaporeIDCardOCRResponse = models.RecognizeSingaporeIDCardOCRResponse;
|
|
132
|
-
const SealOCRRequest = models.SealOCRRequest;
|
|
133
|
-
const MedicalInvoice = models.MedicalInvoice;
|
|
134
|
-
const TextTable = models.TextTable;
|
|
135
|
-
const RecognizeTableAccurateOCRResponse = models.RecognizeTableAccurateOCRResponse;
|
|
136
88
|
const SmartStructuralOCRV2Response = models.SmartStructuralOCRV2Response;
|
|
137
89
|
const RecognizeMainlandIDCardOCRResponse = models.RecognizeMainlandIDCardOCRResponse;
|
|
138
90
|
const MainlandPermitOCRResponse = models.MainlandPermitOCRResponse;
|
|
139
|
-
const NonTaxItem = models.NonTaxItem;
|
|
140
91
|
const RecognizeMexicoVTIDRequest = models.RecognizeMexicoVTIDRequest;
|
|
141
92
|
const PODAuditAIResponse = models.PODAuditAIResponse;
|
|
142
|
-
const
|
|
143
|
-
const SmartStructuralProResponse = models.SmartStructuralProResponse;
|
|
144
|
-
const TableOCRResponse = models.TableOCRResponse;
|
|
93
|
+
const MainlandTravelPermitBackInfos = models.MainlandTravelPermitBackInfos;
|
|
145
94
|
const DetectedWordCoordPoint = models.DetectedWordCoordPoint;
|
|
146
95
|
const RecognizeBrazilDriverLicenseOCRResponse = models.RecognizeBrazilDriverLicenseOCRResponse;
|
|
147
96
|
const BrazilCardInfo = models.BrazilCardInfo;
|
|
148
97
|
const RecognizeIndonesiaIDCardOCRRequest = models.RecognizeIndonesiaIDCardOCRRequest;
|
|
149
98
|
const AnalyzedLog = models.AnalyzedLog;
|
|
150
|
-
const VinOCRRequest = models.VinOCRRequest;
|
|
151
99
|
const BrazilRNEInfo = models.BrazilRNEInfo;
|
|
152
100
|
const MLIDCardOCRResponse = models.MLIDCardOCRResponse;
|
|
153
101
|
const RecognizePhilippinesTinIDOCRRequest = models.RecognizePhilippinesTinIDOCRRequest;
|
|
154
102
|
const PODAuditAIRequest = models.PODAuditAIRequest;
|
|
155
103
|
const RecognizeThaiPinkCardRequest = models.RecognizeThaiPinkCardRequest;
|
|
156
|
-
const BankCardOCRResponse = models.BankCardOCRResponse;
|
|
157
104
|
const RecognizeThaiPinkCardResponse = models.RecognizeThaiPinkCardResponse;
|
|
158
|
-
const
|
|
105
|
+
const RecognizePhilippinesDrivingLicenseOCRResponse = models.RecognizePhilippinesDrivingLicenseOCRResponse;
|
|
159
106
|
const AddressInfo = models.AddressInfo;
|
|
160
107
|
|
|
161
108
|
|
|
@@ -183,75 +130,6 @@ A maximum of 5 requests can be initiated per second for this API.
|
|
|
183
130
|
this.request("RecognizeThaiPinkCard", req, resp, cb);
|
|
184
131
|
}
|
|
185
132
|
|
|
186
|
-
/**
|
|
187
|
-
* This API is used to recognize a Philippine SSSID/UMID card.
|
|
188
|
-
* @param {RecognizePhilippinesSssIDOCRRequest} req
|
|
189
|
-
* @param {function(string, RecognizePhilippinesSssIDOCRResponse):void} cb
|
|
190
|
-
* @public
|
|
191
|
-
*/
|
|
192
|
-
RecognizePhilippinesSssIDOCR(req, cb) {
|
|
193
|
-
let resp = new RecognizePhilippinesSssIDOCRResponse();
|
|
194
|
-
this.request("RecognizePhilippinesSssIDOCR", req, resp, cb);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* This API is used to recognize all fields on the front and back sides of a second-generation resident identity card for the Chinese mainland: name, gender, ethnicity, date of birth, domicile, identification number, issuing authority, and validity period, with a recognition accuracy of over 99%.
|
|
199
|
-
|
|
200
|
-
In addition, this API supports multiple value-added capabilities to meet the needs of different scenarios. It can crop ID card photos and profile photos, and provide warnings for nine cases, as detailed below.
|
|
201
|
-
|
|
202
|
-
<table style="width:650px">
|
|
203
|
-
<thead>
|
|
204
|
-
<tr>
|
|
205
|
-
<th width="150">Capability</th>
|
|
206
|
-
<th width="500">Description</th>
|
|
207
|
-
</tr>
|
|
208
|
-
</thead>
|
|
209
|
-
<tbody>
|
|
210
|
-
<tr>
|
|
211
|
-
<td rowspan="2">Cropping</td>
|
|
212
|
-
<td>Crops the ID card photo (by removing extra edges outside the ID card and automatically correcting the shooting angle).</td>
|
|
213
|
-
</tr>
|
|
214
|
-
<tr>
|
|
215
|
-
<td>Crops the profile photo (by automatically cutting out the face area in the ID card).</td>
|
|
216
|
-
</tr>
|
|
217
|
-
<tr>
|
|
218
|
-
<td rowspan="9">Warning</td>
|
|
219
|
-
<td>Warns about invalid ID card validity periods.</td>
|
|
220
|
-
</tr>
|
|
221
|
-
<tr>
|
|
222
|
-
<td>Warns about incomplete ID card borders.</td>
|
|
223
|
-
</tr>
|
|
224
|
-
<tr>
|
|
225
|
-
<td>Warns about photocopied images.</td>
|
|
226
|
-
</tr>
|
|
227
|
-
<tr>
|
|
228
|
-
<td>Warns about spoofed images.</td>
|
|
229
|
-
</tr>
|
|
230
|
-
<tr>
|
|
231
|
-
<td>Warns about border and frame occlusions.</td>
|
|
232
|
-
</tr>
|
|
233
|
-
<tr>
|
|
234
|
-
<td>Warns about temporary ID cards.</td>
|
|
235
|
-
</tr>
|
|
236
|
-
<tr>
|
|
237
|
-
<td>Warns about photoshopped images.</td>
|
|
238
|
-
</tr>
|
|
239
|
-
<tr>
|
|
240
|
-
<td>Warns about blurry ID card images (blurriness can be determined based on the image quality score).</td>
|
|
241
|
-
</tr>
|
|
242
|
-
</tbody>
|
|
243
|
-
</table>
|
|
244
|
-
|
|
245
|
-
A maximum of 20 requests can be initiated per second for this API.
|
|
246
|
-
* @param {IDCardOCRRequest} req
|
|
247
|
-
* @param {function(string, IDCardOCRResponse):void} cb
|
|
248
|
-
* @public
|
|
249
|
-
*/
|
|
250
|
-
IDCardOCR(req, cb) {
|
|
251
|
-
let resp = new IDCardOCRResponse();
|
|
252
|
-
this.request("IDCardOCR", req, resp, cb);
|
|
253
|
-
}
|
|
254
|
-
|
|
255
133
|
/**
|
|
256
134
|
* This interface supports identification of the front and back of Brazilian driver's license. The identification fields include name, driver's license category, number, validity period, etc.
|
|
257
135
|
* @param {RecognizeBrazilDriverLicenseOCRRequest} req
|
|
@@ -306,19 +184,6 @@ A maximum of 10 requests can be initiated per second for this API.
|
|
|
306
184
|
this.request("SmartStructuralOCRV2", req, resp, cb);
|
|
307
185
|
}
|
|
308
186
|
|
|
309
|
-
/**
|
|
310
|
-
* This API is used to recognize regular tables, borderless tables, or multi-tables in images or PDF files containing Chinese and English texts. It returns the text content of each cell, supports recognition of rotated table images, and can save the recognition results into an Excel document. It delivers higher recognition accuracy than that of table OCR v2 and applies to more scenarios. The recognition accuracy in difficult table scenarios, such as irregular tables and nested tables (borderless tables contained in bordered tables), is better than that of table OCR v2. To try it, click [here](https://intl.cloud.tencent.com/product/smart?from_cn_redirect=1-ocr).
|
|
311
|
-
|
|
312
|
-
A maximum of 2 requests can be initiated per second for this API.
|
|
313
|
-
* @param {RecognizeTableAccurateOCRRequest} req
|
|
314
|
-
* @param {function(string, RecognizeTableAccurateOCRResponse):void} cb
|
|
315
|
-
* @public
|
|
316
|
-
*/
|
|
317
|
-
RecognizeTableAccurateOCR(req, cb) {
|
|
318
|
-
let resp = new RecognizeTableAccurateOCRResponse();
|
|
319
|
-
this.request("RecognizeTableAccurateOCR", req, resp, cb);
|
|
320
|
-
}
|
|
321
|
-
|
|
322
187
|
/**
|
|
323
188
|
* This API is used to recognize the coordinates of four corners of cards.
|
|
324
189
|
* @param {RecognizeDetectCardCoordsRequest} req
|
|
@@ -822,32 +687,6 @@ This API is used to set the default request rate limit to 5 requests/second.
|
|
|
822
687
|
this.request("RecognizeBrazilCommonOCR", req, resp, cb);
|
|
823
688
|
}
|
|
824
689
|
|
|
825
|
-
/**
|
|
826
|
-
* This API is used to detect and recognize Chinese and English forms in images. It can return the text content of each cell and save the recognition result as Excel.
|
|
827
|
-
|
|
828
|
-
This API is not fully available for the time being. For more information, please contact your [Tencent Cloud sales rep](https://intl.cloud.tencent.com/contact-sales).
|
|
829
|
-
* @param {TableOCRRequest} req
|
|
830
|
-
* @param {function(string, TableOCRResponse):void} cb
|
|
831
|
-
* @public
|
|
832
|
-
*/
|
|
833
|
-
TableOCR(req, cb) {
|
|
834
|
-
let resp = new TableOCRResponse();
|
|
835
|
-
this.request("TableOCR", req, resp, cb);
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
/**
|
|
839
|
-
* This API is used to recognize key fields on the front and back sides of a residence permit for Hong Kong, Macao, or Taiwan residents, including name, gender, date of birth, address, ID number, issuing authority, validity period, number of issues, and permit number. It can be used for residence permit OCR in scenarios such as bank account opening and user registration.
|
|
840
|
-
|
|
841
|
-
A maximum of 20 requests can be initiated per second for this API.
|
|
842
|
-
* @param {HmtResidentPermitOCRRequest} req
|
|
843
|
-
* @param {function(string, HmtResidentPermitOCRResponse):void} cb
|
|
844
|
-
* @public
|
|
845
|
-
*/
|
|
846
|
-
HmtResidentPermitOCR(req, cb) {
|
|
847
|
-
let resp = new HmtResidentPermitOCRResponse();
|
|
848
|
-
this.request("HmtResidentPermitOCR", req, resp, cb);
|
|
849
|
-
}
|
|
850
|
-
|
|
851
690
|
/**
|
|
852
691
|
* This interface supports identification of the front and back of Mexican Voter ID Card. The default interface request frequency limit is 5 times per second.
|
|
853
692
|
* @param {RecognizeMexicoVTIDRequest} req
|
|
@@ -860,44 +699,16 @@ A maximum of 20 requests can be initiated per second for this API.
|
|
|
860
699
|
}
|
|
861
700
|
|
|
862
701
|
/**
|
|
863
|
-
* This
|
|
864
|
-
|
|
865
|
-
A maximum of 10 requests can be initiated per second for this API.
|
|
866
|
-
* @param {LicensePlateOCRRequest} req
|
|
867
|
-
* @param {function(string, LicensePlateOCRResponse):void} cb
|
|
868
|
-
* @public
|
|
869
|
-
*/
|
|
870
|
-
LicensePlateOCR(req, cb) {
|
|
871
|
-
let resp = new LicensePlateOCRResponse();
|
|
872
|
-
this.request("LicensePlateOCR", req, resp, cb);
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
/**
|
|
876
|
-
* This API supports identifying and extracting field information in structured scenarios such as complex scenarios and multiple formats. Key scenarios include: finance, health care, transportation, travel, insurance. Click [experience now](https://ocrdemo.cloud.tencent.com/).
|
|
702
|
+
* This interface recognizes all fields on both sides of the Mainland China Resident Identity Card (second-generation), including name, gender, ethnicity, date of birth, address, ID number, issuing authority, and validity period, with an accuracy of over 99%.
|
|
877
703
|
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
* @param {ExtractDocMultiRequest} req
|
|
882
|
-
* @param {function(string, ExtractDocMultiResponse):void} cb
|
|
883
|
-
* @public
|
|
884
|
-
*/
|
|
885
|
-
ExtractDocMulti(req, cb) {
|
|
886
|
-
let resp = new ExtractDocMultiResponse();
|
|
887
|
-
this.request("ExtractDocMulti", req, resp, cb);
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
/**
|
|
891
|
-
* This API is used to recognize various types of seals, including invoice seals and finance seals. It is suitable for scenarios such as official document and invoice/ticket OCR.
|
|
892
|
-
|
|
893
|
-
A maximum of 5 requests can be initiated per second for this API.
|
|
894
|
-
* @param {SealOCRRequest} req
|
|
895
|
-
* @param {function(string, SealOCRResponse):void} cb
|
|
704
|
+
In addition, the interface provides additional features for various scenarios, such as ID card and portrait photo cropping, along with five alarm detections (see table below).<table style="width:650px"> <thead> <tr> <th width="150">Value-added ability</th> <th width="500">Ability items</th> </tr> </thead> <tbody> <tr> <td rowspan="9">Alarm function</td> </tr> <tr> <td>ID card photocopy warning</td> </tr> <tr> <td>ID card on-screen display warning</td> </tr> <tr> <td>Alarm for occlusion in the ID card frame</td> </tr> <tr> <td>ID card reflective warning</td> </tr> <tr> <td>Blurry picture warning</td> </tr> </tbody> </table> Default rate limit: 20 requests/second.
|
|
705
|
+
* @param {RecognizeMainlandIDCardOCRRequest} req
|
|
706
|
+
* @param {function(string, RecognizeMainlandIDCardOCRResponse):void} cb
|
|
896
707
|
* @public
|
|
897
708
|
*/
|
|
898
|
-
|
|
899
|
-
let resp = new
|
|
900
|
-
this.request("
|
|
709
|
+
RecognizeMainlandIDCardOCR(req, cb) {
|
|
710
|
+
let resp = new RecognizeMainlandIDCardOCRResponse();
|
|
711
|
+
this.request("RecognizeMainlandIDCardOCR", req, resp, cb);
|
|
901
712
|
}
|
|
902
713
|
|
|
903
714
|
/**
|
|
@@ -958,19 +769,6 @@ As shown in the table below. <table style="width:650px"> <thead> <tr> <th width=
|
|
|
958
769
|
this.request("RecognizeSingaporeIDCardOCR", req, resp, cb);
|
|
959
770
|
}
|
|
960
771
|
|
|
961
|
-
/**
|
|
962
|
-
* This API is used to detect and recognize key fields such as the card number, bank information, and expiration date on mainstream bank cards in Mainland China.
|
|
963
|
-
|
|
964
|
-
This API is not fully available for the time being. For more information, please contact your [Tencent Cloud sales rep](https://intl.cloud.tencent.com/contact-sales).
|
|
965
|
-
* @param {BankCardOCRRequest} req
|
|
966
|
-
* @param {function(string, BankCardOCRResponse):void} cb
|
|
967
|
-
* @public
|
|
968
|
-
*/
|
|
969
|
-
BankCardOCR(req, cb) {
|
|
970
|
-
let resp = new BankCardOCRResponse();
|
|
971
|
-
this.request("BankCardOCR", req, resp, cb);
|
|
972
|
-
}
|
|
973
|
-
|
|
974
772
|
/**
|
|
975
773
|
* This API is used to recognize all fields on the front of a mainland travel permit for Hong Kong, Macao, or Taiwan residents: name in Chinese, name in English, gender, date of birth, issuing authority, validity period, document number, place of issuance, number of issues, and document type.
|
|
976
774
|
|
|
@@ -985,14 +783,14 @@ A maximum of 20 requests can be initiated per second for this API.
|
|
|
985
783
|
}
|
|
986
784
|
|
|
987
785
|
/**
|
|
988
|
-
* This API is used to recognize a
|
|
989
|
-
* @param {
|
|
990
|
-
* @param {function(string,
|
|
786
|
+
* This API is used to recognize a Philippine SSSID/UMID card.
|
|
787
|
+
* @param {RecognizePhilippinesSssIDOCRRequest} req
|
|
788
|
+
* @param {function(string, RecognizePhilippinesSssIDOCRResponse):void} cb
|
|
991
789
|
* @public
|
|
992
790
|
*/
|
|
993
|
-
|
|
994
|
-
let resp = new
|
|
995
|
-
this.request("
|
|
791
|
+
RecognizePhilippinesSssIDOCR(req, cb) {
|
|
792
|
+
let resp = new RecognizePhilippinesSssIDOCRResponse();
|
|
793
|
+
this.request("RecognizePhilippinesSssIDOCR", req, resp, cb);
|
|
996
794
|
}
|
|
997
795
|
|
|
998
796
|
/**
|
|
@@ -1006,19 +804,6 @@ A maximum of 20 requests can be initiated per second for this API.
|
|
|
1006
804
|
this.request("RecognizePhilippinesDrivingLicenseOCR", req, resp, cb);
|
|
1007
805
|
}
|
|
1008
806
|
|
|
1009
|
-
/**
|
|
1010
|
-
* This API is used to recognize fields from cards, documents, bills, forms, contracts, and other structured information. It is flexible and efficient to use, without any configuration required. This API is suitable for recognizing structured information.
|
|
1011
|
-
|
|
1012
|
-
A maximum of 10 requests can be initiated per second for this API.
|
|
1013
|
-
* @param {SmartStructuralProRequest} req
|
|
1014
|
-
* @param {function(string, SmartStructuralProResponse):void} cb
|
|
1015
|
-
* @public
|
|
1016
|
-
*/
|
|
1017
|
-
SmartStructuralPro(req, cb) {
|
|
1018
|
-
let resp = new SmartStructuralProResponse();
|
|
1019
|
-
this.request("SmartStructuralPro", req, resp, cb);
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
807
|
/**
|
|
1023
808
|
* Indonesian identity card recognition
|
|
1024
809
|
|
|
@@ -1055,163 +840,18 @@ Default API request rate limit: 5 requests/second.
|
|
|
1055
840
|
}
|
|
1056
841
|
|
|
1057
842
|
/**
|
|
1058
|
-
* This API
|
|
1059
|
-
* @param {RecognizeKoreanDrivingLicenseOCRRequest} req
|
|
1060
|
-
* @param {function(string, RecognizeKoreanDrivingLicenseOCRResponse):void} cb
|
|
1061
|
-
* @public
|
|
1062
|
-
*/
|
|
1063
|
-
RecognizeKoreanDrivingLicenseOCR(req, cb) {
|
|
1064
|
-
let resp = new RecognizeKoreanDrivingLicenseOCRResponse();
|
|
1065
|
-
this.request("RecognizeKoreanDrivingLicenseOCR", req, resp, cb);
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
/**
|
|
1069
|
-
* This API is used to recognize various types of invoices or tickets in an image or PDF file. You can also specify a type. 14 types of standard expense reimbursement invoices are supported, including value-added tax (VAT) invoice (special, general, roll, blockchain, and toll), fully digitalized electronic invoice (special and general), non-tax revenue invoice (general receipt and general payment voucher), quota invoice, general machine-printed invoice, car sales invoice (motor vehicle sales invoice and used car invoice), train ticket, taxi receipt, itinerary/receipt of e-ticket for air transportation, bus ticket, ship ticket, toll receipt, and medical invoice (inpatient and outpatient). This API can also be used for intelligent recognition of other types of invoices. To try now, click [here](https://intl.cloud.tencent.com/product/ocr?from_cn_redirect=1).
|
|
1070
|
-
|
|
1071
|
-
A maximum of 5 requests can be initiated per second for this API.
|
|
1072
|
-
|
|
843
|
+
* This API supports identifying and extracting field information in structured scenarios such as complex scenarios and multiple formats. Key scenarios include: finance, health care, transportation, travel, insurance. Click [experience now](https://ocrdemo.cloud.tencent.com/).
|
|
1073
844
|
|
|
1074
|
-
|
|
1075
|
-
<table style="width:715px">
|
|
1076
|
-
<thead>
|
|
1077
|
-
<tr>
|
|
1078
|
-
<th style="width:200px">SubType</th>
|
|
1079
|
-
<th style="width:200px">TypeDescription</th>
|
|
1080
|
-
<th >Type</th>
|
|
1081
|
-
</tr>
|
|
1082
|
-
</thead>
|
|
1083
|
-
<tbody>
|
|
1084
|
-
<tr>
|
|
1085
|
-
<td> VatSpecialInvoice</td>
|
|
1086
|
-
<td> Special VAT invoice </td>
|
|
1087
|
-
<td> 3 </td>
|
|
1088
|
-
</tr>
|
|
1089
|
-
<tr>
|
|
1090
|
-
<td> VatCommonInvoice</td>
|
|
1091
|
-
<td> General VAT invoice </td>
|
|
1092
|
-
<td> 3 </td>
|
|
1093
|
-
</tr>
|
|
1094
|
-
<tr>
|
|
1095
|
-
<td> VatElectronicCommonInvoice </td>
|
|
1096
|
-
<td> Electronic general VAT invoice </td>
|
|
1097
|
-
<td> 3 </td>
|
|
1098
|
-
</tr>
|
|
1099
|
-
<tr>
|
|
1100
|
-
<td> VatElectronicSpecialInvoice </td>
|
|
1101
|
-
<td> Electronic special VAT invoice </td>
|
|
1102
|
-
<td> 3 </td>
|
|
1103
|
-
</tr>
|
|
1104
|
-
<tr>
|
|
1105
|
-
<td> VatElectronicInvoiceBlockchain</td>
|
|
1106
|
-
<td> Blockchain electronic invoice </td>
|
|
1107
|
-
<td> 3 </td>
|
|
1108
|
-
</tr>
|
|
1109
|
-
<tr>
|
|
1110
|
-
<td> VatElectronicInvoiceToll</td>
|
|
1111
|
-
<td> Electronic general VAT invoice (toll)</td>
|
|
1112
|
-
<td> 3 </td>
|
|
1113
|
-
</tr>
|
|
1114
|
-
<tr>
|
|
1115
|
-
<td> VatElectronicSpecialInvoiceFull</td>
|
|
1116
|
-
<td> Electronic invoice (special)</td>
|
|
1117
|
-
<td> 16 </td>
|
|
1118
|
-
</tr>
|
|
1119
|
-
<tr>
|
|
1120
|
-
<td> VatElectronicInvoiceFull</td>
|
|
1121
|
-
<td> Electronic invoice (general) </td>
|
|
1122
|
-
<td> 16 </td>
|
|
1123
|
-
</tr>
|
|
1124
|
-
<tr>
|
|
1125
|
-
<td> MotorVehicleSaleInvoice </td>
|
|
1126
|
-
<td> Motor vehicle sales invoice </td>
|
|
1127
|
-
<td> 12 </td>
|
|
1128
|
-
</tr>
|
|
1129
|
-
<tr>
|
|
1130
|
-
<td> UsedCarPurchaseInvoice </td>
|
|
1131
|
-
<td> Used car invoice </td>
|
|
1132
|
-
<td> 12 </td>
|
|
1133
|
-
</tr>
|
|
1134
|
-
<tr>
|
|
1135
|
-
<td> VatInvoiceRoll </td>
|
|
1136
|
-
<td> General VAT invoice (roll) </td>
|
|
1137
|
-
<td> 11 </td>
|
|
1138
|
-
</tr>
|
|
1139
|
-
<tr>
|
|
1140
|
-
<td> TaxiTicket </td>
|
|
1141
|
-
<td> Taxi receipt </td>
|
|
1142
|
-
<td> 0 </td>
|
|
1143
|
-
</tr>
|
|
1144
|
-
<tr>
|
|
1145
|
-
<td> QuotaInvoice </td>
|
|
1146
|
-
<td> Quota invoice </td>
|
|
1147
|
-
<td> 1 </td>
|
|
1148
|
-
</tr>
|
|
1149
|
-
<tr>
|
|
1150
|
-
<td> TrainTicket </td>
|
|
1151
|
-
<td> Train ticket </td>
|
|
1152
|
-
<td> 2 </td>
|
|
1153
|
-
</tr>
|
|
1154
|
-
<tr>
|
|
1155
|
-
<td> AirTransport </td>
|
|
1156
|
-
<td> Itinerary/Receipt of e-ticket for air transportation </td>
|
|
1157
|
-
<td> 5 </td>
|
|
1158
|
-
</tr>
|
|
1159
|
-
<tr>
|
|
1160
|
-
<td> MachinePrintedInvoice </td>
|
|
1161
|
-
<td> General machine-printed invoice </td>
|
|
1162
|
-
<td> 8 </td>
|
|
1163
|
-
</tr>
|
|
1164
|
-
<tr>
|
|
1165
|
-
<td> BusInvoice </td>
|
|
1166
|
-
<td> Bus ticket </td>
|
|
1167
|
-
<td> 9 </td>
|
|
1168
|
-
</tr>
|
|
1169
|
-
<tr>
|
|
1170
|
-
<td> ShippingInvoice </td>
|
|
1171
|
-
<td> Ship ticket </td>
|
|
1172
|
-
<td> 10 </td>
|
|
1173
|
-
</tr>
|
|
1174
|
-
<tr>
|
|
1175
|
-
<td> NonTaxIncomeGeneralBill </td>
|
|
1176
|
-
<td> General receipt for non-tax revenue </td>
|
|
1177
|
-
<td> 15 </td>
|
|
1178
|
-
</tr>
|
|
1179
|
-
<tr>
|
|
1180
|
-
<td> NonTaxIncomeElectronicBill </td>
|
|
1181
|
-
<td> General payment voucher for non-tax revenue (electronic) </td>
|
|
1182
|
-
<td> 15 </td>
|
|
1183
|
-
</tr>
|
|
1184
|
-
<tr>
|
|
1185
|
-
<td> TollInvoice </td>
|
|
1186
|
-
<td> Toll receipt </td>
|
|
1187
|
-
<td> 13 </td>
|
|
1188
|
-
</tr>
|
|
1189
|
-
<tr>
|
|
1190
|
-
<td> OtherInvoice </td>
|
|
1191
|
-
<td> Other </td>
|
|
1192
|
-
<td> -1 </td>
|
|
1193
|
-
</tr>
|
|
1194
|
-
</tbody>
|
|
1195
|
-
</table>
|
|
1196
|
-
* @param {RecognizeGeneralInvoiceRequest} req
|
|
1197
|
-
* @param {function(string, RecognizeGeneralInvoiceResponse):void} cb
|
|
1198
|
-
* @public
|
|
1199
|
-
*/
|
|
1200
|
-
RecognizeGeneralInvoice(req, cb) {
|
|
1201
|
-
let resp = new RecognizeGeneralInvoiceResponse();
|
|
1202
|
-
this.request("RecognizeGeneralInvoice", req, resp, cb);
|
|
1203
|
-
}
|
|
845
|
+
This API is used to set the alias SmartStructuralPro.
|
|
1204
846
|
|
|
1205
|
-
|
|
1206
|
-
*
|
|
1207
|
-
|
|
1208
|
-
* @param {RecognizeMainlandIDCardOCRRequest} req
|
|
1209
|
-
* @param {function(string, RecognizeMainlandIDCardOCRResponse):void} cb
|
|
847
|
+
The default API request rate limit is 5 requests per second.
|
|
848
|
+
* @param {ExtractDocMultiRequest} req
|
|
849
|
+
* @param {function(string, ExtractDocMultiResponse):void} cb
|
|
1210
850
|
* @public
|
|
1211
851
|
*/
|
|
1212
|
-
|
|
1213
|
-
let resp = new
|
|
1214
|
-
this.request("
|
|
852
|
+
ExtractDocMulti(req, cb) {
|
|
853
|
+
let resp = new ExtractDocMultiResponse();
|
|
854
|
+
this.request("ExtractDocMulti", req, resp, cb);
|
|
1215
855
|
}
|
|
1216
856
|
|
|
1217
857
|
|