In recent years, the development of autonomous vehicles has become a popular research topic. The vehicles must be able to understand a wide range of road conditions and make correct responses. One of the important techniques is to detect the location and the state of traffic light, and to produce real-time and correct recognition results. In this article, the difficulties of the traffic light detection technique are discussed and the practical solutions are described.