Invention content
In view of the problems of the existing technology, the embodiment of the present invention provides a kind of displaying label in virtual three-dimensional space
Method and device.
In a first aspect, the embodiment of the present invention provides a kind of method showing label in virtual three-dimensional space, the method
Including:
The request that terminal is sent after detecting the trigger action being shown to virtual scene is received, the request carries
There is the virtual scene;Obtain the field range for the virtual human eye for watching the virtual scene;The virtual scene is virtual three
The scene of dimension space;
According to the field range, the virtual reality in the virtual scene that the virtual human eye can be watched is obtained
Body;Binding has the label for annotating content represented by the pseudo-entity to the pseudo-entity in advance;
It sends label display to instruct to the terminal, the label display instruction is carried to be wanted within sweep of the eye described
The corresponding label of the pseudo-entity of displaying;So that the terminal is instructed according to the label display in the field range exhibition
Show the corresponding label of the pseudo-entity.
Second aspect, the embodiment of the present invention provide a kind of device showing label in virtual three-dimensional space, described device
Including:
Receiving unit is asked for receive that terminal sends after detecting the trigger action being shown to virtual scene
It asks, the request carries the virtual scene;Obtain the field range for the virtual human eye for watching the virtual scene;The void
Quasi- scene is the scene of virtual three-dimensional space;
Acquiring unit, for according to the field range, obtaining the virtual field that the virtual human eye can be watched
Pseudo-entity in scape;Binding has the label for annotating content represented by the pseudo-entity to the pseudo-entity in advance;
Transmission unit is instructed for sending label display to the terminal, and the label display instruction is carried described
The corresponding label of the pseudo-entity to be shown within sweep of the eye;So that the terminal is instructed according to the label display
The field range shows the corresponding label of the pseudo-entity.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, including:Processor, memory and bus, wherein
The processor and the memory complete mutual communication by the bus;
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 following method:
The request that terminal is sent after detecting the trigger action being shown to virtual scene is received, the request carries
There is the virtual scene;Obtain the field range for the virtual human eye for watching the virtual scene;The virtual scene is virtual three
The scene of dimension space;
According to the field range, the virtual reality in the virtual scene that the virtual human eye can be watched is obtained
Body;Binding has the label for annotating content represented by the pseudo-entity to the pseudo-entity in advance;
It sends label display to instruct to the terminal, the label display instruction is carried to be wanted within sweep of the eye described
The corresponding label of the pseudo-entity of displaying;So that the terminal is instructed according to the label display in the field range exhibition
Show the corresponding label of the pseudo-entity.
Fourth aspect, the embodiment of the present invention provide a kind of non-transient computer readable storage medium, including:
The non-transient computer readable storage medium stores computer instruction, and the computer instruction makes the computer
Execute following method:
The request that terminal is sent after detecting the trigger action being shown to virtual scene is received, the request carries
There is the virtual scene;Obtain the field range for the virtual human eye for watching the virtual scene;The virtual scene is virtual three
The scene of dimension space;
According to the field range, the virtual reality in the virtual scene that the virtual human eye can be watched is obtained
Body;Binding has the label for annotating content represented by the pseudo-entity to the pseudo-entity in advance;
It sends label display to instruct to the terminal, the label display instruction is carried to be wanted within sweep of the eye described
The corresponding label of the pseudo-entity of displaying;So that the terminal is instructed according to the label display in the field range exhibition
Show the corresponding label of the pseudo-entity.
The method and device provided in an embodiment of the present invention for showing label in virtual three-dimensional space, by obtaining visual field model
Pseudo-entity in the virtual scene enclosed, and terminal display is made to annotate the label of content represented by the pseudo-entity, Neng Goufang
Just the content represented by pseudo-entity is targetedly transmitted to user.
Specific implementation mode
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
The every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is the method flow schematic diagram that the embodiment of the present invention shows label in virtual three-dimensional space, as shown in Figure 1,
A kind of method showing label in virtual three-dimensional space provided in an embodiment of the present invention, includes the following steps:
S101:The request that terminal is sent after detecting the trigger action being shown to virtual scene is received, it is described to ask
It asks and carries the virtual scene;Obtain the field range for the virtual human eye for watching the virtual scene;The virtual scene is
The scene of virtual three-dimensional space.
Specifically, device receives the request that terminal is sent after detecting the trigger action being shown to virtual scene,
The request carries the virtual scene;Obtain the field range for the virtual human eye for watching the virtual scene;It is described virtual
Scene is the scene of virtual three-dimensional space.Device can be the enterprise business server using VR, but be not especially limited.Terminal
Can be mobile phone, the computer etc. being equipped with the relevant computer applied algorithm APP of business event.Use can be allowed by having on the APP
The button of family triggering show and the relevant virtual scene of business event using VR technologies to user after user triggers the button,
Such as:Company of real estate intermediary develops a APP, which can show that the source of houses, virtual scene are existing for analog subscriber to user
The house indoor scene of the field viewing source of houses.Trigger action can be the action etc. for clicking terminal display screen.Virtual human eye can be managed
Solution is the eyes of the analog subscriber shown in terminal, and virtual human eye can be with dynamic mobile, the field range of virtual human eye
It can be understood as user's body and face the sector region that the house indoor scene sight of the viewing source of houses can be seen.Field range obtains
The method taken is this field mature technology, is repeated no more.
S102:According to the field range, the void in the virtual scene that the virtual human eye can be watched is obtained
Quasi- entity;Binding has the label for annotating content represented by the pseudo-entity to the pseudo-entity in advance.
Specifically, device obtains the virtual scene that the virtual human eye can be watched according to the field range
In pseudo-entity;Binding has the label for annotating content represented by the pseudo-entity to the pseudo-entity in advance.With reference to above-mentioned
Illustrate, pseudo-entity can be specially house indoor furniture, wall etc..Label may include word tag, picture tag and regard
At least one of frequency marking label.The advance binding of the label may be used such as under type:Obtain the corresponding void of the pseudo-entity
Quasi- provider location coordinate;The pseudo-entity position coordinates are corresponded with the label.It should be noted that:Pseudo-entity position
It is three dimensional space coordinate to set coordinate, is illustrated below:It is for the three dimensional space coordinate corresponding to the sofa in above-mentioned furniture
A, label corresponding with A can be the label " sofa " of word indicating;For the three-dimensional space corresponding to the wardrobe in above-mentioned furniture
Between coordinate be B, label corresponding with B can be the label " wardrobe " of picture mark, which can also be shown in the wardrobe cabinet
Laying etc. when door is opened inside wardrobe.The acquisition of three dimensional space coordinate may be used such as under type:Firstly the need of by with
The camera of infrared induction distance measurement shoots the VR with range information (each pseudo-entity is respectively at a distance from virtual human eye)
Image, and the VR images are uploaded into device, device can integrate image, the range information of VR using preset algorithm, raw
At there are the VR images after the integration of space length, i.e., three dimensional space coordinate can further be obtained by space length.
S103:It sends label display to instruct to the terminal, the label display instruction is carried in the field range
The interior corresponding label of the pseudo-entity to be shown;So that the terminal is instructed according to the label display in the visual field
Range shows the corresponding label of the pseudo-entity.
It is instructed to the terminal specifically, device sends label display, the label display instruction is carried to be regarded described
The corresponding label of the pseudo-entity to be shown in wild range;So that the terminal is instructed according to the label display in institute
It states field range and shows the corresponding label of the pseudo-entity.By showing the corresponding label of pseudo-entity in field range, one
Aspect is by simulating human eyesight field range in one's power, more really, true to nature.On the other hand virtual reality is gone out by labeled marker
Content represented by body, convenient for targetedly transmitting content information to user.
In order to avoid due to label it is excessive caused by it is chaotic, can further with the following method:
(1) the virtual human eye where the corresponding pseudo-entity position coordinates of pseudo-entity and the virtual human eye is obtained
Position coordinates;Calculate the pseudo range between the virtual human eye position coordinates and the pseudo-entity position coordinates;It will be greater than
The corresponding label of corresponding first pseudo-entity of first object pseudo range of first default pseudo range is hidden.It needs to illustrate
It is:Virtual human eye position coordinates are also three dimensional space coordinate, and the first default pseudo range can carry out autonomous according to actual conditions
Setting, this method may be implemented to hide on the corresponding label of the first pseudo-entity within sweep of the eye farther out.With reference to the example above
It is described as follows:If between the corresponding three dimensional space coordinate A and three dimensional space coordinate Z of virtual human eye position coordinates of above-mentioned sofa
Pseudo range be AZ, it is if AZ is more than the first default pseudo range, the word tag of the sofa (the first pseudo-entity) is " husky
Hair " is hidden;If between the corresponding three dimensional space coordinate B and three dimensional space coordinate Z of virtual human eye position coordinates of above-mentioned wardrobe
Pseudo range be BZ, if BZ is less than the first default pseudo range, without by the picture mark of wardrobe (the first pseudo-entity)
" wardrobe " is signed to hide.
(2) if judging, the pseudo-entity being informed in the field range is completely or partially blocked, will be complete
The corresponding label of second destination virtual entity in portion or partial occlusion is hidden.It is described as follows with reference to the example above:If above-mentioned clothing
Cabinet is corresponding by wardrobe (the second destination virtual entity) by above-mentioned sofa partial occlusion (i.e. a part for wardrobe is blocked by sofa)
Picture tag " wardrobe " is hidden.The case where all blocking similarly with reference to the case where partial occlusion, repeats no more.
It should be noted that:On the basis of the above method (1), can also according to the pseudo range and second it is default away from
From comparison result, zoom in or out processing to the label, second pre-determined distance be less than described first it is default away from
From.Second pre-determined distance can be independently arranged according to actual conditions, is described as follows with continued reference to the example above:Assuming that above-mentioned wardrobe
Label be not hidden, the label of tea table is not also hidden, the corresponding three dimensional space coordinate C of tea table, it is assumed that BZ is more than the
The label of wardrobe is made diminution processing by two pre-determined distances;Assuming that CZ is more than the second pre-determined distance, the label work of tea table is amplified
Processing.
The method provided in an embodiment of the present invention for showing label in virtual three-dimensional space, by obtaining in field range
Pseudo-entity in virtual scene, and terminal display is made to annotate the label of content represented by the pseudo-entity, can easily to
User targetedly transmits the content represented by pseudo-entity.
On the basis of the above embodiments, the advance binding of the label, including:
Obtain the corresponding pseudo-entity position coordinates of the pseudo-entity;The pseudo-entity position coordinates and the label
It corresponds.
Specifically, device obtains the corresponding pseudo-entity position coordinates of the pseudo-entity;The pseudo-entity position is sat
Mark is corresponded with the label.Above-described embodiment is can refer to, is repeated no more.
The method provided in an embodiment of the present invention for showing label in virtual three-dimensional space, can be effectively by label and void
Quasi- entity is mutually bound.
On the basis of the above embodiments, the method further includes:
Obtain the virtual human eye position where the corresponding pseudo-entity position coordinates of the pseudo-entity and the virtual human eye
Set coordinate.
Specifically, where device obtains the corresponding pseudo-entity position coordinates of the pseudo-entity and the virtual human eye
Virtual human eye position coordinates.Above-described embodiment is can refer to, is repeated no more.
Calculate the pseudo range between the virtual human eye position coordinates and the pseudo-entity position coordinates.
Specifically, device calculate between the virtual human eye position coordinates and the pseudo-entity position coordinates it is virtual away from
From.Above-described embodiment is can refer to, is repeated no more.
It will be greater than the corresponding label of corresponding first pseudo-entity of first object pseudo range of the first default pseudo range
It hides.
Specifically, device will be greater than corresponding first pseudo-entity of first object pseudo range of the first default pseudo range
Corresponding label is hidden.Above-described embodiment is can refer to, is repeated no more.
The method provided in an embodiment of the present invention for showing label in virtual three-dimensional space, by by the first pseudo-entity pair
The label answered is hidden, and can avoid since label is excessive caused chaotic.
On the basis of the above embodiments, the method further includes:
If judging, the pseudo-entity that is informed in the field range is completely or partially blocked, will by all or
The corresponding label of the second destination virtual entity of partial occlusion is hidden.
Specifically, if device judges that the pseudo-entity that is informed in the field range is completely or partially blocked,
Then the corresponding label of the second destination virtual entity completely or partially blocked is hidden.Above-described embodiment is can refer to, it is no longer superfluous
It states.
The method provided in an embodiment of the present invention for showing label in virtual three-dimensional space, by by the second pseudo-entity pair
The label answered is hidden, and can avoid since label is excessive caused chaotic.
On the basis of the above embodiments, the method further includes:
According to the comparison result of the pseudo range and the second pre-determined distance, the label is carried out to zoom in or out place
Reason, second pre-determined distance are less than first pre-determined distance.
Specifically, comparison result of the device according to the pseudo range and the second pre-determined distance, contracts to the label
Small or enhanced processing, second pre-determined distance are less than first pre-determined distance.Above-described embodiment is can refer to, is repeated no more.
It is provided in an embodiment of the present invention in virtual three-dimensional space show label method, by comparing result to label into
Row zooms in or out processing, can protrude and show closer label.
On the basis of the above embodiments, the label includes:
At least one of word tag, picture tag and video tab.
Specifically, the label in device includes:At least one of word tag, picture tag and video tab.
Above-described embodiment is can refer to, is repeated no more.
The method provided in an embodiment of the present invention for showing label in virtual three-dimensional space, by by word tag, picture
At least one of label and video tab are selected as label, can comprehensively indicate label substance.
On the basis of the above embodiments, the virtual scene is virtual house indoor scene.
Specifically, the virtual scene in device is virtual house indoor scene.Above-described embodiment is can refer to, it is no longer superfluous
It states.
The method provided in an embodiment of the present invention for showing label in virtual three-dimensional space, by the way that virtual scene is selected as void
Quasi- house indoor scene, can transmit the content represented by relevant pseudo-entity for specific transactions.
Fig. 2 is the schematic device that the embodiment of the present invention shows label in virtual three-dimensional space, as shown in Fig. 2, this hair
Bright embodiment provides a kind of device showing label in virtual three-dimensional space, including receiving unit 201, acquiring unit 202
With transmission unit 203, wherein:
Receiving unit 201 is used to receive that terminal to send after detecting the trigger action being shown to virtual scene asks
It asks, the request carries the virtual scene;Obtain the field range for the virtual human eye for watching the virtual scene;The void
Quasi- scene is the scene of virtual three-dimensional space;Acquiring unit 202 is used to, according to the field range, obtain the virtual human eye institute
Pseudo-entity in the virtual scene that can be watched;Pseudo-entity binding in advance, which has, annotates pseudo-entity institute table
Show the label of content;Transmission unit 203 is instructed for sending label display to the terminal, and the label display instruction carries
In the corresponding label of the pseudo-entity to be shown within sweep of the eye;So that the terminal is according to the label display
Instruction shows the corresponding label of the pseudo-entity in the field range.
Specifically, receiving unit 201 is for receiving terminal after detecting the trigger action being shown to virtual scene
The request of transmission, the request carry the virtual scene;Obtain the visual field model for the virtual human eye for watching the virtual scene
It encloses;The virtual scene is the scene of virtual three-dimensional space;Acquiring unit 202 is used for according to the field range, described in acquisition
Pseudo-entity in the virtual scene that virtual human eye can be watched;Pseudo-entity binding in advance has the annotation void
The label of content represented by quasi- entity;Transmission unit 203 is instructed for sending label display to the terminal, the label display
Instruction is carried in the corresponding label of the pseudo-entity to be shown within sweep of the eye;So that the terminal is according to institute
It states label display instruction and shows the corresponding label of the pseudo-entity in the field range.
The device provided in an embodiment of the present invention for showing label in virtual three-dimensional space, by obtaining in field range
Pseudo-entity in virtual scene, and terminal display is made to annotate the label of content represented by the pseudo-entity, can easily to
User targetedly transmits the content represented by pseudo-entity.
The device of the label of displaying in virtual three-dimensional space provided in an embodiment of the present invention specifically can be used for executing above-mentioned
The process flow of each method embodiment, details are not described herein for function, is referred to the detailed description of above method embodiment.
Fig. 3 is electronic equipment entity structure schematic diagram provided in an embodiment of the present invention, as shown in figure 3, the electronic equipment
Including:Processor (processor) 301, memory (memory) 302 and bus 303;
Wherein, the processor 301, memory 302 complete mutual communication by bus 303;
The processor 301 is used to call the program instruction in the memory 302, to execute above-mentioned each method embodiment
The method provided, such as including:What reception terminal was sent after detecting the trigger action being shown to virtual scene asks
It asks, the request carries the virtual scene;Obtain the field range for the virtual human eye for watching the virtual scene;The void
Quasi- scene is the scene of virtual three-dimensional space;According to the field range, the acquisition virtual human eye can be watched described
Pseudo-entity in virtual scene;Binding has the label for annotating content represented by the pseudo-entity to the pseudo-entity in advance;
It sends label display to instruct to the terminal, the label display instruction is carried in the institute to be shown within sweep of the eye
State the corresponding label of pseudo-entity;So that the terminal is instructed according to the label display shows the void in the field range
The corresponding label of quasi- entity.
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 the method that above-mentioned each method embodiment is provided, such as including:Terminal is received to detect
The request sent after the trigger action being shown to virtual scene, the request carry the virtual scene;Obtain viewing
The field range of the virtual human eye of the virtual scene;The virtual scene is the scene of virtual three-dimensional space;It is regarded according to described
Wild range obtains the pseudo-entity in the virtual scene that the virtual human eye can be watched;The pseudo-entity is advance
Binding has the label for annotating content represented by the pseudo-entity;Label display is sent to instruct to the terminal, the label exhibition
Show that instruction is carried in the corresponding label of the pseudo-entity to be shown within sweep of the eye;So that the terminal according to
The label display instruction shows the corresponding label of the pseudo-entity in the field range.
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 the method that above-mentioned each method embodiment is provided, example
Such as include:The request that terminal is sent after detecting the trigger action being shown to virtual scene is received, the request carries
There is the virtual scene;Obtain the field range for the virtual human eye for watching the virtual scene;The virtual scene is virtual three
The scene of dimension space;According to the field range, the void in the virtual scene that the virtual human eye can be watched is obtained
Quasi- entity;Binding has the label for annotating content represented by the pseudo-entity to the pseudo-entity in advance;Label display is sent to refer to
It enables to the terminal, the label display instruction is carried to be corresponded in the pseudo-entity to be shown within sweep of the eye
Label;So that the terminal is instructed according to the label display shows the corresponding mark of the pseudo-entity in the field range
Label.
One of ordinary skill in the art will appreciate that:Realize that all or part of step 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 read/write memory 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 disc or light
The various media that can store program code such as disk.
The embodiments such as electronic equipment described above are only schematical, illustrate as separating component wherein described
Unit may or may not be physically separated, and the component shown as unit may or may not be object
Manage unit, you can be located at a place, or may be distributed over multiple network units.It can select according to the actual needs
Some or all of module 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 of the labour for the property made, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It is realized by the mode of software plus required 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 expressed in the form of software products in other words, should
Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, 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 with reference to foregoing embodiments, the ordinary skill of this field
Personnel should understand that:It still can be with technical scheme described in the above embodiments is modified, or to which part
Or all technical features carries out equivalent replacement;And these modifications or replacements, it does not separate the essence of the corresponding technical solution
The range of various embodiments of the present invention technical solution.