A cascaded deep convolutional network for vehicle logo recognition from frontal and rear images of vehicles