Method and system for video stitching
AssigneeHangzhou Hikvision Digital Technology Co., Ltd.
InventorsBin Guo, Xing Shi
Life of this patent
Estimating the term…
Abstract
Disclosed are a method and a system for video stitching. After it is determined that initial mounting of cameras in a M×N video stitching scene is completed, a reference image is selected from M×N images corresponding to M×N cameras; where both M and N are positive integers, at least one of M and N is larger than 1, and a rotating mirror is set in front of a camera lens of each camera; an image whose position does not meet a requirement among respective images except for the selected reference image is adjusted by controlling a rotating mirror corresponding to the image to rotate according to the selected reference image; and video stitching is performed according to an adjustment result.
Claims14
A method for video stitching, the method comprising:
- selecting a reference image from M×N images corresponding to M×N cameras in a M×N video stitching scene;
- where both M and N are positive integers, at least one of M and N is larger than 1, and a rotating mirror is set in front of a camera lens of each camera;
- adjusting a position of an image whose position does not meet a requirement of seamless stitching among respective images except for the selected reference image by controlling a rotating mirror corresponding to the image to rotate according to the selected reference image;
- and
- performing video stitching;
- wherein
- the adjusting an image whose position does not meet a requirement among respective images except for the selected reference image by controlling a rotating mirror corresponding to the image to rotate according to the selected reference image comprises:
- for each image x which is to be adjusted, performing:
- determining whether the image x is adjacent to the selected reference image;
- when the image x is adjacent to the selected reference image, then using the selected reference image as a reference image of the image x, and when the image x is not adjacent to the selected reference image, then using an image which has been adjusted and is adjacent to the image x as a reference image of the image x;
- and
- adjusting the image x to meet the requirement by controlling a rotating mirror corresponding to the image x to rotate according to the reference image of the image x.
A system for video stitching, the system comprising:
- M×N cameras and a remote control apparatus;
- where both M and N are positive integers, at least one of M and N is larger than 1, and a rotating mirror is set in front of a camera lens of each camera;
- and
- the remote control apparatus is configured to select a reference image from M×N images corresponding to the M×N cameras in a M×N video stitching scene;
- adjust a position of an image whose position does not meet a requirement of seamless stitching among respective images except for the selected reference image by controlling a rotating mirror corresponding to the image to rotate according to the selected reference image;
- and perform video stitching;
- wherein
- the remote control apparatus comprises:
- a first processing module configured to select the reference image from the M×N images corresponding to the M×N cameras in the M×N video stitching scene, and notify a second processing module;
- and
- the second processing module configured to perform the following process for each image x which is to be adjusted:
- determining whether the image x is adjacent to the selected reference image;
- when the image x is adjacent to the selected reference image, then using the selected reference image as a reference image of the image x, and when the image x is not adjacent to the selected reference image, then using an image which has been adjusted and is adjacent to the image x as a reference image of the image x;
- adjusting a position of the image x to meet the requirement by controlling a rotating mirror corresponding to the image x to rotate according to the reference image of the image x;
- and performing the video stitching according to an adjustment result.
A non-transitory computer readable storage medium storing one or more programs executable by a computer system, the one or more programs comprising instructions to:
- select a reference image from M×N images corresponding to M×N cameras in a M×N video stitching scene;
- where both M and N are positive integers, at least one of M and N is larger than 1, and a rotating mirror is set in front of a camera lens of each camera;
- adjust a position of an image whose position does not meet a requirement of seamless stitching among respective images except for the selected reference image by controlling a rotating mirror corresponding to the image to rotate according to the selected reference image;
- and
- perform video stitching;
- wherein
- the adjusting an image whose position does not meet a requirement among respective images except for the selected reference image by controlling a rotating mirror corresponding to the image to rotate according to the selected reference image comprises:
- for each image x which is to be adjusted, performing:
- determining whether the image x is adjacent to the selected reference image;
- when the image x is adjacent to the selected reference image, then using the selected reference image as a reference image of the image x, and when the image x is not adjacent to the selected reference image, then using an image which has been adjusted and is adjacent to the image x as a reference image of the image x;
- and
- adjusting the image x to meet the requirement by controlling a rotating mirror corresponding to the image x to rotate according to the reference image of the image x.
Dependencies are inferred from the claim text.