Method and device for controlling a camera capable of pan and tilt control
AssigneeAxis AB
InventorViktor Edpalm
Life of this patent
Estimating the term…
Abstract
The present invention relates generally a method and device for controlling a camera capable of pan and tilt control, and more specifically a method and device for controlling adjustments of the field of view of such camera.
Claims9
A method for controlling a camera capable of pan and tilt (PT) control, the camera being connected to an encoder arranged to encode a video stream captured by the camera, the encoder having a motion vector search range, the method comprising the steps of:
- retrieving a first field of view (FOV) setting of a current image frame in the video stream,
- receiving an input pertaining to a desired adjustment of the FOV from the first FOV setting to a second FOV setting in a subsequent image frame in the video stream, defining a period of time between the current image frame and the subsequent image frame using a frame per second (FPS) setting of the camera, and calculating a speed and a direction of the desired adjustment of the FOV using the period of time,
- determining a first threshold speed by translating the motion vector search range of the encoder to a maximum adjustment of the FOV of the camera during the period of time and calculating a speed of the maximum adjustment of the FOV,
- determining a second threshold speed by multiplying the first threshold speed with a value higher than 1,
- comparing the speed of the desired adjustment of the FOV with the first threshold speed and the second threshold speed,
- upon determining that the speed of the desired adjustment of the FOV is higher than the second threshold speed or lower than the first threshold speed, adjusting the FOV of the camera from the first FOV setting to the second FOV setting during the period of time,
- upon determining that the speed of the desired adjustment of the FOV is between the first threshold speed and second threshold speed, adjusting the FOV of the camera during the period of time based on the direction of the desired adjustment of the FOV and the first threshold speed.
A controlling device adapted for controlling a camera capable of pan and tilt (PT) control, the camera being connected to an encoder arranged to encode a video stream captured by the camera, the encoder having a motion vector search range, the controlling device comprising a processor arranged for:
- retrieving, from the camera, a first field of view (FOV) setting of a current image frame in the video stream,
- receiving a user input pertaining to a desired adjustment of the FOV from the first FOV setting to a second FOV setting in a subsequent image frame in the video stream, defining a period of time between the current image frame and the subsequent image frame using a frame per second (FPS) setting of the camera, and calculating a speed and a direction of the desired adjustment of the FOV using the period of time,
- determining a first threshold speed by translating the motion vector search range of the encoder to a maximum adjustment of the FOV of the camera during the period of time and calculating a speed of the maximum adjustment of the FOV,
- determining a second threshold speed by multiplying the first threshold speed with a value higher than 1,
- comparing the speed of the desired adjustment of the FOV with the first threshold speed and the second threshold speed,
- upon determining that the speed of the desired adjustment of the FOV is higher than the second threshold speed or lower than the first threshold speed, adjusting the FOV of the camera from the first FOV setting to the second FOV setting during the period of time,
- upon determining that the speed of the desired adjustment of the FOV is between the first threshold speed and second threshold speed, adjusting the FOV of the camera during the period of time based on the direction of the desired adjustment of the FOV and the first threshold speed.
Dependencies are inferred from the claim text.