CN108958609A - Generation method, device, storage medium and the terminal device of three-dimensional panorama surface plot - Google Patents

Generation method, device, storage medium and the terminal device of three-dimensional panorama surface plot Download PDF

Info

Publication number
CN108958609A
CN108958609A CN201810822040.2A CN201810822040A CN108958609A CN 108958609 A CN108958609 A CN 108958609A CN 201810822040 A CN201810822040 A CN 201810822040A CN 108958609 A CN108958609 A CN 108958609A
Authority
CN
China
Prior art keywords
dimensional
surface plot
dimensional panorama
visual angle
panorama
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810822040.2A
Other languages
Chinese (zh)
Inventor
王群
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810822040.2A priority Critical patent/CN108958609A/en
Publication of CN108958609A publication Critical patent/CN108958609A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • G06T3/08

Abstract

The present invention proposes generation method, device, storage medium and the terminal device of a kind of three-dimensional panorama surface plot, wherein the described method includes: two-dimensional panoramic figure is restored to obtain three-dimensional panorama figure;According to the surface plot standard of the three-dimensional panorama figure, the two-dimension picture at selected visual angle is intercepted from the three-dimensional panorama figure;Wherein, the surface plot standard includes surface plot size and surface plot content;And the two-dimension picture of interception is saved as to the surface plot of the three-dimensional panorama figure.Using the present invention, a suitable two-dimensional surface plot can be configured for three-dimensional panorama figure.

Description

Generation method, device, storage medium and the terminal device of three-dimensional panorama surface plot
Technical field
The present invention relates to field of computer technology more particularly to a kind of generation method of three-dimensional panorama surface plot, device, deposit Storage media and terminal device.
Background technique
With the development of internet technology, the application scenarios that three-dimensional panoramic pictures are showed on web page are more and more. Panorama web player can be set in web page, then can show three-dimensional panorama picture by panorama web player.User is clear Look at web page when, the feeling placed oneself in the midst of among panorama can be experienced.And user can change the visual angle of web player, Can watch in some central point horizontal 360-degree or it is 360 degree vertical in panorama content.
In the application product in existing internet, most application products can jump to the content exhibition of three-dimensional panorama The existing page.For this purpose, the page of the application product before jumping needs to provide a two-dimensional surface plot for this panorama content, The content of this surface plot can properly show the content of three-dimensional panorama.Thus, how to be configured properly for the content of three-dimensional panorama Two-dimentional surface plot the technical issues of being current urgent need to resolve.
Summary of the invention
The embodiment of the present invention provides generation method, device, storage medium and the terminal device of a kind of three-dimensional panorama surface plot, To solve or alleviate above one or more technical problems in the prior art.
In a first aspect, the embodiment of the invention provides a kind of generation methods of three-dimensional panorama surface plot, comprising:
Two-dimensional panoramic figure is restored to obtain three-dimensional panorama figure;
According to the surface plot standard of the three-dimensional panorama figure, the X-Y scheme at selected visual angle is intercepted from the three-dimensional panorama figure Piece;Wherein, the surface plot standard includes surface plot size and surface plot content;And
The two-dimension picture of interception is saved as to the surface plot of the three-dimensional panorama figure.
With reference to first aspect, described to restore two-dimensional panoramic figure to obtain three in the first embodiment of first aspect Tie up panorama sketch, comprising:
The two-dimensional panoramic figure is obtained into the three-dimensional panorama figure in the surface rendering of three-dimensional stereo model;Wherein, described The model center position of three-dimensional stereo model is the center of the three-dimensional panorama figure;And
According to the current visual angle of the model center position, current visual angle is thrown on the surface of the three-dimensional stereo model The picture material of shadow is displayed in the display interface.
The first embodiment with reference to first aspect, it is described according to institute in second of embodiment of first aspect The surface plot standard for stating three-dimensional panorama figure intercepts the two-dimension picture at selected visual angle from the three-dimensional panorama figure, comprising:
According to the visual angle that the model center position is selected, by selected visual angle in the surface of three-dimensional stereo model institute The picture material of projection is displayed in the display interface;
Judge whether described image content is consistent with surface plot content required by the surface plot standard;And
When described image content is consistent with the surface plot content, according to cover page required by the surface plot standard Figure size intercepts two-dimension picture from the display interface.
Second of embodiment with reference to first aspect, in the third embodiment of first aspect, the method is also Include:
Change amplitude according to the current visual angle in the model center position and preset visual angle, adjusts the model center position The visual angle set, and the visual angle that visual angle adjusted is selected as the model center position;Or
Detection viewer watches the real time view of the three-dimensional panorama figure on the display interface, and the real time view is made The visual angle selected for the model center position.
Second of embodiment with reference to first aspect, in the 4th kind of embodiment of first aspect, the surface plot Content includes surface plot main body, the method also includes: according to the surface plot main body, obtain comprising the surface plot main body With reference to two-dimension picture;And
It is described to judge whether described image content is consistent with surface plot content required by the surface plot standard, packet It includes:
Calculate described image content and the similarity with reference to two-dimension picture;And
According to the similarity, judge whether described image content is consistent with the surface plot content.
Second of embodiment with reference to first aspect, in the 5th kind of embodiment of first aspect, the method is also Include:
When described image content and the surface plot content are not met, adjust what the model center position was selected again Visual angle, to intercept two-dimension picture from the display interface.
With reference to first aspect or its any embodiment, in the 6th kind of embodiment of first aspect, the basis Cover page figure size, intercepts picture from the display interface required by the surface plot standard, comprising:
According to cover page figure size required by the surface plot standard, adjusts the model center position and the three-dimensional is vertical Vertical range between the surface of body Model;And
According to the current visual angle of the model center position, current visual angle is thrown on the surface of the three-dimensional stereo model The picture material of shadow is shown in the display interface, and intercepts two-dimension picture from the display interface.
Second aspect, the embodiment of the present invention provide a kind of generating means of three-dimensional panorama surface plot, comprising:
Three-dimensional panorama recovery module obtains three-dimensional panorama figure for restoring two-dimensional panoramic figure;
Two-dimension picture interception module, for the surface plot standard according to the three-dimensional panorama figure, from the three-dimensional panorama figure The middle two-dimension picture for intercepting selected visual angle;Wherein, the surface plot standard includes surface plot size and surface plot content;And
Surface plot preserving module, for the two-dimension picture of interception to be saved as to the surface plot of the three-dimensional panorama figure.
In conjunction with second aspect, in the first embodiment of second aspect, the three-dimensional panorama recovery module includes:
Rendering unit obtains the three-dimensional panorama for the surface rendering by the two-dimensional panoramic figure in three-dimensional stereo model Figure;Wherein, the model center position of the three-dimensional stereo model is the center of the three-dimensional panorama figure;
First projection display unit, for the current visual angle according to the model center position, by current visual angle described The picture material that the surface of three-dimensional stereo model is projected is displayed in the display interface.
In conjunction with the first embodiment of second aspect, in second of embodiment of second aspect, the X-Y scheme Piece interception module includes:
Second projection display unit, the visual angle for being selected according to the model center position, by selected visual angle in institute The picture material that the surface of three-dimensional stereo model is projected is stated to be displayed in the display interface;
Image judging unit, for judge described image content whether in surface plot required by the surface plot standard Appearance is consistent;And
Interception unit, for when described image content is consistent with the surface plot content, according to the cover icon Cover page figure size required by standard, intercepts two-dimension picture from the display interface.
The function of described device can also execute corresponding software realization by hardware realization by hardware.It is described Hardware or software include one or more modules corresponding with above-mentioned function.
It is described including processor and memory in three-dimensional panorama cover map generalization structure in a possible design Generating means of the memory for three-dimensional panorama surface plot execute three-dimensional panorama cover map generalization program in above-mentioned first aspect, The processor is configured to for executing the program stored in the memory.The generating means of the three-dimensional panorama surface plot It can also include communication interface, generating means and other equipment or communication for three-dimensional panorama surface plot.
The third aspect, the embodiment of the present invention also provide a kind of computer readable storage medium, are used for three-dimensional panorama surface plot Generating means used in computer software instructions, including the three-dimensional panorama surface plot for executing above-mentioned first aspect Program involved in generation method.
One of technical solution in above-mentioned technical proposal have the following advantages that or the utility model has the advantages that
The embodiment of the present invention can restore two-dimensional panoramic figure to obtain three-dimensional panorama figure, then according to the three-dimensional panorama The surface plot size and surface plot content of figure intercept the two-dimension picture at selected visual angle from the three-dimensional panorama figure, and will interception Two-dimension picture save as the surface plot of the three-dimensional panorama figure.So as to configure a suitable two dimension for three-dimensional panorama figure Surface plot.
One of technical solution in above-mentioned technical proposal have the following advantages that or the utility model has the advantages that
The embodiment of the present invention may determine that required by the picture material and surface plot standard of the three-dimensional panorama figure at selected visual angle Surface plot content whether be consistent, if be consistent, according to cover page figure size required by the surface plot standard, from this Two-dimension picture is intercepted in picture material.The interception that two-dimension picture can be carried out from visual angle, cover content and surface plot size, mentions High surface plot describes the accuracy of three-dimensional panorama figure.
Above-mentioned general introduction is merely to illustrate that the purpose of book, it is not intended to be limited in any way.Except foregoing description Schematical aspect, except embodiment and feature, by reference to attached drawing and the following detailed description, the present invention is further Aspect, embodiment and feature, which will be, to be readily apparent that.
Detailed description of the invention
In the accompanying drawings, unless specified otherwise herein, otherwise indicate the same or similar through the identical appended drawing reference of multiple attached drawings Component or element.What these attached drawings were not necessarily to scale.It should be understood that these attached drawings depict only according to the present invention Disclosed some embodiments, and should not serve to limit the scope of the present invention.
Fig. 1 is the flow diagram of one embodiment of the generation method of three-dimensional panorama surface plot provided by the invention;
Fig. 2 is the schematic diagram of one embodiment of two-dimensional panoramic picture provided by the invention;
Fig. 3 is the schematic diagram of one embodiment of three-dimensional stereo model provided by the invention;
Fig. 4 is the flow diagram of one embodiment of two-dimension picture interception process provided by the invention;
Fig. 5 is the stream of one embodiment of the process of the relationship of judgement picture material and surface plot content provided by the invention Journey schematic diagram;
Fig. 6 is that the process of one embodiment of the interception process provided by the invention according to cover page figure size cut picture is shown It is intended to;
Fig. 7 is the generation method of three-dimensional panorama surface plot provided by the invention using exemplary effect picture;
Fig. 8 is the generation method of three-dimensional panorama surface plot provided by the invention using exemplary flow diagram;
Fig. 9 is the structural schematic diagram of one embodiment of the generating means of three-dimensional panorama surface plot provided by the invention;
Figure 10 is the structural schematic diagram of one embodiment of terminal device provided by the invention.
Specific embodiment
Hereinafter, certain exemplary embodiments are simply just described.As one skilled in the art will recognize that Like that, without departing from the spirit or scope of the present invention, described embodiment can be modified by various different modes. Therefore, attached drawing and description are considered essentially illustrative rather than restrictive.
Referring to Fig. 1, can be applied to end the embodiment of the invention provides a kind of generation method of three-dimensional panorama surface plot End equipment.Terminal device can include but is not limited to smart phone, plate, computer etc..The present embodiment include step S100 extremely Step S300, specific as follows:
S100 restores two-dimensional panoramic figure to obtain three-dimensional panorama figure.
In the present embodiment, two-dimensional panoramic figure it is current there are mainly two types of: one is panorama ball shape content is projected to one On the two-dimensional panoramic figure for opening default wide high proportion, wide high proportion shown in Figure 2 is the deformation picture of 2:1;Another kind be by Panorama ball shape content projects on 6 faces of cube, available 6 two-dimensional panoramic figures (deformation picture).Thus, two dimension Panorama sketch may include panoramic pictures or hexahedral panoramic pictures etc. with fixed wide high proportion.But two-dimensional panoramic figure It is only capable of the content that three-dimensional panorama is presented in part, and the content that picture is presented is deformation, is not easy to cut from two-dimensional panoramic figure Surface plot is taken to indicate three-dimensional panorama.In order to obtain the surface plot of three-dimensional panorama, current embodiment require that reduction three-dimensional panorama is interior Hold, to intercept two-dimension picture from true three-dimensional panorama figure as surface plot.
S200 intercepts the two-dimension picture at selected visual angle according to the surface plot standard of three-dimensional panorama figure from three-dimensional panorama figure. Wherein, surface plot standard includes surface plot size and surface plot content.
In the present embodiment, in the case where three-dimensional panorama content is applied to different scenes, required surface plot standard can With not identical.For example, being applied to the surface plot ruler of three-dimensional panorama required by the browser at the end PC (personal computer) It is very little can than be applied to mobile electronic device browser required by three-dimensional panorama surface plot size larger.For another example, Same three-dimensional panorama can be respectively applied in multiple application products, and the surface plot ruler of its needs can be set in each application product Very little and surface plot content.Application product may include tourism, the website for selling product or APP (Application, using journey Sequence) etc..Surface plot size may include area, length and width, diameter, pixel of picture etc., can measure picture in the display page Size.Surface plot content may include environment locating for main body and main body etc..For example, if the main body packet of surface plot content Panda and bamboo are included, environment locating for main body is forest, then can intercept the two-dimension picture that a panda eats bamboo in forest. Main body can include but is not limited to personage, animal, article, building etc..
The two-dimension picture of interception is saved as the surface plot of three-dimensional panorama figure by S300.
In the present embodiment, terminal device can receive the screenshot title of input, can also be by screenshot time or original The customized generation screenshot title of the title of the two-dimensional panoramic figure of input.While saving surface plot, screenshot title can recorde The information such as (or being recorded as surface plot title), screenshot time, screenshot size, founder.
In the present embodiment, surface plot can be used to indicate that three-dimensional panorama.If including in the display page of application product Surface plot, and the surface plot can be linked to the content of a corresponding three-dimensional panorama and show the page, then when the surface plot is by point It hits or when touch-control, the content can be jumped to and showed in the page.
The embodiment of the present invention can restore the two-dimensional panoramic figure of deformation to obtain three-dimensional panorama figure, then can be from true Surface plot is intercepted in three-dimensional panorama figure, for indicating the content of three-dimensional panorama.And according to the surface plot of the three-dimensional panorama figure Size and surface plot content intercept the two-dimension picture at selected visual angle from the three-dimensional panorama figure, can match for three-dimensional panorama figure Set a suitable two-dimensional surface plot.
In one possible implementation, in above-mentioned steps S100 reduction three-dimensional panorama figure process, may include: Two-dimensional panoramic figure is obtained into three-dimensional panorama figure in the surface rendering of three-dimensional stereo model;Wherein, in the model of three-dimensional stereo model Heart position is the center of three-dimensional panorama figure.Then, according to the current visual angle of model center position, by current visual angle in three-dimensional The picture material that the surface of three-dimensional model is projected is displayed in the display interface.
In the present embodiment, panorama browser can be used to be rendered.It is, for example, possible to use webGL (Web Graphics Library, network graphic library) drawing agreement, two-dimensional panoramic figure is depicted as three-dimensional panorama in a browser. Referring to Fig. 3, three-dimensional stereo model can be three-dimensional ball, and three-dimensional panorama renderer renders three-dimensional panorama content in three-dimensional ball table Face.For example, if the content of three-dimensional panorama is indoor furniture environment, the image that three-dimensional ring surface is presented indoor furniture ring thus The content in border.If, can be with by changing viewing visual angle using the ball center of three-dimensional ball as the viewing visual angle of indoor furniture environment Watch the ambient conditions of the various pieces of indoor furniture environment.
In one possible implementation, referring to fig. 4, the two-dimension picture interception process of above-mentioned steps S200 may include Step S210 is as follows to step S230:
S210 is thrown at selected visual angle on the surface of three-dimensional stereo model according to the visual angle that model center position is selected The picture material of shadow is displayed in the display interface.
S220, judges whether picture material is consistent with surface plot content required by surface plot standard.
S230, when picture material is consistent with surface plot content, according to cover page figure size required by surface plot standard, Two-dimension picture is intercepted from display interface.
In the present embodiment, the selected visual angle in adjustable model center position, and visual angle of every adjustment can be with Judge whether the picture material that visual angle adjusted is projected is consistent with desired surface plot content.It can be from this if meeting Two-dimension picture is intercepted in picture material;If not meeting, the selected visual angle in model center position is adjusted again, and continue to execute step S210 to step S230, to intercept suitable two-dimension picture from display interface.
In the present embodiment, three-dimensional panorama figure can be presented in interface by browser, it is possible to use browser The screenshot API (Application Programming Interface, application programming interface) of offer, from browser Screenshot is carried out in display interface (form).
In one possible implementation, it can wrap for the above-mentioned steps S210 mode for providing a selected visual angle It includes: amplitude is changed according to the current visual angle in model center position and preset visual angle, adjust the visual angle of model center position, and will The visual angle that visual angle adjusted is selected as model center position.
In the present embodiment, the visual angle of model center position include horizontal direction 0 to 360 degree and vertical direction 0 to 360 degree.If the current visual angle in model center position is that 120 degree of horizontal direction, 90 degree of vertical direction and visual angle change amplitude It is 15 degree, then can first adjusts in the horizontal direction the visual angle of model center position and vertical direction wouldn't adjust, view adjusted Angle is 135 degree of horizontal direction, 90 degree of vertical direction.Alternatively, first can vertically adjust the visual angle of model center position and Horizontal direction wouldn't adjust, and visual angle adjusted is 120 degree of horizontal direction, 105 degree of vertical direction.Therefore, the present embodiment can be with Automatically change amplitude by scheduled visual angle and adjust visual angle, to intercept suitable two-dimension picture.
In one possible implementation, it can also be wrapped for the above-mentioned steps S210 mode for providing a selected visual angle Include: detection viewer watches the real time view of the three-dimensional panorama figure on display interface, and using real time view as model center position Set selected visual angle.
In the present embodiment, three-dimensional panorama figure may be displayed in browser, and viewer can be by aobvious with browser Show the interaction at interface to change visual angle, which is the real time view for the three-dimensional panorama figure that viewer watches on display interface, eventually End equipment can be using the real time view as selected visual angle, to intercept two-dimension picture.
In one possible implementation, surface plot content may include surface plot main body, referring to Fig. 5, above-mentioned steps S200 can also include: S201, according to surface plot main body, obtain the reference two-dimension picture comprising surface plot main body.With reference to two dimension Picture is for judging whether the picture material that visual angle is projected is consistent with surface plot content required by surface plot standard.Example Such as, envelope drawing main body is Peking University, then can be one obtained from internet with reference to two-dimension picture and include Peking University Gate picture.The picture can visually describe Peking University.The picture material of above-mentioned steps S220 whether with surface plot The process that content is consistent may include:
S222 calculates picture material and the similarity with reference to two-dimension picture.
S224 judges whether picture material is consistent with surface plot content according to similarity.
In the present embodiment, a similarity threshold, such as 85%, 90% etc. can be preset.If the phase being calculated It is greater than similarity threshold like degree, then can be determined that the picture material that current visual angle is projected is consistent with surface plot content.If The similarity being calculated is less than similarity threshold, then can be determined that picture material and surface plot content that current visual angle is projected It is inconsistent.Example is connected, is the gate comprising Peking University with reference to two-dimension picture if envelope drawing main body is Peking University Picture, then when the obtained picture material of projection includes the gate of Peking University, this picture material and with reference to two-dimension picture Similarity is higher.
In one possible implementation, referring to Fig. 6, according to cover page figure size cut picture in above-mentioned steps S230 Process may include:
S232 adjusts model center position and three-dimensional stereo model according to cover page figure size required by surface plot standard Surface between vertical range.
S234 is projected current visual angle on the surface of three-dimensional stereo model according to the current visual angle of model center position Picture material be displayed in the display interface, and two-dimension picture is intercepted from display interface.
Referring to Fig. 3, three-dimensional stereo model can be three-dimensional ball.Adjust the surface of model center position and three-dimensional stereo model Between vertical range, the shown picture on interface of current visual angle can be scaled.Cover page figure size includes Pixel Dimensions, object Manage size, picture file size etc..Pixel Dimensions indicate size as unit of pixel, physical size indicate with centimetre or millimeter Deng the size for unit.For example, when the physical size of cover page figure required by surface plot standard is smaller, if directly from interface Interception, the then picture pixels for intercepting out are lower.At this point it is possible to the surface of further model center position and three-dimensional stereo model it Between vertical range, make display interface amplification picture.Reversely amplify the physical size of cover page figure in the ratio being closing the distance again.Most Picture is intercepted from display interface according to the physical size of this surface plot afterwards.
In the present embodiment, interception two-dimension picture can be based on the centre bit of display interface (for example, form of browser) It sets to intercept.For example, the two-dimension picture of the rectangle if necessary to interception one width width1 and height height1, then with clear Looking at the center of device is the center of rectangle four apex coordinates determining rectangle, can finally be sat based on four vertex Mark interception two-dimension picture.
Fig. 7 and Fig. 8 are please referred to, Fig. 7 is the application of the generation method of three-dimensional panorama surface plot provided in an embodiment of the present invention Exemplary effect picture, Fig. 8 are the generation methods of three-dimensional panorama surface plot provided in an embodiment of the present invention using exemplary process Figure.The present embodiment inputs two-dimensional panoramic picture to terminal device, for example, the ratio of width to height is the panoramic pictures of 2:1, hexahedral panorama Picture.Two-dimensional panoramic picture is rendered and is restored by terminal device.Operator can see that three-dimensional panorama is imitated by visualization interface Fruit, the three-dimensional panorama figure of top half as shown in Figure 7.It is true that operator can use the interactive operations such as rotation visual angle, scaling Determine the content that display interface shows.Picture can also be intercepted by marking starting position coordinates and wide height in display interface, Surface plot as three-dimensional panorama.Operator clicks the interface control saved, and surface plot can be saved in local or pushed away It is sent in the product on line.For example, as shown in fig. 7, operator can click the control (such as button) of creation screenshot, execution The preservation of shot image information.The table of the lower half Fig. 7 indicates to have intercepted one entitled " landing page contract drawing " based on three-dimensional panorama figure Surface plot of the two-dimension picture as three-dimensional panorama figure.Corresponding surface plot information can be retrieved by surface plot title.It should Size of the surface plot as unit of pixel is 640*640.By centimetre as unit of from three-dimensional panorama figure screenshot size: height h (height) be -141.38000, width v (width) be 105.52000.The view of the watched three-dimensional panorama of viewer when screenshot Rink corner FOV (Field of view, visual angle) is 100 degree.Surface plot can be shown in " screenshot " of table in the form of thumbnail In.And it can recorde the founder of surface plot, such as " wangqun " in table.
Example is applied in conjunction with above-mentioned, referring to Fig. 8, the present embodiment may include: by the treatment process of process sequence
1, three-dimensional panorama restores.Input 2:1 two-dimensional panoramic figure (panoramic pictures of i.e. one wide high proportion 2:1) or six faces Body two-dimensional panoramic figure (two syndrome panoramic pictures of 6 different directions) is in terminal device.Then, by web GL agreement clear It lookes in device and carries out two-dimensional panoramic figure to be depicted as three-dimensional panorama, visual angle is in the center of panorama in three-dimensional panorama, will regard The picture material that angle is projected is shown in the display interface of terminal device.It can only see the portion in visual angle always due to viewer Point, it is possible to each section picture material of three-dimensional panorama is watched by changing visual angle.And viewer can hand over browser The mutual three-dimensional panorama figure to change view directions or zooming interface.
It in the present embodiment, can be by the three-dimensional panorama renderer that webGL protocol programming is realized, to carry out panorama content Rendering or interaction, wherein interaction can include but is not limited to change viewing visual angle or content viewable scaling.Three-dimensional panorama renderer A three-dimensional stereo model can be generated in three-dimensional coordinate system, such as three-dimensional ball.In a void built in ball center (0,0,0) The content of quasi- video camera (camera) in the three-dimensional panorama of ball interior observation spherical surface.It is three-dimensional by changing virtual camera distance The distance of the spherical surface of ball carries out content viewable scaling.Camera angle by changing virtual camera can see different perspectives Three-dimensional panorama content.The three-dimensional panorama figure that viewer sees in display interface is, under the visual angle that virtual camera is selected Three-dimensional panorama content is projected in the projection (that is, picture material) on two-dimensional surface.
2, screen capture module.Screen capture module can provide the operation for screenshot, can use browser and be based on The screenshot API that JavaScript scripting language provides.By screen capture module, user can be in the three-dimensional panorama figure that browser is shown Screenshot is carried out, and the starting point coordinate of screenshot can be set according to the position of browser window, or the width of setting screenshot Width and height height is spent, screenshot is carried out.
3, the content of surface plot saves.When complete step 2 screenshot after, operator can click creation screenshot button or After control, screenshot title is entered reminder information into, and records the screenshot holding time.After operator, which clicks, to be saved, screenshot can To be saved in database, for the surface plot as three-dimensional panorama figure.
Referring to Fig. 9, the embodiment of the present invention provides a kind of generating means of three-dimensional panorama surface plot, comprising:
Three-dimensional panorama recovery module 100 obtains three-dimensional panorama figure for restoring two-dimensional panoramic figure;
Two-dimension picture interception module 200, for the surface plot standard according to the three-dimensional panorama figure, from the three-dimensional panorama The two-dimension picture at selected visual angle is intercepted in figure;Wherein, the surface plot standard includes surface plot size and surface plot content;And
Surface plot preserving module 300, for the two-dimension picture of interception to be saved as to the surface plot of the three-dimensional panorama figure.
In one possible implementation, the three-dimensional panorama recovery module includes:
Rendering unit, for being obtained the two-dimensional panoramic figure in the surface rendering of three-dimensional stereo model described three-dimensional complete Jing Tu;Wherein, the model center position of the three-dimensional stereo model is the center of the three-dimensional panorama figure;
First projection display unit, for the current visual angle according to the model center position, by current visual angle described The picture material that the surface of three-dimensional stereo model is projected is displayed in the display interface.
In one possible implementation, the two-dimension picture interception module includes:
Second projection display unit, the visual angle for being selected according to the model center position, by selected visual angle in institute The picture material that the surface of three-dimensional stereo model is projected is stated to be displayed in the display interface;
Image judging unit, for judge described image content whether in surface plot required by the surface plot standard Appearance is consistent;And
Interception unit, for when described image content is consistent with the surface plot content, according to the cover icon Cover page figure size required by standard, intercepts two-dimension picture from the display interface.
The function of described device can also execute corresponding software realization by hardware realization by hardware.It is described Hardware or software include one or more modules corresponding with above-mentioned function.
It is described including processor and memory in three-dimensional panorama cover map generalization structure in a possible design Generating means of the memory for three-dimensional panorama surface plot execute three-dimensional panorama cover map generalization program in above-mentioned first aspect, The processor is configured to for executing the program stored in the memory.The generating means of the three-dimensional panorama surface plot It can also include communication interface, generating means and other equipment or communication for three-dimensional panorama surface plot.
The embodiment of the present invention also provides a kind of three-dimensional panorama cover map generalization terminal device, as shown in Figure 10, the equipment It include: memory 21 and processor 22, being stored in memory 21 can be in the computer program on processor 22.Processor 22 is held The generation method of the three-dimensional panorama surface plot in above-described embodiment is realized when row computer program.Memory 21 and processor 22 Quantity can be one or more.
The equipment further include:
Communication interface 23, for the communication between processor 22 and external equipment.
Memory 21 may include high speed RAM memory, it is also possible to further include nonvolatile memory (non-volatile Memory), a for example, at least magnetic disk storage.
If memory 21, processor 22 and the independent realization of communication interface 23, memory 21, processor 22 and communication are connect Mouth 23 can be connected with each other by bus and complete mutual communication.Bus can be industry standard architecture (ISA, Industry Standard Architecture) bus, external equipment interconnection (PCI, Peripheral Component) be total Line or extended industry-standard architecture (EISA, Extended Industry Standard Component) bus etc..Always Line can be divided into address bus, data/address bus, control bus etc..Only to be indicated with a thick line in Figure 10, but simultaneously convenient for indicating Only a bus or a type of bus are not indicated.
Optionally, in specific implementation, if memory 21, processor 22 and communication interface 23 are integrated in chip piece On, then memory 21, processor 22 and communication interface 23 can complete mutual communication by internal interface.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.Moreover, particular features, structures, materials, or characteristics described It may be combined in any suitable manner in any one or more of the embodiments or examples.In addition, without conflicting with each other, this The technical staff in field can be by the spy of different embodiments or examples described in this specification and different embodiments or examples Sign is combined.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic." first " is defined as a result, the feature of " second " can be expressed or hidden It include at least one this feature containing ground.In the description of the present invention, the meaning of " plurality " is two or more, unless otherwise Clear specific restriction.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.
The computer-readable medium of the embodiment of the present invention can be computer-readable signal media or computer-readable deposit Storage media either the two any combination.The more specific example at least (non-exclusive of computer readable storage medium List) include the following: there is the electrical connection section (electronic device) of one or more wirings, portable computer diskette box (magnetic dress Set), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (deposit by EPROM or flash Reservoir), fiber device and portable read-only memory (CDROM).In addition, computer readable storage medium can even is that Can the paper of print routine or other suitable media on it because can for example be swept by carrying out optics to paper or other media It retouches, is then edited, interprets or handled when necessary with other suitable methods electronically to obtain program, then will It is stored in computer storage.
In embodiments of the present invention, computer-readable signal media may include in a base band or as carrier wave a part The data-signal of propagation, wherein carrying computer-readable program code.The data-signal of this propagation can use a variety of Form, including but not limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media is also It can be any computer-readable medium other than computer readable storage medium, which can send, pass It broadcasts or transmits for instruction execution system, input method or device use or program in connection.Computer can The program code for reading to include on medium can transmit with any suitable medium, including but not limited to: wirelessly, electric wire, optical cable, penetrate Frequently (Radio Frequency, RF) etc. or above-mentioned any appropriate combination.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is the program that relevant hardware can be instructed to complete by program, which can store in a kind of computer-readable storage In medium, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.If integrated module with The form of software function module is realized and when sold or used as an independent product, also can store computer-readable at one In storage medium.Storage medium can be read-only memory, disk or CD etc..
More than, only a specific embodiment of the invention, but scope of protection of the present invention is not limited thereto, and it is any to be familiar with Those skilled in the art in the technical scope disclosed by the present invention, can readily occur in its various change or replacement, these It should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with scope of protection of the claims It is quasi-.

Claims (12)

1. a kind of generation method of three-dimensional panorama surface plot characterized by comprising
Two-dimensional panoramic figure is restored to obtain three-dimensional panorama figure;
According to the surface plot standard of the three-dimensional panorama figure, the two-dimension picture at selected visual angle is intercepted from the three-dimensional panorama figure; Wherein, the surface plot standard includes surface plot size and surface plot content;And
The two-dimension picture of interception is saved as to the surface plot of the three-dimensional panorama figure.
2. the generation method of three-dimensional panorama surface plot as described in claim 1, which is characterized in that it is described by two-dimensional panoramic figure also Original obtains three-dimensional panorama figure, comprising:
The two-dimensional panoramic figure is obtained into the three-dimensional panorama figure in the surface rendering of three-dimensional stereo model;Wherein, the three-dimensional The model center position of three-dimensional model is the center of the three-dimensional panorama figure;And
According to the current visual angle of the model center position, current visual angle is projected on the surface of the three-dimensional stereo model Picture material is displayed in the display interface.
3. the generation method of three-dimensional panorama surface plot as claimed in claim 2, which is characterized in that described according to described three-dimensional complete The surface plot standard of scape figure intercepts the two-dimension picture at selected visual angle from the three-dimensional panorama figure, comprising:
According to the visual angle that the model center position is selected, selected visual angle is projected on the surface of the three-dimensional stereo model Picture material be displayed in the display interface;
Judge whether described image content is consistent with surface plot content required by the surface plot standard;And
When described image content is consistent with the surface plot content, according to cover page figure ruler required by the surface plot standard It is very little, two-dimension picture is intercepted from the display interface.
4. the generation method of three-dimensional panorama surface plot as claimed in claim 3, which is characterized in that the method also includes:
Change amplitude according to the current visual angle in the model center position and preset visual angle, adjusts the model center position Visual angle, and the visual angle that visual angle adjusted is selected as the model center position;Or
Detection viewer watches the real time view of the three-dimensional panorama figure on the display interface, and using the real time view as institute State the selected visual angle in model center position.
5. the generation method of three-dimensional panorama surface plot as claimed in claim 3, which is characterized in that the surface plot content includes Surface plot main body, the method also includes: according to the surface plot main body, obtain the reference two dimension comprising the surface plot main body Picture;And
It is described to judge whether described image content is consistent with surface plot content required by the surface plot standard, comprising:
Calculate described image content and the similarity with reference to two-dimension picture;And
According to the similarity, judge whether described image content is consistent with the surface plot content.
6. the generation method of three-dimensional panorama surface plot as claimed in claim 3, which is characterized in that the method also includes:
When described image content and the surface plot content are not met, the selected view in the model center position is adjusted again Angle, to intercept two-dimension picture from the display interface.
7. such as the generation method of the described in any item three-dimensional panorama surface plots of claim 3 to 6, which is characterized in that the basis Cover page figure size, intercepts picture from the display interface required by the surface plot standard, comprising:
According to cover page figure size required by the surface plot standard, the model center position and the 3 D stereo mould are adjusted Vertical range between the surface of type;And
According to the current visual angle of the model center position, current visual angle is projected on the surface of the three-dimensional stereo model Picture material is shown in the display interface, and intercepts two-dimension picture from the display interface.
8. a kind of generating means of three-dimensional panorama surface plot characterized by comprising
Three-dimensional panorama recovery module obtains three-dimensional panorama figure for restoring two-dimensional panoramic figure;
Two-dimension picture interception module is cut from the three-dimensional panorama figure for the surface plot standard according to the three-dimensional panorama figure Take the two-dimension picture at selected visual angle;Wherein, the surface plot standard includes surface plot size and surface plot content;
Surface plot preserving module, for the two-dimension picture of interception to be saved as to the surface plot of the three-dimensional panorama figure.
9. the generating means of three-dimensional panorama surface plot as claimed in claim 8, which is characterized in that the three-dimensional panorama restores mould Block includes:
Rendering unit, for the two-dimensional panoramic figure to be obtained the three-dimensional panorama figure in the surface rendering of three-dimensional stereo model; Wherein, the model center position of the three-dimensional stereo model is the center of the three-dimensional panorama figure;
First projection display unit, for the current visual angle according to the model center position, by current visual angle in the three-dimensional The picture material that the surface of three-dimensional model is projected is displayed in the display interface.
10. the generating means of three-dimensional panorama surface plot as claimed in claim 9, which is characterized in that the two-dimension picture interception Module includes:
Second projection display unit, the visual angle for being selected according to the model center position, by selected visual angle described three The picture material that the surface of dimension three-dimensional model is projected is displayed in the display interface;
Image judging unit, for judge described image content whether with surface plot content phase required by the surface plot standard Meet;And
Interception unit, for when described image content is consistent with the surface plot content, according to the surface plot standard institute It is required that cover page figure size, intercept two-dimension picture from the display interface.
11. a kind of terminal device for realizing three-dimensional panorama cover map generalization, which is characterized in that the terminal device includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors Realize the generation method of the three-dimensional panorama surface plot as described in any in claim 1-7.
12. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the program is held by processor The generation method of the three-dimensional panorama surface plot as described in any in claim 1-7 is realized when row.
CN201810822040.2A 2018-07-24 2018-07-24 Generation method, device, storage medium and the terminal device of three-dimensional panorama surface plot Pending CN108958609A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810822040.2A CN108958609A (en) 2018-07-24 2018-07-24 Generation method, device, storage medium and the terminal device of three-dimensional panorama surface plot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810822040.2A CN108958609A (en) 2018-07-24 2018-07-24 Generation method, device, storage medium and the terminal device of three-dimensional panorama surface plot

Publications (1)

Publication Number Publication Date
CN108958609A true CN108958609A (en) 2018-12-07

Family

ID=64463604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810822040.2A Pending CN108958609A (en) 2018-07-24 2018-07-24 Generation method, device, storage medium and the terminal device of three-dimensional panorama surface plot

Country Status (1)

Country Link
CN (1) CN108958609A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108765582A (en) * 2018-04-28 2018-11-06 青岛海信电器股份有限公司 A kind of panoramic pictures display methods and equipment
CN110097539A (en) * 2019-04-19 2019-08-06 贝壳技术有限公司 A kind of method and device intercepting picture in virtual three-dimensional model
CN113126942A (en) * 2021-03-19 2021-07-16 北京城市网邻信息技术有限公司 Display method and device of cover picture, electronic equipment and storage medium
CN113781664A (en) * 2021-11-09 2021-12-10 四川省交通勘察设计研究院有限公司 VR panorama construction display method, system and terminal based on three-dimensional model

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102129717A (en) * 2011-03-09 2011-07-20 上海诚明融鑫科技有限公司 Method and system for browsing panorama by hot spot in three-dimensional panoramic space
CN105956999A (en) * 2016-04-28 2016-09-21 努比亚技术有限公司 Thumbnail generating device and method
CN107146197A (en) * 2017-03-31 2017-09-08 北京奇艺世纪科技有限公司 A kind of reduced graph generating method and device
CN107180406A (en) * 2016-03-09 2017-09-19 腾讯科技(深圳)有限公司 Image processing method and equipment
CN107608605A (en) * 2017-09-28 2018-01-19 北京金山安全软件有限公司 Image display method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102129717A (en) * 2011-03-09 2011-07-20 上海诚明融鑫科技有限公司 Method and system for browsing panorama by hot spot in three-dimensional panoramic space
CN107180406A (en) * 2016-03-09 2017-09-19 腾讯科技(深圳)有限公司 Image processing method and equipment
CN105956999A (en) * 2016-04-28 2016-09-21 努比亚技术有限公司 Thumbnail generating device and method
CN107146197A (en) * 2017-03-31 2017-09-08 北京奇艺世纪科技有限公司 A kind of reduced graph generating method and device
CN107608605A (en) * 2017-09-28 2018-01-19 北京金山安全软件有限公司 Image display method and device, electronic equipment and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108765582A (en) * 2018-04-28 2018-11-06 青岛海信电器股份有限公司 A kind of panoramic pictures display methods and equipment
CN108765582B (en) * 2018-04-28 2022-06-17 海信视像科技股份有限公司 Panoramic picture display method and device
CN110097539A (en) * 2019-04-19 2019-08-06 贝壳技术有限公司 A kind of method and device intercepting picture in virtual three-dimensional model
CN110097539B (en) * 2019-04-19 2020-09-11 贝壳找房(北京)科技有限公司 Method and device for capturing picture in virtual three-dimensional model
CN113126942A (en) * 2021-03-19 2021-07-16 北京城市网邻信息技术有限公司 Display method and device of cover picture, electronic equipment and storage medium
CN113781664A (en) * 2021-11-09 2021-12-10 四川省交通勘察设计研究院有限公司 VR panorama construction display method, system and terminal based on three-dimensional model
CN113781664B (en) * 2021-11-09 2022-01-25 四川省交通勘察设计研究院有限公司 VR panorama construction display method, system and terminal based on three-dimensional model

Similar Documents

Publication Publication Date Title
US11498003B2 (en) Image rendering method, device, and storage medium
US10948982B2 (en) Methods and systems for integrating virtual content into an immersive virtual reality world based on real-world scenery
US10771704B2 (en) Method of displaying wide-angle image, image display system, and information processing apparatus
US20190189160A1 (en) Spherical video editing
CN108958609A (en) Generation method, device, storage medium and the terminal device of three-dimensional panorama surface plot
US9118970B2 (en) System and method for embedding and viewing media files within a virtual and augmented reality scene
US11282264B2 (en) Virtual reality content display method and apparatus
CN110019600B (en) Map processing method, map processing device and storage medium
CN107018336A (en) The method and apparatus of image procossing and the method and apparatus of Video processing
CN108269305A (en) A kind of two dimension, three-dimensional data linkage methods of exhibiting and system
US20140002443A1 (en) Augmented reality interface
CN103905761A (en) Image-processing system, image-processing method and program
CN108133454B (en) Space geometric model image switching method, device and system and interaction equipment
US20130229406A1 (en) Controlling images at mobile devices using sensors
CN112150603A (en) Initial visual angle control and presentation method and system based on three-dimensional point cloud
US10990843B2 (en) Method and electronic device for enhancing efficiency of searching for regions of interest in a virtual environment
CN111047674A (en) Animation rendering method and device
CN104270681B (en) video information playing method and device
CN115690363A (en) Virtual object display method and device and head-mounted display device
US20240020910A1 (en) Video playing method and apparatus, electronic device, medium, and program product
CN112891940A (en) Image data processing method and device, storage medium and computer equipment
CN112569601B (en) Splicing method and device of model components in game and electronic equipment
WO2020184259A1 (en) Image display system, image display method, and non-transitory recording medium
US11961190B2 (en) Content distribution system, content distribution method, and content distribution program
CN114327174A (en) Virtual reality scene display method and cursor three-dimensional display method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181207