Indoor fire hydrant point location automatic deployment method and system and terminal equipment

By converting the building plan into JSON format, extracting the central axis network information and line segments, setting fire hydrant specifications, pre-generating and optimizing fire hydrant points, using DataMap two-dimensional array and pathfinding algorithm to calculate the minimum number of fire hydrant points, solving the current problem There are problems such as fire hydrant deployment that is time-consuming, labor-intensive, and low in accuracy. Automated and efficient fire hydrant point deployment and rationality verification have been achieved.

CN118643553APending Publication Date: 2024-09-13THIRD DIMENSION (HENAN) SOFTWARE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310380858.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-11
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

The existing fire hydrant deployment method is time-consuming and labor-intensive, has low accuracy, and cannot achieve automation, automatic deployment, and rationality verification.

Method used

Convert DWG format building plans into JSON format, extract central axis network information and line segments, set fire hydrant specifications, pre-generate points, optimize fire hydrant points, and calculate the minimum number of fire hydrant points through DataMap two-dimensional array division and pathfinding algorithms , to achieve automatic deployment.

Benefits of technology

It achieves automated, high-precision, and high-efficiency deployment of fire hydrant points, meets fire protection requirements, saves designers time, and improves the automation level of fire protection design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118643553A
    Figure CN118643553A
Patent Text Reader

Abstract

The invention provides an indoor fire hydrant point location automatic deployment method and system and terminal equipment. The method comprises the steps that DWG format architectural plane graph information is obtained through software, and axis network information and different types of lines are extracted to generate a closed area with a purpose function name; setting the specification of the fire hydrant box; the method comprises the following steps: pre-generating coordinates of a necessary fire hydrant point location, an inspection point location and an alternative fire fighting point location according to a fire fighting rule, and storing the coordinates in a JSON format plane graph; different types of lines are mapped into a DataMap two-dimensional array, the DataMap two-dimensional array is subjected to cluster division, and a preprocessing path map is generated; and in combination with the pre-processing path map, based on the fact that all the inspection point locations are covered and restrained by at least two fire hydrants, the minimum number of fire hydrant point locations meeting the requirements are calculated. According to the method, the minimum number of fire hydrant point locations meeting the fire-fighting standard requirements can be automatically deployed, manual participation is not needed, and the indoor fire-fighting point location arrangement efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of building fire protection design, and in particular to a method, system and terminal equipment for automatic deployment of fire hydrant points. Background Art

[0002] Indoor fire hydrants are the main fire-fighting facilities in buildings. The rationality of fire hydrant deployment has a great impact on the fire fighting effect of buildings. At present, the layout of indoor fire hydrants in buildings is often done manually. Designers use manual methods to place fire hydrant points in BIM software, and then use tools to draw coverage circles repeatedly manually. According to the principle that any area on the same floor of a building should be protected by the water column formed by the water guns of two fire hydrants in the building fire protection code, calculate whether the fire protection area covered by the arranged fire hydrant points meets the requirements, or rely on the designer's design experience to directly design. The former manual deployment is time-consuming and labor-intensive, and the straight-line distance is used for estimation when calculating the coverage area. It is difficult to achieve the actual use path based on the fire hose when extinguishing the fire, and there is a certain error; the rationality and accuracy of the latter point setting are more difficult to control.

[0003] The invention patent with application number 201911350105.9 discloses a method for automatic layout of firefighting points applied to a cloud platform. The firefighting drawings to be detected are converted into two identical pictures, named display pictures and recognition pictures respectively. By constructing multiple categories of firefighting point training models, each category of firefighting point training model detects the position coordinates and category information of the same category of firefighting points on the image to be identified. Through multiple categories of firefighting point training models, the position coordinates and category information of all firefighting points on the image to be identified can be detected; then, according to the ratio of the recognition picture and the display picture, the identified firefighting point position coordinates and category information are converted to the display picture, which is convenient for display on the smart firefighting IoT cloud platform. This method can only detect and identify the firefighting point coordinates and category information on the firefighting drawings with existing firefighting arrangements, and then deploy the detected information on the display firefighting pictures of the same scale that can be displayed on the IoT cloud platform, but it cannot realize the design and automatic deployment of firefighting points on architectural drawings or firefighting drawings without firefighting points, nor can it verify whether the deployed points are reasonable and compliant. Summary of the invention

[0004] In view of the technical problems that the existing fire hydrant deployment methods are time-consuming, labor-intensive and low in precision, the present invention proposes an automatic deployment method, system and terminal equipment for indoor fire hydrant points. According to the floor plan in the building design, the automatic deployment of fire hydrant points can be quickly realized. Compared with the existing technology, it has the advantages of automation, high precision and high efficiency.

[0005] In order to achieve the above object, the technical solution of the present invention is implemented as follows: a method for automatically deploying indoor fire hydrant points, the steps of which are as follows:

[0006] S1. Use software to convert DWG format architectural floor plans into JSON format, extract central axis network information and different types of line and text annotation information, and generate closed areas with functional names;

[0007] S2. Set the specifications of the fire hydrant box and calculate the length that can be covered by the water column for fire extinguishing according to the specifications of the fire hydrant box;

[0008] S3, pre-generated points: select a closed area with a function name that meets the requirements, and on the line segment enclosing the closed area, generate the coordinates of the required fire hydrant points, check points, and alternative fire protection points in sequence according to the preset rules of the fire hydrant points, and save them in the JSON format plan;

[0009] S4, mapping the extracted different types of lines into a DataMap two-dimensional array, dividing the two-dimensional array into multiple hierarchical maps using clusters of different sizes, and generating a preprocessed path map;

[0010] S5. Optimize fire hydrant locations: Combined with the pre-processed path map, based on the rule that all checkpoints are covered by at least two fire hydrants, calculate the minimum number of fire hydrant locations that meet the requirements.

[0011] Preferably, the central axis network information and different types of lines and text annotation information are included in different layers, the different types of lines include coordinates and span data information of the building's exterior wall lines, door lines, interior wall lines, window lines, and column outlines, and the central axis network information includes the central axis network X-axis and Y-axis information;

[0012] The text labeling information includes the functional text labeling of the purpose and its coordinates, and the functional text labeling includes the name of the living room, bedroom, bathroom, office, stairwell, fire anteroom or antechamber, corridor or public area;

[0013] The closed area is a polygonal outline area or a rectangular outline area surrounded by wall lines, door lines or window lines. The use and functional attributes of the closed area are determined according to the relative position relationship between the coordinates marked with functional characters and the closed area. The closed areas with use and functional names include stairwell closed areas, vestibule closed areas, corridor closed areas, hall closed areas, public area closed areas, water and heating well closed areas, outer contour closed areas, etc.

[0014] Preferably, the setting of the fire hydrant specifications includes setting the height, width, thickness of the fire hydrant, the length L of the fire hose roll in the fire hydrant, and the length of the full water column;

[0015] According to the fire hose and the full water column length, it can be concluded that the fire hydrant can cover the fire extinguishing radius.

[0016] Preferably, the implementation method of the pre-generated points is:

[0017] S31, according to the extracted stairwell closed area, a wall line segment whose length is greater than the width of the fire hydrant is selected from the wall line segments enclosing the stairwell closed area, and the first fire hydrant point is determined on the wall line segment; and a wall line segment whose length is greater than the width of the fire hydrant is selected from the wall line segments enclosing the fire elevator vestibule closed area, and the second fire hydrant point is set on the wall line segment;

[0018] S32, sequentially selecting appropriate wall segments from the wall segments of the water and heating well closed area, the public area closed area, the corridor closed area, the lobby closed area, and the column closed area, and setting corresponding one or more fire hydrant points;

[0019] S33, according to the order in which the points are generated, setting the first fire hydrant point and the second fire hydrant point as mandatory fire hydrant points, and the remaining points as alternative fire hydrant points;

[0020] S34, setting the coordinates of all intersections between the exterior wall lines of the building, the coordinates of all intersections between the exterior wall lines and the interior wall lines, and the coordinates of the center points of all door lines as check points, to verify whether the candidate fire fighting points meet the fire fighting regulations that any area on the same floor of the building should be protected by a full water column formed by the water guns of two fire hydrants;

[0021] S35. Save the coordinates of the required fire hydrant points, alternative fire protection points and check points in the JSON format plan.

[0022] Preferably, the mapping method of the DataMap two-dimensional array is:

[0023] S41. Set a reasonable mapping size according to the size of the building plan;

[0024] S42, according to the length of the outer wall line that encloses the closed area of ​​the building's outer contour, 外墙线 Determine the number of boundary nodes num of the two-dimensional array of the mapping DataMap, and the division standard is num=lenth 外墙线 / size; then, according to the coordinates of the exterior wall line, the corresponding value in the DataMap two-dimensional array is marked with a predefined number 1; similarly, the interior wall line, door line, window line, and column outline are mapped in the DataMap two-dimensional array, and different types of lines are marked with predefined different numbers in the mapping DataMap two-dimensional array;

[0025] The method for generating the preprocessing path map is:

[0026] S43, selecting different sizes to perform cluster division on the DataMap two-dimensional array, and setting the number of map layers according to the number of levels of cluster division;

[0027] S44, first add border nodes to each adjacent large cluster in the maximum level map;

[0028] S45, further divide the large cluster into smaller clusters, check whether there is a border node on each single side of the small cluster, if there is and the agreement is met, no border node is added to the single side; if not, add a new border node;

[0029] S46. Then, in each level map, the external and internal edges of the border nodes of all clusters at that level are constructed to form a preprocessing path map for each level.

[0030] Preferably, the number 0 and the corresponding number of the gate line in the DataMap two-dimensional array are set as traversable attributes, and the numbers of other types of lines are set as non-traversable attributes; each partition block of the DataMap two-dimensional array is a cluster;

[0031] The border nodes are located on the borders of adjacent clusters. Two adjacent traversable attributes on the border in the maximum level map are used as border nodes. The number of border nodes on a single border is NUM. border Determined by the number of cluster levels, and NUM border =2 n-1 , n is the number of cluster levels;

[0032] The external edges are paths between border nodes of different clusters; the internal edges are paths between border nodes in the same cluster; the external edges and the internal edges are generated using the Euclidean distance method, that is, the straight lines between border nodes are all traversable.

[0033] Preferably, the implementation method of step S5 is:

[0034] S51. According to the coordinates of the points in the JSON format plan, first use the Euclidean distance to estimate the checkpoints that can be covered by each required fire hydrant point, and form a set of coverable checkpoints of the required fire hydrant; map all points to the preprocessed path map of the DataMap two-dimensional array, and obtain the set of coverable checkpoints of each required fire hydrant according to the path-finding algorithm;

[0035] S52, for the checkpoints that are not fully covered, use the Euclidean distance and path-finding algorithm to obtain a set of checkpoints that can be accurately covered for each candidate fire hydrant point; then use the greedy algorithm to calculate the minimum number of candidate fire hydrant points, so that the set of checkpoints that are not fully covered is fully covered, that is, each checkpoint is covered at least twice;

[0036] S53, save the coordinates of the selected alternative fire hydrant points and the two required fire hydrant points in the JSON format plan, and display the fire hydrant component icons in proportion to their corresponding coordinates according to the width set in step S3, so as to realize automatic deployment and drawing of fire hydrant points.

[0037] Preferably, the implementation method of step S51 is:

[0038] S511. According to the coordinates of the required fire hydrant points and all the checkpoints in the JSON format plan, the straight-line distance dist between each required fire hydrant point and all the checkpoints is estimated using the Euclidean distance. If the distance dist is less than the length L of the fire hydrant hose, it means that the full water column of this fire hydrant can cover the checkpoint, and the checkpoint is added to the set of coverable checkpoints I. K ;

[0039] S512, map each required fire hydrant point and all checkpoints to the pre-processed path map at the maximum level, and set the required fire hydrant point as the starting point C star , will cover the checkpoint bit set I k The checkpoint is set to the end point C goal ;

[0040] S513, using the path-finding algorithm to find the shortest path l from the starting point to the end point from the pre-processed path map of the largest level star→goal ; If there is no connection path in the preprocessing path map of the current layer, it will gradually move to the preprocessing path map of the lower layer to search for the possibility of the shortest path connection from the starting point to the end point;

[0041] S514. For each existing shortest path l star→goal , if it is greater than the required fire hydrant hose length L, the set of checkpoints I can be covered from it K If there is no shortest path l star→goal , also from the coverable checkpoint bit set I K Eliminate from the list; Combine the full set of checkpoints to reversely filter out the uncovered checkpoint set for each required fire hydrant, and merge the uncovered checkpoint sets of the two required fire hydrants to form an insufficiently covered checkpoint set;

[0042] The steps of the path finding algorithm are:

[0043] Sa, first determine the cluster numbers of the starting point and the end point in the preprocessing path map at the largest level, and use the cached paths in the preprocessing path map to find the shortest path between the two clusters l short , and determine the border node F of the starting cluster on the path start and the border node F of the endpoint cluster goal ;

[0044] Sb, if the preprocessing path graph of the current level cannot find the shortest path, then enter the preprocessing path graph of the next level, return to step Sa, and loop until moving to the preprocessing path graph of the minimum level;

[0045] In step Sa, if the starting point and the end point are in the same cluster, the A star algorithm is directly used to find the shortest path connection line l in the cluster. sg , then l star→goal = l sg ; If the starting point and the end point are not in the same cluster, use the A star algorithm to find the node from the starting point to the border node F in the cluster where the starting point is located. start The shortest path l start ; In the cluster where the endpoint is located, use the Astar algorithm to find the endpoint to the border node F goal Shortest path l goal , then the shortest path between the starting point and the end point is l star→goal = l start +l short +l goal .

[0046] A fire hydrant point automatic deployment system, comprising:

[0047] Data conversion module, which parses the architectural floor plan in DWG format into the floor plan in JSON format;

[0048] Data extraction module, extracting various types of lines from the floor plan in JSON format;

[0049] The mapping module maps the JSON formatted floor plan into a DataMap two-dimensional array according to the closed areas enclosed by various types of lines. The values ​​in the array are marked with predefined numbers.

[0050] The path map generation module uses cluster partitioning to divide the DataMap two-dimensional array into clusters of different sizes to form pre-processed path maps of different levels, and the external and internal edges of the edge nodes of the clusters on the pre-processed path map form a cached path;

[0051] The point pre-generation module generates the required fire hydrant points, checkpoints and candidate fire points in the JSON format plan;

[0052] The point optimization module uses the path-finding algorithm to find the shortest path between the required fire hydrant points and the checkpoints on the pre-processed path map, and uses the path-finding algorithm to find the minimum number of fire hydrant points corresponding to the remaining checkpoints as candidate fire points.

[0053] A terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for automatically deploying indoor fire hydrant points is implemented.

[0054] A computer-readable storage medium stores computer instructions, which, when executed, implement the method for automatic deployment of indoor fire hydrant points.

[0055] The present invention constructs fire-fighting point generation rules without the need for manual participation of designers, and automatically pre-generates fire hydrant points through a system or device; then clusters are divided according to the two-dimensional array mapped by the plan view to generate a pre-processed path map, and a path-finding algorithm is used to simulate the actual routes that fire hoses can use when extinguishing fires in reality from the pre-processed path map, and find the shortest path between the fire-fighting point and the coverage point. Based on the fire-fighting demand that any area on the same floor of a building should be protected by a full water column formed by the water guns of two fire hydrants, a reasonable and minimum number of fire hydrant points are obtained from the pre-generated points and deployed on the drawings.

[0056] Compared with the prior art, the present invention has the following beneficial effects: the present invention can automatically deploy the minimum number of fire hydrant points that meet fire protection requirements without manual intervention, thereby improving the efficiency and accuracy of indoor fire protection point layout.

[0057] 1. No need for manual operation by designers, automatic deployment and drawing of firefighting points can be achieved;

[0058] 2. The fire-fighting route simulation is closer to the real situation, the number and location of fire-fighting points are more reasonably deployed, and the coverage area calculation is more accurate and more in line with the actual application scenario; it can greatly save the time of architects and promote the automation of architectural design, especially fire-fighting design. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0060] Figure 1 It is a schematic diagram of the process of the present invention.

[0061] Figure 2 It is a schematic diagram of the implementation process of the present invention.

[0062] Figure 3 It is the architectural plan of the present invention.

[0063] Figure 4 It is a schematic diagram of the contour plane formed after the data is extracted in the present invention.

[0064] Figure 5 It is a schematic diagram of a closed area with public functional use attributes of the present invention.

[0065] Figure 6 A schematic diagram of the locations of checkpoints for setting intersections of exterior wall lines in a building plan of the present invention.

[0066] Figure 7 It is a schematic diagram of the DataMap array generation method in the present invention.

[0067] Figure 8 This is an abstract schematic diagram of the cluster partitioning generation path map in the present invention. Fig. 9 This is a flow chart for screening a set of checkpoints that are not fully covered by required fire hydrants in the present invention. Fig.10 The figure is a flow chart of the path finding algorithm between the fire hydrant and the checkpoint in the present invention. Fig.11 The present invention is a flowchart for implementing the method of selecting the minimum number of candidate fire hydrants. Fig.12 It is a schematic diagram of the structure of the terminal device of the present invention. DETAILED DESCRIPTION

[0068] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0069] A method for automatically deploying indoor fire hydrant points, the steps are as follows:

[0070] S1. Use software to convert DWG format architectural floor plans into JSON format, extract central axis network information and different types of line and text annotation information, and generate closed areas with functional names;

[0071] S2. Set the specifications of the fire hydrant box, and then calculate the length that the water column can cover according to the specifications.

[0072] S3, pre-generated points: based on the point pre-deployment strategy, the coordinates of the required fire hydrant points, checkpoints and alternative firefighting points are generated and saved in JSON format;

[0073] S4, mapping different types of lines extracted from the plane map into a DataMap two-dimensional array, dividing the two-dimensional array into multiple hierarchical maps using clusters of different sizes, and generating a preprocessed path map;

[0074] S5. Optimize fire hydrant locations: Combined with the pre-processed path map, based on the constraint that all checkpoints are covered by at least two fire hydrants, calculate the minimum number of fire hydrant locations that meet the requirements.

[0075] Embodiment 1, as Figure 1 and Figure 2 As shown, a method for automatic deployment of fire hydrant points, the specific implementation steps are as follows:

[0076] S1. Use Revit software to convert the DWG format architectural plan into JSON format, extract the central axis network information and different types of line and text annotation information, and generate closed areas with functional names;

[0077] In the floor plan of the building, e.g. Figure 3 As shown, obtain the X-axis and Y-axis information of the central axis network.

[0078] From the different layers and elements of the drawing, obtain the coordinates and span information data of the building's exterior wall lines, interior wall lines, and column outlines, such as Figure 4 As shown in the figure, the coordinates and span information data of door lines, window lines, and text annotations are obtained. Among them, the extracted text annotations mainly include the names of functional uses and their coordinates. The names of functional uses include halls, office areas, stairwells, front rooms, elevator halls, corridors, water and heating wells, living rooms, bedrooms, toilets, etc.

[0079] Based on the extracted wall line, the doors and windows arranged on it are connected to obtain a polygonal or rectangular closed area enclosed by the wall line. Based on the correspondence between the text-marked coordinates and the closed area coordinates, the functional use attributes of the closed area are obtained.

[0080] like Figure 5 As shown in the figure, based on the principle that indoor fire hydrants are arranged in indoor public spaces, it is considered that they should be arranged in polygonal or rectangular closed areas with public functional attributes such as stairwells, front rooms, corridors, halls, etc. The wall lines enclosed in the closed area have the functional attributes represented by the closed area, and the functional attributes of the wall lines are added to the JSON format floor plan data information.

[0081] S2. Set the fire hydrant specifications, and then calculate the coverage length of the water column fire extinguishing according to the specifications.

[0082] The fire hydrant specifications include data such as the height, width, thickness, length of the fire hydrant hose, water gun, water pressure, etc.

[0083] The coverage length L of the full water column for fire extinguishing is calculated based on the length of the fire hose and the full water column, which is the length of the fire hydrant hose plus the length of the water column mapped to the ground during fire extinguishing.

[0084] S3, pre-generated points: based on the point pre-deployment strategy, the coordinates of the required fire hydrant points, checkpoints and alternative firefighting points are generated and saved in JSON format;

[0085] The method for implementing the point pre-deployment strategy of the pre-generated points is as follows:

[0086] S31. Based on step S1, the closed areas of the indoor public space are obtained, and their wall lines are split into a number of wall line segments of different lengths by the spans of the doors and windows above them. The wall line segments whose lengths are greater than the set width of the fire hydrant box are selected.

[0087] S32. According to the fire protection regulations, indoor fire hydrants should be set in obvious and easily accessible locations. Therefore, the pre-generation and deployment order of fire hydrant points is sequential, and they are respectively set in closed areas such as stairwells, vestibules, water and heating wells, corridors, halls, and columns in public areas. According to the extracted stairwell closed area, a wall segment with a length greater than the width of the fire hydrant box is selected from the wall segments enclosing the closed area, and the first fire hydrant point is automatically determined on it; then, a wall segment with a length greater than the width of the fire hydrant box is selected from the wall segments of the enclosed fire elevator vestibule closed area, and the second fire hydrant point is set on it. In sequence, appropriate wall segments are selected from the wall segments of the water and heating well closed area, the public area closed area, the corridor closed area, the hall closed area, and the column closed area, and one or more corresponding fire hydrant points are set.

[0088] Furthermore, firstly, for the closed area of ​​the stairwell in the building plan, if there is only one stairwell, two fire hydrant points can be deployed in the public functional closed area such as the vestibule or corridor connected to the stairwell by selecting two qualified wall segments; if the line segments in the area connected to the stairwell are not suitable, one fire hydrant point that meets the width can be selected on the inner wall segment of the stairwell, and two fire hydrant points can be deployed by adopting the fire hydrant box mode with double heads and double hydrants. If there are two or more stairwells, only one fire point can be arranged in each closed area of ​​the stairwell. If there is no suitable wall segment to be deployed in a stairwell, then one fire point can be deployed in the wall segment of the vestibule or fire vestibule connected to the stairwell.

[0089] Furthermore, according to the order of the water and heating well closed area, the corridor closed area, the hall closed area, and the public space column closed area, the wall line segments that meet the conditions are selected respectively, and the fire hydrant points are deployed.

[0090] Preferably, in order to facilitate users to take in practical applications, from the wall line segments that meet the conditions, the wall line segments closest to the staircase door are preferentially selected to arrange the fire hydrant points;

[0091] S33. According to the order of point generation, the first and second fire hydrant points pre-deployed in the stairwell or the front room connected to the stairwell are set as required fire hydrant points, and the remaining points are alternative fire hydrant points. The common empirical rule of architectural design is to arrange the stairwell first, and then arrange other points, because it is convenient for firefighters to take them.

[0092] S34. Set up checkpoints to verify whether the deployment of fire-fighting points complies with the fire-fighting regulations that any area on the same floor of the building should be protected by a full water column formed by the water guns of two fire hydrants; therefore, the broad concept of any area on the same floor is abstracted into specific points, that is, all the intersections of the building's outer wall lines and the center points of all door lines are set as checkpoints; if the building is divided into fire compartments, all the intersections of the fire compartment dividing line and the inner wall lines of the compartment, as well as all the center points of the door lines in the fire compartment are set as checkpoints.

[0093] S35. Save the coordinates of the pre-generated mandatory fire hydrant points, alternative fire hydrant points, and checkpoints in a JSON format plan.

[0094] S4. Map the different types of lines extracted from the plan view into a DataMap two-dimensional array, and then cluster the DataMap two-dimensional array to generate a preprocessed path map.

[0095] According to the coordinate position and span of each type of line or line segment, they are mapped to the DataMap two-dimensional array. Different types of lines are marked with pre-defined numbers. The DataMap two-dimensional array is then divided into clusters of different sizes for multiple times. According to the connection paths between clusters, pre-processed path maps of different levels are obtained and cached.

[0096] like Figure 3 As shown, the process of constructing a DataMap two-dimensional array is as follows:

[0097] S41. Set a reasonable mapping scale size according to the size of the building plan. It has been verified in practice that a 1:1000 scale has a better effect on the accuracy of path generation during initial mapping.

[0098] S42, when initially constructing the DataMap two-dimensional array, its default initial value is 0. The DataMap two-dimensional array boundary size num, that is, the total number of rows and columns of the two-dimensional array, is determined according to the coordinates and length lenth of the wall line of the closed area of ​​the building outer contour enclosed by the outer wall line. The corresponding formula is: num = lenth 外墙 / size. Then, according to the coordinate position of the outer wall line, its value is marked as a predefined number 1 at the corresponding position of the two-dimensional array.

[0099] Among them, Figure 3 As shown, a and b are exterior wall lines, and the number of columns of the corresponding DataMap two-dimensional array is equal to the length of the exterior wall line a divided by size, and the number of rows is equal to the length of the exterior wall line b divided by size.

[0100] S43, according to the location of the wall line, door line, and column outline, different types of lines are marked in the DataMap two-dimensional array using predefined numbers. For example, the external wall lines a and b are mapped to the DataMap array, and the numbers of the rows and columns they occupy are all 1. c is the column outline, and according to the size of the column outline boundary, the area where the column outline is located is represented by a number 5 in the rows and columns of the DataMap two-dimensional array.

[0101] Among them, the attributes corresponding to the number 0 mapped to the open space of the building and the number 2 mapped to the door line are set as traversable attributes; other types of lines are mapped to digital attributes and set as non-traversable attributes.

[0102] like Figure 4 As shown, the method of generating a preprocessing path map by clustering is as follows:

[0103] S44. Select a suitable size to cluster the DataMap two-dimensional array, and set the number of map layers according to the number C of cluster division levels.

[0104] Based on the number of rows and columns containing two-dimensional array elements, the array is divided into blocks, each of which is called a cluster. The more elements it contains, the larger the cluster is. Figure 4 As shown, the size of the first-level cluster is 4*4, the level is 1, the size of the second-level cluster is 8*8, the level is 2, then the total number of map layers of this two-dimensional array is 2. Among them, the DataMap two-dimensional array is called a map after being divided into clusters.

[0105] S45. First, in the maximum level map, add a border node for each adjacent large cluster.

[0106] The maximum level map means that each cluster is the largest and the number of levels is the largest. The border nodes are digital nodes located on the borders of adjacent clusters. They must be traversable numbers (0 or 2) to be used as border nodes. The number of border nodes on a single border is NUM. border Determined by the number of cluster levels, the formula is NUM border =2 n-1 , n is the number of cluster levels.

[0107] In this embodiment, Figure 3 As shown, the number of border nodes of the second-level 8*8 cluster is 2, and the number of border nodes of the first-level 4*4 cluster is 1.

[0108] S46, further divide the large cluster into smaller clusters, and check whether there are inheritable border nodes on each side of the small cluster. If there are and the number meets the formula, no more border nodes are added to the side; if not, new border nodes are added using the same rules.

[0109] S47. In each level of the map, construct the external and internal edges of the border nodes of all clusters to form path connections between all border nodes of the current layer. These connecting lines are paths. The paths between the nodes of each layer of the map are obtained, which is the preprocessed path map and cached.

[0110] Among them, the external edge is the path between border nodes of different clusters; the internal edge is the path between border nodes in the same cluster, which is generated using the Euclidean distance method, that is, the straight line between nodes. If there is an obstacle in the straight line connection process, that is, the non-traversable attribute exists, then the straight line cannot be formed, that is, the path does not exist.

[0111] In this specific embodiment, Figure 4 As shown, in a one-level abstract map, nodes a, b, c, and d are all border nodes, edge ab is an external edge, and edges bc, cd, and bd are all internal edges.

[0112] By preprocessing the path map of each layer of the map and caching it in the external memory, it is beneficial to practice in the later calculation of the coverage of fire points. By simply calling the cached map, the appropriate path can be quickly and accurately selected from it, thereby improving efficiency.

[0113] S5. Optimize fire hydrant locations: Combined with the pre-processed path map, based on the constraint that all checkpoints are covered by at least two fire hydrants, calculate the minimum number of fire hydrant locations that meet the requirements.

[0114] The specific implementation method for optimizing the fire hydrant points is:

[0115] S51. Based on the coordinates of the points in the JSON format plan, the Euclidean distance is used to estimate the checkpoints that each required fire hydrant point can cover, and a preliminary set of checkpoints that can be covered by the fire hydrant is formed; then all points are mapped to the preprocessed path map of the DataMap two-dimensional array, and the set of checkpoints that can be covered by each required fire hydrant is further accurately obtained according to the path-finding algorithm, and then the full set of insufficiently covered checkpoints is constructed in reverse.

[0116] like Figure 5As shown, the implementation method of this step is:

[0117] S511. According to the coordinates (x, y) of the required fire hydrant points and all the checkpoints in the JSON format plan, the straight-line distance dist between each required fire hydrant point and all the checkpoints is estimated using the Euclidean distance. If the distance dist is less than the length L of the fire hydrant hose, it means that the full water column of this fire hydrant can cover the checkpoint, and the checkpoint is added to the coverable checkpoint set I. K .

[0118] in, k is the required fire hydrant number k∈(0,1); m is the number of the checkpoint.

[0119] The straight-line distance is estimated using the Euclidean distance, which helps to quickly screen out possible checkpoints that meet the conditions in advance, and then accurately locate them in the set of checkpoints that meet the conditions, reducing the amount of calculation and increasing the running speed.

[0120] S512, first select each required fire hydrant point and set I K All checkpoints are mapped to the pre-processed path map at the maximum level, and the required fire hydrant point is set as the starting point C star , the coverable checkpoint bit set I obtained in the previous step k The checkpoints in are set as the end points C goal .

[0121] S513, using the path-finding algorithm to start searching for the shortest path l from the starting point to the end point from the pre-processed path map at the largest level star→goal ; If there is no connection path in the preprocessing path map of the current layer, it will gradually move to the preprocessing path map of the lower layer to search for the possibility of the shortest path connection from the starting point to the end point.

[0122] The process of the path-finding algorithm is as follows: Figure 6 As shown, the specific steps are as follows:

[0123] Sa, first determine the cluster numbers of the starting point and the end point in the preprocessing path map at the largest level, and use the cached paths in the preprocessing path map to find the shortest path between the two clusters l short , and determine the border node F of the starting cluster on the path start and the border node F of the endpoint cluster goal .

[0124] Furthermore, if the starting point and the end point are in the same cluster, the A star algorithm is directly used to find the shortest path connection line l in the cluster. sg , then l star→goal = l sg .

[0125] Furthermore, if the starting point and the end point are not in the same cluster, first find the path l between the two clusters where the starting point and the end point are located. short If not found, the path will be set invalid; if found, continue to use the A star algorithm to find the starting point to the cluster border node F in the cluster where the starting point is located. start The shortest path between start ; In the same way, in the cluster where the endpoint is located, find the node F from the endpoint to the cluster border. goal Shortest path l goal , then the shortest path between the starting point and the end point is

[0126] l star→goal = l start +l short +l goal .

[0127] Sb. If the preprocessing path graph of the current level cannot find a path, then enter the preprocessing path graph of the next level with a smaller cluster size, execute the above process to find a path, and loop until the preprocessing path of the minimum level is reached.

[0128] The present invention adopts a path-finding algorithm to accurately simulate the more realistic travel route of the fire hose in practice, and obtains path length data close to the reality inside the building, so that the fire protection coverage area calculated by it is relatively accurate.

[0129] S514. For each existing shortest path l star→goal , judge that its path distance is greater than the required fire hydrant full water column fire extinguishing coverage length L, connect it to the checkpoint, from the fire hydrant coverage set I K If there is no path, it is also removed from its covering set I K Eliminate from.

[0130] S515. Obtain a new covering set I' for each required fire hydrant from the above steps. K , combined with the full set of checkpoints I, we can get the uncovered checkpoint set I for each required fire hydrant M , and then merge the uncovered checkpoint sets of the two required fire hydrants to construct the full set of insufficiently covered checkpoints.

[0131] S52. Based on the checkpoints in the full set that are not fully covered, the method in step S51 is used to obtain a set of checkpoints that can be accurately covered by each alternative fire hydrant point; then the greedy algorithm is used to calculate the minimum number of alternative fire hydrant points to achieve that the set of checkpoints that are not fully covered can be fully covered, that is, each checkpoint is covered 2 times or more.

[0132] Among them, the greedy algorithm is used to calculate the minimum number of alternative fire hydrant locations, such as Figure 8 As shown;

[0133] In this specific embodiment, the four candidate fire hydrants H1-H4 and the full set of 8 insufficiently covered inspection points are {C1, C1, C2, C3, C4, C5, C5, C6, C7, C8}, and the remaining inspection point sets are:

[0134] H1->{C1,C3,C4,C5,C6,C7};

[0135] H2->{C4,C5};

[0136] H3->{C1,C2,C5,C8};

[0137] H4->{C7,C8}.

[0138] Use the greedy algorithm to select from the candidate fire hydrants. Each time, select the candidate fire hydrant points that can connect the most checkpoints in the covering set and add them to the result set until the entire set of checkpoints can be covered.

[0139] In this embodiment, the number of fire hydrant connections is ordered as follows: H1>H3>H2>=H4. After H1 is selected for the first time as the alternative fire hydrant, the full set of remaining uncovered checkpoints is {C1, C2, C5, C8}. After H3 is selected again, the full set of remaining checkpoints becomes an empty set, and the set {H1, H3} is the selected alternative fire hydrant points.

[0140] S53. The coordinates of the selected alternative fire hydrant points {H1, H3} and the two required fire hydrant points are saved in the JSON format plan. At the same time, according to the fire hydrant setting specifications, the fire hydrant component coordinate data is recorded in the JSON format. Then, when displaying, the fire hydrant component icon is displayed in proportion at its corresponding coordinates, so as to realize the automatic deployment and drawing of the fire hydrant points.

[0141] Example 2

[0142] An indoor fire hydrant point automatic deployment system, comprising:

[0143] Data conversion module, which parses the architectural floor plan in DWG format into the floor plan in JSON format;

[0144] Data extraction module, extracting various types of lines from the floor plan in JSON format;

[0145] The mapping module maps the JSON formatted floor plan into a DataMap two-dimensional array according to the closed areas enclosed by various types of lines. The values ​​in the array are marked with predefined numbers.

[0146] The path map generation module uses cluster partitioning to divide the DataMap two-dimensional array into clusters of different sizes to form maps of different levels, generates a pre-processed path map, and forms a cached path with the outbound and inbound edges of the edge nodes of the clusters on the pre-processed path map;

[0147] The point pre-generation module generates the required fire hydrant points, checkpoints and candidate fire points in the JSON format plan;

[0148] The point optimization module uses the path-finding algorithm to find the shortest path between the required fire hydrant points and the checkpoints on the pre-processed path map, and uses the path-finding algorithm to find the minimum number of fire hydrant points corresponding to the remaining checkpoints as candidate fire points.

[0149] Other methods and principles are the same as those in Example 1.

[0150] Example 3

[0151] The designer manually deploys the fire hydrant points in the building plan, and then uses the following system to assist in verifying whether the deployment points are reasonable. A fire hydrant point auxiliary review deployment system includes:

[0152] Point input module, using software to manually set fire hydrant points and inspection points, fire hydrant box hose length in the building plan;

[0153] The mapping module maps the building plan into a two-dimensional mapping array of DataMap, annotates the lines of types such as walls, doors, windows, and columns in the plan according to the coordinates and spans of the lines according to the predefined data, and determines the crossing attributes of the doors and open areas;

[0154] The path map generation module uses cluster partitioning to divide the DataMap two-dimensional mapping array into clusters of different sizes to form maps of different levels. The external and internal edges of the edge nodes of the clusters on each layer of the map are cached as paths to form a preprocessed path map.

[0155] The point optimization module uses the path-finding algorithm to determine the shortest path between the fire hydrant node and all checkpoint nodes on the pre-processed path map, and then combines the length of the fire hydrant hose to give a set of coverable checkpoints to determine whether the designer's fire hydrant design point meets the requirements of the fire protection regulations. If each checkpoint is covered more than twice and meets the requirements of the fire protection regulations, it is reasonable.

[0156] Other methods and principles are the same as those in Example 2.

[0157] Example 4

[0158] A terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for automatic deployment of indoor fire hydrant points of Example 1 can be implemented.

[0159] Example 5

[0160] A computer-readable storage medium having computer instructions stored thereon, characterized in that when the computer instructions are executed, the method for automatic deployment of indoor fire hydrant points described in Example 1 is implemented.

[0161] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for automatically deploying indoor fire hydrant points, characterized in that: The steps are as follows: S1. Use software to convert DWG format architectural floor plans into JSON format, extract central axis network information and different types of line and text annotation information, and generate closed areas with functional names; S2. Set the fire hydrant specifications and calculate the coverage length of the water column fire extinguishing according to the fire hydrant box specifications; S3, pre-generated points: select a closed area with a function name that meets the requirements, and on the line segment enclosing the closed area, generate the coordinates of the required fire hydrant points, check points, and alternative fire protection points in sequence according to the preset rules of the fire hydrant points, and save them in the JSON format plan; S4, mapping the extracted different types of lines into a DataMap two-dimensional array, dividing the two-dimensional array into multiple hierarchical maps using clusters of different sizes, and generating a preprocessed path map; S5. Optimize fire hydrant locations: Combined with the pre-processed path map, based on the rule that all checkpoints are covered by at least two fire hydrants, calculate the minimum number of fire hydrant locations that meet the requirements.

2. The method for automatic deployment of indoor fire hydrant points according to claim 1 is characterized in that: The central axis network information and different types of lines and text annotation information are included in different layers, the different types of lines include the coordinates and span data information of the building's exterior wall lines, door lines, interior wall lines, window lines, and column outlines, and the central axis network information includes the central axis network X-axis and Y-axis information; The text labeling information includes the functional text labeling of the purpose and its coordinates, and the functional text labeling includes the name of the living room, bedroom, bathroom, office, stairwell, fire anteroom or antechamber, corridor or public area; The closed area is a polygonal outline area or a rectangular outline area surrounded by wall lines, door lines or window lines. The use and functional attributes of the closed area are determined according to the relative position relationship between the coordinates marked with functional characters and the closed area. The closed areas with use and functional names include stairwell closed areas, vestibule closed areas, corridor closed areas, hall closed areas, public area closed areas, water and heating well closed areas, outer contour closed areas, etc.

3. The method for automatic deployment of indoor fire hydrant points according to claim 1 or 2, characterized in that: The fire hydrant specifications include setting the height, width, thickness of the fire hydrant, the length L of the fire hose roll in the fire hydrant, and the length of the full water column; The fire extinguishing radius that the fire hydrant can cover is determined based on the length of the fire hose and the full water column.

4. The method for automatic deployment of indoor fire hydrant points according to claim 3 is characterized in that: The implementation method of the pre-generated points is: S31, according to the extracted stairwell closed area, from the wall line segments enclosing the stairwell closed area, select a wall line segment whose length is greater than the width of the fire hydrant, and determine the first fire hydrant point on the wall line segment; Then, in the wall line segment of the enclosed area of ​​the fire elevator front room, a wall line segment whose length is greater than the width of the fire hydrant is selected, and a second fire hydrant point is set on the wall line segment; S32, sequentially selecting appropriate wall segments from the wall segments of the water and heating well closed area, the public area closed area, the corridor closed area, the lobby closed area, and the column closed area, and setting corresponding one or more fire hydrant points; S33, according to the order in which the points are generated, setting the first fire hydrant point and the second fire hydrant point as mandatory fire hydrant points, and the remaining points as alternative fire hydrant points; S34, setting the coordinates of all intersections between the exterior wall lines of the building, the coordinates of all intersections between the exterior wall lines and the interior wall lines, and the coordinates of the center points of all door lines as check points, to verify whether the candidate fire fighting points meet the fire fighting regulations that any area on the same floor of the building should be protected by a full water column formed by the water guns of two fire hydrants; S35. Save the coordinates of the required fire hydrant points, alternative fire protection points and check points in the JSON format plan.

5. The method for automatic deployment of indoor fire hydrant points according to claim 2 or 4, characterized in that: The mapping method of the DataMap two-dimensional array is: S41. Set a reasonable mapping size according to the size of the building plan; S42, according to the length of the outer wall line that encloses the closed area of ​​the building's outer contour, 外墙线 Determine the number of boundary nodes num of the two-dimensional array of the mapping DataMap, and the division standard is num=lenth 外墙线 / size; then, according to the coordinates of the exterior wall line, the corresponding value in the DataMap two-dimensional array is marked with a predefined number 1; similarly, the interior wall line, door line, window line, and column outline are mapped in the DataMap two-dimensional array, and different types of lines are marked with predefined different numbers in the mapping DataMap two-dimensional array; The method for generating the preprocessing path map is: S43, selecting different sizes to perform cluster division on the DataMap two-dimensional array, and setting the number of map layers according to the number of levels of cluster division; S44, first add border nodes to each adjacent large cluster in the maximum level map; S45, further divide the large cluster into smaller clusters, check whether there is a border node on each single side of the small cluster, if there is and the agreement is met, no border node is added to the single side; if not, add a new border node; S46. Then, in each level map, the external and internal edges of the border nodes of all clusters at that level are constructed to form a preprocessing path map for each level.

6. The method for automatic deployment of indoor fire hydrant points according to claim 5 is characterized in that: The number 0 and the corresponding number of the gate line in the DataMap two-dimensional array are set as traversable attributes, and the numbers of other types of lines are set as non-traversable attributes; each partition block of the DataMap two-dimensional array is a cluster; The border nodes are located on the borders of adjacent clusters. Two adjacent traversable attributes on the border in the maximum level map are used as border nodes. The number of border nodes on a single border is NUM. border Determined by the number of cluster levels, and NUM border =2 n-1 , n is the number of cluster levels; The external edges are paths between border nodes of different clusters; the internal edges are paths between border nodes in the same cluster; the external edges and the internal edges are generated using the Euclidean distance method, that is, the straight lines between border nodes are all traversable.

7. The method for automatic deployment of indoor fire hydrant points according to claim 5, characterized in that: The implementation method of step S5 is: S51. According to the coordinates of the points in the JSON format plan, first use the Euclidean distance to estimate the checkpoints that can be covered by each required fire hydrant point, and form a set of coverable checkpoints of the required fire hydrant; map all points to the preprocessed path map of the DataMap two-dimensional array, and obtain the coverable checkpoint set of each required fire hydrant according to the path-finding algorithm, and reversely construct the set of insufficiently covered checkpoints; S52, for the checkpoints that are not fully covered by the checkpoint set, the Euclidean distance and path-finding algorithm are used to obtain the checkpoint set that can be accurately covered by each candidate fire hydrant point; and then the greedy algorithm is used to calculate the minimum number of candidate fire hydrant points, so that the checkpoint set that is not fully covered is fully covered, that is, each checkpoint is covered at least twice; S53. The coordinates of the selected alternative fire hydrant points and the two required fire hydrant points are saved in the JSON format plan, and the fire hydrant component icons are displayed in proportion to their corresponding coordinates according to the set fire hydrant width, so as to realize automatic deployment and drawing of fire hydrant points.

8. The method for automatic deployment of indoor fire hydrant points according to claim 6 is characterized in that: The implementation method of step S51 is: S511. According to the coordinates of the required fire hydrant points and all the checkpoints in the JSON format plan, the straight-line distance dist between each required fire hydrant point and all the checkpoints is estimated using the Euclidean distance. If the distance dist is less than the length L of the fire hydrant hose, it means that the full water column of this fire hydrant can cover the checkpoint, and the checkpoint is added to the set of coverable checkpoints I. K ; S512, map each required fire hydrant point and all checkpoints to the pre-processed path map at the maximum level, and set the required fire hydrant point as the starting point C star , will cover the checkpoint bit set I k The checkpoints in are set as the end points C goal ; S513, using the path-finding algorithm to find the shortest path l from the starting point to the end point from the pre-processed path map at the largest level star→goal ; If there is no connection path in the preprocessing path map of the current layer, it will gradually move to the preprocessing path map of the lower layer to search for the possibility of the shortest path connection from the starting point to the end point; S514. For each existing shortest path l star→goal , if it is larger than the fire extinguishing radius L of the required fire hydrant, from its coverable checkpoint location set I K If there is no shortest path l star→goal , from the set of coverable checkpoints I K Eliminate from the list; Combine the full set of checkpoints to reversely filter out the uncovered checkpoint set of each required fire hydrant, and merge the uncovered checkpoint sets of the two required fire hydrants to form an insufficiently covered checkpoint set; The steps of the path finding algorithm are: Sa, first determine the cluster numbers of the starting point and the end point in the preprocessing path map at the largest level, and use the cached paths in the preprocessing path map to find the shortest path between the two clusters l short , and determine the border node F of the starting cluster on the path start and the border node F of the endpoint cluster goal ; Sb, if the preprocessing path graph of the current level cannot find the shortest path, then enter the preprocessing path graph of the next level, return to step Sa, and loop until moving to the preprocessing path graph of the minimum level; In step Sa, if the starting point and the end point are in the same cluster, first find the path l_short between the two clusters where the starting point and the end point are located. If it cannot be found, the path is set invalid. If it is found, continue to use the A star algorithm to find the path from the starting point to the border node F in the cluster where the starting point is located. start The shortest path l start ; In the cluster where the endpoint is located, use the A star algorithm to find the endpoint to the border node F goal Shortest path l goal , then the shortest path between the starting point and the end point is l star→goal = l start +l short +l goal .

9. A fire hydrant point automatic deployment system, characterized in that: include: Data conversion module, which parses the architectural floor plan in DWG format into the floor plan in JSON format; Data extraction module, extracting various types of lines from the floor plan in JSON format; The mapping module maps the JSON formatted floor plan into a DataMap two-dimensional array according to the closed areas enclosed by various types of lines. The values ​​in the array are marked with predefined numbers. The path map generation module uses cluster partitioning to divide the DataMap two-dimensional array into clusters of different sizes to form maps of different levels, generates a pre-processed path map, and forms a cached path with the outbound and inbound edges of the edge nodes of the clusters on the pre-processed path map; The point pre-generation module generates the required fire hydrant points, checkpoints and candidate fire points in the JSON format plan; The point optimization module uses the path-finding algorithm to find the shortest path between the required fire hydrant points and the checkpoints on the pre-processed path map, and uses the path-finding algorithm to find the minimum number of fire hydrant points corresponding to the remaining checkpoints as candidate fire points.

10. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for automatic deployment of fire hydrant points as described in any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Fire-fighting point location automatic layout method applied to cloud platform

    CN111177811A