From 63a5cd2ea64c02b0b3f85a966d460439dda9c3d4 Mon Sep 17 00:00:00 2001 From: AmyangXYZ Date: Tue, 24 Sep 2024 14:04:26 -0400 Subject: [PATCH] no record if no result --- src/Video.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Video.tsx b/src/Video.tsx index be69c24..ac688d6 100644 --- a/src/Video.tsx +++ b/src/Video.tsx @@ -202,7 +202,7 @@ function Video({ ) { lastTime = videoRef.current.currentTime holisticLandmarkerRef.current!.detectForVideo(videoRef.current, performance.now(), (result) => { - if (isRecordingRef.current) { + if (isRecordingRef.current && result.poseWorldLandmarks[0]) { landmarkHistoryRef.current.push(result) }