new with online tf model
import React, { useEffect, useRef } from 'react'; import { View, StyleSheet, Dimensions, Image } from 'react-native'; import VLCPlayer from 'react-native-vlc-player'; import * as tf from '@tensorflow/tfjs'; import { fetch } from '@tensorflow/tfjs-react-native'; const ObjectDetection = () => { const vlcPlayerRef = useRef(null); const modelRef = useRef(null); const streamingRef = useRef(false); useEffect(() => { const loadModel = async () => { try { await tf.ready(); modelRef.current = await tf.loadGraphModel( fetch( 'https://tfhub.dev/tensorflow/ssd_mobilenet_v2/2/default/1', { method: 'GET' } ) ); streamingRef.current = true; } catch ...