主权项 |
1. A control method of linked-up cameras, comprising:
acquiring a first image via a first camera; acquiring a second image via a second camera, wherein a field of view (FOV) of the second image partially at least overlaps a FOV of the first image; establishing a control look-up table according to the first image and the second image; receiving a designating command which specifies a region of interest (ROI) in the first image; and adjusting a FOV of the second camera according to the ROI and the control look-up table, and then controlling the second camera to photograph a view specified by the ROI, to obtain a third image, wherein the step of adjusting the FOV of the second camera according to the ROI and the control look-up table, and then controlling the second camera to photograph a view specified by the ROI to obtain the third image comprises:
looking up a capture position parameter which corresponds to the ROI, in the control look-up table according to a third central point of the ROI; andcontrolling the second camera according to the capture position parameter, so as to obtain the third image; wherein the second image comprises a second central point, the ROI comprises a plurality of boundary points, and the step of looking up the capture position parameter which corresponds to the ROI, in the control look-up table according to the third central point of the ROI comprises:
calculating a third central mapping point of the second image corresponding to the third central point, and calculating a plurality of boundary mapping points of the second image corresponding to the boundary points;calculating a scaling angle according to the boundary mapping points, the second central point and the third central mapping point; andlooking up the capture position parameter which corresponds to the ROI, in the control look-up table according to the third central mapping point, wherein the capture position parameter comprises a tilt coefficient and a pan coefficient; and wherein the step of calculating the scaling angle according to the boundary mapping points, the second central point and the third central mapping point comprises:
calculating a plurality of angles formed by the boundary mapping points, the second central point and the third central mapping point; andmultiplying a maximum acute angle of the angles by 2 to obtain the scaling angle. |