11import React , { forwardRef , useCallback , useEffect , useRef , useState } from 'react' ;
2- import './GestureOverlay .css' ;
2+ import './GestureDetection .css' ;
33import { useAppMessage , useLocalParticipant } from '@daily-co/daily-react' ;
44
55import * as fp from 'fingerpose' ;
@@ -14,8 +14,8 @@ import thumbsDownGesture from './gestures/ThumbsDown';
1414import victoryGesture from './gestures/Victory' ;
1515import vulcanGesture from './gestures/Vulcan' ;
1616
17- import useModel from './hooks/useModel' ;
18- import HandPoseLoader from './models/HandPose' ;
17+ import useModel from '../.. /hooks/useModel' ;
18+ import HandPoseLoader from '../.. /models/HandPose' ;
1919
2020const landmarkColors = {
2121 thumb : 'red' ,
@@ -50,7 +50,7 @@ const knownGestures = [
5050 vulcanGesture ,
5151] ;
5252
53- const GestureOverlay = forwardRef ( ( props , ref ) => {
53+ const GestureDetection = forwardRef ( ( props , ref ) => {
5454 const estimator = new fp . GestureEstimator ( knownGestures ) ;
5555 const { modelLoaded, modelRef } = useModel ( 'webgl' , HandPoseLoader ) ;
5656
@@ -228,4 +228,4 @@ const GestureOverlay = forwardRef((props, ref) => {
228228 </ >
229229 ) ;
230230} ) ;
231- export default GestureOverlay ;
231+ export default GestureDetection ;
0 commit comments