Nozzle position mark-based generation method, equipment and medium
By classifying and grouping the two-dimensional single-line diagram of the sprinkler pipes and combining it with the sprinkler head number, the sprinkler head position labeling is automatically processed, solving the problems of excessive manual intervention and poor applicability in the existing technology, and achieving efficient and accurate sprinkler head labeling.
Patent Information
- Application Number
- CN202511932286.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-19
- Publication Date
- 2026-01-23
AI Technical Summary
Existing sprinkler head labeling methods rely heavily on manual intervention, resulting in high labor costs. They are difficult to automate sprinkler head position identification and labeling, and have poor applicability, especially in non-collinear situations where labeling is challenging.
By classifying and grouping the two-dimensional single-line diagram of the sprinkler pipes, and combining it with the sprinkler head number, an area for placing annotations is generated. The optimal annotation position is determined by using scoring rules, and the annotation of sprinkler head spacing is automatically processed to avoid obstruction areas.
It improved the accuracy and efficiency of annotation, reduced manual workload, ensured reasonable spacing between sprinkler heads, enhanced the readability and adaptability of drawings, and simplified the maintenance and updating process.
Smart Images

Figure CN121389282A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of fire-fighting spraying, and in particular to a generation method and device based on nozzle position marking and a medium. BACKGROUND
[0002] A spraying system is part of fire-fighting design. In addition to nozzles and spraying pipes, there are nozzle positioning markings and spraying pipe diameter markings in spraying drawings. Clear and correct markings can not only help designers check drawings, but more importantly, ensure that construction parties can understand drawings and accurately construct.
[0003] However, in the prior art, a plug-in based on CAD can currently assist users in semi-automatically marking nozzles. Users can frame collinear nozzles to generate markings and manually position the positions. (1) Artificial intervention is too much: users need to manually select marked nozzles multiple times and determine the marking placement position after marking positioning.
[0004] (2) Poor applicability: only collinear nozzles can be identified, but non-collinear cases are still common in projects, so most of the marking is still manually performed. SUMMARY
[0005] Embodiments of the present application provide a generation method and device based on nozzle position marking and a medium to solve the following technical problems: existing spraying nozzles and corresponding marking position information are highly dependent on artificial intervention, have high labor costs, have large workloads, and are difficult to fully automatically implement nozzle position recognition and marking.
[0006] Embodiments of the present application adopt the following technical solutions: On the one hand, the embodiments of the present application provide a generation method based on nozzle position marking, comprising: converting a obtained fire-fighting arrangement area into a two-dimensional drawing to obtain a two-dimensional single-line drawing about a spraying pipe; classifying the spraying pipe in the two-dimensional single-line drawing, performing pipe grouping processing under common marking on the spraying pipe, and based on a numbering mode of the spraying pipe and the nozzle, obtaining a common marking spraying pipe group; performing position division processing on the information marking area about the x direction and the y direction on the common marking spraying pipe group to obtain a placeable marking area with the x direction and the y direction; based on a preset obstacle area and the common marking spraying pipe group, performing marking generation processing on the placeable marking area about the x direction and the y direction to obtain an initial marking position; performing marking position scoring on the initial marking position through a plurality of same marking position scoring rules, and based on a marking position scoring result, determining an optimal marking position for nozzle spacing marking.
[0007] The embodiment of the application can more accurately determine the position of the sprinkler pipeline by using the generation method based on the position marking of the nozzle, thereby improving the accuracy of the marking. By classifying and grouping the two-dimensional single-line diagram of the sprinkler pipeline, the layout design of the sprinkler system can be optimized to ensure that the distance between the sprinkler heads is reasonable. The marking process is also simplified, reducing the workload of manual marking. The automated marking method can save time and improve marking efficiency, especially when a large amount of data needs to be processed. By scoring the initial marking position according to the scoring rules, the marking errors caused by human factors can be reduced. The marking information can be maintained and updated more conveniently by adjusting the position according to the characteristics of the preset obstacle region and the sprinkler pipeline, which has strong adaptability. At the same time, the position scoring and optimal position determination of the automated marking make it more convenient to maintain and update the marking information.
[0008] In a feasible implementation, the obtained fire-fighting arrangement region is converted into a two-dimensional single-line diagram related to the sprinkler pipeline, specifically including: performing recognition processing on the unit name of the fireproof unit in the building model under the filling region to obtain a fireproof unit arrangement region; performing recognition processing on the partition name of the fire compartment in the building model under the area region to obtain a fire compartment arrangement region; combining the fireproof unit arrangement region and the fire compartment arrangement region to obtain the fire-fighting arrangement region; converting the center line of the three-dimensional horizontal sprinkler pipeline in the fire-fighting arrangement region into a single line; determining the three-dimensional key connection collinear horizontal pipeline in the fire-fighting arrangement region as the same single line; converting the family contour line of the three-dimensional sprinkler head legend in the fire-fighting arrangement region into a single line; and converting all single lines in the fire-fighting arrangement region into the two-dimensional single-line diagram.
[0009] In a feasible implementation, before the common marking pipe grouping processing of the sprinkler pipeline according to the classification of the sprinkler pipeline in the two-dimensional single-line diagram and based on the numbering mode of the sprinkler pipeline and the sprinkler head, the method further includes: classifying and determining the sprinkler pipeline based on the connection relationship between the single line and the sprinkler head contour in the two-dimensional single-line diagram; if the single line passes through the sprinkler head contour, the sprinkler pipeline is determined as a first sprinkler branch pipe; if at least one end of the single line is connected to one end of the single line in the first sprinkler branch pipe, the sprinkler pipeline is determined as a second sprinkler branch pipe; the remaining single lines in the two-dimensional single-line diagram except the single lines corresponding to the first sprinkler branch pipe and the single lines corresponding to the second sprinkler branch pipe are determined as a sprinkler main pipe; and the classification of the sprinkler pipeline is obtained based on the sprinkler branch pipe and the sprinkler main pipe.
[0010] In an implementable embodiment, according to the classification of the spray pipe in the two-dimensional single-line drawing, the spray pipe is subjected to pipe grouping processing under common labeling, and based on the numbering mode of the spray pipe and the spray head, a common-labeled spray pipe group is obtained, specifically comprising: acquiring all the spray branch pipes passed through by the same spray main pipe in the two-dimensional single-line drawing, and determining all the spray branch pipes passed through as a marked group; performing pipeline numbering processing on the spray branch pipes in the marked group from left to right to obtain branch pipe numbers; and performing numbering processing on the spray heads of the spray branch pipes from top to bottom to obtain spray head numbers; according to the numbering order of the branch pipe numbers, whether the position connection lines of the spray heads with the same spray head number in adjacent spray branch pipes are in a vertical connection state is judged in sequence; if the position connection lines of the spray heads with the same spray head number in adjacent spray branch pipes are vertical lines of the horizontal adjacent spray branch pipes, all the branch pipe numbers contained in the adjacent spray branch pipes are divided into the same group, and are determined as the common-labeled spray pipe group; wherein all the connection lines of the common-labeled spray pipe group with the same spray head number are in a vertical intersection state between a plurality of adjacent spray branch pipes; if the position connection lines of the spray heads with the same spray head number in adjacent spray branch pipes are not vertical lines of the horizontal adjacent spray branch pipes, the next adjacent spray branch pipe is taken as a starting branch pipe number of another labeled group, and whether the position connection lines of the spray heads with the same spray head number in a plurality of adjacent spray branch pipes of the another labeled group are vertical lines is judged in sequence, and the next common-labeled spray pipe group is determined.
[0011] In an embodiment, the common-labeled sprinkler group is divided into information-labeled regions in the x direction and y direction to obtain a placeable-labeled region in the x direction and y direction, including: determining the vertical direction of the common-labeled sprinkler group as the x direction according to the branch pipe number from small to large; determining the direction of the common-labeled sprinkler group as the y direction according to the sprinkler head number from large to small; performing an outward expansion on the line region of the minimum or maximum sprinkler head number corresponding to the branch pipe number based on the minimum and maximum branch pipe numbers to generate a first expanded horizontal rectangular region; performing an outward expansion on the middle position region of the same sprinkler head number corresponding to the branch pipe number based on the minimum and maximum branch pipe numbers to generate a second expanded horizontal rectangular region; performing an extension on the first expanded horizontal rectangular region and the second expanded horizontal rectangular region based on the wall or axis parallel to the sprinkler branch pipe to generate a horizontal placeable region in the x direction; performing an expansion on the two side regions of the line of the minimum and maximum sprinkler head numbers corresponding to the same branch pipe based on the common-labeled sprinkler group, and generating a vertical placeable region in the y direction based on the wall or axis perpendicular to the sprinkler branch pipe; and obtaining the placeable-labeled region in the x direction and y direction based on the horizontal placeable region and the vertical placeable region.
[0012] In an embodiment, the maximum circumscribed rectangular region of the obstacle member in the fire-fighting arrangement region is determined as the obstacle region, and the type of the obstacle member includes: a wall and a column, a text, other labels, and a non-common-labeled internal pipeline.
[0013] In an implementation, the initial labeling position is generated based on the preset obstacle region and the common labeling pipe group, and the labeling generation process is performed on the placeable labeling region in the x direction and the y direction, and the initial labeling position is obtained, specifically including: determining the maximum circumscribed rectangle region of the obstacle member in the fire-fighting layout region as the obstacle region; wherein the types of the obstacle member include: wall and column, text, other labeling, and non-commonly labeled internal pipe; based on the x direction placeable labeling region, the intersection calculation is performed on the placeable labeling region and the obstacle region, and the intersection result is obtained; and the intersection result with the least intersection is identified; based on the preset linear size labeling information, the labeling generation process is sequentially performed on the intersection result with the least intersection according to the branch pipe number from small to large in the common labeling pipe group; and the labeling generation process is performed on the last intersection result with the least intersection at the position where the spray branch pipe and the wall or the axis are parallel and closest to each other, and the initial labeling position with the x direction is obtained; based on the preset alignment size labeling information, the labeling generation process is sequentially performed on the intersection result with the least intersection according to the nozzle number from small to large in the common labeling pipe group; and the labeling generation process is performed on the last intersection result with the least intersection at the position where the spray branch pipe and the wall or the axis are perpendicular to each other and closest to each other, and the initial labeling position with the y direction is obtained.
[0014] In an implementation, the initial labeling position is labeled by a plurality of same labeling position scoring rules, and the optimal labeling position for nozzle spacing labeling is determined based on the labeling position scoring result, specifically including: based on the single line position information of the spray main pipe in the common labeling pipe group, the plurality of same initial labeling positions in the placeable labeling region are divided to obtain the left and right partitions in the y direction and the upper and lower partitions in the x direction; according to the placeable labeling region in the y direction, the plurality of placeable labeling regions in the left partition are sequentially decreased from left to right, and the plurality of placeable labeling regions in the right partition are sequentially decreased from right to left, and the labeling position scoring result in the y direction is generated; according to the placeable labeling region in the x direction, the plurality of placeable labeling regions in the upper partition are sequentially decreased from top to bottom, and the plurality of placeable labeling regions in the lower partition are sequentially decreased from bottom to top, and the labeling position scoring result in the x direction is generated; the optimal labeling position for nozzle spacing labeling is determined by score screening the labeling position scoring result in the y direction and the labeling position scoring result in the x direction respectively; wherein the optimal labeling position includes: the optimal labeling position in the x direction and the optimal labeling position in the y direction.
[0015] In a second aspect, the embodiments of the present application further provide a device for generating a nozzle position label based on a nozzle position, the device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method for generating a nozzle position label based on a nozzle position according to any of the embodiments described above.
[0016] In a third aspect, the embodiments of the present application further provide a non-volatile computer storage medium, the storage medium being a non-volatile computer readable storage medium, the non-volatile computer readable storage medium storing at least one program, each of the programs including instructions, which when executed by a terminal, cause the terminal to perform the method for generating a nozzle position label based on a nozzle position according to any of the embodiments described above.
[0017] The present application provides a method, device and medium for generating a nozzle position label based on a nozzle position. Compared with the prior art, the embodiments of the present application have the following beneficial technical effects: 1. The method for generating a nozzle position label based on a nozzle position can more accurately determine the position of the sprinkler pipe, thereby improving the accuracy of the label.
[0018] 2. By classifying and grouping the two-dimensional single-line diagram of the sprinkler pipe, the layout design of the sprinkler system can be optimized to ensure reasonable spacing between the sprinkler heads.
[0019] 3. By grouping the pipes under common labeling, the labeling process is simplified and the workload of manual labeling is reduced.
[0020] 4. The automatic labeling method can save time and improve labeling efficiency, especially when a large amount of data needs to be processed.
[0021] 5. By scoring the initial labeling position according to the scoring rules, the labeling errors caused by human factors can be reduced.
[0022] 6. By labeling information in the x and y directions, the layout of the sprinkler pipe and the sprinkler head is clearer, and the readability of the drawing is enhanced.
[0023] 7. The method can be adjusted according to the characteristics of the pre-set obstacle region and the sprinkler pipe, and has strong adaptability.
[0024] 8. The position scoring and optimal position determination of the automatic labeling make it more convenient to maintain and update the labeling information. BRIEF DESCRIPTION OF DRAWINGS
[0025] In order to make the technical solutions in the embodiments of the present application or the prior art clearer, the accompanying drawings needed in the embodiments or prior art description will be briefly introduced. Obviously, the accompanying drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained without creative effort based on these drawings. In the drawings: Figure 1 A generation method flowchart based on nozzle position labeling is provided for the embodiments of the present application; Figure 2 A single-line schematic diagram of three-dimensional to two-dimensional is provided for the embodiments of the present application; Figure 3 A sprinkler pipeline classification schematic diagram is provided for the embodiments of the present application; Figure 4 A common labeling sprinkler group schematic diagram based on sprinkler grouping is provided for the embodiments of the present application; Figure 5 A placeable labeling area schematic diagram is provided for the embodiments of the present application; Figure 6 A transverse labeling position scoring schematic diagram is provided for the embodiments of the present application; Figure 7 A longitudinal labeling position scoring schematic diagram is provided for the embodiments of the present application; Figure 8 A structure schematic diagram of a generation device based on nozzle position labeling is provided for the embodiments of the present application. DETAILED DESCRIPTION
[0026] In order to make the technical solutions in the embodiments of the present application or the prior art clearer, the accompanying drawings needed in the embodiments or prior art description will be briefly introduced. Obviously, the accompanying drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained without creative effort based on these drawings. In the drawings:
[0027] The embodiments of the present application provide a generation method based on nozzle position labeling, as shown in Figure 1 The generation method based on nozzle position labeling specifically includes steps S101-S105: S101, converting the obtained fire-fighting arrangement area into a two-dimensional graph to obtain a two-dimensional single-line graph about the sprinkler pipeline.
[0028] Specifically, the unit name of the fireproof unit in the building model needs to be filled in the area below the identification processing to obtain the fireproof unit arrangement area. Then the partition name of the fireproof partition in the building model is identified in the area below the identification processing to obtain the fireproof partition arrangement area.
[0029] Further, the fireproof unit arrangement area and the fireproof partition arrangement area are combined to obtain the fire arrangement area.
[0030] Table 1 Arrangement area table
[0031] In one embodiment, the table 1 is the fire arrangement area related to the fire protection, which can be obtained by the table header attribute of the table 1, that is, the label of the spray head is arranged as the arrangement area of the fireproof partition or the fireproof unit, and the space information needs to be obtained before automatic labeling.
[0032] Further, the center line of the three-dimensional horizontal spray pipeline in the fire arrangement area is converted into a single line. Then the three-dimensional key connection collinear horizontal pipeline in the fire arrangement area is determined as the same single line. Then the family contour line of the three-dimensional spray head legend in the fire arrangement area is converted into a single line; finally, all the single lines in the fire arrangement area are converted into a two-dimensional single line diagram.
[0033] In one embodiment, Figure 2 A three-dimensional to two-dimensional single line schematic diagram provided by the embodiment of the present application is shown in Figure 2 As shown, the center line of all horizontal pipelines (pipeline with horizontal angle ≤ 45°) in the fire arrangement area needs to be converted into a single line, and the collinear horizontal pipelines connected by the pipe fittings are regarded as the same line. Then the family contour line of the "P_ nozzle legend_ upright type_ plane" is converted into a single line. Finally, all the single lines are converted into a two-dimensional single line diagram.
[0034] S102, according to the classification of the spray pipeline in the two-dimensional single line diagram, the spray pipeline is subjected to the pipeline grouping processing under the common labeling, and based on the numbering mode of the spray pipeline and the spray head, the common labeled spray pipeline group is obtained.
[0035] Specifically, based on the connection relationship between the single line in the two-dimensional single line diagram and the spray head contour, the spray pipeline is subjected to classification judgment: if the single line passes through the spray head contour, the spray pipeline is determined as the first spray branch pipe. If at least one end of the single line is connected with one end of the single line in the first spray branch pipe, the spray pipeline is determined as the second spray branch pipe.
[0036] Further, the remaining single lines in the two-dimensional single line diagram except the single lines corresponding to the first spray branch pipe and the single lines corresponding to the second spray branch pipe are determined as the spray main pipe.
[0037] Further, based on the spray branch pipes and the spray main pipes, a spray pipeline classification is obtained.
[0038] In one embodiment, Figure 3 A spray pipeline classification schematic diagram provided for an embodiment of the present application is shown in Figure 3 As shown, for the spray branch pipes: 1) single line passing through the nozzle profile (first spray branch pipe); 2) at least one end connected to the single line endpoint belonging to the first spray branch pipe (second spray branch pipe); that is, both the above two types of single lines are defined as spray branch pipes. Then for the spray main pipes: single lines other than the above spray branch pipes are defined as spray main pipes.
[0039] Further, all the spray branch pipes passed through by the same spray main pipe in the two-dimensional single line diagram are obtained, and all the spray branch pipes passed through are determined as a marking group.
[0040] Further, the spray branch pipes in the marking group are processed from left to right for pipeline numbering to obtain branch pipe numbers. And the spray nozzles are processed from top to bottom for nozzle numbering to obtain nozzle numbers.
[0041] Further, according to the numbering order of the branch pipe numbers, the position connection lines of the spray nozzles with the same nozzle number in the adjacent spray branch pipes are sequentially determined whether they are vertical connection lines.
[0042] If the position connection line of the spray nozzles with the same nozzle number in the adjacent spray branch pipes is a vertical line of the horizontally adjacent spray branch pipes, all the branch pipe numbers contained in the adjacent spray branch pipes are divided into the same group, and are determined as a common marking spray pipe group. Wherein, all the connection lines of the same nozzle number in the common marking spray pipe group are perpendicular to the adjacent spray branch pipes.
[0043] If the position connection line of the spray nozzles with the same nozzle number in the adjacent spray branch pipes is not a vertical line of the horizontally adjacent spray branch pipes, the next adjacent spray branch pipe is taken as a starting branch pipe number of another marking group, and the position connection lines of the spray nozzles with the same nozzle number in the adjacent spray branch pipes of the another marking group are sequentially determined whether they are vertical connection lines, to determine the next common marking spray pipe group.
[0044] In one embodiment, Figure 4 A common marking spray pipe group schematic diagram based on spray pipe grouping provided for an embodiment of the present application is shown in Figure 4 As shown, to determine the common marking spray pipe, it includes: 1. First, obtain the spray branch pipes passed through by the same spray main pipe, and mark them as "group n (n=1, 2……)", that is, all the spray branch pipes passed through are determined as a marking group.
[0045] 2, the spray branch pipes in group n are numbered from left to right, and the spray heads on the spray branch pipes are numbered from top to bottom; the branch pipe numbers and the spray head numbers are obtained in sequence.
[0046] 3, taking the spray head on the spray branch pipe numbered 1 as the starting point, a perpendicular line is drawn towards the branch pipe numbered 2, and it is determined whether the spray heads with the same number in the two branch pipes are both at the foot of the perpendicular line (i.e. on the same straight line); when the answer is yes, it is marked as "commonly marked n (n = 1, 2, …)", and then taking the branch pipe numbered 2 as the starting point, the same judgment is made with the branch pipe numbered 3, and so on (recursive method), until the answer is no, the first commonly marked spray pipe group (commonly marked 1) can be determined. Then taking the branch pipe number of the commonly marked 2 as the starting point, i.e. taking the branch pipe number 4 in the commonly marked 2 as the starting point, the commonly marked spray pipe group is found again according to the above method, and the next commonly marked spray pipe group (commonly marked 2) is determined in sequence.
[0047] S103, the position division processing of the information marking area in the x direction and the y direction is performed on the commonly marked spray pipe group, and the placeable marking area with the x direction and the y direction is obtained.
[0048] Specifically, the vertical direction along the branch pipe number from small to large in the commonly marked spray pipe group is determined as the x direction. And the direction along the spray head number from large to small in the commonly marked spray pipe group is determined as the y direction.
[0049] In one embodiment, Figure 5 A placeable marking area diagram provided by the embodiment of the application is shown in Figure 5 As shown, first define the x and y directions: in the commonly marked group, the vertical direction along the branch pipe number from small to large is defined as the x direction, and the direction along the spray head number from large to small in the same branch pipe is defined as the y direction.
[0050] Further, according to the commonly marked spray pipe group, and based on the minimum and maximum branch pipe numbers, the minimum or maximum spray head number corresponding to the branch pipe number is connected to generate a first expanded horizontal rectangular area.
[0051] Further, based on the minimum and maximum branch pipe numbers, the middle position area of the spray head with the same spray head number is expanded to generate a second expanded horizontal rectangular area.
[0052] Further, based on the wall or axis position parallel to the spray branch pipe, the first expanded horizontal rectangular area and the second expanded horizontal rectangular area are extended to generate a horizontal placeable area in the x direction.
[0053] In one embodiment, for the x direction, as Figure 5As shown, on the minimum and maximum numbered branch pipes, the minimum or maximum numbered spray head corresponding interconnection line is extended outward by 900 mm (when the scale is 1:100, other scales are 9x, x is the scale value), to generate a first expanded transverse rectangular area. Then on the minimum and maximum numbered branch pipes, the same numbered spray head middle position is extended outward by 450 mm (when the scale is 1:100, other scales are 4.5x, x is the scale value) on both sides, to generate a second expanded transverse rectangular area. Finally, the two sides of the profile of the above two transverse rectangular areas are further extended outward, and the nearest wall or axis parallel to the spray branch pipe within a range of 10 m is found, to finally generate a transverse placeable area in the x direction.
[0054] Further, according to the common-labeled spray pipe group, the minimum and maximum spray head corresponding interconnection line in the same spray branch pipe is expanded on both sides, and based on the wall or axis perpendicular to the spray branch pipe, a longitudinal placeable area in the y direction is generated.
[0055] Further, based on the transverse placeable area and the longitudinal placeable area, a placeable labeling area with x direction and y direction is obtained.
[0056] In one embodiment, for the y direction, as Figure 5 shown, on the same branch pipe, the minimum and maximum numbered spray head corresponding interconnection line is extended outward by 900 mm (when the scale is 1:100, other scales are 9x, x is the scale value), and then the nearest wall or axis perpendicular to the spray branch pipe within a range of 10 m is found, to finally generate a longitudinal placeable area in the y direction.
[0057] S104, according to the preset obstacle area, and based on the common-labeled spray pipe group, the placeable labeling area is generated for labeling in the x direction and the y direction, to obtain an initial labeling position.
[0058] Specifically, the maximum circumscribed rectangular area of the obstacle member in the fire-fighting arrangement area is determined as the obstacle area. Wherein, the types of the obstacle member include: wall and column, text, other labeling, and non-commonly-labeled internal pipeline. That is, the avoidance operation needs to be performed when generating the labeling.
[0059] Further, the maximum circumscribed rectangular area of the obstacle member in the fire-fighting arrangement area is determined as the obstacle area. Wherein, the types of the obstacle member include: wall and column, text, other labeling, and non-commonly-labeled internal pipeline.
[0060] Further, based on the placeable labeling area in the x direction, the intersection calculation is performed between the placeable labeling area and the obstacle area, to obtain an intersection result. And the placeable labeling area with the least intersection in the intersection result is identified.
[0061] Further, according to the common annotation of the spray pipe group from small to large branch pipe number, based on the preset linear size annotation information, the intersection minimum placeable annotation region is sequentially annotated and generated. The last intersection minimum placeable annotation region is annotated and generated in relation to the mutual parallel and nearest position between the spray branch pipe and the wall or the axis, to obtain the initial annotation position with the x direction.
[0062] Further, according to the common annotation of the spray pipe group from small to large branch pipe number, based on the preset linear size annotation information, the intersection minimum placeable annotation region is sequentially annotated and generated. The last intersection minimum placeable annotation region is annotated and generated in relation to the mutual parallel and nearest position between the spray branch pipe and the wall or the axis, to obtain the initial annotation position with the x direction.
[0063] In one embodiment, the spray pipe and the spray head are annotated, and the x and y directions of the common annotation n (common annotation of the spray pipe group) can be annotated according to the following steps: 1) In the x direction annotation: first find the placeable annotation region with the least intersection with the obstacle region, that is, the intersection minimum placeable annotation region; then, according to the branch pipe number of the spray branch pipe in the common annotation n from small to large, sequentially use “P_linear size annotation_Fangsong3.0” for annotation, and the annotation is positioned at the middle position of the placeable annotation region; and in the last annotation position generation, the wall or the axis parallel to the spray branch pipe and the nearest is annotated, to obtain the initial annotation position with the x direction.
[0064] 2) In the y direction annotation: first find the placeable annotation region with the least intersection with the obstacle region, and according to the spray head number on the spray branch pipe from small to large, sequentially use “P_alignment size annotation_Fangsong3.0” for annotation processing, and the annotation is positioned at the middle position of the placeable annotation region; and in the last annotation position generation, the wall or the axis perpendicular to the branch pipe and the nearest is annotated, to obtain the initial annotation position with the y direction.
[0065] S105, by a plurality of same annotation position scoring rules, the initial annotation position is annotated and position scored, and based on the annotation position scoring result, the optimal annotation position for the spray head spacing annotation is determined.
[0066] Specifically, based on the single line position information of the spray main pipe in the common annotation spray pipe group, the plurality of same initial annotation positions in the placeable annotation region are divided and processed to obtain the left and right partitions in the y direction and the upper and lower partitions in the x direction.
[0067] Further, according to the placeable labeling area in the y direction, the several placeable labeling areas in the left partition are sequentially and decreasingly scored from left to right, and the several placeable labeling areas in the right partition are sequentially and decreasingly scored from right to left, to generate the labeling position score result in the y direction.
[0068] In one embodiment, Figure 6 A transverse labeling position scoring schematic diagram provided for the embodiment of the present application is shown in Figure 6 As shown, the placeable labeling area in the y direction needs to be scored, that is, the score of the left half is sequentially and decreasingly scored from left to right by 100-100 / n, and the score of the right half is sequentially and decreasingly scored from right to left by 100-100 / n, which can be calculated by the formula: downward rounding, wherein n is the decreasing score, and m is the number of the total spray branch pipes within the common labeling n.
[0069] Further, according to the placeable labeling area in the x direction, the several placeable labeling areas in the upper partition are sequentially and decreasingly scored from top to bottom, and the several placeable labeling areas in the lower partition are sequentially and decreasingly scored from bottom to top, to generate the labeling position score result in the x direction.
[0070] Further, the labeling position score result in the y direction and the labeling position score result in the x direction are both subjected to score screening, to determine the optimal labeling position for the nozzle head spacing labeling; wherein the optimal labeling position includes the optimal labeling position in the x direction and the optimal labeling position in the y direction.
[0071] In one embodiment, Figure 7 A longitudinal labeling position scoring schematic diagram provided for the embodiment of the present application is shown in Figure 7 As shown, the placeable labeling area in the x direction is further scored. The score of the upper half is sequentially and decreasingly scored from top to bottom by 100-100 / n, and the score of the lower half is sequentially and decreasingly scored from bottom to top by 100-100 / n, which can be calculated by the formula: downward rounding, wherein n is the decreasing score, and m is the number of the rectangular frame of the placeable labeling area in the x direction within the common labeling n.
[0072] In addition, the embodiment of the present application further provides a nozzle position labeling generation device, as shown in Figure 8 The nozzle position labeling generation device 800 specifically includes: at least one processor 801; and a memory 802 in communication connection with the at least one processor 801; wherein the memory 802 stores instructions executable by the at least one processor 801, so that the at least one processor 801 can execute: The obtained fire-fighting arrangement area is converted into a two-dimensional graph to obtain a two-dimensional single-line graph of the spray pipe; According to the classification of the spray pipe in the two-dimensional single-line graph, the spray pipe is subjected to common labeling and pipe grouping processing, and based on the numbering mode of the spray pipe and the spray head, a common-labeled spray pipe group is obtained. The common-labeled spray pipe group is subjected to position division processing of the information labeling area in the x direction and the y direction to obtain a placeable labeling area with the x direction and the y direction. According to the preset obstacle area and based on the common-labeled spray pipe group, the placeable labeling area is subjected to labeling generation processing in the x direction and the y direction to obtain an initial labeling position. The initial labeling position is subjected to labeling position scoring through a plurality of same labeling position scoring rules, and based on the labeling position scoring result, an optimal labeling position for spray head spacing labeling is determined.
[0073] The embodiments of the present application can more accurately determine the position of the spray pipe based on the generation method of the spray head position labeling, thereby improving the accuracy of labeling. By classifying and grouping the two-dimensional single-line graph of the spray pipe, the layout design of the spray system can be optimized to ensure that the spacing of the spray heads is reasonable. The labeling process is also simplified, reducing the workload of manual labeling. The automated labeling method can save time and improve labeling efficiency, especially when a large amount of data needs to be processed. By scoring the initial labeling position through scoring rules, labeling errors caused by human factors can be reduced. The labeling information can also be adjusted according to the preset obstacle area and the characteristics of the spray pipe, which has strong adaptability. At the same time, the position scoring and optimal position determination of automated labeling make it more convenient to maintain and update the labeling information.
[0074] Each embodiment in the present application is described in a progressive manner, and the same or similar parts between each embodiment can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, the device and medium embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the part of the method embodiment.
[0075] The device and medium provided by the embodiments of the present application are one-to-one corresponding to the method, so the device and medium also have similar beneficial technical effects as the corresponding method. Since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the device and medium will not be described here.
[0076] Those skilled in the art will appreciate that embodiments of the present application can be readily used as software, hardware, or a combination of software and hardware. In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0077] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more functions specified in the flowchart block or blocks. Figure 1 means for functionally implementing the one or more functions specified in the flowchart block or blocks.
[0078] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart block or blocks. Figure 1 one or more functions specified in the flowchart block or blocks. Figure 1 means for functionally implementing the one or more functions specified in the flowchart block or blocks.
[0079] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more functions specified in the flowchart block or blocks. Figure 1 means for functionally implementing the one or more functions specified in the flowchart block or blocks.
[0080] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0081] The memory can include non-persistent memory and / or volatile memory, such as random access memory (RAM) and / or cache memory, non-volatile memory, such as read-only memory (ROM), optical storage, and / or flash memory. The memory is an example of computer readable storage media.
[0082] Computer-readable media includes permanent and non-permanent, movable and non-movable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. According to the definition herein, computer-readable media does not include transitory media such as modulated data signals and carriers.
[0083] It should also be noted that the terms "comprising", "containing", or any other variant thereof are intended to cover non-exclusive inclusions, so that a process, method, article or apparatus that includes a list of elements does not only include those elements, but also includes other elements not explicitly listed, or further includes elements inherent in such a process, method, article or apparatus. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus that includes the element.
[0084] The above only describes the embodiments of the present application and is not intended to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. within the spirit and principles of the present application shall be included in the scope of the specification of the present application.
Claims
1. A method for generating a spray head position label based on a spray head position, characterized by, The method comprises: The obtained fire-fighting arrangement area is converted into a two-dimensional graph to obtain a two-dimensional single-line graph related to the spray pipe; According to the spray pipe classification in the two-dimensional single-line graph, the spray pipe is subjected to common labeling and pipe grouping processing, and based on the numbering method of the spray pipe and the spray head, a common labeled spray pipe group is obtained; The common labeled spray pipe group is subjected to position division processing of the information labeling area in the x direction and the y direction to obtain a placeable labeling area with x direction and y direction; According to the preset obstacle area and based on the common labeled spray pipe group, the placeable labeling area is subjected to labeling generation processing in the x direction and the y direction to obtain an initial labeling position; The initial labeling position is subjected to labeling position scoring through a plurality of same labeling position scoring rules, and based on the labeling position scoring result, an optimal labeling position for spray head spacing labeling is determined.
2. The method of claim 1, wherein, The obtained fire-fighting arrangement area is converted into a two-dimensional graph to obtain a two-dimensional single-line graph related to the spray pipe, specifically comprising: The unit name of the fireproof unit in the building model is subjected to recognition processing in the filling area to obtain a fireproof unit arrangement area; The partition name of the fire compartment in the building model is subjected to recognition processing in the area region to obtain a fire compartment arrangement area; The fireproof unit arrangement area and the fire compartment arrangement area are combined to obtain the fire-fighting arrangement area; The center line of the three-dimensional horizontal spray pipe in the fire-fighting arrangement area is converted into a single line; The three-dimensional key connection collinear horizontal pipe in the fire-fighting arrangement area is determined as the same single line; The family contour line of the three-dimensional spray head legend in the fire-fighting arrangement area is converted into a single line; All single lines in the fire-fighting arrangement area are converted into the two-dimensional single-line graph.
3. The method of claim 1, wherein, Before the common labeled spray pipe group is obtained by classifying the spray pipe in the two-dimensional single-line graph, the method further comprises: Based on the connection relationship between the single line in the two-dimensional single-line graph and the spray head contour, the spray pipe is classified and judged: If the single line passes through the spray head contour, the spray pipe is determined as a first spray branch pipe; If at least one end of the single line is connected to one end of the single line in the first spray branch pipe, the spray pipe is determined as a second spray branch pipe; The remaining single lines in the two-dimensional single-line graph except the single lines corresponding to the first spray branch pipe and the single lines corresponding to the second spray branch pipe are determined as a spray main pipe; Based on the spray branch pipe and the spray main pipe, the spray pipe classification is obtained.
4. The method of claim 3, wherein, According to the spray pipe classification in the two-dimensional single-line graph, the spray pipe is subjected to common labeling and pipe grouping processing, and based on the numbering method of the spray pipe and the spray head, a common labeled spray pipe group is obtained, specifically comprising: All the spray branch pipes passed through by the same spray main pipe in the two-dimensional single-line graph are obtained, and all the spray branch pipes passed through are determined as a marking group; The spray branch pipes in the marking group are numbered from left to right to obtain branch pipe numbers; and the spray heads in the spray branch pipes are numbered from top to bottom to obtain spray head numbers; According to the numbering order of the branch pipe numbers, whether the positions of the spray heads with the same spray head number in adjacent spray branch pipes are connected by a vertical line is determined; If the position connection line of the spray heads with the same spray head number in the adjacent spray branch pipes is a vertical line of the horizontally adjacent spray branch pipes, all the branch pipe numbers contained in the adjacent spray branch pipes are divided into the same group, and the common marking pipe group is determined; wherein, the connection lines of all the same spray head numbers in the common marking pipe group are perpendicular to the adjacent spray branch pipes; If the position connection line of the spray heads with the same spray head number in the adjacent spray branch pipes is not a vertical line of the horizontally adjacent spray branch pipes, the next adjacent spray branch pipe is taken as a starting branch pipe number of another marking group, and whether the position connection lines of the spray heads with the same spray head number in the adjacent spray branch pipes of the another marking group are vertical lines is determined, and the next common marking pipe group is determined.
5. The method of claim 1, wherein, The common marking pipe group is subjected to position division processing of information marking areas in the x direction and the y direction to obtain a placeable marking area with the x direction and the y direction, specifically including: The vertical direction of the common marking pipe group along the branch pipe number from small to large is determined as the x direction; The direction of the common marking pipe group along the spray head number from large to small is determined as the y direction; According to the common marking pipe group and based on the minimum and maximum branch pipe numbers, the minimum or maximum spray head number connection line area corresponding to the branch pipe number is expanded outward to generate a first expanded horizontal rectangular area; And based on the minimum and maximum branch pipe numbers, the middle position area of the spray head with the same spray head number is expanded outward to generate a second expanded horizontal rectangular area; Based on the wall or axis position parallel to the spray branch pipe, the first expanded horizontal rectangular area and the second expanded horizontal rectangular area are subjected to extension processing to generate a horizontal placeable area in the x direction; According to the common marking pipe group, the minimum and maximum spray head number connection lines corresponding to the same spray branch pipe are subjected to expansion processing of the areas on both sides, and based on the wall or axis position perpendicular to the spray branch pipe, a longitudinal placeable area in the y direction is generated; Based on the horizontal placeable area and the longitudinal placeable area, the placeable marking area with the x direction and the y direction is obtained.
6. The method of claim 1, wherein, The maximum circumscribed rectangular area of the obstacle member in the fire-fighting arrangement area is determined as the obstacle area; wherein, the types of the obstacle member include: walls and columns, characters, other markings, and non-commonly marked internal pipes.
7. The method of claim 6, wherein, According to the preset obstacle area and based on the common marking pipe group, the placeable marking area is subjected to marking generation processing in the x direction and the y direction to obtain an initial marking position, specifically including: The maximum circumscribed rectangular region of the obstacle member in the fire-fighting arrangement region is determined as the obstacle region; wherein the types of the obstacle member include: walls and columns, characters, other annotations, and non-commonly annotated pipelines; Based on the x-direction placeable annotation region, the placeable annotation region and the obstacle region are intersected to obtain an intersection result; and the intersection result with the least intersection is identified; According to the branch pipe number from small to large in the common annotation sprinkler pipe group, based on the preset linear size annotation information, the intersection result with the least intersection is sequentially annotated and generated; and the last intersection result with the least intersection is annotated and generated about the mutual parallel and nearest position between the sprinkler branch pipe and the wall or the axis to obtain the initial annotation position with the x-direction; According to the nozzle number from small to large in the common annotation sprinkler pipe group, based on the preset alignment size annotation information, the intersection result with the least intersection is sequentially annotated and generated; and the last intersection result with the least intersection is annotated and generated about the mutual perpendicular and nearest position between the sprinkler branch pipe and the wall or the axis to obtain the initial annotation position with the y-direction.
8. The method of claim 1, wherein, The initial annotation position is annotated position scored through a plurality of same annotation position scoring rules, and based on the annotation position score result, the optimal annotation position for nozzle spacing annotation is determined, specifically including: Based on the single line position information of the sprinkler main pipe in the common annotation sprinkler pipe group, a plurality of same initial annotation positions in the placeable annotation region are divided to obtain left and right partitions in the y-direction and upper and lower partitions in the x-direction; According to the placeable annotation region in the y-direction, the several placeable annotation regions in the left partition are sequentially decreasingly scored from left to right, and the several placeable annotation regions in the right partition are sequentially decreasingly scored from right to left to generate the annotation position score result in the y-direction; According to the placeable annotation region in the x-direction, the several placeable annotation regions in the upper partition are sequentially decreasingly scored from top to bottom, and the several placeable annotation regions in the lower partition are sequentially decreasingly scored from bottom to top to generate the annotation position score result in the x-direction; The annotation position score result in the y-direction and the annotation position score result in the x-direction are respectively subjected to score screening to determine the optimal annotation position for nozzle spacing annotation; wherein the optimal annotation position includes the optimal annotation position in the x-direction and the optimal annotation position in the y-direction.
9. A device for generating a nozzle position mark based on a nozzle position, characterized by The device comprises: at least one processor; and a memory connected in communication with the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to execute a nozzle position annotation generation method according to any one of claims 1-8.
10. A non-transitory computer storage medium, comprising, The storage medium is a nonvolatile computer readable storage medium, and the nonvolatile computer readable storage medium stores at least one program, and each program includes instructions, which, when executed by a terminal, causes the terminal to perform the generation method based on the nozzle position marking according to any one of claims 1-8.