Vehicle
headlamp (10) for illuminating a light distribution and for detecting an obstacle in front of the vehicle
headlamp (10) in a main direction (X), comprising: - a housing (100) and a cover lens (200), - an obstacle detection device comprising a camera (300) for capturing images (310), wherein the camera (300) is disposed inside the housing (100), - a camera calibration
system for automatically calibrating the spatial orientation of the camera (300), wherein the camera calibration
system is configured to keep the camera (300) in a predetermined target position (PI), wherein the camera calibration
system comprises: - an adjustment device for adjusting the spatial orientation of the camera (300) within the housing (100), - a reference mark (400) arranged in the housing (100), wherein each image (310) having a constant predetermined reference mark position sector (310a), and wherein the camera (300) is in the target position (PI), when the reference mark (400) is arranged within the predetermined reference mark position sector (310a) of the images (310), - a control device which is connected to the camera (300) and the adjustment device, wherein the control device is configured to receive the images (310) captured by the camera (300), wherein the control device controls the adjustment device in order to remove the deviation from the target position (PI) the camera (300), when the reference mark (400) is outside the predetermined reference mark position sector (310a) of the images (310) in a non-target position (P2).