Region area determination method, device, medium, and program product

CN122615946APending Publication Date: 2026-08-21KE COM (BEIJING) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610551553.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-04-23
Publication Date
2026-08-21

AI Technical Summary

Technical Problem

[0003]现有技术中,需要人工使用特定软件在户型平面图中手动沿着外墙内边线进行区域框选,才可得到外墙内框面积,人工成本较高、可靠性也较差

Benefits of technology

[0015] The technical solution provided in this disclosure first obtains the first outline of the target house whose area is to be determined (that is, the outline of the target area of ​​the target house, which is the area after removing the area occupied by the outer wall and the area occupied by the inner wall), then obtains the offset parameters, performs an outward offset operation on the first outline based on the offset parameters to obtain the second outline (the area enclosed by the outline includes the area enclosed by the inner edge of the outer wall and the area occupied by the outer wall of the target house), and further performs an inward offset operation on the second outline based on the offset parameters to obtain the inner edge of the outer wall of the target house, thereby determining the area of ​​the area enclosed by the inner edge of the outer wall. The above method first obtains the outline of the target area, and then performs outward offset and inward offset operations sequentially. The outward offset operation can further cover the area occupied by the inner wall and the area occupied by the outer wall on the basis of the target area, and the inward offset operation can eliminate the area occupied by the outer wall, thus cleverly obtaining the inner edge line of the outer wall. Then, the area enclosed by the inner edge line of the outer wall can be obtained. The above method does not require manual selection of the area along the inner edge line of the outer wall on the floor plan, and can efficiently and quickly obtain the inner edge line of the outer wall, greatly saving the cost required to determine the area enclosed by the inner edge line of the outer wall (referred to as the area of ​​the inner frame of the outer wall), and has strong reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122615946A_ABST
    Figure CN122615946A_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure relate to a method, device, medium and program product for determining an area of a region, the method comprising: obtaining a first contour of a target house for which the area of the region is to be determined; the first contour being a contour of a target region of the target house, the target region being a region of the target house after removing an outer wall occupied region and an inner wall occupied region; obtaining an offset parameter; performing an outward offset operation on the first contour based on the offset parameter to obtain a second contour, and performing an inward offset operation on the second contour based on the offset parameter to obtain an inner edge line of an outer wall of the target house; the region enclosed by the second contour comprising: a region enclosed by the inner edge line of the outer wall of the target house and an outer wall occupied region of the target house; and determining an area of the region enclosed by the inner edge line of the outer wall of the target house based on the inner edge line of the outer wall of the target house. The embodiments of the present disclosure can effectively improve the area determination efficiency and save the required cost, and have strong reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to a method, apparatus, medium, and program product for determining the area of ​​a region. Background Technology

[0002] In scenarios such as scheme optimization in the architectural design stage, property area calculation in real estate surveying, and material usage estimation in the decoration industry, it is necessary to know the accurate area of ​​the inner frame of the outer wall. This area is the area enclosed by the inner edge of the outer wall of the house.

[0003] In existing technologies, it is necessary to manually select areas along the inner edge of the exterior wall on the floor plan using specific software in order to obtain the area of ​​the inner frame of the exterior wall. This method is labor-intensive and has poor reliability. Summary of the Invention

[0004] To solve the above-mentioned technical problems, or at least partially solve them, this disclosure provides a method, apparatus, medium, and program product for determining the area of ​​a region.

[0005] This disclosure provides a method for determining the area of ​​a region. The method includes: obtaining a first outline of a target house whose area needs to be determined; wherein the first outline is the outline of a target area of ​​the target house, and the target area is the area of ​​the target house after removing the area occupied by the exterior walls and the area occupied by the interior walls; obtaining an offset parameter; performing an outward offset operation on the first outline based on the offset parameter to obtain a second outline, and performing an inward offset operation on the second outline based on the offset parameter to obtain the inner edge line of the exterior walls of the target house; wherein the area enclosed by the second outline includes: the area enclosed by the inner edge line of the exterior walls of the target house and the area occupied by the exterior walls of the target house; and determining the area of ​​the area enclosed by the inner edge line of the exterior walls of the target house based on the inner edge line of the exterior walls of the target house.

[0006] Optionally, obtaining the first outline of the target house with the area to be determined includes: obtaining the floor plan data of the target house with the area to be determined; based on the floor plan data, obtaining the usage area of ​​each independent room in the target house and the footprint of each internal doorway in the target house; merging the usage areas of all the independent rooms and the footprints of all the internal doorways to obtain the target area of ​​the target house; and obtaining the first outline of the target area.

[0007] Optionally, obtaining the offset parameters includes: obtaining reference information; wherein the reference information includes at least one of the following: the maximum depth of the inner doorway of the target house, the thickness of the outer wall of the target house, and a preset offset reference value; and determining the offset parameters based on the reference information.

[0008] Optionally, determining the offset parameter based on the reference information includes: obtaining an offset reference value; wherein the offset reference value is determined based on the offset reference value and / or the thickness of the outer wall of the target building; if half of the maximum depth of the inner doorway is greater than the offset reference value, then the offset parameter is determined based on half of the maximum depth of the inner doorway; if half of the maximum depth of the inner doorway is not greater than the offset reference value, then the offset reference value is used as the offset parameter.

[0009] Optionally, the step of performing an inward offset operation on the second contour based on the offset parameter to obtain the inner edge line of the outer wall of the target house includes: performing an inward offset operation on the second contour based on the offset parameter to obtain an inward offset result; and optimizing the inward offset result based on the corner of the second contour to obtain the inner edge line of the outer wall of the target house.

[0010] Optionally, the optimization process includes trimming and / or completion processing. The optimization of the inward offset result based on the corner of the second contour to obtain the inner edge line of the target building's exterior wall includes: if the corner of the second contour contains a convex corner, determining the excess portion in the inward offset result based on the convex corner and trimming the excess portion; if the corner of the second contour contains a concave corner, determining the missing portion in the inward offset result based on the concave corner and completing the missing portion; and obtaining the inner edge line of the target building's exterior wall based on the optimized inward offset result.

[0011] Optionally, the step of completing the missing parts in the inward offset result includes: determining the endpoint group to be processed based on the missing parts in the inward offset result; wherein the endpoint group includes a first line endpoint and a second line endpoint, and the endpoint group has a one-to-one correspondence with the concave angle of the second contour; and performing curve connection processing on the first line endpoint and the second line endpoint in the endpoint group.

[0012] This disclosure also provides an electronic device, comprising: a storage device storing a computer program thereon; and a processing device for executing the computer program in the storage device to implement the area determination method provided in this disclosure.

[0013] This disclosure also provides a computer-readable storage medium storing a computer program for performing the area determination method provided in this disclosure.

[0014] This disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements the area determination method provided in this disclosure.

[0015] The technical solution provided in this disclosure first obtains the first outline of the target house whose area is to be determined (that is, the outline of the target area of ​​the target house, which is the area after removing the area occupied by the outer wall and the area occupied by the inner wall), then obtains the offset parameters, performs an outward offset operation on the first outline based on the offset parameters to obtain the second outline (the area enclosed by the outline includes the area enclosed by the inner edge of the outer wall and the area occupied by the outer wall of the target house), and further performs an inward offset operation on the second outline based on the offset parameters to obtain the inner edge of the outer wall of the target house, thereby determining the area of ​​the area enclosed by the inner edge of the outer wall. The above method first obtains the outline of the target area, and then performs outward offset and inward offset operations sequentially. The outward offset operation can further cover the area occupied by the inner wall and the area occupied by the outer wall on the basis of the target area, and the inward offset operation can eliminate the area occupied by the outer wall, thus cleverly obtaining the inner edge line of the outer wall. Then, the area enclosed by the inner edge line of the outer wall can be obtained. The above method does not require manual selection of the area along the inner edge line of the outer wall on the floor plan, and can efficiently and quickly obtain the inner edge line of the outer wall, greatly saving the cost required to determine the area enclosed by the inner edge line of the outer wall (referred to as the area of ​​the inner frame of the outer wall), and has strong reliability.

[0016] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0017] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0018] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 A flowchart illustrating a method for determining the area of ​​a region provided in an embodiment of this disclosure; Figure 2 This is a schematic diagram of a housing information processing result provided in an embodiment of the present disclosure; Figure 3This is a schematic diagram of a housing information processing result provided in an embodiment of the present disclosure; Figure 4 This is a schematic diagram of a housing information processing result provided in an embodiment of the present disclosure; Figure 5 This is a schematic diagram of a corner treatment provided in an embodiment of the present disclosure; Figure 6 This is a schematic diagram of a housing information processing result provided in an embodiment of the present disclosure; Figure 7 This is a schematic diagram of a housing information processing result provided in an embodiment of the present disclosure; Figure 8 A flowchart illustrating a method for determining the area of ​​a region provided in an embodiment of this disclosure; Figure 9 This is a schematic diagram of the structure of a region area determination device provided in an embodiment of the present disclosure; Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0020] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.

[0021] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.

[0022] The inventors discovered through research that the existing technology of manually selecting areas along the inner edges of exterior walls on a floor plan using specific software suffers from significant efficiency bottlenecks and accuracy deficiencies. This is especially true for complex floor plans, requiring substantial manpower and time, resulting in low efficiency in determining the inner boundary area of ​​the exterior walls. Furthermore, this manual selection method relies entirely on subjective human operation, making batch execution impossible and exhibiting poor reliability. Factors such as different handling methods for corner areas and mouse placement deviations during manual selection further complicate the process. This leads to significant discrepancies in the area of ​​the inner frame of the exterior walls determined by different individuals for the same apartment type, making it impossible to guarantee the accuracy of the final area. To improve upon these issues, this disclosure provides a method, device, medium, and program product for determining the area, which will be described in detail below.

[0023] Figure 1This is a flowchart illustrating a method for determining the area of ​​a region according to an embodiment of this disclosure. This method can be executed by a region area determining device, which can be implemented in software and / or hardware, and is generally integrated into an electronic device. Figure 1 As shown, the method mainly includes the following steps S102 to S106: Step S102: Obtain the first outline of the target house with the area to be determined; wherein, the first outline is the outline of the target area of ​​the target house, and the target area is the area of ​​the target house after removing the area occupied by the exterior walls and the area occupied by the interior walls. It can also be understood as the usable area of ​​the target house.

[0024] Any house whose inner frame area needs to be determined can be used as the target house. In practical applications, the floor plan data of the target house can be obtained first. For example, this floor plan data can be graphic data or vector data, without limitation. The floor plan data can be used to indicate the vertex coordinates, size parameters, and other parameter information of each room in the target house. Since the target area is the area of ​​the target house after removing the area occupied by the outer and inner walls, there is no need to consider the wall area. Therefore, the target area can be determined conveniently and quickly based on the floor plan data, and the accuracy of the target area can be guaranteed. Based on the determination of the target area, the outline of the target area can be directly obtained, that is, the first outline. In some examples, the first outline can be represented by vector data, such as by the endpoint coordinates of each line segment on the outline.

[0025] Step S104: Obtain offset parameters; perform an outward offset operation on the first contour based on the offset parameters to obtain the second contour, and perform an inward offset operation on the second contour based on the offset parameters to obtain the inner edge line of the outer wall of the target house; wherein, the area enclosed by the second contour includes: the area enclosed by the inner edge line of the outer wall and the area occupied by the outer wall of the target house.

[0026] Offset parameters are used to indicate the amount of contour offset. In practical applications, offset parameters can be preset parameter values ​​or parameter values ​​determined based on relevant information such as the thickness of the outer wall and the depth of the inner door opening of the target building. The specific values ​​can be flexibly set according to the actual situation.

[0027] Based on the known offset parameters, the first contour can be offset outwards to obtain the second contour. This outward offset further expands the area occupied by the inner and outer walls, ensuring the second contour encompasses the area enclosed by the inner edge of the outer wall and the area occupied by the outer walls of the target building. In some cases, the contour offset indicated by the offset parameters equals the thickness of the target building's outer walls. In this case, the second contour is the outer edge of the target building's outer walls, and the area it encloses includes the area enclosed by the inner edge of the outer walls and the area occupied by the outer walls of the target building, which is equal to the target building's total footprint. Specifically, this includes the usable areas of each room, the area occupied by the inner walls, and the area occupied by the outer walls. In other cases, the contour offset indicated by the offset parameters may be greater than the thickness of the target building's outer walls. In this case, the area enclosed by the second contour, in addition to the area enclosed by the inner edge of the outer walls and the area occupied by the outer walls of the target building, will also include the edge area outside the outer edge of the target building's outer walls. Both the outer wall area and the aforementioned edge area belong to the area outside the inner edge of the outer walls. Since the area occupied by the inner wall has been covered by the outward offset operation, the internal area enclosed by the inner edge of the outer wall has been completely merged into a whole. Based on this, the inward offset operation performed on the second contour will not affect the area enclosed by the inner edge of the outer wall, but will only affect the area outside the inner edge of the outer wall, such as removing the area occupied by the outer wall and other areas outside the inner edge of the outer wall, thus cleverly obtaining the inner edge of the outer wall.

[0028] Step S106: Determine the area enclosed by the inner edge line of the target building's outer walls. The area enclosed by the inner edge line of the target building's outer walls can also be referred to as the area of ​​the inner frame of the outer walls.

[0029] The area enclosed by the inner edge of the outer wall is a polygon. For example, the area enclosed by the inner edge of the outer wall can be determined by a geometric algorithm. In some specific examples, the area can be calculated by the shoelace formula (also known as the Gaussian area formula) or by calling library functions in the geometric calculation library. The entire calculation process is completed automatically by the computer program, which takes very little time and can have high accuracy.

[0030] In summary, the area determination method provided in this embodiment can first obtain the outline of the target area, and then perform outward offset and inward offset operations sequentially. The outward offset operation can further cover the area occupied by the inner wall and the area occupied by the outer wall on the basis of the target area, and the inward offset operation can eliminate the area occupied by the outer wall, thereby cleverly obtaining the inner edge line of the outer wall, and then obtaining the area enclosed by the inner edge line of the outer wall. The above method does not require manual selection of the area along the inner edge line of the outer wall on the floor plan, and can efficiently and quickly obtain the inner edge line of the outer wall, greatly saving the cost required to determine the area of ​​the inner frame of the outer wall, effectively improving the efficiency of area determination, and has strong reliability.

[0031] In some implementations, step S102, which is the step of obtaining the first outline of the target house with the area to be determined, can be performed as follows: steps (1) to (3): Step (1): Obtain the floor plan data of the target house whose area needs to be determined. For example, the floor plan data is vector data containing information such as the vertex coordinates and size parameters of each room of the target house.

[0032] Step (2): Based on the house type data, obtain the usage area of ​​each independent room in the target house and the area occupied by each internal doorway in the target house.

[0033] For example, based on the floor plan data, the outlines of each individual room in the target house and the outlines of each internal doorway in the target house can be obtained. The outline of an individual room is the outline formed by the inner edges of the walls of the individual room, also known as the net outline line. The outline of an internal doorway is the outline formed by the edges of the internal doorway. In some examples, the floor plan data is vector data, and each of the above outlines is a polygon, which can be represented by a series of ordered vertex coordinates. For example, the outline of a room can be represented as... ,in This represents the coordinates of the i-th vertex of the room. The area enclosed by the outline of the independent room is the usable area of ​​the independent room, and the area enclosed by the outlines of each inner doorway is the occupied area of ​​the inner doorway. The boundaries of each of these areas can be accurately determined using the outlines.

[0034] Step (3) merges the usage areas of all independent rooms and the footprints of all internal doorways to obtain the target area of ​​the target house. An internal doorway is a doorway on an interior wall that connects at least two room areas.

[0035] For example, the usable areas of all independent rooms and the occupied areas of all internal doorways can be merged based on a geometric merging algorithm to obtain a continuous polygon. This embodiment of the disclosure does not limit the above geometric merging algorithm. In practical applications, the above-mentioned merging process can be achieved by directly using existing software tools for processing spatial geographic data, merging operations in computational geometry libraries, etc., to obtain the target area. The target area is usually a polygon, specifically the usable area of ​​the target house, which can also be called the interior area.

[0036] Step (4): Obtain the first contour of the target area. The contour formed by the edge lines of the target area is the first contour. The first contour can also be understood as the contour enclosed by the inner edge of the outer wall, the outer edge of the inner wall, and the edge of the inner doorway of the target building. For easier understanding, please refer to... Figure 2 The diagram shown illustrates a housing information processing result. In this diagram, the green lines represent the inner wall boundaries of individual rooms, and the area enclosed by the green lines is the usable area of ​​the individual room. The red lines represent the edge of the inner doorway, and the area enclosed by the red lines is the footprint of the inner doorway. It should be noted that... Figure 2 The image also illustrates other colors, such as the blue line representing the edge of the window opening. Since these are embedded in the wall, they don't need to be considered here; in this example, only the red and green lines need to be considered. Figure 2 In the middle, the individual rooms are merged through internal doorways to form a connected and complex target area. That is, the target area is the complex area after all the green-filled areas are merged, and the edge line of the complex area is the first outline.

[0037] By merging the usable areas of each independent room in the target house with the area occupied by the interior doorway, the discrete usable areas in the target house can be aggregated into a unified usable area or interior area. This efficiently and quickly yields the target area (i.e., the area of ​​the target house after removing the areas occupied by the exterior and interior walls), which serves as the reference geometry for subsequent calculations. This provides the data basis for automatically determining the area of ​​the interior frame of the exterior walls, effectively avoiding the tedious process of processing each room individually and significantly improving processing efficiency.

[0038] In some implementations, the step of obtaining the offset parameter in step S104 above can be performed as follows: steps a to b: Step a, obtain reference information; wherein, the reference information includes at least one of the following: the maximum depth of the inner doorway of the target house, the thickness of the outer wall of the target house, and a preset offset reference value. The inner doorway is used to connect at least two room areas, and the depth of the inner doorway is the thickness of the inner wall corresponding to the inner doorway; in some scenarios, it can also be directly referred to as the inner doorway thickness. Considering that the target house may contain multiple inner doorways, and the depths of these inner doorways may be the same or different, the maximum depth of the inner doorway is selected as the reference information. In practical applications, the maximum depth of the inner doorway and the thickness of the outer wall can both be obtained based on measurement. The preset offset reference value can be determined in advance based on one or more of the following: statistically obtained wall information of multiple houses, empirical values ​​obtained from the results of contour offset operations performed on multiple houses, etc. The above are only examples; other factors can also be considered in practical applications, which will not be listed here one by one. This embodiment of the disclosure does not limit the offset reference value, such as 240mm.

[0039] Step b: Determine the offset parameter based on the reference information. In some examples, the reference information contains only one type of data. In such cases, the offset parameter only needs to be determined based on the value of that data type. For instance, if the reference information only contains an offset reference value, the offset reference value is directly used as the offset parameter. If the reference information only contains the maximum value of the inner doorway depth, half of the maximum inner doorway depth can be used as the offset parameter, or the result obtained by adding a floating value to half of the maximum inner doorway depth can be used as the offset parameter. In other examples, the reference information contains multiple types of data. In these cases, the data values ​​of each of the multiple data types can be fused or analyzed to determine a suitable offset parameter. This method effectively ensures the rationality of the offset parameter. In some specific examples, step b can be performed as follows: Steps b1 to b3. Step b1, obtain the offset reference value; wherein the offset reference value is determined based on the offset reference value and / or the thickness of the exterior walls of the target building. For example, the offset reference value is the offset reference value or the thickness of the exterior walls, or the offset reference value is a weighted fusion value of the offset reference value and the thickness of the exterior walls.

[0040] Step b2: If half of the maximum depth of the inner doorway is greater than the offset reference value, then the offset parameter is determined based on half of the maximum depth of the inner doorway.

[0041] For example, assuming the offset baseline is 240mm and the maximum depth of the inner doorway is 500mm, half of the maximum depth of the inner doorway, 250mm, can be directly used as the offset parameter, or a small floating value can be added to 250mm as the offset parameter. As mentioned earlier, the offset parameter is used to indicate the contour offset. The purpose of the outward offset operation performed according to the offset parameter is to cover the area occupied by the inner wall, so that the internal area enclosed by the inner edge of the outer wall is completely merged into a whole. The inner doorway is used to connect two room areas sharing the same inner wall, and the depth of the inner doorway is equal to the thickness of the inner wall. Figure 2 It is known that the outline of an independent room is enclosed by the inner edge of its walls, and the outlines of each independent room are also components of the first outline to be offset outwards, all of which need to be offset outwards. If the inner edge of the walls of the two rooms corresponding to the inner doorway is offset outwards by half the depth of the inner doorway, then the area occupied by the inner wall between these two rooms will be covered. In the case of multiple inner doorways, if half of the maximum depth of the inner doorway is used as the offset parameter, then the inner edge of the walls of the two rooms corresponding to all the inner doorways in the target house will be offset by half of the maximum depth of the inner doorway, ensuring that all the area occupied by the inner wall in the target house is covered, thereby merging the multiple discrete room areas separated by the inner walls inside the target house into a whole. It should be noted that for inner doorways with smaller depths, the outward offset operation performed using the above offset parameters may cause partial overlap between the two room areas, but this will not affect the overall result, because the purpose of the outward offset operation is to merge the discrete room areas inside the target house into a whole, and even if there is some overlap, it will not affect the definition of the usable area of ​​the target house.

[0042] Step b3: If half of the maximum depth of the inner doorway is not greater than the offset reference value, then the offset reference value is used as the offset parameter. Based on the preceding analysis, if half of the maximum depth of the inner doorway is not greater than the offset reference value, then performing an outward offset operation according to the offset reference value can completely cover the area occupied by the inner walls of the target house, making the internal area enclosed by the inner edge of the outer walls a complete whole. Therefore, the offset reference value can be directly used as the offset parameter. By using the method described in steps b1 to b3, which comprehensively considers the maximum depth of the inner doorway and the offset reference value, the accuracy and rationality of the final offset parameter can be effectively guaranteed.

[0043] Based on the obtained offset parameters, an outward offset operation is performed on the first contour to obtain the second contour. For easier understanding, please refer to [link to relevant documentation]. Figure 3The diagram shown illustrates a housing information processing result, using the simplest housing structure as an example. It includes two rooms and an internal doorway between them. The internal doorway is located in the shared internal wall between room 1 and room 2. Figure 3 The left-hand diagram illustrates that the usable areas of Room 1 and Room 2, along with the area occupied by the inner doorway, are combined into the target area, all filled with light gray. The outline surrounding the target area is the first outline, which is formed by... Figure 3 The black lines on the left side of the image represent the contour. Based on the offset parameters, an outward offset operation is performed on the first contour, as shown below. Figure 3 As shown, each black line in the left-hand image is offset along its respective outward-pointing arrow. The final outward offset result can be found in [reference needed]. Figure 3 The right-hand diagram shows the outer contour (dashed outline) of the dark gray filled area, which is the second contour. This dark gray filled area includes the target area, as well as the areas occupied by the exterior and interior walls. It can also be described as the area enclosed by the second contour, encompassing both the area enclosed by the inner edge of the exterior walls and the area occupied by the exterior walls. By determining reasonable offset parameters as described above, the outward offset result can completely cover the area occupied by the interior walls, thus connecting the wall areas, discrete room usage areas, and interior doorway areas into a unified whole, which can be considered as the entire area occupied by the target building. Figure 3 This is merely a simple example; in real-world applications, houses are often much more complex. Based on the above operations, this disclosure also provides embodiments such as... Figure 4 The diagram shown illustrates the result of housing information processing. Figure 2 Based on the result of the outward offset operation, Figure 4 exist Figure 2 Based on this, in addition to the usage areas of each discrete room and the area occupied by the inner doorway, the area occupied by the inner wall and the area occupied by the outer wall are completely covered by the outward offset operation, thus obtaining a whole area.

[0044] In some implementations, the step S104 above, which involves performing an inward offset operation on the second contour based on the offset parameter to obtain the inner edge line of the outer wall of the target building, can be performed as follows: Steps A and B: Step A: Perform an inward offset operation on the second contour based on the offset parameters to obtain the inward offset result. As mentioned earlier, the purpose of the inward offset operation is to eliminate the area occupied by the outer wall, thereby obtaining the inner edge line of the outer wall. Based on the second contour obtained through the outward offset operation, the area enclosed by the second contour is shrunk inward by the same distance through the inward offset operation, thereby accurately eliminating the area occupied by the outer wall introduced by the outward offset operation.

[0045] Step B involves optimizing the inward offset result based on the corners of the second contour to obtain the inner edge line of the target building's exterior wall. It is understood that the second contour is typically a polygonal contour containing multiple corners, including convex and concave corners. The optimization process includes trimming and / or completion processing. Different corner types require different optimization processing methods. In practical applications, corresponding optimization operations can be performed on each corner of the second contour separately to ensure the reliability of the final inner edge line of the exterior wall.

[0046] Based on the optimization process, which includes cropping and / or completion, in some specific implementation examples, step B above can be performed as follows: Steps B1 to B3: Step B1: If the corner of the second contour includes a convex corner, then the excess portion in the inward offset result is determined based on the convex corner, and the excess portion in the inward offset result is trimmed. For easier understanding, please refer to... Figure 5 The diagram shown illustrates a corner treatment. Figure 5 The illustration shows a house layout with multiple corners, and simply marks one convex corner and one concave corner. For the convex corner, the two sides of the convex corner will intersect when they are offset inward, resulting in an extra part. Therefore, the extra part can be directly cut off to obtain a standard corner.

[0047] Step B2: If the corner of the second contour includes a concave corner, then determine the missing portion in the inward offset result based on the concave corner, and complete the missing portion in the inward offset result. See also... Figure 5 For concave corners, missing sections appear when the two sides of the concave corner are offset inward. These missing sections need to be filled in to ensure that the final inner edge line of the outer wall obtained by the inward offset is complete and continuous. In practical applications, the two endpoints of the missing sections can be connected with lines, such as smooth curves, to obtain a smooth corner.

[0048] For example, the missing parts in the inward offset result are filled in by: determining a set of endpoints to be processed based on the missing parts in the inward offset result; wherein the set of endpoints includes a first line endpoint and a second line endpoint, and the set of endpoints has a one-to-one correspondence with the concave angle of the second contour; and performing curve connection processing on the first line endpoint and the second line endpoint in the set of endpoints. See also Figure 5 The first and second line endpoints in the endpoint group form a concave angle before the inward offset operation, but are moved away from each other due to the inward offset operation. A smooth corner is obtained by connecting the curves.

[0049] Step B3: Based on the optimized inward offset result, obtain the inner edge line of the outer wall of the target house.

[0050] By using steps B1 to B3 above, the cornering issue in the inward offset result can be optimized, thus obtaining a continuous inner edge line of the outer wall. For easier understanding, please refer to... Figure 6 The diagram shown illustrates the result of housing information processing. Figure 5 Based on this, the area occupied by the outer wall is removed by offsetting inward, and the remaining area is the area surrounded by the inner edge of the outer wall of the house. Figure 6 For illustrative purposes only, this apartment layout only includes protruding corners. Figure 6 This illustration shows the final result after trimming the convex corner. Further details can be found in [link to relevant documentation]. Figure 7 The diagram shown illustrates the result of housing information processing. Figure 4 Based on this, the area occupied by the outer wall is eliminated by offsetting inward, ultimately obtaining the area enclosed by the inner edge of the outer wall, that is... Figure 7 All green-filled areas in the middle, among which, Figure 7 The corners in the image are all obtained after the above optimization process, making them smoother and more regular.

[0051] For ease of understanding, see [link to relevant documentation]. Figure 8 The flowchart shown is a method for determining the area of ​​a region, which mainly includes the following steps S802 to S816: Step S802: Obtain the floor plan data of the target house in the area to be determined.

[0052] Step S804: Based on the floor plan data, obtain the outlines of each independent room in the target house and the outlines of each interior doorway in the target house.

[0053] Step S806: Merge the outlines of all individual rooms and all interior doorways to obtain the first outline of the target house.

[0054] Step S808: Obtain reference information; wherein the reference information includes at least one of the following: the maximum depth of the inner doorway of the target house, the thickness of the outer wall of the target house, and a preset offset reference value.

[0055] Step S810: Determine the offset parameters based on the reference information.

[0056] Step S812: Perform an outward offset operation on the first contour based on the offset parameters to obtain the second contour. The area enclosed by the second contour includes the area enclosed by the inner edge of the outer wall of the target building and the area occupied by the outer wall of the target building. This operation can also be referred to as forward buffering operation.

[0057] Step S814: Perform an inward offset operation on the second contour based on the offset parameters to obtain the inner edge line of the outer wall of the target building. This operation can also be referred to as a reverse buffering operation.

[0058] Step S816: Determine the area enclosed by the inner edge of the outer wall of the target house.

[0059] The specific implementation methods for the above steps can be found in the aforementioned related content and will not be repeated here. The above method accurately determines the inner edge line of the outer wall by sequentially performing discrete region merging, forward offset, and reverse offset operations. Based on this, the inner frame area of ​​the outer wall can be determined efficiently and conveniently, eliminating the need for manual selection along the inner edge line on the floor plan. This significantly reduces the cost of determining the area of ​​the inner frame, effectively improving the efficiency of area determination and providing strong reliability. Furthermore, in the inward offset operation, the corners of the second contour can be optimized specifically according to concave and convex corner types, making the corners of the final inner edge line of the outer wall more regular, resulting in a smooth and accurate inner edge line, further improving the accuracy of the inner frame area. Moreover, the above operations have a unified standardized process, entirely executed by computer programs, effectively eliminating subjective biases and mouse-point errors caused by manual operation, fully guaranteeing area accuracy. The above method can be well applied to various apartment layouts, even complex layouts, and can efficiently and quickly obtain high-precision inner frame areas of the outer walls.

[0060] It should also be noted that the area determination method provided in this embodiment can be entirely based on vector floor plan data. The contours and areas involved can be directly represented by key point coordinates, without the need to obtain a planar floor plan image. Figures 2-7 All of these are intuitive and visual representations of the converted data for ease of understanding. Compared to image processing methods, the methods provided in this disclosure effectively reduce processing costs and computational load, significantly improving processing efficiency. Furthermore, for complex floor plans, directly extracting the inner edges of exterior walls from corresponding floor plan images using computer programs is difficult and inaccurate. In contrast, the methods provided in this disclosure can achieve high-precision results through data computation at a lower cost, exhibiting greater reliability and universality.

[0061] Corresponding to the aforementioned method for determining the area, this disclosure further provides a device for determining the area. Figure 9 This is a schematic diagram of a region area determination device provided in an embodiment of the present disclosure. The device can be implemented by software and / or hardware, and is generally integrated into an electronic device, such as... Figure 9 As shown, the area determination device includes: The first contour acquisition module 902 is used to acquire the first contour of the target house with the area to be determined; wherein, the first contour is the contour of the target area of ​​the target house, and the target area is the area of ​​the target house after removing the area occupied by the exterior walls and the area occupied by the interior walls. The offset operation module 904 is used to obtain offset parameters; perform an outward offset operation on the first contour based on the offset parameters to obtain a second contour; and perform an inward offset operation on the second contour based on the offset parameters to obtain the inner edge line of the outer wall of the target house; wherein, the area enclosed by the second contour includes: the area enclosed by the inner edge line of the outer wall of the target house and the area occupied by the outer wall of the target house. The area determination module 906 is used to determine the area of ​​the region enclosed by the inner edge line of the outer wall of the target house based on the inner edge line of the outer wall of the target house.

[0062] The aforementioned device can first obtain the outline of the target area, and then perform outward offset and inward offset operations sequentially. The outward offset operation can further cover the area occupied by the inner wall and the area occupied by the outer wall on the basis of the target area, and the inward offset operation can eliminate the area occupied by the outer wall, thus cleverly obtaining the inner edge line of the outer wall, and then obtaining the area enclosed by the inner edge line of the outer wall. The aforementioned device does not require manual selection of the area along the inner edge line of the outer wall on the floor plan, and can efficiently and quickly obtain the inner edge line of the outer wall, greatly saving the cost required to determine the area of ​​the inner frame of the outer wall, effectively improving the efficiency of area determination, and has strong reliability.

[0063] In some implementations, the first contour acquisition module 902 is specifically used for: acquiring the floor plan data of the target house with an area to be determined; based on the floor plan data, acquiring the usage area of ​​each independent room in the target house and the footprint of each inner doorway in the target house; merging the usage areas of all the independent rooms and the footprints of all the inner doorways to obtain the target area of ​​the target house; and acquiring the first contour of the target area.

[0064] In some embodiments, the offset operation module 904 is specifically used to: obtain reference information; wherein the reference information includes at least one of the following: the maximum depth of the inner doorway of the target house, the thickness of the outer wall of the target house, and a preset offset reference value; and determine offset parameters based on the reference information.

[0065] In some embodiments, the offset operation module 904 is specifically used to: obtain an offset reference value; wherein the offset reference value is determined based on the offset reference value and / or the thickness of the outer wall of the target house; if half of the maximum depth of the inner doorway is greater than the offset reference value, then an offset parameter is determined based on half of the maximum depth of the inner doorway; if half of the maximum depth of the inner doorway is not greater than the offset reference value, then the offset reference value is used as the offset parameter.

[0066] In some embodiments, the offset operation module 904 is specifically used to: perform an inward offset operation on the second contour based on the offset parameters to obtain an inward offset result; and optimize the inward offset result based on the turning angle of the second contour to obtain the inner edge line of the outer wall of the target house.

[0067] In some embodiments, the optimization process includes trimming and / or completion processing. The offset operation module 904 is specifically used to: if the corner of the second contour contains a convex corner, determine the redundant part in the inward offset result based on the convex corner, and trim the redundant part in the inward offset result; if the corner of the second contour contains a concave corner, determine the missing part in the inward offset result based on the concave corner, and complete the missing part in the inward offset result; and obtain the inner edge line of the outer wall of the target house based on the inward offset result after the optimization process.

[0068] In some embodiments, the offset operation module 904 is specifically used to: determine the endpoint group to be processed based on the missing part in the inward offset result; wherein, the endpoint group includes a first line endpoint and a second line endpoint, and the endpoint group has a one-to-one correspondence with the concave angle of the second contour; and perform curve connection processing on the first line endpoint and the second line endpoint in the endpoint group.

[0069] The area determination device provided in this disclosure can execute the area determination method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of the method.

[0070] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device embodiments can be referred to the corresponding process in the method embodiments, and will not be repeated here.

[0071] This disclosure provides an electronic device, which includes: a storage device storing a computer program thereon; and a processing device for executing the computer program in the storage device to implement the steps of any method of this disclosure.

[0072] The following is for reference. Figure 10 The diagram illustrates a structural schematic of an electronic device 1000 suitable for implementing embodiments of the present disclosure. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 10 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0073] like Figure 10 As shown, the electronic device 1000 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1008 into a random access memory (RAM) 1003. The RAM 1003 also stores various programs and data required for the operation of the electronic device 1000. The processing unit 1001, ROM 1002, and RAM 1003 are interconnected via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0074] Typically, the following devices can be connected to the I / O interface 1005: input devices 1006 including, for example, a touchscreen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 1007 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1008 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows electronic device 1000 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 10 An electronic device 1000 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0075] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 1009, or installed from storage device 1008, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of embodiments of this disclosure.

[0076] In addition to the methods and devices described above, embodiments of this disclosure can also be computer program products, comprising computer program instructions that, when executed by a processor, cause the processor to perform the methods provided in the embodiments of this disclosure. The computer program product can be written in any combination of one or more programming languages ​​to perform the operations of the embodiments of this disclosure. These programming languages ​​include object-oriented programming languages ​​such as Java and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on a user computing device, partially on a user device, as a standalone software package, partially on a user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0077] Furthermore, embodiments of this disclosure may also be computer-readable storage media storing computer program instructions that, when executed by a processor, cause the processor to perform the area determination method provided in embodiments of this disclosure.

[0078] The computer-readable storage medium may be any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof.

[0079] This disclosure also provides a computer program product, including a computer program / instructions, which, when executed by a processor, implements the area determination method of this disclosure.

[0080] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0081] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.

[0082] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0083] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0084] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0085] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for determining the area of ​​a region, characterized in that, include: Obtain the first outline of the target house with the area to be determined; wherein, the first outline is the outline of the target area of ​​the target house, and the target area is the area of ​​the target house after removing the area occupied by the exterior walls and the area occupied by the interior walls; Obtain offset parameters; perform an outward offset operation on the first contour based on the offset parameters to obtain a second contour, and perform an inward offset operation on the second contour based on the offset parameters to obtain the inner edge line of the outer wall of the target house; wherein, the area enclosed by the second contour includes: the area enclosed by the inner edge line of the outer wall of the target house and the area occupied by the outer wall of the target house; Based on the inner edge line of the outer wall of the target house, determine the area of ​​the region enclosed by the inner edge line of the outer wall of the target house.

2. The method according to claim 1, characterized in that, The process of obtaining the first outline of the target house in the area to be determined includes: Obtain the floor plan data of the target house with the area to be determined; Based on the apartment layout data, the usable area of ​​each independent room in the target house and the area occupied by each interior doorway in the target house are obtained. The target area of ​​the target house is obtained by merging the usage areas of all the independent rooms and the footprints of all the interior doorways. Obtain the first contour of the target region.

3. The method according to claim 1, characterized in that, The process of obtaining the offset parameters includes: Obtain reference information; wherein, the reference information includes at least one of the following: the maximum depth of the inner door opening of the target house, the thickness of the outer wall of the target house, and a preset offset reference value; The offset parameters are determined based on the reference information.

4. The method according to claim 3, characterized in that, Determining the offset parameter based on the reference information includes: Obtain the offset reference value; wherein the offset reference value is determined based on the offset reference value and / or the thickness of the outer wall of the target building; If half of the maximum depth of the inner doorway is greater than the offset reference value, then the offset parameter is determined based on half of the maximum depth of the inner doorway. If half of the maximum depth of the inner doorway is not greater than the offset reference value, then the offset reference value is used as the offset parameter.

5. The method according to claim 1, characterized in that, The step of performing an inward offset operation on the second contour based on the offset parameter to obtain the inner edge line of the outer wall of the target house includes: Based on the offset parameters, an inward offset operation is performed on the second contour to obtain the inward offset result; Based on the turning angle of the second contour, the inward offset result is optimized to obtain the inner edge line of the outer wall of the target house.

6. The method according to claim 5, characterized in that, The optimization process includes trimming and / or completion processing. The optimization of the inward offset result based on the corner of the second contour to obtain the inner edge line of the outer wall of the target building includes: If the corner of the second contour contains a convex corner, then the excess part in the inward offset result is determined based on the convex corner, and the excess part in the inward offset result is trimmed. If the corner of the second contour contains a concave corner, then the missing part in the inward offset result is determined based on the concave corner, and the missing part in the inward offset result is completed. Based on the inward offset result after the optimization process, the inner edge line of the outer wall of the target house is obtained.

7. The method according to claim 6, characterized in that, The process of completing the missing parts in the inward offset result includes: Based on the missing parts in the inward offset result, a set of endpoints to be processed is determined; wherein, the set of endpoints includes a first line endpoint and a second line endpoint, and the set of endpoints has a one-to-one correspondence with the concave angle of the second contour; The first and second line endpoints in the endpoint group are connected by curves.

8. An electronic device, characterized in that, The electronic device includes: A storage device on which computer programs are stored; A processing device for executing the computer program in the storage device to implement the steps of the area determination method according to any one of claims 1-7.

9. A computer-readable storage medium, characterized in that, The storage medium stores a computer program for executing the area determination method according to any one of claims 1-7.

10. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the area determination method according to any one of claims 1-7.