Room layout updating method and device, electronic equipment and storage medium
By updating the room layout based on the common wall matching strategy in house design, the problem of the inability to effectively retain the original room information in the existing technology is solved, and efficient and accurate room information retention and design efficiency improvement are achieved.
Patent Information
- Application Number
- CN202411746726.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2044-11-29
AI Technical Summary
When handling wall changes in house design, the prior art cannot effectively retain the original room information, resulting in inefficient design and design errors.
By responding to the wall update operation, a new space object collection is obtained, and the new space is matched with the initial room based on the common wall matching strategy, the space object group is determined, the room attributes of the initial room are retained, and the room attributes are set or further matched for the new space that has not been matched successfully.
It realizes the retention of original information in the original house space, reduces design workload, improves matching accuracy and design efficiency, and is suitable for various types of wall operations.
Smart Images

Figure CN119670207A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of decoration design, and in particular to a room layout updating method, device, electronic device and storage medium. Background Art
[0002] In a house design scenario, it is common to modify the room layout based on architectural design and interior decoration software, such as using software to process walls, changing the walls by adding walls, deleting walls, and moving walls, thereby modifying the room layout.
[0003] In the prior art, after the wall is processed so that the wall changes, the room information has the following defects when it is updated:
[0004] 1. The original room information cannot be effectively retained and the room properties need to be re-entered or set.
[0005] 2. Insufficient ability to handle complex situations, which may easily lead to information loss or mismatching.
[0006] Due to the above problems in dealing with walls, the house design efficiency is low and design errors are prone to occur, which in turn affects the design effect. Summary of the invention
[0007] In view of the above problems, embodiments of the present application provide a room layout updating method, device, electronic device and storage medium that overcome the above problems or at least partially solve the above problems.
[0008] In a first aspect, an embodiment of the present application provides a room layout updating method, comprising:
[0009] In response to the wall update operation on the original house space, a space object set including N new spaces is obtained;
[0010] Based on the common wall matching strategy, the N new spaces in the space object set are matched with the M initial rooms corresponding to the original house space to determine a space object group, wherein the space object group includes a new space and an initial room that are successfully matched and have the largest number of common walls, and M and N are both integers greater than or equal to 1;
[0011] Determine that the new space in the space object group is a new room and retain the room attributes of the corresponding initial room;
[0012] In response to the existence of a new space that has not been successfully matched, the new space is determined to be a new room and room attributes are set, or the new space is matched with the remaining initial rooms based on a common point matching strategy, and the room attributes corresponding to the new space are determined based on the matching situation.
[0013] In a second aspect, an embodiment of the present application provides a room layout updating device, including:
[0014] An update acquisition module, used for acquiring a space object set including N new spaces in response to a wall update operation on the original house space;
[0015] a matching determination module, configured to match the N new spaces in the space object set with the M initial rooms corresponding to the original house space based on a common wall matching strategy, and determine a space object group, wherein the space object group includes a new space and an initial room that are successfully matched and have the largest number of common walls, and M and N are both integers greater than or equal to 1;
[0016] A determination and retention module, used to determine that the new space in the space object group is a new room and retain the room attributes of the corresponding initial room;
[0017] The first processing module is used to, in response to the existence of a new space that has not been successfully matched, determine that the new space is a new room and set room attributes, or, based on a common point matching strategy, match the new space with the remaining initial rooms, and determine the room attributes corresponding to the new space based on the matching situation.
[0018] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the room layout update method as described in the first aspect above.
[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the room layout updating method described in the first aspect above are implemented.
[0020] The technical solution of the embodiment of the present application obtains N new spaces in response to the wall update operation on the original house space, matches the N new spaces with the M initial rooms corresponding to the original house space based on the common wall matching strategy, determines at least one space object group, determines the new space in the space object group as a new room and retains the room attributes of the matched initial room, thereby retaining the original information in the original house space and reducing the design workload; in the case where there is a new space that has not been successfully matched after the common wall matching, the room attributes corresponding to the new space are set or the matching is continued based on the common point matching strategy, which can adapt to complex situations, improve matching accuracy, and retain room information efficiently and accurately.
[0021] Moreover, the solution provided in this application is highly flexible, suitable for various types of wall operations, and can accurately reflect space changes; at the same time, it has a high degree of automation, reducing the need for manual adjustment, and improving design efficiency and user design experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A schematic diagram showing a room layout updating method provided in an embodiment of the present application;
[0023] Figure 2 A schematic diagram showing matching of a new space with an initial room after a wall is moved provided in an embodiment of the present application;
[0024] Figure 3 A schematic diagram showing a second object group determined after a wall is moved according to an embodiment of the present application;
[0025] Figure 4 Schematic diagram of setting room attributes for a new space provided in an embodiment of the present application Figure 1 ;
[0026] Figure 5 Schematic diagram of setting room attributes for a new space provided in an embodiment of the present application Figure 2 ;
[0027] Figure 6 A schematic diagram showing how to retain the room attributes of an initial room and reset the room attributes for a new space provided by an embodiment of the present application;
[0028] Figure 7 It represents an example of forming a vacuum space provided by an embodiment of the present application;
[0029] Figure 8 A schematic diagram showing a room layout updating device provided in an embodiment of the present application;
[0030] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0032] It should be understood that the "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. The multiple in the embodiments of the present application can include two and more than two.
[0033] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the following processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0034] The present application embodiment provides a room layout update method, such as Figure 1 Said method comprises the following steps:
[0035] Step 101: In response to a wall update operation on an original house space, a space object set including N new spaces is obtained, where N is an integer greater than or equal to 1.
[0036] In the housing design scenario, each wall in the original housing space corresponds to a wall identifier, such as a wall ID (Identity Document), and different walls are distinguished based on the wall identifier. When the wall in the original housing space needs to be changed, in response to the wall update operation on the original housing space, a space object set including N new spaces corresponding to the wall update is obtained.
[0037] The wall update operation may be adding a wall, deleting a wall, moving a wall, etc. The space object set determined based on the wall update operation includes one or more new spaces. For example, if the wall update operation is deleting a wall, in response to the wall deletion operation, a space object set including one new space is determined; or if the wall update operation is adding a wall, in response to the wall addition operation, a space object set including multiple new spaces is determined.
[0038] Step 102: Based on the common wall matching strategy, match the N new spaces in the space object set with the M initial rooms corresponding to the original house space to determine a space object group, where the space object group includes a new space and an initial room that are successfully matched and have the largest number of common walls, where M is an integer greater than or equal to 1.
[0039] After determining the spatial object set based on the wall update operation, based on a common wall matching strategy, the N new spaces in the spatial object set are wall matched with the M initial rooms corresponding to the original house space to determine one or more spatial object groups based on the wall matching situation.
[0040] The number of initial rooms corresponding to the original house space is greater than or equal to 1. Since the wall update operation can be adding a wall, deleting a wall, and moving a wall, the value of M can be greater than or equal to N, or less than N.
[0041] When matching N new spaces with M initial rooms, traverse the N new spaces, and for each new space, find the initial room with the largest number of common walls with the current new space in the M initial rooms. After finding the initial room with the largest number of common walls with the current new space, determine that the current new space is successfully matched with the found initial room, and then determine the space object group corresponding to the current new space. For any space object group, it includes a new space and an initial room that are successfully matched and have the largest number of common walls, that is, the space object group is associated with a new space from the space object set and an initial room from the original house space.
[0042] Step 103: Determine that the new space in the space object group is a new room and retain the room attributes of the corresponding initial room.
[0043] After determining one or more space object groups based on the common wall matching strategy, for each space object group, determine that the new space in the space object group is a new room with the same room attributes as the corresponding initial room. That is, when a wall update occurs, there is no need to set the room attributes for the new space in the space object group, and the room attributes corresponding to the initial room in the space object group are retained, so as to retain the original room information in the original house space.
[0044] The room attributes in this embodiment include the room name. In the case of a wall update, after the space object set is spatially matched with the original house space to determine the space object group based on a common wall matching strategy, there is no need to name the new space in the space object group. The new space is determined to be a new room, and the room name of the corresponding initial room is retained, so that the new room can continue to use the room name of the initial room, thereby retaining the original room information and reducing repeated input work.
[0045] As an example, a wall update operation is a wall move operation, such as Figure 2As shown, the original house space corresponds to two initial rooms, namely initial room A1 and initial room B1. Initial room A1 is the master bedroom, and initial room B1 is the study. In response to the wall moving operation, a space object set including two new spaces is determined, and the space object set includes new space A2 and new space B2. Since new space A2 has the largest number of common walls with initial room A1, and new space B2 has the largest number of common walls with initial room B1, the room names of initial room A1 and initial room B1 are retained, and the name of the new room corresponding to new space A2 is determined to be the master bedroom, and the name of the new room corresponding to new space B2 is determined to be the study.
[0046] It should be noted that, due to different layout structures of different house spaces, after the house space walls are updated and the new space is matched with the initial room based on a common wall matching strategy, a one-to-one match between the new space and the initial room can be achieved, or there may be a remaining new space that has not been successfully matched. In the case where the new space and the initial room are matched one-to-one, although the wall update causes the house layout to change, the updated new space matches the original old room (initial room) one-to-one, so the original room information can be retained to the greatest extent. In the case where there are remaining new spaces that have not been successfully matched, continue to execute step 104.
[0047] Step 104: In response to the existence of a new space that has not been successfully matched, determine the new space as a new room and set room attributes, or match the new space with the remaining initial rooms based on a common point matching strategy, and determine the room attributes corresponding to the new space based on the matching situation.
[0048] If there are still unmatched new spaces after common wall matching, different methods can be used to handle the new spaces based on the actual situation. Specifically, in response to the existence of unmatched new spaces, the new spaces can be directly set as new rooms after the layout is updated, and the room attributes can be set for the new rooms; or, in response to the existence of unmatched new spaces, the unmatched new spaces and the remaining initial rooms can be matched using the common point matching strategy, and the room attributes corresponding to the new spaces can be determined based on the point matching situation.
[0049] After completing the common wall matching, for the special case where there are new spaces that have not been successfully matched, further matching is performed based on the point matching strategy. This can improve the matching accuracy while adapting to complex situations, and can efficiently and accurately retain the room information.
[0050] The above implementation scheme of the present application responds to the wall update operation on the original house space, obtains N new spaces, matches the N new spaces with the M initial rooms corresponding to the original house space based on the common wall matching strategy, determines at least one space object group, determines the new space in the space object group as a new room and retains the room attributes of the matched initial room, thereby retaining the original information in the original house space and reducing the design workload; in the case where there is a new space that has not been successfully matched after the common wall matching, the room attributes corresponding to the new space are set or the matching is continued based on the common point matching strategy, which can adapt to complex situations, improve matching accuracy, and retain room information efficiently and accurately.
[0051] Moreover, the solution provided in this application is highly flexible, suitable for various types of wall operations, and can accurately reflect space changes; at the same time, it has a high degree of automation, reducing the need for manual adjustment, and improving design efficiency and user design experience.
[0052] The process of determining the space object group is introduced below. Optionally, based on the common wall matching strategy, the N new spaces in the space object set are matched with the M initial rooms corresponding to the original house space to determine the space object group, including the following steps:
[0053] Match the N new spaces with the M initial rooms to determine the first object group whose wall numbers and wall identifiers completely match;
[0054] Based on the matching principle of having the largest number of common walls, the remaining new spaces in the space object set and the remaining initial rooms corresponding to the original house space are matched again to determine the second object group;
[0055] The space object group includes a first object group and a second object group, and the matching new space and the initial room in the second object group have at least one common wall.
[0056] When matching the N new spaces in the space object set with the M initial rooms corresponding to the original house space, first determine the first object group including a new space and an initial room based on the complete matching strategy, and the number of walls and wall identifications corresponding to the new space and the initial room are exactly the same. Specifically, for each of the N new spaces, find out whether there is an initial room with the same number of walls and completely matching wall identifications as the current new space. If the initial room is found, the current new space and the found initial room are determined to be completely matched, and then the first object group is determined. That is, for a new space and an initial room included in the first object group, the two are completely matched in terms of the number of walls and wall identifications, and the number of walls they share is the number of walls corresponding to the new space or the initial room.
[0057] After determining one or more first object groups based on the complete matching strategy, the remaining new spaces in the space object set and the remaining initial rooms corresponding to the original house space are matched based on the matching principle of having the largest number of common walls to determine a second object group including a new space and an initial room, and the new space and the initial room have at least one common wall. For a new space and an initial room in the second object group, the number of common walls corresponding to the two is greater than the number of common walls corresponding to the combination of the new space and the other remaining initial rooms.
[0058] In this embodiment, the first object group and the second object group both belong to the space object group, that is, the space object group includes the first object group that completely matches the new space with the initial room, and the second object group that corresponds to at least one common wall between the new space and the initial room.
[0059] The following is an example to describe the process of determining the second object group. Figure 3 As shown, the original house space corresponds to two initial rooms, namely, initial room C1 and initial room D1. Initial room C1 is a cloakroom, and initial room D1 is a master bedroom. In response to the wall moving operation (the wall moving operation at this time drives the wall size to change), a space object set including two new spaces is determined, and the space object set includes new space C2 and new space D2. For the new space C2, the number of common walls it has with the initial room C1 is 4, and the number of common walls it has with the initial room D1 is 1; for the new space D2, the number of common walls it has with the initial room D1 is 4, and the number of common walls it has with the initial room C1 is 1; therefore, the new space C2 has the largest number of common walls with the initial room C1, and the new space D2 has the largest number of common walls with the initial room D1. The new space C2 and the initial room C1 constitute a second object group, and the new space D2 and the initial room D1 constitute a second object group. Since the second object group belongs to the space object group, the room names of the initial room C1 and the initial room D1 are retained, and the name of the new room corresponding to the new space C2 is determined to be the cloakroom, and the name of the new room corresponding to the new space D2 is determined to be the master bedroom.
[0060] Wherein, based on the matching principle of having the largest number of common walls, the remaining new spaces in the space object set and the remaining initial rooms corresponding to the original house space are matched again to determine the second object group, including:
[0061] Sort the remaining new spaces in the space object set according to the number of walls from most to least;
[0062] The remaining new spaces in the space object set are traversed in sorted order, and the initial rooms that have the largest number of common walls with the new spaces are searched in the remaining initial rooms corresponding to the original house spaces to construct a second object group.
[0063] After determining one or more first object groups based on the complete matching strategy, the remaining new spaces in the spatial object set are sorted from most to least according to the number of walls. For the sorted new spaces, they are traversed one by one in the sorting order, so as to find the initial room with the largest number of common walls with the current new space in the remaining initial rooms corresponding to the original house space for each remaining new space. Then, the current new space and the found initial room are used to construct a second object group, so as to match the remaining new spaces in the spatial object set and the remaining initial rooms corresponding to the original house space according to the matching principle of having the largest number of common walls, and construct one or more second object groups, so as to achieve that after determining the first object group based on the complete matching strategy, the second object group is determined through continuous wall matching operations, and the original room information is retained as much as possible.
[0064] In the above implementation scheme, the new space is first matched with the initial room based on the complete matching strategy to determine a first object group including the new space and the initial room that are fully adapted in terms of the number of walls and the wall identification. Then, the remaining new spaces and the remaining initial rooms are matched based on the matching principle of having the largest number of common walls to determine a second object group including new spaces and initial rooms corresponding to at least one common wall, so as to retain the original room information as much as possible through continuous wall matching operations and reduce repeated input work.
[0065] In an optional embodiment of the present application, the method further includes: after determining the space object group based on the common wall matching strategy, in response to the existence of a new space that has not been successfully matched, identifying the number of walls corresponding to the new space that has not been successfully matched;
[0066] When the number of walls corresponding to the unmatched new space is greater than 3, the new space is determined to be a new room and room attributes are set;
[0067] When the number of walls corresponding to the new space that has not been successfully matched is 3, in response to the absence of an unmatched initial room, the new space is determined to be a new room and the room attributes are set; or, in response to the presence of an unmatched initial room, the new space and the remaining initial rooms are matched based on the common point matching strategy.
[0068] After determining the first object group and the second object group based on the common wall matching strategy, check whether there are new spaces in the space object set that have not been successfully matched. If there are new spaces that have not been successfully matched, identify the number of walls corresponding to the new space. When the number of walls corresponding to the new space is greater than 3, determine that the new space is a new room and set its corresponding room attributes. It should be noted that if the number of walls corresponding to the new spaces that have not been successfully matched is greater than 3, for the remaining initial rooms, the initial rooms will be deleted after the matching is completely completed. As an example, Figure 4As shown, before the wall is updated, the initial room 1 and the initial room 2 are in a non-contact state. After the wall of the initial room 1 is moved (driving the initial room 1 to move as a whole), new space A, new space B and new space C are formed. The new space B and the initial room 2 have a common wall, and the new space A and the initial room 1 have a common wall, so two second object groups can be formed. The new space A forms a new room A that retains the room attributes of the initial room 1, and the new space B forms a new room B that retains the room attributes of the initial room 2. For the new space C, it corresponds to 4 walls, and the new space C is directly determined as the new room C and the room attributes are set for it.
[0069] When the number of walls corresponding to the new space is equal to 3, continue to detect whether there is an unmatched initial room. In response to the absence of an unmatched initial room, determine that the new space is a new room and set its room properties. In response to the existence of an unmatched initial room, continue to match the remaining new spaces and the remaining initial rooms based on the common point matching strategy.
[0070] The following example describes the process of determining that the new space is a new room and setting room properties when the remaining new space corresponds to three walls and there is no unmatched initial room. Figure 5 As shown, when the wall update (e.g., adding a wall) operation is not performed, it corresponds to the initial room 1 and the initial room 2, and after the wall is added, it corresponds to the new space 1, the new space 2, and the new space 3. Among them, the new space 1 is completely matched with the initial room 1, and the first object group can be constructed. The new space 2 and the initial room 2 have a common wall, and the second object group can be constructed. The room attributes (room name) corresponding to the new space 1 are the room attributes of the initial room 1, and the room attributes (room name) corresponding to the new space 2 are the room attributes of the initial room 2. The new space 3 corresponds to 3 walls, and since there is no initial room that has not been successfully matched, the new space 3 is determined to be a new room and its corresponding room attributes are set.
[0071] Among them, when matching the new space and the remaining initial rooms based on the common point matching strategy, and determining the room attributes corresponding to the new space based on the matching situation, it includes:
[0072] For the initial room that has not been successfully matched, searching for a new space that has a common point with the initial room among the new spaces that have not been successfully matched;
[0073] In response to finding a new space having a common point with the initial room, it is determined that the initial room and the found new space are matched successfully, and the found new space is determined to be a new room and retains the room attributes of the corresponding initial room.
[0074] For the case where the number of walls corresponding to the unmatched new space is 3 and there is an unmatched initial room, the common point matching strategy is used to match the unmatched new space and the initial room. The specific matching process is as follows: For the unmatched initial room, find a new space that has common points with the current initial room in the unmatched new space.
[0075] In response to finding a new space that has common points with the initial room (determining that the current initial room contains points that constitute the new space), it is determined that the current initial room and the found new space are successfully matched based on the points. At this time, the found new space is determined as a new room and the room attributes of the corresponding initial room are retained, so as to retain the room attributes of the initial room after the point matching is successful.
[0076] The number of new spaces found that have a common point with the initial room is at least one. In response to finding a new space that has a common point with the initial room, the room attributes of the corresponding initial room are retained for the new space; in response to finding at least two new spaces that have a common point with the initial room, the room attributes of the corresponding initial room are retained for one of the at least two new spaces, and the room attributes are set for the remaining at least one new space.
[0077] If the number of new spaces found that have common points with the initial room is one, then after retaining the room attributes of the initial room, the room attributes of the initial room are directly assigned to the current new space, so as to use the new space to retain the information of the original room. If the number of new spaces found that have common points with the initial room is at least two, then for any one of the at least two new spaces, the room attributes of the initial room are retained, and the room attributes of the remaining at least one new space are reset.
[0078] As an example, Figure 6 As shown, when the wall is not updated (such as the wall is moved), it corresponds to the initial room 1 and the initial room 2, and after the wall is moved, it corresponds to the new space A, the new space B and the new space C. Among them, the new space A and the initial room 1 have a common wall, and the second object group can be constructed. For the new space B and the new space C, they have common points with the initial room 2 (such as the position marked by the circle in the figure), so for any new space, such as the new space B, the room attributes of the initial room 2 can be retained, and the room attributes of another new space (new space C) can be reset.
[0079] In the above implementation scheme, after determining the space object group based on the common wall matching strategy, for the new space that has not been successfully matched, the corresponding number of walls is identified, and the room attributes are reset according to the corresponding number of walls. Alternatively, based on the number of walls and the existence of the initial room that has not been successfully matched, a suitable method is used to retain the room attributes, so as to improve the matching accuracy while handling complex situations.
[0080] In another embodiment of the present application, after receiving the wall update operation of the original house space, it also includes: detecting whether the wall of the pre-marked vacuum space has changed; in response to the wall of the vacuum space changing, determining that the vacuum space is a new room and setting the room attributes.
[0081] When dividing the room in the editor, there is a component called concave and convex wall, which causes the vacuum space to be generated. When processing, the backend gives the point data and the room data (excluding the vacuum space) to the frontend, and the frontend traverses the points to form spaces one by one. Since the vacuum space is also a closed figure, it will also be recognized as a space, such as Figure 7 As shown in the figure, the three places indicated in the figure are all vacuum spaces. If the vacuum space is not processed, the vacuum space will be left when the space-room mapping is performed, which is equivalent to creating a new room, which is incorrect. Therefore, when the data provided by the backend is loaded for the first time, after all normal rooms are matched successfully, the remaining space is marked as vacuum space, and the vacuum space is stored in the rooms collection (which stores all room information on the floor).
[0082] After the wall changes, when matching the new space with the old room, the marked vacuum space is selected first, and then it is determined whether the wall of the vacuum space has changed. If it has not changed, the vacuum space is deleted from the new space data and the old room data, and then subsequent matching is performed. If the wall of the vacuum space has changed, the vacuum space is deleted from the rooms collection, the vacuum space is determined to be a new room, and the room attributes are set, and then subsequent matching is performed.
[0083] The accuracy of space utilization analysis can be improved by accurately identifying and processing vacuum space. After introducing the concept and processing mechanism of vacuum space, the integrity and accuracy of space analysis can be further improved.
[0084] The above is the overall implementation plan of the room layout update method provided in the embodiment of the present application. It is based on the proposed multi-level and multi-dimensional room information matching algorithm, combined with complete matching, maximum number of common wall matching and common point matching, to retain the original room information to the greatest extent, so as to efficiently retain the room information and reduce repeated input work, and can handle complex situations and improve matching accuracy; by accurately identifying and processing vacuum space, the accuracy of space utilization analysis can be improved, and after introducing the concept and processing mechanism of vacuum space, the integrity and accuracy of space analysis can be further improved.
[0085] The solution provided in this application is highly flexible, suitable for various types of wall operations, and can accurately reflect spatial changes; at the same time, it has a high degree of automation, reduces the need for manual adjustment, and improves design efficiency and user design experience.
[0086] The present application embodiment provides a room layout updating device, such as Figure 8 As shown, including:
[0087] An update acquisition module 801 is used to acquire a space object set including N new spaces in response to a wall update operation on the original house space;
[0088] A matching determination module 802 is used to match the N new spaces in the space object set with the M initial rooms corresponding to the original house space based on a common wall matching strategy to determine a space object group, wherein the space object group includes a new space and an initial room that are successfully matched and have the largest number of common walls, and M and N are both integers greater than or equal to 1;
[0089] A determination and retention module 803 is used to determine that the new space in the space object group is a new room and retain the room attributes of the corresponding initial room;
[0090] The first processing module 804 is used to, in response to the existence of a new space that has not been successfully matched, determine that the new space is a new room and set room attributes, or, based on a common point matching strategy, match the new space with the remaining initial rooms, and determine the room attributes corresponding to the new space based on the matching situation.
[0091] Optionally, the matching determination module includes:
[0092] A first matching determination submodule is used to match the N new spaces with the M initial rooms to determine a first object group whose wall quantities and wall identifiers completely match;
[0093] A second matching determination submodule is used to rematch the remaining new spaces in the space object set and the remaining initial rooms corresponding to the original house space based on the matching principle of having the largest number of common walls, so as to determine a second object group;
[0094] The space object group includes the first object group and the second object group, and the matching new space and the initial room in the second object group have at least one common wall.
[0095] Optionally, the second matching determination submodule includes:
[0096] A sorting unit, used to sort the remaining new spaces in the space object set according to the number of walls from large to small;
[0097] The processing unit is used to traverse the remaining new spaces in the space object set in order of sorting, search for the initial room with the largest number of common walls with the new space in the remaining initial rooms corresponding to the original house space, and construct the second object group.
[0098] Optionally, the device further comprises:
[0099] an identification module, configured to, after determining the space object group based on the common wall matching strategy, identify the number of walls corresponding to the new space that has not been successfully matched in response to the existence of the new space that has not been successfully matched;
[0100] A determination setting module, configured to determine that the new space is a new room and set room attributes when the number of walls corresponding to the new space that has not been successfully matched is greater than 3;
[0101] The second processing module is used to determine that the new space is a new room and set room attributes in response to the absence of unsuccessfully matched initial rooms when the number of walls corresponding to the unsuccessfully matched new space is 3, or to match the new space with the remaining initial rooms based on a common point matching strategy in response to the presence of unsuccessfully matched initial rooms.
[0102] Optionally, the first processing module includes:
[0103] A search submodule is used to search for a new space that has a common point with the initial room among the new spaces that have not been successfully matched.
[0104] The determination and retention submodule is used to determine that the initial room and the found new space match successfully in response to finding a new space having a common point with the initial room, determine that the found new space is a new room and retain the room attributes of the corresponding initial room.
[0105] Optionally, the determination and retention submodule is further used for:
[0106] In response to finding a new space having a common point with the initial room, retaining the room attributes of the corresponding initial room for the found new space;
[0107] In response to finding at least two new spaces having common points with the initial room, the room attributes of the corresponding initial room are retained for one of the at least two new spaces, and the room attributes are set for the remaining at least one new space.
[0108] Optionally, after receiving the wall update operation for the original house space, the device further includes:
[0109] A detection module is used to detect whether the wall of the pre-marked vacuum space has changed;
[0110] The determination and setting module is used to determine that the vacuum space is a new room and set room attributes in response to changes in the walls of the vacuum space.
[0111] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0112] An embodiment of the present application also provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, each process of the above-mentioned room layout updating method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0113] For example, Fig. 9 FIG. 1 shows a schematic diagram of the physical structure of an electronic device. Fig. 9 As shown, the electronic device may include: a processor 910, a communication interface 920, a memory 930 and a communication bus 940, wherein the processor 910, the communication interface 920 and the memory 930 communicate with each other via the communication bus 940. The processor 910 may call the logic instructions in the memory 930, and the processor 910 is used to execute each process of the room layout updating method of the embodiment of the present application, which will not be described one by one here.
[0114] In addition, the logic instructions in the above-mentioned memory 930 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.
[0115] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, each process of the above-mentioned room layout update method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0116] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0117] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0118] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
[0119] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0120] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0121] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0122] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0123] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0124] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0125] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A room layout updating method, characterized in that: include: In response to the wall update operation on the original house space, a space object set including N new spaces is obtained; Based on the common wall matching strategy, the N new spaces in the space object set are matched with the M initial rooms corresponding to the original house space to determine a space object group, wherein the space object group includes a new space and an initial room that are successfully matched and have the largest number of common walls, and M and N are both integers greater than or equal to 1; Determine that the new space in the space object group is a new room and retain the room attributes of the corresponding initial room; In response to the existence of a new space that has not been successfully matched, the new space is determined to be a new room and room attributes are set, or the new space is matched with the remaining initial rooms based on a common point matching strategy, and the room attributes corresponding to the new space are determined based on the matching situation.
2. The method according to claim 1, characterized in that The method of matching the N new spaces in the space object set with the M initial rooms corresponding to the original house space based on the common wall matching strategy to determine the space object group includes: Matching the N new spaces with the M initial rooms to determine a first object group whose wall quantities and wall identifiers completely match; Based on the matching principle of having the largest number of common walls, the remaining new spaces in the space object set and the remaining initial rooms corresponding to the original house space are matched again to determine a second object group; The space object group includes the first object group and the second object group, and the matching new space and the initial room in the second object group have at least one common wall.
3. The method according to claim 2, characterized in that The method of re-matching the remaining new spaces in the space object set and the remaining initial rooms corresponding to the original house space based on the matching principle of having the largest number of common walls to determine the second object group includes: The remaining new spaces in the space object set are sorted according to the number of walls from large to small; The remaining new spaces in the space object set are traversed in order according to the sorting order, and the initial rooms that have the largest number of common walls with the new space are searched among the remaining initial rooms corresponding to the original house space to construct the second object group.
4. The method according to claim 1, characterized in that: Also includes: After determining the space object group based on the common wall matching strategy, in response to the existence of a new space that has not been successfully matched, identifying the number of walls corresponding to the new space that has not been successfully matched; When the number of walls corresponding to the unmatched new space is greater than 3, the new space is determined to be a new room and room attributes are set; When the number of walls corresponding to the new space that has not been successfully matched is 3, in response to the absence of an unmatched initial room, the new space is determined to be a new room and the room attributes are set; or, in response to the presence of an unmatched initial room, the new space and the remaining initial rooms are matched based on the common point matching strategy.
5. The method according to claim 4, characterized in that The matching of the new space and the remaining initial rooms based on the common point matching strategy, and determining the room attributes corresponding to the new space based on the matching situation, include: For the initial room that has not been successfully matched, searching for a new space that has a common point with the initial room among the new spaces that have not been successfully matched; In response to finding a new space having a common point with the initial room, it is determined that the initial room and the found new space are matched successfully, and the found new space is determined to be a new room and retains the room attributes of the corresponding initial room.
6. The method according to claim 5, characterized in that in, In response to finding a new space having a common point with the initial room, retaining the room attributes of the corresponding initial room for the found new space; In response to finding at least two new spaces having common points with the initial room, the room attributes of the corresponding initial room are retained for one of the at least two new spaces, and the room attributes are set for the remaining at least one new space.
7. The method according to claim 1, characterized in that After receiving the wall update operation for the original house space, the method further includes: Detect whether the wall of the pre-marked vacuum space has changed; In response to a change in a wall of the vacuum space, the vacuum space is determined to be a new room and room attributes are set.
8. A room layout updating device, characterized in that: include: An update acquisition module, used for acquiring a space object set including N new spaces in response to a wall update operation on the original house space; a matching determination module, configured to match the N new spaces in the space object set with the M initial rooms corresponding to the original house space based on a common wall matching strategy, and determine a space object group, wherein the space object group includes a new space and an initial room that are successfully matched and have the largest number of common walls, and M and N are both integers greater than or equal to 1; A determination and retention module, used for determining that the new space in the space object group is a new room and retaining the room attributes of the corresponding initial room; The first processing module is used to, in response to the existence of a new space that has not been successfully matched, determine that the new space is a new room and set room attributes, or, based on a common point matching strategy, match the new space with the remaining initial rooms, and determine the room attributes corresponding to the new space based on the matching situation.
9. An electronic device, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the room layout updating method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the room layout updating method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
House type graph reading method and device and storage medium
CN109840376A
Combined indoor layout method and system based on house type data driving
CN111091618A
Wall marking method and device of building model, electronic equipment and readable medium
CN113946895A
Space unit acquisition method and device
CN114117606A
Indoor decoration layout method and device, electronic equipment and readable storage medium
CN114417485A