The pharma bottle inspection machine is applicable for inspecting bottle appearance defect and fill level, the product is stably and orderly transmitted to a specific workstation with a fixed direction connecting to existing production line, and the high pixel sample images captured are transmitted to image processing software through customized LED light sources and HID industrial cameras. AI algorithms are analyzed and compared, and the system automatically determines defective and good products. The corresponding pneumatic components are controlled to eliminate defective products online, and the good products are counted and boxed to complete product inspection.