$ npm install @psycheangel/vision-camera-object-detection --save
$ react-native link @psycheangel/vision-camera-object-detection
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
[
'react-native-reanimated/plugin',
{
globals: [ "__detectObject"],
},
],
],
};
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);
}, []);