Method for controlling a PTZ camera comprising an image recording device adjustable according to a plurality of observation positions issued from a list of settings, each observation position defining afield of view of the camera, the method comprising a surveillance phase comprising the following steps: - adjusting of the image recording device according to one of the observation positions from the list of settings; - image capturing of the field of view corresponding to the observation position for which the image recording device is set; the method further comprises a learning phase implemented at least once before the surveillance phase, and comprises the dynamic establishment of the list of settings as a function of objects of interest presented in various fields of view of the camera; the method being characterized in that the learning phase comprises the following steps: - detection of an object of interest, the objet of interest being at least partially mobile; - determination of the observation position defining the field of view comprising the detected object of interest; - storing the observation position in the list of settings - determination of a local context associated with the detected object of interest, the local context corresponding to the time of detection of the object of interest or to the time of detection of the object of interest with at least one other object of interest; - association of the local context with the observation position corresponding to the detected object; - storing the local context in the list of settings wherein the surveillance phase further comprises the step of detecting or predicting a repetition of one of the local contexts stored in the list of settings, the setting step of the image recording device being implemented for the observation position associated with this local context. - adjusting of the image recording device according to one of the observation positions from the list of settings; - image capturing of the field of view corresponding to the observation position for which the image recording device is set; the method further comprises a learning phase implemented at least once before the surveillance phase, and comprises the dynamic establishment of the list of settings as a function of objects of interest presented in various fields of view of the camera; the method being characterized in that the learning phase comprises the following steps: - detection of an object of interest, the objet of interest being at least partially mobile; - determination of the observation position defining the field of view comprising the detected object of interest; - storing the observation position in the list of settings - determination of a local context associated with the detected object of interest, the local context corresponding to the time of detection of the object of interest or to the time of detection of the object of interest with at least one other object of interest; - association of the local context with the observation position corresponding to the detected object; - storing the local context in the list of settings - detection of an object of interest, the objet of interest being at least partially mobile; - determination of the observation position defining the field of view comprising the detected object of interest; - storing the observation position in the list of settings - determination of a local context associated with the detected object of interest, the local context corresponding to the time of detection of the object of interest or to the time of detection of the object of interest with at least one other object of interest; - association of the local context with the observation position corresponding to the detected object; - storing the local context in the list of settings