head-pose-estimation icon indicating copy to clipboard operation
head-pose-estimation copied to clipboard

HeadPose Angel (SolvePNP) (euler_angle[1, 0] giving slight wrong value)

Open vasanthhr opened this issue 5 years ago • 4 comments

Hello All,

I was trying to use this get_head_pose(shape) function to get the x, y and z values of the headpose.

But I was getting slight error on 'y' value whenever the head is straight towards the camera , and it gives some negative value and this value is close to zero.

Can you suggest me how I can get the 'y' value as zero whenever headpose is straight towards camera.

vasanthhr avatar Feb 21 '19 21:02 vasanthhr

Hi @vasanthhr, I'm facing the same problem.. any luck on this?

santo4ul avatar Apr 07 '19 05:04 santo4ul

This seems to be an issue with camera calibration. After calibrating my camera and feeding the correct K[] and D[], the boxes are almost accurate.

Hope this helps.

santo4ul avatar Apr 07 '19 08:04 santo4ul

This seems to be an issue with camera calibration. After calibrating my camera and feeding the correct K[] and D[], the boxes are almost accurate.

Hope this helps.

what is K[] and D[] and how to calibrate the camera?

TheMasterRoot avatar May 10 '19 20:05 TheMasterRoot

@santo4ul @TheMasterRoot @lincolnhard @nanowhiter

Could you please suggest me what values I need to put it in k[] and D[] to get a proper value of euler_angle[1, 0] ?.

I do have another issue, I am trying to compress an image by three times(Assume initial size of an image is 640x480 and then reduced the width and height by three times so final image size becomes 213x160), but roll(poseZ) value is not proper when image gets compressed.

Please let me know solution for these two issues.

vasanthhr avatar Jun 10 '19 07:06 vasanthhr