Summary of the invention
In view of this, the object of the invention is to propose a kind of multi-cam Display Realization method and device, the image showing at least two cameras on same display can be realized, saved cost and decreased unnecessary odd word.
Based on above-mentioned purpose multi-cam Display Realization provided by the invention method, comprising:
The image that continuous crawl at least two cameras gather;
Respectively the image of at least two camera collections described in each frame is synthesized an image by the camera image arrangement mode preset;
Continuous output also shows the camera image of synthesizing described in each frame.
In some embodiments, also comprise before the step of image that described continuous crawl at least two cameras gather:
Obtain the multiple selection areas on display interface;
For described at least two cameras distribute described selection area, for showing the camera image that it gathers.
In some embodiments, described is comprise after described at least two cameras distribute the step of described selection area:
Obtain the position relationship of selection area and display interface;
Calculate the boundary locus of selection area.
In some embodiments, describedly respectively the step that the image of at least two camera collections described in each frame synthesizes an image by the camera image arrangement mode preset to be comprised:
According to the boundary locus of selection area corresponding to each camera, extract the camera image in the selection area boundary locus of its correspondence;
Set up blank image;
Camera image in the described selection area boundary locus extracted is drawn on the position described blank image corresponding to its selection area.
In some embodiments, described at least two cameras comprise a main camera, and all the other are secondary camera.
In some embodiments, described secondary camera corresponds to the selection area being less than display interface size in display interface, and the region removed in described display interface beyond selection area corresponding to secondary camera is the viewing area of main camera.
In some embodiments, when described secondary camera is at least two, the position relationship of the selection area of different secondary camera is arranged side by side or nested.
In some embodiments, described secondary camera be two and position relationship is nested time, wherein the selection area of the first secondary camera is then greater than the size of the selection area of the second secondary camera; The image of corresponding this second secondary camera of display in less selection area, the region beyond selection area less described in removing in larger selection area shows the image of this first secondary camera.
In some embodiments, described default camera image arrangement mode is the position relationship of described selection area.
In some embodiments, the selection area that described secondary camera is corresponding is irregularly shaped.
Present invention also offers a kind of multi-cam Display Realization device, comprising:
Handling module, for capturing the image that at least two cameras gather continuously;
Image processing module, for respectively the image of at least two camera collections described in each frame being synthesized an image by the camera image arrangement mode preset, and exports the camera image of synthesizing described in each frame continuously;
Display module, for showing the camera image of synthesizing described in each frame.
In some embodiments, also comprise pretreatment module, for obtaining the multiple selection areas on display interface; And, for described at least two cameras distribute described selection area, for showing the camera image that it gathers.
In some embodiments, described image processing module is also for obtaining the position relationship of selection area and display interface and calculating the boundary locus of selection area.
In some embodiments, described image processing module also for the boundary locus according to selection area corresponding to each camera, extracts the camera image in the selection area boundary locus of its correspondence; Set up blank image; And, the camera image in the described selection area boundary locus extracted is drawn on the position described blank image corresponding to its selection area.
In some embodiments, described at least two cameras comprise a main camera, and all the other are secondary camera.
In some embodiments, described secondary camera corresponds to the selection area being less than display interface size in display interface, and the region removed in described display interface beyond selection area corresponding to secondary camera is the viewing area of main camera.
In some embodiments, when described secondary camera is at least two, the position relationship of the selection area of different secondary camera is arranged side by side or nested.
In some embodiments, described secondary camera be two and position relationship is nested time, wherein the selection area of the first secondary camera is then greater than the size of the selection area of the second secondary camera; The image of corresponding this second secondary camera of display in less selection area, the region beyond selection area less described in removing in larger selection area shows the image of this first secondary camera.
In some embodiments, described default camera image arrangement mode is the position relationship of described selection area.
In some embodiments, the selection area that described secondary camera is corresponding is irregularly shaped.
As can be seen from above, multi-cam Display Realization method provided by the invention and device, by the view data gathered from least two cameras is repainted, achieving the view data gathered at least two cameras described in making is simultaneously displayed on final display interface, and without the need to switching camera data, having saved resource and having decreased unnecessary odd word.
Further, by the position relationship (arranged side by side or nested etc.) of setting major-minor camera and setting selection area, make camera image can need to show at many levels according to user, make display effect diversification more, function is more changeable.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with specific embodiment, and with reference to accompanying drawing, the present invention is described in more detail.
With reference to accompanying drawing 1, it is the schematic flow sheet of an embodiment of multi-cam Display Realization method provided by the invention.
Described multi-cam Display Realization method provided by the invention, comprising:
Step 101: capture the image that at least two cameras gather continuously;
Step 102: respectively the image of at least two camera collections described in each frame is synthesized an image by the camera image arrangement mode preset;
Step 103: export and show the camera image of synthesizing described in each frame continuously.
Optionally, also comprise before the step of image that described continuous crawl at least two cameras gather:
Obtain the multiple selection areas on display interface;
For described at least two cameras distribute described selection area, for showing the camera image that it gathers.
Further, described is comprise after described at least two cameras distribute the step of described selection area:
Obtain the position relationship of selection area and display interface;
Calculate the boundary locus of selection area.
Preferably, describedly respectively the step that the image of at least two camera collections described in each frame synthesizes an image by the camera image arrangement mode preset to be comprised:
According to the boundary locus of selection area corresponding to each camera, extract the camera image in the selection area boundary locus of its correspondence;
Set up blank image;
Camera image in the described selection area boundary locus extracted is drawn on the position described blank image corresponding to its selection area.
Optionally, described at least two cameras comprise a main camera, and all the other are secondary camera.
Further, described secondary camera corresponds to the selection area being less than display interface size in display interface, and the region removed in described display interface beyond selection area corresponding to secondary camera is the viewing area of main camera.
Optionally, when described secondary camera is at least two, the position relationship of the selection area of different secondary camera is arranged side by side or nested.
Preferably, described secondary camera be two and position relationship is nested time, wherein the selection area of the first secondary camera is then greater than the size of the selection area of the second secondary camera; The image of corresponding this second secondary camera of display in less selection area, the region beyond selection area less described in removing in larger selection area shows the image of this first secondary camera.
It should be noted that, in the embodiment of the present invention, the statement of all uses " first " and " second " is all the parameters in order to the entity or non-equal distinguishing two same names non-equal, visible " first " " second " convenience only in order to state, should not be construed as the restriction to the embodiment of the present invention, subsequent embodiment illustrates no longer one by one to this.
Wherein, described default camera image arrangement mode is the position relationship of described selection area.Optionally, the selection area that described secondary camera is corresponding is regular shape or irregularly shaped; Especially, when it is irregularly shaped, can be the default selection area of arbitrary curve composition.
With reference to accompanying drawing 2, it is the schematic flow sheet of another embodiment of multi-cam Display Realization method provided by the invention.
Described multi-cam Display Realization method, comprising:
Step 201: obtain the multiple selection areas on display interface;
Step 201: for described at least two cameras distribute described selection area, for showing the camera image that it gathers;
Step 203: the position relationship obtaining selection area and display interface;
Step 204: the boundary locus calculating selection area;
Step 205: capture the image that at least two cameras gather continuously;
Step 206: according to the boundary locus of selection area corresponding to each camera, extract the camera image in the selection area boundary locus of its correspondence;
Step 207: set up blank image;
Step 208: the camera image in the described selection area boundary locus extracted is drawn on the position described blank image corresponding to its selection area.
Step 209: export the camera image of synthesizing described in each frame continuously;
Step 210: the camera image of synthesizing described in each frame of display continuously.
Wherein, the data acquisition of described multiple camera and a kind of Alternate embodiments of processing procedure adopt DirectShow kit.
As can be seen from above-described embodiment, multi-cam Display Realization method provided by the invention, by the view data gathered from least two cameras is repainted, achieving the view data gathered at least two cameras described in making is simultaneously displayed on final display interface, and without the need to switching camera data, having saved resource and having decreased unnecessary odd word.
Further, by the position relationship (arranged side by side or nested etc.) of setting major-minor camera and setting selection area, make camera image can need to show at many levels according to user, make display effect diversification more, function is more changeable.
Simultaneously, adopt the camera image data that this multi-cam Display Realization method gathers, its image shown in display interface is as a whole, and the view data that each camera is gathered is positioned at same aspect, can process in subsequent operation as an object.
It needs to be noted; each step in above-mentioned multi-cam Display Realization embodiment of the method all mutually can intersect, replaces, increases, delete; therefore; these rational permutation and combination conversion also should belong to protection scope of the present invention in multi-cam Display Realization method, and protection scope of the present invention should not to be confined on described embodiment.
Present invention also offers a kind of multi-cam Display Realization device, with reference to accompanying drawing 3, is the structural representation of an embodiment of multi-cam Display Realization device provided by the invention.
Described multi-cam Display Realization device 300, comprising:
Handling module 301, for capturing the image that at least two cameras gather continuously;
Image processing module 302, for respectively the image of at least two camera collections described in each frame being synthesized an image by the camera image arrangement mode preset, and exports the camera image of synthesizing described in each frame continuously;
Display module 303, for showing the camera image of synthesizing described in each frame continuously.
Optionally, described multi-cam Display Realization device 300 also comprises pretreatment module 304, for obtaining the multiple selection areas on display interface; And, for described at least two cameras distribute described selection area, for showing the camera image that it gathers.
Further, described image processing module 302 is also for obtaining the position relationship of selection area and display interface and calculating the boundary locus of selection area.
Preferably, described image processing module 302 also for the boundary locus according to selection area corresponding to each camera, extracts the camera image in the selection area boundary locus of its correspondence; Set up blank image; And, the camera image in the described selection area boundary locus extracted is drawn on the position described blank image corresponding to its selection area.
Optionally, described at least two cameras comprise a main camera, and all the other are secondary camera.
Further, described secondary camera corresponds to the selection area being less than display interface size in display interface, and the region removed in described display interface beyond selection area corresponding to secondary camera is the viewing area of main camera.
Optionally, when described secondary camera is at least two, the position relationship of the selection area of different secondary camera is arranged side by side or nested.
Preferably, described secondary camera be two and position relationship is nested time, wherein the selection area of the first secondary camera is then greater than the size of the selection area of the second secondary camera; The image of corresponding this second secondary camera of display in less selection area, the region beyond selection area less described in removing in larger selection area shows the image of this first secondary camera.
With reference to accompanying drawing 4a, it is the embodiment of camera image arrangement mode preset described in the embodiment of multi-cam Display Realization method of the present invention and device.
This graphical arrangement mode is a kind of exemplary implementation of described default camera image arrangement mode.
As shown in fig. 4 a, the image display selection area 401 of the first secondary camera is the border circular areas in the upper left corner, and the image display selection area 400 of main camera is then other parts of the image display selection area 401 of the secondary camera of removing first.
With reference to accompanying drawing 4b, it is another embodiment of camera image arrangement mode preset described in the embodiment of multi-cam Display Realization method of the present invention and device.
This graphical arrangement mode is wherein a kind of implementation of juxtaposition.
As shown in Figure 4 b, the image display selection area 401 of the first secondary camera is the border circular areas in the upper left corner, the image display selection area 402 of the second secondary camera is the round edge rectangular area in the lower right corner, and the image display selection area 400 of main camera is then for the image display selection area 401 of the secondary camera of removing first and the image of the second secondary camera show other parts of selection area 402.
With reference to accompanying drawing 4c another embodiment of camera image arrangement mode for presetting described in the embodiment of multi-cam Display Realization method of the present invention and device.
This graphical arrangement mode is wherein a kind of implementation of nesting arrangement mode.
As illustrated in fig. 4 c, the image of the second secondary camera shows the border circular areas that selection area 402 is the image display selection area 401 of the first secondary camera being arranged in round edge rectangle, in the image display selection area 401 of described first secondary camera, other parts of the image display selection area 402 of removing the second secondary camera are its viewing area, and the image display selection area 400 of main camera is then other parts of the image display selection area 401 of the secondary camera of removing first.
Certainly, above-mentioned two kinds of embodiments are default camera image arrangement mode of the present invention wherein two kinds of concrete implementations, and those skilled in the art can know, needed for user, other arrangement modes can also be designed, all should belong to protection scope of the present invention; Certainly, selection area also can be irregularly shaped, also should belong to protection scope of the present invention.
Wherein, described default camera image arrangement mode is the position relationship of described selection area.Optionally, the selection area that described secondary camera is corresponding is regular shape or irregularly shaped; Especially, when it is irregularly shaped, can be the default selection area of arbitrary curve composition.
The course of work of another embodiment to described multi-cam Display Realization device 300 below in conjunction with above-mentioned multi-cam Display Realization method is described in detail.
With reference to accompanying drawing 2, it is the schematic flow sheet of another embodiment of multi-cam Display Realization method provided by the invention.
Described multi-cam Display Realization method, comprising:
Step 201: described pretreatment module 304 obtains the multiple selection areas on display interface;
Step 201: described pretreatment module 304 distributes described selection area for described at least two cameras, for showing the camera image that it gathers;
Step 203: described image processing module 302 obtains the position relationship of selection area and display interface;
Step 204: the boundary locus calculating selection area described in described image processing module 302;
Step 205: described handling module 301 captures the image that at least two cameras gather continuously;
Step 206: described image processing module 302, according to the boundary locus of selection area corresponding to each camera, extracts the camera image in the selection area boundary locus of its correspondence;
Step 207: described image processing module 302 sets up blank image;
Step 208: the camera image in the described selection area boundary locus extracted is drawn on the position described blank image corresponding to its selection area by described image processing module 302.
Step 209: described image processing module 302 exports the camera image of synthesizing described in each frame continuously;
Step 210: the camera image that described display module 303 synthesizes described in each frame of display continuously.
As can be seen from above, multi-cam Display Realization device provided by the invention, by the view data gathered from least two cameras is repainted, achieving the view data gathered at least two cameras described in making is simultaneously displayed on final display interface, and without the need to switching camera data, having saved resource and having decreased unnecessary odd word.
Further, by the position relationship (arranged side by side or nested etc.) of setting major-minor camera and setting selection area, make camera image can need to show at many levels according to user, make display effect diversification more, function is more changeable.
It needs to be noted, the embodiment of above-mentioned multi-cam Display Realization device use only the embodiment of described multi-cam Display Realization method to illustrate the course of work of each module, those skilled in the art can be easy to expect, by these module application in other embodiments of described multi-cam Display Realization method.Certainly; because each step in described multi-cam Display Realization embodiment of the method all mutually can intersect, replaces, increases, delete; therefore; these rational permutation and combination conversion also should belong to protection scope of the present invention in described multi-cam Display Realization device, and protection scope of the present invention should not to be confined on described embodiment.
Those of ordinary skill in the field are to be understood that: the foregoing is only specific embodiments of the invention; be not limited to the present invention; within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.