A real time human pose detection using machine learning model posenet in react native.
npm install react-native-human-pose
npm i react-native-human-pose react-native-webview
`
OR
`
yarn add react-native-human-pose react-native-webview
`
$3
Go to android/app/src/main/AndroidManifest.xml and add this line
`
`
$3
`
cd ios && pod install
`
Also go to ios/\/Info.plist and these lines
`
NSCameraUsageDescription
$(PRODUCT_NAME) needs access to your Camera.
`
Sample Usage
`
import React from 'react';
import HumanPose from 'react-native-human-pose';
import {View, Text} from 'react-native';const App = () => {
const onPoseDetected = (pose: any) => {
console.log('pose', pose);
};
return (
Human Pose
height={200}
width={300}
enableKeyPoints={true}
flipHorizontal={false}
isBackCamera={false}
color={'255, 0, 0'}
onPoseDetected={onPoseDetected}
/>
);
};
export default App;
``