Home decoration model processing method, device, electronic equipment and storage medium

By analyzing and marking the panels of the home decoration model, identifying adjacent panels and matching the splicing status, it solves the problem of automatically identifying hole and slot positions in home decoration design, improves the accuracy and efficiency of production and processing, and satisfies the needs of different manufacturers. needs.

CN118334295BActive Publication Date: 2024-08-27HANGZHOU QUNHE INFORMATION TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410775579.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-08-27
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

In the field of home decoration design, it is difficult for existing technology to automatically identify and process holes and slots in home decoration models, resulting in low production and processing efficiency and error-prone production processes, which cannot flexibly meet the processing needs of different manufacturers.

Method used

By analyzing the model parameters of the target model based on the modeling direction model, marking each panel surface of the panel, identifying adjacent panels, matching the splicing status and the demand status, calculating the interface and interface body, and realizing automatic positioning and processing.

Benefits of technology

It improves the accuracy and efficiency of production and processing, reduces the error rate, meets the individual needs of different manufacturers, and reduces resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118334295B
    Figure CN118334295B
Patent Text Reader

Abstract

The present disclosure provides a processing method, device, electronic device and storage medium for a home decoration model. The invention relates to the field of computer technology, and in particular to the technical fields of three-dimensional home decoration models, image processing and the like. The method comprises: based on a modeling direction model, analyzing the model parameters of a target model, marking each panel surface of panels in the target model based on the modeling direction model, and obtaining panel surface markings of each panel surface; based on the panel surface markings of each panel, identifying adjacent panels in the target model to construct panel pairs; matching the splicing state of the panel pairs with the required state to obtain matching results; and in the case where it is determined that the panel pairs need to be processed based on the matching results, calculating the interface and / or interface between the panel pairs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to the technical fields of three-dimensional home decoration models, image processing, etc. Background Art

[0002] In the field of home decoration design, due to the development and maturity of 3D home decoration design technology, many users design customized furniture according to the characteristics of their own house type. These furniture are rendered in the home decoration design scene in the form of home decoration models. Among them, home decoration models can include customizable furniture such as wardrobes, beds, desks, dining cabinets, display cabinets, etc. Summary of the invention

[0003] The present disclosure provides a method, device, electronic device and storage medium for processing a home decoration model to solve or alleviate one or more technical problems in related technologies.

[0004] In a first aspect, the present disclosure provides a method for processing a home decoration model, comprising:

[0005] Based on the modeling direction model, the model parameters of the target model are analyzed to mark each panel surface of the panel in the target model based on the modeling direction model to obtain panel surface marks of each panel surface;

[0006] Based on the panel marks of each panel, identifying adjacent panels in the target model to construct panel pairs;

[0007] Matching the splicing state of the panel pair with the required state to obtain a matching result;

[0008] In the case where it is determined based on the matching result that the pair of panels needs to be processed, the interface and / or interface between the pair of panels is calculated.

[0009] In a second aspect, the present disclosure provides a processing device for a home decoration model, comprising:

[0010] An acquisition module, used for analyzing the model parameters of the target model based on the modeling direction model, so as to mark each panel surface of the panel in the target model based on the modeling direction model, and obtain panel surface marks of each panel surface;

[0011] A construction module, for identifying adjacent panels in the target model based on the panel surface marks of each panel to construct panel pairs;

[0012] A matching module, used for matching the splicing state of the panel pair with the required state to obtain a matching result;

[0013] A calculation module is used to calculate the interface and / or interface between the pair of panels when it is determined that the pair of panels needs to be processed based on the matching result.

[0014] In a third aspect, an electronic device is provided, including:

[0015] at least one processor; and

[0016] a memory communicatively connected to the at least one processor; wherein,

[0017] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute any method in the embodiments of the present disclosure.

[0018] In a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute any method according to the embodiments of the present disclosure.

[0019] In a fifth aspect, a computer program product is provided, comprising a computer program, which implements any method according to the embodiments of the present disclosure when executed by a processor.

[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments provided according to the present disclosure and should not be regarded as limiting the scope of the present disclosure.

[0022] Figure 1 is a flowchart of a method for processing a home decoration model according to an embodiment of the present disclosure;

[0023] Figure 2 is a schematic diagram of adjacent panels according to an embodiment of the present disclosure;

[0024] Figure 3 is a schematic diagram of a visualization interface according to an embodiment of the present disclosure;

[0025] Figure 4 is a schematic diagram of a panel splicing model according to an embodiment of the present disclosure;

[0026] Figure 5 is a schematic diagram of a product modeling direction according to an embodiment of the present disclosure;

[0027] Figure 6 is a schematic diagram of a target model according to an embodiment of the present disclosure;

[0028] Figure 7 is a schematic diagram of an operation interface according to an embodiment of the present disclosure;

[0029] Figure 8 is a schematic diagram of an interface according to an embodiment of the present disclosure;

[0030] Fig. 9 is another schematic diagram of an interface according to an embodiment of the present disclosure;

[0031] Fig.10 is another schematic diagram of an interface according to an embodiment of the present disclosure;

[0032] Fig.11 is a schematic diagram of a junction according to an embodiment of the present disclosure;

[0033] Fig.12 is a schematic diagram of a through-intersection body according to an embodiment of the present disclosure;

[0034] Fig.13 is a structural schematic diagram of a processing device for a home decoration model according to an embodiment of the present disclosure;

[0035] Fig.14 It is a block diagram of an electronic device used to implement the processing method of the home decoration model of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0036] The present disclosure will be further described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0037] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present disclosure.

[0038] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0039] Because each user needs to split the model before producing and processing the target model, so as to produce the various panels of the model for installation workers to install at home. Before splitting the order, it is necessary to determine the locations in the target model where holes or grooves need to be dug. In order to simplify the design complexity of the home improvement model and improve the compatibility with subsequent processing and production, the disclosed embodiment supports that when designing a home improvement model, the design of holes and grooves can be omitted, and the holes and / or grooves can be automatically identified. However, in actual applications, different manufacturers have different processing requirements for panels, and need to flexibly define the panel markings of each panel according to their own needs, so as to meet their own production and processing needs based on the panel markings of each panel. Specifically, a method for processing a home improvement model is proposed in the disclosed embodiment, and the flow chart of the method is as follows. Figure 1 As shown, including the following:

[0040] S101, analyzing the model parameters of the target model based on the modeling direction model, marking each panel surface of the panel in the target model based on the modeling direction model, and obtaining panel surface markings of each panel surface.

[0041] The target model can be any home decoration model such as a wardrobe or a desk.

[0042] S102: Based on the panel surface mark of each panel, adjacent panels in the target model are identified to construct panel pairs.

[0043] During implementation, if two plates interfere with each other, the two plates can be determined to be adjacent plates. In addition, when the target model is modeled, due to modeling errors, a small gap is generated between the surfaces that should be in contact, so that the two plates do not have an interference relationship. Therefore, in order to be compatible with such errors, the embodiment of the present disclosure can determine the distance between the closest surfaces of the two plates. If the distance is less than a preset threshold, the two plates can also be determined to be adjacent plates.

[0044] An exemplary adjacent plate is as follows Figure 2 As shown, taking the locker as an example, assume that the top surface of all panels in the target model is marked as 0, the bottom surface is marked as 5 (not shown in the figure), the front surface is marked as 1, the right surface is marked as 2, the back surface is marked as 3, and the left surface is marked as 4 (it can be understood that due to occlusion and other reasons, Figure 2 2 ). It can be seen from FIG. 2 that the positions of plate A and plate B are close, and the center point of the surface mark 0 in plate A can be calculated, and the center point of the surface mark 5 in plate B can be calculated at the same time, and the position distance of these two center points in the three-dimensional coordinate system is calculated. When the relative position distance is less than a preset threshold, plate A and plate B are determined to be adjacent plates to construct a plate pair.

[0045] During implementation, if the coordinate system of the target model is established with the lower left rear corner of the model, the distance between the coordinates of a single target direction (such as x, y or z direction) in the three-dimensional coordinate system can be calculated.

[0046] S103, matching the splicing state of the panel pair with the required state to obtain a matching result.

[0047] During implementation, since the target object of the embodiment of the present disclosure may be the manufacturer of the furniture model, the demand state here may be determined based on the actual situation of the manufacturer, and the embodiment of the present disclosure does not limit this.

[0048] S104, when it is determined based on the matching result that a panel pair needs to be processed, calculating the interface and / or interface between the panel pair.

[0049] In the disclosed embodiment, the modeling direction model can support the customized determination of the panel surface markings of the panel to meet the needs of splitting orders, facilitate processing and production, and improve production efficiency. Based on the determined panel surface markings, the panel pairs constructed by adjacent panels are accurately identified. Based on the matching of the splicing state of the panel pair with the required state, the panel pairs that need to be processed can be automatically located. Then, for the panels that need to be processed, the hole positions and slot positions are automatically located through the determined interface and / or interface. The entire process is carried out automatically to meet the production and processing needs, and the interface and / or interface can be accurately identified, providing accurate data for production and processing, and reducing the waste caused by providing incorrect interface and interface to production and processing.

[0050] The present disclosure includes the following contents:

[0051] First, it supports batch import of models to identify the target models that need to be processed. Then, the panel marks of each panel can be automatically identified for each target model. After that, the panel pairs that meet the required state can be identified based on the panel marks. Finally, the contact surface and / or contact body are determined based on the panel pairs to facilitate the determination of the location of drilling or digging.

[0052] For further understanding, the above processes proposed in the embodiments of the present disclosure are introduced below respectively, as follows:

[0053] 1) Identify the target model

[0054] In some embodiments, the layout and display can be carried out according to the characteristics of the house type through home decoration design software, and the home decoration plan can be finally determined through multiple interactions. In order to improve the accuracy of production and processing to maintain the advantage of what you see is what you get, the acquisition of the target model in the embodiment of the present disclosure can be implemented as follows: obtaining multiple models to be processed from the room layout model; in response to the setting result of the true classification of the product, filtering out the models that do not belong to the true classification of the product from the multiple models to be processed, and obtaining the remaining models as the target model.

[0055] Among them, the model to be processed can carry the product identification corresponding to each model. For example, the product identification corresponding to the wardrobe model is "wardrobe", the product identification corresponding to the green plant is "plant", the product identification corresponding to the bed is "bed", and so on.

[0056] That is, in the disclosed embodiment, the user is supported to filter out the target model that needs to be processed and produced according to the characteristics of their own processing technology. During implementation, in response to the setting result of the true classification of the commodity, the models that do not belong to the true classification of the commodity can be filtered out from the multiple models to be processed, and the remaining models are obtained as the target models. It can be implemented as follows: based on the commodity identification of the true classification of the commodity in the visual interface, the candidate model belonging to the true classification of the commodity is determined from the multiple models to be processed; based on the commodity subcategory corresponding to the commodity identification of the true classification of the commodity, the target model is determined from the multiple candidate models belonging to the true classification of the commodity.

[0057] In some embodiments, based on the product identification of the true category of the product in the visualization interface, a candidate model belonging to the true category of the product is determined from multiple models to be processed. This can be implemented as follows: based on the product identification of the true category of the product in the visualization interface, the product identification corresponding to the model to be processed is matched, and the model to be processed that matches the product is determined as the candidate model.

[0058] In some embodiments, a target model is determined from multiple candidate models belonging to the true classification of the product based on the product subcategory corresponding to the product identification of the true classification of the product. This can be implemented as follows: the target category in the product subcategory corresponding to the product identification of the true classification of the product is matched with the subcategory of the candidate model, and the candidate model with the consistent match is determined as the target model.

[0059] An exemplary visualization interface is as follows: Figure 3 As shown, the operation item "Enter the real category of the product" supports customizing the real category identification of the product to be processed; the operation item "Contribute to the calculation of the product" supports custom selection of subcategories under the real category. For example, the subcategories corresponding to the real category "wardrobe" of the product may include "double-door cabinet, three-door cabinet, sliding cabinet"; the subcategories corresponding to the real category "bed" of the product may include "single bed, double bed", etc., and so on.

[0060] For example, 100 is the identifier of a bed, 110 is the identifier of a wardrobe, and the content in "Enter the true category of the product" is "100, 110". The subcategories of these two true categories can be displayed in the form of a menu in "Products involved in calculation", or the required subcategories can be entered in the input box.

[0061] Subcategories may also be marked in the form of identifiers. For example, the bed 100 includes a single bed 1001, a double bed 1002, etc., and the wardrobe 110 includes a double-door wardrobe 1101, a three-door wardrobe 1102, a push-pull wardrobe 1103, etc. The identifiers and names corresponding to the subcategories may be displayed in a menu for selection by the user, or the user may manually input the identifier corresponding to the required subcategory. This disclosure embodiment is not limited to this.

[0062] Exemplarily, the models to be processed include {model A, wardrobe, three-door cabinet}, {model B, wardrobe, double-door cabinet}, {model C, plant, green plant}, {model D, bed, double bed}. When the content in "Input commodity true classification" is "110", model A and model B are determined as candidate models, and when "double-door cabinet" is selected in "Commodity involved in calculation", model B is further selected from candidate models A and B as the target model.

[0063] During implementation, the model to be processed is input into the feature extraction network, and the model to be matched in the commodity library is input into the feature extraction network, the first feature of the model to be processed and the second feature of the model to be matched are obtained, and the similarity is calculated based on the first feature and the second feature to obtain the matching result. In the case of matching, it is determined that the commodity classification of the model to be processed is the same as the commodity classification of the model to be matched.

[0064] The structure of the feature extraction network may include N fully convolutional networks connected in series with fully connected layers.

[0065] Among them, models with similar features can be used as the same batch of sample data to input into the initial feature extraction network. By training the initial feature extraction network, the features extracted by the initial feature extraction network meet the following conditions, namely: the feature distances of models belonging to the same product category are gradually approached, and the feature distances of models of different product categories are gradually increased.

[0066] 2) Get the board mark

[0067] In some embodiments, based on Figure 3 In the "handover object configuration" operation item, the target object can select the handover object as at least one of panels, hardware, and commodities. The following describes how to obtain the panel surface mark when the handover object is a panel or a commodity.

[0068] In some embodiments, Figure 3 The panel type shown in the figure, the model parameters of the target model are analyzed based on the modeling direction model, so as to mark each panel surface of the panel in the target model based on the modeling direction model to obtain the panel surface mark of each panel surface, which can be implemented as follows: when the target model is a panel splicing model (i.e. Figure 3 In the case of a panel in the target model, the target model is rotated to a corresponding position in response to a rotation operation result on the panel in the target model; the panel surface orientation of the target model at the corresponding position is matched with the panel surface definitions in various directions in the modeling direction model to obtain the panel surface markings of various panels in the target model.

[0069] In the disclosed embodiment, the panel splicing model is used to distinguish from the commodity model. The commodity model has a corresponding classification, and the panel splicing model may not have a corresponding commodity classification, and may be a model that is flexibly customized according to decoration requirements. For example, two simple panels spliced ​​together in a certain way can be a panel splicing model.

[0070] During implementation, each individual panel in the panel assembly model is defined and displayed in the coordinate system of the modeling direction model. Figure 4 As shown, in the modeling direction model, each panel in the panel splicing model can be adjusted to determine the panel surface markings of each panel surface of the panel. In the modeling direction model, different orientations distinguished by the coordinate axes of the coordinate system correspond to different panel surface markings. In a possible implementation, in the modeling direction model, the panel surface markings of the panel can be determined based on the method of Table 1:

[0071] Table 1

[0072]

[0073] It can be understood that after the plate is adjusted in the coordinate system of the modeling direction model, the surface of the plate that is consistent with the modeling direction model is defined using the definition of the plate surface in the modeling direction model. For example, the surface of the plate facing upward in the modeling direction model is defined as the top surface according to Table 1, and its plate surface is marked as 0. The surface of the plate facing downward in the modeling direction model is defined as the bottom surface according to Table 1, and its plate surface is marked as 5. The same applies to other plate surfaces.

[0074] In the disclosed embodiment, when the target model is a panel splicing model, the position information of each panel in the modeling direction model can be adjusted respectively to automatically determine the corresponding panel surface mark according to the commodity modeling direction model, and the panel surface marks of each panel obtained in this way have high flexibility. Users can define the processing generation requirements of the panels according to their own needs to support subsequent order splitting and processing operations.

[0075] In some embodiments, Figure 3 For the commodity type shown, the model parameters of the target model are analyzed based on the modeling direction model, so as to mark each panel surface of the panel in the target model based on the modeling direction model to obtain the panel surface mark of each panel surface, which can be implemented as follows:

[0076] Step A1, when the target model is a commodity model, determine the various orientations of the cube model of the target model according to the placement rules of the target model in the room.

[0077] It can be understood that the wardrobe needs to be placed vertically in the room, the bed needs to be placed horizontally in the room, and so on.

[0078] Step A2, matching the panel definitions of various directions in the modeling direction model with the panel definitions of various directions in the cube model to obtain the panel definitions of various directions in the cube model.

[0079] Among them, the definition of the board surface in each direction in the modeling direction model can be as shown in the above Table 1, which will not be repeated here.

[0080] Among them, the panel modeling direction can be realized based on the "Select Product Modeling Direction" function in the visual interface, such as Figure 5 As shown, the placement of the panels in the modeling direction model can be visually adjusted based on the coordinate system in the modeling direction model to calibrate each surface of the panel.

[0081] Step A3, based on the panel definitions of each orientation of the cube model, determine the panel markings of each panel in the target model; wherein the meaning of the orientation of the panel marking of each panel is consistent with the meaning of each orientation of the cube model.

[0082] For example, in the cubic model of the wardrobe, assuming that the normal of the outer surface of the wardrobe door matches the front side surface shown in Table 1, then the faces of each panel in the wardrobe that are consistent with the normal are defined as panel surface marks 2 corresponding to the front side surface.

[0083] In the disclosed embodiment, when the target model is a commodity model, the panel mark of each panel in the commodity is determined based on the actual placement of the commodity, so as to facilitate the subsequent disassembly of different panel pairs, define the panel surfaces with holes and grooves, and facilitate subsequent processing and production according to the panel definition consistent with the user's understanding.

[0084] 3) Identify the panels that need to be processed

[0085] In some embodiments, due to differences in user processing techniques or habits, the user's demand status needs to be determined based on their actual situation. In order to meet user needs, reduce communication costs and increase production and sales, the embodiments of the present disclosure can display a visual interface to automatically identify user needs. Specifically, it may include:

[0086] Step B1, displaying the operation interface; the operation interface includes at least one of the following items for describing the required state: a first setting item for whether output is required for the situation where the interface is insufficient in plate thickness, a second setting item for whether output is required for the interface body, a third setting item for whether output is required for the interface body that penetrates the interface body, and a fourth setting item for whether output is required for the interface body that is insufficient in plate thickness; threshold values ​​for the interface and / or interface body in the case of insufficient plate thickness; the threshold values ​​are used to control the judgment conditions for whether to output.

[0087] Among them, each setting item is used to control whether to calculate the intersection surface and / or intersection body of the corresponding panel pair and output it for subsequent order splitting.

[0088] Step B2: determining the demand state in response to an operation on the display operation interface.

[0089] The different setting items are described below.

[0090] A) Is it required to output the plate thickness when the interface is insufficient?

[0091] In general, the plate pairs in the model should fit perfectly, but in the model design stage, due to some reasons, the target model does not achieve a perfect fit in the expression of model parameters. For example, the contact area between the plate pairs in the target model is smaller than the thickness of any plate in the plate pair, and the length of the contact surface in the thickness direction is greater than the threshold of the intersection surface that is less than the plate thickness, and is less than the plate thickness. Figure 6 As shown, the thickness direction of the interface between plate A and plate B is greater than the threshold of the interface that is less than the thickness of plate B, and less than the thickness of plate B. This type of small error can be tolerated to avoid model rework, and the production can also be automatically promoted. That is, in this case, the contact surface and / or contact body can be calculated for the plate pair, and the calculation results can be output.

[0092] If the length of the contact surface in the plate thickness direction is not greater than the intersection threshold value of less than the plate thickness, it is understood that there is no intersection relationship between the two plates. In this case, it is not necessary to calculate the contact surface and / or contact body between the corresponding plate pairs.

[0093] For example, an operation interface such as Figure 7As shown, if the first setting item "Whether to output the interface of insufficient plate thickness" is selected as yes, the interface of insufficient plate thickness will be output; if no is selected, the interface of insufficient plate thickness will not be output nor calculated.

[0094] It should be noted that only when the panel pair meets the interface threshold value, the panel pair is determined as the interface. How to determine the interface will be described later, and will not be described here one by one.

[0095] B) Whether to output the intersection and the through-intersection

[0096] For example, Figure 7 For example, when the output type of the intersection is selected as the intersection, all the intersections in the target model are output, including the through intersection and non-through intersection. When the output type of the intersection is selected as the through intersection, only the information of the through intersection in the target model is output; you can choose whether to output the data of the intersection with insufficient plate thickness (i.e., non-through intersection) according to the user's option of whether to output the intersection with insufficient plate thickness.

[0097] It should be noted that after setting the intersection threshold, the intersection between the pair of panels is calculated and output only when the distance between the pair of panels is less than the intersection threshold. How to determine the intersection will be described later, and will not be described here one by one.

[0098] C) Whether to output the intersection of insufficient plate thickness

[0099] Consistent with the previous description, if you select "Yes" in the third setting item of "Whether to output the intersections of insufficient plate thickness", the intersections of insufficient plate thickness will be output; if you select "No", the intersections of insufficient plate thickness will not be output or calculated.

[0100] In the disclosed embodiment, the demand status is determined based on the operation status of the display operation interface, and the user needs are flexibly adapted while saving computing power to avoid the waste of resources caused by the factory processing unnecessary panels, and the final generated results are more in line with expectations, thereby improving the user experience.

[0101] In some embodiments, matching the splicing state of the panel pair with the required state to obtain a matching result can be implemented as follows: determining the overlap between two panels in the panel pair; and determining whether it matches the required state based on the overlap.

[0102] In some embodiments, determining the overlap between two plates in the plate pair may be implemented as follows: constructing a linear frame of the first plate based on coordinate information of the first plate, and; constructing a linear frame of the second plate based on coordinate information of the second plate; and determining the overlap between the first plate and the second plate based on the linear frame of the first plate and the linear frame of the second plate.

[0103] When the overlap between the first panel and the second panel is greater than the intersection threshold, it can be determined that the intersection type of the panel pair is an intersection; in response to the operation of the second setting item, the third setting item, and the fourth setting item in the display operation interface, the demand state is determined.

[0104] In the disclosed embodiment, based on the overlap between two panels in a panel alignment and then matching it with the demand status, the content that needs to be processed can be automatically determined based on this method, thereby saving computing power and meeting the user's personalized production and processing needs.

[0105] 4) Calculate the interface / body

[0106] In some embodiments, the calculating of the interface between the pair of panels may be implemented as follows:

[0107] Step C1, determining a first plate and a second plate in the plate pair.

[0108] Step C2, projecting a first contact surface between the first plate and the second plate onto a second contact surface between the second plate and the first plate to obtain a projected outer contour within the second contact surface.

[0109] A schematic projection outline, such as Figure 8 As shown, within the range of the second contact surface, the projected outer contour of the first contact surface is an irregular shape.

[0110] Step C3, solving the minimum bounding box of the projected outer contour within the range of the second contact surface.

[0111] right Figure 8 The minimum bounding box obtained by the projection outer contour of the irregular box in is the rectangular box that can enclose the irregular box, that is, Figure 8 As shown in the grey dashed box.

[0112] Step C4, subtracting the projected outer contour from the minimum bounding box to obtain a remaining area.

[0113] The remaining area is Fig. 9 As shown in the middle gray area, the minimum bounding box minus the projected outer contour obtains two rectangular areas, which are the remaining areas.

[0114] Step C5, when there are multiple independent residual areas, respectively obtain a to-be-cut rectangular bounding box for each residual area, and subtract the to-be-cut rectangular bounding box of each residual area from the minimum bounding box to obtain the intersection surface;

[0115] Among them, the length of the rectangular bounding box to be cropped in the remaining area in the extension direction of the intersection surface is equal to the plate thickness of the second contact surface, and the length in the extension direction perpendicular to the intersection surface is equal to the length of the rectangular bounding box to be cropped in the remaining area in the extension direction perpendicular to the intersection surface.

[0116] Specifically, the extending direction of the intersection surface can be understood as the first direction of the second contact surface, and the length of the intersection surface in this direction is at most the thickness of the second contact surface. The extending direction perpendicular to the intersection surface is the second direction of the second contact surface, and the second direction is perpendicular to the first direction, and the length of the intersection surface in this second direction is at most the length of the second contact surface in the second direction.

[0117] That is, in the embodiment of the present disclosure, the contact surface is defined as a rectangular area.

[0118] The rectangular bounding box to be cropped for each remaining area is as follows: Fig.10 As shown in the light grey area, the resulting interface can be Fig.10 Shown in medium to dark grey area.

[0119] In some embodiments, the coordinates of the four vertices of the intersection surface are input to the user according to the output rule, and the output rule is to output the vertex with the smallest absolute value of the coordinate as the first vertex, and the other coordinates are output in clockwise order. The output order can be as follows: Fig.10 As shown in the numbers.

[0120] In the disclosed embodiment, the punching positions of the panels can be accurately determined based on this method, thereby improving order splitting efficiency and enhancing user experience.

[0121] In some embodiments, the calculation of the intersection between the pair of panels may be implemented as follows:

[0122] Step D1, determining the first plate and the second plate in the plate pair, as well as the first surface mark and the second surface mark of the first plate for cutting the second plate, and the third surface mark and the fourth surface mark of the second plate for cutting the first plate;

[0123] Step D2, cutting the second board member using the board surface range marked on the first side and the board surface range marked on the second side, and determining whether the board surface marked on the first side and the board surface marked on the second side cut the second board member; and

[0124] Step D3, using the board surface range marked on the third surface and the board surface range marked on the fourth surface to cut the first board, and determining whether the board surface marked on the third surface and the board surface marked on the fourth surface cut into the first board;

[0125] Step D4, when any of the board surface marked on the first surface, the board surface marked on the second surface, the board surface marked on the third surface, and the board surface marked on the fourth surface has not been cut to a corresponding board, determining that the first board and the second board are connected to an insufficiently thick joint;

[0126] Step D5, determining the coordinates of multiple vertices of the intersection body with insufficient plate thickness as parameter output of the intersection body.

[0127] That is, the intersection body needs to output 8 vertex coordinates as a cube to facilitate trenching.

[0128] In some embodiments, an exemplary interface is as follows Fig.11 As shown. The intersection requires 8 coordinate points, which can be understood as the need to output the coordinate points of two opposite surfaces. The surface where the two plates first touch can be determined as the upper surface ( Fig.11 The oblique line striped rectangular box shown in the figure), the rear contact surface is the lower surface ( Fig.11 The coordinate points can output the upper surface coordinates first, and then the lower surface coordinates. The output order of the coordinates of each surface can be based on the above Fig.10 The output rules shown in the output are output, and the specific output order can be as follows Fig.11 As shown in the numbered part, Fig.11 Coordinates 1, 2, 3, and 4 in all belong to the upper surface. Fig.11 Coordinates 5, 6, 7, and 8 in the figure all belong to the lower surface.

[0129] In the disclosed embodiment, the slot position of the panel can be accurately determined based on this method, so as to improve the efficiency of order splitting and enhance the user experience.

[0130] In some embodiments, when any of the board surfaces marked on the first surface, the board surfaces marked on the second surface, the board surfaces marked on the third surface, and the board surfaces marked on the fourth surface are cut to corresponding panels, it is determined that the first panel and the second panel belong to a through-intersection body.

[0131] During implementation, in some wine racks, grids, and decorative cabinets, some panels need to penetrate the junction. In this case, the junction between the first panel and the second panel is as follows: Fig.12 As shown, any one of the board surface marked on the first side, the board surface marked on the second side, the board surface marked on the third side, and the board surface marked on the fourth side is cut to the corresponding board part.

[0132] In the disclosed embodiment, the slot position in the through-intersection body is obtained by calculation, so as to realize automatic determination of the slot position and save manpower and material resources.

[0133] Based on the same technical concept, the present disclosure also provides a processing device 1300 for a home decoration model. Fig.13 As shown, including:

[0134] The acquisition module 1301 is used to analyze the model parameters of the target model based on the modeling direction model, so as to mark each panel surface of the panel in the target model based on the modeling direction model, and obtain the panel surface mark of each panel surface;

[0135] A construction module 1302 is used to identify adjacent panels in the target model based on the panel surface marks of each panel to construct panel pairs;

[0136] A matching module 1303 is used to match the splicing state of the panel pair with the required state to obtain a matching result;

[0137] The calculation module 1304 is used to calculate the interface and / or interface between the pair of panels when it is determined that the pair of panels needs to be processed based on the matching result.

[0138] In some embodiments, the acquisition module is specifically used to:

[0139] In the case where the target model is a panel splicing model, in response to the result of the rotation operation on the panels in the target model, the target model is rotated to a corresponding position;

[0140] The panel orientation of the target model at the corresponding position is matched with the panel definitions in each direction in the modeling direction model to obtain the panel markings of each panel in the target model.

[0141] In some embodiments, the acquisition module is specifically used to:

[0142] In the case where the target model is a commodity model, determining various orientations of the cube model of the target model according to a placement rule of the target model in the room;

[0143] Matching the panel definitions of each direction of the cube model with the panel definitions of each direction in the modeling direction model to obtain the panel definitions of each direction of the cube model;

[0144] Based on the panel definitions of each orientation of the cube model, the panel marks of each panel in the target model are determined; wherein the meaning of the orientation of the panel mark of each panel is consistent with the meaning of each orientation of the cube model.

[0145] In some embodiments, the system further includes a determining module for:

[0146] Display an operation interface; the operation interface includes at least one of the following items for describing the required state: a first setting item for whether to require output for a situation where the interface is insufficient in thickness, a second setting item for whether to output a junction, a third setting item for whether to output a through-intersection, and a fourth setting item for whether to output a junction with insufficient thickness; thresholds for interfaces and / or interfaces in the case of insufficient thickness; the thresholds are used to control the judgment condition for whether to output;

[0147] In response to an operation on the display operation interface, the demand state is determined.

[0148] In some embodiments, the matching module is specifically used to:

[0149] Determining the overlap between two plates in the plate pair;

[0150] Based on the overlap, it is determined whether the requirement status matches the requirement status.

[0151] In some embodiments, a target model acquisition module is further included, which is used to:

[0152] Obtain multiple models to be processed from the room layout model;

[0153] In response to the result of setting the true classification of the product, the models that do not belong to the true classification of the product are filtered out from the multiple models to be processed, and the remaining models are obtained as the target models.

[0154] In some embodiments, the computing module is specifically used to:

[0155] determining a first plate and a second plate in the pair of plates;

[0156] Projecting a first contact surface between the first plate and the second plate onto a second contact surface between the second plate and the first plate to obtain a projected outer contour within the second contact surface;

[0157] Solving the minimum bounding box of the projected outer contour within the range of the second contact surface;

[0158] Subtract the projection outer contour from the minimum bounding box to obtain a remaining area;

[0159] In the case where there are multiple independent remaining areas, a rectangular bounding box to be cropped is obtained for each remaining area, and the rectangular bounding box to be cropped of each remaining area is subtracted from the minimum bounding box to obtain the intersection surface;

[0160] Among them, the length of the rectangular bounding box to be cropped in the remaining area in the extension direction of the intersection surface is equal to the plate thickness of the second contact surface, and the length perpendicular to the extension direction of the intersection surface is equal to the length of the minimum bounding box of the remaining area in the extension direction perpendicular to the intersection surface.

[0161] In some embodiments, the computing module is specifically used to:

[0162] Determine a first plate and a second plate in the plate pair, a first side mark and a second side mark of the first plate where the second plate is cut, and a third side mark and a fourth side mark of the second plate where the first plate is cut;

[0163] Cutting the second board member using the board surface range marked on the first side and the board surface range marked on the second side, and determining whether the board surface marked on the first side and the board surface marked on the second side cut the second board member; and,

[0164] Cutting the first board member using the board surface range marked on the third surface and the board surface range marked on the fourth surface, and determining whether the board surface marked on the third surface and the board surface marked on the fourth surface cut into the first board member;

[0165] When any of the plate surface marked on the first surface, the plate surface marked on the second surface, the plate surface marked on the third surface, and the plate surface marked on the fourth surface is not cut to the corresponding plate, it is determined that the first plate and the second plate are connected to an insufficient plate thickness;

[0166] The coordinates of multiple vertices of the intersection body with insufficient plate thickness are determined and output as parameters of the intersection body.

[0167] In some embodiments, the system further includes a through-interface determination module for:

[0168] When any of the board surface marked on the first surface, the board surface marked on the second surface, the board surface marked on the third surface, and the board surface marked on the fourth surface are cut to the corresponding board, it is determined that the first board and the second board belong to a through-intersection body.

[0169] For the description of specific functions and examples of each module, submodule\unit of the device in the embodiment of the present disclosure, please refer to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.

[0170] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0171] Fig.14 FIG. 1 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. Fig.14As shown, the electronic device includes: a memory 1410 and a processor 1420, and the memory 1410 stores a computer program that can be run on the processor 1420. The number of memories 1410 and processors 1420 can be one or more. The memory 1410 can store one or more computer programs. When the one or more computer programs are executed by the electronic device, the electronic device executes the method provided by the above method embodiment. The electronic device may also include: a communication interface 1430, which is used to communicate with external devices and perform data exchange transmission.

[0172] If the memory 1410, the processor 1420 and the communication interface 1430 are implemented independently, the memory 1410, the processor 1420 and the communication interface 1430 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.14 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0173] Optionally, in a specific implementation, if the memory 1410, the processor 1420 and the communication interface 1430 are integrated on a chip, the memory 1410, the processor 1420 and the communication interface 1430 can communicate with each other through an internal interface.

[0174] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the Advanced RISC Machines (ARM) architecture.

[0175] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DR RAM).

[0176] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (for example: coaxial cable, optical fiber, data subscriber line (Digital Subscriber Line, DSL)) or wireless (for example: infrared, Bluetooth, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access, or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc. It is worth noting that the computer-readable storage medium mentioned in the present disclosure may be a non-volatile storage medium, in other words, a non-transient storage medium.

[0177] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0178] In the description of the embodiments of the present disclosure, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0179] In the description of the embodiments of the present disclosure, unless otherwise specified, " / " means or, for example, A / B can mean A or B. "And / or" in this article is only a way to describe the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0180] In the description of the embodiments of the present disclosure, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "plurality" means two or more.

[0181] The above description is only an exemplary embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for processing a home decoration model, comprising: Based on the modeling direction model, the model parameters of the target model are analyzed to mark each panel surface of the panel in the target model based on the modeling direction model to obtain panel surface marks of each panel surface; Based on the panel marks of each panel, identifying adjacent panels in the target model to construct panel pairs; Matching the splicing state of the panel pair with the required state to obtain a matching result; In the case where it is determined based on the matching result that the pair of panels needs to be processed, calculating the interface and / or interface between the pair of panels; The calculating the interface between the pair of plates includes: determining a first plate and a second plate in the pair of plates; Projecting a first contact surface between the first plate and the second plate onto a second contact surface between the second plate and the first plate to obtain a projected outer contour within the second contact surface; Solving the minimum bounding box of the projected outer contour within the range of the second contact surface; Subtract the projection outer contour from the minimum bounding box to obtain a remaining area; In the case where there are multiple independent remaining areas, a rectangular bounding box to be cropped is obtained for each remaining area, and the rectangular bounding box to be cropped of each remaining area is subtracted from the minimum bounding box to obtain the intersection surface; The length of the to-be-cut rectangular bounding box of the remaining area in the extending direction of the intersection surface is equal to the thickness of the second contact surface, and the length perpendicular to the extending direction of the intersection surface is equal to the length of the minimum bounding box of the remaining area in the extending direction perpendicular to the intersection surface; The calculating the intersection between the pair of panels includes: Determine a first plate and a second plate in the plate pair, a first side mark and a second side mark of the first plate where the second plate is cut, and a third side mark and a fourth side mark of the second plate where the first plate is cut; Cutting the second board member using the board surface range marked on the first side and the board surface range marked on the second side, and determining whether the board surface marked on the first side and the board surface marked on the second side cut the second board member; and, Cutting the first board member using the board surface range marked on the third surface and the board surface range marked on the fourth surface, and determining whether the board surface marked on the third surface and the board surface marked on the fourth surface cut into the first board member; When any of the plate surface marked on the first surface, the plate surface marked on the second surface, the plate surface marked on the third surface, and the plate surface marked on the fourth surface is not cut to the corresponding plate, it is determined that the first plate and the second plate are connected to an insufficient plate thickness; The coordinates of multiple vertices of the intersection body with insufficient plate thickness are determined and output as parameters of the intersection body.

2. The method according to claim 1, wherein: The method of analyzing the model parameters of the target model based on the modeling direction model to mark each panel surface of the panel in the target model based on the modeling direction model to obtain panel surface marks of each panel surface includes: In the case where the target model is a panel splicing model, in response to the result of the rotation operation on the panels in the target model, the target model is rotated to a corresponding position; The panel orientation of the target model at the corresponding position is matched with the panel definitions in each direction in the modeling direction model to obtain the panel markings of each panel in the target model.

3. The method according to claim 1, wherein: The method of analyzing the model parameters of the target model based on the modeling direction model to mark each panel surface of the panel in the target model based on the modeling direction model to obtain panel surface marks of each panel surface includes: In the case where the target model is a commodity model, determining various orientations of the cube model of the target model according to a placement rule of the target model in the room; Matching the panel definitions of various directions in the modeling direction model with the panel definitions of various directions in the cube model to obtain panel definitions of various directions in the cube model; Based on the panel definitions of various orientations of the cube model, panel marks of various panels in the target model are determined; wherein the meaning of the orientation of the panel mark of each panel is consistent with the meaning of the various orientations of the cube model.

4. The method according to claim 1, further comprising: Display an operation interface; the operation interface includes at least one of the following items for describing the required state: a first setting item for whether to require output for a situation where the interface is insufficient in thickness, a second setting item for whether to output a junction, a third setting item for whether to output a through-intersection, and a fourth setting item for whether to output a junction with insufficient thickness; thresholds for interfaces and / or interfaces in the case of insufficient thickness; the thresholds are used to control the judgment condition for whether to output; In response to an operation on the display operation interface, the demand state is determined.

5. The method according to claim 4, wherein: The step of matching the splicing state of the panel pair with the required state to obtain a matching result includes: Determining the overlap between two plates in the plate pair; Based on the overlap, it is determined whether the requirement status matches the requirement status.

6. The method according to claim 1, further comprising: Obtain multiple models to be processed from the room layout model; In response to the result of setting the true classification of the product, the models that do not belong to the true classification of the product are filtered out from the multiple models to be processed, and the remaining models are obtained as the target models.

7. The method according to claim 1, further comprising: When any of the board surface marked on the first surface, the board surface marked on the second surface, the board surface marked on the third surface, and the board surface marked on the fourth surface are cut to the corresponding board, it is determined that the first board and the second board belong to a through-intersection body.

8. A processing device for a home decoration model, comprising: An acquisition module, used for analyzing the model parameters of the target model based on the modeling direction model, so as to mark each panel surface of the panel in the target model based on the modeling direction model, and obtain panel surface marks of each panel surface; A construction module, for identifying adjacent panels in the target model based on panel marks of each panel to construct panel pairs; A matching module, used for matching the splicing state of the panel pair with the required state to obtain a matching result; A calculation module, configured to calculate the interface and / or interface between the pair of panels when it is determined based on the matching result that the pair of panels needs to be processed; Wherein, the computing module is specifically used for: determining a first plate and a second plate in the pair of plates; Projecting a first contact surface between the first plate and the second plate onto a second contact surface between the second plate and the first plate to obtain a projected outer contour within the second contact surface; Solving the minimum bounding box of the projected outer contour within the range of the second contact surface; Subtract the projection outer contour from the minimum bounding box to obtain a remaining area; In the case where there are multiple independent remaining areas, a rectangular bounding box to be cropped is obtained for each remaining area, and the rectangular bounding box to be cropped of each remaining area is subtracted from the minimum bounding box to obtain the intersection surface; The length of the to-be-cut rectangular bounding box of the remaining area in the extending direction of the intersection surface is equal to the thickness of the second contact surface, and the length perpendicular to the extending direction of the intersection surface is equal to the length of the minimum bounding box of the remaining area in the extending direction perpendicular to the intersection surface; The computing module is specifically used for: Determine a first plate and a second plate in the plate pair, a first side mark and a second side mark of the first plate where the second plate is cut, and a third side mark and a fourth side mark of the second plate where the first plate is cut; Cutting the second board member using the board surface range marked on the first side and the board surface range marked on the second side, and determining whether the board surface marked on the first side and the board surface marked on the second side cut the second board member; and, Cutting the first board member using the board surface range marked on the third surface and the board surface range marked on the fourth surface, and determining whether the board surface marked on the third surface and the board surface marked on the fourth surface cut into the first board member; When any of the plate surface marked on the first surface, the plate surface marked on the second surface, the plate surface marked on the third surface, and the plate surface marked on the fourth surface is not cut to the corresponding plate, it is determined that the first plate and the second plate are connected to an insufficient plate thickness; The coordinates of multiple vertices of the intersection body with insufficient plate thickness are determined and output as parameters of the intersection body.

9. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-7.

11. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.