Closed valioiv closed 2 years ago
Hi,
Thanks for the comment. The detected keypoints are stored in landmarks.x
and landmarks.y
but they are in [0,1] range. To obtain the pixel position of the keypoints, we have to multiply by the size of the frame. This is where frame.shape
is being used.
If the frames are both the same size, this does not cause any issues in the code. However, if two different frame sizes are used, then it will cause a problem.
Good catch, I will update the code. Thanks again.
Got your point! Thank you!
Hello! First of all - great job! Very useful code! I'm just reviewing it and I've noticed something, please correct me if I'm wrong. In this snippet seems we collect
frame1_keypoints
fromframe0
instead offrame1
, am I right? I've marked it with "THIS LOOKS WEIRD" below as a comment:I've made a cross-comparison with handpose3d repo where we collect the keypoints correctly in my opinion ("THIS LOOKS GOOD"):