Substation engineering civil engineering drawing examination method
By establishing a database of drawing audit standards and using image processing technology to identify and mark drawings, the time-consuming and labor-consuming problem of manual review is solved, and efficient and accurate drawing review and electronic document generation are achieved.
Patent Information
- Application Number
- CN202411641668.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2025-04-25
AI Technical Summary
In the prior art, drawing review relies on manual labor, which consumes a lot of manpower, financial resources and time, and is prone to omissions, and cannot be marked directly on electronic drawings.
By establishing an audit database for drawing audit standards, entering and scanning the drawings to be reviewed, using basic Hough transformation and optical character recognition technology to identify and mark the drawings, self-inspecting and comparing review, and generating an electronic document summary.
It improves the accuracy and efficiency of drawing review, reduces the investment in manpower and financial resources, shortens the review time, and liberates labor.
Smart Images

Figure CN119886101A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a drawing review technology, and in particular to a substation engineering civil engineering drawing review method. Background Art
[0002] In order to improve review efficiency, ensure review quality, promote design optimization, and strengthen project management, it is necessary to review the contents of drawings item by item in accordance with relevant specifications. Currently, drawing review mainly relies on manual review, and manual review usually requires qualified and experienced people to review the drawings. Although manual review can complete the drawing review, it has the following disadvantages:
[0003] First, a complete review of a drawing requires multiple reviews and rechecks before the review task can be completed, which not only consumes a lot of manpower, financial resources and time, but is also prone to omissions;
[0004] Second, the problems found in manual review cannot be directly marked on the electronic drawings. The review and record personnel need to record them in real time and organize them into electronic document summaries, which to a certain extent requires more time and effort. Summary of the invention
[0005] Purpose of the invention: In view of the above problems, the purpose of the present invention is to provide a method for reviewing civil engineering drawings of a substation project.
[0006] Technical solution: A method for reviewing civil engineering drawings of a substation project of the present invention comprises:
[0007] Establish a review database including drawing review standards;
[0008] Input and scan drawings for review;
[0009] Conduct self-inspection and review of drawings to be reviewed;
[0010] Use the drawing review standards in the review database to conduct a comparative review of the drawings to be reviewed, and mark and save the different points in the review results.
[0011] Furthermore, inputting and scanning drawings for review include:
[0012] The drawings are converted into PDF and DWG formats in turn and stored. The line segments in the drawings are identified using basic Hough transform, and then the text in the drawings is identified using optical character recognition technology.
[0013] Furthermore, using the basic Hough transform to identify line segments in the drawing includes:
[0014] Construct the accumulation matrix H and assign all elements in the accumulation matrix to 0;
[0015] Detect the coordinates (x, y) of each boundary point in the drawing, convert the point coordinates in the rectangular coordinate system into a straight line in the Hough space, and increase the count at the corresponding position in the accumulation matrix. The conversion formula is:
[0016] ρ=xcosθ+ysinθ
[0017] Where ρ represents the distance from the origin to the straight line in the polar coordinate system, θ represents the angle between the straight line and the x-axis, -90≤θ≤180;
[0018] The formula for increasing the count in the accumulation matrix H is:
[0019] H(θ,ρ)=H(θ,ρ)+1
[0020] Find the maximum value in the cumulative matrix, and the corresponding position of the maximum value is the line segment in the drawing.
[0021] Furthermore, the text in the drawing is recognized by optical character recognition technology, including:
[0022] Convert the color drawings into grayscale images and black-and-white images in turn, remove the noise in the black-and-white images, and adjust the direction of the black-and-white images so that the text lines in the black-and-white images remain horizontal or vertical;
[0023] Use edge detection algorithm to identify text edges and delineate text areas based on text edges;
[0024] Use character segmentation methods to segment text regions into individual characters or words;
[0025] Extract features of characters or words;
[0026] Compare the extracted features with the predefined character templates and use the classifier to classify and identify the features;
[0027] Use tools to correct recognition errors, adjust the character layout format according to the context, remove redundant characters or spaces in the recognition results, and obtain the text in the drawing.
[0028] Furthermore, the self-examination and review of the drawings to be reviewed includes:
[0029] Grab the drawing reference value;
[0030] Search all parameters in the current drawing;
[0031] Determine the consistency between the parameters and the reference values. If they are the same, save the current drawing; otherwise, mark and record the differences, and the current drawing will not be included in the subsequent comparison and review.
[0032] Furthermore, the drawings to be reviewed are compared and reviewed using the drawing review standards in the review database, and the different points in the review results are marked and saved, including:
[0033] Select the drawing file;
[0034] Select the comparison library type;
[0035] Capture all parameters in the current drawing;
[0036] Capture the drawing review standards in the review database and compare them with the current drawings;
[0037] Determine whether the current drawing content meets the requirements of the drawing review standards. If yes, save the current drawing; if not, mark and record the differences.
[0038] Furthermore, marking and recording the differences include:
[0039] Record in units of one line in the text. When the content of a line in two texts is different, mark it with the line number and the specific content of the line, and generate an electronic document with the marked content.
[0040] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages:
[0041] 1. The present invention ensures the accuracy of drawing content review by self-checking the drawing content and comparing the drawings that meet the self-check requirements with the review standards in the library, thereby reducing the investment of manpower and financial expenditure, and reducing the review time;
[0042] 2. The present invention timely marks the review contents of drawings and automatically generates electronic documents to summarize the marked contents, thereby freeing up manual work to a certain extent and improving review efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 It is a flow chart of a method for reviewing civil engineering drawings of a substation project;
[0044] Figure 2 Flow chart for self-checking and reviewing drawings;
[0045] Figure 3 Flowchart for reviewing drawings using the review database. DETAILED DESCRIPTION
[0046] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0047] The present embodiment describes a method for reviewing civil engineering drawings of a substation project, which method includes at least the following steps 1 to 4, as shown in the flow chart. Figure 1 shown.
[0048] Step 1: Establish a review database including drawing review standards.
[0049] The drawing review standards include relevant laws, regulations and standards for drawing review. The programming language SQL is used to establish a review database that includes relevant laws, regulations and standards for drawing review.
[0050] Step 2: Enter and scan the drawings to be reviewed.
[0051] Furthermore, inputting and scanning drawings for review include:
[0052] The drawings are converted into PDF and DWG formats in turn and stored. The line segments in the drawings are identified using basic Hough transform, and then the text in the drawings is identified using optical character recognition technology.
[0053] In one example, identifying line segments in a drawing using a basic Hough transform includes:
[0054] Construct the accumulation matrix H and assign all elements in the accumulation matrix to 0;
[0055] Detect the coordinates (x, y) of each boundary point in the drawing, convert the point coordinates in the rectangular coordinate system into a straight line in the Hough space, and increase the count at the corresponding position in the accumulation matrix. The conversion formula is:
[0056] ρ=xcosθ+ysinθ
[0057] Where ρ represents the distance from the origin to the straight line in the polar coordinate system, θ represents the angle between the straight line and the x-axis, -90≤θ≤180;
[0058] The formula for increasing the count in the accumulation matrix H is:
[0059] H(θ,ρ)=H(θ,ρ)+1
[0060] Find the maximum value in the cumulative matrix, and the corresponding position of the maximum value is the line segment in the drawing.
[0061] In one example, recognizing text in the drawing by optical character recognition technology includes:
[0062] Convert the color drawings into grayscale images and black and white images in turn, remove noise in the black and white images, such as spots and stripes, to improve the image clarity, and adjust the direction of the black and white images to ensure that the text lines in the black and white images remain horizontal or vertical;
[0063] Use edge detection algorithm to identify text edges, delineate text regions based on text edges, and regard connected regions in edge detection results as potential text regions;
[0064] Use character segmentation methods to segment text regions into individual characters or words;
[0065] Extract features of characters or words;
[0066] Compare the extracted features with the predefined character templates and use the classifier to classify and identify the features;
[0067] Use tools to correct recognition errors, adjust the character layout format according to the context, remove redundant characters or spaces in the recognition results, and obtain the text in the drawing.
[0068] When detecting text areas, the trained deep learning model can be used to directly detect text areas to improve the accuracy and efficiency of detection.
[0069] Character segmentation methods include projection analysis, connected domain analysis and deep learning models. Projection analysis refers to analyzing the blank areas between characters through horizontal or vertical projection to achieve character segmentation; connected domain analysis refers to segmentation based on the connectivity features of characters; deep learning models use deep learning models such as convolutional neural networks to perform character segmentation.
[0070] When extracting the features of characters or words, you can use text feature extraction methods to extract features such as character shape, size, direction, texture, etc., and use deep learning models such as convolutional neural networks to automatically learn high-level features of characters.
[0071] Step 3: Conduct self-inspection and review of the drawings to be reviewed.
[0072] Furthermore, if Figure 2 As shown, the self-inspection and review of the drawings to be reviewed includes:
[0073] Select the drawing file to be self-reviewed and grab the drawing reference value;
[0074] Start self-checking and search all parameters in the drawing to be self-checked;
[0075] Determine the consistency between the parameters and the reference values. If they are the same, save the current drawing; otherwise, mark and record the differences, and the current drawing will not be included in the subsequent comparison and review.
[0076] Step 4: Use the drawing review standards in the review database to conduct a comparative review of the drawings to be reviewed, and mark and save the different points in the review results.
[0077] Furthermore, if Figure 3As shown in the figure, the drawings to be reviewed are compared and reviewed using the drawing review standards in the review database, and the different points in the review results are marked and saved, including:
[0078] Select the drawing file;
[0079] Select the comparison library type;
[0080] Capture all parameters in the current drawing;
[0081] Capture the drawing review standards in the review database and compare them with the current drawings;
[0082] Determine whether the current drawing content meets the requirements of the drawing review standards. If yes, save the current drawing; if not, mark and record the differences.
[0083] By way of example, marking and recording differences includes:
[0084] The records are made in units of one line in the text. When the content of a line in two texts is different, it is marked with the line number and the specific content of the line. The marked content is generated into an electronic document using the function of building marking rules and the function of generating document content.
[0085] For the comparison of two text files A and B, first use the line number. When a line is found to be different, the line number can be marked, and then the word "to" is used to indicate the change from the content in file A to the content in file B. Assuming that the 5th line of file A is "this is the old content" and the 5th line of file B is "this is the new content", the mark can be "5. This is the old content; to This is the new content;", so as to mark the differences between the two files. Then the marked content is used to generate a brief electronic document using the function of building marking rules and the function of generating document content.
[0086] Furthermore, constructing a marking rule function includes the following steps:
[0087] Step 401: define a function MarkDiff(A, B), which will return a marked text content array; A and B represent two texts, the total number of lines of text A and text B are n and m respectively, i represents the number of lines in text A and B, and the value range of i is [1, min(n, m)];
[0088] Step 402: Initialize an empty array DiffArray = II;
[0089] Step 403: determine whether the text content Ai of the i-th line in the text A is the same as the text content Bi of the i-th line in the text B. If Ai=Bi, no mark is made and Ai or Bi is added to the array DiffArray.
[0090] If Ai ≠ Bi, then add the marked content "i.Ai; to Bi;" to the array DiffArray;
[0091] Step 404: Determine the relative sizes of n and m. If n > m, for i = m + 1 to n, add "i.Ai; to (no corresponding row)" to the array DiffArray;
[0092] If n < m, for j = n + 1 to m, add "j.(no corresponding row) to Bj" to the array DiffArray;
[0093] Step 405: Add the content in the array DiffArray to the function MarkDiff(A, B).
[0094] Further, the function for generating the document content includes the following steps:
[0095] Step 501: Define a function GenerateDoc(DiffArray) which will convert the marked content array into electronic document content;
[0096] Step 502: Initialize an empty string DocContent = IIII;
[0097] Step 503: Define k to represent the length of the array, where the range of k is k = 0 to k = len(DiffArray) - 1;
[0098] Step 504: Add the array DiffArray to DocContent and add a line break "\n";
[0099] Step 505: Return DocContent, which is the content of the generated brief electronic document, and it can be saved as a.txt or other text format file.
Claims
1. A method for reviewing civil engineering drawings of a substation project, characterized in that: include: Establish a review database including drawing review standards; Input and scan drawings for review; Conduct self-inspection and review of drawings to be reviewed; Use the drawing review standards in the review database to conduct a comparative review of the drawings to be reviewed, and mark and save the different points in the review results.
2. A method for reviewing civil engineering drawings of a substation project according to claim 1, characterized in that: Drawings entered and scanned for review include: The drawings are converted into PDF and DWG formats in turn and stored. The line segments in the drawings are identified using basic Hough transform, and then the text in the drawings is identified using optical character recognition technology.
3. A method for reviewing civil engineering drawings of a substation project according to claim 2, characterized in that: Using basic Hough transform to identify line segments in drawings includes: Construct the accumulation matrix H and assign all elements in the accumulation matrix to 0; Detect the coordinates (x, y) of each boundary point in the drawing, convert the point coordinates in the rectangular coordinate system into a straight line in the Hough space, and increase the count at the corresponding position in the accumulation matrix. The conversion formula is: ρ=xcosθ+ysinθ Where ρ represents the distance from the origin to the straight line in the polar coordinate system, θ represents the angle between the straight line and the x-axis, -90≤θ≤180; The formula for increasing the count in the accumulation matrix H is: H(θ,ρ)=H(θ,ρ)+1 Find the maximum value in the cumulative matrix, and the corresponding position of the maximum value is the line segment in the drawing.
4. A method for reviewing civil engineering drawings of a substation project according to claim 3, characterized in that: Then, the text in the drawing is recognized by optical character recognition technology, including: Convert the color drawings into grayscale images and black-and-white images in turn, remove the noise in the black-and-white images, and adjust the direction of the black-and-white images so that the text lines in the black-and-white images remain horizontal or vertical; Use edge detection algorithm to identify text edges and delineate text areas based on text edges; Use character segmentation methods to segment text regions into individual characters or words; Extract features of characters or words; Compare the extracted features with the predefined character templates and use the classifier to classify and identify the features; Use tools to correct recognition errors, adjust the character layout format according to the context, remove redundant characters or spaces in the recognition results, and obtain the text in the drawing.
5. A method for reviewing civil engineering drawings of a substation project according to claim 1, characterized in that: The self-inspection and review of the drawings to be reviewed includes: Grab the drawing reference value; Search all parameters in the current drawing; Determine the consistency between the parameters and the reference values. If they are the same, save the current drawing; otherwise, mark and record the differences, and the current drawing will not be included in the subsequent comparison and review.
6. A method for reviewing civil engineering drawings of a substation project according to claim 5, characterized in that: Use the drawing review standards in the review database to conduct comparative review of the drawings to be reviewed, and mark and save the different points in the review results, including: Select the drawing file; Select the comparison library type; Capture all parameters in the current drawing; Capture the drawing review standards in the review database and compare them with the current drawings; Determine whether the current drawing content meets the requirements of the drawing review standards. If so, save the current drawing; if not, mark and record the differences.
7. A method for reviewing civil engineering drawings of a substation project according to claim 5 or 6, characterized in that: Mark and record differences including: Record in units of one line in the text. When the content of a line in two texts is different, mark it with the line number and the specific content of the line, and generate an electronic document with the marked content.