Summary of the invention
It is existing according to the interception of the virtual three-dimensional space figure in house the technical problem to be solved by the present invention is to how to solve
The process of picture needs to be manually operated, and since the error of manual operation not can guarantee picture not and be inclined, these photos make
The problem of with will be greatly reduced bandwagon effect in the process.
Against the above technical problems, the embodiment provides one kind automatically corrects interception in virtual three-dimensional space
The method of picture, including:
To the default house of screenshot to be carried out, the coordinates of targets for constructing the virtual three-dimensional space figure in the default house is obtained
System;Wherein, the plane in the virtual three-dimensional space figure where ground be parallel to by the target-based coordinate system first axle and
The first plane that second axis determines;
The target-based coordinate system is adjusted, so that the second plane and the target where the first plane normal to screen
After the third axis of coordinate system is parallel to side in a vertical state on screen, by the virtual three-dimensional space figure of display adjust to
Target point and aspect cut the screenshot content of display so that showing the screenshot content of screenshot to be carried out on screen
Figure, obtains Target Photo.
The present embodiment additionally provides a kind of device that interception picture is automatically corrected in virtual three-dimensional space, including:
Module is obtained, for the default house to screenshot to be carried out, obtains the virtual three-dimensional sky for constructing the default house
Between figure target-based coordinate system;Wherein, the plane in the virtual three-dimensional space figure where ground is parallel to by the coordinates of targets
The first plane that first axle and the second axis in system determine;
Screen capture module, for adjusting the target-based coordinate system, so that second where the first plane normal to screen
After plane, the virtual three-dimensional space figure of display is adjusted to target point and aspect so that on screen display be intended into
The screenshot content of row screenshot carries out screenshot to the screenshot content of display, obtains Target Photo.
Optionally, the screen capture module is also used to obtain by the first axle and third axis or in the target-based coordinate system
The third plane that two axis and third axis determine, in the target point of the virtual three-dimensional space figure and the aspect
Under, by be parallel to the third plane plane carry out screenshot, obtain include the screenshot content picture, as the mesh
It marks on a map piece.
It optionally, further include application module, if the application module, which is used to receive, opens the virtual of the default house
The instruction of three-dimensional graph shows the Target Photo then during opening the virtual three-dimensional space figure;
And/or
Multiple described Target Photos are obtained, survey figure for the Target Photo as the reality for introducing the default house.
Optionally, if the screen capture module is also used to the Target Photo for loading the virtual three-dimensional space figure
It is shown in the process, then the screenshot content is the picture seen when entering the default house, the target point and institute
The determination of aspect is stated so that the picture and the opening virtual three-dimensional seen in the target point with the aspect
The picture seen when after space diagram is identical so that open picture that the user after the virtual three-dimensional space figure sees with it is described
Target Photo is identical.
Optionally, if the screen capture module is also used to the Target Photo in the process for loading the virtual three-dimensional space figure
Middle display is then handled the target according to the picture shown after the opening virtual three-dimensional space figure, so that the mesh
Piece of marking on a map is identical as the picture that shows after the virtual three-dimensional space figure is loaded for the first time.
Optionally, if the screen capture module, which is also used to the Target Photo, surveys figure, needle as the reality in the default house
Between multiple described Target Photos are obtained each function in the default house respectively, generated respectively between each function with this
Corresponding Target Photo is as the real recommended information for surveying figure between function.
The embodiment of the invention also provides a kind of electronic equipment, including:
At least one processor, at least one processor, communication interface and bus;Wherein,
The processor, memory, communication interface complete mutual communication by the bus;
The communication interface is for the information transmission between the electronic equipment and the communication equipment of other electronic equipments;
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to refer to
Order is able to carry out the process described above.
The embodiment of the invention also provides a kind of non-transient computer readable storage medium, the non-transient computer is readable
Storage medium stores computer instruction, and the computer instruction makes the calculating meter execute the process described above.
The embodiment provides a kind of to automatically correct the method and device for intercepting picture in virtual three-dimensional space,
This method presets the target-based coordinate system of the virtual three-dimensional space figure in house by constructing, and is adjusted to default house, so that in advance
If the plane normal to screen where housing floor.In the case where keeping the plane normal to screen where ground, pass through a little
Then the adjustment at position and visual angle carries out screenshot so that screenshot content is displayed on the screen.This method will be pre- according to target-based coordinate system
If house is adjusted to upright state, screenshot is carried out in the state that default house is upright, the picture of interception does not tilt, and guarantees
The bandwagon effects of these pictures in use.On the other hand, default house is adjusted to automatically according to target-based coordinate system
Upright state avoids the cumbersome and error manually adjusted.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Before describing in detail to content provided by the invention, " VR sees room ", " VR says room " and " VR band is seen " is first provided
The meaning of these concepts.VR (virtual reality) sees room in virtual three-dimensional space, says that room or band are seen.
See that room, video see that room, panorama see that room etc. can not provide depth information and really perceive with currently a popular picture
It sees that " VR sees room ", which refers to, really restores source of houses three-dimensional scenic using VR technology unlike room concept, is provided certainly for consumer
See that room body is tested by the immersion under mode, so that user be allowed to stay indoors to experience and really see room scene.For example, by beating
The VR source of houses on APP is opened, touching screen any place can be obtained size, direction, far and near even depth including house real space
Information.In reduction source of houses three-dimensional scenic this respect, the scanning shoot of multiple spot multi-angle can be first carried out to house, is obtained complete
Three dimensional point cloud, longitude and latitude data and the high clear colorful photo more exposed, later period are filled out by automatic modeling, intelligent cavity
Mend, full-automatic data are extracted, the three-dimensional reconstructions such as HDR optimization, by total data and picture texture mapping to threedimensional model,
Obtain the true floor space that end user sees.
" VR says room " is the broker's speech sound eeplaining service provided on the basis of " VR sees room ", dynamic according to roaming by broker
Line is recorded in advance, provides comprehensive explanation for consumer.
" VR band is seen " is then a kind of completely new interaction scenarios experience, and in VR scene, user can reserve in advance with broker
It sees the room time, and line interacts in real time, can also add whenever and wherever possible household, friend is completed at the same time " band is seen ".
Fig. 1 is the process signal of the method provided in this embodiment that interception picture is automatically corrected in virtual three-dimensional space
Figure, referring to Fig. 1, this method includes:
101:To the default house of screenshot to be carried out, the target for constructing the virtual three-dimensional space figure in the default house is obtained
Coordinate system;Wherein, the plane in the virtual three-dimensional space figure where ground is parallel to by first in the target-based coordinate system
The first plane that axis and the second axis determine;
102:The target-based coordinate system is adjusted, so that the second plane where the first plane normal to screen and described
After the third axis of target-based coordinate system is parallel to side in a vertical state on screen, by the virtual three-dimensional space figure tune of display
It is whole to target point and aspect so that show the screenshot content of screenshot to be carried out on screen, to the screenshot content of display into
Row screenshot, obtains Target Photo.
Method provided in this embodiment is usually executed by the equipment for being able to carry out the above method, for example, computer or clothes
Business device, the present embodiment are not particularly limited this.The method that this city is implemented to provide is intended to virtual three from the default house of building
It is intercepted in dimension space figure with respect to the horizontal plane without inclined photo.The virtual three-dimensional space figure in default house can be according to right
The virtual three-dimensional space of the distant view photograph building of default house shooting.Video camera institute when point refers to shooting these distant view photographs
Position.Target-based coordinate system is the coordinate system generated when constructing virtual three-dimensional space, presets the plane where the ground in house
Always the first plane that the first axle (for example, x-axis) and the second axis (for example, y-axis) for being parallel to the coordinate system determine, another axis
(for example, z-axis) is in the short transverse in default house.During screenshot, using target-based coordinate system as reference, by the first plane (xoy
Plane) it is adjusted to vertical with the second plane where screen, so that the plane where the ground in default house is flat perpendicular to second
Face.In the case where the plane where the ground for keeping default house is perpendicular to the second plane, according in the screenshot of desired screenshot
Hold, after adjusting virtual three-dimensional space figure to target point and aspect, carries out screenshot, can be obtained does not have with respect to the horizontal plane
Inclined picture.Spinning sensation will not be brought in application process by the picture that this method intercepts.The first axle of target-based coordinate system,
Second axis and third axis mutual angle in 90 ° two-by-two.
The method that interception picture is automatically corrected in virtual three-dimensional space is present embodiments provided, this method is pre- by building
If the target-based coordinate system of the virtual three-dimensional space figure in house, is adjusted default house, so where default housing floor
Plane normal to screen.In the case where keeping the plane normal to screen where ground, made by the adjustment at point and visual angle
It obtains screenshot content to be displayed on the screen, then carries out screenshot.Default house is adjusted to upright according to target-based coordinate system by this method
State, screenshot is carried out in the state that default house is upright, the picture of interception does not tilt, and ensure that these pictures are using
Bandwagon effect in the process.On the other hand, default house is adjusted to upright state automatically according to target-based coordinate system, avoided
The cumbersome and error manually adjusted.
Further, on the basis of the above embodiments, the adjustment target-based coordinate system, so that first plane
After the second plane where normal to screen, the virtual three-dimensional space figure of display is adjusted to target point and target view
Angle carries out screenshot to the screenshot content of display, obtains Target Photo so that showing the screenshot content of screenshot to be carried out on screen,
Including:
Obtain by the target-based coordinate system first axle and third axis or the third that determines of the second axis and third axis put down
Face, under the target point of the virtual three-dimensional space figure and the aspect, by being parallel to the third plane
Plane carry out screenshot, obtain include the screenshot content picture, as the Target Photo.
Similarly, method provided in this embodiment usually by be able to carry out the above method equipment execute, for example, computer or
Person's server, the present embodiment are not particularly limited this.In addition to such as above-mentioned as described in the examples by adjusting by coordinates of targets
The first plane that the first axle of system and the second axis determine, so that virtual three-dimensional space model is cut again after being in upright state
Figure is outer, can also such as method provided by the embodiment, by in target-based coordinate system first axle and the third that determines of third axis it is flat
The parallel plane in face (xoz plane) to virtual three-dimensional space figure carry out screenshot, or by with the second axis in target-based coordinate system
The plane parallel with third plane (the yoz plane) that third axis determines carries out screenshot to virtual three-dimensional space figure, and phase can be obtained
There is no inclined picture for horizontal plane.
Screenshot content can be predetermined the region for needing to preset this progress screenshot in house, be also possible to basis
The region for needing to carry out screenshot that the article that the construction the latter in default house is placed in default house temporarily determines.Aspect
With target point be by adjusting default house tomograph determine it can be seen that screenshot content or making screenshot
Content is in visual angle and the point of Target Photo appropriate location.
The method that interception picture is automatically corrected in virtual three-dimensional space is present embodiments provided, this method provides pass through
The method that the plane parallel with third plane carries out screenshot, this method is according to the position of screenshot content, by flat with third plane
Capable plane, which carries out screenshot, can be obtained upright figure, and screenshot process is convenient and easy.
Further, on the basis of the various embodiments described above, further include:
It is empty opening the virtual three-dimensional if receiving the instruction for opening the virtual three-dimensional space figure in the default house
Between during figure, show the Target Photo;
And/or
Multiple described Target Photos are obtained, survey figure for the Target Photo as the reality for introducing the default house.
On the one hand the Target Photo intercepted by the above method may be used as showing during opening virtual three-dimensional space figure
The Background shown, the reality that on the other hand may be used as the default house survey figure, it will be understood that, it also can be applied to other application
In, the present embodiment is without limitation.Target Photo may be adjusted to respect to the horizontal plane not inclined state, therefore will be by mesh
Piece of marking on a map will not generate spinning sensation when being applied.
The method that interception picture is automatically corrected in virtual three-dimensional space is present embodiments provided, this method provides targets
The application method of picture is opened virtual using Target Photo as the Background that shows during virtual three-dimensional space figure is opened
The picture shown during three-dimensional graph is identical with the picture shown when having just enter into virtual three-dimensional space figure, brings user more
Good linking sense, allows users in the noninductive virtual three-dimensional space figure for jumping into default house.
Further, on the basis of the various embodiments described above, if the Target Photo is used to load the virtual three-dimensional
It is shown during space diagram, then the screenshot content is the picture seen when entering the default house, the target
The determination of point and the aspect is so that described in the picture and opening seen in the target point with the aspect
The picture seen when after virtual three-dimensional space figure is identical, so as to open the picture that the user after the virtual three-dimensional space figure sees
Face is identical as the Target Photo.
Further, on the basis of the various embodiments described above, further include:
It is described virtual according to opening if the Target Photo is shown during loading the virtual three-dimensional space figure
The picture shown after three-dimensional graph handles the target, so that the Target Photo and loading described virtual three for the first time
The picture shown after dimension space figure is identical.
Carrying out processing to target includes that the Target Photo of interception is cut or rendered, preferably to be shown
Effect.
Present embodiments provide automatically corrected in virtual three-dimensional space interception picture method, when using Target Photo as
When Background, usually chooses one and enter the image content seen when presetting house as the screenshot content for needing to carry out screenshot, back
The image content that the content of scape figure is seen when entering default house with one is identical, and linking sense is preferable, and since Background is upright
Figure, user there will not be spinning sensation.
Further, on the basis of the various embodiments described above, if the reality that the Target Photo is used as the default house is surveyed
Figure then obtains multiple described Target Photos between each function in the default house respectively, distinguishes between each function
It generates using Target Photo corresponding between the function as the real recommended information for surveying figure.
The method for automatically correcting interception picture in virtual three-dimensional space is present embodiments provided, is used as in fact when needing to intercept
When surveying the picture of figure, the function that needs are introduced, visual angle should be chosen respectively and point carries out screenshot, so that generate
Recommended information between the function can provide for client enriches full information.
Fig. 2 is the structural block diagram of the device provided in this embodiment that interception picture is automatically corrected in virtual three-dimensional space,
Referring to fig. 2, which includes obtaining module 201 and screen capture module 202, wherein
Module 201 is obtained, for the default house to screenshot to be carried out, obtains the virtual three-dimensional for constructing the default house
The target-based coordinate system of space diagram;Wherein, the plane in the virtual three-dimensional space figure where ground is parallel to is sat by the target
The first plane that first axle and the second axis in mark system determine;
Screen capture module 202, for adjusting the target-based coordinate system, so where the first plane normal to screen
After two planes, the virtual three-dimensional space figure of display is adjusted to target point and aspect, so that showing desire on screen
The screenshot content for carrying out screenshot carries out screenshot to the screenshot content of display, obtains Target Photo.
The device provided in this embodiment that interception picture is automatically corrected in virtual three-dimensional space is suitable for above-described embodiment
The method that interception picture is automatically corrected in virtual three-dimensional space of middle offer, details are not described herein.
Present embodiments provide a kind of method and device that interception picture is automatically corrected in virtual three-dimensional space, the device
By constructing the target-based coordinate system of the virtual three-dimensional space figure in default house, default house is adjusted, so that default house
Plane normal to screen where floor.In the case where keeping the plane normal to screen where ground, pass through point and view
Then the adjustment at angle carries out screenshot so that screenshot content is displayed on the screen.This method is according to target-based coordinate system by default house
It is adjusted to upright state, screenshot is carried out in the state that default house is upright, the picture of interception does not tilt, and ensure that these
The bandwagon effect of picture in use.On the other hand, default house is adjusted to upright automatically according to target-based coordinate system
State avoids the cumbersome and error manually adjusted.
Fig. 3 is the structural block diagram for showing electronic equipment provided in this embodiment.
Referring to Fig. 3, the electronic equipment includes:Processor (processor) 301, memory (memory) 302, communication
Interface (Communications Interface) 303 and bus 304;
Wherein,
The processor 301, memory 302, communication interface 303 complete mutual communication by the bus 304;
The communication interface 303 is for the information transmission between the electronic equipment and the communication equipment of other electronic equipments;
The processor 301 is used to call the program instruction in the memory 302, to execute above-mentioned each method embodiment
Provided method, for example including:To the default house of screenshot to be carried out, the virtual three-dimensional sky for constructing the default house is obtained
Between figure target-based coordinate system;Wherein, the plane in the virtual three-dimensional space figure where ground is parallel to by the coordinates of targets
The first plane that first axle and the second axis in system determine;Adjust the target-based coordinate system so that first plane perpendicular to
After the third axis of the second plane and the target-based coordinate system where screen is parallel to side in a vertical state on screen, it will show
The virtual three-dimensional space figure shown is adjusted to target point and aspect, so that showing the screenshot of screenshot to be carried out on screen
Content carries out screenshot to the screenshot content of display, obtains Target Photo.
The present embodiment provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage medium
Computer instruction is stored, the computer instruction makes the computer execute method provided by above-mentioned each method embodiment, example
Such as include:To the default house of screenshot to be carried out, the coordinates of targets for constructing the virtual three-dimensional space figure in the default house is obtained
System;Wherein, the plane in the virtual three-dimensional space figure where ground be parallel to by the target-based coordinate system first axle and
The first plane that second axis determines;The target-based coordinate system is adjusted, so that second where the first plane normal to screen
After the third axis of plane and the target-based coordinate system is parallel to side in a vertical state on screen, by described virtual the three of display
Dimension space figure is adjusted to target point and aspect, so that the screenshot content of screenshot to be carried out is shown on screen, to display
Screenshot content carries out screenshot, obtains Target Photo.
The present embodiment discloses a kind of computer program product, and the computer program product includes being stored in non-transient calculating
Computer program on machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is calculated
When machine executes, computer is able to carry out method provided by above-mentioned each method embodiment, it may for example comprise:To screenshot to be carried out
Default house, obtains the target-based coordinate system for constructing the virtual three-dimensional space figure in the default house;Wherein, the virtual three-dimensional is empty
Between plane in figure where ground be parallel to by the first axle and the first plane for determining of the second axis in the target-based coordinate system;It adjusts
The whole target-based coordinate system, so that of the second plane and the target-based coordinate system where the first plane normal to screen
After three axis are parallel to side in a vertical state on screen, the virtual three-dimensional space figure of display is adjusted to target point and
Aspect carries out screenshot to the screenshot content of display, obtains target so that showing the screenshot content of screenshot to be carried out on screen
Picture.
Those of ordinary skill in the art will appreciate that:Realize that all or part of the steps of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program
When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes:ROM, RAM, magnetic disk or light
The various media that can store program code such as disk.
The embodiments such as electronic equipment described above are only schematical, wherein it is described as illustrated by the separation member
Unit may or may not be physically separated, and component shown as a unit may or may not be object
Manage unit, it can it is in one place, or may be distributed over multiple network units.It can select according to the actual needs
Some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying wound
In the case where the labour for the property made, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on
Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should
Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers
It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation
Method described in certain parts of example or embodiment.
Finally it should be noted that:The above various embodiments is only to illustrate the technical solution of the embodiment of the present invention, rather than right
It is limited;Although the embodiment of the present invention is described in detail referring to foregoing embodiments, the ordinary skill of this field
Personnel should understand that:It is still possible to modify the technical solutions described in the foregoing embodiments, or to part
Or all technical features are equivalently replaced;And these are modified or replaceed, it does not separate the essence of the corresponding technical solution
The range of each embodiment technical solution of the embodiment of the present invention.