0.0.11 • Published 3 years ago
capacitor-plugin-baidu-ocr
百度OCR
Install
npm install capacitor-plugin-baidu-ocr
npx cap sync
API
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
Param | Type |
---|
options | { value: string; } |
Returns: Promise<{ value: string; }>
idCard(...)
idCard<K extends idCardOptionsType>(options: IdCardOptions) => Promise<IdCardResult[K]>
Param | Type |
---|
options | IdCardOptions |
Returns: Promise<IdCardResultK>
bankCard()
bankCard() => Promise<BankCardResult>
Returns: Promise<BankCardResult>
Interfaces
IdCardResult
Prop | Type |
---|
front | IdCardFrontResult |
back | IdCardBackResult |
IdCardFrontResult
Prop | Type |
---|
address | string |
idNumber | string |
birthday | string |
name | string |
gender | string |
ethnic | string |
IdCardBackResult
Prop | Type |
---|
signDate | string |
expiryDate | string |
issueAuthority | string |
IdCardOptions
Prop | Type |
---|
type | idCardOptionsType |
scan | boolean |
BankCardResult
Prop | Type |
---|
bankCardNumber | string |
bankName | string |
bankCardType | string |
validDate | string |
holderName | string |
Type Aliases
idCardOptionsType
'front' | 'back'