Skip to content

Commit

Permalink
fixed code example in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dusty-nv committed Feb 11, 2022
1 parent 0ee7116 commit 91f0a70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/posenet.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ for pose in poses:
# find the keypoint index from the list of detected keypoints
# you can find these keypoint names in the model's JSON file,
# or with net.GetKeypointName() / net.GetNumKeypoints()
left_wrist_idx = pose.FindKeypoint('left_wrist')
left_shoulder_idx = pose.FindKeypoint('left_shoulder')
left_wrist_idx = net.FindKeypoint('left_wrist')
left_shoulder_idx = net.FindKeypoint('left_shoulder')

# if the keypoint index is < 0, it means it wasn't found in the image
if left_wrist_idx < 0 or left_shoulder_idx < 0:
Expand Down

0 comments on commit 91f0a70

Please sign in to comment.