CN113673413A - Method and device for examining architectural drawings, computer readable medium and electronic equipment - Google Patents

Method and device for examining architectural drawings, computer readable medium and electronic equipment Download PDF

Info

Publication number
CN113673413A
CN113673413A CN202110945674.9A CN202110945674A CN113673413A CN 113673413 A CN113673413 A CN 113673413A CN 202110945674 A CN202110945674 A CN 202110945674A CN 113673413 A CN113673413 A CN 113673413A
Authority
CN
China
Prior art keywords
building
rule
coordinates
parallel operation
checked
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.)
Pending
Application number
CN202110945674.9A
Other languages
Chinese (zh)
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.)
Gemdale Corp
Original Assignee
Gemdale Corp
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 Gemdale Corp filed Critical Gemdale Corp
Priority to CN202110945674.9A priority Critical patent/CN113673413A/en
Publication of CN113673413A publication Critical patent/CN113673413A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/08Construction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/181Segmentation; Edge detection involving edge growing; involving edge linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application belongs to the technical field of buildings, and particularly relates to a method and a device for examining a building drawing, a computer readable medium and electronic equipment. The method comprises the following steps: obtaining a building drawing to be checked; identifying building components in the construction drawings to be checked; vectorizing the position coordinates corresponding to the building components to form matrix coordinates; performing parallel operation on the matrix coordinates of the corresponding building components according to the logical relationship between the preset objects; and transmitting the parallel operation result into an interface position corresponding to a preset logic rule function, and performing rule calculation to generate a diagram examination result, wherein the diagram examination result is used for indicating whether the building component meets the diagram examination rule. Therefore, the position coordinates corresponding to the building components in the building drawing to be checked are vectorized, and then parallel operation is performed according to the logic relation between preset objects, so that the calculation efficiency of the matrix is improved, and the efficiency of checking the drawing is improved when whether the building drawing accords with the preset rule or not is judged.

Description

Method and device for examining architectural drawings, computer readable medium and electronic equipment
Technical Field
The application belongs to the technical field of buildings, and particularly relates to a map reviewing method of a building drawing, a map reviewing device of the building drawing, a computer readable medium and electronic equipment.
Background
The building drawing auditing is a necessary link for carrying out multi-professional comprehensive inspection on the building design drawing to become a construction available drawing. The examination and drawing refers to a series of examination functions of the design model, such as collision examination and standard examination after multi-professional integration of the building model, so as to ensure good transition of the building engineering from a design end to a construction end. The image examination work relates to the interests of multiple parties of a first party, a designer and a constructor, and mutual conflict and visual communication among building components are judged in advance through image examination, so that the cooperation capacity among project workers is improved.
The traditional picture examination needs to depend on manual work to determine whether the drawing accords with a preset rule, namely, the drawing to be examined is printed and then is examined by a picture examiner. The whole map reviewing link has the defects of low speed, long time, low efficiency and the like, great inconvenience is brought to construction units, the progress of engineering construction is influenced, and the accuracy of manual map reviewing is not high.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present application and therefore may include information that does not constitute prior art known to a person of ordinary skill in the art.
Disclosure of Invention
The application aims to provide a method and a device for reviewing a construction drawing, a computer readable medium and electronic equipment, and the efficiency of reviewing the drawing is improved at least to a certain extent.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned by practice of the application.
According to an aspect of an embodiment of the present application, there is provided a method for reviewing a construction drawing, the method including:
obtaining a building drawing to be checked;
identifying a building component in the building drawing to be audited, wherein the building component comprises a plurality of part structures forming the building drawing;
vectorizing the position coordinates corresponding to the building element to form matrix coordinates;
performing parallel operation on the corresponding matrix coordinates of the building components according to the logical relationship between preset objects;
and transmitting the parallel operation result into an interface position corresponding to a preset logic rule function, and performing rule calculation to generate a diagram examination result, wherein the diagram examination result is used for indicating whether the building component meets the diagram examination rule.
According to an aspect of an embodiment of the present application, there is provided an apparatus for reviewing a construction drawing, the apparatus including:
the acquisition module is used for acquiring the construction drawing to be checked;
the identification module is used for identifying the building component in the building drawing to be checked, and the building component comprises a plurality of part structures forming the building drawing;
the conversion module is used for vectorizing the position coordinates corresponding to the building components to form matrix coordinates;
the operation module is used for performing parallel operation on the corresponding matrix coordinates of the building components according to the logical relationship among the preset objects;
and the result module is used for transmitting the parallel operation result into an interface position corresponding to a preset logic rule function and carrying out rule calculation so as to generate a diagram examination result, wherein the diagram examination result is used for indicating whether the building component meets the diagram examination rule or not.
In some embodiments of the application, based on the above technical solution, the identification module is further configured to obtain image information in the construction drawing to be audited; splitting the image information to obtain at least one rectangular frame; obtaining coordinates of each vertex of the at least one rectangular frame; and identifying the building element corresponding to each rectangular frame according to the coordinates of each vertex of the at least one rectangular frame.
In some embodiments of the application, based on the above technical solution, the identification module is further configured to obtain text information in the construction drawing to be audited; determining the category of each building component according to the text information; and carrying out contour fitting on the building component, and determining the spatial range of the building component.
In some embodiments of the present application, based on the above technical solution, the building element includes a wall, and the identification module is further configured to perform edge contour extraction on a contour of the wall; and performing polygon fitting processing based on the edge profile, and obtaining a processed wall profile from the fitted polygon to obtain the spatial range of the building element.
In some embodiments of the application, based on the above technical solution, the identification module is further configured to, if there are repeated rectangular frame coordinates, select at least two rectangular frames corresponding to the repeated rectangular frame coordinates; and performing spatial analysis on the at least two rectangular frames to determine that the at least two rectangular frames are two building components each other.
In some embodiments of the present application, based on the above technical solution, the preset logic rule function is an interference function, and the result module is further configured to transmit the parallel operation result to an interface position of the interference function; obtaining a corresponding two-dimensional coordinate value through a conversion function; obtaining the overlapping relation of the building components according to the two-dimensional coordinate values; if the two-dimensional coordinate values are intersected, the building components are represented to be in an overlapping relation, and the examination rule is met.
In some embodiments of the present application, based on the above technical solution, the preset logic rule function is a right-facing function, and the result module is further configured to transmit the parallel operation result to an interface position of the right-facing function; calculating the Manhattan distance of the corresponding interface position; if the point distance of the coordinate corresponding to the interface position is nearest, the building components are in a positive-facing relationship, and the examination rule is met.
According to an aspect of the embodiments of the present application, there is provided a computer readable medium, on which a computer program is stored, which when executed by a processor, implements a method for reviewing a construction drawing as in the above technical solutions.
According to an aspect of an embodiment of the present application, there is provided an electronic apparatus including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the drawing examination method of the construction drawing according to the above technical scheme by executing the executable instructions.
According to an aspect of embodiments herein, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the map reviewing method of the construction drawing according to the technical scheme.
According to the technical scheme provided by the embodiment of the application, the position coordinates corresponding to the building components in the building drawing to be checked are vectorized, and then parallel operation is performed according to the logic relation between the preset objects, so that the calculation efficiency of the matrix is increased, and the efficiency of checking the drawing is improved when whether the building drawing accords with the preset rule or not is judged.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 schematically shows a flowchart of steps of a drawing examination method for providing a construction drawing according to an embodiment of the present application.
Fig. 2 schematically shows a flow of steps for identifying a building element in a construction drawing to be checked in an embodiment of the present application.
Fig. 3 schematically shows a flow of steps for identifying a building element in a construction drawing to be checked in another embodiment of the present application.
Fig. 4 schematically shows a flow of steps for contour fitting a building element to determine the spatial extent of the building element in another embodiment of the present application.
Fig. 5 schematically shows a flow of steps for identifying a building element in a construction drawing to be checked in a further embodiment of the present application.
Fig. 6 schematically illustrates a flow of steps of transmitting a parallel operation result to an interface position corresponding to a preset logic rule function, and performing rule calculation to generate an examination result in an embodiment of the present application.
Fig. 7 schematically shows a flow of steps of transmitting a parallel operation result to an interface position corresponding to a preset logic rule function, and performing rule calculation to generate an examination result in another embodiment of the present application.
Fig. 8 schematically shows a structural block diagram of a drawing examination device of a construction drawing provided by an embodiment of the application.
FIG. 9 schematically illustrates a block diagram of a computer system suitable for use in implementing an electronic device of an embodiment of the present application.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the subject matter of the present application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the application.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The following provides a detailed description of the method, apparatus, computer-readable medium, and electronic device for reviewing architectural drawings in accordance with the present application.
Referring to fig. 1, fig. 1 schematically shows a flowchart of steps of a drawing examination method for providing a construction drawing according to an embodiment of the present application. The map reviewing method of the construction drawing mainly includes the following steps S101 to S105.
And S101, obtaining a building drawing to be checked.
The construction drawing to be checked draws a plurality of construction components and name information for marking the construction components on the drawing content.
Specifically, the architectural drawing to be checked is a drawing manufactured according to a standard specification, and a tab bar in the drawing manufactured according to the standard specification generally includes the following information: picture name, specialty, sub-project name, picture number (e.g., picture name: XX plan/elevation), specialty: building/structure (or picture type: construction/construction), sub-project name: XX building, project name: XX project, picture number: 03). In the architectural drawing, the bottom edge of the drawing frame is parallel to the X axis or the Y axis of the drawing view coordinate system; the layer name should accurately express the content of the layer, the same layer should not contain multiple types of components, and the chart primitives should not be placed in the layer 0; the chart elements are arranged on the printable layer (the content of the closed, frozen and unprintable layer is not examined); the architectural base map of the electromechanical and structural needs to keep the map-layer information of the original architectural drawing.
Optionally, the building drawing to be checked may be a building drawing in a CAD drawing format, and if the building drawing to be checked is a building drawing in a non-CAD drawing format, the building drawing in the non-CAD drawing format is converted into the building drawing in the CAD drawing format. For example, if the construction drawing to be checked is a drawing in other formats such as PDF, the construction drawing needs to be converted into a CAD drawing format for further processing.
And S102, identifying a building component in the building drawing to be checked, wherein the building component comprises a plurality of part structures forming the building drawing.
After obtaining the building drawing to be checked, identifying a plurality of building components in the building drawing to obtain the position coordinate information and the category information of the building components.
Step S103, vectorizing the position coordinates corresponding to the building components to form matrix coordinates.
After the building components in the construction drawing to be checked are identified, the position coordinates of each building component can be obtained, and then the position coordinates are segmented according to categories and assembled into vectors, so that subsequent calculation is facilitated.
And step S104, performing parallel operation on the matrix coordinates of the corresponding building components according to the logic relationship between the preset objects.
The logic relation between the objects is preset, the logic relation between the objects represents a regular relation which needs to be met between the building components, and then the calculation is carried out in a parallel calculation mode.
And S105, transmitting the parallel operation result into an interface position corresponding to a preset logic rule function, and performing rule calculation to generate a diagram examination result, wherein the diagram examination result is used for indicating whether the building component meets the diagram examination rule.
After calculation, returning data combined with the coordinate points, transmitting the coordinate point set into a corresponding interface position of a preset logic rule function, obtaining an image examination result according to the logic rule function, and determining whether the building component conforms to the building rule.
According to the technical scheme provided by the embodiment of the application, the position coordinates corresponding to the building components in the building drawing to be checked are vectorized, and then parallel operation is performed according to the logic relation between the preset objects, so that the calculation efficiency of the matrix is increased, and the efficiency of checking the drawing is improved when whether the building drawing accords with the preset rule or not is judged.
Optionally, a currently common building rule calculation acceleration algorithm based on a divide-and-conquer algorithm often adopts a simple divide-and-conquer strategy. Each n x n matrix can be divided into four n/2x n/2 matrices: therefore, formula C can be rewritten as:
the above equation is then equivalent to the following four equations:
C11=A11·B11+A12·B21;
C12=A11·B12+A12·B22;
C21=A21·B11+A22·B21;
C22=A21·B12+A22·B22;
therefore, each formula needs to calculate two matrix multiplications and one matrix addition, and t (n) is used to represent the time complexity of n × n matrix multiplication, so we can obtain a recursion formula according to the above decomposition.
T(n)=8T(n/2)+Θ(n2)
Where 8T (n/2) represents 8 matrix multiplications and the matrix size of the multiplication is reduced to n/2. Θ (n2) represents the temporal complexity of 4 matrix additions and the temporal complexity of the merged C matrix.
Where 8T (n/2) represents 8 matrix multiplications and the matrix size of the multiplication is reduced to n/2. Θ (n2) represents the temporal complexity of 4 matrix additions and the temporal complexity of the merged C matrix.
To calculate t (n), t (n) ═ Θ (n3) can be calculated by drawing a recursive tree or by direct calculation using the "main method" without complexity.
It can be seen that the simple divide-and-conquer strategy does not have the effect of accelerating the operation. Because the decomposed problem includes 8 matrix multiplications and 4 matrix additions, that is, the 8 matrix multiplications result in the speed not being increased.
In order to solve the problem of low matrix multiplication efficiency, the method adopts a divide-and-conquer algorithm, and one matrix multiplication operation reduces the time complexity. Specifically, each matrix is divided into 4, and then 10 intermediate matrices are created as follows:
S1=B12-B22;S2=A11+A12;S3=A21+A22;S4=B21-B11;S5=A11+A22;S6=B11+B22;S7=A12-A22;S8=B21+B22;S9=A11-A21;S10=B11+B12
next, 7 matrix multiplications were calculated:
P1=A11.S1;P2=S2.B22;P3=S3.B11;P4=A22.S4;P5=S5.S6;P6=S7.S8;P7=S9.S10
finally, from these 7 results, the C matrix can be calculated,
C11=P5+P4-P2+P6;C12=P1+P2
C21=P3+P4;C22=P5+P1-P3-P7
therefore, 8 times of matrix multiplication is performed before improvement, 7 times of matrix multiplication is performed after improvement, and one matrix multiplication is ingeniously omitted in the improved matrix calculation, so that the time complexity is reduced, and the algorithm efficiency is improved by the building rule calculation acceleration algorithm based on the divide-and-conquer algorithm.
In one embodiment of the present application, referring to fig. 2, fig. 2 schematically illustrates a flow of steps for identifying a building element in a construction drawing to be checked in an embodiment of the present application. The method for identifying the building component in the construction drawing to be checked mainly comprises the following steps S201 to S204.
Step S201, obtaining image information in the architectural drawings to be checked.
The image information includes other information such as points and lines.
Step S202, splitting the image information to obtain at least one rectangular frame.
The method comprises the steps of splitting image information to obtain a plurality of points and a plurality of line segments, obtaining a plurality of connecting nodes according to the plurality of points and the plurality of line segments, and carrying out closed-loop division on the connecting nodes to obtain at least one rectangular frame.
Optionally, after the connection nodes are divided into closed loops, whether repeated line segments or repeated points exist needs to be detected; if the repeated line segments and the repeated points exist, checking whether repeated connection nodes exist, if so, extracting at least two rectangular frames corresponding to the repeated connection nodes for space analysis, determining whether the at least two rectangular frames are rectangular frames which accord with the space and have rationality, if so, keeping, and otherwise, marking the at least two rectangular frames.
Step S203, obtaining the coordinates of each vertex of at least one rectangular frame.
Wherein, the coordinate of each vertex can be obtained by a space rectangular coordinate system.
And step S204, identifying the building component corresponding to each rectangular frame according to the coordinates of each vertex of at least one rectangular frame.
Like this, through split point and line segment, split the CAD picture, and then the comparatively accurate rectangle frame that obtains a plurality of components in the drawing promotes the intelligence and the accuracy of building drawing component discernment.
Taking the YOLOv5 model as an example, YOLOv5 is a single-stage target detection algorithm that will perform target detection of building element graphics by deploying the YOLOv5 model. The input end of the YOLOv5 model inputs the building element graph. Since the input image size of the model is 608 × 608, the building element image is converted into a predetermined input format (e.g., 608 × 608), and the stage generally includes an image preprocessing stage, i.e., scaling the input image to the predetermined input size of the model, and performing normalization. Further, the input end of YOLOv5 adopts a Mosaic data enhancement mode, adopts adaptive anchor frame calculation and adaptive image adjustment, and divides the input image with the size not meeting the requirement into 608 × 608, and if the input image is smaller than 608 × 608, filling is needed to make the input image meet the preset input format. Therefore, the building element image is subject to target detection through the YOLOv5 model, and the building element graph in the building element image can be obtained.
In one embodiment of the present application, referring to fig. 3, fig. 3 schematically illustrates a flow of steps for identifying a building element in a construction drawing to be audited in another embodiment of the present application. The method for identifying the building component in the construction drawing to be audited mainly comprises the following steps S301 to S303.
And S301, acquiring character information in the construction drawing to be checked.
The text can be found and identified in the building drawing by the character identification technology, namely, the position of the name information of the building component in the building drawing is found facing to the building component drawn on the building image, and then the text in the position is identified to obtain the name information of the building component, and finally the building component image and the image coordinate corresponding to the name information are obtained.
The Character Recognition technology may be an OCR (Optical Character Recognition) technology, which converts text attached to the architectural drawing into image information by an Optical input method such as scanning, and then converts the image information into a computer input technology that can be used.
Step S302, determining the category of each building component according to the character information;
step S303, contour fitting is performed on the building element, and the spatial range of the building element is determined.
Specifically, the contour of the building element graph in the building element image can be obtained through a contour detection algorithm, and the element geometric graph coordinates are obtained based on the contour and the image coordinates of the building element graph.
In this way, more accurate information of the building element can be obtained by the contour detection algorithm.
In one embodiment of the present application, referring to fig. 4, fig. 4 schematically shows a flow of steps for determining a spatial extent of a building element by contour fitting the building element in another embodiment of the present application. The contour fitting of the building element to determine the spatial extent of the building element may mainly further comprise the following steps S401 to S402.
Step S401, extracting the edge contour of the wall;
step S402, carrying out polygon fitting processing based on the edge outline, and obtaining a processed wall body outline from the fitted polygon so as to obtain the space range of the building component.
Specifically, the polygon fitting of the contour is performed by using an iterative endpoint fitting method, and in the fitting algorithm, the more the iteration times, the higher the fitting accuracy of the contour, and the closer the fitted contour line is to the original contour line. In general, the main steps of the fitting algorithm to fit a profile are as follows:
(1) setting a distance threshold T;
(2) selecting a starting point A and an end point B of a contour line as two end points of a fitting polygon;
(3) calculating the distance from all points A, B on the contour line AB to the connecting line A, B, selecting the point C with the maximum distance, and setting the maximum distance value as H;
(4) comparing H and T, if H > T, indicating that C is an end point of the fitting polygon, and continuing to the step (5); if H is less than T, jumping out of the algorithm, and showing that no end point exists on the section of contour line;
(5) the end point C divides the contour line AB into an AC part and a BC part, and the end points on the contour lines of the two parts are respectively found out according to the steps (2), (3), (4) and (5); all the endpoints on the curve AB are found out (A, B, C, D … …), and are connected in sequence to obtain the final fitting polygon, and the endpoint A, B, C, D … … is the polygon vertex.
Therefore, more accurate contour information can be obtained through the fitting algorithm so as to identify and obtain more accurate information of the building component.
In one embodiment of the present application, referring to fig. 5, fig. 5 schematically illustrates a flow of steps for identifying a building element in a construction drawing to be checked in yet another embodiment of the present application. The method for identifying the building component in the construction drawing to be audited mainly comprises the following steps S501 to S502.
Step S501, if repeated rectangular frame coordinates exist, selecting at least two rectangular frames corresponding to the repeated rectangular frame coordinates;
step S502, performing spatial analysis on the at least two rectangular frames, and determining that the at least two rectangular frames are two building components each other.
Therefore, whether repeated rectangular frame coordinates exist or not is judged, so that the two rectangular frames are further subjected to spatial analysis, the building components corresponding to the rectangular frames are determined, and more accurate building component information is obtained.
In an embodiment of the present application, referring to fig. 6, fig. 6 schematically illustrates a flow of steps of transmitting a parallel operation result to an interface position corresponding to a preset logic rule function, and performing rule calculation to generate a map examination result in an embodiment of the present application. The preset logic rule function is an interference function, the parallel operation result is transmitted to an interface position corresponding to the preset logic rule function, and rule calculation is performed to generate an examination result, and the following steps S601 to S604 may also be mainly included.
Step S601, the parallel operation result is transmitted to the interface position of the interference function.
The interface position of the interference function corresponds to the interference function (the coordinate 1 at the upper left corner, the coordinate 1 at the lower right corner, the coordinate 2 at the upper left corner and the coordinate 2 at the lower right corner), and the interference function C subjected to parallel computation is used for carrying out parallel computation11、C12、C21、C22And is transmitted to the corresponding interface position.
Step S602, a corresponding two-dimensional coordinate value is obtained through the conversion function.
The 8 maximum and minimum x, y values are obtained by conversion through a conversion function.
Step S603, obtaining the overlapping relation of the building components according to the two-dimensional coordinate values;
in step S604, if the two-dimensional coordinate values intersect, the building elements are in an overlapping relationship, and the map-checking rule is satisfied.
If the two rectangles intersect, an overlap exists, and the building elements meet the examination rule.
Therefore, judgment is carried out through a preset logic rule function, whether the requirement of the picture examination rule among the building components is met or not can be obtained, and the picture examination efficiency is improved.
In an embodiment of the present application, referring to fig. 7, fig. 7 schematically illustrates a flow of steps of transmitting a parallel operation result to an interface position corresponding to a preset logic rule function, and performing rule calculation to generate a map examination result in another embodiment of the present application. The preset logic rule function is a positive function, the parallel operation result is transmitted to an interface position corresponding to the preset logic rule function, and rule calculation is performed to generate an examination result, and the following steps S701 to S703 may be mainly included.
Step S701, the parallel operation result is transmitted to the interface position of the just-facing function.
The interface position of the right-facing function corresponds to that of the right-facing function (upper left corner coordinate 1, lower right corner coordinate 1, upper left corner coordinate 2 and lower right corner coordinate 2), and the C subjected to parallel computation is used for calculating the C11、C12、C21、C22And is transmitted to the corresponding interface position.
Step S702, calculating the Manhattan distance of the corresponding interface position;
subsequently, manhattan distances corresponding to the 4 points are obtained.
In step S703, if the point distance of the coordinate corresponding to the interface position is the closest, the building elements have a positive relationship, and the examination rule is satisfied.
If the upper left corner point of the front face is nearest, a positive relationship exists between the building components, otherwise, the positive relationship does not exist, and if the positive relationship exists, the image examination rule is met.
Therefore, judgment is carried out through a preset logic rule function, whether the requirement of the picture examination rule among the building components is met or not can be obtained, and the picture examination efficiency is improved.
The embodiments of the present application are described in further detail below by way of specific examples.
Obtaining a building drawing to be checked, calling a pre-configured examination rule according to the building drawing, wherein the examination rule is exemplarily that an entrance door cannot be over against a bathroom door, and drawing name information of the entrance door, the bathroom door and the like and identifying the entrance door and the bathroom door on the building drawing;
positioning the drawn entrance door and the drawn toilet door for the building drawing, and identifying texts attached to the entrance door and the toilet door to obtain name information (the entrance door and the toilet door) in the building drawing, and an entrance door image, a toilet door image coordinate and a toilet door image coordinate corresponding to target name information in the name information;
performing target detection on the building component image to obtain an entrance door graph and a bathroom door graph in the building component image;
respectively carrying out contour fitting on the entrance door graph and the toilet door graph to obtain an entrance door geometric graph and an entrance door geometric graph coordinate corresponding to the entrance door graph and a toilet door geometric graph coordinate corresponding to the toilet door graph;
calling a pre-configured examination rule in the building drawing to be examined, calculating whether the geometric figure coordinate of the entrance door and the geometric figure coordinate of the toilet door accord with the logic rule according to the logic rule that the entrance door cannot be over against the toilet door, wherein the logic rule indicates that the entrance door and the toilet door accord with the logic rule, if the entrance door and the toilet door accord with the logic rule indicated by the examination rule, the building drawing to be examined is qualified, and if not, the building drawing to be examined is unqualified.
Wherein, the logic rule here can call tools in anaconda environment through opnecv python, and convert "the entrance door can not face the toilet door" into judging whether two rectangles face each other; and (4) obtaining the maximum and minimum x and y coordinates by using a transfer function, and judging the direction by the diagonal slope. Judging whether interference exists or not, if so, further judging whether the interference is positive interference or not (the interference means that projection overlapping relation exists between the interference and a certain direction parallel to the rectangular edge relative to the rectangular edge), if so, judging that two targets are in direct-facing relation, indicating that the entrance door is directly facing to the toilet door, and the building drawing to be checked is not in accordance with the logic rule indicated by the checking rule; if not, judging that the two targets do not have a positive relationship, and indicating that the entrance door is not positive to the toilet door, wherein the building drawing to be checked accords with the logic rule indicated by the drawing standard information.
It should be noted that although the various steps of the methods in this application are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the shown steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
The following describes embodiments of the apparatus of the present application, which may be used to perform the method for examining the drawings of the construction drawings in the above embodiments of the present application. Fig. 8 schematically shows a structural block diagram of a drawing examination device of a construction drawing provided by an embodiment of the application. As shown in fig. 8, the map viewing apparatus 800 includes:
an obtaining module 801, configured to obtain a building drawing to be checked;
the identification module 802 is used for identifying a building component in a building drawing to be checked, wherein the building component comprises a plurality of part structures forming the building drawing;
the conversion module 803 is used for vectorizing the position coordinates corresponding to the building element to form matrix coordinates;
the operation module 804 is used for performing parallel operation on the matrix coordinates of the corresponding building components according to the logical relationship among the preset objects;
the result module 805 is configured to transmit the parallel operation result to an interface position corresponding to a preset logic rule function, and perform rule calculation to generate a diagram examination result, where the diagram examination result is used to indicate whether the building element meets a diagram examination rule.
In some embodiments of the application, based on the above technical solution, the identification module is further configured to obtain image information in the construction drawing to be checked; splitting the image information to obtain at least one rectangular frame; obtaining the coordinates of each vertex of at least one rectangular frame; and identifying the building element corresponding to each rectangular frame according to the coordinates of each vertex of at least one rectangular frame.
In some embodiments of the application, based on the above technical solution, the identification module is further configured to obtain text information in the construction drawing to be checked; determining the category of each building component according to the text information; and carrying out contour fitting on the building component to determine the spatial range of the building component.
In some embodiments of the present application, based on the above technical solution, the building element includes a wall, and the identification module is further configured to perform edge contour extraction on a contour of the wall; and performing polygon fitting processing based on the edge profile, and obtaining a processed wall profile from the fitted polygon to obtain the space range of the building element.
In some embodiments of the application, based on the above technical solution, the identification module is further configured to, if there are repeated rectangular frame coordinates, select at least two rectangular frames corresponding to the repeated rectangular frame coordinates; and performing spatial analysis on the at least two rectangular frames to determine that the at least two rectangular frames are two building components each other.
In some embodiments of the present application, based on the above technical solution, the logic rule function is preset as an interference function, and the result module is further configured to transmit the parallel operation result to an interface position of the interference function; obtaining a corresponding two-dimensional coordinate value through a conversion function; obtaining the overlapping relation of the building components according to the two-dimensional coordinate values; if the two-dimensional coordinate values are intersected, the building components are in an overlapping relationship, and the examination rule is met.
In some embodiments of the present application, based on the above technical solution, the logic rule function is preset as a facing function, and the result module is further configured to transmit the parallel operation result to an interface position of the facing function; calculating the Manhattan distance of the corresponding interface position; if the point distance of the coordinate corresponding to the interface position is nearest, the building components have a positive relationship, and the examination rule is met.
The specific details of the image examination device of the construction drawing provided in each embodiment of the present application have been described in detail in the corresponding method embodiment, and are not described herein again.
Fig. 9 schematically shows a structural block diagram of a computer system of an electronic device for implementing the embodiment of the present application.
It should be noted that the computer system 900 of the electronic device shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiments.
As shown in fig. 9, the computer system 900 includes a Central Processing Unit 901 (CPU) that can perform various appropriate actions and processes in accordance with a program stored in a Read-Only Memory 902 (ROM) or a program loaded from a storage section 908 into a Random Access Memory 903 (RAM). In the random access memory 903, various programs and data necessary for system operation are also stored. The cpu 901, the rom 902 and the ram 903 are connected to each other via a bus 904. An Input/Output interface 905(Input/Output interface, i.e., I/O interface) is also connected to the bus 904.
The following components are connected to the input/output interface 905: an input portion 906 including a keyboard, a mouse, and the like; an output section 907 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage portion 908 including a hard disk and the like; and a communication section 909 including a network interface card such as a local area network card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The driver 910 is also connected to the input/output interface 905 as necessary. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 910 as necessary, so that a computer program read out therefrom is mounted into the storage section 908 as necessary.
In particular, according to embodiments of the present application, the processes described in the various method flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 909, and/or installed from the removable medium 911. The computer program, when executed by the central processor 901, performs various functions defined in the system of the present application.
It should be noted that the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present application.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A method for examining a construction drawing, which is characterized by comprising the following steps:
obtaining a building drawing to be checked;
identifying a building component in the building drawing to be audited, wherein the building component comprises a plurality of part structures forming the building drawing;
vectorizing the position coordinates corresponding to the building element to form matrix coordinates;
performing parallel operation on the corresponding matrix coordinates of the building components according to the logical relationship between preset objects;
and transmitting the parallel operation result into an interface position corresponding to a preset logic rule function, and performing rule calculation to generate a diagram examination result, wherein the diagram examination result is used for indicating whether the building component meets the diagram examination rule.
2. The method for reviewing the construction drawing according to claim 1, wherein the identifying the construction element in the construction drawing to be reviewed comprises:
acquiring image information in the construction drawing to be checked;
splitting the image information to obtain at least one rectangular frame;
obtaining coordinates of each vertex of the at least one rectangular frame;
and identifying the building element corresponding to each rectangular frame according to the coordinates of each vertex of the at least one rectangular frame.
3. The method for reviewing the construction drawing according to claim 2, wherein the identifying the construction element in the construction drawing to be reviewed, further comprises:
acquiring character information in the construction drawing to be checked;
determining the category of each building component according to the text information;
and carrying out contour fitting on the building component, and determining the spatial range of the building component.
4. The method for reviewing a construction drawing according to claim 3, wherein the building element comprises a wall, and the contour fitting the building element to determine the spatial extent of the building element comprises:
extracting the edge contour of the wall;
and performing polygon fitting processing based on the edge profile, and obtaining a processed wall profile from the fitted polygon to obtain the spatial range of the building element.
5. The method for reviewing the construction drawing according to claim 2, wherein the identifying the construction element in the construction drawing to be reviewed, further comprises:
if repeated rectangular frame coordinates exist, selecting at least two rectangular frames corresponding to the repeated rectangular frame coordinates;
and performing spatial analysis on the at least two rectangular frames to determine that the at least two rectangular frames are two building components each other.
6. The method according to claim 1, wherein the preset logic rule function is an interference function, the parallel operation result is transmitted to an interface position corresponding to the preset logic rule function, and rule calculation is performed to generate the map-examination result, and the method comprises:
transmitting the parallel operation result into an interface position of the interference function;
obtaining a corresponding two-dimensional coordinate value through a conversion function;
obtaining the overlapping relation of the building components according to the two-dimensional coordinate values;
if the two-dimensional coordinate values are intersected, the building components are represented to be in an overlapping relation, and the examination rule is met.
7. The method for reviewing the architectural drawing according to claim 1, wherein the preset logic rule function is a positive facing function, the parallel operation result is transmitted to an interface position corresponding to the preset logic rule function, and the rule calculation is performed to generate the review result, and the method comprises the following steps:
transmitting the parallel operation result to the interface position of the just-facing function;
calculating the Manhattan distance of the corresponding interface position;
if the point distance of the coordinate corresponding to the interface position is nearest, the building components are in a positive-facing relationship, and the examination rule is met.
8. An apparatus for reviewing construction drawings, the apparatus comprising:
the acquisition module is used for acquiring the construction drawing to be checked;
the identification module is used for identifying the building component in the building drawing to be checked, and the building component comprises a plurality of part structures forming the building drawing;
the conversion module is used for vectorizing the position coordinates corresponding to the building components to form matrix coordinates;
the operation module is used for performing parallel operation on the corresponding matrix coordinates of the building components according to the logical relationship among the preset objects;
and the result module is used for transmitting the parallel operation result into an interface position corresponding to a preset logic rule function and carrying out rule calculation so as to generate a diagram examination result, wherein the diagram examination result is used for indicating whether the building component meets the diagram examination rule or not.
9. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of reviewing a construction drawing according to any one of claims 1 to 7.
10. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of reviewing the construction drawing of any one of claims 1 to 7 via execution of the executable instructions.
CN202110945674.9A 2021-08-16 2021-08-16 Method and device for examining architectural drawings, computer readable medium and electronic equipment Pending CN113673413A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110945674.9A CN113673413A (en) 2021-08-16 2021-08-16 Method and device for examining architectural drawings, computer readable medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110945674.9A CN113673413A (en) 2021-08-16 2021-08-16 Method and device for examining architectural drawings, computer readable medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN113673413A true CN113673413A (en) 2021-11-19

Family

ID=78543380

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110945674.9A Pending CN113673413A (en) 2021-08-16 2021-08-16 Method and device for examining architectural drawings, computer readable medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113673413A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114265378A (en) * 2021-12-22 2022-04-01 中国核动力研究设计院 Element layout and connection line processing method of algorithm page in DCS logic algorithm chart
CN114528628A (en) * 2022-02-21 2022-05-24 北京构力科技有限公司 Building auditing method, device, equipment and medium
CN117711011A (en) * 2024-02-06 2024-03-15 航天宏图信息技术股份有限公司 Method, device, equipment and medium for checking traffic building information in map

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108564300A (en) * 2018-04-26 2018-09-21 福建积微科技有限公司 A kind of efficiently DWG drawings based on flow engine cooperate with school to examine method online
CN108875599A (en) * 2018-05-30 2018-11-23 成都小智审图科技有限公司 A kind of identification check of drawings method of building trade ENGINEERING CAD drawing
WO2020177453A1 (en) * 2019-03-07 2020-09-10 北京海益同展信息科技有限公司 Method and apparatus for constructing floor plan based on uwb technology
CN111783562A (en) * 2020-06-12 2020-10-16 万翼科技有限公司 Intelligent image examination method and related device
CN111832447A (en) * 2020-06-30 2020-10-27 万翼科技有限公司 Building drawing component identification method, electronic equipment and related product
CN112990042A (en) * 2021-03-25 2021-06-18 北京百度网讯科技有限公司 Image annotation auditing method, device, equipment, storage medium and program product

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108564300A (en) * 2018-04-26 2018-09-21 福建积微科技有限公司 A kind of efficiently DWG drawings based on flow engine cooperate with school to examine method online
CN108875599A (en) * 2018-05-30 2018-11-23 成都小智审图科技有限公司 A kind of identification check of drawings method of building trade ENGINEERING CAD drawing
WO2020177453A1 (en) * 2019-03-07 2020-09-10 北京海益同展信息科技有限公司 Method and apparatus for constructing floor plan based on uwb technology
CN111783562A (en) * 2020-06-12 2020-10-16 万翼科技有限公司 Intelligent image examination method and related device
CN111832447A (en) * 2020-06-30 2020-10-27 万翼科技有限公司 Building drawing component identification method, electronic equipment and related product
CN112990042A (en) * 2021-03-25 2021-06-18 北京百度网讯科技有限公司 Image annotation auditing method, device, equipment, storage medium and program product

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈永辉;姜萌;: "基于AutoCAD的产品图纸审核软件开发", 机械设计与制造, no. 08 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114265378A (en) * 2021-12-22 2022-04-01 中国核动力研究设计院 Element layout and connection line processing method of algorithm page in DCS logic algorithm chart
CN114528628A (en) * 2022-02-21 2022-05-24 北京构力科技有限公司 Building auditing method, device, equipment and medium
CN117711011A (en) * 2024-02-06 2024-03-15 航天宏图信息技术股份有限公司 Method, device, equipment and medium for checking traffic building information in map

Similar Documents

Publication Publication Date Title
CN113673413A (en) Method and device for examining architectural drawings, computer readable medium and electronic equipment
CN109447154B (en) Picture similarity detection method, device, medium and electronic equipment
CN114550177B (en) Image processing method, text recognition method and device
CN112016638B (en) Method, device and equipment for identifying steel bar cluster and storage medium
US10783643B1 (en) Segmentation-based damage detection
CN111985306A (en) OCR (optical character recognition) and information extraction method applied to documents in medical field
CN113674421B (en) 3D target detection method, model training method, related device and electronic equipment
CN113592886B (en) Drawing examining method and device for building drawing, electronic equipment and medium
CN110414502B (en) Image processing method and device, electronic equipment and computer readable medium
US20220351398A1 (en) Depth detection method, method for training depth estimation branch network, electronic device, and storage medium
CN110910375A (en) Detection model training method, device, equipment and medium based on semi-supervised learning
CN116844177A (en) Table identification method, apparatus, device and storage medium
CN114972659A (en) Method and system for converting two-dimensional drawing into three-dimensional model for drawing examination
US11881044B2 (en) Method and apparatus for processing image, device and storage medium
CN114359932A (en) Text detection method, text recognition method and text recognition device
CN114445825A (en) Character detection method and device, electronic equipment and storage medium
CN111985471A (en) License plate positioning method and device and storage medium
CN115620321B (en) Table identification method and device, electronic equipment and storage medium
EP4207072A1 (en) Three-dimensional data augmentation method, model training and detection method, device, and autonomous vehicle
CN113658195B (en) Image segmentation method and device and electronic equipment
CN112801620B (en) Engineering information processing method, device, equipment and storage medium
CN109598683A (en) Image display method, apparatus and computer readable storage medium
CN112861940A (en) Binocular disparity estimation method, model training method and related equipment
CN111709955A (en) Image segmentation inspection method, device, terminal and storage medium
CN115497112B (en) Form recognition method, form recognition device, form recognition equipment and storage medium

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