Giving that the changing light in the natural condition has negative impacts on the image segmentation of rape fields, the image of rape was processed by template match algorithm and K-means clustering algorithm to extract the rape flowers. In order to achieve the accurately segmentation of the rape flowers, firstly, creating a template library and using the template matching algorithm to locate the target area of the test image. Then, the processed image will be convert to LAB color space, and using K-means clustering algorithm to classify acc...