Furniture layout determination method, device, electronic device and storage medium
By automatically determining the optimal placement position of the furniture combination in the room, and utilizing the support area of the wall and the intersection of the furniture, the problem of low efficiency in furniture layout design in the existing technology is solved, and fast and reasonable furniture layout design is achieved.
Patent Information
- Application Number
- CN201911262027.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-10
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2039-12-10
AI Technical Summary
The efficiency of furniture layout design in the existing technology is low, and designers need to design manually, which results in limited soft furnishing output efficiency and the inability to automatically generate reasonable furniture layouts.
By determining the candidate positions of the furniture combination in the room, and using the intersection of the wall's support area and the furniture combination, the best placement position is automatically selected to ensure that the furniture is as close to the wall as possible without blocking doors, windows and other facilities.
It realizes fast and automated furniture layout design, improves the efficiency of soft decoration design, and ensures the rationality of furniture placement and space utilization.
Smart Images

Figure CN112948904B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for determining furniture layout. Background Art
[0002] The whole house soft decoration is based on the given empty apartment and the furniture in the model room, and the furniture is placed in the empty apartment according to the spatial characteristics of the apartment and the geometric size information of the furniture. All these newly placed furniture and the room itself together constitute the whole house soft decoration scene, which can be presented in 3D form. The soft decoration currently seen on the market is mainly designed manually by designers using design tools, and it takes 1 to 2 days to design a set of soft decoration scenes, which greatly restricts the efficiency of soft decoration output. Therefore, how to automatically generate soft decoration layout is one of the main problems that need to be solved in related fields such as VR roaming or scene furniture shopping guides. Summary of the invention
[0003] Embodiments of the present disclosure provide a method, device, electronic device, and computer-readable storage medium for determining a furniture layout.
[0004] In a first aspect, an embodiment of the present disclosure provides a method for determining a furniture layout, comprising:
[0005] Determine multiple candidate locations of the preset furniture combination to be placed in the target room;
[0006] When the preset furniture combination is placed at the candidate position, determine the intersection of the support area of the wall where the preset furniture combination is placed and the area where the preset furniture combination is located; wherein the support area is an area close to the wall in the target room, and the nearest projection points of the points in the support area are all located on the wall;
[0007] A target placement position of the preset furniture combination is determined from multiple candidate positions according to the intersection.
[0008] Furthermore, multiple candidate positions of the preset furniture combination to be placed in the target room are determined, including:
[0009] The center point of the optional placement area of the preset furniture combination is determined as the candidate position.
[0010] Furthermore, when there are multiple pre-set furniture combinations, multiple candidate positions of the pre-set furniture combination to be placed in the target room are determined, including:
[0011] Determine multiple combinations of multiple preset furniture combinations at optional positions in the target room;
[0012] Combinations that cause at least two pre-set furniture combinations to overlap are removed from the multiple combinations, and the remaining combinations are determined as candidate position combinations; wherein the candidate position combination includes candidate positions of the respective pre-set furniture combinations.
[0013] Further, multiple combinations of the plurality of preset furniture combinations at optional positions in the target room are determined, including:
[0014] When at least two of the plurality of preset furniture combinations have a relative position relationship, a plurality of combinations are determined according to the relative position relationship and the optional positions of the plurality of preset furniture combinations in the target room.
[0015] Furthermore, it also includes:
[0016] In a floor plan including a target room, by moving a door and / or a window of the target room from an original position into the room, so that the moved door and / or window extends a preset distance relative to a wall into the target room;
[0017] Determine the closest projection point of the point in the target room;
[0018] The area formed by the points on the wall where the nearest projection point is located in the target room is determined as the support area of the corresponding wall.
[0019] Further, a target placement position of the preset furniture combination is determined from multiple candidate positions according to the intersection, including:
[0020] A target placement position is determined from the candidate positions according to a ratio of a first area of the intersection to a second area of the area where the preset furniture combination is located.
[0021] Furthermore, it also includes:
[0022] Obtain information about furniture to be placed in the target room and preset fixed matching methods;
[0023] The furniture is grouped and matched according to a preset fixed matching method and furniture information to obtain a preset furniture combination.
[0024] In a second aspect, an embodiment of the present disclosure provides a method for determining a furniture layout, comprising:
[0025] Determine multiple candidate locations of the preset furniture combination to be placed in the target room;
[0026] When the preset furniture combination is placed at the candidate position, the fitness between the preset furniture combination and the candidate position is determined according to the support area of the wall where the preset furniture combination is placed close to the candidate position; wherein the fitness is positively correlated with the intersection between the area where the preset furniture combination is placed when it is placed at the candidate position and the support area, and the support area is an area close to the wall inside the target room, and the nearest projection points of the points in the support area are all located on the wall;
[0027] The target placement position of the preset furniture combination is determined from multiple candidate positions according to the fitness.
[0028] Further, the adaptability between the preset furniture combination and the candidate position is determined according to the support area of the wall where the preset furniture combination is placed close to the wall, including:
[0029] Determine the intersection between the support area and the area where the pre-set furniture combination is placed at the candidate position;
[0030] The fitness is determined according to a ratio of a first area of the intersection to a second area of the area where the preset furniture combination is located.
[0031] Further, a target placement position of the preset furniture combination is determined from a plurality of candidate positions according to the fitness, including:
[0032] The candidate position corresponding to the maximum fitness is determined as the target placement position.
[0033] Furthermore, multiple candidate positions of the preset furniture combination to be placed in the target room are determined, including:
[0034] The center point of the optional placement area of the preset furniture combination is determined as the candidate position.
[0035] Furthermore, when there are multiple pre-set furniture combinations, multiple candidate positions of the pre-set furniture combination to be placed in the target room are determined, including:
[0036] Determine multiple combinations of multiple preset furniture combinations at optional positions in the target room;
[0037] Combinations that cause at least two pre-set furniture combinations to overlap are removed from the multiple combinations, and the remaining combinations are determined as candidate position combinations; wherein the candidate position combination includes candidate positions of the respective pre-set furniture combinations.
[0038] Further, multiple combinations of the plurality of preset furniture combinations at optional positions in the target room are determined, including:
[0039] When at least two of the plurality of preset furniture combinations have a relative position relationship, a plurality of combinations are determined according to the relative position relationship and the optional positions of the plurality of preset furniture combinations in the target room.
[0040] Furthermore, it also includes:
[0041] In a floor plan including a target room, by moving a door and / or a window of the target room from an original position into the room, so that the moved door and / or window extends a preset distance relative to a wall into the target room;
[0042] Determine the closest projection point of the point in the target room;
[0043] An area formed by points where the closest projection points are located on the wall in the target room is determined as a support area for placing the preset furniture combination close to the wall.
[0044] Furthermore, it also includes:
[0045] Obtain information about furniture to be placed in the target room and preset fixed matching methods;
[0046] The furniture is grouped and matched according to a preset fixed matching method and furniture information to obtain a preset furniture combination.
[0047] In a third aspect, an embodiment of the present disclosure provides a furniture layout method, comprising:
[0048] Determine a target placement position of the preset furniture combination in a floor plan including the target room; wherein the target placement position is determined using the method of the first aspect and / or the second aspect;
[0049] Obtaining a furniture layout display diagram with a preset furniture combination placed at the target placement position according to the floor plan and the target placement position;
[0050] Output the furniture layout display diagram.
[0051] In a fourth aspect, an embodiment of the present disclosure provides a furniture layout method, comprising:
[0052] Receiving a floor plan of a target room and furniture information from a client; wherein the furniture information includes furniture to be placed in the target room and size information of the furniture;
[0053] Grouping and matching furniture according to preset fixed matching methods and size information of furniture, and obtaining at least one preset furniture combination;
[0054] Determine the target placement position of the preset furniture combination in the floor plan including the target room;
[0055] Obtaining a furniture layout display diagram with a preset furniture combination placed at the target placement position according to the floor plan and the target placement position;
[0056] Return the furniture layout display diagram to the client.
[0057] Further, determining a target placement position of the preset furniture combination in the floor plan including the target room includes:
[0058] The target placement position is determined using the method of the first aspect and / or the second aspect.
[0059] In a fifth aspect, an embodiment of the present disclosure provides a device for determining a furniture layout, comprising:
[0060] A first determination module is configured to determine a plurality of candidate positions of the combination of pre-placed furniture to be placed in the target room;
[0061] The second determination module is configured to determine the intersection of a support area of the wall where the pre-set furniture combination is placed and an area where the pre-set furniture combination is located when the pre-set furniture combination is placed at the candidate position; wherein the support area is an area close to the wall in the target room, and the nearest projection points of the points in the support area are all located on the wall;
[0062] The third determination module is configured to determine a target placement position of the preset furniture combination from multiple candidate positions according to the intersection.
[0063] Furthermore, the first determination module includes:
[0064] The position determination submodule is configured to determine the center point of the optional placement area of the preset furniture combination as the candidate position.
[0065] Furthermore, when there are multiple preset furniture combinations, the first determination module includes:
[0066] A first determination submodule is configured to determine a plurality of combinations formed by a plurality of preset furniture combinations at optional positions in a target room;
[0067] The second determination submodule is configured to remove combinations in which at least two preset furniture combinations are placed overlappingly from the multiple combinations, and determine the remaining combinations as candidate position combinations; wherein the candidate position combination includes candidate positions of each of the multiple preset furniture combinations.
[0068] Furthermore, the first determining submodule includes:
[0069] The third determining submodule is configured to determine a plurality of combinations according to the relative position relationship and the optional positions of the plurality of preset furniture combinations in the target room when at least two of the plurality of preset furniture combinations have a relative position relationship.
[0070] Furthermore, it also includes:
[0071] A first moving module is configured to move a door and / or a window on a wall of the target room from an original position into the room in a floor plan including the target room, so that the moved door and / or window extends a preset distance relative to the wall into the target room;
[0072] a fourth determination module configured to determine a nearest projection point of a point in the target room;
[0073] The fifth determination module is configured to determine an area formed by points on the wall of the target room where the nearest projection point is located as a support area of the corresponding wall.
[0074] Furthermore, the third determination module includes:
[0075] The fourth determination submodule is configured to determine the target placement position from the candidate positions according to the ratio of the first area of the intersection to the second area of the area where the preset furniture combination is located.
[0076] Furthermore, it also includes:
[0077] A first acquisition module is configured to acquire furniture information to be placed in a target room and a preset fixed matching method;
[0078] The first grouping module is configured to group and match furniture according to a preset fixed matching method and furniture information to obtain a preset furniture combination.
[0079] In a sixth aspect, an embodiment of the present disclosure provides a device for determining a furniture layout, including:
[0080] a sixth determination module, configured to determine a plurality of candidate positions of the combination of pre-placed furniture to be placed in the target room;
[0081] A seventh determination module is configured to determine the fitness between the preset furniture combination and the candidate position according to a support area of the wall where the preset furniture combination is placed when the preset furniture combination is placed at the candidate position; wherein the fitness is positively correlated with the intersection between the area where the preset furniture combination is placed when it is placed at the candidate position and the support area, and the support area is an area close to the wall inside the target room, and the nearest projection points of the points in the support area are all located on the wall;
[0082] The eighth determination module is configured to determine a target placement position of the preset furniture combination from a plurality of candidate positions according to the fitness.
[0083] Furthermore, the seventh determination module includes:
[0084] A fifth determination submodule is configured to determine an intersection between the support area and an area where the preset furniture combination is placed at the candidate position;
[0085] The sixth determination submodule is configured to determine the fitness according to the ratio of the first area of the intersection to the second area of the area where the preset furniture combination is located.
[0086] Furthermore, the eighth determination module includes:
[0087] The seventh determination submodule is configured to determine the candidate position corresponding to the maximum fitness as the target placement position.
[0088] Furthermore, the sixth determination module includes:
[0089] The eighth determination submodule is configured to determine the center point of the optional placement area of the preset furniture combination as the candidate position.
[0090] Furthermore, when there are multiple preset furniture combinations, the sixth determination module includes:
[0091] A ninth determination submodule is configured to determine a plurality of combinations formed by the plurality of preset furniture combinations at optional positions in the target room;
[0092] The tenth determination submodule is configured to remove combinations in which at least two pre-set furniture combinations are placed overlappingly from the multiple combinations, and determine the remaining combinations as candidate position combinations; wherein the candidate position combination includes candidate positions of each of the multiple pre-set furniture combinations.
[0093] Furthermore, the ninth determination submodule includes:
[0094] The eleventh determination submodule is configured to determine a plurality of combinations according to the relative position relationship and the optional positions of the plurality of preset furniture combinations in the target room when at least two of the plurality of preset furniture combinations have a relative position relationship.
[0095] Furthermore, it also includes:
[0096] A second moving module is configured to move a door and / or a window of the target room from an original position into the room in a floor plan including the target room, so that the moved door and / or window extends a preset distance relative to a wall into the target room;
[0097] a ninth determination module, configured to determine a nearest projection point of a point in a target room;
[0098] The tenth determination module is configured to determine an area formed by points on the wall of the target room where the nearest projection point is located as a support area for placing a preset furniture combination close to the wall.
[0099] Furthermore, it also includes:
[0100] The second acquisition module is configured to acquire furniture information to be placed in the target room and a preset fixed matching method;
[0101] The second grouping module is configured to group and match the furniture according to a preset fixed matching method and furniture information to obtain a preset furniture combination.
[0102] In a seventh aspect, an embodiment of the present disclosure provides a furniture layout device, comprising:
[0103] an eleventh determination module, configured to determine a target placement position of the preset furniture combination in a floor plan including the target room; wherein the target placement position is determined using the apparatus of the fifth aspect and / or the sixth aspect of claim;
[0104] A third acquisition module is configured to obtain a furniture layout display diagram with a preset furniture combination placed at the target placement position according to the floor plan and the target placement position;
[0105] The output module is configured to output a furniture layout display diagram.
[0106] In an eighth aspect, an embodiment of the present disclosure provides a furniture layout device, comprising:
[0107] A receiving module is configured to receive a floor plan of a target room and furniture information from a client; wherein the furniture information includes furniture to be placed in the target room and size information of the furniture;
[0108] A third grouping module is configured to group and match the furniture according to a preset fixed matching method and size information of the furniture, and obtain at least one preset furniture combination;
[0109] A twelfth determination module is configured to determine a target placement position of the preset furniture combination in the floor plan including the target room;
[0110] A fourth acquisition module is configured to obtain a furniture layout display diagram with a preset furniture combination placed at the target placement position according to the floor plan and the target placement position;
[0111] The return module is configured to return the furniture layout display diagram to the client.
[0112] Furthermore, the twelfth determination module includes:
[0113] The twelfth determination submodule is configured to determine the target placement position using the device of the fifth aspect and / or the sixth aspect.
[0114] The functions can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
[0115] In one possible design, the structure of the furniture layout determination device includes a memory and a processor, the memory is used to store one or more computer instructions that support the furniture layout determination device to perform any of the above methods, and the processor is configured to execute the computer instructions stored in the memory. The furniture layout determination device may also include a communication interface for the furniture layout determination device to communicate with other devices or communication networks.
[0116] In a ninth aspect, an embodiment of the present disclosure provides an electronic device, comprising a memory and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement any of the above methods.
[0117] In a tenth aspect, an embodiment of the present disclosure provides a computer-readable storage medium for storing computer instructions used by any of the above-mentioned devices, which includes computer instructions involved in executing any of the above-mentioned methods.
[0118] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0119] When determining the furniture layout, the disclosed embodiment determines multiple candidate positions of the preset furniture combination in the target room, and then determines the intersection of the support area of the wall where the preset furniture combination is placed and the area where the preset furniture combination is located when the preset furniture combination is placed at the candidate position, and selects the target placement position from the multiple candidate positions based on the intersection to place the preset furniture combination; wherein the support area of the wall where the preset furniture combination is placed is the area close to the wall in the target room, and the support area includes the area formed by the points of the nearest projection points on the target wall. In this way, the area formed by the nearest projection points of the points on the ground in the target room on the wall can be determined as the support area of the wall, and then the optimal position that makes the preset furniture combination as close to the wall as possible and does not block facilities other than the wall, such as windows and doors, can be selected from the multiple candidate positions based on the intersection of the support area and the area where the preset furniture combination is placed after being placed at the candidate position.
[0120] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0121] Other features, objectives and advantages of the present disclosure will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:
[0122] Figure 1 A flowchart showing a method for determining furniture layout according to an embodiment of the present disclosure is shown;
[0123] Figure 2An empty floor plan vector diagram of a model house according to an embodiment of the present disclosure is shown;
[0124] Figure 3 Show according to Figure 1 A schematic diagram of determining the nearest projection point in the illustrated embodiment;
[0125] Figure 4 Show according to Figure 1 Flow chart of step S101 of the illustrated embodiment;
[0126] Figure 5 A flowchart of determining a support area of a wall according to an embodiment of the present disclosure is shown;
[0127] Figure 6(a) and 6(b) They are shown respectively Figure 2 The vector floor plan shows the original effect of the living room and dining room and the effect after the door is moved a certain distance into the room;
[0128] Figure 7 A schematic diagram showing the support areas of the walls and doors in the target room shown in FIG6( b );
[0129] Figure 8 Show according to Figure 1 A flow chart of a method for determining a preset furniture assembly part in the illustrated embodiment;
[0130] Fig. 9 A flowchart showing a method for determining furniture layout according to another embodiment of the present disclosure is shown;
[0131] Fig.10 Show according to Fig. 9 A flowchart of step S902 of the illustrated embodiment;
[0132] Fig.11 Show according to Fig. 9 Flow chart of step S901 of the illustrated embodiment;
[0133] Fig.12 Show according to Fig. 9 A flow chart of determining a support area of a wall according to an embodiment of the present invention;
[0134] Fig.13 Show according to Fig. 9 A flow chart of a method for determining a preset furniture assembly part in the illustrated embodiment;
[0135] Fig.14 A flowchart showing a furniture layout method according to an embodiment of the present disclosure is shown;
[0136] Fig.15 A flowchart showing a furniture layout method according to another embodiment of the present disclosure;
[0137] Fig.16 A schematic diagram showing interaction between a user and a furniture layout system according to an embodiment of the present disclosure is shown;
[0138] Fig.17 A schematic diagram showing an application scenario of a furniture layout system according to an embodiment of the present disclosure is shown;
[0139] Fig.18 According to the embodiment of the present disclosure, Figure 2 The floor plan shown has a three-dimensional effect display of the furniture placed;
[0140] Fig.19 A structural block diagram of a device for determining furniture layout according to an embodiment of the present disclosure is shown;
[0141] Fig. 20 A structural block diagram of a device for determining furniture layout according to another embodiment of the present disclosure is shown;
[0142] Fig.21 A structural block diagram of a furniture layout device according to an embodiment of the present disclosure is shown;
[0143] Fig. 22 A structural block diagram of a furniture layout device according to another embodiment of the present disclosure is shown;
[0144] Fig.23 It is a structural schematic diagram of an electronic device suitable for implementing a furniture layout determination method and / or a furniture layout method according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0145] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.
[0146] In the present disclosure, it should be understood that terms such as "include" or "have" are intended to indicate the presence of features, numbers, steps, behaviors, components, parts, or a combination thereof disclosed in the present specification, and are not intended to exclude the possibility that one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof exist or are added.
[0147] It should also be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0148] The whole house soft decoration process includes placing each piece of furniture in the empty apartment type and the furniture in the model room of a given room according to the spatial characteristics of the apartment type and the geometric size information of the furniture. In the related technology, the user can use the function provided by the client to automatically place the main furniture to be placed in the given room in the corresponding position in the empty apartment type diagram in a similar way to "one-click", and then obtain the soft decoration plan for the given room. However, due to the unreasonable placement of furniture in the soft decoration plan obtained in this way, furniture such as sofas, televisions, and dining tables block doors, windows, and roads, making the soft decoration plan obtained by the related technology unable to be applied to the actual soft decoration process.
[0149] Therefore, the disclosed embodiment proposes a method for determining furniture layout. When performing furniture layout, the method determines multiple candidate positions of the preset furniture combination in the target room, and then determines the intersection of the support area of the wall where the preset furniture combination is placed and the area where the preset furniture combination is located when the preset furniture combination is placed at the candidate position, and selects the target placement position from the multiple candidate positions based on the intersection to place the preset furniture combination; wherein the support area of the wall where the preset furniture combination is placed is the area on the ground inside the target room close to the wall, and the support area includes the area formed by the point of the nearest projection point on the target wall. In this way, the support area of the wall where the preset furniture combination is placed close to can be determined by the nearest projection point of the point on the ground in the target room on the wall, and the optimal position that makes the preset furniture combination as close to the wall as possible and does not block facilities other than the wall, such as windows and doors, can be selected from multiple candidate positions based on the intersection of the support area and the area where the preset furniture combination is located.
[0150] Figure 1 FIG. 1 is a flowchart of a method for determining furniture layout according to an embodiment of the present disclosure. Figure 1 As shown, the furniture layout determination method includes the following steps:
[0151] In step S101, multiple candidate positions of the preset furniture combination to be placed in the target room are determined;
[0152] In step S102, when the preset furniture combination is placed at the candidate position, the intersection of the support area of the wall where the preset furniture combination is placed and the area where the preset furniture combination is located is determined; wherein the support area is an area close to the wall inside the target room, and the nearest projection points of the points in the support area are all located on the corresponding wall;
[0153] In step S103, a target placement position of the preset furniture combination is determined from a plurality of candidate positions according to the intersection.
[0154] In this embodiment, the furniture layout determination method can be executed on the server side of the furniture layout system, and the furniture layout system can perform furniture layout for the model room to be soft decorated. The furniture to be placed can be automatically matched by the system from the existing furniture list according to the characteristics of the model room, etc., or can be configured by the user according to his own needs, such as selecting the furniture type through the interface provided by the client of the furniture layout system, and inputting the furniture size, etc. The specific configuration can be based on the actual situation, that is, the specific scenario of the room soft decoration, and is not limited here.
[0155] In the process of determining the furniture layout of this embodiment, what the user inputs to the server of the furniture layout system through the client may be the vector floor plan of the model house, that is, in this embodiment, when performing furniture layout, the floor plan of the model house required is a two-dimensional vector diagram with geometric features that can be recognized by computer software, and the computer software can recognize the geometric features in the model house through the vector floor plan, such as shape, area, length, etc. The vector floor plan may include information such as the room outline, doors, windows, etc. of each room in the model house. The room outline is represented by a polygon composed of points connected end to end, and the door and window are composed of four points connected end to end. The display forms of the wall, door, and window in the vector floor plan are similar, and are all composed of points and lines. Among them, the room outline corresponds to the wall of the room, and the door and window can be set up against the wall.
[0156] Figure 2 FIG. 1 shows an empty floor plan vector diagram of a model house according to an embodiment of the present disclosure. Figure 2 As shown, the thick lines represent the polygonal outlines of the rooms in the model house, the thin lines represent the outlines of the doors, and the dotted lines represent the outlines of the windows.
[0157] The empty apartment of the model house can be represented as follows:
[0158]
[0159] Among them, H represents an empty apartment, which includes n rooms, R i represents the i-th room, i=1,…,n represents. D ij Indicates room R i The jth gate in W ik Indicates room R i The k-th window in .
[0160] The preset furniture combination may include one or a group of furniture fixedly placed in the same area of a room, such as a set of furniture consisting of a sofa and a coffee table. When configuring the preset furniture combination to be placed in the target room, the user may input information of each piece of furniture to be placed in the room, and the furniture information includes but is not limited to the furniture name, category, size information, etc.
[0161] The server side of the furniture layout system can divide the furniture information input by the user into multiple preset furniture combinations according to the functions of the furniture, and determine the shape, size and other area information of the area where the preset furniture combination is placed for each preset furniture combination, for example, the area is a rectangle, and the size includes length and width, etc.
[0162] For example, for the furniture in the living room and dining room, it can be divided into three pre-set furniture combinations of sofa, TV and dining table according to different functions such as discussion, audio-visual, and dining. The sofa combination may include but is not limited to double sofas, chaise longues, coffee tables, corner tables, side tables, and furniture decorations placed on these furniture; the TV combination may include but is not limited to TVs, TV cabinets, etc.; the dining table combination may include but is not limited to dining tables, dining chairs, etc. For the furniture in the bedroom, it can be divided into three pre-set furniture combinations of bed, TV, and wardrobe. The bed combination may include but is not limited to double beds, bedside tables and decorations; the TV combination may include but is not limited to TVs, TV cabinets and decorations; the wardrobe combination includes wardrobes and furniture in wardrobes, etc. It is understandable that the pre-set furniture combination may also include only one piece of furniture, such as a sideboard, shoe cabinet, green plants, murals, etc.
[0163] When determining the target placement position of the preset furniture combination in the target room, for the vector plan floor plan including the target room, the candidate positions where the preset furniture combination can be placed can be determined first, and then the most suitable target placement position can be selected from the candidate positions. The candidate position of the preset furniture combination can be the candidate position of a certain point on the preset furniture combination, or it can be the candidate position area occupied by the entire preset furniture combination. The target placement position of the preset furniture combination is the position that is finally selected from the candidate positions and is most suitable for placing the preset furniture combination. When the preset furniture combination is placed at the target placement position, it can be as close to the wall as possible and will not block the facilities in the room other than the wall, such as windows and doors.
[0164] In an optional implementation of the present disclosure, for convenience of calculation, the candidate position may be a candidate position of the regional center point of the preset furniture combination. The regional center point may be the location where the center of the preset furniture combination to be placed is located. In some embodiments, the regional center point may be the center point of the circumscribed rectangular area surrounding each piece of furniture in the preset furniture combination. The candidate position of the regional center point may be any position in the target room, or a position in a pre-divided partial area. For example, for the living room and dining room, the living room area and the dining room area may be pre-divided, the candidate position of the regional center point of the sofa combination is selected in the object area, and the candidate position of the regional center point of the dining table combination is selected in the dining room area. The specific setting may be based on actual needs and is not limited here.
[0165] The wall in the target room can be the part after removing the part with doors and windows in the target room outline in the vector plan. Each wall in the target room has a corresponding support area. The disclosed embodiment divides the ground in the target room according to the walls, doors, windows, etc., so that the walls, doors, windows, etc. correspond to a part of the support area of the ground inside the target room. The support area of the wall of the target room is the area located in the target room and close to the wall, and the support area of the wall can be determined by the nearest projection point of the point in the target room on the wall. The support area of a wall in the target room includes the area formed by the nearest projection point of the point in the target room on the wall, that is, the nearest projection points of all points in the support area of a wall are on the wall, and all points of the nearest projection point on the wall constitute the support area of the wall.
[0166] The closest projection point of a point in the target room on the wall can be obtained by projecting the point in the target room onto the surrounding walls in the vector plane floor plan, and the point with the shortest projection distance is the closest projection point.
[0167] like Figure 3 As shown, if point A is a point in the target room, and straight lines ab, bc, cd and da represent the four walls in the target room respectively, then by vertically projecting point A onto the four walls, it can be obtained that the projection distance from point A to the wall corresponding to ad is the shortest, that is, the projection point A1 from point A to the wall corresponding to ad is the closest projection point.
[0168] The support area of each wall in the target room can be predetermined according to the above method.
[0169] When performing furniture layout, for a vector floor plan including a target room, the intersection between the support area of the wall where the preset furniture combination is placed and the area where the preset furniture combination is placed at this time can be determined by setting the center point of the area of the preset furniture combination at the current candidate position. The selection criterion for the target placement position in the disclosed embodiment is to place the preset furniture combination as close to the wall as possible without blocking the facilities in the room such as doors and windows. Since the support area of the wall is determined by whether the nearest projection point of the point inside the target room is on the wall, the size of the intersection between the above support area and the area where the preset furniture combination is located can measure the degree to which the preset furniture combination is close to the wall when it is at the candidate position without blocking the facilities in the room such as doors and windows. The larger the intersection, the closer the candidate position is to the above selection criterion, that is, the preset furniture combination is closer to the wall when it is placed at the candidate position without blocking the facilities in the room such as doors and windows.
[0170] In this embodiment, after the pre-set furniture combination is placed at the candidate position, the wall where the pre-set furniture combination is placed close to may be the wall with the largest intersection between the corresponding support area and the area where the pre-set furniture combination is located. That is, the intersection between the support areas of each wall in the target room and the area where the pre-set furniture combination is located may be first determined, and the wall with the largest intersection may be used as the wall where the pre-set furniture combination is placed close to.
[0171] After determining the corresponding above intersection according to multiple candidate positions, the target placement position can be determined according to the intersection, so that the preset furniture combination is placed at the target placement position in the final furniture layout plan. The most reasonable target placement position is to make the preset furniture combination as close to the wall as possible, and after the preset furniture combination is placed at the target placement position, it will not block the doors, windows and other facilities in the target room, and will not interfere with the placement of other preset furniture combinations. In order to achieve this goal, the embodiment of the present disclosure selects a target placement position that meets the above goals from multiple candidate positions through the intersection between the area where the preset furniture combination is located and the supporting area of the wall it relies on.
[0172] Since the support area of the inner wall of the target room is usually an area formed by expanding outward from the wall, the larger the intersection between the support area and the area where the pre-set furniture combination is located, the closer the area where the pre-set furniture combination is located is to the wall corresponding to the support area. Since the pre-set furniture combination is usually placed against the wall, the area with the largest intersection (that is, the candidate position with the largest intersection is determined as the target placement position) can be selected in this way to place the pre-set furniture combination. In this way, the pre-set furniture combination can be placed at the position closest to one of the walls, and the probability of the pre-set furniture combination blocking the window or door is small (because the case with the largest intersection is usually that the parts close to the pre-set furniture combination are all walls, and there are no other facilities such as doors and windows).
[0173] When determining the furniture layout, the disclosed embodiment determines multiple candidate positions of the preset furniture combination in the target room, and then determines the intersection of the support area of the wall where the preset furniture combination is placed and the area where the preset furniture combination is located when the preset furniture combination is placed at the candidate position, and selects the target placement position from the multiple candidate positions based on the intersection to place the preset furniture combination; wherein the support area of the wall where the preset furniture combination is placed is the area close to the wall in the target room, and the support area includes the area formed by the points of the nearest projection points on the target wall. In this way, the area formed by the nearest projection points of the points on the ground in the target room on the wall can be determined as the support area of the wall, and then the optimal position that makes the preset furniture combination as close to the wall as possible and does not block facilities other than the wall, such as windows and doors, can be selected from the multiple candidate positions based on the intersection of the support area and the area where the preset furniture combination is placed after being placed at the candidate position.
[0174] In an optional implementation of this embodiment, step S101, i.e., the step of determining a plurality of candidate positions of the combination of pre-placed furniture to be placed in the target room, further includes the following steps:
[0175] The center point of the optional placement area of the preset furniture combination is determined as the candidate position.
[0176] In this optional implementation, for the convenience of calculation, the candidate position may be a candidate position of the regional center point of the preset furniture combination. The regional center point may be the location of the regional center of the optional placement area of the preset furniture combination. In some embodiments, the regional center point may be the center point of the circumscribed rectangular area surrounding each piece of furniture in the preset furniture combination. The candidate position of the regional center point may be any position in the target room, or a position in a pre-divided partial area. For example, for the living room and dining room, the living room area and the dining room area may be pre-divided, the candidate position of the regional center point of the sofa combination is selected in the object area, and the candidate position of the regional center point of the dining table combination is selected in the dining room area. The specific setting may be based on actual needs and is not limited here.
[0177] In an optional implementation of this embodiment, Figure 4 As shown, when there are multiple preset furniture combinations, step S101, i.e., the step of determining multiple candidate positions of the preset furniture combination to be placed in the target room, further includes the following steps:
[0178] In step S401, multiple combinations formed by multiple preset furniture combinations at optional positions in the target room are determined;
[0179] In step S402, combinations in which at least two preset furniture combinations are placed overlapping are removed from the plurality of combinations, and the remaining combinations are determined as candidate position combinations; wherein the candidate position combination includes candidate positions of the plurality of preset furniture combinations.
[0180] In this optional implementation, when multiple preset furniture combinations need to be arranged in the target room, for example, a sofa combination, a TV combination, and a dining table combination need to be arranged in the living room and dining room, all points in the target room can be traversed first, and each traversal determines a candidate position of a regional center point for each preset furniture combination. These candidate positions constitute a combination, and each combination includes candidate positions of multiple preset furniture combinations, and these candidate positions are different in each combination. In this way, all possible combinations of regional center points of multiple preset furniture combinations in the target room can be traversed quickly and accurately.
[0181] Since multiple preset furniture combinations cannot overlap when they are actually placed, combinations that will cause at least two preset furniture combinations to overlap can be removed from the obtained multiple combinations, that is, after the regional center points of multiple preset furniture combinations are set at the corresponding candidate positions in each combination, if the areas where two preset furniture combinations are located overlap, this combination will be removed from the multiple combinations. In this way, the remaining combinations can be determined as candidate position combinations, and each candidate position combination includes candidate positions corresponding to multiple preset furniture combinations, that is, each candidate position combination corresponds to a position placement method of multiple preset furniture combinations.
[0182] In an optional implementation of this embodiment, step S401, i.e., the step of determining multiple combinations of multiple preset furniture combinations at optional positions in the target room, further includes the following steps:
[0183] When at least two of the plurality of preset furniture combinations have a relative position relationship, a plurality of combinations are determined according to the relative position relationship and the optional positions of the plurality of preset furniture combinations in the target room.
[0184] In this optional implementation, the relative position relationship between two preset furniture combinations can be pre-set according to the functions of the preset furniture combinations. For example, the TV combination and the sofa combination have a relative position relationship, that is, the TV combination needs to be placed opposite the sofa combination. Therefore, when determining the candidate position combination corresponding to the regional center points of multiple preset furniture combinations, it can also be considered whether there is a relative position relationship between the multiple preset furniture combinations to be placed in the target room.
[0185] The optional position of the regional center point of each preset furniture combination in the target room can be any point in the target room, but in each placement scenario, multiple preset furniture combinations cannot overlap. In addition, when there is a relative position relationship between at least two preset furniture combinations, in the process of traversing all points in the target room to determine the combination formed by the optional positions of the regional center points of each preset furniture combination, the candidate position of the regional center point of one of the at least two preset furniture combinations can be determined first, and then the candidate position of the regional center point of the other one can be determined based on the relative position relationship and the optional positions in the target room. In this way, combinations that do not meet the relative position relationship can be excluded, so that the final combination can be more reasonable.
[0186] In an optional implementation of this embodiment, Figure 5 As shown, the method further comprises the following steps:
[0187] In step S501, in a floor plan including a target room, a door and / or a window of the target room is moved from an original position into the room so that the moved door and / or window extends a preset distance relative to a wall into the target room;
[0188] In step S502, the nearest projection point of the point in the target room is determined;
[0189] In step S503, an area formed by points on the wall of the target room where the nearest projection point is located is determined as a support area of the corresponding wall.
[0190] In this optional implementation, the doors and windows of each room in the input vector floor plan of the empty apartment can be preprocessed. In the preprocessing process, the doors and windows on the four walls of the target room can be moved a certain distance into the room so that the moved doors and windows protrude relative to the wall. Figure 2 The original effect of the living room and dining room in the vector floor plan shown in the figure and the effect after the door is moved a certain distance into the room. Compared with the original target room, the outlines of the door and window of the target room after preprocessing protrude into the target room.
[0191] For the target room after the above preprocessing, the nearest projection point of each point in the target room can be determined. It can be understood that the projection points of each point in the target room may be on the wall, on the door, or on the window. After determining the nearest projection point of each point in the target room, the support area of each wall in the target room can be determined based on the nearest projection point. For each wall in the target room, the area formed by the nearest projection point on the wall is the support area of the wall. Figure 7 The support areas of the walls and doors in the target room shown in FIG6( b ) are shown, wherein the gray area is the support area corresponding to the wall, and the white area is the support area corresponding to the door.
[0192] from Figure 7 It can be seen that after the preprocessing, since the door protrudes into the room, the support area of the wall is in a regular trapezoidal shape with the side where the wall is located as the long side, and the support area of the door is in an inverted trapezoidal shape with the side where the door is located as the short side. Therefore, it can be seen that after the above preprocessing, the closer the pre-set furniture combination is to the wall, the greater the intersection of its support area with the wall; and the closer the pre-set furniture combination is to the door or window, the smaller the intersection of its support area with the wall. Therefore, in this way, the probability of the pre-set furniture combination blocking the door or window can be further reduced.
[0193] In an optional implementation of this embodiment, step S103, i.e., the step of determining the target placement position of the preset furniture combination from multiple candidate positions according to the intersection, further includes the following steps:
[0194] A target placement position is determined from the candidate positions according to a ratio of a first area of the intersection to a second area of the area where the preset furniture combination is located.
[0195] In this optional implementation, during the furniture layout process, the closer the preset furniture combination is to the wall and the farther it is from the door and window, the more it meets the requirements of reasonable furniture layout. Since there are many candidate positions for the preset furniture combination in the target room, and the sizes of the walls in a room are different, the target placement position can be determined by the ratio of the first area of the intersection between the preset furniture combination and the support area where the candidate position is located to the second area occupied by the preset furniture combination.
[0196] In some embodiments, the candidate position with the largest ratio can be selected as the target placement position of the preset furniture combination. In the case of multiple preset furniture combinations, the target placement positions of one or more preset furniture combinations that do not have a relative position relationship and one of the multiple preset furniture combinations that have a relative position relationship can be determined based on the ratio, and then the target placement positions of other preset furniture combinations can be determined based on the relative position relationship. In this way, the preset furniture combination at the final target placement position can be as close to the wall as possible without blocking the facilities in the room such as doors and windows.
[0197] In an optional implementation of this embodiment, Figure 8 As shown, the method further comprises the following steps:
[0198] In step S801, information about furniture to be placed in a target room and a preset fixed matching method are obtained;
[0199] In step S802, the furniture is grouped and matched according to a preset fixed matching method and furniture information to obtain a preset furniture combination.
[0200] In this optional implementation, the user can input multiple furniture information to be placed in the target room. The furniture information is not limited to furniture identification, subdivision category, size information, etc. The preset fixed matching method may include but is not limited to multiple furniture that need to be fixedly matched together for placement, the relative positions between the multiple furniture, the spacing between the multiple furniture, etc. For example, the sofa and the coffee table need to be placed in the same area. The preset fixed matching method can be specified by the user or pre-set in the furniture layout system. It can be determined according to the actual situation and is not limited here. In some embodiments, the preset fixed matching method can also consider the layout of loT (internet of things) devices. The layout of loT devices can be considered from the functions of different loTs, and then the principle of selecting the best location for placing loT devices is pre-set. For example, a wifi router is suitable for being placed in a relatively central position in the room so that the wireless routing range of the wifi router can cover every corner of the room; the smart speaker is suitable for being placed close to the user's leisure location. For example, since the TV cabinet and the sofa are usually placed together as a preset fixed furniture combination, the smart speaker can be placed on the TV cabinet in the living room, so that the user can interact with the smart speaker more conveniently.
[0201] After obtaining the furniture information and the preset fixed matching method, the server side of the furniture layout system can group and match the furniture to be placed in the target room. For example, the sofas and coffee tables in the living and dining room can be grouped together, the TV and TV cabinet can be grouped together, and the dining table and dining chairs can be grouped together. In addition, the preset furniture combination can be finally matched according to the relative position and spacing between the furniture specified in the preset fixed matching method. In this way, the preset furniture combination can be obtained according to the preset fixed matching method, and then the target placement position can be determined by the preset furniture combination as a unit, which can improve the efficiency of furniture layout and improve the rationality of furniture layout.
[0202] Fig. 9 FIG. 1 is a flowchart of a method for determining furniture layout according to another embodiment of the present disclosure. Fig. 9 As shown, the furniture layout determination method includes the following steps:
[0203] In step S901, multiple candidate positions of the preset furniture combination to be placed in the target room are determined;
[0204] In step S902, when the pre-set furniture combination is placed at the candidate position, the fitness between the pre-set furniture combination and the candidate position is determined according to the support area of the wall where the pre-set furniture combination is placed; wherein the fitness is positively correlated with the intersection between the area where the pre-set furniture combination is placed when it is placed at the candidate position and the support area, and the support area is an area inside the target room close to the wall, and the nearest projection points of the points in the support area are all located on the wall;
[0205] In step S903, a target placement position of the preset furniture combination is determined from the plurality of candidate positions according to the fitness.
[0206] In this embodiment, the furniture layout determination method can be executed on the server side of the furniture layout system, and the furniture layout system can perform furniture layout for the model room to be soft decorated. The furniture to be placed can be automatically matched by the system from the existing furniture list according to the characteristics of the model room, etc., or can be configured by the user according to his own needs, such as selecting the furniture type through the interface provided by the client of the furniture layout system, and inputting the furniture size, etc. The specific configuration can be based on the actual situation, that is, the specific scenario of the room soft decoration, and is not limited here.
[0207] In the process of determining the furniture layout of this embodiment, the user may input the vector floor plan of the model house to the server of the furniture layout system through the client, that is, in this embodiment, when performing furniture layout, the vector floor plan of the model house required is a two-dimensional vector diagram with geometric features that can be recognized by computer software, and the computer software can recognize the geometric features in the model house through the vector floor plan, such as shape, area, length, etc. The vector floor plan may include information such as the room outline, doors, windows, etc. of each room in the model house. The room outline is represented by a polygon composed of points connected end to end, and the door and window are composed of four points connected end to end. The display forms of the wall, door, and window in the vector floor plan are similar, and are all composed of points and lines. Among them, the room outline corresponds to the wall of the room, and the door and window can be set up against the wall.
[0208] The preset furniture combination may include one or a group of furniture fixedly placed in the same area of a room, such as a set of furniture consisting of a sofa and a coffee table. When configuring the preset furniture combination to be placed in the target room, the user may input information of each piece of furniture to be placed in the room, and the furniture information includes but is not limited to the furniture name, category, size information, etc.
[0209] The server side of the furniture layout system can divide the furniture information input by the user into multiple preset furniture combinations according to the functions of the furniture, and determine the shape, size and other area information of the area where the preset furniture combination is placed for each preset furniture combination, for example, the area is a rectangle, and the size includes length and width, etc.
[0210] For example, for the furniture in the living room and dining room, it can be divided into three pre-set furniture combinations of sofa, TV and dining table according to different functions such as discussion, audio-visual, and dining. The sofa combination may include but is not limited to double sofas, chaise longues, coffee tables, corner tables, side tables, and furniture decorations placed on these furniture; the TV combination may include but is not limited to TVs, TV cabinets, etc.; the dining table combination may include but is not limited to dining tables, dining chairs, etc. For the furniture in the bedroom, it can be divided into three pre-set furniture combinations of bed, TV, and wardrobe. The bed combination may include but is not limited to double beds, bedside tables and decorations; the TV combination may include but is not limited to TVs, TV cabinets and decorations; the wardrobe combination includes wardrobes and furniture in wardrobes, etc. It is understandable that the pre-set furniture combination may also include only one piece of furniture, such as a sideboard, shoe cabinet, green plants, murals, etc.
[0211] When determining the target placement position of the preset furniture combination in the target room, for the vector plan floor plan including the target room, the candidate positions where the preset furniture combination can be placed can be determined first, and then the most suitable target placement position can be selected from the candidate positions. The candidate position of the preset furniture combination can be the candidate position of a certain point on the preset furniture combination, or it can be the candidate position area occupied by the entire preset furniture combination. The target placement position of the preset furniture combination is the position that is finally selected from the candidate positions and is most suitable for placing the preset furniture combination. When the preset furniture combination is placed at the target placement position, it can be as close to the wall as possible and will not block the facilities in the room other than the wall, such as windows and doors.
[0212] In an optional implementation of the present disclosure, for convenience of calculation, the candidate position may be a candidate position of the regional center point of the preset furniture combination. The regional center point may be the location where the center of the preset furniture combination to be placed is located. In some embodiments, the regional center point may be the center point of the circumscribed rectangular area surrounding each piece of furniture in the preset furniture combination. The candidate position of the regional center point may be any position in the target room, or a position in a pre-divided partial area. For example, for the living room and dining room, the living room area and the dining room area may be pre-divided, the candidate position of the regional center point of the sofa combination is selected in the object area, and the candidate position of the regional center point of the dining table combination is selected in the dining room area. The specific setting may be based on actual needs and is not limited here.
[0213] The wall in the target room can be the part after removing the part with doors and windows in the room outline in the vector plan. Each wall in the target room has a corresponding support area. The disclosed embodiment divides the ground in the target room according to the walls, doors, windows, etc., so that the walls, doors, windows, etc. correspond to a part of the support area of the ground inside the target room. The support area of the wall of the target room is the area located in the target room and close to the wall, and the support area of the wall can be determined by the nearest projection point of the point in the target room on the wall. The support area of a wall in the target room includes the area formed by the nearest projection point of the point in the target room on the wall, that is, the nearest projection points of all points in the support area of a wall are on the wall, and all points of the nearest projection point on the wall constitute the support area of the wall.
[0214] The closest projection point of a point in the target room on the wall can be obtained by projecting the point in the target room onto the surrounding walls in the vector plane floor plan, and the point with the shortest projection distance is the closest projection point.
[0215] The support area of each wall in the target room can be predetermined according to the above method.
[0216] When performing furniture layout, for a vector plan floor plan including a target room, the preset furniture combination can be placed at the candidate position by setting the regional center point of the preset furniture combination at the current candidate position. After the preset furniture combination is placed at the candidate position, the fitness between the preset furniture combination and the candidate position can be determined by the support area of the wall inside the target room. The fitness can be understood as a measure of the degree of suitability of the preset furniture combination when placed at the candidate position. The selection criterion for the target placement position in the disclosed embodiment is to place the preset furniture combination as close to the wall as possible without blocking the facilities in the room such as doors and windows. Therefore, since the support area of the wall is determined by whether the nearest projection point of the point inside the target room is on the wall, the fitness can also be understood as a comprehensive indicator of the degree to which the preset furniture combination blocks the facilities in the room such as doors and windows and is close to the wall when it is at the candidate position. The larger the fitness, the closer the candidate position is to the above selection criterion, that is, the preset furniture combination is closer to the wall when it is placed at the candidate position without blocking the facilities in the room such as doors and windows.
[0217] In this embodiment, after the pre-set furniture combination is placed at the candidate position, the wall where the pre-set furniture combination is placed close to may be the wall with the largest intersection between the corresponding support area and the area where the pre-set furniture combination is located. That is, the intersection between the support areas of each wall in the target room and the area where the pre-set furniture combination is located may be first determined, and the wall with the largest intersection may be used as the wall where the pre-set furniture combination is placed close to.
[0218] After determining the above fitness corresponding to the preset furniture combination according to multiple candidate positions, the target placement position can be determined according to the fitness, so that the preset furniture combination is placed at the target placement position in the final furniture layout plan. The most reasonable target placement position is to make the preset furniture combination as close to the wall as possible, and after the preset furniture combination is placed at the target placement position, it will not block the doors, windows and other facilities in the target room, and will not interfere with the placement of other preset furniture combinations. In order to achieve this goal, the embodiment of the present disclosure selects a target placement position that meets the above goals from multiple candidate positions through the fitness between the area where the preset furniture combination is located and the candidate position.
[0219] When determining the furniture layout, the disclosed embodiment determines multiple candidate positions of the preset furniture combination in the target room, and then when determining that the preset furniture combination is placed at the candidate position, the fitness between the preset furniture combination and the candidate position is determined according to the support area of the wall where the preset furniture combination is placed close to, and the target placement position is selected from the multiple candidate positions according to the fitness, for placing the preset furniture combination; wherein the support area of the wall where the preset furniture combination is placed close to is the area close to the wall in the target room, and the support area includes the area formed by the point of the nearest projection point on the target wall. In this way, the fitness between the preset furniture combination and the candidate position can be determined by the support area of the wall determined by the nearest projection point of the point on the ground in the target room on the wall, so that the target placement position that makes the preset furniture combination close to the wall to the greatest extent and does not block facilities other than the wall, such as windows and doors, can be selected from the multiple candidate positions according to the fitness.
[0220] In an optional implementation of this embodiment, Fig.10 As shown, step S902, i.e., the step of determining the adaptability between the preset furniture combination and the candidate position according to the support area of the wall where the preset furniture combination is placed close to, further includes the following steps:
[0221] In step S1001, the intersection between the support area and the area where the preset furniture combination is placed at the candidate position is determined;
[0222] In step S1002, the fitness is determined according to the ratio of the first area of the intersection to the second area of the area where the preset furniture combination is located.
[0223] In this optional implementation, the fitness between the preset furniture combination and the candidate position after being placed at the candidate position is positively correlated with the intersection between the area where the preset furniture combination is located and the support area of the wall to which the preset furniture combination is placed. Since the support area of the wall is determined by whether the nearest projection point of the point in the target room is on the wall, the area of the support area of the wall is related to the area of the wall, so the fitness can be determined by the ratio of the first area of the intersection to the second area of the area where the preset furniture combination is located. The larger the ratio, the greater the fitness, and the candidate position corresponding to the fitness is more likely to become the target placement position.
[0224] In some embodiments, the candidate position with the largest ratio can be selected as the target placement position of the preset furniture combination. In the case of multiple preset furniture combinations, the target placement positions of one or more preset furniture combinations that do not have a relative position relationship and one of the multiple preset furniture combinations that have a relative position relationship can be determined based on the ratio, and then the target placement positions of other preset furniture combinations can be determined based on the relative position relationship. In this way, the preset furniture combination at the final target placement position can be as close to the wall as possible without blocking the facilities in the room such as doors and windows.
[0225] In an optional implementation of this embodiment, the step of determining the target placement position of the preset furniture combination from multiple candidate positions according to the fitness further includes the following steps:
[0226] The candidate position corresponding to the maximum fitness is determined as the target placement position.
[0227] In this optional implementation, since the support area of the wall is determined by whether the nearest projection point of the point inside the target room is on the wall, and the fitness between the preset furniture combination and the candidate position is determined by the support area of the wall where the preset furniture combination is placed close to, the fitness can be understood as a comprehensive indicator that characterizes the degree to which the preset furniture combination blocks the facilities in the room such as doors and windows and is close to the wall when it is at the candidate position. The larger the fitness, the closer the candidate position is to the above selection criteria, that is, the preset furniture combination is closer to the wall without blocking the facilities in the room such as doors and windows when it is placed at the candidate position. Therefore, by determining the candidate position corresponding to the maximum fitness as the target placement position, and after the preset furniture combination is placed at the target placement position, the preset furniture combination can be as close to the wall as possible without blocking the facilities such as doors and windows. This method can maximize the rationality of the placement of the preset furniture combination.
[0228] In an optional implementation of this embodiment, step S901, i.e., the step of determining multiple candidate positions of the combination of pre-placed furniture to be placed in the target room, further includes the following steps:
[0229] The center point of the optional placement area of the preset furniture combination is determined as the candidate position.
[0230] In this optional implementation, for the convenience of calculation, the candidate position may be a candidate position of the regional center point of the preset furniture combination. The regional center point may be the location of the regional center of the optional placement area of the preset furniture combination. In some embodiments, the regional center point may be the center point of the circumscribed rectangular area surrounding each piece of furniture in the preset furniture combination. The candidate position of the regional center point may be any position in the target room, or a position in a pre-divided partial area. For example, for the living room and dining room, the living room area and the dining room area may be pre-divided, the candidate position of the regional center point of the sofa combination is selected in the object area, and the candidate position of the regional center point of the dining table combination is selected in the dining room area. The specific setting may be based on actual needs and is not limited here.
[0231] In an optional implementation of this embodiment, Fig.11 As shown, when there are multiple preset furniture combinations, step S901, i.e., the step of determining multiple candidate positions of the preset furniture combination to be placed in the target room, further includes the following steps:
[0232] In step S1101, multiple combinations of the preset furniture at optional positions in the target room are determined;
[0233] In step S1102, combinations in which at least two of the preset furniture combinations are placed overlapping are removed from the multiple combinations, and the remaining combinations are determined as candidate position combinations; wherein the candidate position combination includes candidate positions of multiple preset furniture combinations.
[0234] In this optional implementation, when multiple preset furniture combinations need to be arranged in the target room, for example, a sofa combination, a TV combination, and a dining table combination need to be arranged in the living room and dining room, all points in the target room can be traversed first, and each traversal determines a candidate position of a regional center point for each preset furniture combination. These candidate positions constitute a combination, and each combination includes candidate positions of multiple preset furniture combinations, and these candidate positions are different in each combination. In this way, all possible combinations of regional center points of multiple preset furniture combinations in the target room can be traversed quickly and accurately.
[0235] Since multiple preset furniture combinations cannot overlap when they are actually placed, combinations that will cause at least two preset furniture combinations to overlap can be removed from the obtained multiple combinations, that is, after the regional center points of multiple preset furniture combinations are set at the corresponding candidate positions in each combination, if the areas where two preset furniture combinations are located overlap, this combination will be removed from the multiple combinations. In this way, the remaining combinations can be determined as candidate position combinations, and each candidate position combination includes candidate positions corresponding to multiple preset furniture combinations, that is, each candidate position combination corresponds to a position placement method of multiple preset furniture combinations.
[0236] In an optional implementation of this embodiment, step S1101, i.e., the step of determining multiple combinations of the preset furniture at the optional positions in the target room, further includes the following steps:
[0237] When at least two of the plurality of preset furniture combinations have a relative position relationship, the plurality of combinations are determined according to the relative position relationship and the optional positions of the plurality of preset furniture combinations in the target room.
[0238] In this optional implementation, the relative position relationship between two preset furniture combinations can be pre-set according to the functions of the preset furniture combinations. For example, the TV combination and the sofa combination have a relative position relationship, that is, the TV combination needs to be placed opposite the sofa combination. Therefore, when determining the candidate position combination corresponding to the regional center points of multiple preset furniture combinations, it can also be considered whether there is a relative position relationship between the multiple preset furniture combinations to be placed in the target room.
[0239] The optional position of the regional center point of each preset furniture combination in the target room can be any point in the target room, but in each placement scenario, multiple preset furniture combinations cannot overlap. In addition, when there is a relative position relationship between at least two preset furniture combinations, in the process of traversing all points in the target room to determine the combination formed by the optional positions of the regional center points of each preset furniture combination, the candidate position of the regional center point of one of the at least two preset furniture combinations can be determined first, and then the candidate position of the regional center point of the other one can be determined based on the relative position relationship and the optional positions in the target room. In this way, combinations that do not meet the relative position relationship can be excluded, so that the final combination can be more reasonable.
[0240] In an optional implementation of this embodiment, Fig.12 As shown, the method further comprises the following steps:
[0241] In step S1201, in the floor plan including the target room, the door and / or window of the target room is moved from an original position into the room so that the moved door and / or window extends a preset distance into the target room relative to the wall;
[0242] In step S1202, the nearest projection point of the point in the target room is determined;
[0243] In step S1203, an area formed by points on the wall of the target room where the nearest projection point is located is determined as a support area of the corresponding wall.
[0244] In this optional implementation, the doors and windows of each room in the input vector floor plan can be preprocessed. In the preprocessing process, the doors and windows on the four walls of the target room can be moved a certain distance into the room so that the moved doors and windows protrude relative to the wall. Figure 2 The original effect of the living room and dining room in the vector floor plan shown in the figure and the effect after the door is moved a certain distance into the room. Compared with the original target room, the outlines of the door and window positions of the target room after preprocessing protrude into the target room.
[0245] For the target room after the above preprocessing, the nearest projection point of each point in the target room can be determined. It can be understood that the projection points of each point in the target room may be on the wall, on the door, or on the window. After determining the nearest projection point of each point in the target room, the support area of each wall in the target room can be determined based on the nearest projection point. For each wall in the target room, the area formed by the nearest projection point on the wall is the support area of the wall. Figure 7 The support areas of the walls and doors in the target room shown in FIG6( b ) are shown, wherein the gray area is the support area corresponding to the wall, and the white area is the support area corresponding to the door.
[0246] from Figure 7 It can be seen that after the preprocessing, since the door protrudes into the room, the support area of the wall is in a regular trapezoidal shape with the side where the wall is located as the long side, and the support area of the door is in an inverted trapezoidal shape with the side where the door is located as the short side. Therefore, it can be seen that after the above preprocessing, the closer the pre-set furniture combination is to the wall, the greater the intersection of its support area with the wall; and the closer the pre-set furniture combination is to the door or window, the smaller the intersection of its support area with the wall. Therefore, in this way, the probability of the pre-set furniture combination blocking the door or window can be further reduced.
[0247] In an optional implementation of this embodiment, Fig.13 As shown, the method further comprises the following steps:
[0248] In step S1301, the furniture information to be placed in the target room and the preset fixed matching method are obtained;
[0249] In step S1302, the furniture is grouped and matched according to a preset fixed matching method and the furniture information to obtain the preset furniture combination.
[0250] In this optional implementation, the user can input information about multiple pieces of furniture to be placed in the target room. The furniture information includes but is not limited to furniture identification, subdivision categories, size information, etc. The preset fixed matching method may include but is not limited to multiple pieces of furniture that need to be fixedly matched together for placement, the relative positions between the multiple pieces of furniture, the spacing between the multiple pieces of furniture, etc. For example, a sofa and a coffee table need to be placed in the same area. The preset fixed matching method can be specified by the user or pre-set in the furniture layout system. It can be determined according to actual conditions and is not limited here.
[0251] After obtaining the furniture information and the preset fixed matching method, the server side of the furniture layout system can group and match the furniture to be placed in the target room. For example, the sofas and coffee tables in the living and dining room can be grouped together, the TV and TV cabinet can be grouped together, and the dining table and dining chairs can be grouped together. In addition, the preset furniture combination can be finally matched according to the relative position and spacing between the furniture specified in the preset fixed matching method. In this way, the preset furniture combination can be obtained according to the preset fixed matching method, and then the target placement position can be determined by the preset furniture combination as a unit, which can improve the efficiency of furniture layout and improve the rationality of furniture layout.
[0252] Fig.14 FIG. 1 is a flowchart of a furniture layout method according to an embodiment of the present disclosure. Fig.14 As shown, the furniture layout method includes the following steps:
[0253] In step S1401, a target placement position of the preset furniture combination in the floor plan including the target room is determined; wherein the target placement position is determined using the above-mentioned furniture layout determination method;
[0254] In step S1402, a furniture layout display diagram with a preset furniture combination placed at the target placement position is obtained according to the floor plan and the target placement position;
[0255] In step S1403, a furniture layout display diagram is output.
[0256] In this embodiment, the furniture layout method can be executed on the server side of the furniture layout system, and the furniture layout system can perform furniture layout for a model room to be soft decorated.
[0257] The details of determining the target placement can be found in the above Figure 1 The illustrated embodiments and related embodiments, Fig. 9 The description of the method for determining the furniture layout in the illustrated embodiment and related embodiments will not be repeated here.
[0258] After determining the target placement position of the preset furniture combination, a furniture layout display diagram in which the corresponding preset furniture combination is placed at the target placement position in the target room can be obtained by including the planar floor plan of the target room and the graphics corresponding to the preset furniture combination, and the furniture layout display diagram is output to the user's client for display to the user. The furniture layout display diagram can be obtained by setting the graphics of the preset furniture combination at the target placement position on the basis of the planar floor plan including the target room, or it can be formed by placing the graphics of the preset furniture combination with a three-dimensional effect at the corresponding target placement position in the three-dimensional floor plan including the target room. The specific setting can be based on actual needs and is not limited here. Through the above-mentioned method of the embodiment of the present disclosure, the furniture to be placed in the target room can be automatically placed in a suitable position according to the needs of the user, and the schematic diagram of the effect after placement can be finally displayed to the user, so that the user can intuitively judge whether this furniture layout method meets the needs of the user according to the effect display diagram. In the furniture layout process, the user only needs to provide the planar floor plan including the target room and the furniture information to be placed in the target room, and the furniture layout system will automatically generate a furniture layout plan for the user's reference.
[0259] Fig.15 FIG. 1 is a flowchart of a furniture layout method according to another embodiment of the present disclosure. Fig.15 As shown, the furniture layout method includes the following steps:
[0260] In step S1501, a floor plan of a target room and furniture information are received from a client; wherein the furniture information includes furniture to be placed in the target room and size information of the furniture;
[0261] In step S1502, the furniture is grouped and matched according to the preset fixed matching mode and size information of the furniture, and at least one preset furniture combination is obtained;
[0262] In step S1503, a target placement position of the preset furniture combination in the floor plan including the target room is determined;
[0263] In step S1504, a furniture layout display diagram with a preset furniture combination placed at the target placement position is obtained according to the floor plan and the target placement position;
[0264] In step S1505, the furniture layout display diagram is returned to the client.
[0265] In this embodiment, the furniture layout method can be executed on the server side of the furniture layout system, and the furniture layout system can perform furniture layout for a model room to be soft decorated.
[0266] Users can upload or generate a vector floor plan of an empty apartment where furniture needs to be placed through the interface provided by the furniture layout system on the client. The vector floor plan of the empty apartment can be a floor plan of the target room where furniture is placed. The vector floor plan can include information such as the room outline, doors, and windows of each room. The room outline is represented by a polygon consisting of points connected end to end. Doors and windows are composed of four points connected end to end. The display forms of walls, doors, and windows in the vector floor plan are similar, and are all composed of points and lines. Among them, the room outline corresponds to the wall of the room, and the door and window can be set up against the wall.
[0267] The user can also provide furniture information to be placed in the target room through the interface provided by the furniture layout system on the client. The furniture information may include but is not limited to furniture and furniture size information, such as furniture identification, type, size and other information. The client can upload the empty apartment vector plan and furniture information provided by the user to the server. The server can first group and match the furniture to be placed in each target room according to some preset fixed matching methods, and obtain a preset furniture combination. For example, the sofa, coffee table, etc. in the living room and dining room can be divided into one group, the TV and TV cabinet can be divided into one group, and the dining table and dining chair can be divided into one group. In addition, the preset furniture combination can be obtained by finally matching the relative position and spacing between the furniture specified in the preset fixed matching method. In this way, the preset furniture combination can be obtained according to the preset fixed matching method, and then the target placement position can be determined by the preset furniture combination as a unit, which can improve the efficiency of furniture layout and improve the rationality of furniture layout.
[0268] The preset fixed matching method may include, but is not limited to, multiple pieces of furniture that need to be fixedly matched and placed together, the relative positions between the multiple pieces of furniture, the distance between the multiple pieces of furniture, etc. For example, a sofa and a coffee table need to be matched and placed in the same area, etc. The preset fixed matching method may be specified by the user or may be pre-set in the furniture layout system. The specific method may be determined according to actual conditions and is not limited here.
[0269] After the preset furniture combinations are determined, the target placement positions of the preset furniture combinations in the target room can be determined according to the floor plan provided by the user.
[0270] After determining the target placement position of the preset furniture combination, a furniture layout display diagram in which the corresponding preset furniture combination is placed at the target placement position in the target room can be obtained by including the planar floor plan of the target room and the graphics corresponding to the preset furniture combination, and the furniture layout display diagram is output to the user's client for display to the user. The furniture layout display diagram can be obtained by setting the graphics of the preset furniture combination at the target placement position on the basis of the planar floor plan including the target room, or it can be formed by placing the graphics of the preset furniture combination with a three-dimensional effect at the corresponding target placement position in the three-dimensional floor plan including the target room. The specific setting can be based on actual needs and is not limited here. Through the above-mentioned method of the embodiment of the present disclosure, the furniture to be placed in the target room can be automatically placed in a suitable position according to the needs of the user, and finally the schematic diagram of the effect after placement can be displayed to the user, so that the user can intuitively judge whether this furniture layout method meets the needs of the user according to the effect display diagram. In the furniture layout process, the user only needs to provide the empty floor plan of the target room and the furniture information that needs to be placed in the target room, and the furniture layout system will automatically generate a furniture layout plan for the user's reference.
[0271] In an optional implementation of this embodiment, step S1503, i.e., the step of determining the target placement position of the preset furniture combination in the floor plan including the target room, further includes the following steps:
[0272] The target placement position is determined using the above-mentioned furniture layout determination method.
[0273] In this optional implementation, the details of determining the target placement position can be found in the above Figure 1 The illustrated embodiments and related embodiments, Fig. 9 The description of the method for determining the furniture layout in the illustrated embodiment and related embodiments will not be repeated here.
[0274] Fig.16 FIG. 2 shows a schematic diagram of interaction between a user and a furniture layout system according to an embodiment of the present disclosure. Fig.16 As shown, user 1601 can log in to the client of the furniture layout system through a user device 1602 such as a mobile phone, upload or generate online a floor plan for furniture layout through the client, and user 1601 can also configure the furniture to be placed in the floor plan through the client; and user 1601 can obtain a three-dimensional effect schematic diagram 1603 of placing the furniture in the floor plan by one click.
[0275] Fig.17 FIG. 2 is a schematic diagram showing an application scenario of a furniture layout system according to an embodiment of the present disclosure. Fig.17As shown, the furniture layout system includes a client 1701 and a server 1702; the client 1701 can provide a user interface, through which the user can upload or generate online a floor plan for furniture layout. The floor plan can be an empty floor plan vector map, and the user can set the size and other information of each part of the floor plan, such as the length, width, height, area and other information of the room.
[0276] The user can also configure the furniture information to be placed in each room in the floor plan through the user interface. The configuration process of the furniture information can be configured by the user by selecting the furniture category such as sofa, the specific type of furniture such as corner sofa, the size, etc. from the existing furniture information provided by the furniture layout system. The furniture layout system can preset some fixed matching methods of furniture, such as the fixed matching method between sofa and coffee table, the fixed matching method between dining table and dining chairs, etc. It is understandable that these preset fixed matching methods can also be adjusted by the user according to the actual needs of the user.
[0277] After the user provides the floor plan and furniture information through the client 1701, the client 1701 can upload the floor plan and furniture information provided by the user to the server 1702. The server 1702 groups and matches the furniture according to the furniture information and the preset fixed matching method to obtain a preset furniture combination, such as a sofa and coffee table combination, a TV and TV cabinet combination, a dining table and dining chair combination, etc. The server 1702 will also pre-process each room according to the floor plan. During the pre-processing process, the doors, windows, etc. in the floor plan are extended from the original position to the inside of the room by a distance, such as tens of centimeters, and the floor plan after pre-processing is obtained. The outlines of the doors, windows, etc. in the floor plan are not in a straight line with the outlines of the walls, and the outlines of the doors, windows, etc. protrude into the room relative to the walls.
[0278] After the floor plan is preprocessed, the server 1702 can determine the support areas of the walls, doors, windows, etc. in the room. The process of determining the support area can be understood as the process of dividing the internal area of the room, and the division is performed by the closest projection point of the point inside the room. If the closest projection point of the point inside the room is on the wall, then the point is located in the support area of the wall. If the closest projection point of the point is on the door or window, then the point is located in the support area of the door or window.
[0279] The server end 1702 determines the adaptability of the preset furniture combination at each candidate position through the support area of each wall in the room, and selects the target placement position from each candidate position according to the adaptability. The standard for selecting the target placement position from each candidate position is to place the preset furniture combination as close to the wall as possible without blocking facilities such as doors and windows. After the server end 1702 selects the target placement position, it can automatically generate a furniture layout display diagram with the preset furniture combination placed at the target placement position in the room according to the floor plan and the target placement position of the preset furniture combination. The furniture layout display diagram can be a three-dimensional schematic diagram. After generating the furniture layout display diagram, the server end 1702 pushes it to the client end 1701 and displays it to the user on the client end 1701. Fig.18 According to the embodiment of the present disclosure, Figure 2 The floor plan shown shows a three-dimensional effect display of furniture such as sofas, coffee tables, dining tables, dining chairs, TVs, TV cabinets, beds, wardrobes, bedside tables, etc. The above method of the embodiment of the present disclosure enables users to realize the application scenario of one-click rapid furniture layout through the client.
[0280] The following are embodiments of the apparatus of the present disclosure, which can be used to execute embodiments of the method of the present disclosure.
[0281] Fig.19 FIG. 1 is a block diagram showing a structure of a device for determining furniture layout according to an embodiment of the present disclosure. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Fig.19 As shown, the furniture layout determining device includes:
[0282] The first determination module 1901 is configured to determine a plurality of candidate positions of the combination of pre-placed furniture to be placed in the target room;
[0283] The second determination module 1902 is configured to determine, when the preset furniture combination is placed at the candidate position, an intersection of a support area of the wall where the preset furniture combination is placed and an area where the preset furniture combination is located; wherein the support area is an area close to the wall in the target room, and the nearest projection points of the points in the support area are all located on the wall;
[0284] The third determining module 1903 is configured to determine a target placement position of the preset furniture combination from a plurality of candidate positions according to the intersection.
[0285] In this embodiment, the furniture layout determination device can be run on the server side of the furniture layout system, and the furniture layout system can perform furniture layout for the model room to be soft decorated. The furniture to be placed can be automatically matched by the system from the existing furniture list according to the characteristics of the model room, etc., or can be configured by the user according to his own needs, such as selecting the furniture type through the interface provided by the client of the furniture layout system, and inputting the furniture size, etc. The specific configuration can be based on the actual situation, that is, the specific scenario of the room soft decoration, and is not limited here.
[0286] In the process of determining the furniture layout of this embodiment, what the user inputs to the server of the furniture layout system through the client may be the vector floor plan of the model house, that is, in this embodiment, when performing furniture layout, the floor plan of the model house required is a two-dimensional vector diagram with geometric features that can be recognized by computer software, and the computer software can recognize the geometric features in the model house through the vector floor plan, such as shape, area, length, etc. The vector floor plan may include information such as the room outline, doors, windows, etc. of each room in the model house. The room outline is represented by a polygon composed of points connected end to end, and the door and window are composed of four points connected end to end. The display forms of the wall, door, and window in the vector floor plan are similar, and are all composed of points and lines. Among them, the room outline corresponds to the wall of the room, and the door and window can be set up against the wall.
[0287] Figure 2 FIG. 1 shows an empty floor plan vector diagram of a model house according to an embodiment of the present disclosure. Figure 2 As shown, the thick lines represent the polygonal outlines of the rooms in the model house, the thin lines represent the outlines of the doors, and the dotted lines represent the outlines of the windows.
[0288] The empty apartment of the model house can be represented as follows:
[0289]
[0290] Among them, H represents an empty apartment, which includes n rooms, R i represents the i-th room, i=1,…,n represents. D ij Indicates room R i The jth gate in W ik Indicates room R i The k-th window in .
[0291] The preset furniture combination may include one or a group of furniture fixedly placed in the same area of a room, such as a set of furniture consisting of a sofa and a coffee table. When configuring the preset furniture combination to be placed in the target room, the user may input information of each piece of furniture to be placed in the room, and the furniture information includes but is not limited to the furniture name, category, size information, etc.
[0292] The server side of the furniture layout system can divide the furniture information input by the user into multiple preset furniture combinations according to the functions of the furniture, and determine the shape, size and other area information of the area where the preset furniture combination is placed for each preset furniture combination, for example, the area is a rectangle, and the size includes length and width, etc.
[0293] For example, for the furniture in the living room and dining room, it can be divided into three pre-set furniture combinations of sofa, TV and dining table according to different functions such as discussion, audio-visual, and dining. The sofa combination may include but is not limited to double sofas, chaise longues, coffee tables, corner tables, side tables, and furniture decorations placed on these furniture; the TV combination may include but is not limited to TVs, TV cabinets, etc.; the dining table combination may include but is not limited to dining tables, dining chairs, etc. For the furniture in the bedroom, it can be divided into three pre-set furniture combinations of bed, TV, and wardrobe. The bed combination may include but is not limited to double beds, bedside tables and decorations; the TV combination may include but is not limited to TVs, TV cabinets and decorations; the wardrobe combination includes wardrobes and furniture in wardrobes, etc. It is understandable that the pre-set furniture combination may also include only one piece of furniture, such as a sideboard, shoe cabinet, green plants, murals, etc.
[0294] When determining the target placement position of the preset furniture combination in the target room, for the vector plan floor plan including the target room, the candidate positions where the preset furniture combination can be placed can be determined first, and then the most suitable target placement position can be selected from the candidate positions. The candidate position of the preset furniture combination can be the candidate position of a certain point on the preset furniture combination, or it can be the candidate position area occupied by the entire preset furniture combination. The target placement position of the preset furniture combination is the position that is finally selected from the candidate positions and is most suitable for placing the preset furniture combination. When the preset furniture combination is placed at the target placement position, it can be as close to the wall as possible and will not block the facilities in the room other than the wall, such as windows and doors.
[0295] In an optional implementation of the present disclosure, for convenience of calculation, the candidate position may be a candidate position of the regional center point of the preset furniture combination. The regional center point may be the location where the center of the preset furniture combination to be placed is located. In some embodiments, the regional center point may be the center point of the circumscribed rectangular area surrounding each piece of furniture in the preset furniture combination. The candidate position of the regional center point may be any position in the target room, or a position in a pre-divided partial area. For example, for the living room and dining room, the living room area and the dining room area may be pre-divided, the candidate position of the regional center point of the sofa combination is selected in the object area, and the candidate position of the regional center point of the dining table combination is selected in the dining room area. The specific setting may be based on actual needs and is not limited here.
[0296] The wall in the target room can be the part after removing the part with doors and windows in the target room outline in the vector plan. Each wall in the target room has a corresponding support area. The disclosed embodiment divides the ground in the target room according to the walls, doors, windows, etc., so that the walls, doors, windows, etc. correspond to a part of the support area of the ground inside the target room. The support area of the wall of the target room is the area located in the target room and close to the wall, and the support area of the wall can be determined by the nearest projection point of the point in the target room on the wall. The support area of a wall in the target room includes the area formed by the nearest projection point of the point in the target room on the wall, that is, the nearest projection points of all points in the support area of a wall are on the wall, and all points of the nearest projection point on the wall constitute the support area of the wall.
[0297] The closest projection point of a point in the target room on the wall can be obtained by projecting the point in the target room onto the surrounding walls in the vector plane floor plan, and the point with the shortest projection distance is the closest projection point.
[0298] like Figure 3 As shown, if point A is a point in the target room, and straight lines ab, bc, cd and da represent the four walls in the target room respectively, then by vertically projecting point A onto the four walls, it can be obtained that the projection distance from point A to the wall corresponding to ad is the shortest, that is, the projection point A1 from point A to the wall corresponding to ad is the closest projection point.
[0299] The support area of each wall in the target room can be predetermined according to the above method.
[0300] When performing furniture layout, for a vector floor plan including a target room, the intersection between the support area of the wall where the preset furniture combination is placed and the area where the preset furniture combination is placed at this time can be determined by setting the center point of the area of the preset furniture combination at the current candidate position. The selection criterion for the target placement position in the disclosed embodiment is to place the preset furniture combination as close to the wall as possible without blocking the facilities in the room such as doors and windows. Since the support area of the wall is determined by whether the nearest projection point of the point inside the target room is on the wall, the size of the intersection between the above support area and the area where the preset furniture combination is located can measure the degree to which the preset furniture combination is close to the wall when it is at the candidate position without blocking the facilities in the room such as doors and windows. The larger the intersection, the closer the candidate position is to the above selection criterion, that is, the preset furniture combination is closer to the wall when it is placed at the candidate position without blocking the facilities in the room such as doors and windows.
[0301] In this embodiment, after the pre-set furniture combination is placed at the candidate position, the wall where the pre-set furniture combination is placed close to may be the wall with the largest intersection between the corresponding support area and the area where the pre-set furniture combination is located. That is, the intersection between the support areas of each wall in the target room and the area where the pre-set furniture combination is located may be first determined, and the wall with the largest intersection may be used as the wall where the pre-set furniture combination is placed close to.
[0302] After determining the corresponding above intersection according to multiple candidate positions, the target placement position can be determined according to the intersection, so that the preset furniture combination is placed at the target placement position in the final furniture layout plan. The most reasonable target placement position is to make the preset furniture combination as close to the wall as possible, and after the preset furniture combination is placed at the target placement position, it will not block the doors, windows and other facilities in the target room, and will not interfere with the placement of other preset furniture combinations. In order to achieve this goal, the embodiment of the present disclosure selects a target placement position that meets the above goals from multiple candidate positions through the intersection between the area where the preset furniture combination is located and the supporting area of the wall it relies on.
[0303] Since the support area of the inner wall of the target room is usually an area formed by expanding outward from the wall, the larger the intersection between the support area and the area where the pre-set furniture combination is located, the closer the area where the pre-set furniture combination is located is to the wall corresponding to the support area. Since the pre-set furniture combination is usually placed against the wall, the area with the largest intersection (that is, the candidate position with the largest intersection is determined as the target placement position) can be selected in this way to place the pre-set furniture combination. In this way, the pre-set furniture combination can be placed at the position closest to one of the walls, and the probability of the pre-set furniture combination blocking the window or door is small (because the case with the largest intersection is usually that the parts close to the pre-set furniture combination are all walls, and there are no other facilities such as doors and windows).
[0304] When determining the furniture layout, the disclosed embodiment determines multiple candidate positions of the preset furniture combination in the target room, and then determines the intersection of the support area of the wall where the preset furniture combination is placed and the area where the preset furniture combination is located when the preset furniture combination is placed at the candidate position, and selects the target placement position from the multiple candidate positions based on the intersection to place the preset furniture combination; wherein the support area of the wall where the preset furniture combination is placed is the area close to the wall in the target room, and the support area includes the area formed by the points of the nearest projection points on the target wall. In this way, the area formed by the nearest projection points of the points on the ground in the target room on the wall can be determined as the support area of the wall, and then the optimal position that makes the preset furniture combination as close to the wall as possible and does not block facilities other than the wall, such as windows and doors, can be selected from the multiple candidate positions based on the intersection of the support area and the area where the preset furniture combination is placed after being placed at the candidate position.
[0305] In an optional implementation of this embodiment, the first determining module includes:
[0306] The position determination submodule is configured to determine the center point of the optional placement area of the preset furniture combination as the candidate position.
[0307] In an optional implementation of this embodiment, when there are multiple preset furniture combinations, the first determining module includes:
[0308] A first determination submodule is configured to determine a plurality of combinations formed by a plurality of preset furniture combinations at optional positions in a target room;
[0309] The second determination submodule is configured to remove combinations in which at least two preset furniture combinations are placed overlappingly from the multiple combinations, and determine the remaining combinations as candidate position combinations; wherein the candidate position combination includes candidate positions of each of the multiple preset furniture combinations.
[0310] In an optional implementation of this embodiment, the first determining submodule includes:
[0311] The third determining submodule is configured to determine a plurality of combinations according to the relative position relationship and the optional positions of the plurality of preset furniture combinations in the target room when at least two of the plurality of preset furniture combinations have a relative position relationship.
[0312] In an optional implementation of this embodiment, the method further includes:
[0313] A first moving module is configured to move a door and / or a window on a wall of the target room from an original position into the room in a floor plan including the target room, so that the moved door and / or window extends a preset distance relative to the wall into the target room;
[0314] a fourth determination module configured to determine a nearest projection point of a point in the target room;
[0315] The fifth determination module is configured to determine an area formed by points on the wall of the target room where the nearest projection point is located as a support area of the corresponding wall.
[0316] In an optional implementation of this embodiment, the third determining module includes:
[0317] The fourth determination submodule is configured to determine the target placement position from the candidate positions according to the ratio of the first area of the intersection to the second area of the area where the preset furniture combination is located.
[0318] In an optional implementation of this embodiment, the method further includes:
[0319] A first acquisition module is configured to acquire furniture information to be placed in a target room and a preset fixed matching method;
[0320] The first grouping module is configured to group and match furniture according to a preset fixed matching method and furniture information to obtain a preset furniture combination.
[0321] The furniture layout determination device in this embodiment is similar to the above Figure 1 The furniture layout determination method in the illustrated embodiment and the related embodiments corresponds to each other. For details, please refer to the above description. Figure 1 The description of the method for determining furniture layout in the illustrated embodiment and related embodiments is not limited here.
[0322] Fig. 20 FIG. 2 shows a structural block diagram of a device for determining furniture layout according to another embodiment of the present disclosure. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Fig. 20 As shown, the furniture layout determining device includes:
[0323] The sixth determination module 2001 is configured to determine a plurality of candidate positions of the combination of pre-placed furniture to be placed in the target room;
[0324] The seventh determination module 2002 is configured to determine the fitness between the preset furniture combination and the candidate position according to the support area of the wall where the preset furniture combination is placed when the preset furniture combination is placed at the candidate position; wherein the fitness is positively correlated with the intersection between the area where the preset furniture combination is placed when it is placed at the candidate position and the support area, and the support area is an area close to the wall inside the target room, and the nearest projection points of the points in the support area are all located on the wall;
[0325] The eighth determination module 2003 is configured to determine a target placement position of the preset furniture combination from a plurality of candidate positions according to the fitness.
[0326] In this embodiment, the furniture layout determination device can be run on the server side of the furniture layout system, and the furniture layout system can perform furniture layout for the model room to be soft decorated. The furniture to be placed can be automatically matched by the system from the existing furniture list according to the characteristics of the model room, etc., or can be configured by the user according to his own needs, such as selecting the furniture type through the interface provided by the client of the furniture layout system, and inputting the furniture size, etc. The specific configuration can be based on the actual situation, that is, the specific scenario of the room soft decoration, and is not limited here.
[0327] In the process of determining the furniture layout of this embodiment, the user may input the vector floor plan of the model house to the server of the furniture layout system through the client, that is, in this embodiment, when performing furniture layout, the vector floor plan of the model house required is a two-dimensional vector diagram with geometric features that can be recognized by computer software, and the computer software can recognize the geometric features in the model house through the vector floor plan, such as shape, area, length, etc. The vector floor plan may include information such as the room outline, doors, windows, etc. of each room in the model house. The room outline is represented by a polygon composed of points connected end to end, and the door and window are composed of four points connected end to end. The display forms of the wall, door, and window in the vector floor plan are similar, and are all composed of points and lines. Among them, the room outline corresponds to the wall of the room, and the door and window can be set up against the wall.
[0328] The preset furniture combination may include one or a group of furniture fixedly placed in the same area of a room, such as a set of furniture consisting of a sofa and a coffee table. When configuring the preset furniture combination to be placed in the target room, the user may input information of each piece of furniture to be placed in the room, and the furniture information includes but is not limited to the furniture name, category, size information, etc.
[0329] The server side of the furniture layout system can divide the furniture information input by the user into multiple preset furniture combinations according to the functions of the furniture, and determine the shape, size and other area information of the area where the preset furniture combination is placed for each preset furniture combination, for example, the area is a rectangle, and the size includes length and width, etc.
[0330] For example, for the furniture in the living room and dining room, it can be divided into three pre-set furniture combinations of sofa, TV and dining table according to different functions such as discussion, audio-visual, and dining. The sofa combination may include but is not limited to double sofas, chaise longues, coffee tables, corner tables, side tables, and furniture decorations placed on these furniture; the TV combination may include but is not limited to TVs, TV cabinets, etc.; the dining table combination may include but is not limited to dining tables, dining chairs, etc. For the furniture in the bedroom, it can be divided into three pre-set furniture combinations of bed, TV, and wardrobe. The bed combination may include but is not limited to double beds, bedside tables and decorations; the TV combination may include but is not limited to TVs, TV cabinets and decorations; the wardrobe combination includes wardrobes and furniture in wardrobes, etc. It is understandable that the pre-set furniture combination may also include only one piece of furniture, such as a sideboard, shoe cabinet, green plants, murals, etc.
[0331] When determining the target placement position of the preset furniture combination in the target room, for the vector plan floor plan including the target room, the candidate positions where the preset furniture combination can be placed can be determined first, and then the most suitable target placement position can be selected from the candidate positions. The candidate position of the preset furniture combination can be the candidate position of a certain point on the preset furniture combination, or it can be the candidate position area occupied by the entire preset furniture combination. The target placement position of the preset furniture combination is the position that is finally selected from the candidate positions and is most suitable for placing the preset furniture combination. When the preset furniture combination is placed at the target placement position, it can be as close to the wall as possible and will not block the facilities in the room other than the wall, such as windows and doors.
[0332] In an optional implementation of the present disclosure, for convenience of calculation, the candidate position may be a candidate position of the regional center point of the preset furniture combination. The regional center point may be the location where the center of the preset furniture combination to be placed is located. In some embodiments, the regional center point may be the center point of the circumscribed rectangular area surrounding each piece of furniture in the preset furniture combination. The candidate position of the regional center point may be any position in the target room, or a position in a pre-divided partial area. For example, for the living room and dining room, the living room area and the dining room area may be pre-divided, the candidate position of the regional center point of the sofa combination is selected in the object area, and the candidate position of the regional center point of the dining table combination is selected in the dining room area. The specific setting may be based on actual needs and is not limited here.
[0333] The wall in the target room can be the part after removing the part with doors and windows in the room outline in the vector plan. Each wall in the target room has a corresponding support area. The disclosed embodiment divides the ground in the target room according to the walls, doors, windows, etc., so that the walls, doors, windows, etc. correspond to a part of the support area of the ground inside the target room. The support area of the wall of the target room is the area located in the target room and close to the wall, and the support area of the wall can be determined by the nearest projection point of the point in the target room on the wall. The support area of a wall in the target room includes the area formed by the nearest projection point of the point in the target room on the wall, that is, the nearest projection points of all points in the support area of a wall are on the wall, and all points of the nearest projection point on the wall constitute the support area of the wall.
[0334] The closest projection point of a point in the target room on the wall can be obtained by projecting the point in the target room onto the surrounding walls in the vector plane floor plan, and the point with the shortest projection distance is the closest projection point.
[0335] The support area of each wall in the target room can be predetermined according to the above method.
[0336] When performing furniture layout, for a vector plan floor plan including a target room, the preset furniture combination can be placed at the candidate position by setting the regional center point of the preset furniture combination at the current candidate position. After the preset furniture combination is placed at the candidate position, the fitness between the preset furniture combination and the candidate position can be determined by the support area of the wall inside the target room. The fitness can be understood as a measure of the degree of suitability of the preset furniture combination when placed at the candidate position. The selection criterion for the target placement position in the disclosed embodiment is to place the preset furniture combination as close to the wall as possible without blocking the facilities in the room such as doors and windows. Therefore, since the support area of the wall is determined by whether the nearest projection point of the point inside the target room is on the wall, the fitness can also be understood as a comprehensive indicator of the degree to which the preset furniture combination blocks the facilities in the room such as doors and windows and is close to the wall when it is at the candidate position. The larger the fitness, the closer the candidate position is to the above selection criterion, that is, the preset furniture combination is closer to the wall when it is placed at the candidate position without blocking the facilities in the room such as doors and windows.
[0337] In this embodiment, after the pre-set furniture combination is placed at the candidate position, the wall where the pre-set furniture combination is placed close to may be the wall with the largest intersection between the corresponding support area and the area where the pre-set furniture combination is located. That is, the intersection between the support areas of each wall in the target room and the area where the pre-set furniture combination is located may be first determined, and the wall with the largest intersection may be used as the wall where the pre-set furniture combination is placed close to.
[0338] After determining the above fitness corresponding to the preset furniture combination according to multiple candidate positions, the target placement position can be determined according to the fitness, so that the preset furniture combination is placed at the target placement position in the final furniture layout plan. The most reasonable target placement position is to make the preset furniture combination as close to the wall as possible, and after the preset furniture combination is placed at the target placement position, it will not block the doors, windows and other facilities in the target room, and will not interfere with the placement of other preset furniture combinations. In order to achieve this goal, the embodiment of the present disclosure selects a target placement position that meets the above goals from multiple candidate positions through the fitness between the area where the preset furniture combination is located and the candidate position.
[0339] When determining the furniture layout, the disclosed embodiment determines multiple candidate positions of the preset furniture combination in the target room, and then when determining that the preset furniture combination is placed at the candidate position, the fitness between the preset furniture combination and the candidate position is determined according to the support area of the wall where the preset furniture combination is placed close to, and the target placement position is selected from the multiple candidate positions according to the fitness, for placing the preset furniture combination; wherein the support area of the wall where the preset furniture combination is placed close to is the area close to the wall in the target room, and the support area includes the area formed by the point of the nearest projection point on the target wall. In this way, the fitness between the preset furniture combination and the candidate position can be determined by the support area of the wall determined by the nearest projection point of the point on the ground in the target room on the wall, so that the target placement position that makes the preset furniture combination close to the wall to the greatest extent and does not block facilities other than the wall, such as windows and doors, can be selected from the multiple candidate positions according to the fitness.
[0340] In an optional implementation of this embodiment, the seventh determining module includes:
[0341] A fifth determination submodule is configured to determine an intersection between the support area and an area where the preset furniture combination is placed at the candidate position;
[0342] The sixth determination submodule is configured to determine the fitness according to the ratio of the first area of the intersection to the second area of the area where the preset furniture combination is located.
[0343] In an optional implementation of this embodiment, the eighth determining module includes:
[0344] The seventh determination submodule is configured to determine the candidate position corresponding to the maximum fitness as the target placement position.
[0345] In an optional implementation of this embodiment, the sixth determining module includes:
[0346] The eighth determination submodule is configured to determine the center point of the optional placement area of the preset furniture combination as the candidate position.
[0347] In an optional implementation of this embodiment, when there are multiple preset furniture combinations, the sixth determining module includes:
[0348] A ninth determination submodule is configured to determine a plurality of combinations formed by the plurality of preset furniture combinations at optional positions in the target room;
[0349] The tenth determination submodule is configured to remove combinations in which at least two pre-set furniture combinations are placed overlappingly from the multiple combinations, and determine the remaining combinations as candidate position combinations; wherein the candidate position combination includes candidate positions of each of the multiple pre-set furniture combinations.
[0350] In an optional implementation of this embodiment, the ninth determining submodule includes:
[0351] The eleventh determination submodule is configured to determine a plurality of combinations according to the relative position relationship and the optional positions of the plurality of preset furniture combinations in the target room when at least two of the plurality of preset furniture combinations have a relative position relationship.
[0352] In an optional implementation of this embodiment, the method further includes:
[0353] A second moving module is configured to move a door and / or a window of the target room from an original position into the room in a floor plan including the target room, so that the moved door and / or window extends a preset distance relative to a wall into the target room;
[0354] a ninth determination module, configured to determine a nearest projection point of a point in a target room;
[0355] The tenth determination module is configured to determine an area formed by points on the wall of the target room where the nearest projection point is located as a support area for placing a preset furniture combination close to the wall.
[0356] In an optional implementation of this embodiment, the method further includes:
[0357] The second acquisition module is configured to acquire furniture information to be placed in the target room and a preset fixed matching method;
[0358] The second grouping module is configured to group and match the furniture according to a preset fixed matching method and furniture information to obtain a preset furniture combination.
[0359] The furniture layout determination device in this embodiment is similar to the above Fig. 9 The furniture layout determination method in the illustrated embodiment and the related embodiments corresponds to each other. For details, please refer to the above description. Fig. 9 The description of the method for determining furniture layout in the illustrated embodiment and related embodiments is not limited here.
[0360] Fig.21 FIG. 1 shows a structural block diagram of a furniture layout device according to an embodiment of the present disclosure. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Fig.21 As shown, the furniture layout device includes:
[0361] An eleventh determination module 2101 is configured to determine a target placement position of the preset furniture combination in the floor plan including the target room; wherein the target placement position is determined by using any of the above-mentioned furniture layout determination devices;
[0362] The third acquisition module 2102 is configured to obtain a furniture layout display diagram with a preset furniture combination placed at the target placement position according to the floor plan and the target placement position;
[0363] The output module 2103 is configured to output a furniture layout display diagram.
[0364] In this embodiment, the furniture layout method can be executed on the server side of the furniture layout system, and the furniture layout system can perform furniture layout for a model room to be soft decorated.
[0365] The details of determining the target placement can be found in the above Fig.19 The illustrated embodiments and related embodiments, Fig. 20 The description of the furniture layout determining device in the illustrated embodiment and related embodiments will not be repeated here.
[0366] After determining the target placement position of the preset furniture combination, a furniture layout display diagram in which the corresponding preset furniture combination is placed at the target placement position in the target room can be obtained by including the planar floor plan of the target room and the graphics corresponding to the preset furniture combination, and the furniture layout display diagram is output to the user's client for display to the user. The furniture layout display diagram can be obtained by setting the graphics of the preset furniture combination at the target placement position on the basis of the planar floor plan including the target room, or it can be formed by placing the graphics of the preset furniture combination with a three-dimensional effect at the corresponding target placement position in the three-dimensional floor plan including the target room. The specific setting can be based on actual needs and is not limited here. Through the above-mentioned method of the embodiment of the present disclosure, the furniture to be placed in the target room can be automatically placed in a suitable position according to the needs of the user, and the schematic diagram of the effect after placement can be finally displayed to the user, so that the user can intuitively judge whether this furniture layout method meets the needs of the user according to the effect display diagram. In the furniture layout process, the user only needs to provide the planar floor plan including the target room and the furniture information to be placed in the target room, and the furniture layout system will automatically generate a furniture layout plan for the user's reference.
[0367] Fig. 22 FIG. 2 shows a structural block diagram of a furniture layout device according to another embodiment of the present disclosure, which can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Fig. 22 As shown, the furniture layout device includes:
[0368] The receiving module 2201 is configured to receive a floor plan of a target room and furniture information from a client; wherein the furniture information includes furniture to be placed in the target room and size information of the furniture;
[0369] The third grouping module 2202 is configured to group and match the furniture according to the preset fixed matching mode and size information of the furniture, and obtain at least one preset furniture combination;
[0370] The twelfth determination module 2203 is configured to determine a target placement position of the preset furniture combination in the floor plan including the target room;
[0371] The fourth acquisition module 2204 is configured to obtain a furniture layout display diagram with a preset furniture combination placed at the target placement position according to the floor plan and the target placement position;
[0372] The return module 2205 is configured to return the furniture layout display diagram to the client.
[0373] In this embodiment, the furniture layout device can be run on the server side of the furniture layout system, and the furniture layout system can perform furniture layout for a model room to be soft decorated.
[0374] The user can upload or generate a vector floor plan of an empty apartment where furniture is to be placed through the interface provided by the furniture layout system on the client. The vector floor plan of the empty apartment can be a floor plan of the target room where furniture is to be placed. The vector floor plan can include information such as the room outline, doors, and windows of each room. The room outline is represented by a polygon consisting of points connected end to end. Doors and windows are composed of four points connected end to end. The display forms of walls, doors, and windows in the vector floor plan are similar, and are all composed of points and lines. Among them, the room outline corresponds to the wall of the room, and the door and window can be set by attaching to the wall.
[0375] The user can also provide furniture information to be placed in the target room through the interface provided by the furniture layout system on the client. The furniture information may include but is not limited to furniture and furniture size information, such as furniture identification, type, size and other information. The client can upload the empty apartment vector plan and furniture information provided by the user to the server. The server can first group and match the furniture to be placed in each target room according to some preset fixed matching methods, and obtain a preset furniture combination. For example, the sofa, coffee table, etc. in the living room and dining room can be divided into one group, the TV and TV cabinet can be divided into one group, and the dining table and dining chair can be divided into one group. In addition, the preset furniture combination can be obtained by finally matching the relative position and spacing between the furniture specified in the preset fixed matching method. In this way, the preset furniture combination can be obtained according to the preset fixed matching method, and then the target placement position can be determined by the preset furniture combination as a unit, which can improve the efficiency of furniture layout and improve the rationality of furniture layout.
[0376] The preset fixed matching method may include, but is not limited to, multiple pieces of furniture that need to be fixedly matched and placed together, the relative positions between the multiple pieces of furniture, the distance between the multiple pieces of furniture, etc. For example, a sofa and a coffee table need to be matched and placed in the same area, etc. The preset fixed matching method may be specified by the user or may be pre-set in the furniture layout system. The specific method may be determined according to actual conditions and is not limited here.
[0377] After the preset furniture combinations are determined, the target placement positions of the preset furniture combinations in the target room can be determined according to the floor plan provided by the user.
[0378] After determining the target placement position of the preset furniture combination, a furniture layout display diagram in which the corresponding preset furniture combination is placed at the target placement position in the target room can be obtained by including the planar floor plan of the target room and the graphics corresponding to the preset furniture combination, and the furniture layout display diagram is output to the user's client for display to the user. The furniture layout display diagram can be obtained by setting the graphics of the preset furniture combination at the target placement position on the basis of the planar floor plan including the target room, or it can be formed by placing the graphics of the preset furniture combination with a three-dimensional effect at the corresponding target placement position in the three-dimensional floor plan including the target room. The specific setting can be based on actual needs and is not limited here. Through the above-mentioned method of the embodiment of the present disclosure, the furniture to be placed in the target room can be automatically placed in a suitable position according to the needs of the user, and finally the schematic diagram of the effect after placement can be displayed to the user, so that the user can intuitively judge whether this furniture layout method meets the needs of the user according to the effect display diagram. In the furniture layout process, the user only needs to provide the empty floor plan of the target room and the furniture information that needs to be placed in the target room, and the furniture layout system will automatically generate a furniture layout plan for the user's reference.
[0379] In an optional implementation of this embodiment, the twelfth determining module includes:
[0380] The twelfth determination submodule is configured to determine the target placement position using any of the above-mentioned furniture layout determination devices.
[0381] The furniture layout device in this embodiment is similar to the above Fig.15 The furniture layout methods in the illustrated embodiment and related embodiments correspond to each other. For details, please refer to the above description. Fig.15 The description of the furniture layout method in the illustrated embodiment and related embodiments is not limited here.
[0382] Fig.23 It is a structural schematic diagram of an electronic device suitable for implementing the furniture layout determination method and / or furniture layout method according to an embodiment of the present disclosure.
[0383] like Fig.23 As shown, the electronic device 2300 includes a central processing unit (CPU) 2301, which can perform various processes in the embodiments of the above-mentioned method of the present disclosure according to the program stored in the read-only memory (ROM) 2302 or the program loaded from the storage part 2308 to the random access memory (RAM) 2303. In the RAM 2303, various programs and data required for the operation of the electronic device 2300 are also stored. The CPU 2301, the ROM 2302, and the RAM 2303 are connected to each other through the bus 2304. The input / output (I / O) interface 2305 is also connected to the bus 2304.
[0384] The following components are connected to the I / O interface 2305: an input section 2306 including a keyboard, a mouse, etc.; an output section 2307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 2308 including a hard disk, etc.; and a communication section 2309 including a network interface card such as a LAN card, a modem, etc. The communication section 2309 performs communication processing via a network such as the Internet. A drive 2310 is also connected to the I / O interface 2305 as needed. A removable medium 2311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 2310 as needed, so that a computer program read therefrom is installed into the storage section 2308 as needed.
[0385] In particular, according to an embodiment of the present disclosure, the method in the above referenced embodiment of the present disclosure may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program tangibly contained on a readable medium thereof, and the computer program includes a program code for executing the method in the embodiment of the present disclosure. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 2309, and / or installed from a removable medium 2311.
[0386] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the road map or block diagram can represent a module, a program segment or a part of a code, and a part of a module, a program segment or a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0387] The units or modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The units or modules described may also be arranged in a processor, and the names of these units or modules do not constitute limitations on the units or modules themselves in some cases.
[0388] As another aspect, the present disclosure further provides a computer-readable storage medium, which may be a computer-readable storage medium included in the device in the above-mentioned embodiment; or a computer-readable storage medium that exists independently and is not assembled into the device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the method described in the present disclosure.
[0389] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.
Claims
1. A method for determining furniture layout, characterized in that: include: Determine multiple candidate locations of the preset furniture combination to be placed in the target room; When the pre-installed furniture combination is placed at the candidate position, determine the intersection of a support area of the wall where the pre-installed furniture combination is placed and an area where the pre-installed furniture combination is located; wherein the support area is an area in the target room close to the wall, and the nearest projection points of the points in the support area are all located on the wall; According to the intersection, a candidate position with the largest intersection is determined from the multiple candidate positions as the target placement position of the preset furniture combination.
2. The method according to claim 1, characterized in that: Determine multiple candidate positions of the pre-set furniture combination to be placed in the target room, including: The center point of the optional placement area of the preset furniture combination is determined as the candidate position.
3. The method according to claim 1 or 2, characterized in that: When there are multiple pre-set furniture combinations, determining multiple candidate positions of the pre-set furniture combinations to be placed in the target room includes: Determine multiple combinations of the preset furniture combinations at optional positions in the target room; Combinations in which at least two of the pre-placed furniture combinations are placed overlapping are removed from the multiple combinations, and the remaining combinations are determined as candidate position combinations; wherein the candidate position combination includes candidate positions of each of the multiple pre-placed furniture combinations.
4. The method according to claim 3, characterized in that Determine multiple combinations of the preset furniture combinations at optional positions in the target room, including: When at least two of the plurality of pre-placed furniture combinations have a relative position relationship, the plurality of combinations are determined according to the relative position relationship and the optional positions of the plurality of pre-placed furniture combinations in the target room.
5. The method according to any one of claims 1-2 and 4, characterized in that: Also includes: In a floor plan including the target room, by moving a door and / or a window of the target room from an original position into the room, the moved door and / or window extends a preset distance relative to a wall into the target room; Determine the closest projection point of the point in the target room; An area formed by points on the wall in the target room where the nearest projection points are located is determined as a support area of the corresponding wall.
6. The method according to any one of claims 1-2 and 4, characterized in that: Determining a target placement position of the preset furniture combination from the plurality of candidate positions according to the intersection includes: The target placement position is determined from the candidate positions according to a ratio of a first area of the intersection to a second area of the area where the preset furniture combination is located.
7. The method according to any one of claims 1-2 and 4, characterized in that: Also includes: Obtaining furniture information to be placed in the target room and a preset fixed matching method; The furniture is grouped and matched according to a preset fixed matching method and the furniture information to obtain the preset furniture combination.
8. A method for determining furniture layout, characterized in that: include: Determine multiple candidate locations of the preset furniture combination to be placed in the target room; When the pre-installed furniture combination is placed at the candidate position, the fitness between the pre-installed furniture combination and the candidate position is determined according to the support area of the wall where the pre-installed furniture combination is placed; wherein the fitness is positively correlated with the intersection between the area where the pre-installed furniture combination is placed when the pre-installed furniture combination is placed at the candidate position and the support area, and the support area is an area inside the target room close to the wall, and the nearest projection points of the points in the support area are all located on the wall; Determining a target placement position of the preset furniture combination from the plurality of candidate positions according to the fitness; Wherein, determining the target placement position of the preset furniture combination from the plurality of candidate positions according to the fitness comprises: The candidate position corresponding to the maximum fitness is determined as the target placement position.
9. The method according to claim 8, characterized in that Determining the adaptability between the pre-placed furniture combination and the candidate position according to the support area of the wall where the pre-placed furniture combination is placed close to the wall includes: Determine the intersection between the support area and the area where the pre-installed furniture combination is placed at the candidate position; The fitness is determined according to a ratio of a first area of the intersection to a second area of a region where the preset furniture combination is located.
10. The method according to claim 8 or 9, characterized in that: Determine multiple candidate positions of the pre-set furniture combination to be placed in the target room, including: The center point of the optional placement area of the preset furniture combination is determined as the candidate position.
11. The method according to claim 8 or 9, characterized in that: When there are multiple pre-set furniture combinations, determining multiple candidate positions of the pre-set furniture combinations to be placed in the target room includes: Determine multiple combinations of the preset furniture combinations at optional positions in the target room; Combinations in which at least two of the pre-placed furniture combinations are placed overlapping are removed from the multiple combinations, and the remaining combinations are determined as candidate position combinations; wherein the candidate position combination includes candidate positions of each of the multiple pre-placed furniture combinations.
12. The method according to claim 11, characterized in that Determine multiple combinations of the preset furniture combinations at optional positions in the target room, including: When at least two of the plurality of pre-placed furniture combinations have a relative position relationship, the plurality of combinations are determined according to the relative position relationship and the optional positions of the plurality of pre-placed furniture combinations in the target room.
13. The method according to any one of claims 8 to 9 and 12, characterized in that: Also includes: In a floor plan including the target room, by moving a door and / or a window of the target room from an original position into the room, the moved door and / or window extends a preset distance relative to a wall into the target room; Determine the closest projection point of the point in the target room; An area formed by points on the wall in the target room where the nearest projection points are located is determined as a support area for placing the preset furniture combination close to the wall.
14. The method according to any one of claims 8 to 9 and 12, characterized in that: Also includes: Obtaining furniture information to be placed in the target room and a preset fixed matching method; The furniture is grouped and matched according to a preset fixed matching method and the furniture information to obtain the preset furniture combination.
15. A furniture layout method, characterized in that: include: Determining a target placement position of the preset furniture combination in a floor plan including the target room; wherein the target placement position is determined using the method according to any one of claims 1 to 14; Obtaining a furniture layout display diagram in which the preset furniture combination is placed at the target placement position according to the floor plan and the target placement position; Output the furniture layout display diagram.
16. A furniture layout method, characterized in that: include: Receiving a floor plan of a target room and furniture information from a client; wherein the furniture information includes furniture to be placed in the target room and size information of the furniture; Grouping and matching the furniture according to the preset fixed matching mode of the furniture and the size information, and obtaining at least one preset furniture combination; Determining a target placement position of the preset furniture combination in a floor plan including the target room; Obtaining a furniture layout display diagram in which the preset furniture combination is placed at the target placement position according to the floor plan and the target placement position; Returning the furniture layout display diagram to the client; Wherein, determining the target placement position of the preset furniture combination in the floor plan including the target room includes: The target placement position is determined using the method described in any one of claims 1-14.
17. A device for determining furniture layout, characterized in that: include: A first determination module is configured to determine a plurality of candidate positions of the combination of pre-placed furniture to be placed in the target room; A second determination module is configured to determine, when the pre-set furniture combination is placed at the candidate position, an intersection of a support area of the wall where the pre-set furniture combination is placed and an area where the pre-set furniture combination is located; wherein the support area is an area in the target room close to the wall, and the nearest projection points of the points in the support area are all located on the wall; The third determination module is configured to determine, according to the intersection, a candidate position with the largest intersection from among the multiple candidate positions as a target placement position for the preset furniture combination.
18. The device according to claim 17, characterized in that The first determining module includes: The position determination submodule is configured to determine the center point of the optional placement area of the preset furniture combination as the candidate position.
19. The device according to claim 17 or 18, characterized in that When the pre-set furniture is combined into multiple pieces, the first determining module includes: A first determination submodule is configured to determine a plurality of combinations formed by a plurality of the preset furniture combinations at optional positions in a target room; The second determination submodule is configured to remove combinations in which at least two of the pre-placed furniture combinations are placed overlappingly from the multiple combinations, and determine the remaining combinations as candidate position combinations; wherein the candidate position combination includes candidate positions of each of the multiple pre-placed furniture combinations.
20. The device according to claim 19, characterized in that The first determining submodule includes: The third determination submodule is configured to determine the plurality of combinations according to the relative position relationship and the optional positions of the plurality of pre-placed furniture combinations in the target room when at least two of the plurality of pre-placed furniture combinations have a relative position relationship.
21. The device according to any one of claims 17 to 18 and 20, characterized in that: Also includes: A first moving module is configured to move a door and / or a window on a wall of the target room from an original position into the room in a floor plan including the target room, so that the moved door and / or window extends a preset distance into the target room relative to the wall; A fourth determination module is configured to determine the nearest projection point of the point in the target room; The fifth determination module is configured to determine an area formed by points on the wall of the target room where the nearest projection point is located as a support area of the corresponding wall.
22. The device according to any one of claims 17 to 18 and 20, characterized in that: The third determining module comprises: The fourth determination submodule is configured to determine the target placement position from the candidate positions according to the ratio of the first area of the intersection to the second area of the area where the preset furniture combination is located.
23. The device according to any one of claims 17 to 18 and 20, characterized in that: Also includes: A first acquisition module is configured to acquire furniture information to be placed in the target room and a preset fixed matching method; The first grouping module is configured to group and match the furniture according to a preset fixed matching method and the furniture information to obtain the preset furniture combination.
24. A device for determining furniture layout, characterized in that: include: a sixth determination module, configured to determine a plurality of candidate positions of the combination of pre-placed furniture to be placed in the target room; a seventh determination module, configured to determine the fitness between the pre-placed furniture combination and the candidate position according to a support area of the wall where the pre-placed furniture combination is placed when the pre-placed furniture combination is placed at the candidate position; wherein the fitness is positively correlated with the intersection between the area where the pre-placed furniture combination is placed when the pre-placed furniture combination is placed at the candidate position and the support area, and the support area is an area inside the target room close to the wall, and the nearest projection points of the points in the support area are all located on the wall; an eighth determination module, configured to determine a target placement position of the preset furniture combination from the plurality of candidate positions according to the fitness; Wherein, the eighth determination module includes: The seventh determination submodule is configured to determine the candidate position corresponding to the maximum fitness as the target placement position.
25. The device according to claim 24, characterized in that The seventh determination module comprises: A fifth determination submodule is configured to determine the intersection between the support area and the area where the pre-set furniture combination is placed at the candidate position; The sixth determination submodule is configured to determine the fitness according to the ratio of the first area of the intersection to the second area of the area where the preset furniture combination is located.
26. The device according to claim 24 or 25, characterized in that The sixth determining module comprises: The eighth determination submodule is configured to determine the center point of the optional placement area of the preset furniture combination as the candidate position.
27. The device according to claim 24 or 25, characterized in that When the pre-set furniture is a plurality of combinations, the sixth determining module includes: A ninth determination submodule is configured to determine a plurality of combinations formed by a plurality of the preset furniture combinations at optional positions in the target room; The tenth determination submodule is configured to remove combinations in which at least two of the pre-placed furniture combinations are placed overlappingly from the multiple combinations, and determine the remaining combinations as candidate position combinations; wherein the candidate position combination includes candidate positions of each of the multiple pre-placed furniture combinations.
28. The device according to claim 27, characterized in that The ninth determining submodule comprises: The eleventh determination submodule is configured to determine the plurality of combinations according to the relative position relationship and the optional positions of the plurality of pre-placed furniture combinations in the target room when at least two of the plurality of pre-placed furniture combinations have a relative position relationship.
29. The device according to any one of claims 24-25 and 28, characterized in that: Also includes: A second moving module is configured to move the door and / or window of the target room from an original position into the room in a floor plan including the target room, so that the moved door and / or window extends a preset distance relative to the wall into the target room; a ninth determination module, configured to determine a nearest projection point of a point in the target room; The tenth determination module is configured to determine an area formed by points on the wall of the target room where the nearest projection points are located as a support area for placing the preset furniture combination close to the wall.
30. The device according to any one of claims 24-25 and 28, characterized in that: Also includes: A second acquisition module is configured to acquire furniture information to be placed in the target room and a preset fixed matching method; The second grouping module is configured to group and match the furniture according to a preset fixed matching method and the furniture information to obtain the preset furniture combination.
31. A furniture layout device, characterized in that: include: an eleventh determination module, configured to determine a target placement position of the preset furniture combination in a floor plan including a target room; wherein the target placement position is determined using the device according to any one of claims 17 to 30; A third acquisition module is configured to obtain a furniture layout display diagram in which the preset furniture combination is placed at the target placement position according to the floor plan and the target placement position; The output module is configured to output the furniture layout display diagram.
32. A furniture layout device, characterized in that: include: A receiving module is configured to receive a floor plan of a target room and furniture information from a client; wherein the furniture information includes furniture to be placed in the target room and size information of the furniture; A third grouping module is configured to group and match the furniture according to the preset fixed matching mode of the furniture and the size information, and obtain at least one preset furniture combination; A twelfth determination module is configured to determine a target placement position of the preset furniture combination in a floor plan including the target room; A fourth acquisition module is configured to obtain, according to the floor plan and the target placement position, a furniture layout display diagram in which the preset furniture combination is placed at the target placement position; A returning module, configured to return the furniture layout display image to the client; Wherein, the twelfth determination module includes: The twelfth determination submodule is configured to determine the target placement position using the device described in any one of claims 17-30.
33. An electronic device, characterized in that: comprising a memory and a processor; wherein, The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method according to any one of claims 1 to 16.
34. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed by a processor, the method according to any one of claims 1 to 16 is implemented.
Citation Information
Patent Citations
Furniture simulation layout method and furniture simulation layout system
CN103778538A
Scene layout saving and reappearing method based on father-son constraints
CN107240151A
Furniture layout method based placement rule
CN107368911A
Regular virtual space furniture intelligent layout method
CN110442952A
Automatically creating and modifying furniture layouts in design software
US20110191706A1
