Text this: 3D Reconstruction of Pedestrian Trajectory with Moving Direction Learning and Optimal Gait Recognition