# wyt_ocr_ali

> 封装了阿里云ocr常用证件的识别方法

Latest version **1.0.0** (published 2023-07-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install wyt_ocr_ali
pnpm add wyt_ocr_ali
yarn add wyt_ocr_ali
bun add wyt_ocr_ali
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2023-07-21 |
| First published | 2023-07-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 15.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | startcaft |
| Maintainers | startcaft |
| Keywords | 阿里云OCR, 读光OCR |

## Links

- npm: https://www.npmjs.com/package/wyt_ocr_ali
- npm.io page: https://npm.io/package/wyt_ocr_ali

## Dependencies (2)

- [@alicloud/ocr-api20210707](https://npm.io/package/@alicloud/ocr-api20210707.md) ^1.1.16
- [@alicloud/darabonba-stream](https://npm.io/package/@alicloud/darabonba-stream.md) ^0.0.1

## Recent versions

- 1.0.0 (latest) — 2023-07-21

## README

# 如何使用

1. 安装依赖 `npm install wyt_ocr_ali`
2. 相关引入：
    ```
    import { 
        AliOcrClientSingle, IdCardFace, IdCardBack, BankCard, BusinessLicense 
    } from 'wyt_ocr_ali';
    ```
3. 简单示例：
    ```
    // 所有方法都定义在AliOcrClientSingle类中（目前有内地身份证识别（正反面），银行卡识别，公司营业执照识别）
    const single = AliOcrClientSingle.getInstance("你的阿里云accessKeyId","你的阿里云accessKeySecret");
    const result: BankCard = await single.readBankCard('你的银行本本地文件路径');
    if(!result){
        throw new Error('没有识别你的银行卡信息');
    }
    ```

---
_Source: https://npm.io/package/wyt_ocr_ali · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
