A method to detect the image edges of the images of pests in stored grain is proposed by using wavelet transform, in which the information from the image edges was selected by detecting the local maxima of the image through two-dimension wavelet transform. The computation results show that this method may not only keep the characteristics of the image edge, but also obtain the clearer image of pests in stored grain to pick up the image ch...