CN114973287A - Information extraction method, system, storage medium and equipment based on construction drawing - Google Patents

Information extraction method, system, storage medium and equipment based on construction drawing Download PDF

Info

Publication number
CN114973287A
CN114973287A CN202210396398.XA CN202210396398A CN114973287A CN 114973287 A CN114973287 A CN 114973287A CN 202210396398 A CN202210396398 A CN 202210396398A CN 114973287 A CN114973287 A CN 114973287A
Authority
CN
China
Prior art keywords
column
construction
target
drawings
target building
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
CN202210396398.XA
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.)
Jiangxi Shaoke Intelligent Construction Technology Co ltd
Original Assignee
Jiangxi Shaoke Intelligent Construction Technology Co ltd
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 Jiangxi Shaoke Intelligent Construction Technology Co ltd filed Critical Jiangxi Shaoke Intelligent Construction Technology Co ltd
Priority to CN202210396398.XA priority Critical patent/CN114973287A/en
Publication of CN114973287A publication Critical patent/CN114973287A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses an information extraction method, a system, a storage medium and equipment based on construction drawings, wherein the method comprises the following steps: acquiring a preset format file in which drawings are stored, and analyzing the preset format file to acquire a plurality of construction drawings; analyzing the plurality of building drawings to determine a target building drawing where the design specification is located from the plurality of building drawings; identifying the target building drawing to obtain the column number and the column position of the target building drawing; and extracting information of the target building drawing according to the number of the columns and the column positions according to a preset sequence. The invention solves the problem of low accuracy rate when information in the design specification in the construction drawing is extracted in the prior art.

Description

Information extraction method, system, storage medium and equipment based on construction drawing
Technical Field
The invention relates to the technical field of information extraction, in particular to an information extraction method, an information extraction system, a storage medium and information extraction equipment based on a construction drawing.
Background
With economic development and urbanization, a large number of CAD (computer-aided design) architectural design drawings are generated for each urban building project. Whether the manually designed and drawn CAD drawing accords with the national building examination specification or not needs an experienced engineer to manually examine at present. However, due to the diversity of the CAD engineering drawings and the complexity of the examination rules, the problems of large workload, high cost, low efficiency, difficulty in avoiding missed examination and the like exist in manual examination, and further problems of construction period delay, fund waste and the like are caused. On the other hand, with the development of artificial intelligence technology, artificial intelligence has been able to solve problems in relatively complicated industrial fields. The artificial intelligence technology is adopted to improve the accuracy and efficiency of the drawing examination, the time and personnel for checking the drawing can be reduced through intelligent drawing examination, the time for closed drawing examination is shortened, the labor cost is reduced, the drawing quality is improved, and the construction period delay and the fund turnover cost caused by the drawing quality problem in the construction stage are reduced.
The design description is an important component of a CAD drawing, is a compendium of a construction drawing, is a description of drawings, volume sheets and practices which cannot be fully expressed, and is a description of a solution to a problem concerned by an examining organization. In the strong bar checking process, a diagram examiner needs to judge whether the design of the drawing accords with the national building examination standard according to the design description, and if so, judges whether to design according to design data identified by power supply, communication and fire departments and the like according to design basis. Therefore, automatic extraction of design specifications is an important step in intelligent map-review.
In the prior art, how to automatically extract a design specification in a CAD drawing has development difficulty. Because the computer can not automatically acquire the column-dividing typesetting information and most computers read the design specifications in order in a fixed column-dividing mode, the problem of inaccurate information extraction of the building drawing is easily caused by non-uniform column-dividing typesetting habits of different design houses and different designers and inconsistent writing templates of the design specifications.
Disclosure of Invention
In view of the above, the present invention provides an information extraction method, system, storage medium and device based on an architectural drawing, and aims to solve the problem of low accuracy in extracting information in a design specification in an architectural drawing in the prior art.
The embodiment of the invention is realized as follows: an information extraction method based on a construction drawing, the method comprising:
acquiring a preset format file in which a drawing is stored, and analyzing the preset format file to acquire a plurality of construction drawings;
analyzing the plurality of building drawings to determine a target building drawing where the design specification is located from the plurality of building drawings;
identifying the target building drawing to obtain the column number and the column position of the target building drawing;
and extracting information of the target building drawing according to the number of the columns and the column positions according to a preset sequence.
Further, in the information extraction method based on the construction drawing, the step of analyzing the plurality of construction drawings to determine the target construction drawing in which the design specification is located from the plurality of construction drawings includes:
and acquiring the picture name information of the plurality of pieces of building drawings, and determining the target building drawing where the design specification is located according to the picture name information.
Further, in the above information extraction method based on a construction drawing, the step of identifying the target construction drawing to obtain the number of columns and the positions of the columns of the target construction drawing further includes:
and converting the target building drawing into a preset format.
Further, in the information extraction method based on the building drawing, the step of identifying the target building drawing to obtain the column number and the column position of the target building drawing includes:
converting the target building drawing into a gray-scale image, carrying out binary inversion processing on the gray-scale image to obtain a binary image, and acquiring the number of black pixels in each row in the binary image;
creating a blank image with the size consistent with that of the target building drawing, and filling the blank image according to the number of black pixels in each row in the binary image;
and performing reverse binary image processing after performing closed operation on the filled blank image, detecting the image contour after the binary image processing, and determining the number of columns of the target building drawing according to the number of the image contour.
Further, in the method for extracting information based on a building drawing, before the step of performing a closing operation on the filled blank image, performing an inverse binary image process, and detecting an image contour after the binary image process, the step of determining the number of columns of the target building drawing according to the number of the image contour further includes:
and removing burrs and small bridges in the white area in the blank image after the closed operation.
Further, in the information extraction method based on the building drawing, the step of identifying the target building drawing to obtain the column number and the column position of the target building drawing includes:
acquiring a minimum external moment of each image contour, and determining a left lower corner pixel point abscissa and a right lower corner pixel point abscissa of the minimum external moment;
and respectively determining a column division starting position and a column division ending position according to the horizontal coordinate of the pixel point at the lower left corner and the horizontal coordinate of the pixel point at the lower right corner.
Further, the above method for extracting information based on a construction drawing further includes, after the step of determining the column start position and the column end position according to the abscissa of the lower left corner pixel point and the abscissa of the lower right corner pixel point, respectively:
and acquiring intermediate lines of adjacent sides of two adjacent minimum external connection moments, determining the position of a column dividing line according to the intermediate lines, and determining the column dividing position according to the position of the column dividing line, the initial column dividing position and the end column dividing position.
Another object of the present invention is to provide an information extraction system based on construction drawings, the system comprising:
the system comprises a drawing acquisition module, a storage module and a display module, wherein the drawing acquisition module is used for acquiring a preset format file in which a drawing is stored, and analyzing the preset format file to acquire a plurality of building drawings;
the drawing analysis module is used for analyzing the plurality of construction drawings so as to determine a target construction drawing where the design specification is located from the plurality of construction drawings;
the identification module is used for identifying the target building drawing to obtain the column number and the column position of the target building drawing;
and the information extraction module is used for extracting the information of the target building drawing according to the number of the columns and the column positions in a preset sequence.
It is a further object of embodiments of the invention to provide a readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the steps of the method as described above.
It is a further object of embodiments of the invention to provide a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method as described above when executing the program.
The method comprises the steps of analyzing a preset format file stored with drawings to obtain a plurality of building drawings, analyzing the plurality of building drawings to determine a target building drawing containing a design specification, identifying the target building drawing to obtain the column number and the column position of the target building drawing, extracting information in the design specification according to the column number and the column position preset sequence, and under the condition that the columns of the design specification are not identical, accurately identifying the column position and extracting the content in the drawing according to the column position, so that the problem of low accuracy in extracting the information in the design specification in the building drawing in the prior art is solved.
Drawings
Fig. 1 is a flowchart of an information extraction method based on a construction drawing according to a first embodiment of the present invention;
fig. 2 is a flowchart of an information extraction method based on a construction drawing according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a grayscale map in an information extraction method based on a construction drawing according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of the grayscale image of FIG. 3 converted into a binary image;
fig. 5 is a schematic diagram of a blank image in the information extraction method based on the construction drawing according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of FIG. 5 after reverse binary image processing;
fig. 7 is a schematic diagram of image contour detection in an information extraction method based on a construction drawing according to an embodiment of the present invention;
FIG. 8 is a schematic view of FIG. 3 after being sectioned;
fig. 9 is a block diagram showing the construction of an information extraction system based on construction drawings according to a third embodiment of the present invention.
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully hereinafter with reference to the accompanying drawings. Several embodiments of the invention are presented in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like as used herein are for illustrative purposes only.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
How to improve the accuracy of extracting the information in the design specification in the construction drawing will be described in detail below with reference to specific embodiments and the accompanying drawings.
Example one
Referring to fig. 1, a method for extracting information based on a construction drawing according to a first embodiment of the present invention is shown, and the method includes steps S10 to S13.
And step S10, acquiring a preset format file with the stored drawing, and analyzing the preset format file to acquire a plurality of construction drawings.
Correspondingly, in the embodiment, the preset format file is a DWG format file, the DWG format file is analyzed to obtain the building drawing stored in the DWG format file, and specifically, the DWG format file is analyzed by adopting an ObjectARX tool.
And step S11, analyzing the multiple construction drawings to determine a target construction drawing where the design specification is located from the multiple construction drawings.
Specifically, a DWG-formatted file generally includes drawings such as a design description, an energy saving design, a cross-sectional view, and an elevation view. In the embodiment, information in the design description needs to be extracted, so that a plurality of pieces of construction drawings need to be analyzed to determine the drawing where the design description is located.
More specifically, in some optional embodiments of the present invention, the step of analyzing the multiple pieces of construction drawings to determine the target construction drawing in which the design specification is located from the multiple pieces of construction drawings may specifically include:
and acquiring the picture name information of the plurality of pieces of building drawings, and determining the target building drawing where the design specification is located according to the picture name information.
It can be understood that each drawing is marked with corresponding drawing name information at a fixed position, and the target building drawing where the design description is located can be determined by obtaining the drawing name information on the drawing.
And step S12, identifying the target building drawing to obtain the column number and the column position of the target building drawing.
The information in the partitioned area can be accurately and independently read through the number of the partitions and the specific classification position, and the problem that the read content is inaccurate due to the fuzzy uncertainty of the partition position during reading is avoided.
And step S13, extracting information of the target building drawing according to the number of the columns and the column positions according to a preset sequence.
The preset sequence is the sequence of arranging the characters in the specification, for example, the characters are sequentially arranged from left to right of the pictures, at the moment, the information in the design specification can be extracted according to the sequence from left to right, the initial position of information extraction can be determined according to the number of the columns and the column positions, and the problem that the information extraction of the building drawing is inaccurate easily caused because the column lines cannot be determined due to the fact that the column lines are not considered during extraction is avoided.
In summary, in the information extraction method based on the building drawing in the above embodiment of the present invention, the preset format file in which the drawing is stored is analyzed to obtain multiple building drawings, and the multiple building drawings are analyzed, so as to determine the target building drawing including the design specification, the target building drawing is identified to obtain the number of columns and the column position of the target building drawing, and the information in the design specification is extracted according to the preset sequence of the number of columns and the column position.
Example two
Referring to fig. 2, a method for extracting information based on a construction drawing according to a second embodiment of the present invention is shown, and the method includes steps S20 to S27.
And step S20, acquiring a preset format file with the stored drawing, and analyzing the preset format file to acquire a plurality of construction drawings.
And step S21, analyzing the multiple construction drawings to determine a target construction drawing where the design specification is located from the multiple construction drawings.
And step S22, converting the target building drawing into a grey-scale image, carrying out binary inversion processing on the grey-scale image to obtain a binary image, and acquiring the number of black pixels in each row in the binary image.
After the binary inversion processing is performed on the gray-scale image, as shown in fig. 3, the text of the design description in the design drawing is displayed in black, the background is white, and the number of black pixels in each column in the binary image can be counted according to the column.
In addition, in some optional embodiments of the present invention, in order to facilitate the identification of the target construction drawing, a format of the target construction drawing may be converted before the identification (i.e., before the target construction drawing is converted into the grayscale map), and in this embodiment, the preset format is a JPG format.
And step S23, creating a blank image with the size consistent with that of the target building drawing, and filling the blank image according to the number of black pixels in each column in the binary image.
And creating a blank image with the size consistent with that of the target building drawing, and filling the blank image according to the number of black pixels in each column in the binary image. Specifically, as shown in fig. 4, after filling, the upper part of each column in the blank image is white, and the lower part is black, it can be understood that, as the number of black pixels in a certain column in the figure is more, the more characters are shown in the column, the more the column is unlikely to be a column position; conversely, the fewer black pixels in a row in the figure, the less text appears in the row, and the more likely the column is.
And step S24, performing closed-loop operation on the filled blank image, performing reverse binary image processing, detecting the image contour after the reverse binary image processing, and determining the number of the columns of the target building drawing according to the number of the image contour.
Specifically, as shown in fig. 6, the image contour is detected, at this time, the number of the image contours is the number of the columns of the target building drawing, and the connecting pixels between each image contour can be removed by performing the horizontal and vertical closing operation on the blank image, so that the number and the positions of the columns can be accurately identified.
In addition, in some optional embodiments of the present invention, in order to improve the accuracy of determining the number of columns, the step of performing inverse binary image processing after performing a closing operation on the filled blank image, and detecting an image contour after the binary image processing, and determining the number of columns of the target building drawing according to the number of image contour pieces further includes:
and removing burrs and small bridges in the white area in the blank image after the closed operation.
It can be understood that influence factors such as burrs and small bridges in the white area in the blank image after the closed operation are removed, the accuracy of image contour detection is improved, and the accuracy of column number determination is further improved.
Step S25, obtaining the minimum external moment of each image contour, and determining the horizontal coordinate of the pixel point at the lower left corner and the horizontal coordinate of the pixel point at the lower right corner of the minimum external moment.
The width of the minimum external rectangle is the width of the column, and the abscissa of the pixel point at the lower left corner and the abscissa of the pixel point at the lower right corner can be obtained according to the minimum external rectangle.
And step S26, respectively determining a column start position and a column end position according to the abscissa of the pixel point at the lower left corner and the abscissa of the pixel point at the lower right corner.
Specifically, as shown in fig. 7, the abscissa of the pixel point at the lower left corner of the rectangle is the start position of the column division, and the abscissa of the pixel point at the lower right corner is the end position of the column division.
In addition, in some optional embodiments of the present invention, in order to determine the specific position of the column, after the step of determining the starting position and the ending position of the column according to the abscissa of the pixel point at the lower left corner and the abscissa of the pixel point at the lower right corner respectively, the method further includes:
and acquiring intermediate lines of adjacent sides of two adjacent minimum external connection moments, determining the position of a column dividing line according to the intermediate lines, and determining the column dividing position according to the position of the column dividing line, the initial column dividing position and the end column dividing position.
It can be understood that, specifically, as shown in fig. 8, the specific position of the division can be accurately determined according to the starting position of the division, the ending position of the division, and the position of the dividing line.
And step S27, extracting information of the target building drawing according to the number of the columns and the column positions according to a preset sequence.
In summary, in the information extraction method based on the building drawing in the above embodiment of the present invention, the preset format file in which the drawing is stored is analyzed to obtain multiple building drawings, and the multiple building drawings are analyzed, so as to determine the target building drawing including the design specification, identify the target building drawing to obtain the number of columns and the column position of the target building drawing, and extract the information in the design specification according to the preset sequence of the number of columns and the column position.
EXAMPLE III
Referring to fig. 9, there is shown an information extraction system based on a construction drawing according to a third embodiment of the present invention, the system including:
the system comprises a drawing acquisition module 100, a storage module and a processing module, wherein the drawing acquisition module is used for acquiring a preset format file in which a drawing is stored, and analyzing the preset format file to acquire a plurality of building drawings;
the drawing analysis module 200 is used for analyzing the plurality of building drawings to determine a target building drawing in which the design specification is located from the plurality of building drawings;
the identification module 300 is configured to identify the target building drawing to obtain the column number and the column position of the target building drawing;
and the information extraction module 400 is configured to extract information of the target building drawing according to the number of the columns and the column positions in a preset order.
Further, in the information extraction system based on the construction drawing, the drawing analysis module is specifically configured to:
and acquiring the picture name information of the plurality of pieces of building drawings, and determining the target building drawing where the design specification is located according to the picture name information.
Further, the above information extraction system based on the construction drawing, wherein the system further includes:
and the conversion module is used for converting the target building drawing into a preset format.
Further, the above information extraction system based on construction drawing, wherein the identification module includes:
the arrangement mode acquisition unit is used for converting the target building drawing into a gray-scale image, carrying out binary inversion processing on the gray-scale image to obtain a binary image, and acquiring the number of black pixels in each row in the binary image;
the filling unit is used for creating a blank image with the size consistent with that of the target building drawing and filling the blank image according to the number of black pixels in each row in the binary image;
and the number of columns determining unit is used for performing reverse binary image processing on the filled blank image after closed operation, detecting the image contour after the binary image processing, and determining the number of columns of the target building drawing according to the number of the image contour.
Further, the above information extraction system based on the construction drawing, wherein the identification module further includes:
the coordinate determination unit is used for acquiring the minimum external moment of each image contour and determining the horizontal coordinates of the pixel points at the lower left corner and the lower right corner of the minimum external moment;
and the column position determining unit is used for respectively determining a column starting position and a column ending position according to the horizontal coordinates of the lower left corner pixel points and the horizontal coordinates of the lower right corner pixel points.
Further, the above information extraction system based on the construction drawing, wherein the system further includes:
and the dividing line position acquisition module is used for acquiring the intermediate line of the adjacent sides of the two adjacent minimum external connection moments, determining the dividing line position according to the intermediate line, and determining the dividing position according to the dividing line position, the dividing initial position and the dividing ending position.
Further, the above information extraction system based on the construction drawing, wherein the system further includes:
and the removing module is used for removing burrs and small bridges of the white area in the filled blank image.
The functions or operation steps of the above modules when executed are substantially the same as those of the above method embodiments, and are not described herein again.
In summary, in the above embodiments of the present invention, the preset format file storing the drawing is analyzed to obtain multiple building drawings, and the multiple building drawings are analyzed, so as to determine the target building drawing including the design specification, identify the target building drawing to obtain the number of columns and the column position of the target building drawing, and extract the information in the design specification according to the preset sequence of the number of columns and the column position.
Example four
In another aspect, the present invention further provides a readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the method according to any one of the first to second embodiments.
EXAMPLE five
In another aspect, the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the steps of the method according to any one of the first to second embodiments.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
Those of skill in the art will understand that the logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be viewed as implementing logical functions, can be embodied in any computer-readable storage medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable storage medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable storage medium may even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An information extraction method based on a construction drawing is characterized by comprising the following steps:
acquiring a preset format file in which drawings are stored, and analyzing the preset format file to acquire a plurality of construction drawings;
analyzing the plurality of construction drawings to determine a target construction drawing where the design specification is located from the plurality of construction drawings;
identifying the target building drawing to obtain the column number and the column position of the target building drawing;
and extracting information of the target building drawing according to the number of the columns and the column positions according to a preset sequence.
2. The method for extracting information based on construction drawings as claimed in claim 1, wherein the step of analyzing the plurality of construction drawings to determine the target construction drawing in which the design specification is located from the plurality of construction drawings comprises:
and acquiring the picture name information of the plurality of pieces of building drawings, and determining the target building drawing where the design specification is located according to the picture name information.
3. The method for extracting information based on construction drawing as claimed in claim 1, wherein the step of identifying the target construction drawing to obtain the number of columns and the column position of the target construction drawing further comprises:
and converting the target building drawing into a preset format.
4. The construction drawing-based information extraction method according to claim 3, wherein the step of identifying the target construction drawing to obtain the column number and the column position of the target construction drawing comprises:
converting the target building drawing into a gray-scale image, carrying out binary inversion processing on the gray-scale image to obtain a binary image, and acquiring the number of black pixels in each row in the binary image;
creating a blank image with the size consistent with that of the target building drawing, and filling each row of the blank image in sequence according to the number of black pixels of each row in the binary image;
and performing closed operation on the filled blank image, performing reverse binary image processing, detecting the image contour after the reverse binary image processing, and determining the number of columns of the target building drawing according to the number of the image contours.
5. The information extraction method based on the construction drawing as claimed in claim 4, wherein the step of performing inverse binary image processing after performing the closing operation on the filled blank image, detecting the image contour after the binary image processing, and determining the number of the columns of the target construction drawing according to the number of the image contours further comprises:
and removing burrs and small bridges in the white area in the blank image after the closed operation.
6. The construction drawing-based information extraction method according to claim 4, wherein the step of identifying the target construction drawing to obtain the column number and the column position of the target construction drawing comprises:
acquiring a minimum external moment of each image contour, and determining a left lower corner pixel point abscissa and a right lower corner pixel point abscissa of the minimum external moment;
and respectively determining a column division starting position and a column division ending position according to the horizontal coordinate of the pixel point at the lower left corner and the horizontal coordinate of the pixel point at the lower right corner.
7. The information extraction method based on the construction drawing as set forth in claim 6, wherein the step of determining the column start position and the column end position according to the abscissa of the lower left-hand corner pixel point and the abscissa of the lower right-hand corner pixel point further includes:
and acquiring intermediate lines of adjacent sides of two adjacent minimum external connection moments, determining the position of a column dividing line according to the intermediate lines, and determining the column dividing position according to the position of the column dividing line, the initial column dividing position and the end column dividing position.
8. An information extraction system based on construction drawings, characterized in that the system comprises:
the system comprises a drawing acquisition module, a storage module and a display module, wherein the drawing acquisition module is used for acquiring a preset format file in which a drawing is stored, and analyzing the preset format file to acquire a plurality of building drawings;
the drawing analysis module is used for analyzing the plurality of construction drawings so as to determine a target construction drawing where the design specification is located from the plurality of construction drawings;
the identification module is used for identifying the target building drawing to obtain the column number and the column position of the target building drawing;
and the information extraction module is used for extracting the information of the target building drawing according to the number of the columns and the column positions in a preset sequence.
9. A readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the steps of the method according to any one of claims 1 to 7.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method as claimed in any one of claims 1 to 7 when executing the program.
CN202210396398.XA 2022-04-15 2022-04-15 Information extraction method, system, storage medium and equipment based on construction drawing Pending CN114973287A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210396398.XA CN114973287A (en) 2022-04-15 2022-04-15 Information extraction method, system, storage medium and equipment based on construction drawing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210396398.XA CN114973287A (en) 2022-04-15 2022-04-15 Information extraction method, system, storage medium and equipment based on construction drawing

Publications (1)

Publication Number Publication Date
CN114973287A true CN114973287A (en) 2022-08-30

Family

ID=82977021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210396398.XA Pending CN114973287A (en) 2022-04-15 2022-04-15 Information extraction method, system, storage medium and equipment based on construction drawing

Country Status (1)

Country Link
CN (1) CN114973287A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117390812A (en) * 2023-12-11 2024-01-12 江西少科智能建造科技有限公司 CAD drawing warm ventilation pipe structured information extraction method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117390812A (en) * 2023-12-11 2024-01-12 江西少科智能建造科技有限公司 CAD drawing warm ventilation pipe structured information extraction method and system
CN117390812B (en) * 2023-12-11 2024-03-08 江西少科智能建造科技有限公司 CAD drawing warm ventilation pipe structured information extraction method and system

Similar Documents

Publication Publication Date Title
US10817717B2 (en) Method and device for parsing table in document image
CN101453575B (en) Video subtitle information extracting method
CN103528617B (en) A kind of cockpit instrument identifies and detection method and device automatically
CN109886928B (en) Target cell marking method, device, storage medium and terminal equipment
CN108764352B (en) Method and device for detecting repeated page content
CN104697938A (en) Test paper reading method and pregnancy test and ovulation testing method using same
CN108955901B (en) Infrared temperature measurement method and system and terminal equipment
CN110490181B (en) Form filling and auditing method, device and equipment based on OCR (optical character recognition) technology and computer storage medium
CN114973287A (en) Information extraction method, system, storage medium and equipment based on construction drawing
CN107633201B (en) Intelligent identification method and system for answer sheet
CN114429640A (en) Drawing segmentation method and device and electronic equipment
CN116091503B (en) Method, device, equipment and medium for discriminating panel foreign matter defects
CN111126286A (en) Vehicle dynamic detection method and device, computer equipment and storage medium
EP3770853A1 (en) Image processing method, computer program, and recording medium
CN114462383B (en) Method, system, storage medium and equipment for obtaining design specification of building drawing
KR20230102273A (en) System for learning image processing, method for automatic sampling and labeling using the same
CN116543327A (en) Method, device, computer equipment and storage medium for identifying work types of operators
CN204988770U (en) Automatic sample system of grain depot
JP2001101340A (en) Character reader and character recognition method
CN112819106B (en) IFC component type identification method, device, storage medium and equipment
CN113962347B (en) Wrong question acquisition method and system based on paper teaching assistance, storage medium and equipment
CN111667408B (en) Vehicle image processing method and device, storage medium and processor
CN116524425B (en) Laboratory vessel medicine residue detection method and detection device based on image recognition
CN114241503B (en) Method and system for acquiring error cause, readable storage medium and device
JP4094240B2 (en) Image characteristic determination processing apparatus, image characteristic determination processing method, program for executing the method, and computer-readable storage medium storing the program

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