Aiming at the problem of effectively recycling waste beverage containers, an automatic green recycling technique based on the optical image inspection is proposed. The basic principle and realization steps of the automatic green recycling technique are expounded. By using the optical image inspection technique and object contour recognition technique, the waste beverage containers are classified from different manufactures. The problem of waste beverage containers automatic recycling is solved, the cost of retailers is reduced and the waste beverage containers are recycled effectively. This automatic green recycling technique is significant for the recycling economy and sustainable development.