Risk-Aware Planning by Confidence Estimation using Deep Learning-Based Perception