The screen needs to use camera and loads the machine learning model. I am using "react-native-vision-camera". And similarly load tenserflow.js
and react-native-worklets-core
.
I expect to open that screen and open the camera.
This is the screen:
import React, { useEffect, useState, useRef } from 'react';
import { View, StyleSheet, PermissionsAndroid, Platform, LogBox, Text } from 'react-native';
import { Camera, useCameraDevices, useFrameProcessor } from 'react-native-vision-camera';
import { runOnJS } from 'react-native-reanimated';
import '@tensorflow/tfjs-react-native';
import * as tf from '@tensorflow/tfjs';
import * as poseDetection from '@tensorflow-models/pose-detection';