Empty large volume parenteral (LVP) bottle has irregular shape and narrow opening, and its detection accuracy of the foreign substances at the bottom is higher than that of ordinary packaging bottles. The current traditional detection method for the bottom of LVP bottles is to directly use manual visual inspection, which involves high labor intensity and is prone to visual fatigue and quality fluctuations, resulting in limited applicability for the detection of the bottom of LVP bottles. A geometric constraint-based detection model (GCBDM) has been proposed, which combines the imaging model and the shape characteristics of the bottle to construct a constraint model of the imaging parameters, according to the detection accuracy and the field of view. Then, the imaging model is designed and optimized for the detection. Further, the generalized GCBDM has been adopted to different bottle bottom detection scenarios, such as cough syrup and capsule medicine bottles by changing the target parameters of the model. The GCBDM, on the one hand, can avoid the information at the bottom being blocked by the narrow opening in the imaging optical path. On the other hand, by calculating the maximum position deviation between the center of visual inspection and the center of the bottom, it can provide the basis for the accuracy design of the transmission mechanism in the inspection, thus further ensuring the stability of the detection.