Detrive: Imitation Learning with Transformer Detection for End-to-End Autonomous Driving