Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a method and a device for binding labels of a virtual three-dimensional space of a house.
In order to achieve the purpose, the invention provides the following technical scheme:
in a first aspect, the present invention provides a method for binding a virtual three-dimensional space tag of a house, including:
acquiring a three-dimensional coordinate point corresponding to a preset position in a three-dimensional space model of a house;
and binding a label prepared in advance on the three-dimensional coordinate point.
Further, the binding of the pre-prepared tag on the three-dimensional coordinate point includes:
performing data analysis on a label prepared in advance to acquire label content data corresponding to the label;
and binding the label content data on the three-dimensional coordinate point.
Further, the acquiring a three-dimensional coordinate point corresponding to a preset position in the three-dimensional space model of the house includes:
acquiring three-dimensional coordinate points respectively corresponding to a plurality of preset positions in a three-dimensional space model of a house;
accordingly, the binding of the pre-prepared tag on the three-dimensional coordinate point includes:
respectively binding the same label prepared in advance on the obtained three-dimensional coordinate points;
or the like, or, alternatively,
and respectively binding a plurality of labels prepared in advance on the corresponding three-dimensional coordinate points according to a preset corresponding relation.
Further, the method further comprises: and establishing a three-dimensional space model of the house.
Further, the step of establishing a three-dimensional space model of the house includes:
acquiring 3D point cloud data and a live-action picture of a three-dimensional space of a house;
building a three-dimensional space model frame of the house according to the acquired 3D point cloud data;
and pasting the acquired live-action picture of the three-dimensional space of the house on each surface of the built three-dimensional space model frame of the house according to a preset corresponding relation to generate a three-dimensional space model of the house.
Further, the label includes text, pictures and videos.
In a second aspect, the present invention further provides a device for binding a label in a virtual three-dimensional space of a house, including:
the acquisition module is used for acquiring a three-dimensional coordinate point corresponding to a preset position in the house three-dimensional space model;
and the binding module is used for binding a label prepared in advance on the three-dimensional coordinate point.
Further, the binding module is specifically configured to:
performing data analysis on a label prepared in advance to acquire label content data corresponding to the label;
and binding the label content data on the three-dimensional coordinate point.
In a third aspect, the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method for binding the house virtual three-dimensional space tag according to the first aspect when executing the computer program.
In a fourth aspect, the present invention also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method for binding a virtual three-dimensional space tag of a house according to the first aspect.
According to the technical scheme, the method for binding the house virtual three-dimensional space label comprises the steps of firstly obtaining the three-dimensional coordinate point corresponding to the preset position in the house three-dimensional space model, and then binding the label prepared in advance on the three-dimensional coordinate point. Therefore, the invention displays the label in the three-dimensional space of the house, realizes the effect that the size and the visibility of the label are different when the distance and the angle are different, and improves the interactive experience of a user when the user looks at the house in the virtual three-dimensional space of the house.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Before the present invention is explained in detail, the meaning of the concept "VR looks at the room" is given.
Different from the house-watching concepts that the house-watching of the current popular pictures, videos, panoramic houses and the like cannot provide depth information and real perception, the 'VR house-watching' means that a house source three-dimensional scene is really restored by utilizing a VR technology, and immersive house-watching experience in a free mode is provided for consumers, so that the users can experience the real house-watching scene without going out. For example, by opening a VR house source on the APP, depth information including the size, orientation, distance, etc. of the real space of the house can be obtained by touching the screen anywhere. In the aspect of restoring a house source three-dimensional scene, a house can be scanned and shot in multiple points and multiple angles to obtain complete three-dimensional point cloud data, longitude and latitude data and a multi-exposure high-definition color picture, and all data and picture textures are mapped onto a three-dimensional model through three-dimensional reconstruction technologies such as automatic modeling, intelligent cavity filling, full-automatic data extraction and HDR optimization in the later period to obtain a real house space seen by a final user.
An embodiment of the present invention provides a method for binding a virtual three-dimensional space tag of a house, which is shown in fig. 1 and includes the following steps:
step 101: and acquiring a three-dimensional coordinate point corresponding to a preset position in the house three-dimensional space model.
Step 102: and binding a label prepared in advance on the three-dimensional coordinate point.
As can be seen from the above analysis, in the method for binding a house virtual three-dimensional space tag provided in this embodiment, a three-dimensional coordinate point corresponding to a preset position in a house three-dimensional space model is first obtained, and then a tag prepared in advance is bound to the three-dimensional coordinate point. Therefore, the labels are displayed in the three-dimensional space of the house in the embodiment, the effect that the size and the visibility of the labels are different when the distance and the angle are different is achieved, and therefore the interaction experience of a user when the user looks at the house in the virtual three-dimensional space of the house is improved.
In a preferred embodiment, the step 102 is specifically implemented as follows:
performing data analysis on a label prepared in advance to acquire label content data corresponding to the label;
and binding the label content data on the three-dimensional coordinate point.
It can be understood that, when the tag is bound to the three-dimensional coordinate point, the tag content data corresponding to the tag needs to be bound to the three-dimensional coordinate point.
It will be appreciated that the label may be text, a picture or a video. For example, when the tag is a picture, picture data corresponding to the picture, that is, pixel point data of the picture, is bound to the three-dimensional coordinate point.
For another example, when the tag is a segment of video, video data corresponding to the segment of video, that is, each frame of data corresponding to the segment of video, is bound to the three-dimensional coordinate point.
It can be understood that the advantage of binding the tag data in the three-dimensional space coordinate is that the user can check the tag information bound at a certain spatial point at any time when the user walks in the virtual three-dimensional space of the house, and distance and angle interaction can exist between the user and the tag information, so that the virtual house-watching experience of the user is improved.
In a preferred embodiment, the step 101 is specifically implemented as follows:
acquiring three-dimensional coordinate points respectively corresponding to a plurality of preset positions in a three-dimensional space model of a house;
accordingly, the step 102 is specifically implemented as follows:
respectively binding the same label prepared in advance on the obtained three-dimensional coordinate points;
or the like, or, alternatively,
and respectively binding a plurality of labels prepared in advance on the corresponding three-dimensional coordinate points according to a preset corresponding relation.
It can be understood that, if the same label needs to be bound to multiple preset positions of the three-dimensional space at the same time, three-dimensional coordinate points corresponding to the multiple preset positions in the three-dimensional space model of the house can be obtained, and then the same label prepared in advance is bound to the obtained three-dimensional coordinate points.
If different labels are bound to a plurality of preset positions of a three-dimensional space at the same time, three-dimensional coordinate points corresponding to the preset positions in the three-dimensional space model of the house can be obtained, and then the labels prepared in advance are bound to the corresponding three-dimensional coordinate points according to the preset corresponding relation.
For example, the tag 1 is bound to the three-dimensional coordinate point a, the tag 2 is bound to the three-dimensional coordinate point B, and the tag 3 is bound to the three-dimensional coordinate point C.
The types of the tag 1, the tag 2 and the tag 3 may be the same or different. For example, 3 tags are all video tags, or, 2 are video tags, and 1 is a picture tag.
In a preferred embodiment, before the step 101, the method further comprises:
step 100: and establishing a three-dimensional space model of the house.
In a preferred embodiment, the step 100 is specifically realized by:
step 1001: and acquiring 3D point cloud data and a live-action picture of a three-dimensional space of the house.
Step 1002: and building a three-dimensional space model frame of the house according to the acquired 3D point cloud data.
Step 1003: and pasting the acquired live-action picture of the three-dimensional space of the house on each surface of the built three-dimensional space model frame of the house according to a preset corresponding relation to generate a three-dimensional space model of the house.
It can be understood that, through the camera with infrared induction distance detection, the 3D point cloud + live-action image of the three-dimensional space is scanned and generated, then the 3D point cloud and the live-action image are uploaded to the storage server, the cloud algorithm can integrate the 3D point cloud, a house three-dimensional space model frame is built, then the obtained house three-dimensional space live-action image is pasted on each surface of the built house three-dimensional space model frame according to the preset corresponding relation, a house three-dimensional space model is generated, and each position on the generated house three-dimensional space model corresponds to a three-dimensional coordinate point. If the tag needs to be embedded into the three-dimensional space model, a certain preset coordinate point actually existing on the three-dimensional space model can be selected, different types (characters, pictures and videos) of tags are bound on the coordinate point, and data of the content of the tag is bound on the coordinate.
As can be seen from the above description, by binding tags in the virtual three-dimensional space of the house, the browsable elements in the three-dimensional space of the house can be enriched, and meanwhile, because the tags are bound in the three-dimensional coordinates, the tags are also allowed to have interaction at a distance and an angle, and the effect that the size and the visibility of the tags are different when the distance and the angle are different is realized, so that more possibilities are provided for the interaction experience of the user, and the problem of poor interaction experience caused by the fact that the tags are located on a two-dimensional plane in the prior art is solved.
It should be noted that, on the premise that logics or structures of a plurality of preferred embodiments provided in this embodiment do not conflict with each other, the preferred embodiments may be freely combined, and the present invention is not limited to this.
Based on the same inventive concept, another embodiment of the present invention provides a device for binding a label of a virtual three-dimensional space of a house, referring to fig. 2, the device comprising: an obtaining module 21 and a binding module 22, wherein:
the acquiring module 21 is configured to acquire a three-dimensional coordinate point corresponding to a preset position in the three-dimensional space model of the house;
and the binding module 22 is used for binding the prepared label on the three-dimensional coordinate point.
In a preferred embodiment, the binding module 22 is specifically configured to:
performing data analysis on a label prepared in advance to acquire label content data corresponding to the label;
and binding the label content data on the three-dimensional coordinate point.
In a preferred embodiment, the obtaining module 21 is specifically configured to:
acquiring three-dimensional coordinate points respectively corresponding to a plurality of preset positions in a three-dimensional space model of a house;
accordingly, the binding module 22 is specifically configured to:
respectively binding the same label prepared in advance on the obtained three-dimensional coordinate points;
or the like, or, alternatively,
and respectively binding a plurality of labels prepared in advance on the corresponding three-dimensional coordinate points according to a preset corresponding relation.
In a preferred embodiment, the apparatus further comprises: and the establishing module is used for establishing a three-dimensional space model of the house.
In a preferred embodiment, the establishing module is specifically configured to:
acquiring 3D point cloud data and a live-action picture of a three-dimensional space of a house;
building a three-dimensional space model frame of the house according to the acquired 3D point cloud data;
and pasting the acquired live-action picture of the three-dimensional space of the house on each surface of the built three-dimensional space model frame of the house according to a preset corresponding relation to generate a three-dimensional space model of the house.
In a preferred embodiment, the tags include text, pictures and video.
The device for binding the house virtual three-dimensional space tag provided by the embodiment of the invention can be used for executing the method for binding the house virtual three-dimensional space tag described in the embodiment, the working principle and the beneficial effect are similar, and detailed description is omitted here.
Based on the same inventive concept, another embodiment of the present invention provides an electronic device, which specifically includes the following components, with reference to fig. 3: a processor 701, a memory 702, a communication interface 703 and a bus 704;
the processor 701, the memory 702 and the communication interface 703 complete mutual communication through the bus 704; the communication interface 703 is used for realizing information transmission between related devices such as modeling software, an intelligent manufacturing equipment module library and the like;
the processor 701 is configured to call a computer program in the memory 702, and the processor implements all the steps in the method for binding a virtual three-dimensional space tag of a house according to the above embodiment when executing the computer program, for example, the processor implements the following steps when executing the computer program:
step 101: and acquiring a three-dimensional coordinate point corresponding to a preset position in the house three-dimensional space model.
Step 102: and binding a label prepared in advance on the three-dimensional coordinate point.
Based on the same inventive concept, another embodiment of the present invention provides a computer-readable storage medium, having a computer program stored thereon, where the computer program, when executed by a processor, implements all the steps of the above-mentioned method for binding a virtual three-dimensional space tag of a house, for example, when the processor executes the computer program, the processor implements the following steps:
step 101: and acquiring a three-dimensional coordinate point corresponding to a preset position in the house three-dimensional space model.
Step 102: and binding a label prepared in advance on the three-dimensional coordinate point.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above examples are only for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.