Skip to content

inaturalist/vision-camera-plugin-inatvision

Repository files navigation

vision-camera-plugin-inatvision

A VisionCamera Frame Processor Plugin to label images using iNaturalist's computer vision model on device.

Installation

  1. Add the plugin to your package.json file directly from GitHub, because it's not published to npm:
{
  "dependencies": {
    "vision-camera-plugin-inatvision": "github:inaturalist/vision-camera-plugin-inatvision"
  }
}
  1. Install the plugin:
npm install
cd ios && pod install
  1. Add the plugin to your babel.config.js:
module.exports = {
  plugins: [
    ['react-native-worklets-core/plugin'],

    // ...

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

Usage

import { inatVision } from "vision-camera-plugin-inatvision";

// ...

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

Contributing

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

License

MIT


Made with create-react-native-library

About

react-native-vision-camera frame processor plugin

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •