Intention recognition of pedestrians and cyclists by 2D pose estimation