The invention discloses a method for detecting lane change of a vehicle based on a vehicle-mounted camera. The method comprises the following steps: firstly, initializing a read-in image, and converting the read-in image to a gray space; secondly, segmenting an
sky region and a ground region of the image, and acquiring the image of the ground region; thirdly, carrying out
edge detection by utilizing the
sobel operator; fourthly, carrying out binaryzation by utilizing an Otsu's method; fifthly, restricting a fitting range, wherein hough transformation is restricted by the minimum fitting points, and extracting a lane line equation; sixthly, determining the type of a lane line; seventhly, classifying lane line
treatment results; and eighthly, determining the current lane change situation ofthe vehicle. According to the invention, the current lane change situation of the vehicle is detected by adopting the mode of images, the existing vehicle-mounted camera of a driving school is utilized, has low cost, high practicability, diversity detection data, and has accurate and objective evaluations of lane change level for students, the equipment is simple to install, and has wide applications.