The invention discloses a Tibetan highland barley leaf
lesion identification method, and belongs to the field of
image processing. The method comprises the following steps of converting a preprocessedimage into an HSV
color space; performing threshold
processing on the image in an HSV color
gamut; wherein a color is light brown and dark brown, and the color in the middle is dark brown; remainingcolor setting to white, merging with an original image, setting H and S classification grades and change ranges; and counting H and S component data in the image according to a setting result, creating a
histogram, normalizing the
histogram height of the image, training a
KNN classifier by taking the normalized
histogram height and the corresponding abscissa as image features and labels, performing the same
processing on an image sample for testing, and inputting the image sample into the
KNN classifier to obtain a prediction result. According to the highland barley
lesion identification method, images of normal highland barley leaves and
lesion highland barley leaves can be well classified by filtering and denoising the images, extracting and normalizing
color space features and classifying the images by a
support vector machine, and the highland barley
lesion identification efficiency and accuracy are improved.