0.0.3 • Published 3 years ago

capacitor-plugin-multi-camera v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

capacitor-plugin-multi-camera

多功能相机,预览、百度OCR、人脸检测等功能

Install

npm install capacitor-plugin-multi-camera
npx cap sync

API

startPreview(...)

startPreview(options: StartOption) => Promise<void>
ParamType
optionsStartOption

stopPreview()

stopPreview() => Promise<void>

flip()

flip() => Promise<void>

capture(...)

capture(options: CaptureOption) => Promise<CaptureResult>
ParamType
optionsCaptureOption

Returns: Promise<CaptureResult>


startFaceDetection()

startFaceDetection() => Promise<void>

stopFaceDetection()

stopFaceDetection() => Promise<void>

startIDCardDetection(...)

startIDCardDetection(options: IDCardDetectionOption) => Promise<void>
ParamType
optionsIDCardDetectionOption

stopIDCardDetection()

stopIDCardDetection() => Promise<void>

Interfaces

StartOption

PropType
cameraCameraType
toBackboolean
widthnumber
heightnumber
xnumber
ynumber

CaptureResult

PropType
datastring
pathstring

CaptureOption

PropType
qualitynumber
storeToFileboolean

IDCardDetectionOption

PropType
typeIDCardType

Type Aliases

CameraType

相机选项

'back' | 'front'

IDCardType

'back' | 'front'

0.0.3

3 years ago

0.0.2

3 years ago