A model layout method, system and terminal device based on three-dimensional scene
Through the model layout method based on three-dimensional scenes, the most similar model matching technology is used to automatically accurately match the model to the three-dimensional scene, solving the problem of insufficient model layout speed and accuracy in the existing technology, and improving user experience and system efficiency.
Patent Information
- Application Number
- CN202410685993.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2044-05-30
AI Technical Summary
The existing 3D model automatic placement technology is difficult to achieve fast and accurate model layout, resulting in poor user experience, increasing development costs and server pressure, and users need to manually draw the apartment type.
The model layout method based on three-dimensional scenes is adopted. By obtaining the device information in the user plan list, the product model corresponding to the device is determined, and the product model is imported into the standard scene template through the most similar model matching method, replacing the original model, obtaining the first display scene, and finally adjusting the scene according to the user plan list, obtaining the final three-dimensional model scene.
It realizes the automatic precise matching of existing models into the set three-dimensional scene, and quickly and accurately completes the three-dimensional scene layout of the model, improving user experience and system efficiency, and reducing development costs and server pressure.
Smart Images

Figure CN118644615B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of smart home technology, and in particular relates to a model layout method, system and terminal device based on a three-dimensional scene. Background Art
[0002] In tooling design, when users need to purchase equipment, they will generally be provided with an equipment list. Users only have the equipment list but cannot know the effect of the specific equipment after it is arranged in the scene. If they want to know the final approximate finished product, they need professional designers to design the contents of the list and the predicted scene. Once the user changes the contents of the list, they need to find a designer to design the scene again, which will consume a lot of manpower and time, resulting in unnecessary duplication of work. Therefore, it is necessary to automatically place models based on three-dimensional scenes, giving users a platform where they can preview the effects at any time and even design independently.
[0003] The existing 3D model automatic placement technology has the intelligent arrangement of three-dimensional furniture. At present, this technology is based on AI training. Through a large number of user-designed solutions, it understands what model to place in what position in the space. For example, in a one-bedroom apartment, the sofa, table and chairs and dining table and chairs will be placed in a more appropriate position in the living room, and the bed will be placed in a certain position in the room. In this way, the placement of the model will be relatively reasonable. However, the results obtained by AI training are unpredictable after all, and many strange errors are inevitable. If there is an error in the position of a model in the scene, it will bring a weird feeling to the whole scene. The final result is that the development cost of realizing the function is increased, which is of no practical use to users, with poor user experience and lack of practicality. It increases the pressure on the server, and users also need to draw the apartment manually. Summary of the invention
[0004] The present invention proposes a model layout method, system and terminal device based on a three-dimensional scene, which automatically and accurately matches an existing model to a set three-dimensional scene, thereby quickly and accurately completing the three-dimensional scene layout of the model.
[0005] A first aspect of the present invention provides a model layout method based on a three-dimensional scene, the method comprising:
[0006] Get device information in the user plan list;
[0007] Determine, based on the device information, the product models corresponding to all devices in the user solution list;
[0008] Importing the product model into a standard scene template, and replacing the original model in the standard scene template with the product model by a most similar model matching method, to obtain a first display scene;
[0009] According to the user solution list, the first display scene is adjusted to obtain a final three-dimensional model scene.
[0010] The above scheme first obtains the product model in the user solution list, and then finds the original model in the standard scene template that is most similar to the product model through the most similar model matching method and replaces it, thereby realizing rapid and accurate matching of the existing model to the set three-dimensional scene; finally, the first display scene is adjusted according to the user solution list to make the first display scene more in line with user needs and accurately complete the three-dimensional scene layout of the model.
[0011] In a possible implementation method of the first aspect, obtaining device information in the user plan list is specifically:
[0012] Analyze and extract features from the user solution list to obtain all product models;
[0013] Search according to the product model to obtain the device information in the user solution list.
[0014] The above scheme extracts the characteristic information in the user solution list, determines the product models of all devices according to the characteristic information, thereby obtaining the device information in the user solution list, and providing data support for subsequently obtaining the product model corresponding to each device.
[0015] In a possible implementation method of the first aspect, before importing the product models one by one into the standard scene template through the most similar model matching method, a standard scene template is first selected according to user needs; wherein the standard scene template is a preset number of designed general scene templates.
[0016] In a possible implementation method of the first aspect, the product model is imported into a standard scene template, and the original model in the standard scene template is replaced with the product model by a most similar model matching method to obtain a first display scene, specifically:
[0017] Acquire the properties of all original models in the standard scene template; wherein the properties of the original models include model adsorption properties, model size and model type;
[0018] Obtaining properties of the product model;
[0019] According to the attributes of the original model and the attributes of the product model, the similarity between the product model and each of the original models is calculated by a most similar model matching method;
[0020] According to the similarity, all product models are used to replace the original model in the standard scene template to obtain a first display scene.
[0021] The above scheme first obtains the attributes of all original models in the standard scene template, and then matches the product model and each original model one by one according to the attributes through the most similar model matching method, so that the product model replaces the most consistent and similar original model, thereby improving the accuracy of completing the model layout.
[0022] In a possible implementation method of the first aspect, according to the similarity, all product models are used to replace the original model in the standard scene template to obtain the first display scene, specifically:
[0023] For each product model, the original model corresponding to the greatest similarity is selected for replacement, until all product models are replaced into the standard scene template, thereby obtaining a first display scene.
[0024] In a possible implementation method of the first aspect, the similarity between the product model and each of the original models is calculated by a most similar model matching method according to the attributes of the original model and the attributes of the product model, specifically:
[0025] The matching priorities are set from high to low as model adsorption attribute, model type and model size; wherein the model type includes primary type and secondary type;
[0026] Calculating the similarity between the product model and each of the original models according to the matching priority;
[0027] When the high matching priorities of the product model and the original model are consistent, it is considered that the similarity is higher.
[0028] The above scheme classifies the matching priorities and uses the model adsorption attribute as the primary matching criterion to ensure that the product model can find the most similar original model.
[0029] In a possible implementation method of the first aspect, the similarity is calculated as follows:
[0030] similar ij =A ij +B ij +C ij +(HD ij );
[0031] In the formula, similar ij is the similarity between model i and model j, A ij is the comparison result of the adsorption properties of model i and model j, B ijis the secondary type comparison result of model i and model j, C ij is the first-level type comparison result of model i and model j, H is the maximum model size, D ij is the absolute value of the difference between the sum of the model sizes of model i and the sum of the model sizes of model j.
[0032] In a possible implementation method of the first aspect, adjusting the first display scene according to the user solution list to obtain a final three-dimensional model scene is specifically as follows:
[0033] Determining, according to the user solution list, original models that have not been replaced in the first display scene;
[0034] The original model that has not been replaced is deleted from the first display scene to obtain a final three-dimensional model scene.
[0035] A second aspect of the present invention provides a model layout system based on a three-dimensional scene, the system comprising: a device information acquisition module, a product model acquisition module, a first display scene generation module and a final three-dimensional model scene generation module;
[0036] The device information acquisition module is used to acquire the device information in the user plan list;
[0037] The product model acquisition module is used to determine the product models corresponding to all devices in the user solution list according to the device information;
[0038] The first display scene generation module is used to import the product model into a standard scene template, and replace the original model in the standard scene template with the product model through a most similar model matching method to obtain a first display scene;
[0039] The final 3D model scene generation module is used to adjust the first display scene according to the user solution list to obtain a final 3D model scene.
[0040] The third aspect of the present invention provides a terminal device, which includes: a terminal device including a processor and a memory, the memory storing a computer program, and the processor implementing the steps of a model layout method based on a three-dimensional scene as described in any one of the embodiments of the present invention when executing the computer program. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the implementation mode will be briefly introduced below. Obviously, the drawings described below are only some implementation modes of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 A specific flow chart of a model layout method based on a three-dimensional scene is provided for a certain embodiment of the present invention;
[0043] Figure 2 A structural diagram of a model layout system based on a three-dimensional scene is provided for a certain embodiment of the present invention;
[0044] Figure 3 A structural diagram of a terminal device is provided for a certain embodiment of the present invention. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] It should be understood that the step numbers used in this article are only for the convenience of description and are not intended to limit the order in which the steps are executed.
[0047] like Figure 1 As shown, Figure 1 A specific flow chart of a model layout method based on a three-dimensional scene is provided for a certain embodiment of the present invention. The model layout method based on a three-dimensional scene in this embodiment includes steps S1 to S4, which are described in detail as follows:
[0048] Step S1, obtaining device information in the user plan list;
[0049] In this step, the device information in the user plan list is first obtained. The user plan list is the input source data provided by the user.
[0050] Then the user solution list is analyzed and feature extracted to obtain all product models, and then the system storing device data is searched according to the product model to obtain the device information in the user solution list.
[0051] Among them, the system storing device data is generally the enterprise's backend system, and the pre-prepared device data has been entered before the search, which is convenient for enterprise management on the one hand, and convenient for staff to find device information on the other hand, making it very convenient to obtain device information.
[0052] Furthermore, the product model can be extracted from the user solution list, and the product model and the device data in the system are matched one by one, so that the device information corresponding to the product can be easily found.
[0053] Step S2, determining the product models corresponding to all devices in the user solution list according to the device information;
[0054] In this step, the product models corresponding to all devices are found in the enterprise backend system according to the device information; wherein the product models are also entered into the enterprise backend system in advance, and generally one device will only be associated with one product model.
[0055] Step S3, importing the product model into the standard scene template, and using the product model to replace the original model in the standard scene template through the most similar model matching method to obtain a first display scene;
[0056] In this step, before importing the product models one by one into the standard scene template through the most similar model matching method, a standard scene template is first selected according to user needs; wherein, the standard scene template is a preset number of designed general scene templates, and the standard scene template is entered in advance and is available for user selection.
[0057] The standard scene template is generally a template that meets the preferences of most users. The positions of some devices have been arranged in advance in the template, focusing on reasonableness and universality.
[0058] After the standard scenario template is selected, the product model is imported into the standard scenario template.
[0059] First, the properties of the product model and the properties of all original models in the standard scene template are obtained; wherein the properties of these models include model adsorption properties, model size and model type; the model adsorption properties mainly describe the placement of the model in the standard scene template, such as attached to the wall, attached to the floor, attached to the ceiling and attached to the material, etc.; the model size mainly describes the length, width and height of the model; the model type can be a multi-level type, such as office supplies / mouse, office supplies / keyboard, etc. In this embodiment, the model type is a secondary type.
[0060] For example, for the monitor on the desktop (referred to as model A here), its model adsorption attribute is sticker material, the model size is 304mm×120mm×206mm, and the model type is office supplies / monitor; for the terminal device (referred to as model B here), its model adsorption attribute is sticker material, the model size is 300mm×90mm×170mm, and the model type is office supplies / terminal.
[0061] Furthermore, for standard scene templates, when selected and saved, the original devices and scenes in the template will be converted into json files and stored. In subsequent operations, you only need to parse the json file to get the corresponding original device information.
[0062] Then, according to the attributes of the original model and the attributes of the product model, the similarity between the product model and each of the original models is calculated by the most similar model matching method, and the similarity is calculated as follows:
[0063] (1) Setting the matching priorities from high to low to model adsorption attribute, model type and model size; wherein the model type includes primary type and secondary type. When the high matching priorities of the product model and the original model are consistent, it is considered that the similarity is higher. For example, when the model adsorption attributes of the two models are the same, their similarity is higher. In this embodiment, there are 4 types of model adsorption attributes, and setting the adsorption attribute of the floor to 0, the adsorption attribute of the ceiling to 1, the adsorption attribute of the wall to 2, and the adsorption attribute of the material to 3;
[0064] (2) According to the matching priority, the similarity between the product model and each of the original models is calculated using the calculation formula of the most similar model matching method, where the data format of the similarity is a string; first compare whether the model adsorption properties and model types are consistent, with consistency being 1 and inconsistency being 0, and then calculate the model size. The calculation formula of the most similar model matching method is:
[0065] similar ij =A ij +B ij +C ij +(HD ij );
[0066] In the formula, similar ij is the similarity between model i and model j, A ij is the comparison result of the adsorption properties of model i and model j, B ij is the secondary type comparison result of model i and model j, C ij is the first-level type comparison result of model i and model j, H is the maximum model size, D ij is the absolute value of the difference between the sum of the model sizes of model i and the sum of the model sizes of model j.
[0067] In this embodiment, H is set to 100000 mm. Taking the above model A and model B as an example, the similarity between model A and model B is calculated:
[0068] Because the model adsorption properties of model A and model B are the same, A AB is 1;
[0069] Because the secondary types of model A and model B are inconsistent, B AB is 0;
[0070] Because the primary type of model A and model B is the same, then C AB is 1;
[0071] The sum of the model dimensions of model A is 630, and the sum of the model dimensions of model B is 560, then D AB is 70;
[0072] So, similar iAB =1+0+1+(100000-70)=10199930.
[0073] After obtaining the similarity between all product models and each of the original models, for each product model, the original model corresponding to the greatest similarity is selected for replacement, until all product models are replaced into the standard scene template to obtain the first display scene.
[0074] Step S4: adjusting the first display scene according to the user solution list to obtain a final three-dimensional model scene.
[0075] In this step, the original models that have not been replaced in the first display scene are determined according to the user solution list;
[0076] The original model that has not been replaced is deleted from the first display scene to obtain a final three-dimensional model scene.
[0077] Further, in order to execute the model layout system based on the three-dimensional scene corresponding to the above method embodiment to achieve the corresponding functions and technical effects, Figure 2 A structural diagram of a model layout system based on a three-dimensional scene is provided. For ease of explanation, only the parts related to this embodiment are shown. The model layout system based on a three-dimensional scene provided by the embodiment of the present invention includes:
[0078] The device information acquisition module 201 is used to acquire the device information in the user plan list;
[0079] A product model acquisition module 202, for determining the product models corresponding to all devices in the user solution list according to the device information;
[0080] A first display scene generation module 203 is used to import the product model into a standard scene template, and replace the original model in the standard scene template with the product model by a most similar model matching method to obtain a first display scene;
[0081] The final 3D model scene generation module 204 is used to adjust the first display scene according to the user solution list to obtain a final 3D model scene.
[0082] In some embodiments, the device information acquisition module 201 further includes:
[0083] The device information acquisition unit is used to analyze and extract features from the user solution list to obtain all product models; and to search according to the product models to obtain device information in the user solution list.
[0084] In some embodiments, the first display scene generating module 203 further includes:
[0085] The standard scene template selection unit is used to select a standard scene template according to user needs before importing the product models one by one into the standard scene template through the most similar model matching method; wherein the standard scene template is a preset number of designed general scene templates.
[0086] The first display scene generation unit is used to obtain the properties of all original models in the standard scene template; wherein the properties of the original model include model adsorption properties, model size and model type; obtain the properties of the product model; according to the properties of the original model and the properties of the product model, calculate the similarity between the product model and each of the original models by the most similar model matching method; according to the similarity, use all product models to replace the original models in the standard scene template to obtain a first display scene.
[0087] The model replacement unit is used to select the original model corresponding to the maximum similarity for replacement for each product model, until all product models are replaced into the standard scene template to obtain the first display scene.
[0088] A similarity calculation unit is used to set the matching priority from high to low as model adsorption attribute, model type and model size; wherein the model type includes a primary type and a secondary type; according to the matching priority, the similarity between the product model and each of the original models is calculated; when the high matching priority of the product model and the original model is consistent, it is considered that the similarity is higher.
[0089] In some embodiments, the final 3D model scene generation module 204 further includes:
[0090] The final 3D model scene generating unit is used to determine the original models that have not been replaced in the first display scene according to the user solution list; delete the original models that have not been replaced from the first display scene to obtain the final 3D model scene.
[0091] Furthermore, Figure 3 This is a structural diagram of a terminal device provided in one embodiment of the present application. Figure 3 As shown, the terminal device 3 of this embodiment includes: at least one processor 30 (in Figure 3 Only one is shown) and a memory 31 and a computer program 32 stored in the memory 31 and executable on the at least one processor. When the processor 30 executes the computer program 32, the steps of a model layout method based on a three-dimensional scene as described in any one of the embodiments of the present invention can be implemented.
[0092] The terminal device 3 may be a computing device such as a desktop computer, a cloud server, or a laptop computer. The computing device may include but is not limited to a processor 30 and a memory 31 . Figure 3 This is merely an example of the terminal device 3 and does not constitute a limitation on the terminal device 3 , which may include more or fewer components than those shown in the figure.
[0093] This embodiment proposes a model layout method, system and terminal device based on a three-dimensional scene: obtain device information in a user solution list; determine the product models corresponding to all devices in the user solution list based on the device information; import the product model into a standard scene template, and use the product model to replace the original model in the standard scene template through the most similar model matching method to obtain a first display scene; adjust the first display scene based on the user solution list to obtain a final three-dimensional model scene. Its beneficial effect is: automatically and accurately match the existing model to the set three-dimensional scene, so as to quickly and accurately complete the three-dimensional scene layout of the model.
[0094] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. A model layout method based on a three-dimensional scene, characterized in that: include: Obtaining device information in the user plan list, specifically: analyzing and feature extracting the user plan list to obtain all product models; Search according to the product model to obtain device information in the user solution list; Determine, based on the device information, the product models corresponding to all devices in the user solution list; The product model is imported into the standard scene template, and the original model in the standard scene template is replaced with the product model by the most similar model matching method to obtain the first display scene, specifically: the properties of all the original models in the standard scene template are obtained; wherein the properties of the original model include model adsorption properties, model size and model type; the properties of the product model are obtained; according to the properties of the original model and the properties of the product model, the similarity between the product model and each of the original models is calculated by the most similar model matching method; according to the similarity, the original model in the standard scene template is replaced with all the product models to obtain the first display scene; The first display scene is obtained by: for each product model, selecting the original model corresponding to the largest similarity to replace, until all product models are replaced into the standard scene template, and the first display scene is obtained; The similarity between the product model and each of the original models is calculated by the most similar model matching method, specifically: the matching priorities are set from high to low as model adsorption attribute, model type and model size; wherein the model type includes a primary type and a secondary type; according to the matching priority, the similarity between the product model and each of the original models is calculated; when the high matching priority of the product model and the original model is consistent, it is considered that the similarity is higher; According to the user solution list, the first display scene is adjusted to obtain a final three-dimensional model scene.
2. The model layout method based on three-dimensional scene according to claim 1, characterized in that: Before importing the product models into the standard scene templates one by one through the most similar model matching method, a standard scene template is first selected according to user needs; wherein the standard scene template is a plurality of pre-designed universal scene templates.
3. The model layout method based on three-dimensional scene according to claim 1, characterized in that: The similarity is calculated as follows: similar ij =A ij +B ij +C ij +(H-D ij ); In the formula, similar ij is the similarity between model i and model j, A ij is the comparison result of the adsorption properties of model i and model j, B ij is the secondary type comparison result of model i and model j, C ij is the first-level type comparison result of model i and model j, H is the maximum model size, D ij is the absolute value of the difference between the sum of the model sizes of model i and the sum of the model sizes of model j.
4. The model layout method based on three-dimensional scene according to claim 1, characterized in that: The first display scene is adjusted according to the user solution list to obtain a final three-dimensional model scene, specifically: Determining, according to the user solution list, original models that have not been replaced in the first display scene; The original model that has not been replaced is deleted from the first display scene to obtain a final three-dimensional model scene.
5. A model layout system based on a three-dimensional scene, characterized in that: include: Device information acquisition module, product model acquisition module, first display scene generation module and final three-dimensional model scene generation module; The device information acquisition module is used to acquire the device information in the user plan list, specifically: analyze and extract features from the user plan list to obtain all product models; search according to the product model to acquire the device information in the user plan list; The product model acquisition module is used to determine the product models corresponding to all devices in the user solution list according to the device information; The first display scene generation module is used to import the product model into the standard scene template, and replace the original model in the standard scene template with the product model through the most similar model matching method to obtain the first display scene; specifically: obtain the properties of all original models in the standard scene template; wherein the properties of the original model include model adsorption properties, model size and model type; obtain the properties of the product model; calculate the similarity between the product model and each of the original models through the most similar model matching method according to the properties of the original model and the properties of the product model; according to the similarity, use all product models to replace the original model in the standard scene template to obtain the first display scene; The first display scene is obtained by: for each product model, selecting the original model corresponding to the largest similarity to replace, until all product models are replaced into the standard scene template, and the first display scene is obtained; The similarity between the product model and each of the original models is calculated by the most similar model matching method, specifically: the matching priorities are set from high to low as model adsorption attribute, model type and model size; wherein the model type includes a primary type and a secondary type; according to the matching priority, the similarity between the product model and each of the original models is calculated; when the high matching priority of the product model and the original model is consistent, it is considered that the similarity is higher; The final 3D model scene generation module is used to adjust the first display scene according to the user solution list to obtain a final 3D model scene.
6. A terminal device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of a model layout method based on a three-dimensional scene described in any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Information sharing method and apparatus in three-dimensional scene model
CN108600509A
Three-dimensional scene rapid construction method and device, electronic equipment and storage medium
CN115761130A