detect animal poses in react native (ios only)
npm i -S vision-camera-plugin-animal-pose
Add the plugin to your babel.config.js
:
module.exports = {
plugins: [
[
'react-native-reanimated/plugin',
{
globals: ['__detectAnimals'],
},
],
// ...
Note: You have to restart metro-bundler for changes in the
babel.config.js
file to take effect.
import { detectAnimals } from "vision-camera-plugin-animal-pose";
// ...
const frameProcessor = useFrameProcessor((frame) => {
'worklet';
const animals = detectAnimals(frame);
}, []);
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library