rn-mlkit-object-detection

0.1.2 • Public • Published

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

  1. Android examples
  2. IOS examples

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Package Sidebar

Install

npm i rn-mlkit-object-detection

Weekly Downloads

8

Version

0.1.2

License

MIT

Unpacked Size

353 kB

Total Files

57

Last publish

Collaborators

  • rahmanazhar