quanhua92 / human-pose-estimation-opencv

Perform Human Pose Estimation in OpenCV Using OpenPose MobileNet
Apache License 2.0
347 stars 145 forks source link

What does out represent. #18

Closed deepsurbhi8 closed 1 year ago

deepsurbhi8 commented 1 year ago

Hi, My question is: For a single image, we get the output of dimension (1194747) where what 1 and 19 represent is understood. But for a single image, what does the 4747 matrix represents? Please reply!!

quanhua92 commented 1 year ago

It should be the output of the final layer of the model. It depends on which model you are using On 30 Jan 2023 at 13:30 +0700, deepsurbhi8 @.***>, wrote:

Hi, My question is: For a single image, we get the output of dimension (1194747) where what 1 and 19 represent is understood. But for a single image, what does the 4747 matrix represents? Please reply!! — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

deepsurbhi8 commented 1 year ago

I need to estimate the 19 points you marked in the body points. For body pose, it should be coordinates in 2D. But we are getting a matrix of 47 by 47 for each point, like for the nose. How is it working?

quanhua92 commented 1 year ago

I have the code to parse the output at line 60 https://github.com/quanhua92/human-pose-estimation-opencv/blob/master/openpose.py#L60 On 30 Jan 2023 at 17:10 +0700, deepsurbhi8 @.***>, wrote:

I need to estimate the 19 points you marked in the body points. For body pose, it should be coordinates in 2D. But we are getting a matrix of 47 by 47 for each point, like for the nose. How is it working? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

quanhua92 commented 1 year ago

You need to find the maximum value and calculate the position using the image width or height with the output size On 30 Jan 2023 at 17:10 +0700, deepsurbhi8 @.***>, wrote:

I need to estimate the 19 points you marked in the body points. For body pose, it should be coordinates in 2D. But we are getting a matrix of 47 by 47 for each point, like for the nose. How is it working? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

deepsurbhi8 commented 1 year ago

Yeah! I got it. Thank You!