Semantic segmentation based on the U-Net architecture and determination of the distance between objects