A device for monitoring a filling and/or closing installation and/or post-processing installation, comprising a camera system configured to take an image of a transport, infeed and/or outfeed region of the filling and/or closing installation and/or post-processing installation, and a computing unit comprising an artificial intelligence model (AI model) that is trained to detect primary packaging means in the transport, infeed and/or outfeed region and to classify detected primary packaging means, the computing unit being configured to determine on the basis of the image, by use of the AI model, in which image positions primary packaging means are present, and to assign detected primary packaging means to a class, wherein an optical axis of the camera system is inclined with respect to a vertical axis, such that the camera system can be arranged above the transport, infeed and/or outfeed region, offset from the monitored transport, infeed and/or outfeed region in such a manner that a primary air supply to the transport, infeed and/or outfeed region is not disturbed.