Edge Intelligence Empowered Vehicle Detection and Image Segmentation for Autonomous Vehicles