In order to detecting the moving vehicles accurately and fast in dynamic scene, this paper proposes a vehicle detection method based on optical flow clustering of feature points. Harris corner points are chosen to form a feature vector of vehicles in this method. We remove the interference corner points that are not moving based on feature matching. Then we extract the optical flow of the feature points .we remove the acnode noise and non-interesting samples and realize the separation of foreground and background by the Fuzzy U Nearest neighbor Adaptive Clustering of the optical flow. Finally, we determine whether the foreground is a vehicle by setting the threshold. The experimental results show that this algorithm is good to cover,illumination and shadow. It has a high recognition rate to vehicles in complex dynamic scene.