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, the 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.
Fig. 1 is the stream of the method for direction of the determining user provided in an embodiment of the present invention in source of houses virtual three-dimensional space figure
Cheng Tu, as shown in Figure 1, which comprises
Step 10 obtains user in the virtual three-dimensional space figure of the source of houses when migration, at the visual angle for being presently in position;
Step 11 obtains the spatial data that the user is presently in position;
Step 12, according to the user at the visual angle for being presently in position and the spatial data for being presently in position,
Determine the user in the direction for being presently in position.
Specifically, user can check the virtual three-dimensional space figure an of source of houses by terminals such as mobile phones, the source of houses it is virtual
It may include: the multiple regions such as parlor, bedroom, kitchen and balcony in three-dimensional graph.User can pass through mobile phone or end point
Hit some position in the virtual three-dimensional space figure of the source of houses, it, can be to user after the clicking operation of system detection to user
The virtual three-dimensional space figure at the position in corresponding region is presented.User can click different positions, so as to realize
The migration in the virtual three-dimensional space figure of the source of houses.
For user in the virtual three-dimensional space figure of a source of houses when migration, system can obtain the position where user in real time
And visual angle at this location, visual angle here refer to a particular locations of the user in source of houses virtual three-dimensional space figure
Field range.For example, it is parlor that system, which at a time can detecte the position that user is presently in, can also detect
It is being presently in position, the visual angle of user is towards the sofa in parlor.
Then, system can obtain the spatial data that user is presently in position, the void in the source of houses from database
Each of quasi- three-dimensional graph position all corresponds to a spatial data, and a spatial data corresponds to the true source of houses
In a true point, for this true point, its due east direction, due west direction, due south direction and direct north is
Fixed, known, system can be using the due east direction of the point, due west direction, due south direction and direct north as with reference to marking
Quasi- direction may thereby determine that user in the direction of current location in conjunction with user at the visual angle of the point.
For example, system at a time detects that the position that is presently in of user is the A point in parlor, visual angle is towards visitor
Sofa in the Room.Then system can obtain the coordinate data of A point from database, and according to the coordinate data of A point, system can be obtained
Due south direction, direct north, due east direction and the due west direction for knowing A point, in this, as reference standard direction, in conjunction with user
It is directed towards the sofa direction in parlor at the visual angle of A point, can determine folder of the user between the visual angle and reference standard direction of A point
Angle may thereby determine that the direction of user.
For example, system can determine that user's is really oriented the southeast according to user in the position and visual angle at current time
Direction, in this way, user can recognize that oneself now face towards is southeastern direction, if user in the same position, still
Turned 180 degree, that is to say, that the visual angle of user has turned over 180 degree, then system can determine user at this time be oriented northwest
To, after can making user that the direction of oneself be determined in this way, the further direction for judging each of source of houses room.
The method of direction of the determining user provided in an embodiment of the present invention in source of houses virtual three-dimensional space figure, passes through acquisition
User when migration, is presently in the sky of position at the visual angle and user for being presently in position in the virtual three-dimensional space figure of the source of houses
Between coordinate data according to user at the visual angle that is presently in position and the spatial data for being presently in position determine user
In the direction for being presently in position.This method can make user in the virtual three-dimensional space figure of the source of houses when migration, have side
To sense, it can be determined that go out the true direction in each room in the source of houses, improve user sees that room body is tested.
Optionally, on the basis of the above embodiments, acquisition user's migration in the virtual three-dimensional space figure of the source of houses
When, at the visual angle for being presently in position, comprising:
The user is obtained in the virtual three-dimensional space figure of the source of houses when migration, continuously across multiple positions;
According to the multiple position, the direction of motion of the user is determined;
It is presently in position according to the direction of motion of the user and the user, determines that the user is being presently in position
The visual angle set.
Specifically, acquisition user described in above-described embodiment when migration, is working as in the virtual three-dimensional space figure of the source of houses
The process at the visual angle of preceding present position, it is specific as follows.
For user in the virtual three-dimensional space figure in the source of houses when migration, system can obtain the position of user's process in real time.
System can according to the user got continuously across multiple positions, the direction of motion of user can be determined, for example, system
The entry position that user is located at parlor is at a time got, user is got in subsequent time and is located at by the sofa in parlor
Side can then determine that the direction of motion of user is the sofa direction from parlor entrance toward parlor.
System can determine user current according to user in the location of current time and the direction of motion of user
The visual angle at moment.For example, can determine that user at the visual angle of current location is the sofa towards parlor.
The method of direction of the determining user provided in an embodiment of the present invention in source of houses virtual three-dimensional space figure, passes through acquisition
User in the virtual three-dimensional space figure of the source of houses when migration, continuously across multiple positions determine user's according to multiple positions
The direction of motion is presently in position according to the direction of motion of user and user, determine user at the visual angle for being presently in position, this
So that the method is more scientific.
Fig. 4 is the displayed page schematic diagram of source of houses virtual three-dimensional space figure provided in an embodiment of the present invention, and Fig. 5 is the present invention
The displayed page schematic diagram for the source of houses virtual three-dimensional space figure that another embodiment provides.
Optionally, on the basis of the above embodiments, the method also includes:
In the displayed page of the virtual three-dimensional space figure of the source of houses, using preset mark to the user current
The direction of present position is indicated.
Specifically, for user in the virtual three-dimensional space figure of a source of houses when migration, system can be according to above-described embodiment
Described in method determine user in the direction for being presently in position, after the direction for determining user, system can be further
Ground is in the displayed page of the virtual three-dimensional space figure of the source of houses, using preset mark to user in the direction for being presently in position
It is indicated.Since in this way, user can intuitively recognize oneself in the direction for being presently in position in real time very much, wherein
Preset mark can specifically be set, for example, can adopt in the lower part of the displayed page of the virtual three-dimensional space figure of the source of houses
With the mark of a similar compass, direction of the mark user in current location.
For example, user is when the virtual three-dimensional space figure middle reaches of the source of houses go to some position, system is current according to user
Present position and at the visual angle for being presently in position, determines that user's is oriented due south direction, then can be in the void of the source of houses
The lower part of the displayed page of quasi- three-dimensional graph, indicates due south direction, as shown in Figure 4 in the form of compass;If system root
Being presently in position and at the visual angle for being presently in position, determine that user's is oriented due east direction according to user, then can be with
In the lower part of the displayed page of the virtual three-dimensional space figure of the source of houses, due east direction is indicated in the form of compass, such as Fig. 5 institute
Show.If system is presently in position and at the visual angle for being presently in position, determines that user's is oriented east according to user's
South in the lower part of the displayed page of the virtual three-dimensional space figure of the source of houses in the form of compass to can then be marked out just
South to due east direction, and the position that user is presently in falls in the region between due south direction and due east direction.
The method of direction of the determining user provided in an embodiment of the present invention in source of houses virtual three-dimensional space figure, by room
In the displayed page of the virtual three-dimensional space figure in source, user is referred in the direction for being presently in position using preset mark
Show, user can be made to intuitively understand very much oneself in the direction for being presently in position, user is improved and see that room body is tested.
Optionally, on the basis of the above embodiments, the space coordinate number for obtaining the user and being presently in position
According to, comprising:
It obtains the user and is presently in the corresponding point information in position;
It is presently in the corresponding point information in position according to the user, determines that the user is presently in the space of position
Coordinate data.
Specifically, acquisition user described in above-described embodiment is presently in the process of the spatial data of position, tool
Body is as follows.
It include many regions in the virtual three-dimensional space figure of the source of houses, for example, may include kitchen, balcony, parlor and bedroom
Equal regions, each region include many different positions, the point information that each position has.
After the position that system detection is presently in user, the corresponding point information in the available position, then, from
The spatial data of the point information is obtained in database, so as to obtain user in the space coordinate for being presently in position
Data.
The method of direction of the determining user provided in an embodiment of the present invention in source of houses virtual three-dimensional space figure, passes through acquisition
User is presently in the corresponding point information in position, is presently in the corresponding point information in position according to user, determines that user works as
The spatial data of preceding present position, this makes the method more scientific.
Fig. 2 is the knot of the system of direction of the determining user provided in an embodiment of the present invention in source of houses virtual three-dimensional space figure
Structure schematic diagram, as shown in Fig. 2, the system comprises: first, which obtains module 20, second, obtains module 21 and determining module 22,
In:
First acquisition module 20 when migration, is being presently in position in the virtual three-dimensional space figure of the source of houses for obtaining user
The visual angle set;Second acquisition module 21 is for obtaining the spatial data that the user is presently in position;Determining module 22
For, at the visual angle for being presently in position and the spatial data for being presently in position, determining the user according to the user
In the direction for being presently in position.
Specifically, the system of direction of the determining user provided in an embodiment of the present invention in source of houses virtual three-dimensional space figure can
To include: that the first acquisition module 20, second obtains module 21 and determining module 22.
For user in the virtual three-dimensional space figure of a source of houses when migration, the first acquisition module 20 can obtain user in real time
The position at place and visual angle at this location, visual angle here refers to one of user in source of houses virtual three-dimensional space figure
The field range of particular locations.For example, the first acquisition module 20 at a time can detecte the position that user is presently in
It is set to parlor, can also detect and be presently in position, the visual angle of user is towards the sofa in parlor.
Second acquisition module 21 can obtain the spatial data that user is presently in position from database, in the source of houses
Each of virtual three-dimensional space figure position all correspond to a spatial data, a spatial data is corresponding true
A true point in the source of houses, for this true point, its due east direction, due west direction, due south direction and the positive north
To be it is fixed, known, determining module 22 can be with the due east direction of the point, due west direction, due south direction and direct north
It may thereby determine that user in the direction of current location in conjunction with user at the visual angle of the point as reference standard direction.
For example, the first acquisition module 20 at a time detects that the position that is presently in of user is the A point in parlor, depending on
Angle is towards the sofa in parlor.Then the second acquisition module 21 can obtain the coordinate data of A point from database, according to A point
Coordinate data, determining module 22 can know due south direction, direct north, due east direction and the due west direction of A point, with this
As reference standard direction, it is directed towards the sofa direction in parlor at the visual angle of A point in conjunction with user, user can be determined in A point
Visual angle and reference standard direction between angle, may thereby determine that the direction of user.
For example, determining module 22 can determine the true direction of user according to user in the position and visual angle at current time
For southeastern direction, in this way, user can recognize that oneself now face towards is southeastern direction, if user is in the same position
It sets, but has turned 180 degree, that is to say, that the visual angle of user has turned over 180 degree, it is determined that module 22 can determine user at this time
It is oriented direction northwest, after can making user that the direction of oneself be determined in this way, further judges each of source of houses
The direction in room.
The system of direction of the determining user provided in an embodiment of the present invention in source of houses virtual three-dimensional space figure, function tool
Body is referring to above method embodiment, and details are not described herein again.
The system of direction of the determining user provided in an embodiment of the present invention in source of houses virtual three-dimensional space figure, passes through acquisition
User when migration, is presently in the sky of position at the visual angle and user for being presently in position in the virtual three-dimensional space figure of the source of houses
Between coordinate data according to user at the visual angle that is presently in position and the spatial data for being presently in position determine user
In the direction for being presently in position.The system can make user in the virtual three-dimensional space figure of the source of houses when migration, have side
To sense, it can be determined that go out the true direction in each room in the source of houses, improve user sees that room body is tested.
Optionally, on the basis of the above embodiments, the first acquisition module includes: acquisition submodule, the first determination
Submodule and second determines submodule, in which:
Acquisition submodule for obtaining the user in the virtual three-dimensional space figure of the source of houses when migration, continuously across it is more
A position;First determines that submodule is used to determine the direction of motion of the user according to the multiple position;Second determines submodule
Block is used to be presently in position according to the direction of motion and the user of the user, determines that the user is being presently in position
Visual angle.
Specifically, the first acquisition module described in above-described embodiment may include: acquisition submodule, the first determining submodule
Submodule is determined with second.
For user in the virtual three-dimensional space figure in the source of houses when migration, acquisition submodule can obtain user's process in real time
Position.First determine submodule can according to the user got continuously across multiple positions, can determine the fortune of user
Dynamic direction is got for example, acquisition submodule at a time gets the entry position that user is located at parlor in subsequent time
User is located at beside the sofa in parlor, then first determines that submodule can determine that the direction of motion of user is from the past visitor of parlor entrance
The sofa direction in the Room.
Second determines that submodule can be determined according to user in the location of current time and the direction of motion of user
User is at the visual angle at current time.For example, can determine that user at the visual angle of current location is the sofa towards parlor.
The system of direction of the determining user provided in an embodiment of the present invention in source of houses virtual three-dimensional space figure, passes through acquisition
User in the virtual three-dimensional space figure of the source of houses when migration, continuously across multiple positions determine user's according to multiple positions
The direction of motion is presently in position according to the direction of motion of user and user, determine user at the visual angle for being presently in position, this
So that the system is more scientific.
Optionally, on the basis of the above embodiments, the system comprises: first obtain module, second obtain module, really
Cover half block and indicating module, in which:
Indicating module is used in the displayed page of the virtual three-dimensional space figure of the source of houses, using preset mark to institute
User is stated to indicate in the direction for being presently in position.
Specifically, the system of direction of the determining user provided in an embodiment of the present invention in source of houses virtual three-dimensional space figure can
To include: the first acquisition module, the second acquisition module, determining module and indicating module.Wherein, described first module, institute are obtained
The second acquisition module and the determining module are stated, is described in detail in the above-described embodiments, details are not described herein again.
For user in the virtual three-dimensional space figure of a source of houses when migration, determining module can be according to institute in above-described embodiment
The method stated determines user after the direction for being presently in position, the direction for determining user, and indicating module can be further
Ground is in the displayed page of the virtual three-dimensional space figure of the source of houses, using preset mark to user in the direction for being presently in position
It is indicated.Since in this way, user can intuitively recognize oneself in the direction for being presently in position in real time very much, wherein
Preset mark can specifically be set, for example, can adopt in the lower part of the displayed page of the virtual three-dimensional space figure of the source of houses
With the mark of a similar compass, direction of the mark user in current location.
For example, user is when the virtual three-dimensional space figure middle reaches of the source of houses go to some position, determining module is according to user
It is presently in position and at the visual angle for being presently in position, determines that user's is oriented due south direction, then indicating module can be with
In the lower part of the displayed page of the virtual three-dimensional space figure of the source of houses, due south direction is indicated in the form of compass, such as Fig. 4 institute
Show;If determining module is presently in position and at the visual angle for being presently in position, determines the direction of user according to user's
East be positive to then indicating module can be in the lower part of the displayed page of the virtual three-dimensional space figure of the source of houses, with compass
Form indicates due east direction, as shown in Figure 5.If determining module is presently in position and is being presently according to user's
The visual angle of position determines the southeastern direction that is oriented of user, then indicating module can be in the virtual three-dimensional space figure of the source of houses
The lower part of displayed page marks out due south direction and due east direction in the form of compass, and the position that user is presently in is fallen
Region between due south direction and due east direction.
The system of direction of the determining user provided in an embodiment of the present invention in source of houses virtual three-dimensional space figure, by room
In the displayed page of the virtual three-dimensional space figure in source, user is referred in the direction for being presently in position using preset mark
Show, user can be made to intuitively understand very much oneself in the direction for being presently in position, user is improved and see that room body is tested.
Optionally, on the basis of the above embodiments, the second acquisition module is specifically used for:
It obtains the user and is presently in the corresponding point information in position;
It is presently in the corresponding point information in position according to the user, determines that the user is presently in the space of position
Coordinate data.
It specifically, include many regions in the virtual three-dimensional space figure of the source of houses, for example, may include kitchen, balcony, parlor
With the regions such as bedroom, each region includes many different positions, the point information that each position has.
After detecting the position that user is presently in, second obtains the corresponding point letter in the available position of module
Breath, then, obtains the spatial data of the point information from database, is being presently in position so as to obtain user
Spatial data.
The system of direction of the determining user provided in an embodiment of the present invention in source of houses virtual three-dimensional space figure, passes through acquisition
User is presently in the corresponding point information in position, is presently in the corresponding point information in position according to user, determines that user works as
The spatial data of preceding present position, this makes the system more scientific.
Fig. 3 is the structural schematic diagram of electronic equipment provided in an embodiment of the present invention, as shown in figure 3, the equipment includes: place
Manage device (processor) 31, memory (memory) 32 and bus 33, in which:
The processor 31 and the memory 32 complete mutual communication by the bus 33;The processor 31
For calling the program instruction in the memory 32, to execute method provided by above-mentioned each method embodiment, for example,
User is obtained in the virtual three-dimensional space figure of the source of houses when migration, at the visual angle for being presently in position;It is current to obtain the user
The spatial data of present position;It is sat according to the user at the visual angle for being presently in position and the space for being presently in position
Data are marked, determine the user in the direction for being presently in position.
The embodiment of the present invention discloses a kind of computer program product, and the computer program product is non-transient including being stored in
Computer program on computer readable storage medium, the computer program include program instruction, when described program instructs quilt
When computer executes, computer is able to carry out method provided by above-mentioned each method embodiment, for example, obtains user in room
In the virtual three-dimensional space figure in source when migration, at the visual angle for being presently in position;Obtain the sky that the user is presently in position
Between coordinate data;According to the user at the visual angle for being presently in position and the spatial data for being presently in position, determine
The user is in the direction for being presently in position.
The embodiment of the present invention provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage
Medium storing computer instruction, the computer instruction make the computer execute side provided by above-mentioned each method embodiment
Method, for example, obtain user in the virtual three-dimensional space figure of the source of houses when migration, at the visual angle for being presently in position;It obtains
The user is presently in the spatial data of position;It at the visual angle for being presently in position and is presently according to the user
The spatial data of position determines the user in the direction for being presently in position.
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.
The above examples are only used to illustrate the technical scheme of the present invention, rather than its limitations;Although with reference to the foregoing embodiments
Invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each implementation
Technical solution documented by example is modified or equivalent replacement of some of the technical features;And these are modified or replace
It changes, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.