Electronic Science and Technology ›› 2020, Vol. 33 ›› Issue (8): 16-20.doi: 10.16180/j.cnki.issn1007-7820.2020.08.003

Previous Articles     Next Articles

Garbage Image Edge Detection Based on Improved Canny Algorithm

JU Zhiyong,ZHANG Wenxin,ZHAI Chunyu   

  1. School of Optical-Electrical and Computer Engineering,University of Shanghai for Science and Technology,Shanghai 200093,China
  • Received:2019-06-16 Online:2020-08-15 Published:2020-08-24
  • Supported by:
    National Natural Science Foundation of China(81101116)


In order to improve the accuracy of garbage in the process of identification and classification, this paper proposed a method based on improved Canny algorithm for garbage image edge detection in the process of garbage image preprocessing. The method optimized the edge detection of garbage images from three aspects: traditional Canny algorithm filtering, gradient direction and threshold adaptive. For the poor performance of Gauss filter used by traditional Canny algorithm in limitation of removing gauss noise and loss of edge details, the improved gradient reciprocal weighting method was used to filter. For the problem that the Canny algorithm was easy to detect the false edge, the edge was refined by adding the direction gradient template in the process of calculating the gradient direction of the image. At the same time, the minimum error method was used to solve the limitation of manually setting the threshold, and the threshold could be adaptive. The experimental result showed that this method improved the denoising performance and obtained better edge detection effect, which provided technical support for the subsequent classification and classification of garbage images.

Key words: edge detection, Canny algorithm, gradient reciprocal weighted filtering, gradient direction, minimum error method, garbage image

CLC Number: 

  • TP391