Daniil-Osokin / lightweight-human-pose-estimation-3d-demo.pytorch

Real-time 3D multi-person pose estimation demo in PyTorch. OpenVINO backend can be used for fast inference on CPU.
Apache License 2.0
656 stars 138 forks source link

debugging 3D output #28

Closed aswin-datakalp closed 4 years ago

aswin-datakalp commented 4 years ago

HI @Daniil-Osokin

The parsing function returns something like :

[ 40.361755 -217.88615 124.155304] [ 47.1129 -230.51137 136.9353 ] [ 34.38633 -221.30576 75.94971] [ 51.526398 -209.39973 121.390335] [ 52.525818 -207.54752 98.20388 ] [ 50.982742 -218.03622 92.99812 ] [ 41.953068 -217.2575 73.95691 ] [ 40.428207 -218.8851 41.116997] [ 34.975197 -216.91167 6.3523984]

Can you help me in how to debug this? And this is in which format like x, y, z order ?

Also how to get the 2D values from this 3D pixel ??

Daniil-Osokin commented 4 years ago

Hi, at the line 97 you can get the 3D pose coordinates in camera space and 2D pose coordinates in pixels inside the image. So if you need just 2D coordinates, take it here. Then 3D pose is mapped into world coordinates space and projected to draw the scene.

Daniil-Osokin commented 4 years ago

Hope, it helped.