CN117473588B - Nozzle arrangement method, device, equipment and storage medium - Google Patents

Nozzle arrangement method, device, equipment and storage medium Download PDF

Info

Publication number
CN117473588B
CN117473588B CN202311806817.3A CN202311806817A CN117473588B CN 117473588 B CN117473588 B CN 117473588B CN 202311806817 A CN202311806817 A CN 202311806817A CN 117473588 B CN117473588 B CN 117473588B
Authority
CN
China
Prior art keywords
grid
transverse
ordinate
determining
spray head
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311806817.3A
Other languages
Chinese (zh)
Other versions
CN117473588A (en
Inventor
徐斌
郭纯华
陈涛
田富海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei Kunyi Construction Technology Partnership LP
Original Assignee
Hefei Kunyi Construction Technology Partnership LP
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Kunyi Construction Technology Partnership LP filed Critical Hefei Kunyi Construction Technology Partnership LP
Priority to CN202311806817.3A priority Critical patent/CN117473588B/en
Publication of CN117473588A publication Critical patent/CN117473588A/en
Application granted granted Critical
Publication of CN117473588B publication Critical patent/CN117473588B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/20Finite element generation, e.g. wire-frame surface description, tesselation
    • G06T17/205Re-meshing

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Analysis (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • Application Of Or Painting With Fluid Materials (AREA)

Abstract

The invention relates to the technical field of spray head design, and discloses a spray head arrangement method, a device, equipment and a storage medium, which are used for improving spray head arrangement efficiency. The spray head arrangement method comprises the following steps: acquiring a target area needing to be subjected to spray head arrangement in a design drawing; dividing a target area into grids, and collecting outlines corresponding to the grids; determining transverse segmentation line segments of each grid, and determining each transverse segmentation point based on each transverse segmentation line segment; the position of each spray head in the target area is determined based on the contour of each grid and each lateral division point.

Description

Nozzle arrangement method, device, equipment and storage medium
Technical Field
The present invention relates to the field of spray head design technologies, and in particular, to a spray head arrangement method, device, apparatus, and storage medium.
Background
Currently, a general spray head arrangement method is to acquire an area to be arranged, divide the area to be arranged into a plurality of rectangular areas, and perform spray head arrangement in each rectangular area based on a corresponding arrangement number.
In the prior art, the arrangement of the spray heads is only suitable for regular areas, the spray heads in irregular areas do not have universality, a great deal of time and labor are required for the arrangement of the spray heads in irregular areas, and the efficiency of the spray heads in actual arrangement is low.
Disclosure of Invention
The invention provides a spray head arrangement method, a device, equipment and a storage medium, which are used for solving the problem of low spray head arrangement efficiency in the prior art.
The first aspect of the present invention provides a method for arranging a shower head, comprising: acquiring a target area needing to be subjected to spray head arrangement in a design drawing; dividing the target area into grids, and collecting outlines corresponding to the grids; determining transverse segmentation line segments of each grid, and determining each transverse segmentation point based on each transverse segmentation line segment; and determining the position of each spray head in the target area based on the outline of each grid and each transverse partition point.
In a possible implementation manner, the meshing the target area and acquiring the outline corresponding to each mesh includes: determining walls and Liang Jizhu of the target area; dividing the grid of the target area by taking walls and beams of the target area as grid boundaries and taking columns of the target area as grid point vertexes; and extracting the outline corresponding to each grid.
In a possible implementation manner, the determining the transverse segmentation line segments of each grid and determining each transverse segmentation point based on each transverse segmentation line segment includes: drawing the longitudinal maximum interval line segments of each grid; determining transverse segmentation line segments of each grid based on the longitudinal maximum interval line segments and a longitudinal segmentation principle of each grid; and calculating the transverse segmentation points of the transverse segmentation line segments based on the transverse segmentation line segments and the transverse segmentation principle.
In a possible implementation manner, the acquiring the maximum distance line segments of each grid in the longitudinal direction includes: acquiring the ordinate of each point in the profile corresponding to each grid, and obtaining a to-be-processed ordinate set of each grid; redundant data deletion processing is carried out on the to-be-processed ordinate sets of each grid, so that a target ordinate set of each grid is obtained; comparing all the ordinate pairs in the target ordinate sets of each grid, and extracting the points corresponding to the two ordinate pairs with the largest difference in the target ordinate sets; and drawing the longitudinal maximum interval line segments of each grid based on the points respectively corresponding to the two ordinate coordinates with the maximum difference value.
In a possible implementation manner, performing redundant data deletion processing on the to-be-processed ordinate sets of each grid to obtain a target ordinate set of each grid, including: judging whether the same longitudinal coordinates exist in the longitudinal coordinate set to be processed of each grid; if the same ordinate exists, deleting the same ordinate until one remains, and obtaining a target ordinate set of each grid.
In a possible implementation manner, the calculating the transverse segmentation point of each transverse segmentation line segment based on each transverse segmentation line segment and the transverse segmentation principle includes: acquiring coordinates of two ends of each transverse segmentation line segment; determining the distance between the two ends of each transverse segmentation line segment based on the coordinates of the two ends of each transverse segmentation line segment; and calculating the transverse segmentation points of each transverse segmentation line segment based on the distance between the two ends of each transverse segmentation line segment and the transverse segmentation principle.
In a possible implementation manner, the determining the position of each nozzle in the target area based on the contour of each grid and each lateral division point includes: determining the type of a component corresponding to each contour; determining the maximum height of the corresponding spray head based on the types of the components, wherein the maximum height is the maximum value of the vertical distance from a water splashing disc of the spray head to the bottom surface of the beam; determining the height of each spray head based on the maximum height value and the spray head height arrangement principle; and determining the position of each spray head in the target area based on the height of each spray head and each transverse dividing point.
A second aspect of the present invention provides a head arrangement device comprising: the acquisition module is used for acquiring a target area needing nozzle arrangement in the design drawing; the processing module is used for dividing the target area into grids and collecting the contours corresponding to the grids; the segmentation module is used for determining transverse segmentation line segments of each grid and determining each transverse segmentation point based on each transverse segmentation line segment; and the determining module is used for determining the position of each spray head in the target area based on the outline of each grid and each transverse division point.
In a possible embodiment, the processing module is specifically configured to: determining walls of the target area Liang Jizhu; dividing the grid of the target area by taking walls and beams of the target area as grid boundaries and taking columns of the target area as grid point vertexes; and extracting the outline corresponding to each grid.
In a possible embodiment, the segmentation module includes: the drawing unit is used for drawing the longitudinal maximum interval line segments of each grid; the determining unit is used for determining transverse segmentation line segments of each grid based on the longitudinal maximum interval line segments and the longitudinal segmentation principle of each grid; and the calculating unit is used for calculating the transverse segmentation points of the transverse segmentation line segments based on the transverse segmentation line segments and the transverse segmentation principle.
In a possible embodiment, the drawing unit includes: the acquisition subunit is used for acquiring the ordinate of each point in the outline corresponding to each grid to obtain a to-be-processed ordinate set of each grid; the deleting subunit is used for carrying out redundant data deleting treatment on the to-be-treated ordinate sets of each grid to obtain target ordinate sets of each grid; the processing subunit is used for comparing all the ordinate sets of the target ordinate sets of each grid in pairs and extracting the points respectively corresponding to the two ordinate sets with the largest difference value in each target ordinate set; and the drawing subunit is used for drawing the longitudinal maximum interval line segments of each grid based on the points respectively corresponding to the two ordinate coordinates with the maximum difference value.
In a possible embodiment, the deletion subunit is specifically configured to: judging whether the same longitudinal coordinates exist in the longitudinal coordinate set to be processed of each grid; if the same ordinate exists, deleting the same ordinate until one remains, and obtaining a target ordinate set of each grid.
In a possible embodiment, the computing unit is specifically configured to: acquiring coordinates of two ends of each transverse segmentation line segment; determining the distance between the two ends of each transverse segmentation line segment based on the coordinates of the two ends of each transverse segmentation line segment; and calculating the transverse segmentation points of each transverse segmentation line segment based on the distance between the two ends of each transverse segmentation line segment and the transverse segmentation principle.
In a possible embodiment, the determining module is specifically configured to: determining the type of a component corresponding to each contour; determining the maximum height of the corresponding spray head based on the types of the components, wherein the maximum height is the maximum value of the vertical distance from a water splashing disc of the spray head to the bottom surface of the beam; determining the height of each spray head based on the maximum height value and the spray head height arrangement principle; and determining the position of each spray head in the target area based on the height of each spray head and each transverse dividing point.
A third aspect of the present invention provides a head arrangement apparatus comprising: a memory and at least one processor, the memory having instructions stored therein; the at least one processor invokes the instructions in the memory to cause the head arrangement apparatus to perform the head arrangement method described above.
A fourth aspect of the present invention provides a computer-readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform the above-described spray head arrangement method.
In the technical scheme provided by the invention, a target area needing to be subjected to spray head arrangement in a design drawing is obtained; dividing the target area into grids, and collecting outlines corresponding to the grids; determining transverse segmentation line segments of each grid, and determining each transverse segmentation point based on each transverse segmentation line segment; and determining the position of each spray head in the target area based on the outline of each grid and each transverse partition point. In the embodiment of the invention, the target area is obtained, the grid is divided, the outline of each grid is collected, the transverse segmentation line segments of each grid are determined, the transverse segmentation points are determined based on the transverse segmentation line segments, and the positions of the spray heads in the target area are determined based on the outline of each grid and the transverse segmentation points, so that the efficiency of spray head arrangement is improved.
Drawings
FIG. 1 is a schematic view showing an embodiment of a method of arranging a shower head according to an embodiment of the present invention;
FIG. 2 is a schematic view of another embodiment of a method of arranging a shower head according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a contour extraction result in an embodiment of the present invention;
FIG. 4 is a schematic diagram of a transverse partition point determining process according to an embodiment of the present invention;
FIG. 5 is a schematic view of an embodiment of a head arrangement device according to an embodiment of the present invention;
FIG. 6 is a schematic view of another embodiment of a head arrangement apparatus according to an embodiment of the present invention;
fig. 7 is a schematic view of an embodiment of a head arrangement apparatus in an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a spray head arrangement method, a device, equipment and a storage medium, which are used for solving the problem of low spray head arrangement efficiency in the prior art.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
It will be appreciated that the execution body of the present invention may be a nozzle arrangement device, and may also be a terminal or a server, which is not limited herein. The embodiment of the invention is described by taking a server as an execution main body as an example.
For ease of understanding, a specific flow of an embodiment of the present invention is described below with reference to fig. 1, where an embodiment of a method for disposing a spray head according to an embodiment of the present invention includes:
101. acquiring a target area needing to be subjected to spray head arrangement in a design drawing;
determining a target area in a design drawing, which is required to be subjected to spray head arrangement, based on a preset judging condition, extracting the target area, and after the target area is acquired, determining a spray head interval range corresponding to the target area based on a target fire hazard level corresponding to the target area queried in a preset fire hazard level table, wherein the spray head interval range is a spray head interval range and a spray head interval range between walls.
The fire hazard levels corresponding to different areas may be the same or different, e.g., the fire hazard level corresponding to a room is a first hazard level and the fire hazard level corresponding to a warehouse is a second hazard level.
102. Dividing a target area into grids, and collecting outlines corresponding to the grids;
obtaining first labeling information of a target area, determining information related to walls and Liang Jizhu in the first labeling information to obtain second labeling information, determining walls and Liang Jizhu in the target area based on the second labeling information, and performing grid division on the target area by taking the walls and the beams of the target area as grid boundaries and columns of the target area as grid point vertexes; and extracting the outline corresponding to each grid.
The information irrelevant to the walls and Liang Jizhu can be deleted from the labeling information by identifying the information irrelevant to the walls and Liang Jizhu in the labeling information, so that the target labeling information is obtained, the target labeling information comprises the information relevant to the walls and Liang Jizhu, and the characteristic information of each labeling information in the target labeling information is distinguished, so that the corresponding wall and Liang Huozhe column of each labeling information is determined.
103. Determining transverse segmentation line segments of each grid, and determining each transverse segmentation point based on each transverse segmentation line segment;
drawing the maximum longitudinal distance of each grid, determining the transverse segmentation line segments of each grid based on the maximum longitudinal distance line segments and the longitudinal segmentation principle of each grid, and calculating the transverse segmentation points of each transverse segmentation line segment based on each transverse segmentation line segment and the transverse segmentation principle.
The specific implementation step of drawing the maximum longitudinal distance of each grid can be as follows: and acquiring the abscissa of each point in the outline corresponding to each grid, determining the transverse maximum interval line segments of each grid based on the abscissa of each point in the outline corresponding to each grid, drawing the longitudinal segmentation line segments of each grid based on the transverse maximum interval line segments of each grid, and comparing the longitudinal segmentation line segments of each grid to obtain a target longitudinal segmentation line segment, wherein the target longitudinal segmentation line segment corresponds to the maximum longitudinal interval of each grid.
The specific implementation steps of acquiring the abscissa of each point in the outline corresponding to each grid and based on the abscissa of each point in the outline corresponding to each grid, and the transverse maximum interval line segments of each grid are as follows: acquiring the abscissa of each point in the profile corresponding to each grid, and obtaining a to-be-processed abscissa set of each grid; redundant data deletion processing is carried out on the to-be-processed abscissa set of each grid, so that a target abscissa set of each grid is obtained; comparing all the abscissas in the target abscissas of each grid in pairs, and extracting the points corresponding to the two abscissas with the largest difference in the target abscissas; and drawing the transverse maximum interval line of each grid based on the points respectively corresponding to the two ordinate coordinates with the maximum difference value.
Based on the transverse maximum interval line segments of each grid, drawing longitudinal segmentation line segments of each grid, and comparing the longitudinal segmentation line segments of each grid to obtain a specific implementation step of the target longitudinal segmentation line segments is as follows: determining the corresponding end points of the transverse maximum interval line segments of each grid to obtain a first end point and a second end point, drawing the longitudinal segmentation line segments of each grid from one end of the transverse maximum interval line segments based on the preset moving interval until the drawn longitudinal segmentation line segments overlap with the other end of the transverse maximum interval line segments, comparing based on the lengths of the longitudinal segmentation line segments in each grid, and reserving the longest longitudinal segmentation line segments to obtain target longitudinal segmentation line segments; if more than two longest longitudinal segmentation line segments exist, deleting the longest longitudinal segmentation line segments until one remains, and obtaining the target longitudinal segmentation line segments.
The preset interval distance can be set according to an actual scene, and when the preset interval distance is small enough and the drawn longitudinal line segments are large enough, the finally obtained target longitudinal line segments can be ensured to be the line segments corresponding to the longitudinal maximum distance in the grid.
104. The position of each spray head in the target area is determined based on the contour of each grid and each lateral division point.
And determining the arrangement height of the spray heads according to the distance from each transverse dividing point to the corresponding beam, wall and other component types of each profile, determining the arrangement position of each spray head according to the arrangement principle of the spray head height and the maximum value of the vertical distance from the spray head to the beam bottom surface and the distance from the corresponding beam, wall and other component types of each profile, and determining the arrangement position of each spray head according to the two-dimensional coordinates of the transverse dividing points and the height coordinates of the arrangement height.
In the embodiment of the invention, the target area is obtained, the grid is divided, the outlines of the grids are collected, the transverse segmentation line segments of the grids are determined, the transverse segmentation points are determined based on the transverse segmentation line segments, the positions of the spray heads in the target area are determined based on the outlines of the grids and the transverse segmentation points, and the efficiency of spray head arrangement is improved.
Referring to fig. 2, another embodiment of a method for arranging a spray head according to an embodiment of the present invention includes:
201. acquiring a target area needing to be subjected to spray head arrangement in a design drawing;
the execution of step 201 is similar to that of step 101, and will not be described here.
202. Dividing a target area into grids, and collecting outlines corresponding to the grids;
determining a wall of the target area Liang Jizhu; dividing the grid of the target area by taking walls and beams of the target area as grid boundaries and taking columns of the target area as grid point vertexes; and extracting the outline corresponding to each grid.
The method of determining the walls, liang Jizhu of the target area may be: the method comprises the steps of carrying out region division on a target region to obtain a plurality of divided regions, comparing the plurality of divided regions with a preset template in similarity to obtain a candidate construction type region set, screening the candidate construction type region set through a non-maximum suppression algorithm to obtain a target construction type set, wherein the target construction types are walls, beams and columns. The redundancy deletion processing of the comparison similarity comparison non-maximum suppression algorithm improves the accuracy of the structure type corresponding to the extraction target region.
For example, if a wall in a target area is identified, dividing the target area to obtain a plurality of divided areas, comparing the plurality of divided areas with a preset template to obtain the similarity of each divided area and the preset template, judging whether each similarity is greater than or equal to the preset similarity, if the target similarity greater than or equal to the preset similarity exists, extracting the divided area corresponding to the target similarity to obtain at least one candidate wall area, and deleting redundant candidate wall areas in the at least one wall area through a non-maximum suppression algorithm to obtain a target wall area set.
For example, the preset similarity is 80%, the plurality of divided regions include a first divided region, a second divided region, a third divided region, a fourth divided region, a fifth divided region and a sixth divided region, the first divided region and the preset template are subjected to similarity comparison to obtain a first similarity of 60%, the second divided region and the preset template are subjected to similarity comparison to obtain a second similarity of 90%, the third divided region and the preset template are subjected to similarity comparison to obtain a third similarity of 85%, the fourth divided region and the preset template are subjected to similarity comparison to obtain a fourth similarity of 82%, the fifth divided region and the preset template are subjected to similarity comparison to obtain a fifth similarity of 92%, the sixth divided region and the preset template are subjected to similarity comparison to obtain a sixth similarity of 80%, and as the second similarity 90%, the third similarity 85%, the fourth similarity 82%, the fifth similarity 92% and the sixth similarity 80% are all larger than or equal to the preset similarity, extracting a second divided region corresponding to the second similarity, a third divided region corresponding to the third similarity, a fourth divided region corresponding to the fourth similarity, a fifth divided region corresponding to the fifth similarity and a sixth divided region corresponding to the sixth similarity, determining the fifth divided region and the sixth divided region as candidate wall regions, obtaining a plurality of candidate wall regions, determining the second divided region as a redundant candidate wall region through a non-maximum suppression algorithm, deleting the second divided region in the plurality of candidate wall regions, and obtaining a target wall region set, wherein the target wall region set comprises the third divided region, the fourth divided region, the fifth divided region and the sixth divided region.
After grid division, images corresponding to the grids are extracted, the images are converted into gray images, smoothing and denoising are carried out on the gray images through a Gaussian filter, the processed gray images are obtained, edge detection is carried out on the processed gray images based on an edge detection algorithm, outlines corresponding to the grids are obtained, and as shown in fig. 3, fig. 3 is a schematic diagram of outline extraction results in the embodiment of the invention.
The edge detection algorithm can identify pixel points with obvious color or brightness changes in the image, so that a target pixel point is obtained, adjacent pixel points are connected through a preset connection rule by extracting the target pixel point, and the overall outline is obtained.
The Gaussian filter is used for smoothing and denoising the image, and the edge detection algorithm is used for extracting the outline of the image, so that the speed and accuracy for obtaining the outline corresponding to each grid are improved.
203. Drawing the longitudinal maximum interval line segments of each grid;
acquiring the ordinate of each point in the profile corresponding to each grid, and obtaining a to-be-processed ordinate set of each grid; redundant data deletion processing is carried out on the to-be-processed ordinate sets of each grid, so that a target ordinate set of each grid is obtained; comparing all the ordinate pairs in the target ordinate sets of each grid, and extracting the points corresponding to the two ordinate pairs with the largest difference in the target ordinate sets; and drawing the longitudinal maximum interval line segments of each grid based on the points respectively corresponding to the two ordinate coordinates with the maximum difference value.
Redundant data deletion processing is carried out on the to-be-processed ordinate sets of each grid, and the specific implementation steps of obtaining the target ordinate sets of each grid are as follows: judging whether the same longitudinal coordinates exist in the longitudinal coordinate set to be processed of each grid; if the same ordinate exists, deleting the same ordinate until one remains, and obtaining a target ordinate set of each grid.
Determining the ordinate of each point in the profile corresponding to each grid based on a pre-established coordinate system, obtaining a to-be-processed ordinate set of each grid, determining the target priority according to the priority sequence, extracting the ordinate corresponding to the target priority, inquiring in the to-be-processed ordinate set based on the ordinate corresponding to the target priority, judging whether other ordinate with the same value exists, deleting the other ordinate with the same value from the to-be-processed ordinate set if the other ordinate with the same value exists, obtaining a first to-be-processed ordinate set, determining the ordinate corresponding to the next priority of the target priority, deleting the ordinate with the same value as the ordinate corresponding to the next priority of the target priority in the first to-be-processed ordinate set, and so on until the to-be-processed ordinate set after the deletion is not provided with the same ordinate, obtaining the target ordinate set of each grid, calculating the difference value between every two ordinate of each grid, and respectively making the distance between two points corresponding to the grid according to the maximum points in each grid in the longitudinal line segment.
204. Determining transverse segmentation line segments of each grid based on the longitudinal maximum interval line segments and a longitudinal segmentation principle of each grid;
and dividing the line segments with the maximum distance according to the minimum dividing line principle based on the range of the nozzle distance corresponding to the target area, so as to obtain the transverse dividing line segments of each grid.
205. Based on each transverse segmentation line segment and a transverse segmentation principle, calculating transverse segmentation points of each transverse segmentation line segment;
acquiring coordinates of two ends of each transverse segmentation line segment; determining the distance between the two ends of each transverse segmentation line segment based on the coordinates of the two ends of each transverse segmentation line segment; and calculating the transverse segmentation points of each transverse segmentation line segment based on the distance between the two ends of each transverse segmentation line segment and the transverse segmentation principle.
And dividing each transverse dividing line segment according to the minimum dividing line principle based on the range of the nozzle spacing corresponding to the target area to obtain the transverse dividing points of each transverse dividing line segment.
For example, as shown in fig. 4, fig. 4 is a schematic diagram of a transverse partition point determining process in an embodiment of the present invention. When the maximum distance line segment in the longitudinal direction of the grid is 7850mm, if the distance range of the spray head corresponding to the target area is: the distance between the spray heads is 1800-3400mm and the distance between the spray heads and the wall is 100-1700mm, then dividing the line segment with the maximum distance corresponding to 7850mm based on the minimum dividing line principle to obtain each transverse dividing line segment, as shown in (a) in fig. 4; and acquiring coordinates of two ends of each transverse segmentation line segment, determining the distance between the two ends of each transverse segmentation line segment based on the coordinates of the two ends of each transverse segmentation line segment, and if the transverse segmentation line segment comprises a first transverse segmentation line segment 6865mm, a second transverse segmentation line segment 7225mm and a third transverse segmentation line segment 7606mm, performing segmentation calculation with the first transverse segmentation line segment 6865mm, the second transverse segmentation line segment 7225mm and the third transverse segmentation line segment 7606mm based on a segmentation line minimum principle to obtain transverse segmentation points of each transverse segmentation line segment, as shown in (b) in fig. 4.
206. The position of each spray head in the target area is determined based on the contour of each grid and each lateral division point.
Determining the type of a component corresponding to each contour; determining the maximum height of the corresponding spray head based on the types of the components, wherein the maximum height is the maximum value of the vertical distance from a water splashing disc of the spray head to the bottom surface of the beam; determining the height of each spray head based on the maximum height value and the spray head height arrangement principle; the position of each head in the target area is determined based on the height of each head and each lateral dividing point.
For example, as shown in table 1, table 1 is a table of distances between the shower head and the obstacle, information corresponding to the outline of the grid is extracted, a type of member corresponding to the outline is determined based on the information corresponding to the outline of the grid, when the type of member of the outline is a beam, a distance between a transverse dividing point and the beam is determined, a maximum value of a vertical distance from a water splashing disk of the shower head to a bottom surface of the beam is determined from table 1 according to the distance between the transverse dividing point and the beam, a maximum height value of the shower head corresponding to the transverse dividing point is obtained, in addition, a height arrangement principle is that a distance range between the water splashing disk of the shower head and the top plate is 75-150mm, the height of the shower head is determined based on the distance range and the maximum height value, a target height is obtained, a two-dimensional coordinate of the shower head is determined through the transverse dividing point, and a height coordinate of the shower head is determined according to the target height, thereby obtaining a specific position of the shower head.
TABLE 1 shower nozzle and obstacle distance meter
In the embodiment of the invention, the target area is obtained, the grid division is carried out on the target area, the outlines of the grids are collected, the longitudinal maximum interval line segments of the grids are drawn, the transverse division line segments of the grids are determined based on the longitudinal maximum interval line segments of the grids and the longitudinal division principle, the transverse division points of the transverse division line segments are calculated based on the transverse division line segments and the transverse division principle, the positions of the spray heads in the target area are determined based on the outlines of the grids and the transverse division points, and the efficiency of spray head arrangement is improved.
The method for positioning a nozzle in an embodiment of the present invention is described above, and the nozzle positioning device in an embodiment of the present invention is described below, referring to fig. 5, where an embodiment of the nozzle positioning device in an embodiment of the present invention includes:
an obtaining module 501, configured to obtain a target area in a design drawing, where a nozzle needs to be arranged;
the processing module 502 is configured to grid-divide the target area and collect contours corresponding to the grids;
a segmentation module 503, configured to determine a transverse segmentation line segment of each grid, and determine each transverse segmentation point based on each transverse segmentation line segment;
a determining module 504 is configured to determine a position of each nozzle in the target area based on the contour of each grid and each lateral division point.
In the embodiment of the invention, the target area is obtained, the grid is divided, the outlines of the grids are collected, the transverse segmentation line segments of the grids are determined, the transverse segmentation points are determined based on the transverse segmentation line segments, the positions of the spray heads in the target area are determined based on the outlines of the grids and the transverse segmentation points, and the efficiency of spray head arrangement is improved.
Referring to fig. 6, another embodiment of the shower head device according to the present invention includes:
an obtaining module 501, configured to obtain a target area in a design drawing, where a nozzle needs to be arranged;
the processing module 502 is configured to grid-divide the target area and collect contours corresponding to the grids;
a segmentation module 503, configured to determine a transverse segmentation line segment of each grid, and determine each transverse segmentation point based on each transverse segmentation line segment;
a determining module 504 is configured to determine a position of each nozzle in the target area based on the contour of each grid and each lateral division point.
Alternatively, the processing module 502 may be specifically configured to:
determining a wall of the target area Liang Jizhu; dividing the grid of the target area by taking walls and beams of the target area as grid boundaries and taking columns of the target area as grid point vertexes; and extracting the outline corresponding to each grid.
Optionally, the segmentation module 503 includes:
a drawing unit 5031 for drawing a maximum pitch line segment in the longitudinal direction of each mesh;
a determining unit 5032 configured to determine a transverse segment of each grid based on a maximum pitch segment in a longitudinal direction of each grid and a longitudinal segmentation principle;
a calculation unit 5033 for calculating a lateral division point of each lateral division line segment based on each lateral division line segment and a lateral division principle.
Optionally, the drawing unit 5031 includes:
an obtaining subunit 50311, configured to obtain an ordinate of each point in the profile corresponding to each grid, to obtain a to-be-processed ordinate set of each grid;
a deleting subunit 50312, configured to perform redundant data deletion processing on the to-be-processed ordinate sets of each grid, so as to obtain a target ordinate set of each grid;
a processing subunit 50313, configured to compare all the ordinate sets in the target ordinate sets of each grid, and extract the points corresponding to the two ordinate sets with the largest difference in the target ordinate sets;
and a drawing subunit 50314, configured to draw a line segment of the maximum pitch in the longitudinal direction of each grid based on the points corresponding to the two ordinate axes with the maximum difference.
Alternatively, the delete subunit 50312 may be specifically configured to:
judging whether the same longitudinal coordinates exist in the longitudinal coordinate set to be processed of each grid; if the same ordinate exists, deleting the same ordinate until one remains, and obtaining a target ordinate set of each grid.
Alternatively, the computing unit 5033 may be specifically configured to:
acquiring coordinates of two ends of each transverse segmentation line segment; determining the distance between the two ends of each transverse segmentation line segment based on the coordinates of the two ends of each transverse segmentation line segment; and calculating the transverse segmentation points of each transverse segmentation line segment based on the distance between the two ends of each transverse segmentation line segment and the transverse segmentation principle.
Alternatively, the determining module 504 may be specifically configured to:
determining the type of a component corresponding to each contour; determining the maximum height of the corresponding spray head based on the types of the components, wherein the maximum height is the maximum value of the vertical distance from a water splashing disc of the spray head to the bottom surface of the beam; determining the height of each spray head based on the maximum height value and the spray head height arrangement principle; the position of each head in the target area is determined based on the height of each head and each lateral dividing point.
In the embodiment of the invention, the target area is obtained, the grid division is carried out on the target area, the outline of each grid is collected, the longitudinal maximum interval line segments of each grid are drawn, the transverse division line segments of each grid are determined based on the longitudinal maximum interval line segments and the longitudinal division principle of each grid, the transverse division points of each transverse division line segment are calculated based on each transverse division line segment and the transverse division principle, and the positions of each spray head in the target area are determined based on the outline of each grid and each transverse division point, so that the efficiency of spray head arrangement is improved.
The head arrangement device in the embodiment of the present invention is described in detail above in fig. 5 and 6 from the point of view of the modularized functional entity, and the head arrangement apparatus in the embodiment of the present invention is described in detail below from the point of view of hardware processing.
Fig. 7 is a schematic structural diagram of a spray head arrangement device according to an embodiment of the present invention, where the spray head arrangement device 700 may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 710 (e.g., one or more processors) and a memory 720, and one or more storage media 730 (e.g., one or more mass storage devices) storing application programs 733 or data 732. Wherein memory 720 and storage medium 730 may be transitory or persistent. The program stored in the storage medium 730 may include one or more modules (not shown), each of which may include a series of instruction operations in the head arrangement apparatus 700. Still further, the processor 710 may be configured to communicate with the storage medium 730 and execute a series of instruction operations in the storage medium 730 on the spray head placement device 700.
The spray head arrangement apparatus 700 may also include one or more power supplies 740, one or more wired or wireless network interfaces 750, one or more input/output interfaces 760, and/or one or more operating systems 731, such as Windows Serve, mac OS X, unix, linux, freeBSD, and the like. It will be appreciated by those skilled in the art that the spray head arrangement apparatus structure shown in fig. 7 is not limiting of the spray head arrangement apparatus and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The present invention also provides a head arrangement apparatus comprising a memory and a processor, the memory storing computer readable instructions which, when executed by the processor, cause the processor to perform the steps of the head arrangement method in the above embodiments.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, or may be a volatile computer readable storage medium, having stored therein instructions that, when executed on a computer, cause the computer to perform the steps of the spray head arrangement method.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. A method of arranging a head, the method comprising:
acquiring a target area needing to be subjected to spray head arrangement in a design drawing;
dividing the target area into grids, and collecting outlines corresponding to the grids;
determining transverse segmentation line segments of each grid, and determining each transverse segmentation point based on each transverse segmentation line segment;
determining the position of each spray head in the target area based on the outline of each grid and each transverse partition point;
the determining the transverse segmentation line segments of each grid and determining each transverse segmentation point based on each transverse segmentation line segment comprises: drawing the longitudinal maximum interval line segments of each grid; determining transverse segmentation line segments of each grid based on the longitudinal maximum interval line segments and a longitudinal segmentation principle of each grid; based on each transverse segmentation line segment and a transverse segmentation principle, calculating transverse segmentation points of each transverse segmentation line segment;
the drawing of the longitudinal maximum interval line segments of each grid comprises the following steps: acquiring the ordinate of each point in the profile corresponding to each grid, and obtaining a to-be-processed ordinate set of each grid; redundant data deletion processing is carried out on the to-be-processed ordinate sets of each grid, so that a target ordinate set of each grid is obtained; comparing all the ordinate pairs in the target ordinate sets of each grid, and extracting the points corresponding to the two ordinate pairs with the largest difference in the target ordinate sets; drawing the longitudinal maximum interval line segments of each grid based on the points respectively corresponding to the two ordinate coordinates with the maximum difference value;
the step of deleting redundant data from the to-be-processed ordinate sets of each grid to obtain a target ordinate set of each grid comprises the following steps: judging whether the same longitudinal coordinates exist in the longitudinal coordinate set to be processed of each grid; if the same ordinate exists, deleting the same ordinate until one remains, and obtaining a target ordinate set of each grid.
2. The method for arranging a nozzle according to claim 1, wherein the step of meshing the target area and acquiring the profile corresponding to each mesh includes:
determining walls of the target area Liang Jizhu;
dividing the grid of the target area by taking walls and beams of the target area as grid boundaries and taking columns of the target area as grid point vertexes;
and extracting the outline corresponding to each grid.
3. The head arrangement method according to claim 1, wherein the calculating the lateral division point of each lateral division line segment based on each lateral division line segment and the lateral division principle includes:
acquiring coordinates of two ends of each transverse segmentation line segment;
determining the distance between the two ends of each transverse segmentation line segment based on the coordinates of the two ends of each transverse segmentation line segment;
and calculating the transverse segmentation points of each transverse segmentation line segment based on the distance between the two ends of each transverse segmentation line segment and the transverse segmentation principle.
4. The head arrangement method according to claim 1, wherein the determining the position of each head in the target area based on the contour of each mesh and each lateral division point includes:
determining the type of a component corresponding to each contour;
determining the maximum height of the corresponding spray head based on the types of the components, wherein the maximum height is the maximum value of the vertical distance from a water splashing disc of the spray head to the bottom surface of the beam;
determining the height of each spray head based on the maximum height value and the spray head height arrangement principle;
and determining the position of each spray head in the target area based on the height of each spray head and each transverse dividing point.
5. A spray head arrangement device, characterized in that the spray head arrangement device comprises:
the acquisition module is used for acquiring a target area needing nozzle arrangement in the design drawing;
the processing module is used for dividing the target area into grids and collecting the contours corresponding to the grids;
the segmentation module is used for determining transverse segmentation line segments of each grid and determining each transverse segmentation point based on each transverse segmentation line segment;
the determining module is used for determining the position of each spray head in the target area based on the outline of each grid and each transverse partition point;
the segmentation module comprises: the drawing unit is used for drawing the longitudinal maximum interval line segments of each grid; the determining unit is used for determining transverse segmentation line segments of each grid based on the longitudinal maximum interval line segments and the longitudinal segmentation principle of each grid; the computing unit is used for computing the transverse segmentation points of each transverse segmentation line segment based on each transverse segmentation line segment and the transverse segmentation principle;
the drawing unit includes: the acquisition subunit is used for acquiring the ordinate of each point in the outline corresponding to each grid to obtain a to-be-processed ordinate set of each grid; the deleting subunit is used for carrying out redundant data deleting treatment on the to-be-treated ordinate sets of each grid to obtain target ordinate sets of each grid; the processing subunit is used for comparing all the ordinate sets of the target ordinate sets of each grid in pairs and extracting the points respectively corresponding to the two ordinate sets with the largest difference value in each target ordinate set; the drawing subunit is used for drawing the longitudinal maximum interval line segments of each grid based on the points respectively corresponding to the two vertical coordinates with the maximum difference value;
the deletion subunit is specifically configured to: judging whether the same longitudinal coordinates exist in the longitudinal coordinate set to be processed of each grid; if the same ordinate exists, deleting the same ordinate until one remains, and obtaining a target ordinate set of each grid.
6. A head arrangement apparatus, characterized in that the head arrangement apparatus comprises: a memory and at least one processor, the memory having instructions stored therein;
the at least one processor invokes the instructions in the memory to cause the spray head placement device to perform the spray head placement method of any one of claims 1-4.
7. A computer readable storage medium having instructions stored thereon, which when executed by a processor, implement the spray head placement method of any one of claims 1-4.
CN202311806817.3A 2023-12-26 2023-12-26 Nozzle arrangement method, device, equipment and storage medium Active CN117473588B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311806817.3A CN117473588B (en) 2023-12-26 2023-12-26 Nozzle arrangement method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311806817.3A CN117473588B (en) 2023-12-26 2023-12-26 Nozzle arrangement method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117473588A CN117473588A (en) 2024-01-30
CN117473588B true CN117473588B (en) 2024-04-02

Family

ID=89623755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311806817.3A Active CN117473588B (en) 2023-12-26 2023-12-26 Nozzle arrangement method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117473588B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113868731A (en) * 2021-07-30 2021-12-31 中冶南方武汉建筑设计有限公司 Spraying arrangement method based on advanced mathematical algorithm
CN114179532A (en) * 2021-12-07 2022-03-15 北京博示电子科技有限责任公司 Method and device for moving spray head, electronic equipment and storage medium
CN115249303A (en) * 2022-07-05 2022-10-28 上海品览数据科技有限公司 Layout drawing method, device, equipment and storage medium based on drawing segmentation
CN115544629A (en) * 2022-11-04 2022-12-30 中国建筑西南设计研究院有限公司 Fire-fighting nozzle arrangement compliance inspection method and system
CN116628912A (en) * 2023-06-08 2023-08-22 阳光新能源开发股份有限公司 Method, device and medium for arranging spray heads
CN117113468A (en) * 2022-12-29 2023-11-24 江西少科智能建造科技有限公司 Method, system, storage medium and equipment for arranging spray heads in beam room

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11007388B2 (en) * 2018-08-17 2021-05-18 Viking Group, Inc. Automatic fire sprinklers, systems and methods for suppression fire protection of high hazard commodities including commodities stored in rack arrangements beneath ceilings of up to fifty-five feet in height

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113868731A (en) * 2021-07-30 2021-12-31 中冶南方武汉建筑设计有限公司 Spraying arrangement method based on advanced mathematical algorithm
CN114179532A (en) * 2021-12-07 2022-03-15 北京博示电子科技有限责任公司 Method and device for moving spray head, electronic equipment and storage medium
CN115249303A (en) * 2022-07-05 2022-10-28 上海品览数据科技有限公司 Layout drawing method, device, equipment and storage medium based on drawing segmentation
CN115544629A (en) * 2022-11-04 2022-12-30 中国建筑西南设计研究院有限公司 Fire-fighting nozzle arrangement compliance inspection method and system
CN117113468A (en) * 2022-12-29 2023-11-24 江西少科智能建造科技有限公司 Method, system, storage medium and equipment for arranging spray heads in beam room
CN116628912A (en) * 2023-06-08 2023-08-22 阳光新能源开发股份有限公司 Method, device and medium for arranging spray heads

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Computation model of sprinkler spacing and layout;Dwomoh, F. A., Y. Shouqi, and L. Hong;《Int. J. Eng. Sci. Emerging Technol》;20141231;第7卷(第1期);481-489 *
建筑消防给排水工程中室内无吊顶喷头位置设计研究;陈秋涛;《四川建材》;20231210;第49卷(第12期);232-234 *

Also Published As

Publication number Publication date
CN117473588A (en) 2024-01-30

Similar Documents

Publication Publication Date Title
KR101690981B1 (en) Form recognition method and device
CN104331876A (en) Line detection and image processing method and related devices thereof
CN111259854B (en) Method and device for identifying structured information of table in text image
CN107220647B (en) Crop center point positioning method and system under blade crossing condition
CN105335745A (en) Recognition method, device and equipment for numbers in images
CN110210295B (en) High-precision target identification detection method under grid background
WO2005010819A1 (en) Method for partitioning a pattern into optimized sub-patterns
Kaewaramsri et al. Improved triangle box-counting method for fractal dimension estimation
CN108446702B (en) Image character segmentation method, device, equipment and storage medium
CN107909068A (en) A kind of big data image curve reverse resolution method and system
CN110570445A (en) Image segmentation method, device, terminal and readable medium
CN112529014A (en) Straight line detection method, information extraction method, device, equipment and storage medium
CN117473588B (en) Nozzle arrangement method, device, equipment and storage medium
CN115511875A (en) Cargo accumulation detection method, device, equipment and storage medium
CN114943659A (en) Map area segmentation method and related device
JP6874987B2 (en) Feature shape extraction device, feature shape extraction method, and program
CN116721228B (en) Building elevation extraction method and system based on low-density point cloud
CN116596921B (en) Method and system for sorting incinerator slag
CN111767912A (en) Mark point identification method, device, equipment and storage medium
WO2023179382A1 (en) Method and apparatus for marking obstacle in robot map
Srisang et al. Segmentation of overlapping chromosome images using computational geometry
JP7118295B1 (en) Image processing device, program and image processing method
CN111540018B (en) Score calculation method of symmetrical layout mode of camera and related equipment
CN114529686A (en) Building model generation method, device, equipment and medium
WO2020098532A1 (en) Method for positioning mobile robot, and mobile robot

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant