1.0.8 • Published 2 years ago
@psycheangel/vision-camera-object-detection v1.0.8
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);
}, []);