longcw / crossview_3d_pose_tracking

Dataset of the paper "Cross-View Tracking for Multi-Human 3D Pose Estimation at over 100 FPS"
141 stars 18 forks source link

how to set z_worlds #6

Open azuryl opened 4 years ago

azuryl commented 4 years ago

Dear longcw

thank your great job now I want to use back_project function to realize a single point in the image plane correspods to a ray in 3D space

in calibration.py I defined def project(self, points_3d, camera_id): camera = self.cameras[camera_id] # type: Camera return camera.back_project(points_2d, z_worlds)

can you kindly tell me how to set z_worlds, I have tired set z_worlds=[ ] bur there are no output in points_3d

Thank you

longcw commented 4 years ago

The ray back-projected by a 2D point can be determined by two 3D points, the one is the camera location we already have, the other is a point on the ray. So you can use the back_project function to select that point with any z (z != camera location z).

Here back-project means to get the 3D point of a 2D point in one image when we know the height of the 3D point (z_world).

azuryl commented 4 years ago

Dear longcw

thank you reply do you have example which use the back_project function to select that point with any z

Thank you