0.0.4 • Published 2 years ago

vision-camera-image-labeling v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

vision-camera-image-labeling

A VisionCamera Frame Processor Plugin to label images using MLKit Vision Image Labeling.

Installation

npm install vision-camera-image-labeling
cd ios && pod install

Add the plugin to your babel.config.js:

module.exports = {
  plugins: [
    [
      'react-native-reanimated/plugin',
      {
        globals: ['__labelImage'],
      },
    ],

    // ...

Note: You have to restart metro-bundler for changes in the babel.config.js file to take effect.

Usage

import { labelImage } from 'vision-camera-image-labeler';

// ...

const frameProcessor = useFrameProcessor((frame) => {
  'worklet';
  const labels = labelImage(frame);
}, []);

Contributing

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

License

MIT

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago