Issue when noone detected on a frame

This commit is contained in:
David PAGNON 2023-05-13 19:43:13 +02:00 committed by GitHub
parent 33e5c66ec6
commit 4b7b1d96f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,7 +181,7 @@ def blazepose_detec_func(**args):
mp_drawing.draw_landmarks(frame, results.pose_landmarks, mp_pose.POSE_CONNECTIONS, landmark_drawing_spec=mp_drawing_styles.get_default_pose_landmarks_style())
except:
print(f'No person detected by BlazePose on frame {count}')
kpt=[np.nan*3*33]
kpt=[np.nan]*3*33
# Display images
if display: