# How to project points in to 3 dimension?

**URL:** <https://forum.opencv.org/t/how-to-project-points-in-to-3-dimension/4808>\
**Category:** Python\
**Tags:** calib3d\
**Created:** [August 17, 2021, 4:18am UTC](https://forum.opencv.org/t/how-to-project-points-in-to-3-dimension/4808 "2021-08-17T04:18:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lioo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/lioo/32/2934_2.png) [@lioo](https://forum.opencv.org/u/lioo)\
**Post date:** [August 17, 2021, 4:18am UTC](https://forum.opencv.org/t/how-to-project-points-in-to-3-dimension/4808/1 "2021-08-17T04:18:16Z")

</div>

We can project points to a plane with cv.projectpoints and camera parameters. I want to get the new points coordinates with the camera parameters. And my problem is how to get projected points in 3 dimensions with the same xy coordinates as it in cv2.projectpoints.

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [August 17, 2021, 7:06am UTC](https://forum.opencv.org/t/how-to-project-points-in-to-3-dimension/4808/2 "2021-08-17T07:06:23Z")

</div>

we need more info to help, code, where do your points / matrices come from, etc

> [@lioo](#):
>
> And my problem is how to get projected points in 3 dimensions with the same xy coordinates as it in cv2.projectpoints

why do you expect the same xy in 3d ?

---

<div class="post-metadata">

**Author:** ![lioo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/lioo/32/2934_2.png) [@lioo](https://forum.opencv.org/u/lioo)\
**Post date:** [August 17, 2021, 7:14am UTC](https://forum.opencv.org/t/how-to-project-points-in-to-3-dimension/4808/4 "2021-08-17T07:14:12Z")

</div>

> [@berak](#):
>
> we need more info to help, code, where do your points / matrices come from, etc
> 
> > [@lioo](#):
> >
> > And my problem is how to get projected points in 3 dimensions with the same xy coordinates as it in cv2.projectpoints
> 
> why do you expect the same xy in 3d ?

Sorry.  
Now, I have smpl vertices, which are from a human model, and camera parameters. And I want to render human mesh matching the original image. So I need to project the smpl points to the camera coordinates. cv2.projectpoints works well in 2 dimension, so I want to get the 3d points with the same xy coordinates as it in cv2.projectpoints.
