rn-mlkit-object-detection
v0.1.2
Published
Standalone MLKit object detection for React Native
Downloads
68
Maintainers
Readme
rn-mlkit-object-detection
Google on-device MLKit object detection for React Native
Installation
NPM
npm install rn-mlkit-object-detection
Yarn
yarn add rn-mlkit-object-detection
Usage
import RNMLKitObjectDetection, { ObjectDetectorMode } from 'rn-mlkit-object-detection';
const result = await RNMLKitObjectDetection.detectFromUri(uri, {
detectorMode: ObjectDetectorMode.SINGLE_IMAGE,
shouldEnableClassification: true,
shouldEnableMultipleObjects: true,
});
// OR detect with default config
const result = await RNMLKitObjectDetection.detectFromUri(uri);
To-do
- Android examples
- IOS examples
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT