capacitor-image-barcode-reader
v0.0.4
Published
Read all types of bar code from a image
Downloads
1
Readme
capacitor-image-barcode-reader
Read all types of bar code from a image
Install
npm install capacitor-image-barcode-reader
npx cap sync
API
readImage()
readImage() => Promise<{ content: string; }>
Returns: Promise<{ content: string; }>
Example
import { ImageBarcodeReader } from "capacitor-image-barcode-reader";
async readImage() {
await ImageBarcodeReader.readImage().then(data => {
console.log(data.content);
}).catch(err => {
console.log(err.message);
});
}