# cordova-plugin-firebase-mlvision

> cordova-plugin-firebase-mlvision ========================

Latest version **0.5.3** (published 2020-12-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install cordova-plugin-firebase-mlvision
pnpm add cordova-plugin-firebase-mlvision
yarn add cordova-plugin-firebase-mlvision
bun add cordova-plugin-firebase-mlvision
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.3 |
| Published | 2020-12-19 |
| First published | 2020-05-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 38.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Rubén Alonso |
| Maintainers | alon22 |
| Keywords | firebase, mlkit, ocr, ecosystem:cordova, cordova-ios, cordova-android |

## Links

- npm: https://www.npmjs.com/package/cordova-plugin-firebase-mlvision
- Repository: https://github.com/alon22/cordova-plugin-firebase-mlvision
- Homepage: https://github.com/alon22/cordova-plugin-firebase-mlvision#README
- Issues: https://github.com/alon22/cordova-plugin-firebase-mlvision/issues
- npm.io page: https://npm.io/package/cordova-plugin-firebase-mlvision

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.5.3 (latest) — 2020-12-19
- 0.5.2 — 2020-11-27
- 0.5.1 — 2020-11-27
- 0.5.0 — 2020-11-19
- 0.4.0 — 2020-11-01
- 0.3.1 — 2020-09-10
- 0.3.0 — 2020-09-08
- 0.2.3 — 2020-06-25
- 0.2.2 — 2020-05-17
- 0.2.1 — 2020-05-16

## README

cordova-plugin-firebase-mlvision
========================

Cordova plugin for Firebase MLKit Vision

<a href="https://www.buymeacoffee.com/alon22" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" style="height: 51px !important;width: 217px !important;" ></a>

# Installation
Run:
```
cordova plugin add cordova-plugin-firebase-mlvision --save
```

# Usage
## Text recognition

```js
//FILE_URI: File URI or Base64 Format
FirebaseVisionPlugin.onDeviceTextRecognizer(FILE_URI,
    (text) => {
        console.log(text);
    },
    (error) => {
        console.error(error);;
    })
})
```

## Barcode detector
```js
//FILE_URI: File URI or Base64 Format
FirebaseVisionPlugin.barcodeDetector(FILE_URI,
    (json) => {
        console.log(json);
    },
    (error) => {
        console.error(error);;
    })
})
```

## Image Labeler
```js
//FILE_URI: File URI or Base64 Format
FirebaseVisionPlugin.imageLabeler(FILE_URI,
    (json) => {
        console.log(json);
    },
    (error) => {
        console.error(error);;
    })
})
```

# Support
|   |Android|iOS|
|---|---|---|
|Text recognition|X|X|
|Face detection| | |
|Barcode scanning|X|X|
|Image labeling|X|X|
|Object detection & tracking| | |
|Landmark recognition| | |

# Know Issues
## iOS
Build iOS from command line failed in
`PhaseScriptExecution [CP] Copy Pods Resources`

Running from Xcode work correctly

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