1. A device for detecting the position of an object in a machine tool, the device comprising: a camera configured to provide an image of the object and an object carrier to which the object is connected and whose position within the machine tool is known; a first processing unit configured to identify a position of the object relative to the camera based on geometric features of the object which are obtained from the image; a second processing unit configured to identify a position of the object carrier relative to the camera based on geometric features of the object carrier which are obtained from the image; and a third processing unit configured to determine a position of the object relative to the object carrier from the identified positions of the object and the object carrier relative to the camera.