Object detection and recognition for UAV