Skip to content

Commit

Permalink
no record if no result
Browse files Browse the repository at this point in the history
  • Loading branch information
AmyangXYZ committed Sep 24, 2024
1 parent 7753bbd commit 63a5cd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 63a5cd2

Please sign in to comment.