A multi-task network for the fusion of detection and depth estimation