InhwanBae / GPGraph

Official Code for "Learning Pedestrian Group Representations for Multi-modal Trajectory Prediction (ECCV 2022)"
https://ihbae.com/publication/gpgraph/
MIT License
59 stars 7 forks source link

Trajectory visualization #3

Closed caaaadac closed 1 year ago

caaaadac commented 1 year ago

Hello, may I ask how the pedestrian trajectory visualization in the paper is realized? image image

InhwanBae commented 1 year ago

Hi @caaaadac!

Basically, I use Matplotlib Plot to visualize the path. For better visualization, I additionally use OpenCV VideoCapture to obtain still images and convert the generated trajectories from a meter coordinate system to an image coordinate system via a homography matrix. This conversion allows the trajectory points to be drawn in the correct head positions of pedestrians on the image.

InhwanBae commented 1 year ago

I'm closing this issue for now. Please feel free to open another issue for other questions.

haomengz commented 1 year ago

Hi @InhwanBae, thanks for the nice work! Would you mind sharing your visualization code? I am interested in reproducing the visualization.