A controller for an X-ray device and an X-ray device with such a
controller are provided. The X-ray device includes an X-ray generator,
connected to the controller and at least one camera, connected to the
controller. The controller is embodied to receive image data of a patient
or object from the camera. The controller includes an analytical module,
embodied to analyze image data from the camera and to generate at least
one control signal for control of the X-ray generator depending on the
result of the analysis of the image data, transmitted thereto by the
controller.