Socket
Socket
Sign inDemoInstall

@huaweicloud/huaweicloud-sdk-ocr

Package Overview
Dependencies
Maintainers
2
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@huaweicloud/huaweicloud-sdk-ocr - npm Package Compare versions

Comparing version 3.0.44-rc to 3.0.45-rc

v1/model/IdDocumentRequestBody.d.ts

4

package.json
{
"name": "@huaweicloud/huaweicloud-sdk-ocr",
"version": "3.0.44-rc",
"version": "3.0.45-rc",
"description": "Huaweicloud SDK for ocr",

@@ -17,4 +17,4 @@ "main": "huaweicloud-sdk-ocr.js",

"dependencies": {
"@huaweicloud/huaweicloud-sdk-core": "^3.0.44-rc"
"@huaweicloud/huaweicloud-sdk-core": "^3.0.45-rc"
}
}

@@ -29,2 +29,4 @@ import { HcClient } from "@huaweicloud/huaweicloud-sdk-core/HcClient";

import { RecognizeIdCardResponse } from './model/RecognizeIdCardResponse';
import { RecognizeIdDocumentRequest } from './model/RecognizeIdDocumentRequest';
import { RecognizeIdDocumentResponse } from './model/RecognizeIdDocumentResponse';
import { RecognizeInsurancePolicyRequest } from './model/RecognizeInsurancePolicyRequest';

@@ -260,2 +262,31 @@ import { RecognizeInsurancePolicyResponse } from './model/RecognizeInsurancePolicyResponse';

/**
* 识别身份证件图像,并将识别的结构化结果返回给用户。支持多个国家的身份证、驾驶证和护照,具体国家和证件列表详见表1。
*
* **表1支持国家列表**
*
* | 国家/地区 | 英文名称 | 国家代码 country_region | 支持证件类型 id_type |
* | ---------- | ----------- | ------------------------ | ----------------------- |
* | 越南 | Vietnam | VNM | PP、DL、ID |
* | 印度 | India | IND | PP |
* | 菲律宾 | Philippines | PHL | PP、DL、ID(仅支持UUMID) |
* | 阿尔巴尼亚 | Albania | ALB | PP、DL、ID |
* | 巴西 | BRAZIL | BRA | PP |
* | 印度尼西亚 | INDONESIA | IDN | PP |
* | 马来西亚 | MALAYSIA | MYS | PP |
* | 尼日利亚 | NIGERIA | NGA | PP |
* | 巴基斯坦 | PAKISTAN | PAK | PP |
* | 俄罗斯 | RUSSIA | RUS | PP(仅支持国际标准版本) |
* | 中国台湾 | TAIWAN | TWN | PP |
* | 乌克兰 | UKRAINE | UKR | PP |
*
* 详细说明请参考华为云API Explorer。
* Please refer to Huawei cloud API Explorer for details.
*
* @summary 通用证件识别
* @param {IdDocumentRequestBody} idDocumentRequestBody This is a General Identity Document Body Object
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
recognizeIdDocument(recognizeIdDocumentRequest?: RecognizeIdDocumentRequest): Promise<RecognizeIdDocumentResponse>;
/**
* 识别保险单图片上的文字信息,并将识别的结构化结果返回给用户。支持对多板式保险单的扫描图片及手机照片进行结构化信息提取。

@@ -778,2 +809,34 @@ *

/**
* 识别身份证件图像,并将识别的结构化结果返回给用户。支持多个国家的身份证、驾驶证和护照,具体国家和证件列表详见表1。
*
* **表1支持国家列表**
*
* | 国家/地区 | 英文名称 | 国家代码 country_region | 支持证件类型 id_type |
* | ---------- | ----------- | ------------------------ | ----------------------- |
* | 越南 | Vietnam | VNM | PP、DL、ID |
* | 印度 | India | IND | PP |
* | 菲律宾 | Philippines | PHL | PP、DL、ID(仅支持UUMID) |
* | 阿尔巴尼亚 | Albania | ALB | PP、DL、ID |
* | 巴西 | BRAZIL | BRA | PP |
* | 印度尼西亚 | INDONESIA | IDN | PP |
* | 马来西亚 | MALAYSIA | MYS | PP |
* | 尼日利亚 | NIGERIA | NGA | PP |
* | 巴基斯坦 | PAKISTAN | PAK | PP |
* | 俄罗斯 | RUSSIA | RUS | PP(仅支持国际标准版本) |
* | 中国台湾 | TAIWAN | TWN | PP |
* | 乌克兰 | UKRAINE | UKR | PP |
*
* 详细说明请参考华为云API Explorer。
* Please refer to Huawei cloud API Explorer for details.
*/
recognizeIdDocument(recognizeIdDocumentRequest?: RecognizeIdDocumentRequest): {
method: string;
url: string;
contentType: string;
queryParams: {};
pathParams: {};
headers: {};
data: {};
};
/**
* 识别保险单图片上的文字信息,并将识别的结构化结果返回给用户。支持对多板式保险单的扫描图片及手机照片进行结构化信息提取。

@@ -780,0 +843,0 @@ *

@@ -7,2 +7,4 @@ export declare class OcrRegion {

static AP_SOUTHEAST_2: any;
static AP_SOUTHEAST_1: any;
static AP_SOUTHEAST_3: any;
private static STATIC_FIELDS;

@@ -9,0 +11,0 @@ private static createStaticFields;

@@ -15,2 +15,4 @@ "use strict";

map.set("ap-southeast-2", OcrRegion.AP_SOUTHEAST_2);
map.set("ap-southeast-1", OcrRegion.AP_SOUTHEAST_1);
map.set("ap-southeast-3", OcrRegion.AP_SOUTHEAST_3);
return map;

@@ -33,2 +35,4 @@ };

OcrRegion.AP_SOUTHEAST_2 = new region_1.Region("ap-southeast-2", "https://ocr.ap-southeast-2.myhuaweicloud.com");
OcrRegion.AP_SOUTHEAST_1 = new region_1.Region("ap-southeast-1", "https://ocr.ap-southeast-1.myhuaweicloud.com");
OcrRegion.AP_SOUTHEAST_3 = new region_1.Region("ap-southeast-3", "https://ocr.ap-southeast-3.myhuaweicloud.com");
OcrRegion.STATIC_FIELDS = OcrRegion.createStaticFields();

@@ -35,0 +39,0 @@ return OcrRegion;

@@ -39,2 +39,3 @@ export * from './OcrClient';

export * from './model/IdCardResult';
export * from './model/IdDocumentRequestBody';
export * from './model/IdcardVerificationResult';

@@ -98,2 +99,4 @@ export * from './model/InsuranceItem';

export * from './model/RecognizeIdCardResponse';
export * from './model/RecognizeIdDocumentRequest';
export * from './model/RecognizeIdDocumentResponse';
export * from './model/RecognizeInsurancePolicyRequest';

@@ -100,0 +103,0 @@ export * from './model/RecognizeInsurancePolicyResponse';

@@ -55,2 +55,3 @@ "use strict";

__exportStar(require("./model/IdCardResult"), exports);
__exportStar(require("./model/IdDocumentRequestBody"), exports);
__exportStar(require("./model/IdcardVerificationResult"), exports);

@@ -114,2 +115,4 @@ __exportStar(require("./model/InsuranceItem"), exports);

__exportStar(require("./model/RecognizeIdCardResponse"), exports);
__exportStar(require("./model/RecognizeIdDocumentRequest"), exports);
__exportStar(require("./model/RecognizeIdDocumentResponse"), exports);
__exportStar(require("./model/RecognizeInsurancePolicyRequest"), exports);

@@ -116,0 +119,0 @@ __exportStar(require("./model/RecognizeInsurancePolicyResponse"), exports);

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc