Calculation method, device, equipment and storage medium for the shortest safe evacuation distance
By identifying the architectural element frame and reconstructing the architectural space, the shortest safe evacuation distance of the building is calculated, which solves the problems of inaccurate calculation and low efficiency caused by the complexity of the drawings in the existing technology, and achieves higher calculation accuracy and drawing review. efficiency.
Patent Information
- Application Number
- CN202111624939.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-12-28
AI Technical Summary
When the existing technology calculates the shortest safe evacuation distance of a building, due to the intricate lines of the drawing and the interference of lines such as elevation lines, the calculation of the classic algorithm is inaccurate and the drawing review efficiency is low.
By obtaining the building plan, identifying the architectural element frames, reconstructing the building space, dividing indoor subspaces and public subspaces, determining logical connected channels, and calculating the shortest safe evacuation distance based on the connected channels.
It improves the calculation accuracy and drawing review efficiency of the shortest safe evacuation distance, helps standardize drawings, and achieves both efficiency and quality improvement.
Smart Images

Figure CN114299531B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to image processing technology, specifically to artificial intelligence technology, and in particular to a calculation method, device, equipment and storage medium for the shortest safe evacuation distance. Background Art
[0002] Currently, after architects draw the building drawings, they still need to be manually reviewed by professionals. During the review process, not only can problems and construction difficulties in the building construction drawings be discovered, but also constructive suggestions can be made on the function, structure, material selection, construction feasibility and cost management of the project construction.
[0003] In the process of architectural review, whether it is a public building or a residential building, the shortest safe evacuation distance must be reviewed, which refers to the shortest distance from a single-family building to an external exit or stairwell. It can be obtained by calculating the shortest distance from the door of the evacuation corridor to the nearest open stairwell. So far, with the continuous maturity and improvement of planning paths and big data technology, some classic algorithms such as dijkstra, DFS, BFS are commonly used to calculate distances or calculate the shortest safe evacuation distance based on the length of the wall.
[0004] In the process of realizing the present invention, the inventors found that the prior art had the following defects: due to the complexity of the lines in the architectural drawings and the interference of lines such as elevation lines and auxiliary lines, the prior art uses some classic algorithms such as dijkstra, DFS, BFS, or starts from the length of the wall and combines manual calculation of the shortest safe evacuation distance, which is labor-intensive and has the problem of inaccurate calculation. For example, the calculated distance is not the shortest distance. Summary of the invention
[0005] The embodiments of the present invention provide a method, device, equipment and storage medium for calculating the shortest safe evacuation distance, which improve the calculation accuracy of the shortest safe evacuation distance while improving the efficiency of drawing review.
[0006] In a first aspect, an embodiment of the present invention provides a method for calculating the shortest safe evacuation distance, which may include:
[0007] Acquire a building plan, and identify a building element frame in the building plan, wherein the building plan includes at least one single-family building floor plan;
[0008] Reconstructing a building space in the building element frame, wherein the building space includes a plurality of indoor subspaces and a plurality of public subspaces divided by the building segmentation elements;
[0009] Identify the doors in each of the indoor subspaces, and determine a logical connection channel from each of the doors to the safe evacuation door in the common subspace; the logical connection channel includes at least one common subspace;
[0010] According to the logical connection channel, the shortest safe evacuation distance corresponding to each single-family building in the building plan is determined.
[0011] In a second aspect, an embodiment of the present invention further provides a device for calculating the shortest safe evacuation distance, which may include:
[0012] A building element frame recognition module is used to obtain a building plan and recognize a building element frame in the building plan, wherein the building plan includes at least one single-family building floor plan;
[0013] An architectural space reconstruction module, used to reconstruct the architectural space in the architectural element frame, wherein the architectural space includes a plurality of indoor subspaces and a plurality of public subspaces divided by the architectural segmentation elements;
[0014] A logic connection channel determination module is used to identify the household doors in each of the indoor subspaces and determine the logic connection channel from each of the household doors to the safe evacuation door in the common subspace; the logic connection channel includes at least one common subspace;
[0015] The safe evacuation distance determination module is used to determine the shortest safe evacuation distance corresponding to each single-family building in the building plan according to the logical connection channel.
[0016] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0017] one or more processors;
[0018] A storage device for storing one or more programs;
[0019] When the one or more programs are executed by the one or more processors, the one or more processors implement a method for calculating the shortest safe evacuation distance as described in any embodiment of the present invention.
[0020] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, a method for calculating a shortest safe evacuation distance as described in any embodiment of the present invention is implemented.
[0021] The embodiment of the present invention obtains a building plan, and identifies a building element frame in the building plan including at least one single-family building floor plan; reconstructs a building space including a plurality of indoor subspaces and a plurality of public subspaces divided by building segmentation elements in the building element frame; identifies a household door in each of the indoor subspaces, and determines a logical connection channel including at least one public subspace from each of the household doors to a safe evacuation door in the public subspace; determines the shortest safe evacuation distance corresponding to each single-family building in the building plan according to the logical connection channel, so as to solve the problem in the prior art that due to the intricate lines of the building drawings and the interference of lines such as elevation lines and auxiliary lines, the shortest safe evacuation distance is inaccurate and the drawing review efficiency is low when using classic algorithms such as dijkstra, DFS, BFS, or starting from the length of the wall and combining manual calculation. While improving the drawing review efficiency, the calculation accuracy of the shortest safe evacuation distance is improved, and standardized drawing is promoted to achieve the effect of improving both efficiency and quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1A A flowchart of a method for calculating the shortest safe evacuation distance provided in Embodiment 1 of the present invention;
[0023] Figure 1B A schematic diagram of a building space reconstruction structure provided in Embodiment 1 of the present invention;
[0024] Figure 1C A schematic diagram of generating the shortest safe evacuation distance according to corner points provided in the first embodiment of the present invention;
[0025] Figure 2A A flowchart of another method for calculating the shortest safe evacuation distance provided in Embodiment 2 of the present invention;
[0026] Figure 2B A specific application scenario diagram of identifying a building element frame provided by the second embodiment of the present invention;
[0027] Figure 3 A schematic diagram of the structure of a device for calculating the shortest safe evacuation distance provided in Embodiment 3 of the present invention;
[0028] Figure 4 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0029] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0030] Embodiment 1
[0031] Figure 1A A flowchart of a method for calculating the shortest safe evacuation distance provided in the first embodiment of the present invention. This embodiment is applicable to the case where the shortest safe evacuation distance corresponding to each household building is automatically calculated by performing image recognition on the building drawings. The method can be executed by a calculation device for the shortest safe evacuation distance. The device can be implemented by software and / or hardware and can generally be integrated in a server or terminal device. Specifically, the method includes the following steps:
[0032] S110: Acquire a building plan, and identify building element frames in the building plan.
[0033] The building plan may refer to a floor plan drawing of all building spaces on a specific floor in a complete building. The building plan may include at least one single-family building floor plan. Specifically, for a 5-story building, 5 building plans may be constructed, and different building plans correspond to different floors.
[0034] The single-family building floor plan may refer to the floor plan of each household, and the single-family building floor plan may include descriptive information about the use function, corresponding position, and size of each independent space in each household. The building element frame may refer to the wireframe that defines the drawing area in the building floor plan, and the building element frame may include the wireframe of the drawing area from the overall space to the local space of the building floor plan.
[0035] Specifically, all building element frames may be identified from a building floor plan including at least one single-family building floor plan.
[0036] S120. Reconstructing a building space in the building element frame, wherein the building space includes a plurality of indoor subspaces and a plurality of public subspaces divided by the building segmentation elements.
[0037] The building space may refer to the overall building interior space composed of multiple local spaces inside the building. The building segmentation element may include at least one of a door, a wall, and a window. The indoor subspace may include local spaces such as a living room, a dining room, a kitchen, and a bedroom. The public subspace may include public local spaces such as corridors, stairwells, and elevators.
[0038] Specifically, within the architectural element frame identified from the architectural plan, the architectural space is reconstructed using a plurality of indoor subspaces and public subspaces divided by architectural segmentation elements as basic elements.
[0039] In an optional implementation of this embodiment, within the building element frame, reconstructing the building space may include:
[0040] A CAD (Computer Aided Design) drawing matching the building plan is obtained; each building segmentation primitive included in the CAD drawing is mapped to a building element frame to reconstruct the building space; a connected domain segmentation is performed in the building space to obtain a plurality of subspaces divided by the building segmentation primitives; a space category corresponding to each of the subspaces is obtained, and each of the subspaces is divided into an indoor subspace and a public subspace according to the space category.
[0041] Among them, the space category can be a category divided according to the space usage function.
[0042] Specifically, after identifying the architectural element frame according to the architectural plan, a CAD drawing that matches the architectural plan can be obtained, and each architectural segmentation primitive can be obtained from the CAD drawing, and each architectural segmentation primitive can be mapped to a corresponding position in the architectural element frame to complete the reconstruction operation and obtain a complete architectural space. Furthermore, the architectural space can be operated by connected domain segmentation to obtain each subspace divided by architectural segmentation primitives such as doors, windows and walls, and obtain the space category to which each subspace belongs, such as a living room, dining room, kitchen, corridor and stairwell. Then, each subspace can be divided into indoor subspaces and public subspaces according to the space category of each subspace. For example, spaces with space categories such as living room, dining room and kitchen can be divided into indoor subspaces, and spaces such as corridors and stairwells can be divided into public subspaces. Exemplarily, refer to Figure 1B , it is possible to obtain building segmentation elements such as doors, walls and windows according to CAD drawings, and reconstruct a building space reconstruction structure.
[0043] Optionally, obtaining the space category corresponding to each of the subspaces may include:
[0044] In the CAD drawing, the drawing areas corresponding to each subspace are located; optical character recognition is performed in each drawing area, and the space category corresponding to each subspace is determined based on the recognition result.
[0045] Specifically, the spatial category of each subspace can be determined by optical characters pre-marked in the CAD drawing. The drawing area of each subspace can be located in the CAD drawing, and optical character recognition can be performed in the drawing area to determine the spatial category of each subspace based on the recognition result.
[0046] S130, identifying a door in each of the indoor subspaces, and determining a logical connection channel from each of the doors to a safe evacuation door in a common subspace; the logical connection channel includes at least one common subspace.
[0047] Among them, the logical connection channel can be an accessible channel between the household door and the safety evacuation door.
[0048] Specifically, the door corresponding to each household can be identified based on each subspace in each household, and the logical connection channel from the door of each household to the safe evacuation door can be determined. The logical connection channel can include at least one common subspace. It can be understood that the safe evacuation door can be reached from the door through at least one common subspace.
[0049] In an optional implementation of this embodiment, identifying a door in each indoor subspace may include:
[0050] A target indoor subspace whose space category is a living room is obtained, and the target indoor subspace is expanded; it is detected whether there is a common subspace with an overlapping area with the target indoor subspace after the expansion; if so, the door identified in the overlapping area is regarded as a door of a single-family building.
[0051] The target indoor subspace may be a subspace determined from all subspaces included in each household. In this embodiment, the living room may be identified as the target indoor subspace to identify the door from the living room.
[0052] Specifically, taking each subspace in a single household as a starting point, the indoor subspace with the space category of living room is taken as the target indoor subspace, and the target indoor subspace is expanded to detect whether the subspace overlapping with the expanded target indoor subspace is a public subspace. If so, the door identified in the overlapping area can be regarded as a household door of a single-family building.
[0053] In another optional implementation of this embodiment, determining the logical connection channel from each of the household doors to the safe evacuation door in the common subspace may include:
[0054] Acquire a directly connected public subspace that is connected to the target household door currently being processed; take the directly connected public subspace as a starting point, traverse adjacent public subspaces step by step until traversing to at least one target public subspace containing a safety evacuation door; and generate at least one logical connection channel from the target household door to the safety evacuation door based on the public subspace connectivity relationship between the directly connected public subspace and each of the target public subspaces.
[0055] The target door may be the door of a household currently being processed. The directly connected public subspace may be a public subspace directly connected to the target door, that is, a public subspace that can be directly reached through the target door. The target public subspace may refer to a public subspace containing a safe evacuation door that is found during the traversal of the public subspace. The public subspace connection relationship may refer to a channel relationship between the directly connected public subspace and each target public subspace that can reach each other.
[0056] Specifically, the currently identified household door is determined as the target household door, and the target household door can be used as a starting point to obtain a public subspace that is directly connected to and connected to the target household door, and it can be determined as a directly connected public subspace that is connected to the target household door, such as a corridor. Further, it can be detected whether the directly connected subspace contains a safety evacuation door. If it does, a logical connection channel from the target household door to the safety evacuation door can be directly generated; if it does not, the directly connected public subspace can be used as a starting point to traverse the public subspaces adjacent to the directly connected public subspace step by step until the target public subspace containing the safety evacuation door is traversed, and at least one logical connection channel from the target household door to the safety evacuation door is generated according to the public subspace connectivity relationship between the directly connected public subspace and the target public subspace.
[0057] It should be noted that in the process of traversing adjacent common subspaces step by step, the common subspaces adjacent to the directly connected common subspaces can be searched in advance by expansion. For example, starting from common subspace 1, traversing the common subspaces adjacent to it, common subspace 1 can be expanded, and it is detected whether subspace 2 overlapping with the expanded common subspace 1 is a common subspace. If so, it can be detected whether the common subspace 2 contains a safe evacuation door. If not, the common subspace 2 can be expanded to find the next common subspace adjacent to it, and the above operation is repeated until the safe evacuation door is found.
[0058] S140. Determine, based on the logical connection channel, the shortest safe evacuation distance corresponding to each single-family building in the building plan.
[0059] Optionally, determining the shortest safe evacuation distance corresponding to each single-family building in the building plan according to the logical connection channel may include:
[0060] Acquire at least one target logical connection channel corresponding to the target household door currently being processed; identify at least one key element in each common subspace in each of the target logical connection channels, and locate the corner points corresponding to each key element; generate at least one connection path for connecting the target household door and the safety evacuation door through each of the corner points; acquire the shortest path in each of the connection paths as the shortest safety evacuation distance of a single-family building matching the target household door.
[0061] The target logical connection channel may be one of all logical connection channels from the target door to the safe evacuation door. Key elements may include building elements such as windows, doors, and walls. The connection path may be a walkable path generated by the corner points corresponding to the key elements and corresponding to the logical connection channel one by one.
[0062] Specifically, at least one target logical connection channel can be obtained from each logical connection channel between the target household door and the safety evacuation door, at least one key element can be identified from each common subspace in each target logical connection channel, and the corner point corresponding to each key element can be located, and the corner points of each key element can be connected to generate at least one connection path connecting the target household door and the safety evacuation door. According to the length of each connection path, the shortest connection path can be obtained as the shortest safety evacuation distance of the single-family building matching the target household door. Exemplarily, Figure 1C A schematic diagram of generating the shortest safe evacuation distance according to corner points provided in the first embodiment of the present invention can use the Euclidean distance calculation to continuously iterate and backtrack the distances from the starting corner point to all corner points of the end point until the shortest distance from the starting point to the end point is found. Figure 1C Lines 01-08 are the shortest safe evacuation distances from the doors of each residence to the safe evacuation door.
[0063] In the process of locating the corner points corresponding to the key elements, since each current common subspace has been dilated, each common subspace can be eroded in advance. The advantage of this setting is that it can avoid the inaccurate positioning of the corner points corresponding to the key elements contained therein caused by the dilation process.
[0064] The technical solution of this embodiment obtains a building plan, and identifies a building element frame in the building plan including at least one single-family building floor plan; reconstructs a building space including a plurality of indoor subspaces and a plurality of public subspaces divided by building segmentation elements within the building element frame; identifies a household door in each indoor subspace, and determines a logical connection channel including at least one public subspace from each household door to a safe evacuation door in the public subspace; and determines, according to the logical connection channel, a technical means of determining the shortest safe evacuation distance corresponding to each single-family building in the building plan, solves the problem in the prior art that due to the intricate lines of the building drawings and the interference of lines such as elevation lines and auxiliary lines, the use of classic algorithms such as dijkstra, DFS, BFS, or the calculation of the shortest safe evacuation distance based on the length of the wall combined with manual calculation is inaccurate and the drawing review efficiency is low. While improving the drawing review efficiency, the calculation accuracy of the shortest safe evacuation distance is improved, which helps to standardize the drawings and achieve the effect of improving both efficiency and quality.
[0065] Embodiment 2
[0066] Figure 2A A flowchart of another method for calculating the shortest safe evacuation distance provided in the second embodiment of the present invention. Based on the above embodiments, this embodiment preferably further refines the operation of identifying the building element frame in the building plan, and specifically includes the following steps:
[0067] S210: Acquire a building plan, and extract basic image features at multiple scales from the building plan to be identified.
[0068] The basic image features may refer to image features of a building plan extracted from multiple different scales.
[0069] Optionally, in order to identify the building element frame from the building plan, the building plan may be pre-featured. Specifically, basic image features at multiple scales may be extracted from the building plan to be identified. For example, the basic feature extraction may be implemented by a residual network Resnet50.
[0070] S220 , after upsampling basic image features at at least two scales respectively, processing them through an image pyramid network to obtain first processed image features.
[0071] The first processed image feature may be an image feature obtained by performing upsampling processing on basic image features extracted at at least two different scales and then performing image pyramid processing.
[0072] Specifically, basic image features at at least two scales can be selected from multiple scales, and up-sampled respectively, and processed by the image pyramid network to obtain the first processed image features. Exemplarily, Res_bottleneck3, Res_bottleneck6 and Res_bottleneck7 layers can be selected from the residual network Resnet50 as the base layer for up-sampling.
[0073] S230, using a dilated spatial convolution algorithm to increase the receptive field of the target basic image feature at the target scale to obtain a second processed image feature.
[0074] The target scale may be a single scale among a plurality of different scales, and the target basic image feature may be a basic image feature corresponding to the target scale.
[0075] Specifically, a target basic image feature at a target scale may be selected, and processed using a dilated spatial convolution algorithm to increase the receptive field of the target basic image feature to obtain a second processed image feature.
[0076] Optionally, using a dilated spatial convolution algorithm to increase the receptive field of the target basic image feature at the target scale to obtain the second processed image feature may include:
[0077] Obtain at least two hole convolution ratios; use the convolution kernels corresponding to each hole convolution ratio to perform convolution operations with the target basic image features to obtain multiple convolution image features; perform feature fusion on each of the convolution image features to obtain the second processed image feature.
[0078] Among them, the convolution image features may refer to multiple image features obtained after performing convolution operations on the target basic image features through multiple convolution kernels.
[0079] Specifically, a target basic image feature at a target scale can be selected, and a convolution operation can be performed with the target basic image feature using convolution kernels corresponding to at least two dilated convolution ratios, so as to obtain multiple convolution image features corresponding to the target convolution image feature. The multiple convolution image features can be further fused to obtain a second processed image feature.
[0080] S240: Fusing the first processed image features, the second processed image features, and the target basic image features to obtain fused image features.
[0081] The advantage of this setting is that by further processing the basic image features by the image pyramid network and the void space convolution algorithm, feature fusion processing can be performed, which can solve the problem of missing architectural element frames due to the loss of image feature information extracted by the traditional network.
[0082] S250: Identify the architectural element frame according to the fused image feature.
[0083] For example, Figure 2B A specific application scenario diagram for identifying architectural element frames provided in the second embodiment of the present invention. The architectural plan to be identified can be extracted from multiple different scales such as Res_bottleneck1, Res_bottleneck3, Res_bottleneck6, Res_bottleneck7 and Res_bottleneck8 in the residual network Resnet50. Then, the Res_bottleneck3, Res_bottleneck6 and Res_bottleneck7 layers can be selected as the base layers for upsampling processing to obtain the first image feature through the image pyramid network processing. The target basic image feature at the target scale (for example, the Res_bottleneck6 layer) can also be increased through the hole space convolution algorithm of different convolution kernels. The receptive field operation is performed to obtain multiple convolution image features corresponding to different convolution kernels, and the multiple convolution image features are fused to obtain the second image feature. The first processed image feature, the second processed image feature and the target basic image feature are further fused to obtain the fused image feature, and the architectural element frame is identified according to the fused image feature.
[0084] S260: Reconstructing a building space in the building element frame, wherein the building space includes a plurality of indoor subspaces and a plurality of public subspaces divided by the building segmentation elements.
[0085] S270, identifying household doors in each of the indoor sub-spaces, and determining a logical connection channel from each of the household doors to a safe evacuation door in a common sub-space; the logical connection channel includes at least one common sub-space.
[0086] S280. Determine the shortest safe evacuation distance corresponding to each single-family building in the building plan according to the logical connection channel.
[0087] The technical solution of this embodiment obtains a building plan, extracts image features in the building plan to identify a building element frame; reconstructs a building space including a plurality of indoor subspaces and a plurality of public subspaces divided by building segmentation elements within the building element frame; identifies a household door in each indoor subspace, and determines a logical connection channel including at least one public subspace from each household door to a safe evacuation door in the public subspace; and determines, based on the logical connection channel, a technical means for determining the shortest safe evacuation distance corresponding to each single-family building in the building plan, respectively, solves the problem in the prior art that due to the intricate lines of the building drawings and the interference of lines such as elevation lines and auxiliary lines, the use of classic algorithms such as dijkstra, DFS, BFS, or the calculation of the shortest safe evacuation distance based on the length of the wall combined with manual calculation is inaccurate and the drawing review efficiency is low. While improving the drawing review efficiency, the calculation accuracy of the shortest safe evacuation distance is improved, which helps to standardize the drawings and achieve the effect of improving both efficiency and quality.
[0088] Embodiment 3
[0089] Figure 3 This is a schematic diagram of the structure of a device for calculating the shortest safe evacuation distance provided in Embodiment 3 of the present invention. The device can execute the method for calculating the shortest safe evacuation distance provided in any embodiment of the present invention. Figure 3 The device includes: a building element frame recognition module 310, a building space reconstruction module 320, a logical connection channel determination module 330 and a safe evacuation distance determination module 340.
[0090] The building element frame recognition module 310 is used to obtain a building plan and recognize a building element frame in the building plan, wherein the building plan includes at least one single-family building floor plan;
[0091] An architectural space reconstruction module 320 is used to reconstruct an architectural space in the architectural element frame, wherein the architectural space includes a plurality of indoor subspaces and a plurality of public subspaces divided by architectural segmentation elements;
[0092] The logic connection channel determination module 330 is used to identify the household doors in each of the indoor subspaces and determine the logic connection channel from each of the household doors to the safe evacuation door in the common subspace; the logic connection channel includes at least one common subspace;
[0093] The safe evacuation distance determination module 340 is used to determine the shortest safe evacuation distance corresponding to each single-family building in the building plan according to the logical connection channel.
[0094] The technical solution of this embodiment obtains a building plan, and identifies a building element frame in the building plan including at least one single-family building floor plan; reconstructs a building space including a plurality of indoor subspaces and a plurality of public subspaces divided by building segmentation elements within the building element frame; identifies a household door in each indoor subspace, and determines a logical connection channel including at least one public subspace from each household door to a safe evacuation door in the public subspace; and determines, according to the logical connection channel, a technical means of determining the shortest safe evacuation distance corresponding to each single-family building in the building plan, solves the problem in the prior art that due to the intricate lines of the building drawings and the interference of lines such as elevation lines and auxiliary lines, the use of classic algorithms such as dijkstra, DFS, BFS, or the calculation of the shortest safe evacuation distance based on the length of the wall combined with manual calculation is inaccurate and the drawing review efficiency is low. While improving the drawing review efficiency, the calculation accuracy of the shortest safe evacuation distance is improved, which helps to standardize the drawings and achieve the effect of improving both efficiency and quality.
[0095] In the above device, optionally, the building element frame recognition module 310 may include:
[0096] A basic image feature extraction unit, used to extract basic image features at multiple scales from the building plan to be identified;
[0097] A first processed image feature acquisition unit is used to upsample the basic image features at at least two scales respectively, and then process them through an image pyramid network to obtain a first processed image feature;
[0098] A second processed image feature acquisition unit is used to increase the receptive field of the target basic image feature at the target scale by using a dilated spatial convolution algorithm to obtain a second processed image feature;
[0099] a fused image feature acquisition unit, configured to perform feature fusion on the first processed image feature, the second processed image feature and the target basic image feature to obtain a fused image feature;
[0100] The building element frame recognition subunit is used to recognize the building element frame according to the fused image feature.
[0101] In the above device, optionally, the second processed image feature acquisition unit may be specifically used for:
[0102] Obtain at least two dilated convolution ratios;
[0103] Using convolution kernels corresponding to each hole convolution ratio, respectively, to perform convolution operations with the target basic image features, to obtain multiple convolution image features;
[0104] The convolution image features are subjected to feature fusion to obtain the second processed image features.
[0105] In the above device, optionally, the building space reconstruction module 320 may include:
[0106] A CAD drawing acquisition unit, used to acquire a computer-aided design CAD drawing matching the building plan;
[0107] The building space reconstruction subunit is used to map each building segmentation graphic element included in the CAD drawing into a building element frame to reconstruct the building space; the building segmentation graphic element includes: at least one of a door, a wall and a window;
[0108] A subspace acquisition unit, configured to perform connected domain segmentation in the building space and acquire a plurality of subspaces divided by the building segmentation primitives;
[0109] The indoor and public subspace division unit is used to obtain the space category corresponding to each of the subspaces, and divide each of the subspaces into indoor subspaces and public subspaces according to the space category.
[0110] In the above device, optionally, the logical connection channel determination module 330 may be specifically used for:
[0111] Acquire a target indoor subspace whose space category is a living room, and perform expansion processing on the target indoor subspace;
[0112] Detecting whether there is a common subspace that overlaps with the target indoor subspace after the expansion process;
[0113] If yes, the door identified in the overlapping area is regarded as a door of a single-family building.
[0114] In the above device, optionally, the logical connection channel determination module 330 may also be specifically used for:
[0115] Obtain the directly connected public subspace that is connected to the target household door currently being processed;
[0116] Taking the directly connected public subspace as a starting point, traversing the adjacent public subspaces step by step until traversing to at least one target public subspace containing a safety evacuation door;
[0117] At least one logical connection channel from the target household door to the safety evacuation door is generated according to the common subspace connection relationship between the directly connected common subspace and each of the target common subspaces.
[0118] In the above device, optionally, the safe evacuation distance determination module 340 can be specifically used for:
[0119] Acquire at least one target logical connection channel corresponding to the target door currently being processed;
[0120] Identifying at least one key element in each common subspace in each of the target logically connected channels, and locating corner points corresponding to each key element;
[0121] At least one connection path for connecting the target household door and the safety evacuation door is generated through each of the corner points;
[0122] The shortest path is obtained from each of the connected paths as the shortest safe evacuation distance of the single-family building matching the target door.
[0123] The calculation device for the shortest safe evacuation distance provided in the embodiment of the present invention can execute the calculation method for the shortest safe evacuation distance provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0124] Embodiment 4
[0125] Figure 4 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention is shown in FIG. Figure 4 As shown, the device includes a processor 410, a storage device 420, an input device 430 and an output device 440; the number of processors 410 in the device can be one or more. Figure 4 A processor 410 is taken as an example; the processor 410, storage device 420, input device 430 and output device 440 in the device can be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.
[0126] The storage device 420, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the method for calculating the shortest safe evacuation distance in the embodiment of the present invention (for example, the building element frame recognition module 310, the building space reconstruction module 320, the logical connection channel determination module 330 and the safe evacuation distance determination module 340 in the device for calculating the shortest safe evacuation distance). The processor 410 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the storage device 420, that is, to implement the above-mentioned method for calculating the shortest safe evacuation distance, which may include:
[0127] Acquire a building plan, and identify a building element frame in the building plan, wherein the building plan includes at least one single-family building floor plan;
[0128] Reconstructing a building space in the building element frame, wherein the building space includes a plurality of indoor subspaces and a plurality of public subspaces divided by the building segmentation elements;
[0129] Identify the doors in each of the indoor subspaces, and determine a logical connection channel from each of the doors to the safe evacuation door in the common subspace; the logical connection channel includes at least one common subspace;
[0130] According to the logical connection channel, the shortest safe evacuation distance corresponding to each single-family building in the building plan is determined.
[0131] The storage device 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the storage device 420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device 420 may further include a memory remotely arranged relative to the processor 410, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0132] The input device 430 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 440 may include a display device such as a display screen.
[0133] Embodiment 5
[0134] Embodiment 5 of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is used to execute a method for calculating the shortest safe evacuation distance. The method may include:
[0135] Acquire a building plan, and identify a building element frame in the building plan, wherein the building plan includes at least one single-family building floor plan;
[0136] Reconstructing a building space in the building element frame, wherein the building space includes a plurality of indoor subspaces and a plurality of public subspaces divided by the building segmentation elements;
[0137] Identify the doors in each of the indoor subspaces, and determine a logical connection channel from each of the doors to the safe evacuation door in the common subspace; the logical connection channel includes at least one common subspace;
[0138] According to the logical connection channel, the shortest safe evacuation distance corresponding to each single-family building in the building plan is determined.
[0139] Of course, the computer-readable storage medium provided in an embodiment of the present invention stores a computer program thereon, and the computer program is not limited to the method operations described above, but can also execute related operations in the method for calculating the shortest safe evacuation distance provided in any embodiment of the present invention.
[0140] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (FLASH), a hard disk or an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0141] It is worth noting that in the embodiment of the above-mentioned device for calculating the shortest safe evacuation distance, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0142] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for calculating the shortest safe evacuation distance, It is characterized in that include: Acquire a building plan, and identify a building element frame in the building plan, wherein the building plan includes at least one single-family building floor plan; In the architectural element frame, a building space is reconstructed, wherein the building space includes a plurality of indoor subspaces and a plurality of public subspaces divided by architectural segmentation elements, the architectural segmentation elements include: at least one of a door, a wall and a window, the indoor subspaces include partial spaces of a living room, a dining room, a kitchen and a bedroom, and the public subspaces include partial spaces of corridors, stairwells and elevators; a door is identified in each of the indoor subspaces, and a logical connection channel from each of the door to a safe evacuation door in the public subspace is determined; the logical connection channel includes at least one public subspace; Determine, according to the logical connection channel, the shortest safe evacuation distance corresponding to each single-family building in the building plan; The determining, according to the logical connection channel, the shortest safe evacuation distance corresponding to each single-family building in the building plan, comprises: Acquire at least one target logical communication channel corresponding to the target household door currently being processed; wherein the target logical communication channel is one channel among all logical communication channels from the target household door to the safety evacuation door; Identify at least one key element in each common subspace in each of the target logically connected channels, and locate corner points corresponding to each key element; the key elements include windows, doors, and walls; At least one connection path for connecting the target household door and the safety evacuation door is generated through each of the corner points; The shortest path is obtained from each of the connected paths as the shortest safe evacuation distance of the single-family building matching the target household door.
2. The method according to claim 1, It is characterized in that Identifying a building element frame in the building plan includes: Extract basic image features at multiple scales from the floor plan of the building to be identified; After upsampling the basic image features at at least two scales, the basic image features are processed through an image pyramid network to obtain first processed image features; The atrous spatial convolution algorithm is used to increase the receptive field of the target basic image features at the target scale to obtain the second processed image features; Fusing the first processed image feature, the second processed image feature, and the target basic image feature to obtain a fused image feature; The building element frame is identified according to the fused image feature.
3. The method according to claim 2, It is characterized in that The atrous spatial convolution algorithm is used to increase the receptive field of the target basic image features at the target scale, and the second processed image features are obtained, including: Obtain at least two dilated convolution ratios; Using convolution kernels corresponding to each hole convolution ratio, respectively, to perform convolution operations with the target basic image features, to obtain multiple convolution image features; The convolution image features are subjected to feature fusion to obtain the second processed image features.
4. The method according to claim 1, It is characterized in that In the architectural element frame, the architectural space is reconstructed, including: Obtaining a computer-aided design (CAD) drawing that matches the building plan; Mapping each building segmentation graphic element included in the CAD drawing into a building element frame to reconstruct the building space; the building segmentation graphic element includes: at least one of a door, a wall and a window; Performing connected domain segmentation in the building space to obtain a plurality of subspaces divided by the building segmentation primitives; The space categories respectively corresponding to the subspaces are obtained, and the subspaces are divided into indoor subspaces and public subspaces according to the space categories.
5. The method according to any one of claims 1 to 4, It is characterized in that The door is identified in each indoor subspace, including: Acquire a target indoor subspace whose space category is a living room, and perform expansion processing on the target indoor subspace; Detecting whether there is a common subspace that overlaps with the target indoor subspace after the expansion process; If yes, the door identified in the overlapping area is regarded as a door of a single-family building.
6. The method according to claim 5, It is characterized in that Determine the logical connection channel from each of the household doors to the safe evacuation door in the public subspace, including: Obtain the directly connected public subspace that is connected to the target household door currently being processed; Taking the directly connected public subspace as a starting point, traversing the adjacent public subspaces step by step until traversing to at least one target public subspace containing a safety evacuation door; At least one logical connection channel from the target household door to the safety evacuation door is generated according to the common subspace connection relationship between the directly connected common subspace and each of the target common subspaces.
7. A device for calculating the shortest safe evacuation distance, It is characterized in that include: A building element frame recognition module is used to obtain a building plan and recognize a building element frame in the building plan, wherein the building plan includes at least one single-family building floor plan; An architectural space reconstruction module, used to reconstruct the architectural space in the architectural element frame, wherein the architectural space includes a plurality of indoor subspaces and a plurality of public subspaces divided by the architectural segmentation elements; A logic connection channel determination module is used to identify the household doors in each of the indoor subspaces and determine the logic connection channel from each of the household doors to the safe evacuation door in the public subspace; the logic connection channel includes at least one public subspace, the building segmentation graphic element includes: at least one of a door, a wall and a window, the indoor subspace includes the local space of the living room, the dining room, the kitchen and the bedroom, and the public subspace includes the local space common to the corridor, the stairwell and the elevator room; A safe evacuation distance determination module, used to determine the shortest safe evacuation distance corresponding to each single-family building in the building plan according to the logical connection channel; The safe evacuation distance determination module is specifically used to obtain at least one target logical communication channel corresponding to the target household door currently being processed; wherein the target logical communication channel is one channel among all logical communication channels from the target household door to the safe evacuation door; Identify at least one key element in each common subspace in each of the target logically connected channels, and locate corner points corresponding to each key element; the key elements include windows, doors, and walls; At least one connection path for connecting the target household door and the safety evacuation door is generated through each of the corner points; The shortest path is obtained from each of the connected paths as the shortest safe evacuation distance of the single-family building matching the target household door.
8. An electronic device, It is characterized in that The electronic device comprises: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement a method for calculating the shortest safe evacuation distance as described in any one of claims 1-6.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, a method for calculating the shortest safe evacuation distance as described in any one of claims 1 to 6 is implemented.
