Area contour segmentation method, device and electronic equipment
By automatically determining and connecting the segmentation lines in the building information model, the problems of low regional segmentation efficiency and high error rate in the prior art are solved, and more efficient and accurate regional segmentation is achieved.
Patent Information
- Application Number
- CN202111454127.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-01
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2041-12-01
AI Technical Summary
The area segmentation method in the existing building information model is inefficient and has high error rate, and users need to manually draw and calculate the segmented area.
By obtaining the target area contour object in the area plane in the building information model, the segmentation line indicated by the pre-added segmentation information is determined, and the area contour object is automatically divided based on the connected segmentation line.
Improves the efficiency and accuracy of area segmentation, reduces the need for manual operations, and reduces the error rate.
Smart Images

Figure CN114092497B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure belongs to the field of software technology, and specifically relates to a method, device and electronic equipment for segmenting an area contour. Background Art
[0002] With the development of software technology, in BIM (Building Information Modeling)-based design, users expect to quickly obtain the required information based on BIM models more and more conveniently.
[0003] Currently, for the segmentation of some areas, for example, when calculating the area, it is necessary to segment out the area except for some areas. The user is required to manually draw closed areas in the model to define independent areas, and the user is required to manually calculate the area of each segmented area.
[0004] However, in practical applications, the segmentation of areas with different functions not only requires users to have a clear understanding of the design plan, but also requires users to create models by comparing drawings, and requires users to manually perform a large number of repetitive operations. Therefore, the current area segmentation method is inefficient and has a high error rate. Summary of the invention
[0005] The purpose of the embodiments of the present disclosure is to provide a method, device and electronic device for segmenting an area contour, which can solve the problem of low efficiency and high error rate of area segmentation methods in current building information models.
[0006] In order to solve the above technical problems, the present disclosure is implemented as follows:
[0007] In a first aspect, an embodiment of the present disclosure provides a method for segmenting an area contour, the method comprising: obtaining a target area contour object of an area object in a first area plane, wherein the first area plane is an area plane in a building information model; determining a segmentation line indicated by a first set of segmentation information in the first area plane, wherein the first set of segmentation information is pre-added segmentation information; connecting the segmentation lines indicated by the first set of segmentation information; and segmenting the target area contour object based on the connected segmentation lines to obtain a plurality of area contour objects in the first area plane.
[0008] In a second aspect, an embodiment of the present disclosure provides an area contour segmentation device, the area contour segmentation device comprising: an acquisition module, a determination module, a connection module and a segmentation module; the acquisition module is used to acquire a target area contour object of an area object in a first area plane, the first area plane being an area plane in a building information model; the determination module is used to determine a segmentation line indicated by a first set of segmentation information in the first area plane, the first set of segmentation information being pre-added segmentation information; the connection module is used to connect the segmentation lines indicated by the first set of segmentation information; the segmentation module is used to segment the target area contour object based on the connected segmentation lines to obtain a plurality of area contour objects in the first area plane.
[0009] In a third aspect, an embodiment of the present disclosure provides an electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the area contour segmentation method as described in the first aspect.
[0010] In a fourth aspect, an embodiment of the present disclosure provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the area contour segmentation method as described in the first aspect are implemented.
[0011] In a fifth aspect, an embodiment of the present disclosure provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the area contour segmentation method as described in the first aspect.
[0012] In a sixth aspect, an embodiment of the present disclosure provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the steps of the area contour segmentation method as described in the first aspect.
[0013] In the disclosed embodiment, first, the electronic device can obtain the target area contour object of the area object in the first area plane; then, the electronic device determines the segmentation line indicated by the first group of segmentation information in the first area plane; then, the electronic device connects the segmentation line indicated by the first group of segmentation information, and segments the target area contour object based on the connected segmentation line. In other words, the electronic device can automatically determine the segmentation line based on the pre-set segmentation information, and then quickly segment the area contour object according to the segmentation line. Compared with the related art, there is no need to manually compare the drawings to determine the segmentation area, and there is no need to manually draw the segmentation area and then segment, which improves the segmentation efficiency and accuracy of the segmented area contour. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1One of the flowcharts of the area contour segmentation method provided in the embodiment of the present disclosure;
[0015] Figure 2 A schematic diagram of segmentation of an area contour provided in an embodiment of the present disclosure;
[0016] Figure 3 A second flowchart of the area contour segmentation method provided in an embodiment of the present disclosure;
[0017] Figure 4 A third flowchart of the area contour segmentation method provided in an embodiment of the present disclosure;
[0018] Figure 5 A schematic diagram of a dividing line provided in an embodiment of the present disclosure;
[0019] Figure 6 A schematic diagram of an extended dividing line provided in an embodiment of the present disclosure;
[0020] Figure 7 One of the possible structural schematic diagrams of the area contour segmentation device provided in the embodiment of the present disclosure;
[0021] Figure 8 A second possible structural schematic diagram of the area contour segmentation device provided in an embodiment of the present disclosure;
[0022] Fig. 9 A third possible structural schematic diagram of the area contour segmentation device provided in an embodiment of the present disclosure;
[0023] Fig.10 A possible structural diagram of an electronic device provided by an embodiment of the present disclosure;
[0024] Fig.11 A hardware schematic diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] For the sake of convenience, the special terms in the embodiments of the present disclosure are first explained.
[0026] First, let’s introduce the definitions of the commonly used terms in Revit:
[0027] 1. Area object
[0028] Indicates the actual usage space.
[0029] 2. Wall Object
[0030] Represents a real wall.
[0031] 3. Area plane
[0032] Used to calculate the area of the usable space, the area plane includes: functional area inspection plane, civil defense partition inspection plane, property exterior wall line area, and property wall centerline area.
[0033] 4. Wall positioning line
[0034] There are six types of wall positioning lines: wall center line, core layer center line, surface layer: exterior, surface layer: interior, core surface: exterior, and core surface: interior.
[0035] 5. Area Contour Object
[0036] Indicates the shape and size of the exterior facade of a real building.
[0037] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0038] The terms "first", "second", etc. in the specification and claims of the present disclosure are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable when appropriate, so that the embodiments of the present disclosure can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0039] The area contour segmentation method provided by the embodiment of the present disclosure is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0040] Figure 1 A schematic diagram of a flow chart of a method for segmenting an area contour provided in an embodiment of the present disclosure is shown in FIG. Figure 1 As shown in , the method may include the following S101 to S104:
[0041] S101. An electronic device obtains a target area contour object of an area object in a first area plane.
[0042] Among them, the first area plane is the area plane in the BIM model.
[0043] Exemplarily, in the embodiment of the present disclosure, the first area plane is an area plane corresponding to an area object of a floor in a BIM model divided according to floors.
[0044] In the embodiment of the present disclosure, the target area contour object is the largest area contour composed of each area object in an area plane.
[0045] Optionally, the target area contour object is determined according to any one of the following: an area object of the first area plane, a space object of the first area plane, a fill region of the area object of the first area plane, and a wall location line of the first area plane.
[0046] Exemplarily, taking determining a target area contour object of a first area plane based on area objects of the first area plane as an example, the electronic device can obtain the area objects included in the first area plane, and use Boolean operations according to the contour of each area object to obtain the target area contour object of the first area plane.
[0047] S102: The electronic device determines a segmentation line indicated by a first set of segmentation information in a first area plane.
[0048] The first group of segmentation marks is pre-added segmentation information, and the first group of segmentation information includes at least one type of segmentation marks, and each type of segmentation mark indicates a type of segmentation line.
[0049] Optionally, an area plane may correspond to at least one set of segmentation lines indicated by segmentation information.
[0050] S103: The electronic device connects the segmentation line indicated by the first set of segmentation information.
[0051] Exemplarily, the electronic device connects each segmentation line with another segmentation line or with a boundary of an area contour object based on the segmentation line to form a closed area.
[0052] S104: The electronic device segments the target area contour object based on the connected segmentation lines to obtain a plurality of area contour objects in the first area plane.
[0053] For example, Figure 2 A schematic diagram of segmenting an area contour provided in an embodiment of the present disclosure is shown in FIG. Figure 2 As shown in (a), it is an outer contour image of an area object in an area plane. After the outer contour image of the area object in the area plane is segmented based on the segmentation line, three different contour images of the area objects can be obtained, namely, area contour object 21, area contour object 22 and area contour object 23, wherein area contour object 21 can indicate the area contour of the west household, area contour object 22 can indicate the area contour of the public area, and area contour object 23 can indicate the area contour of the east household.
[0054] Exemplarily, the electronic device can be grouped by floors, and for each floor, it can obtain the area objects in this floor, traverse the boundaries of each area object, merge them into a largest outline (i.e., the target area outline object) through geometric Boolean operations, and then divide the largest outline into multiple outlines through the dividing lines in this floor.
[0055] The area contour segmentation method provided by the embodiment of the present disclosure is as follows: first, the electronic device can obtain the target area contour object of the area object in the first area plane; then, the electronic device determines the segmentation line indicated by the first group of segmentation information in the first area plane; thereafter, the electronic device connects the segmentation line indicated by the first group of segmentation information, and segments the target area contour object based on the connected segmentation line. In other words, the electronic device can automatically determine the segmentation line based on the pre-set segmentation information, and then quickly segment the area contour object according to the segmentation line. Compared with the related art, there is no need to manually compare the drawings to determine the segmentation area, and there is no need to manually draw the segmentation area and then segment, which improves the segmentation efficiency and accuracy of the segmented area contour.
[0056] Alternatively, if Figure 3 As shown in , in the area contour segmentation method provided by the embodiment of the present disclosure, before the above S101, the following S105 may also be included:
[0057] S105: The electronic device adds segmentation information to the first wall object in the building information model.
[0058] The first wall object is a wall object of an area object in a first area plane.
[0059] For example, taking the segmentation mark as the custom property of the wall object as an example, in Revit, after the user picks up the wall object, the user can add a mark for the special wall and customize the properties of the wall. For example, the user can add shared parameters and project parameters to the wall, thereby marking whether the wall object meets the requirements.
[0060] Based on this solution, users can add segmentation information to wall objects as needed, so that area contour objects can be quickly segmented according to the added segmentation information later, and manual segmentation by users is no longer required. When performing different business segmentation on area contour objects in the same area plane, there is no need to manually compare drawings and draw manually, which reduces the probability of area contour object segmentation errors.
[0061] Optionally, the segmentation information is any one of the following: a custom attribute of a wall object, a model line corresponding to the wall object, and a positioning component corresponding to the wall object.
[0062] For example, the user can set the wall objects in the building information model as household partition walls, functional partition walls, unit partition walls, civil defense walls and other custom attribute configuration segmentation information, and use the location lines of these walls as segmentation lines. The user can also add model lines in the building information model and use the model lines as segmentation lines. The user can also add location components in the building information model and use the location curves corresponding to the location components as segmentation lines.
[0063] Based on this solution, users can choose to set different types of segmentation information according to their needs, usage habits, etc. For example, they can set information for wall objects in the model. Users can select (pick) a wall object, and add shared parameters and project parameters to the wall object to add whether to customize wall properties, and identify whether the wall object is a wall object for segmentation. Providing a variety of different types of segmentation information can make the setting of segmentation information more flexible.
[0064] Optionally, the area contour segmentation method provided in the embodiment of the present disclosure may further include the following S106 before the above S101:
[0065] S106: The electronic device obtains an area plane of a first business type to be segmented in a building information model.
[0066] The first business type is one of the M business types, one business type corresponds to a set of segmentation information, the first area plane is any area plane among the area planes of the first business type, and M is a positive integer.
[0067] Optionally, the above-mentioned S106 may be after the above-mentioned S105, or may be before the above-mentioned S105, which is not specifically limited in the embodiment of the present disclosure.
[0068] Exemplarily, for the area object of a floor, an area plane can be established, and segmentation information for different business needs can be set in the area plane, such as fire protection segmentation information, functional zoning segmentation information or property unit segmentation information. The electronic device can segment the corresponding area contour objects according to the segmentation information corresponding to different businesses.
[0069] Exemplarily, for the area object of a floor, multiple area planes can also be established, and segmentation information of different business needs can be set in each area plane. For example, a fire protection area plane can be established, and fire protection segmentation information can be set in the fire protection area plane; a functional zoning area plane can be established, and functional zoning segmentation information can be set in the functional zoning area plane; a property unit area plane can be established, and property unit segmentation information can be set in the property unit area plane.
[0070] It can be understood that the user can first select different services according to user needs, and then segment the area contour object according to the segmentation information corresponding to the business needs.
[0071] Based on this solution, for different segmentation services, users can set segmentation information for different services. During segmentation, the corresponding segmentation service is selected based on the pre-set segmentation information, and the area contour objects in the area plane can be quickly segmented. For example, the area contour objects of the filled areas, rooms, areas and other objects on the same floor can be quickly segmented.
[0072] Alternatively, if Figure 4 As shown in , in the area contour segmentation method provided in the embodiment of the present disclosure, the above S103 can be specifically performed by the following S13a to S13d:
[0073] S13a: The electronic device determines whether there is a dividing line that does not meet a preset condition among the dividing lines indicated by the first group of dividing information.
[0074] The segmentation line that meets the preset conditions is a segmentation line whose two endpoints are connected to other segmentation lines or target area contour objects.
[0075] It should be noted that, in the target area contour object, each segmentation line needs to be connected to other segmentation lines or the target area contour object, and segmentation lines and segmentation lines are connected to form a closed area, or segmentation lines and target area contours are connected to form a closed area.
[0076] For example, Figure 5 A schematic diagram of a dividing line provided in an embodiment of the present disclosure, such as Figure 5As shown in , assuming that the target area contour is a quadrilateral composed of abcd, the dividing lines a1a2, a2a3, a3a4 and a4a1 are connected end to end to form a closed area, and the four dividing lines meet the preset conditions; the dividing line b1b2 intersects with the ab side of the target area contour, and the intersection point is b1, and the dividing line b6b7 intersects with the da side of the target area contour, and the intersection point is b7. The dividing lines b1b2, b2b3, b3b4, b4b5, b5b6 and b6b7 are connected end to end and connected with the line segments ab1 and b7a to form a closed area , the six dividing lines meet the preset conditions; similarly, dividing lines b1b2, dividing lines b2b3, dividing lines b3b4, dividing lines b4c1 are connected with line segments b1b and bc1 to form a closed area, and the four dividing lines meet the preset conditions; dividing lines c1b4, dividing lines b4b5, dividing lines b5b6, dividing lines b6b2 and line segments d2d1, dividing lines d1c2 and line segments c2c1 form a closed area, and the four dividing lines meet the preset conditions; dividing lines b6b7, dividing lines b6d2 and line segments d2d and db7 can form a closed area, and the two dividing lines meet the preset conditions. The dividing line d1d2 intersects with the bc edge and the cd edge respectively, and forms a closed area, and the dividing line d1d2 meets the preset conditions.
[0077] Optionally, in the embodiment of the present disclosure, the dividing line may be a straight line or a curve, a regular line or an irregular line, and the embodiment of the present disclosure does not specifically limit this.
[0078] S13b: If there is a first segmentation line that does not meet the preset condition, the electronic device determines the positional relationship between the first endpoint and the target area contour object.
[0079] The first endpoint is an unconnected endpoint of the first dividing line.
[0080] It can be understood that the unconnected endpoints of the first dividing line may be one endpoint or two endpoints.
[0081] S13c: When the first endpoint is inside the target area contour object, the electronic device extends the first dividing line based on the first endpoint until the first dividing line meets a preset condition.
[0082] Specifically, if the distance between the endpoints of the two segmentation lines is less than a preset distance, and the extension lines of the two segmentation lines can intersect, at least one of the two segmentation lines is extended until the two segmentation lines intersect. If the distance between the endpoint of the first segmentation line and the target area contour object is less than a preset distance, and the extension line of the first segmentation line can intersect with the first boundary of the target area contour object, the first segmentation line is extended toward the first boundary until it intersects with the first boundary.
[0083] For example, Figure 6 This is a schematic diagram of an extended dividing line provided by an embodiment of the present disclosure. Figure 6 As shown in (a), both the dividing line L1 and the dividing line L2 have isolated endpoints, the distance between the endpoints of L1 and L2 is less than the preset distance, and the dividing line L2 is extended to the left to connect with the dividing line L1, then Figure 6 As shown in (b) in FIG. 1 , the dividing line is extended to the left along the horizontal direction until it connects with the dividing line L1 , and the intersection point is P.
[0084] It should be noted that the above description takes extending one dividing line as an example. In actual applications, there may be a situation where two dividing lines need to be extended. The extension method can refer to the extension method of one dividing line, and the embodiment of the present disclosure will not be repeated here.
[0085] S13d, the electronic device connects the dividing lines that meet the preset conditions into a group of dividing lines.
[0086] For a target area contour object of an area object in an area plane, it can be divided into two area contour objects by a dividing line, or it can be divided into area contour objects greater than two by multiple dividing lines. The multiple dividing lines may be connected or unconnected, and the embodiments of the present disclosure do not make specific limitations on this.
[0087] Based on this scheme, before connecting the dividing lines, it can be determined whether each dividing line is a dividing line that meets the preset conditions. If there are dividing lines that do not meet the preset conditions, the dividing lines can be extended until each dividing line meets the preset conditions. For example, in the case where the dividing line is the bottom surface positioning line of the wall object, if the two wall objects intersect vertically to form a yin-yang angle, the positioning lines cannot intersect each other end to end. At this time, the bottom surface positioning line of the wall can be automatically extended so that the wall positioning lines intersect, thereby accurately determining the dividing position and avoiding inaccurate dividing of the area contour object.
[0088] Optionally, in the area contour segmentation method provided in the embodiment of the present disclosure, after the above S104, the following S107 may be further included:
[0089] S107: The electronic device marks the first area contour object using a first marking method, and marks the second area contour object using a second marking method.
[0090] The first area contour object and the second area contour object are different area contour objects among the multiple area contour objects obtained after segmentation.
[0091] Exemplarily, the marking method of marking the area contour object may be to fill it with different filling contents, for example, different area contour objects may use different filling colors, and different area contours may also use line segments of different colors, which is not specifically limited in the embodiments of the present disclosure.
[0092] It can be understood that in an area plane, after the target area contour object of the area object is segmented, each area contour object is marked using a different marking method, which can facilitate map viewers to quickly distinguish each area contour object.
[0093] For example, in combination Figure 2 After segmenting to obtain different area contour objects, different filling colors are used to fill the different area contour objects respectively, wherein the filling color of the area contour object 21 is the first color, the filling color of the area contour object 22 is the second color, and the filling color of the area contour object 23 is the third color.
[0094] Based on this scheme, after the electronic device divides the target area contour object into multiple area contour objects according to the segmentation lines corresponding to the first set of segmentation information, different identification methods can be used to mark each area contour object, so that the area contour object can be quickly determined according to different marking methods in the subsequent process, and the area of the space corresponding to each area contour can be calculated according to different marking information, and the image corresponding to each area contour can be output separately.
[0095] It should be noted that the area contour segmentation method provided in the embodiment of the present disclosure may be executed by an area contour segmentation device, or a control module in the area contour segmentation device for executing the area contour segmentation method. In the embodiment of the present disclosure, the area contour segmentation method performed by the area contour segmentation device is taken as an example to illustrate the area contour segmentation device provided in the embodiment of the present disclosure.
[0096] Figure 7 A schematic diagram of a structure of an area contour segmentation device provided in an embodiment of the present disclosure, such as Figure 7 As shown in, the area contour segmentation device 700 includes: an acquisition module 701, a determination module 702, a connection module 703 and a segmentation module 704; the acquisition module 701 is used to acquire a target area contour object of an area object in a first area plane, and the first area plane is an area plane in a building information model; the determination module 702 is used to determine a segmentation line indicated by a first group of segmentation information in the first area plane, and the first group of segmentation information is pre-added segmentation information; the connection module 703 is used to connect the segmentation lines indicated by the first group of segmentation information; the segmentation module 704 is used to segment the target area contour object based on the connected segmentation lines to obtain multiple area contour objects in the first area plane.
[0097] Optionally, the acquisition module is also used to obtain the area plane of the first business type to be segmented in the building information model before obtaining the target area contour object of the area object in the first area plane; wherein the first business type is one of M business types, one business type corresponds to a group of segmentation information, the first area plane is any area plane among the area planes of the first business type, and M is a positive integer.
[0098] Optionally, the connection module is specifically used to: determine whether there is a segmentation line that does not meet the preset conditions among the segmentation lines indicated by the first group of segmentation information; the segmentation line that meets the preset conditions is: a segmentation line whose two endpoints are connected to other segmentation lines or the target area contour object; if there is a first segmentation line that does not meet the preset conditions, determine the positional relationship between the first endpoint and the target area contour object, the first endpoint is the endpoint that the first segmentation line is not connected to; when the first endpoint is inside the target area contour object, extend the first segmentation line based on the first endpoint until the first segmentation line meets the preset conditions; based on each segmentation line that meets the preset conditions, connect them into a group of segmentation lines.
[0099] Optionally, combined Figure 7 ,like Figure 8 As shown, the area contour segmentation device 700 includes: a marking module 705; the marking module 705 is used to mark the first area contour object using a first marking method and mark the second area contour object using a second marking method after the segmentation module 704 segments the target area contour object based on the connected segmentation line to obtain multiple area contour objects in the first area plane; wherein the first area contour object and the second area contour object are different area contour objects among the multiple area contour objects.
[0100] Optionally, combined Figure 7 like Fig. 9 As shown, the area contour segmentation device 700 includes: an adding module 706; the adding module 706 is used to add segmentation information for the first wall object in the building information model before the acquisition module acquires the target area contour object of the first area plane; wherein the first wall object is the wall object of the area object in the first area plane.
[0101] Optionally, the segmentation information is any one of the following: a custom attribute of a wall object, a model line corresponding to the wall object, and a positioning component corresponding to the wall object.
[0102] Optionally, the target area contour object is determined according to any one of the following: an area object of the first area plane, a space object of the first area plane, a filling area of the area object in the first area plane, and a wall positioning line of the first area plane.
[0103] In the embodiment of the present disclosure, a device for segmenting an area contour is provided. First, the device for segmenting an area contour can obtain a target area contour object of an area object in a first area plane; then, the device for segmenting an area contour determines a segmentation line indicated by a first set of segmentation information in the first area plane; thereafter, the device for segmenting an area contour connects the segmentation lines indicated by the first set of segmentation information, and segments the target area contour object based on the connected segmentation lines. In other words, the device for segmenting an area contour can automatically determine a segmentation line based on pre-set segmentation information, and then quickly segment the area contour object according to the segmentation line. Compared with the related art, there is no need to manually compare drawings to determine the segmentation area, and there is no need to manually draw the segmentation area and then segment, which improves the segmentation efficiency and accuracy of the segmented area contour.
[0104] The area contour segmentation device in the embodiment of the present disclosure may be a device, or a component, integrated circuit, or chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, a UMPC (ultra-mobile personal computer), a netbook, or a PDA (personal digital assistant), etc., and the non-mobile electronic device may be a server, a NAS (Network Attached Storage), a PC (personal computer), a TV (television), a teller machine, or a self-service machine, etc., which is not specifically limited in the embodiment of the present disclosure.
[0105] The area contour segmentation device provided in the embodiment of the present disclosure can achieve Figures 1 to 6 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0106] Alternatively, if Fig.10 As shown, the embodiment of the present disclosure also provides an electronic device 1000, including a processor 1001, a memory 1002, and a program or instruction stored in the memory 1002 and executable on the processor 1001. When the program or instruction is executed by the processor 1001, each process of the above-mentioned area contour segmentation method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0107] It should be noted that the electronic devices in the embodiments of the present disclosure include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0108] Fig.11 A schematic diagram of the hardware structure of an electronic device for implementing an embodiment of the present disclosure.
[0109] The electronic device 1100 includes but is not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, a display unit 1106, a user input unit 1107, an interface unit 1108, a memory 1109, and a processor 1110 and other components.
[0110] Those skilled in the art will appreciate that the electronic device 1100 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.11 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0111] The disclosed embodiment provides an electronic device. First, the electronic device can obtain a target area contour object of an area object in a first area plane; then, the electronic device determines a segmentation line indicated by a first set of segmentation information in the first area plane; then, the electronic device connects the segmentation lines indicated by the first set of segmentation information, and segments the target area contour object based on the connected segmentation lines. In other words, the electronic device can automatically determine the segmentation line based on the pre-set segmentation information, and then quickly segment the area contour object according to the segmentation line. Compared with the related art, there is no need to manually compare drawings to determine the segmentation area, and there is no need to manually draw the segmentation area and then segment, which improves the segmentation efficiency and accuracy of the segmented area contour.
[0112] It should be understood that in the embodiment of the present disclosure, the input unit 1104 may include a GPU (Graphics Processing Unit) 1141 and a microphone 1142, and the graphics processor 1141 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1106 may include a display panel 1161, and the display panel 1161 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1107 includes a touch panel 1171 and other input devices 1172. The touch panel 1171 is also called a touch screen. The touch panel 1171 may include two parts: a touch detection device and a touch controller. Other input devices 1172 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 1109 may be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1110 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1110.
[0113] The embodiment of the present disclosure also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned area contour segmentation method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0114] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer ROM (Read-Only Memory), RAM (Random Access Memory), a magnetic disk or an optical disk.
[0115] The disclosed embodiment further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned area contour segmentation method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0116] It should be understood that the chip mentioned in the embodiments of the present disclosure may also be referred to as a system-level chip, a system chip, a chip system, or a system-on-chip chip, etc.
[0117] The embodiment of the present disclosure provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the area contour segmentation method as described above and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0118] It should be noted that, in this article, the terms "comprise", "include" or any other variants 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 one..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiments of the present disclosure is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0119] 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 disclosure, 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 enabling 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 disclosure.
[0120] The embodiments of the present disclosure are described above in conjunction with the accompanying drawings, but the present disclosure 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 disclosure, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present disclosure and the claims, all of which are within the protection of the present disclosure.
Claims
1. A method for segmenting an area contour, characterized in that: The method comprises: Acquire a target area contour object of an area object in a first area plane, wherein the first area plane is an area plane corresponding to an area object of one floor in a building information model divided according to floors; the target area contour object is a maximum area contour composed of each area object in an area plane; Determine a segmentation line indicated by a first set of segmentation information in the first area plane, where the first set of segmentation information is pre-added segmentation information; Connecting the segmentation lines indicated by the first group of segmentation information; Segmenting the target area contour object based on the connected segmentation lines to obtain a plurality of area contour objects in the first area plane; Before acquiring the target area contour object of the first area plane, the method further includes: adding segmentation information to a first wall object in the building information model; The first wall object is a wall object of an area object in the first area plane; the segmentation information is any one of the following: a custom attribute of a wall object, a model line corresponding to the wall object, and a positioning component corresponding to the wall object.
2. The method according to claim 1, characterized in that: Before acquiring the target area contour object of the area object in the first area plane, the method further includes: Acquire an area plane of a first business type to be segmented in the building information model; The first business type is one of M business types, one business type corresponds to a group of segmentation information, the first area plane is any area plane among the area planes of the first business type, and M is a positive integer.
3. The method according to claim 1, characterized in that The segmentation line connected to the first group of segmentation information indications includes: Determine whether there is a segmentation line that does not meet the preset condition among the segmentation lines indicated by the first group of segmentation information; the segmentation line that meets the preset condition is: a segmentation line whose two endpoints are connected to other segmentation lines or the target area contour object; If there is a first segmentation line that does not satisfy the preset condition, determining a positional relationship between a first endpoint and the target area contour object, the first endpoint being an endpoint that is not connected to the first segmentation line; When the first endpoint is inside the target area contour object, extending the first segmentation line based on the first endpoint until the first segmentation line meets the preset condition; Based on the segmentation lines that meet the preset conditions, they are connected into a group of segmentation lines.
4. The method according to claim 1, characterized in that After segmenting the target area contour object based on the connected segmentation lines to obtain a plurality of area contour objects in the first area plane, the method further includes: Marking the first area contour object using a first marking method, and marking the second area contour object using a second marking method; The first area outline object and the second area outline object are different area outline objects among the multiple area outline objects.
5. The method according to claim 1, characterized in that The target area contour object is determined according to any one of the following: The area object of the first area plane, the space object of the first area plane, the filling area of the area object in the first area plane, and the wall positioning line of the first area plane.
6. A device for segmenting area contours, characterized in that: The area contour segmentation device comprises: an acquisition module, a determination module, a connection module and a segmentation module; The acquisition module is used to acquire a target area contour object of an area object in a first area plane, wherein the first area plane is an area plane corresponding to an area object of one floor in a building information model divided according to floors; the target area contour object is a maximum area contour composed of each area object in an area plane; The determining module is used to determine a segmentation line indicated by a first set of segmentation information in the first area plane, where the first set of segmentation information is pre-added segmentation information; The connection module is used to connect the segmentation lines indicated by the first group of segmentation information; The segmentation module is used to segment the target area contour object based on the connected segmentation lines to obtain a plurality of area contour objects in the first area plane; An adding module is used to add segmentation information to a first wall object in the building information model before the acquiring module acquires the target area contour object of the first area plane; wherein the first wall object is a wall object of an area object in the first area plane, and the segmentation information is any one of the following: a custom attribute of the wall object, a model line corresponding to the wall object, and a positioning component corresponding to the wall object.
7. An electronic device, characterized in that: The method comprises a processor, a memory and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the area contour segmentation method as described in any one of claims 1 to 5.
8. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the area contour segmentation method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Indoor space partitioning method and device and mobile robot
CN110888960A
Online editing method and device, electronic equipment and storage medium
CN113591197A