CN113128457A - Building model identification method, system and related device - Google Patents

Building model identification method, system and related device Download PDF

Info

Publication number
CN113128457A
CN113128457A CN202110485120.5A CN202110485120A CN113128457A CN 113128457 A CN113128457 A CN 113128457A CN 202110485120 A CN202110485120 A CN 202110485120A CN 113128457 A CN113128457 A CN 113128457A
Authority
CN
China
Prior art keywords
information
geometric shape
shape data
building
coordinates
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
CN202110485120.5A
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.)
Hangzhou Pinming Safety Control Information Technology Co ltd
Original Assignee
Hangzhou Pinming Safety Control Information 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 Hangzhou Pinming Safety Control Information Technology Co ltd filed Critical Hangzhou Pinming Safety Control Information Technology Co ltd
Priority to CN202110485120.5A priority Critical patent/CN113128457A/en
Publication of CN113128457A publication Critical patent/CN113128457A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/41Analysis of document content
    • G06V30/413Classification of content, e.g. text, photographs or tables
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Artificial Intelligence (AREA)
  • Architecture (AREA)
  • Civil Engineering (AREA)
  • Structural Engineering (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application provides a building model identification method, which comprises the following steps: obtaining a building drawing of a building model, and dividing first geometric shape data and character labels corresponding to the building drawing by using the layer information; rasterizing the first geometric shape data to obtain a picture to be processed; converting the point line information of the picture to be processed into corresponding second geometric shape data and converting the point line information into image coordinates; and matching the second geometric shape data with the character labels according to the image coordinates, and arranging the components to finish the identification of the building model. The method and the device can improve the accuracy of model construction, and are beneficial to improving the modeling speed. The application also provides an identification system of the building model, a computer readable storage medium and a server, which have the beneficial effects.

Description

Building model identification method, system and related device
Technical Field
The present application relates to the field of industrial design, and in particular, to a method, a system, and a related apparatus for identifying a building model.
Background
In the field of current engineering modeling, building model conversion is to analyze components such as columns, beams and the like described on a construction drawing according to the provisions of CAD entity graphic files described on an actual drawing, such as KZ concrete columns, KL frame beams and the like, to obtain attribute data such as geometric shapes, dimension information, elevation information and the like of the CAD entities, automatically analyze the attribute data such as the geometric shapes, the dimension information, the elevation information and the like of the CAD entities in batch, and generate corresponding building model data formats for calculating the engineering quantity or the reinforcing steel bar quantity of a building model. The manual arrangement, namely the building model identification in the engineering modeling field, is replaced by the batch automatic algorithm analysis.
However, the model algorithm used at the present stage depends on the CAD data type of the edge, and the actual processing effect of the algorithm has strong dependence on whether the data type is completely covered, whether the data is damaged (the non-edge information of the data is damaged to a large extent), whether the data is expressed by the unreasonable data, and the like, and the algorithm is an algorithm which is seen and obtained and may be inconsistent.
In the whole analysis process, firstly, for the known types, the process of acquiring data converted into a standard for analysis is already high in calculation cost; in the algorithm, a large number of intersection calculation, outsourcing intersection calculation and the like are used for obtaining some closed areas, so that the efficiency of the algorithm is greatly limited. And a large amount of side line data information is repeatedly subjected to intersection analysis, so that the efficiency and the precision of the algorithm are limited.
Disclosure of Invention
The application aims to provide a building model identification method, a building model identification system, a computer readable storage medium and electronic equipment, wherein description information of a building drawing is effectively distinguished by using layer information, and the building model identification efficiency is improved.
In order to solve the technical problem, the application provides an identification method of a building model, and the specific technical scheme is as follows:
obtaining a building drawing of a building model, and dividing first geometric shape data and character labels corresponding to the building drawing by using layer information;
rasterizing the first geometric shape data to obtain a picture to be processed;
detecting point and line information in the picture to be processed, integrating the point and line information to obtain second geometric shape data, and converting the second geometric shape data into image coordinates;
and matching second geometric shape data and character marks according to the image coordinates, and arranging components to finish the identification of the building model.
Optionally, rasterizing the first geometric data to obtain a to-be-processed picture, further includes:
acquiring attribute information corresponding to CAD entity expression, and storing the attribute information in a corresponding data result according to the position; the attribute information includes size information, elevation information, and reinforcing steel bar information, and the attribute information is used to create component attributes when the components are arranged.
Optionally, the dividing, by using the layer information, the first geometric shape data and the text label corresponding to the construction drawing includes:
determining first geometric shape data and character labels for expressing CAD entities in the building drawing, designating the first geometric shape data or the character labels by using layer information, and distinguishing the first geometric shape data and the character labels by taking a layer as a unit. .
Optionally, rasterizing the first geometric data to obtain a to-be-processed picture includes:
determining a pixel origin in the construction drawing, converting the image coordinates of the first geometric shape data into corresponding pixel coordinates by using a coordinate conversion formula, and converting the image coordinates of the first geometric shape data into corresponding pixel coordinates by using a coordinate conversion formula;
determining a corresponding storage space according to the size of the image of the building drawing to obtain a picture to be processed;
the coordinate conversion formula is
Figure BDA0003049986130000021
Wherein u is an abscissa in pixel coordinates, v is an ordinate in pixel coordinates, x is an abscissa in image coordinates, y is an ordinate in image coordinates, dx represents a proportional relationship between each row of pixels in pixel coordinates and the corresponding image coordinates, and dy represents each column in pixel coordinatesProportional relationship of pixel to corresponding image coordinate, u0Is the abscissa of the origin of coordinates, v0Is the ordinate of the origin of coordinates.
Optionally, determining the corresponding storage space according to the size of the image of the building drawing includes:
and determining a corresponding storage space by using a storage formula according to the size of the image of the building drawing.
The present application further provides a system for identifying a building model, comprising:
the drawing acquisition module is used for acquiring a building drawing of a building model and dividing first geometric shape data and character labels corresponding to the building drawing by using the layer information;
the image processing module is used for rasterizing the first geometric shape data to obtain a to-be-processed image;
the coordinate conversion module is used for detecting point-line information in the picture to be processed, integrating the point-line information to obtain second geometric shape data and converting the second geometric shape data into image coordinates;
and the model identification module is used for matching second geometric shape data with the character labels according to the image coordinates and arranging components to finish the identification of the building model.
Optionally, the method further includes:
the information determining module is used for acquiring attribute information corresponding to the CAD entity expression and storing the attribute information in a corresponding data result according to the position; the attribute information includes size information, elevation information, and reinforcing steel bar information, and the attribute information is used to create component attributes when the components are arranged.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method as set forth above.
The present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method described above when calling the computer program in the memory.
The application provides a building model identification method, which comprises the following steps: obtaining a building drawing of a building model, and dividing first geometric shape data and character labels corresponding to the building drawing by using layer information; rasterizing the first geometric shape data to obtain a picture to be processed; detecting point and line information in the picture to be processed, integrating the point and line information to obtain second geometric shape data, and converting the second geometric shape data into image coordinates; and matching second geometric shape data and character marks according to the image coordinates, and arranging components to finish the identification of the building model.
According to the method and the device, the first geometric shape data and the character labels corresponding to the construction drawings are divided by utilizing the layer information, the geometric shape data and the character labels are effectively distinguished by means of the layer, and the character label data are prevented from being not corresponding to the geometric shape data after being subjected to rasterization processing. And rasterizing the first geometric shape data, converting the picture data into a to-be-processed picture in a picture form, and performing point-line information conversion on the to-be-processed picture to obtain an image coordinate corresponding to the geometric shape, so as to match the geometric shape data with character labels, further complete identification of the building model in the building drawing, improve the accuracy of model construction, and contribute to improving the modeling speed.
The application also provides an identification system of the building model, a computer readable storage medium and an electronic device, which have the beneficial effects and are not repeated herein.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for identifying a building model according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating a transformation from image coordinates to pixel coordinates according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an identification system for a building model according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart of a method for identifying a building model according to an embodiment of the present application, where the method includes:
s101: obtaining a building drawing of a building model, and dividing first geometric shape data and character labels corresponding to the building drawing by using layer information;
since the construction drawing usually includes two parts of data, namely geometric shape data and text labels, the two parts of data need to be distinguished by means of the layers in the step. Specifically, first geometric shape data and a text label expressing a CAD entity in the construction drawing may be determined, the first geometric shape data or the text label is specified by using layer information, and the first geometric shape data and the text label are distinguished by using a layer as a unit.
S102: rasterizing the first geometric shape data to obtain a picture to be processed;
this step is intended to rasterize said first geometry data, so-called rasterization, which is a process of converting vertex data into fragments, having the effect of converting the image into an image composed of individual grids, characterized in that each element corresponds to a pixel in a frame buffer. Specifically, in this step, the sideline information included in the divided first geometric shape data may be converted into a picture format for storage, and the position information of the picture converted from the construction drawing needs to be recorded.
Before the step, attribute information corresponding to the CAD entity expression can be obtained and stored in a corresponding data result according to the position. The attribute information may include dimension information, elevation information, and rebar information used to create component attributes when the component is arranged.
There is no limitation on how rasterization is performed, and the embodiment provides a specific process:
firstly, determining a pixel origin in a building drawing, and converting image coordinates of first geometric shape data into corresponding pixel coordinates by using a coordinate conversion formula;
secondly, determining a corresponding storage space according to the size of the image of the building drawing to obtain a picture to be processed;
wherein the coordinate conversion formula is
Figure BDA0003049986130000051
Wherein u is an abscissa in pixel coordinates, v is an ordinate in pixel coordinates, x is an abscissa in image coordinates, y is an ordinate in image coordinates, dx represents a proportional relationship between each row of pixels in pixel coordinates and corresponding image coordinates, dy represents a proportional relationship between each column of pixels in pixel coordinates and corresponding image coordinates, u represents a proportional relationship between each column of pixels in pixel coordinates and corresponding image coordinates, and v represents an ordinate in pixel coordinates0Is the abscissa of the origin of coordinates, v0Is the ordinate of the origin of coordinates.
The specific sizes of dx and dy are not limited herein, and should be determined according to actual proportions in the drawing.
In the second step, the storage space corresponding to the picture to be processed needs to be determined, specifically, the storage space corresponding to the picture to be processed can be determined according to the size of the image of the building drawing and a storage formula, that is, the size of the image of the building drawing is converted.
S103: detecting point and line information in the picture to be processed, integrating the point and line information to obtain second geometric shape data, and converting the second geometric shape data into image coordinates;
the point-line information in the picture to be processed needs to be recognized first, specifically, the point-line information in the picture to be processed may be analyzed and extracted first by using an image recognition method, and what kind of image recognition method is used is not specifically limited herein as long as it can correctly recognize the point-line information, for example, an edge detection method or other image recognition methods with the same or similar functions may be used. The dot line information includes dot information and line information. After identifying the point and line information, the point and line information is recorded and analyzed, so that the point and line information is conveniently integrated and converted into corresponding second geometric data. Specifically, the geometric characteristics may be determined according to the point-line information, or it may be determined whether the geometric figure is a closed figure, and then the second geometric shape data of the geometric figure may be determined according to the point-line information.
And the line information includes three types: (1) a conventional straight line, (2) a dotted line, and (3) a curved line.
The corresponding processing procedures are as follows:
(1) conventional straight line: the conventional straight line is converted into a line segment represented by a start point and an end point.
(2) Dotted line: a beam member generally indicated by a dashed line, wherein the ratio of the solid line representing the dashed line to the space is greater than 2, as in CAD drawings where the dashed line space length is 245mm and the solid line portion length is 498 mm. And processing the dotted line in the same way as the conventional straight line to obtain line segments represented by the starting point and the end point, and combining the straight line segments in the same direction according to the characteristic that the interval length and the solid line length are less than 0.5 to obtain the starting point and the end point of the straight line segment in the direction.
(3) The curve: the curve can be fitted to a two-dimensional curve expressed in start/end/radian.
For example, analyzing a gate member, the starting and ending points of a gate member may be obtained using two straight lines and an arc analysis. For non-closed constructs, analysis can still be performed through the dotted line information to determine its corresponding geometry data.
After the second geometric shape data is determined, the second geometric shape data is required to be converted into corresponding image coordinates, namely, pixel coordinate-to-image coordinate operation is carried out, and image coordinate information of the geometric figure is calculated.
S104: and matching second geometric shape data and character marks according to the image coordinates, and arranging components to finish the identification of the building model.
And after the geometric shape data is obtained, matching the second geometric shape data with the character labels is executed, namely, the corresponding character labels are configured for each second geometric shape data, corresponding components are created, and position arrangement is carried out according to the relation between the geometric shape data, so that the automatic identification of building model construction can be realized.
According to the embodiment of the application, the first geometric shape data and the character label corresponding to the building drawing are divided by utilizing the layer information, and the data describing different information are effectively distinguished by means of the layer, so that the geometric shape and the character label data of the building drawing can be conveniently distinguished. And rasterizing the first geometric shape data, converting the picture data into to-be-processed data in a picture form, and performing point-line information conversion on the to-be-processed picture to obtain image coordinates corresponding to the geometric shape, so as to match the geometric shape data with character labels, geometrically finish the identification of the building model in the building drawing, improve the accuracy of model construction, and contribute to improving the modeling speed.
The following describes a method for identifying a building model provided by the present application with a specific application process of the present application, and a building drawing in dwg format is taken as an example, which is hereinafter referred to as dwg drawing for short:
the method comprises the following steps of firstly, distinguishing first geometric shape data and character marking data by using layer information: and acquiring all data information expressing the CAD entity in the dwg drawing, classifying the data information into text marking information and sideline information, and storing the text marking information and the sideline information respectively.
Because the CAD entity describing the component on the construction drawing contains text attribute information of the entity, such as text, marks, reinforcing steel bars, elevations and the like, and sideline information describing the geometric shape, data describing different information needs to be distinguished. The layer information of the CAD entity can be used for distinguishing, if the specified entity is a text information entity, all information of the layer is acquired as a text information layer, and the layer is recorded; if the designated entity is the edge information, acquiring all information of the layer as edge information layers, and recording the layers;
and then, analyzing the text labeling information, acquiring attribute information such as dimension information, elevation information, reinforcing steel bar information and the like expressed by the CAD entity, and storing the attribute information in a corresponding data result according to the position. And acquiring all data entities including geometric shape data and character labels by analyzing the text information layer. And then classifying the data entities into data such as component names, component types, component elevations, reinforcing steel bar information and the like, filling the data into corresponding data results, wherein the data comprises position information of the names of the components and is used for matching with the component geometry analyzed by the acquired side line information of the components.
And secondly, rasterizing the first geometric shape data to obtain a to-be-processed picture:
all data information related to the edge information in the CAD entity in the dwg drawing is converted into an object of image recognition, namely a jpg picture format, and the position information of the image converted from the drawing is recorded.
And converting and storing the image coordinates describing the entity in the dwg drawing into pixel coordinates describing the picture in the process of storing the CAD entity in the dwg drawing into the picture by adopting a rasterization method.
The world coordinate system, camera coordinate system, image coordinate system and pixel coordinate system are often involved in image processing. Both the image coordinate system and the pixel coordinate system are on the imaging plane, except that the origin and the measurement unit of the two coordinate systems are different. The unit of the pixel coordinate is pixel, and it is often described that one pixel point is several rows and columns; the unit of the image coordinates is mm, which belongs to the physical unit.
The data information in the dwg drawing processed in the present embodiment is already the image coordinates of the simulation object, so the present embodiment only needs to consider the conversion of the image coordinates and the pixel coordinates.
As shown in fig. 2, the pixel coordinates are gradually increased in width to the right and gradually increased in height to the bottom with the upper left corner as the pixel origin (0, 0). When the picture is stored, recording the image coordinate PtInsert (x, y) corresponding to the origin of the picture to be processed, and converting the coordinates into the origin of the corresponding pixel coordinates. The conversion relationship between the image coordinates (x, y) and the pixel coordinates (u, v) is as follows:
Figure BDA0003049986130000081
let the transformation matrix be a, (u, v) denotes pixel coordinates, and (x, y) denotes image coordinates. Dx and dy in formula 1 indicate how many mm each column pixel and each row pixel in the pixel coordinate respectively represents the image coordinate system, as represented by formula 2 and formula 3:
1pixel (long) ═ dx mm equation 2
1pixel (wide) ═ dx mm equation 3
In the process of storing the RGB image, 4 channels are needed to store color data and pixel position information. When the data is stored according to 8 bytes and the drawing is rasterized and stored into a picture, the expression of the image with 1 square millimeter in the image and the relation of the required storage space are as shown in a formula 4:
1mm2(1/dx) (1/dy) × 4 (number of channels) × 8(byte)/8 formula 4
According to the formula 4, firstly, the meter is converted into the millimeter, and the 10000 square meters of drawing on the drawing is stored into the required storage space of the picture as shown in the formula 5:
(1*108) (1/dx) × (1/dy) × (4B) ═ 400 × (1/dx) × (1/dy) M formula 5
As shown in equation 5, when dx and dy take 1, a 10000-square-meter drawing requires 400M of storage space, and a large amount of background redundant data exists in stored pixel coordinates, which may result in excessive storage and affect the calculation. Therefore, the values of dx and dy should be as large as possible.
However, it should be noted that the building element to be processed in this embodiment needs to ensure the effectiveness of the processing, and cannot cause the element to be degraded into a line or a point during the rasterization process. Therefore, when taking values dx and dy, reference is made to the minimum size of the existing component, and the minimum size cannot be increased without limit.
For example, at the present stage, the minimum wall thickness is 100mm, and thus the values of dx and dy are less than 100, so that dx and dy can be taken within a range from 30 to 80 in the application, thereby not only ensuring the rationality of the operation, but also meeting the requirements of accuracy and accuracy of building model identification. Of course, those skilled in the art can also take other values for dx and dy, which are not described in detail herein.
And thirdly, detecting point and line information in the picture to be processed, integrating the point and line information to obtain second geometric shape data, converting the second geometric shape data into image coordinates, and analyzing the point and line information of the picture to be processed to obtain the geometric shape data. And analyzing and extracting point and line information in the picture to be processed by using an image recognition method, and converting the point and line information and the position information of the picture to be processed recorded before into a position relation matched with the text information.
The geometry of the building elements can be divided into closed figures and non-closed figures according to the characteristics. According to the characteristics of the components, the geometric shapes of the closed images are respectively obtained by using an image recognition method, wherein the columnar components such as columns, pier columns, piles and the like are closed polygons or circular or semicircular shapes; the central straight line and central arc line of non-closed members such as beams and wall members represented by double parallel lines are obtained.
Detecting point and line information in the picture to be processed, integrating the point and line information to obtain second geometric shape data, and converting the second geometric shape data into image coordinates: and carrying out inverse operation from pixel coordinates to image coordinates on the closed or non-closed geometric image acquired in the last step, and calculating pixel coordinate information of the closed or non-closed geometric image. The key point is that firstly, an inverse operation matrix B of a conversion matrix A is obtained; and acquiring all information points describing the geometric shape of the member by using the matrix B, converting and packaging the information points into data information which can be matched with the text information data, and recording the data information.
Fourthly, matching second geometric shape data and character labels according to the image coordinates, and arranging components to finish the identification of the building model: and combining the data into complete component data information containing the text attribute information and the geometric shape information according to some matching rules by using the position coordinates of the obtained complete text attribute information and the position coordinates of the geometric information data.
And creating attribute information of the members according to the acquired member information data and the position information of the members on the drawing, and automatically arranging the members on corresponding positions of the drawing in batches, so that the automatic identification of the building model members can be realized.
In the following, the identification system of the building model provided in the embodiment of the present application is introduced, and the identification system of the building model described below and the identification method of the building model described above may be referred to correspondingly.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a recognition system for a building model according to an embodiment of the present application, and the present application further provides a recognition system for a building model, including:
the drawing obtaining module 100 is configured to obtain a building drawing of a building model, and divide first geometric data and text labels corresponding to the building drawing by using layer information;
the image processing module 200 is configured to rasterize the first geometric shape data to obtain an image to be processed;
the coordinate conversion module 300 is configured to detect point-line information in the picture to be processed, integrate the point-line information to obtain second geometric shape data, and convert the second geometric shape data into image coordinates;
and the model identification module 400 is used for matching the second geometric shape data with the character labels according to the image coordinates and arranging components to finish the identification of the building model.
Based on the above embodiment, as a preferred embodiment, the method further includes:
the information determining module is used for acquiring attribute information corresponding to the CAD entity expression and storing the attribute information in a corresponding data result according to the position; the attribute information includes size information, elevation information, and reinforcing steel bar information, and the attribute information is used to create component attributes when the components are arranged.
Based on the above embodiment, as a preferred embodiment, the drawing acquisition module 100 includes:
the drawing information confirming unit is used for confirming first geometric shape data and character labels for expressing CAD entities in the building drawings, appointing the first geometric shape data or the character labels by utilizing the layer information, and distinguishing the first geometric shape data and the character labels by taking a layer as a unit.
Based on the above embodiment, as a preferred embodiment, the picture processing module 200 includes:
the coordinate conversion unit is used for determining a pixel origin in the construction drawing, converting the image coordinates of the first geometric shape data into corresponding pixel coordinates by using a coordinate conversion formula, and converting the image coordinates of the first geometric shape data into corresponding pixel coordinates by using the coordinate conversion formula;
the picture storage unit is used for determining a corresponding storage space according to the size of the image of the building drawing to obtain a picture to be processed;
the coordinate conversion formula is
Figure BDA0003049986130000101
Wherein u is an abscissa in pixel coordinates, v is an ordinate in pixel coordinates, x is an abscissa in image coordinates, y is an ordinate in image coordinates, dx represents a proportional relationship between each row of pixels in pixel coordinates and corresponding image coordinates, dy represents a proportional relationship between each column of pixels in pixel coordinates and corresponding image coordinates, u represents a proportional relationship between each column of pixels in pixel coordinates and corresponding image coordinates, and v represents an ordinate in pixel coordinates0Is the abscissa of the origin of coordinates, v0Is the ordinate of the origin of coordinates.
Based on the above embodiment, as a preferred embodiment, the picture storage unit is a unit for determining the corresponding storage space by using a storage formula according to the image size of the construction drawing.
The present application also provides a computer readable storage medium having stored thereon a computer program which, when executed, may implement the steps provided by the above-described embodiments. The storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The application further provides an electronic device, which may include a memory and a processor, where the memory stores a computer program, and the processor may implement the steps provided by the foregoing embodiments when calling the computer program in the memory. Of course, the electronic device may also include various network interfaces, power supplies, and the like.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system provided by the embodiment, the description is relatively simple because the system corresponds to the method provided by the embodiment, and the relevant points can be referred to the method part for description.
The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for identifying a building model, comprising:
obtaining a building drawing of a building model, and dividing first geometric shape data and character labels corresponding to the building drawing by using layer information;
rasterizing the first geometric shape data to obtain a picture to be processed;
detecting point and line information in the picture to be processed, integrating the point and line information to obtain second geometric shape data, and converting the second geometric shape data into image coordinates;
and matching the second geometric shape data with the character labels according to the image coordinates, and arranging components to finish the identification of the building model.
2. The identification method according to claim 1, wherein rasterizing the drawing information, before obtaining the picture to be processed, further comprises:
acquiring attribute information corresponding to CAD entity expression, and storing the attribute information in a corresponding data result according to the position; the attribute information includes size information, elevation information, and reinforcing steel bar information, and the attribute information is used to create component attributes when the components are arranged.
3. The identification method according to claim 1, wherein the dividing the first geometric data and the text labels corresponding to the construction drawing by using the layer information comprises:
determining first geometric shape data and character labels for expressing CAD entities in the building drawing, designating the first geometric shape data or the character labels by using layer information, and distinguishing the first geometric shape data and the character labels by taking a layer as a unit.
4. The identification method according to claim 1, wherein rasterizing the first geometric shape data to obtain the picture to be processed comprises:
determining a pixel origin in the construction drawing, and converting the image coordinates of the first geometric shape data into corresponding pixel coordinates by using a coordinate conversion formula;
determining a corresponding storage space according to the size of the image of the building drawing to obtain a picture to be processed; (ii) a
The coordinate conversion formula is
Figure FDA0003049986120000011
Wherein u is an abscissa in pixel coordinates, v is an ordinate in pixel coordinates, x is an abscissa in image coordinates, y is an ordinate in image coordinates, dx represents a proportional relationship between each row of pixels in pixel coordinates and corresponding image coordinates, dy represents a proportional relationship between each column of pixels in pixel coordinates and corresponding image coordinates, u represents a proportional relationship between each column of pixels in pixel coordinates and corresponding image coordinates, and v represents an ordinate in pixel coordinates0Is the abscissa of the origin of coordinates, v0Is the ordinate of the origin of coordinates.
5. The identification method according to claim 4, wherein the building drawing determining the corresponding storage space according to the image size of the building drawing comprises:
and determining a corresponding storage space by using a storage formula according to the size of the image of the building drawing.
6. A system for identifying a building model, comprising:
the drawing acquisition module is used for acquiring a building drawing of a building model and dividing first geometric shape data and character labels corresponding to the building drawing by using the layer information;
the image processing module is used for rasterizing the first geometric shape data to obtain a to-be-processed image;
the coordinate conversion module is used for converting the point-line information of the picture to be processed into corresponding geometric shape data and converting the point-line information into image coordinates;
and the model identification module is used for matching geometric shape data and character labels according to the image coordinates and arranging components to finish the identification of the building model.
7. The identification system of claim 6, further comprising:
the information determining module is used for acquiring attribute information corresponding to the CAD entity expression and storing the attribute information in a corresponding data result according to the position; the attribute information includes size information, elevation information, and reinforcing steel bar information, and the attribute information is used to create component attributes when the components are arranged.
8. The identification system of claim 6, wherein the drawing acquisition module comprises:
and the drawing information confirming unit is used for acquiring all data information expressing the CAD entity in the building drawing, dividing the data information into text marking information and sideline information and storing the text marking information and the sideline information.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of identifying a building model according to any one of claims 1 to 5.
10. An electronic device, characterized in that it comprises a memory in which a computer program is stored and a processor which, when it is called up in said memory, carries out the steps of the building model identification method according to any one of claims 1 to 5.
CN202110485120.5A 2021-04-30 2021-04-30 Building model identification method, system and related device Pending CN113128457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110485120.5A CN113128457A (en) 2021-04-30 2021-04-30 Building model identification method, system and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110485120.5A CN113128457A (en) 2021-04-30 2021-04-30 Building model identification method, system and related device

Publications (1)

Publication Number Publication Date
CN113128457A true CN113128457A (en) 2021-07-16

Family

ID=76780744

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110485120.5A Pending CN113128457A (en) 2021-04-30 2021-04-30 Building model identification method, system and related device

Country Status (1)

Country Link
CN (1) CN113128457A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113989808A (en) * 2021-10-25 2022-01-28 广东宏远新科自动化技术开发有限公司 Method and system for selecting specifications of mechanical manufacturing materials based on drawing information processing
CN114239124A (en) * 2022-02-28 2022-03-25 江西少科智能建造科技有限公司 Building drawing component identification method, system, storage medium and equipment
CN114240737A (en) * 2021-12-14 2022-03-25 北京构力科技有限公司 Method, apparatus, device and medium for generating digital model from drawings
CN114444169A (en) * 2021-12-28 2022-05-06 万翼科技有限公司 Building outline recognition method, device, equipment and storage medium
CN114547743A (en) * 2022-02-21 2022-05-27 阳光新能源开发股份有限公司 Method and device for processing road data of CAD (computer-aided design) drawing and nonvolatile storage medium
CN114722440A (en) * 2022-04-02 2022-07-08 广东顺德电力设计院有限公司 CAD file data extraction, identification and inspection method, system, equipment and storage medium
CN114925416A (en) * 2022-04-25 2022-08-19 清华大学 Building structure generation method and device based on data conversion
CN115082952A (en) * 2022-07-19 2022-09-20 北京国盛华兴科技有限公司 Electronic drawing identification method and device, electronic equipment and storage medium
CN117687967A (en) * 2023-12-08 2024-03-12 北京联创高科信息技术有限公司 CAD map fusion labeling and displaying method and system

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101158966A (en) * 2007-11-01 2008-04-09 北京航空航天大学 City environment quantized data organization method based on vector and lattice mixed representing
CN109191576A (en) * 2018-09-06 2019-01-11 宁波睿峰信息科技有限公司 A kind of figure layer classification method that architectural drawing is converted to three-dimensional BIM model
CN109993827A (en) * 2019-03-29 2019-07-09 宁波睿峰信息科技有限公司 A kind of elevation recognition methods that architectural drawing is converted to three-dimensional BIM model
CN110909650A (en) * 2019-11-15 2020-03-24 清华大学 CAD drawing identification method and device based on domain knowledge and target detection
CN111008597A (en) * 2019-12-05 2020-04-14 万翼科技有限公司 Space identification method and device for CAD drawing, electronic equipment and storage medium
CN111159453A (en) * 2019-12-24 2020-05-15 清华大学 Method and device for matching labels and components of CAD drawings
CN111368757A (en) * 2020-03-09 2020-07-03 广联达科技股份有限公司 Machine learning-oriented column large sample building drawing layer classification method and system
CN111832447A (en) * 2020-06-30 2020-10-27 万翼科技有限公司 Building drawing component identification method, electronic equipment and related product
CN112528353A (en) * 2020-12-18 2021-03-19 深圳须弥云图空间科技有限公司 Method and device for reconstructing three-dimensional scene based on CAD drawing
US20210089767A1 (en) * 2019-09-24 2021-03-25 International Business Machines Corporation Extracting and analyzing information from engineering drawings

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101158966A (en) * 2007-11-01 2008-04-09 北京航空航天大学 City environment quantized data organization method based on vector and lattice mixed representing
CN109191576A (en) * 2018-09-06 2019-01-11 宁波睿峰信息科技有限公司 A kind of figure layer classification method that architectural drawing is converted to three-dimensional BIM model
CN109993827A (en) * 2019-03-29 2019-07-09 宁波睿峰信息科技有限公司 A kind of elevation recognition methods that architectural drawing is converted to three-dimensional BIM model
US20210089767A1 (en) * 2019-09-24 2021-03-25 International Business Machines Corporation Extracting and analyzing information from engineering drawings
CN110909650A (en) * 2019-11-15 2020-03-24 清华大学 CAD drawing identification method and device based on domain knowledge and target detection
CN111008597A (en) * 2019-12-05 2020-04-14 万翼科技有限公司 Space identification method and device for CAD drawing, electronic equipment and storage medium
CN111159453A (en) * 2019-12-24 2020-05-15 清华大学 Method and device for matching labels and components of CAD drawings
CN111368757A (en) * 2020-03-09 2020-07-03 广联达科技股份有限公司 Machine learning-oriented column large sample building drawing layer classification method and system
CN111832447A (en) * 2020-06-30 2020-10-27 万翼科技有限公司 Building drawing component identification method, electronic equipment and related product
CN112528353A (en) * 2020-12-18 2021-03-19 深圳须弥云图空间科技有限公司 Method and device for reconstructing three-dimensional scene based on CAD drawing

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
STUDYER_DOMI: "图像的大小计算 位深和色深", 《CSDN》 *
XUELUOWUTONG: "OpenCV学习之世界坐标系、相机坐标系、图像坐标系和像素坐标系之间的转换关系", 《CSDN》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113989808A (en) * 2021-10-25 2022-01-28 广东宏远新科自动化技术开发有限公司 Method and system for selecting specifications of mechanical manufacturing materials based on drawing information processing
CN113989808B (en) * 2021-10-25 2022-11-18 广东宏远新科自动化技术开发有限公司 Method and system for selecting specifications of mechanical manufacturing materials based on drawing information processing
CN114240737A (en) * 2021-12-14 2022-03-25 北京构力科技有限公司 Method, apparatus, device and medium for generating digital model from drawings
CN114444169A (en) * 2021-12-28 2022-05-06 万翼科技有限公司 Building outline recognition method, device, equipment and storage medium
CN114547743A (en) * 2022-02-21 2022-05-27 阳光新能源开发股份有限公司 Method and device for processing road data of CAD (computer-aided design) drawing and nonvolatile storage medium
CN114239124A (en) * 2022-02-28 2022-03-25 江西少科智能建造科技有限公司 Building drawing component identification method, system, storage medium and equipment
CN114722440A (en) * 2022-04-02 2022-07-08 广东顺德电力设计院有限公司 CAD file data extraction, identification and inspection method, system, equipment and storage medium
CN114925416A (en) * 2022-04-25 2022-08-19 清华大学 Building structure generation method and device based on data conversion
CN115082952A (en) * 2022-07-19 2022-09-20 北京国盛华兴科技有限公司 Electronic drawing identification method and device, electronic equipment and storage medium
CN117687967A (en) * 2023-12-08 2024-03-12 北京联创高科信息技术有限公司 CAD map fusion labeling and displaying method and system
CN117687967B (en) * 2023-12-08 2024-06-07 北京联创高科信息技术有限公司 CAD map fusion labeling and displaying method and system

Similar Documents

Publication Publication Date Title
CN113128457A (en) Building model identification method, system and related device
CN110516208B (en) System and method for extracting PDF document form
EP2343670B1 (en) Apparatus and method for digitizing documents
CN110502985B (en) Form identification method and device and form identification equipment
CN113628291B (en) Multi-shape target grid data vectorization method based on boundary extraction and combination
CN112115774A (en) Character recognition method and device combining RPA and AI, electronic equipment and storage medium
CN112364709B (en) Cabinet intelligent asset inventory method based on coding identification
CN113592886A (en) Method and device for examining architectural drawings, electronic equipment and medium
CN112883926B (en) Identification method and device for form medical images
CN115457591A (en) Identification method for topological relation of main wiring diagram of power grid station
CN112199929A (en) Form processing method and device, storage medium and electronic equipment
CN114386504A (en) Engineering drawing character recognition method
CN103455816B (en) Stroke width extraction method and device and character recognition method and system
US5923782A (en) System for detecting and identifying substantially linear horizontal and vertical lines of engineering drawings
CN108804978B (en) Layout analysis method and device
CN116245950B (en) Screen corner positioning method for full screen or single corner deletion
CN117115840A (en) Information extraction method, device, electronic equipment and medium
Shinozaki et al. Detection of deterioration of furnace walls using large-scale point-clouds
CN115661851A (en) Sample data acquisition and component identification method and electronic equipment
CN115203415A (en) Resume document information extraction method and related device
CN114240737A (en) Method, apparatus, device and medium for generating digital model from drawings
CN110826488A (en) Image identification method and device for electronic document and storage equipment
US10410052B2 (en) Stroke based skeletonizer
CN116776846A (en) Method and device for extracting form in target document and computer equipment
CN116229475A (en) Document identification method and device and electronic equipment

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
CB02 Change of applicant information

Address after: Block C, 5th Floor, Building B, Paradise Software Park, No. 3 Xidoumen Road, Xihu District, Hangzhou, Zhejiang 310000

Applicant after: Pin Ming Technology Co.,Ltd.

Address before: 310012 Room C, 5 / F, building B, Paradise Software Park, 3 xidoumen Road, Xihu District, Hangzhou City, Zhejiang Province

Applicant before: HANGZHOU PINMING SAFETY CONTROL INFORMATION TECHNOLOGY CO.,LTD.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20210716

RJ01 Rejection of invention patent application after publication