Embodiment
In order to make the purpose, technical solutions and advantages of the present invention clearer, describe the present invention below in conjunction with the drawings and specific embodiments.
The method that the embodiment of the invention provides mainly comprises: obtain the view data that all video capture devices are gathered, wherein, described video capture device has two at least; Determine the overlapping conditions of the view data obtained,, then adjust the orientation of all or part video capture device, make the overlapping conditions of the view data of all video capture device collections meet the condition of setting if the overlapping conditions that calculates does not meet the condition of setting.
Before the view data of obtaining all video capture device collections, can also obtain the focal length data of all video capture devices, if the focal length data of all video capture devices that obtain is identical, then continue to carry out the step of obtaining its view data of gathering separately, if the focal length data of all video capture devices that obtain is inequality, then adjust the focal length of all or part video capture device, make its focal length identical, continue to carry out the step of the view data of obtaining all video capture devices collections again.
Understand for convenience, at first the system that regulates of the video that the embodiment of the invention is provided describes.The system construction drawing that Fig. 3 provides for the embodiment of the invention, as shown in Figure 3, this system mainly comprises: collection device controller 300 and at least two video capture devices 310;
Collection device controller 300, be used to obtain the view data that all video capture devices 310 are gathered, determine the overlapping conditions of the view data obtained, if overlapping conditions does not meet the condition of setting, then adjust the orientation of all or part video capture device 310, the overlapping conditions that calculates perhaps is provided, and the orientation of prompting user manual setting video capture device 310 makes the overlapping conditions of the view data that all video capture devices 310 gather meet the condition of setting;
Each video capture device 310 is used for acquisition of image data, accepts collection device controller 300 or user's orientation adjustment.
Described collection device controller 300, can also be used to obtain the focal length data of all video capture devices 310, if this focal length data is identical, then continue to carry out described operation of obtaining its view data of gathering separately from video capture device 310, if this focal length data is inequality, then adjust the focal length of video capture device 310, perhaps this focal length data is offered the user, the focal length of prompting user manual setting video capture device makes the focal length of all video capture devices 310 identical;
Video capture device 310 also is used to provide self focal length data.
Wherein, the structure of collection device controller 300 can be shown in Fig. 4 .a, and this collection device controller 300 can comprise: orientation acquiring unit 301, orientation computing unit 302 and orientation processing unit 303.
Orientation acquiring unit 301 is used to obtain the view data that video capture device 310 is gathered;
Interface between orientation acquiring unit 301 and the video capture device 310 can be component vide (S-VIDEO) interface, digital display interface (DVI, Digital Visual Interface), high-definition multimedia (HDMI, High Definition Multimedia) interface or other interface.
Orientation computing unit 302 is used for the overlapping conditions of the view data that computer azimuth acquiring unit 301 obtains.
Orientation processing unit 303 is used for when the overlapping conditions that orientation computing unit 302 calculates does not meet the condition of setting, generates the orientation adjustment instruction and sends to video capture device, and perhaps, the overlapping conditions that orientation computing unit 302 is calculated offers the user.
Wherein, orientation processing unit 303 can comprise: orientation judging unit 3031, directional correction unit 3032 and orientation transmitting element 3033.
Orientation judging unit 3031 is used to judge whether overlapping conditions that orientation computing unit 302 calculates meets the condition of setting.
Directional correction unit 3032 is used for according to the overlapping conditions that orientation computing unit 302 calculates, generating the orientation adjustment instruction when orientation judging unit 3031 judges that overlapping conditions does not meet the condition of setting.
Orientation transmitting element 3033, the orientation adjustment instruction that is used for directional correction unit 3032 is generated sends to video capture device.
This collection device controller 300 can also comprise:
Focal length acquiring unit 304 is used to obtain the focal length data of video capture device 310;
Interface between focal length acquiring unit 304 and the video capture device can be video system control architecture (VISCA, Video System Control Architecture) interface or other interface.
Focal length judging unit 305 is used to judge whether the focal length data that described focal length acquiring unit obtains is identical, if identical, then trigger the orientation acquiring unit and carries out the operation of obtaining the view data that video capture device 310 gathers;
Focus correction unit 306 is used for when focal length judging unit 305 judges that focal length data is inequality, and the focal length data that obtains according to the focal length acquiring unit generates focal length adjustment instruction;
Focal length transmitting element 307 is used to send the focal length adjustment that focus correction unit 306 generates and instructs to video capture device 310.
In addition, this collection device controller 300 can also comprise: the first control command input unit 308, be used for to orientation acquiring unit 301 transmitting control commands, trigger orientation acquiring unit 301 and carry out the described operation of obtaining, send controlled condition to directional correction unit 3032.
Directional correction unit 3032 also is used to obtain the controlled condition that the first control command input unit 308 sends, and carries out the operation that generates the orientation adjustment order according to this controlled condition.
This collection device controller 300 can also comprise: the second control command input unit 309, be used for to focal length acquiring unit 304 transmitting control commands, and trigger the focal length acquiring unit and carry out the described operation of obtaining, send controlled condition to focus correction unit 306.
Focus correction unit 306 also is used to obtain the controlled condition that the second control command input unit 309 sends, and carries out the operation of described generation focal length adjustment order according to this controlled condition.
Wherein, can comprise in the controlled condition: as the video capture device of reference equipment.Directional correction unit 3032 and focus correction unit 306 can generate corresponding orientation adjustment order and focal length adjustment order according to this reference device, and making each video capture device serves as according to adjusting with this reference device.
Collection device controller shown in Fig. 4 .a can be realized automatic adjustment and the manual adjustment to the orientation, and the automatic adjustment of focal length, and the collection device controller shown in Fig. 4 .b can be realized the automatic adjustment in orientation and the manual adjustment of manual adjustment and focal length.Shown in Fig. 4 .b, in the collection device controller shown in Fig. 4 .a, difference is, with the focal length acquiring unit 304 among Fig. 4 .a, focal length judging unit 305, focus correction unit 306 and focal length transmitting element 307 replace with focal length acquiring unit 404 and the focal length Tip element 405 among Fig. 4 .b.
Focal length acquiring unit 404 is used to obtain the focal length data of video capture device 310;
Focal length Tip element 405 is used for the focal length data that provides the focal length acquiring unit to obtain to the user, so that the user is according to the focal length of this focal length data manual setting video capture device.
At this moment, the first control command input unit 308 also is used for to focal length acquiring unit 404 transmitting control commands, triggers focal length acquiring unit 404 and carries out the described operation of obtaining.Certainly, one the 3rd control command input unit can also be set separately, be exclusively used in, trigger focal length acquiring unit 404 and carry out the described operation of obtaining to focal length acquiring unit transmitting control commands.
Be example with particular flow sheet shown in Figure 5 below, the method that the embodiment of the invention provides is carried out concrete description.As shown in Figure 5, this method can may further comprise the steps:
Step 501: collection device controller obtains the focal length data of all video capture devices;
This step can send the instruction of obtaining focal length data to all video capture devices for collection device controller, after each video capture device receives the instruction of obtaining focal length data, replys the focal length data of self to collection device controller.
Step 502: collection device controller judges whether the focal length data that obtains is identical, if not, and execution in step 503, if, execution in step 504;
Step 503, collection device controller send the focus controlling instruction of adjusting focal length to all or part of video capture device;
In this step, collection device controller can be selected one of them video capture device, sends focus controlling to other video capture device and carries out, and the focal length of adjusting this other video capture device is identical with the focal length of the video capture device of selecting; Also can set a focal length, send the focus controlling instruction to all video capture devices, the focal length of adjusting all video capture devices is identical with the focal length of this setting.
Step 504: collection device controller obtains the view data that all video capture devices are gathered, and calculates the overlapping conditions of the view data of obtaining;
The overlapping conditions of calculating the view data obtain in this step can be in the following way: all pixel columns of each view data that traversal is obtained, the pixel column of all each view data that traverses relatively draws the overlapping conditions of each view data.For example, at first respectively get first row and mate, continue respectively to get preceding two row again and mate, continue to get first three columns again and mate,, just can draw the overlapping conditions of each view data up to all pixel columns of traversal.Also can adopt other computational methods.
Step 505: collection device controller judges whether the overlapping conditions of each view data that calculates meets the condition of setting, if not, and execution in step 506, if, process ends;
The condition of setting in this step can be to allow to a certain degree overlapping, also can be not overlapping just.
Step 506: collection device controller generates the orientation adjustment instruction of adjusting the orientation according to overlapping conditions, sends to all or part of video capture device.
In this step, collection device controller can be selected one of them video capture device as reference, send the orientation control command to other video capture device, adjust the orientation of other video capture device, make the overlapping conditions of the view data of all video capture device collections meet the condition of setting.
Flow process shown in Figure 5 is to realize regulating automatically the method flow diagram of video, still, if video capture device is not supported control command, then method shown in Figure 5 can not be used, at this moment, the method for manual adjustment video shown in Figure 6 can be adopted, as shown in Figure 6, this method may further comprise the steps:
Step 601: collection device controller obtains the focal length data of all video capture devices;
Step 602: the focal length data of each video capture device that collection device controller will get access to offers the user, so that the focal length of all or part of video capture device of user's manual setting;
In this step, collection device controller can generate the information of the focal length data that comprises each video capture device, and this information is offered the user.Also can at first judge the focal length data that obtains judge whether focal length is identical, the information that will comprise judged result and each focal length data is shown to the user.
This information can be an information of voice prompt, also can be display reminding information.Can provide the focal length data of each video capture device in this information, can be reference device with certain video capture device also, provides the comparative information of the focal length data of the focal length data of other video capture device and this reference device.So that the user can be according to the focal length of all or part of video capture device of this information manual setting.
Step 603: when the focal length of each video capture device was identical, collection device controller obtained the view data that all video capture devices are gathered, and calculated the overlapping conditions of the view data of obtaining;
Step 604: collection device controller offers the user with the overlapping conditions that calculates, so that the orientation of all or part of video capture device of user's manual setting, makes the overlapping conditions of the view data of each video capture device meet the condition of setting.
In this step, collection device controller can generate the information of the overlapping conditions of the view data that comprises each video capture device, and this information is offered the user.This information can be an information of voice prompt, also can be display reminding information.
Be example with the collection device controller structure shown in Fig. 4 .a below, flow process shown in Figure 5 is carried out the correspondence explanation, its process may further comprise the steps as shown in Figure 7:
Step 701: the control command input unit sends controlled condition to focal length acquiring unit transmitting control commands to orientation calculating and correcting unit, focus correction unit;
Control command is used to trigger the focal length acquiring unit and obtains focal length data, can comprise in the controlled condition as the data acquisition equipment sign with reference to equipment.
Step 702: after the focal length acquiring unit receives control command, obtain the focal length data of all video capture devices;
This step mid-focal length acquiring unit sends to all video capture devices and obtains instruction, and video capture device receives after this obtains instruction, and the focal length data of self is provided.Wherein, sending the step of obtaining instruction omits.
Step 703: the focal length acquiring unit sends to the focal length judging unit with the focal length data that gets access to;
Step 704: whether focal length judgment unit judges focal length data is identical, if if execution in step inequality 705 identical, then triggers the orientation acquiring unit, execution in step 709;
Step 705: the focal length judging unit triggers the focus correction unit;
Step 706: the focus correction unit generates focal length adjustment instruction according to focal length data, sends to the focal length transmitting element;
Step 707: the focal length transmitting element sends the focal length adjustment of focus correction unit generation and instructs to video capture device;
Step 708: video capture device returns to adjust finishes response;
Step 709: the orientation acquiring unit obtains the view data that video capture device is gathered after receiving the triggering of finishing response or focal length judging unit that video capture device returns;
The orientation acquiring unit sends to all video capture devices and obtains instruction in this step, and video capture device receives after this obtains instruction, and the view data of self is provided.Wherein, sending the step of obtaining instruction omits.
Step 710: the orientation acquiring unit sends to the orientation with view data and calculates and correcting unit;
Step 711: orientation calculating and correcting unit calculate the overlapping conditions between each view data, judge whether the overlapping conditions that calculates meets the condition of setting, if do not meet the condition of setting, according to the overlapping conditions of calculating, generate the orientation adjustment instruction;
Step 712: the orientation is calculated and correcting unit sends to each video capture device with the orientation adjustment instruction.
Be example with the collection device controller structure shown in Fig. 4 .b below, flow process shown in Figure 6 is carried out the correspondence explanation, its process may further comprise the steps as shown in Figure 8:
Step 801: the control command input unit is to focal length acquiring unit transmitting control commands;
Step 802: the focal length acquiring unit obtains the focal length data of all video capture devices;
Step 803: the focal length acquiring unit offers the focal length Tip element with the focal length data that obtains;
Step 804: the focal length Tip element is shown to the user with focal length data, so that the focal length of all or part of video capture device of user's manual setting;
Step 805: after the user adjusts focal length and finishes, by the control command input unit to orientation acquiring unit transmitting control commands;
Step 806: the orientation acquiring unit obtains the view data that all video capture devices are gathered;
Step 807: the orientation acquiring unit offers the orientation computing unit with view data;
Step 808: the orientation computing unit calculates the overlapping conditions of the view data of obtaining, and this overlapping conditions is sent to the orientation Tip element;
Step 809: the orientation Tip element is shown to the user with overlapping conditions, so that the orientation of all or part of video capture device of user's manual setting, makes the overlapping conditions of the view data of each video capture device meet the condition of setting.
In the above-mentioned method that provides, also can realize the combination of the manual adjustment of the automatic adjustment in orientation and focal length, also can realize the manual adjustment in orientation and the self-adjusting combination of focal length, to satisfy different actual demands.
By above description as can be seen, in embodiments of the present invention, by obtaining the view data that all video capture devices are gathered, wherein, described video capture device has two at least; The overlapping conditions of the view data that calculating is obtained if the overlapping conditions that calculates does not meet the condition of setting, is then adjusted the orientation of all or part video capture device, makes the overlapping conditions of the view data of all video capture device collections meet the condition of setting.The method of this adjusting video can be obtained the view data that all video equipments are gathered, and the view data that collects is carried out the calculating of overlapping conditions, accurately judge the condition whether overlapping conditions meets setting, and the orientation of video capture device is regulated according to the situation that calculates, with must and judge in the prior art that the method for each video image position compares by eye-observation video image overlapping conditions, it is more accurate that video is regulated, thereby get access to suitable video image simply.
The embodiment of the invention can also at first be obtained the focal length data of all video capture devices, if the focal length of all video capture devices that obtain is identical, then continues to obtain the view data of video capture device; If inequality, then adjust the focal length of all or part video capture device, make its focal length identical, make that like this process of focusing is also more accurate.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being made, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.