An inspection device for inspecting containers provided with closures for checking a sealing function between the closure and a container provided therewith, wherein the closure being arranged by arrangement in the closure direction at a mouth region of the container, with a transport device for transporting the containers provided with closures along a predefined transport path, with a lighting device for illuminating the containers provided with closures at least in regions during this transport, and with at least one image recording device for capturing at least one spatially resolved image of the container to be inspected, which container is provided with the closure,
- wherein
- the inspection apparatus is suitable, determined and/or configured for checking the sealing function, in that the at least one image recording device is used to record the at least one spatially resolved image in such a way that, viewed in the closure direction, a relative position of the closure with respect to the container provided therewith is depicted, and an image evaluation device determines, on the basis of the relative position that is displayed in the at least one spatially resolved image, at least one sealing variable that is characteristic of performing the sealing function.