The invention discloses a low-illumination transparent container liquid detection method based on ALLD-YOLOv6, and aims to solve the problem that a traditional liquid detection technology cannot identify transparent container liquid in a low-illumination environment. According to the method, improved OfficientRep is adopted as a
backbone network, the efficiency and accuracy of
feature extraction are optimized, and an attention mechanism is introduced to enhance the feature expression ability. Meanwhile, branches specially used for
bottle type detection are additionally arranged on the head structure of the model, the recognition capacity for different
bottle types is improved, and the robustness and accuracy of the whole detection frame in a complex environment are enhanced. The TLLD-YOLOv6 model can accurately predict the
bottle type and the
liquid content at the same time, a corresponding prediction file is generated, and the model performance is evaluated through average precision (AP) and mean average precision (mAP). The method has good performance in liquid detection in a low-illumination environment, has a wide application prospect, and is suitable for the fields of
agricultural management, environment monitoring, automatic detection and the like.