This paper proposes a novel method for vehicle speed measurement and discrimination of vehicle types using the results of vehicle detection from traffic surveillance video. The proposed method adapts to the current lighting conditions by automatically switching between vehicle body detection and headlight detection. This automatic switching approach allows the proposed method to be applied in rapidly changing lighting conditions (e.g. twilight), thereby increasing the robustness of the method than using luminance histogram.