Skip to content

jslok/vision-camera-image-labeler

 
 

Repository files navigation

vision-camera-image-labeler

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

Installation

npm install vision-camera-image-labeler
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

About

VisionCamera Frame Processor Plugin to label images using MLKit Vision

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 33.3%
  • Objective-C 24.0%
  • TypeScript 22.2%
  • JavaScript 11.9%
  • Ruby 7.4%
  • C 0.7%
  • Swift 0.5%