Adding a machine vision recognition module to the traditional smart trash can can effectively improve the efficiency of trash recognition. The intelligent garbage classification model constructed by the convolutional neural network can accurately identify the types of garbage, with an average accuracy rate of 0.87. Deploy the trained model on openMV and test it on the produced physical trash can. After the system is stable, the average time to complete a sorting and recovery is 2s. Experiments show that the system can effectively identify the types of garbage and complete garbage classification and recycling.