A method for calibrating at least one device (2) that comprises a camera, characterized in that an object (3, 10) having at least one reference element (4, 11, 12, 13, 14) is brought into an image area of the camera, after which a first position of the reference element (4, 11, 12, 13, 14) relative to the device (2) is determined from an image (5, 6, 8, 9, 15, 16) made by the camera, then a displacement relative to the device (2) is imposed on the object (3, 10), a second position of the reference element (4, 11, 12, 13, 14) relative to the device (2) is determined from a second image made by the camera (5, 6, 8, 9, 15, 16), after which a real displacement of the object (3, 10)(3) relative to the device (2) is determined from the first and second relative positions, which real displacement is compared with the imposed displacement.