File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -281,15 +281,15 @@ def main():
281
281
draw_pose (kpt ,image_bgr ) # draw the poses
282
282
else :
283
283
if keypoints is None :
284
- keypoints = np .array ([[[0 , 0 ]]* len (COCO_KEYPOINT_INDEXES )])
284
+ keypoints = np .array ([[[np . nan , np . nan ]]* len (COCO_KEYPOINT_INDEXES )])
285
285
else :
286
- keypoints = np .append (keypoints , [[[0 , 0 ]]* len (COCO_KEYPOINT_INDEXES )], axis = 0 )
286
+ keypoints = np .append (keypoints , [[[np . nan , np . nan ]]* len (COCO_KEYPOINT_INDEXES )], axis = 0 )
287
287
else :
288
288
#Fill undetected frames with zero vectors
289
289
if keypoints is None :
290
- keypoints = np .array ([[[0 , 0 ]]* len (COCO_KEYPOINT_INDEXES )])
290
+ keypoints = np .array ([[[np . nan , np . nan ]]* len (COCO_KEYPOINT_INDEXES )])
291
291
else :
292
- keypoints = np .append (keypoints , [[[0 , 0 ]]* len (COCO_KEYPOINT_INDEXES )], axis = 0 )
292
+ keypoints = np .append (keypoints , [[[np . nan , np . nan ]]* len (COCO_KEYPOINT_INDEXES )], axis = 0 )
293
293
294
294
if args .showFps :
295
295
fps = 1 / (time .time ()- last_time )
You can’t perform that action at this time.
0 commit comments