Skip to content

psycheangel/vision-camera-object-detection

Repository files navigation

vision-camera-object-detection

Getting started

$ npm install @psycheangel/vision-camera-object-detection --save

Mostly automatic installation

$ react-native link @psycheangel/vision-camera-object-detection

module.exports = {
  presets: ['module:metro-react-native-babel-preset'],
  plugins: [
    [
      'react-native-reanimated/plugin',
      {
        globals: [ "__detectObject"],
      },
    ],
  ],
};

Usage

import {detectObject} from "vision-camera-object-detection";

// TODO: What to do with the module?
  const frameProcessor = useFrameProcessor((frame) => {
    'worklet';
   
      const values = detectObject(frame);
      console.log(values);
   
  }, []);