To address the problem of online automatic inspection of drug liquid bottles in production line, an implantable visual inspection system is designed and the ensemble learning algorithm for detection is proposed based on multi-features fusion. A tunnel structure is designed for visual inspection system, which allows the bottles inspection to be automated without changing original processes and devices. A high precision method is proposed for vision detection of drug liquid bottles.