609807, Disclosed is a method for monitoring the filling of a capsule with a medicament. The capsule is filled with a predefined filling mass of a predefined closed contour of the medicament. The contour of the filling mass in a part of the capsule is determined from a digital imaging recording of that part. The contour is analysed in order to assess the filling operation in comparison with a predefined contour. External influences on the image properties may be compensated for by controlling the optical system.