A method for operating a camera of a motor vehicle, wherein a cover is moved between an operating position, in which the camera provides images of an environmental region of the motor vehicle, and a covering position, in which the cover covers the camera against the environmental region, the method comprising:
- acquiring a current brightness level of a scene of the camera by means of the camera;
- in the operating position of the cover:
- adjusting at least one operating parameter of the camera depending on the current brightness level of the scene;
- acquiring a movement operation of the cover from the operating position into the covering position by the camera;
- and
- after acquiring the movement operation:
- adjusting the at least one operating parameter to a value independent of the current brightness level of the scene acquired by the camera whilst maintaining an activated operating state of the camera.