A kind of dual resolution design integrated form panorama camera device and method
Technical field
The present invention relates to panoramic shooting technical field, more particularly to a kind of dual resolution design integrated form panorama camera device and side
Method.
Background technology
With the fast development of virtual reality industry, full-view image can bring more comfortable, more on the spot in person to consumer
Impression, therefore, panoramic shooting ball are the following cooperation widely used sharp weapon of virtual reality imagery industry.To make camera lens reach maximum
Camera angle, single module of existing panoramic shooting ball employs fish eye lens.But, panoramic shooting of the prior art
If head negligible amounts resolution ratio is relatively low, captured image is not intensive enough, and obtained image is simultaneously unintelligible;If quantity is excessive
Resolution ratio is too high and can influence the efficiency of image transmitting, can also influence splicing speed so that influence net cast fluency and
Real-time.If using the relatively low camera of resolution ratio, the demand of virtual photograph can not be met.
The content of the invention
Based on above mentioned problem, the present invention proposes a kind of dual resolution design integrated form panorama camera device, by setting two groups not
With the camera of resolution ratio, net cast data acquisition and virtual photograph data acquisition are realized respectively, both ensures net cast
Fluency and real-time, can meet the high-definition image quality requirement of virtual photograph again.
A kind of dual resolution design integrated form panorama camera device, including:Panoramic camera, server module and image transmitting mould
Block;
The panoramic camera includes at least two image units, and each image unit includes two cameras, institute up and down
The resolution ratio for stating two cameras is different, and the resolution ratio of camera head that each image unit is in same horizontal line is identical;
The server module includes:
Processing module one, for receiving the view data that low resolution camera is gathered on panoramic camera, and to low point
The view data of resolution camera collection carries out panoramic mosaic, compressed encoding, enters row format encapsulation according to transmission of video agreement, divides
Hair, and generate mapping relations one;
Memory module one, for being carried out to carrying out low resolution panoramic image data and mapping relations one after panoramic mosaic
Preserve;
Processing module two, for receiving the view data that high-resolution camera is gathered on panoramic camera, and to high score
The view data of resolution camera collection carries out panoramic mosaic, and generates mapping relations two;
Memory module two, for being carried out to carrying out high-resolution panoramic image data and mapping relations two after panoramic mosaic
Preserve;
Processing module three, for when server module receive virtual photograph instruction when, in being instructed according to virtual photograph
Video requency frame data and mapping relations one search the low resolution panoramic image data in memory module one;And according to mapping relations two
Find the high-resolution panoramic image data in corresponding memory module two;
Then the attitude data in being instructed according to virtual photograph, is intercepted in the high-resolution panoramic image data to should
The sectional drawing of attitude data, that is, realize virtual photograph;
Described image transport module, for transmitting view data that the camera of panoramic camera gathers to server mould
Block.
In described device, two cameras up and down of each image unit are smaller apart and in a vertical line
On.
In described device, at least two image unit is distributed on sphere, cylinder or cube latitude line.
In described device, the camera is fish-eye camera or wide-angle camera.
In described device, the generation mapping relations one are specially:Processing module one is given birth in real time according to timestamp information
Into low resolution panoramic video index file, and set up the low resolution panoramic video index file and low resolution panorama sketch
As the mapping relations one of data;
It is described generation mapping relations two be specially:Processing module two sets up low in memory module one according to corresponding time relationship
The mapping relations two of resolution ratio panoramic image data and the middle high-resolution panoramic image data of memory module two.
The present invention also proposes a kind of dual resolution design integrated form panoramic shooting method, including:Panoramic camera, server module
And image transmission module;
The panoramic camera includes at least two image units, and each image unit includes two cameras, institute up and down
The resolution ratio for stating two cameras is different, and the resolution ratio of camera head that each image unit is in same horizontal line is identical;
The view data of camera collection on panoramic camera is received, to low resolution camera and high-resolution camera
The view data of collection is handled respectively:
The view data of low resolution camera collection on panoramic camera is received, and low resolution camera is gathered
View data carries out panoramic mosaic, compressed encoding, enters row format encapsulation, distribution according to transmission of video agreement, and generate mapping to close
It is one;
Preserved to carrying out low resolution panoramic image data and mapping relations one after panoramic mosaic;
The view data of high-resolution camera collection on panoramic camera is received, and high-resolution camera is gathered
View data carries out panoramic mosaic, and generates mapping relations two;
Preserved to carrying out high-resolution panoramic image data and mapping relations two after panoramic mosaic;
When server module receives virtual photograph instruction, video requency frame data and mapping in being instructed according to virtual photograph
Relation one searches low resolution panoramic image data;And find corresponding high-resolution panoramic image according to mapping relations two
Data;
Then the attitude data in being instructed according to virtual photograph, is intercepted in the high-resolution panoramic image data to should
The sectional drawing of attitude data, that is, realize virtual photograph;
Described image transport module, for transmitting view data that the camera of panoramic camera gathers to server mould
Block.
In described method, two cameras up and down of each image unit are smaller apart and in a vertical line
On.
In described method, at least two image unit is distributed on sphere, cylinder or cube latitude line.
In described method, the camera is fish-eye camera or wide-angle camera.
In described method, the generation mapping relations one are specially:Processing module one is given birth in real time according to timestamp information
Into low resolution panoramic video index file, and set up the low resolution panoramic video index file and low resolution panorama sketch
As the mapping relations one of data;
It is described generation mapping relations two be specially:Processing module two sets up low in memory module one according to corresponding time relationship
The mapping relations two of resolution ratio panoramic image data and the middle high-resolution panoramic image data of memory module two.
It is an advantage of the present invention that passing through two different resolution camera modules up and down of multiple image units, difference
The collection of net cast data and the collection of virtual photograph data are realized, low resolution camera can meet the stream of net cast
Smooth property and real-time, high-resolution camera can meet the high-definition image quality requirement of virtual photograph.
The present invention proposes a kind of dual resolution design integrated form panorama camera device and method, and described device includes panoramic shooting
Machine, image transmission module and server module;Wherein panoramic camera is made up of at least two image units, each image unit bag
Containing two cameras, and two resolution ratio of camera head differences up and down.Server module receives the figure of two groups of camera collections respectively
As data, and panoramic mosaic and storage are carried out, wherein low resolution panoramic image data is also compressed coding, passed according to video
Defeated protocol format encapsulation distribution.When receiving virtual photograph instruction, low resolution panoramic picture number is first searched according to mapping relations
According to, then corresponding lookup high-resolution panoramic image data, cut finally according to attitude data in high-resolution panoramic image data
The sectional drawing of correspondence posture is taken, virtual photograph is realized.By the device and corresponding method of the present invention, two kinds of different resolutions can be used
The camera module of rate realizes the collection of net cast data and the collection of virtual photograph data respectively.
Brief description of the drawings
, below will be to embodiment or prior art in order to illustrate more clearly of technical scheme of the invention or of the prior art
The accompanying drawing that uses required in description is briefly described, it should be apparent that, during drawings in the following description are only the present invention
Some embodiments recorded, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of dual resolution design integrated form panorama camera device structural representation.
Fig. 2 is a kind of dual resolution design integrated form panorama camera device camera distribution schematic diagram;
Fig. 3 is a kind of dual resolution design integrated form panoramic shooting embodiment of the method flow chart.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the embodiment of the present invention, and make the present invention's
Above-mentioned purpose, feature and advantage can be more obvious understandable, make further detailed to technical scheme in the present invention below in conjunction with the accompanying drawings
Thin explanation.
Based on above mentioned problem, the present invention proposes a kind of dual resolution design integrated form panorama camera device, by setting two groups not
With the camera of resolution ratio, net cast data acquisition and virtual photograph data acquisition are realized respectively, both ensures net cast
Fluency and real-time, can meet the high-definition image quality requirement of virtual photograph again.
A kind of dual resolution design integrated form panorama camera device, as shown in figure 1, including:Panoramic camera 100, server mould
Block 300 and image transmission module 200;
The panoramic camera includes at least two image units, and each image unit includes two cameras, institute up and down
The resolution ratio for stating two cameras is different, and the resolution ratio of camera head that each image unit is in same horizontal line is identical;
The server module 300 includes:
Processing module 1, for receiving the view data that low resolution camera is gathered on panoramic camera, and to low
Resolution ratio camera collection view data carry out panoramic mosaic, compressed encoding, according to transmission of video agreement enter row format encapsulation,
Distribution, and generate mapping relations one;Realize that panoramic video is live;
Memory module 1, for carrying out low resolution panoramic image data and mapping relations one after panoramic mosaic
Preserved;
Processing module 2 303, for receiving the view data that high-resolution camera is gathered on panoramic camera, and to height
The view data of resolution ratio camera collection carries out panoramic mosaic, and generates mapping relations two;
Memory module 2 304, for carrying out high-resolution panoramic image data and mapping relations two after panoramic mosaic
Preserved;
Wherein processing module one is different with two groups of stitching algorithms in processing module two.
Processing module 3 305, for when server module receive virtual photograph instruction when, in being instructed according to virtual photograph
Video requency frame data and mapping relations one search memory module one in low resolution panoramic image data;And according to mapping relations
Two find the high-resolution panoramic image data in corresponding memory module two;
Then the attitude data in being instructed according to virtual photograph, is intercepted in the high-resolution panoramic image data to should
The sectional drawing of attitude data, that is, realize virtual photograph;
Described image transport module, for transmitting view data that the camera of panoramic camera gathers to server mould
Block.
In described device, two cameras up and down of each image unit are smaller apart and in a vertical line
On.
In described device, at least two image unit is distributed on sphere, cylinder or cube latitude line.Two groups
Camera needs to demarcate the same coordinate system.
As shown in Fig. 2 being dual resolution design integrated form panorama camera device camera distribution schematic diagram, the panorama camera device
Camera be distributed on cylinder, including tetra- image units of A, B, C, D, differentiated respectively comprising low on each image unit
Rate camera A1, B1, C1, D1, and high-resolution camera A2, B2, C2, D2, each image unit of A, B, C, D are arranged on cylinder
Latitude line on, two cameras on each image unit, such as A1, A2 are at a distance of smaller and on a vertical line.Certainly, exist
In practical application, the three-dimensional surfaces such as sphere, or cube can also be distributed in.
In described device, the camera is fish-eye camera or wide-angle camera.
In described device, the generation mapping relations one are specially:Processing module one is given birth in real time according to timestamp information
Into low resolution panoramic video index file, and set up the low resolution panoramic video index file and low resolution panorama sketch
As the mapping relations one of data
It is described generation mapping relations two be specially:Processing module two sets up low in memory module one according to corresponding time relationship
The mapping relations two of resolution ratio panoramic image data and the middle high-resolution panoramic image data of memory module two.
The present invention also proposes a kind of dual resolution design integrated form panoramic shooting method, as shown in figure 3, including:Panoramic camera,
Server module and image transmission module;
The panoramic camera includes at least two image units, and each image unit includes two cameras, institute up and down
The resolution ratio for stating two cameras is different, and the resolution ratio of camera head that each image unit is in same horizontal line is identical;
S301:Receive the view data of camera collection on panoramic camera, the image gathered to low resolution camera
Data perform S302, and S304 is performed to the view data that high-resolution camera is gathered;
S302:The view data of low resolution camera collection on panoramic camera is received, and to low resolution camera
The view data of collection carries out panoramic mosaic, compressed encoding, enters row format encapsulation, distribution according to transmission of video agreement, and generate
Mapping relations one;
S303:Preserved to carrying out low resolution panoramic image data and mapping relations one after panoramic mosaic;
S304:The view data of high-resolution camera collection on panoramic camera is received, and to high-resolution camera
The view data of collection carries out panoramic mosaic, and generates mapping relations two;
S305:Preserved to carrying out high-resolution panoramic image data and mapping relations two after panoramic mosaic;
S306:When server module receives virtual photograph instruction, the video requency frame data in being instructed according to virtual photograph
And mapping relations one search low resolution panoramic image data;
S307:Corresponding high-resolution panoramic image data are found according to mapping relations two;
S308:Attitude data in being instructed according to virtual photograph, intercepts correspondence in the high-resolution panoramic image data
The sectional drawing of the attitude data, that is, realize virtual photograph;
Described image transport module, for transmitting view data that the camera of panoramic camera gathers to server mould
Block.
Two cameras up and down of each image unit are smaller apart and on a vertical line.
In described method, at least two image unit is distributed on sphere, cylinder or cube latitude line.
In described method, the camera is fish-eye camera or wide-angle camera.
In described method, the generation mapping relations one are specially:Processing module one is given birth in real time according to timestamp information
Into low resolution panoramic video index file, and set up the low resolution panoramic video index file and low resolution panorama sketch
As the mapping relations one of data;
It is described generation mapping relations two be specially:Processing module two sets up low in memory module one according to corresponding time relationship
The mapping relations two of resolution ratio panoramic image data and the middle high-resolution panoramic image data of memory module two.
It is an advantage of the present invention that passing through two different resolution camera modules up and down of multiple image units, difference
The collection of net cast data and the collection of virtual photograph data are realized, low resolution camera can meet the stream of net cast
Smooth property and real-time, high-resolution camera can meet the high-definition image quality requirement of virtual photograph.
The present invention proposes a kind of dual resolution design integrated form panorama camera device and method, and described device includes panoramic shooting
Machine, image transmission module and server module;Wherein panoramic camera is made up of at least two image units, each image unit bag
Containing two cameras, and two resolution ratio of camera head differences up and down.Server module receives the figure of two groups of camera collections respectively
As data, and panoramic mosaic and storage are carried out, wherein low resolution panoramic image data is also compressed coding, passed according to video
Defeated protocol format encapsulation distribution.When receiving virtual photograph instruction, low resolution panoramic picture number is first searched according to mapping relations
According to, then corresponding lookup high-resolution panoramic image data, cut finally according to attitude data in high-resolution panoramic image data
The sectional drawing of correspondence posture is taken, virtual photograph is realized.By the device and corresponding method of the present invention, two kinds of different resolutions can be used
The camera module of rate realizes the collection of net cast data and the collection of virtual photograph data respectively.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.Although passing through embodiment
The present invention is depicted, it will be appreciated by the skilled addressee that the present invention has many deformations and the essence changed without departing from the present invention
God, it is desirable to which appended claim includes these deformations and the spirit changed without departing from the present invention.