In a method and a device to detect information about the three-dimensional structure of the inner surface of a body cavity (2) of a patient with an endoscopy capsule (4) introduced into said body cavity (2), a first partial region of the inner surface of the body cavity (2) is illuminated with at least one light source (16) arranged in the endoscopy capsule (4): and an image of a second partial region (36) that is illuminated by the first partial region (30) and differs from said first partial region (30), the three-dimensional structure of which second partial region (36) is known, is acquired with at least one camera (18) arranged in the endoscopy capsule (4). Information about the three-dimensional structure of the first partial region (30) is derived using the intensity values present in this image.