Dear all,
I am trying to detect hand's palm positions and draw the palm positions on the image by circles using OpenCV.
Now I get hand's palm positions in 3D space as below:
// Get hand position
Leap::Frame frame = controller.frame();
Leap::HandList hands = frame.hands();
std::vector Positions;
int hands_size = hands.count();
for(int i=0; i<hands_size; i++){
Leap::Hand hand = hands[i];
Leap::Vector position = hand.palmPosition();
Positions.push_back(position);
}
However, to draw the palm position on image, i have to convert 3D coordinate to 2D coordinate. So do you know how to draw the palm position by red circles on image as the photo below?
Thank you so much for your help!
Best,
created
Sep '18
last reply
Oct '18
- 2
replies
- 1.2k
views
- 1
user
- 3
links