Engineering drawing, three-dimensional model and live-action picture linkage and integrated consulting method and device

By setting up and aligning the underlying database for 2D engineering drawings, 3D models and real-life pictures, the problem of insufficient structured storage and inaccurate matching in intelligent construction is solved, and precise linkage between real-life pictures and drawing models is achieved, improving efficiency. Overall efficiency and quality of engineering projects.

CN118864892AActive Publication Date: 2024-10-29CSCEC DIGITAL TECH CO LTD

Patent Information

Application Number
CN202410693626.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-10-29
Estimated Expiration
2044-05-31

AI Technical Summary

Technical Problem

In the field of intelligent construction, there is insufficient structured storage of 2D drawings, 3D models and real-life pictures, resulting in poor management of geometric relationships, inaccurate matching, and inability to link operations in real time, resulting in low efficiency and prone to errors.

Method used

By setting up the underlying database, the alignment and matching of 2D engineering drawings and 3D models is carried out, including elevation alignment and axis direction matching, scaling to the same standard scale, and the coordinate conversion relationship between real-life pictures, 2D drawings and 3D models is established. Realize the mapping and linkage of real-life pictures.

Benefits of technology

It achieves precise geometric matching and linkage of two-dimensional drawings, three-dimensional models and real-life pictures, improves the efficiency of integration and analysis of engineering data, reduces manual matching errors, and enhances the overall efficiency and quality of engineering projects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118864892A_ABST
    Figure CN118864892A_ABST
Patent Text Reader

Abstract

The invention discloses an engineering drawing, three-dimensional model and live-action picture linkage and integrated consulting method and device. The method comprises the steps that a to-be-linked two-dimensional engineering drawing and a three-dimensional model are generated based on an underlying database, and first alignment matching is conducted on the basis of the elevation of the to-be-linked two-dimensional engineering drawing and the z-axis section, corresponding to the height, of the three-dimensional model; secondary alignment matching is carried out on the two-dimensional engineering drawing and the three-dimensional model to be linked, namely axis net direction matching is carried out; zooming the corrected two-dimensional engineering drawing and the corrected three-dimensional model to the same standard ruler; obtaining a real scene picture to be linked, and determining a coordinate conversion relation between the zoomed two-dimensional engineering drawing and the zoomed three-dimensional model; determining a positive view angle of the to-be-linked live-action picture, and establishing a mapping relation between the to-be-linked live-action picture and the zoomed two-dimensional engineering drawing; and based on the coordinate conversion relation and the mapping relation, mapping the real scene picture to be linked to the zoomed three-dimensional model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent construction technology, and in particular to a method and device for linkage and integrated viewing of engineering drawings, three-dimensional models, and real-scene pictures. Background Art

[0002] In the field of intelligent construction, data comes from a wide variety of sources, including but not limited to CAD drawings, 3D models, text, images, and videos. First, this data is often stored in different encoding methods and structures, necessitating format conversion and standardization during processing for effective integration and analysis. Second, due to the diverse data sources, complex relationships and dependencies may exist between data. For example, engineering design drawings may be associated with 3D models generated by engineering design software, which in turn may be associated with video data captured by surveillance cameras. Therefore, intelligent association and linking of this data is necessary to ensure that users can easily access related data information.

[0003] Furthermore, current technical solutions typically integrate data from multiple sources only when needed. This approach forces end users to manually correlate data when accessing it, which is inefficient and prone to errors. Therefore, advanced technologies, such as artificial intelligence and big data analytics, are needed to automatically correlate and analyze data, thereby improving the efficiency and accuracy of data processing.

[0004] In summary, in traditional engineering operations, engineering drawings, as the carrier of design, bear the crucial mission of conveying design intent. Designers create drawings with complex concepts and precise parameters, and construction teams execute the construction process based on these drawings. However, as project complexity increases, single drawings are increasingly unable to meet the real-time access needs of on-site construction personnel.

[0005] In the existing technology, there is a technical problem of insufficient structured storage of two-dimensional drawings and three-dimensional models. In the construction industry, there is a key technical problem in the structured storage of drawing models, namely the lack of effective management of geometric association relationships. Two-dimensional drawings and three-dimensional models are core data in the design, construction and maintenance processes. They describe the geometric shape, structural composition and spatial layout of the building. However, current structured storage methods often only focus on the properties and parameters of individual components, while ignoring the geometric association relationships between components. Geometric association relationships refer to the spatial position, interaction and dependency between various components in a building. In traditional two-dimensional drawings and three-dimensional model structured storage, although each component can be described and managed independently, there is a lack of clear expression and record of the geometric relationships between components.

[0006] Computer-assisted matching of the geometric spatial positions of 2D drawings, 3D models, and real-life images is not precise enough, while manual matching is a very labor-intensive task. The key to this problem lies in accurately matching and aligning the geometric spatial positions of different data sources to enable data integration and analysis. Currently, computer-assisted matching relies primarily on user click locations to generate corresponding relationships, which can result in significant errors in both user clicks and the calculation of associated ratios.

[0007] Furthermore, operations between 2D drawings, 3D models, and real-life images cannot be linked. The core of this issue is that although drawings, models, and real-life images can be linked, when performing operations such as rotating, shifting, modifying, editing, or adding content, these operations are not reflected in real time or automatically synchronized with the other linked data sources. Summary of the Invention

[0008] In view of this, the present invention provides a method and device for the linkage and integrated viewing of engineering drawings, three-dimensional models, and real-life pictures, which can solve the technical problems of insufficient structured storage of two-dimensional drawings and three-dimensional models, difficulty in accurate matching of two-dimensional drawings, three-dimensional models, and real-life pictures, and difficulty in accurate association operations of two-dimensional drawings, three-dimensional models, and real-life pictures.

[0009] In order to solve the above technical problems, the present invention is implemented as follows.

[0010] A method for linking and integrating engineering drawings, three-dimensional models, and real-life pictures, comprising the following steps:

[0011] Step S1: Setting up the underlying database for constructing two-dimensional engineering drawings and three-dimensional models;

[0012] Step S2: generating a two-dimensional engineering drawing and a three-dimensional model to be linked based on the underlying database, and performing a first alignment and matching based on the elevation of the two-dimensional engineering drawing to be linked and the z-axis section of the three-dimensional model corresponding to the height;

[0013] Step S3: Based on the first alignment and matching result, the two-dimensional engineering drawing and the three-dimensional model to be linked are aligned for the second time, i.e., the axis grid direction is matched to achieve the adjustment of the two-dimensional engineering drawing and the three-dimensional model;

[0014] Step S4: Scale the adjusted two-dimensional engineering drawing and the adjusted three-dimensional model to the same standard scale; obtain the real-scene picture to be linked, determine the coordinate conversion relationship between the scaled two-dimensional engineering drawing and the scaled three-dimensional model; determine the positive viewing angle of the real-scene picture to be linked, and establish a mapping relationship between the real-scene picture to be linked and the scaled two-dimensional engineering drawing; based on the coordinate conversion relationship and the mapping relationship, map the real-scene picture to be linked to the scaled three-dimensional model.

[0015] Preferably, the underlying database stores graphic elements, graphic element identifiers, and graphic element properties used to construct two-dimensional engineering drawings, and the graphic element properties include graphic element type, layer information, position information, parametric geometric information, custom properties, and graphic element general properties; wherein the layer information is used to represent the hierarchy of the graphic element in the two-dimensional engineering drawing, and the position information is used to represent the position of the graphic element in the two-dimensional engineering drawing; the underlying database stores components, component identifiers, and component properties used to construct three-dimensional models, and the component properties include geometric properties, general properties, and custom properties.

[0016] Preferably, the generating of the two-dimensional engineering drawings and three-dimensional models to be linked based on the underlying database includes:

[0017] According to the actual information of the construction project, the required graphic elements are selected from the underlying database, and each graphic element is instantiated to generate a number of two-dimensional engineering drawings; the required components are selected from the underlying database, and each component is instantiated to generate a number of three-dimensional models; wherein, for each two-dimensional engineering drawing, a corresponding axis grid and axis grid information are generated, the axis grid has an x-axis and a y-axis, the x-axis represents the horizontal direction of the two-dimensional engineering drawing, the y-axis represents the vertical direction of the two-dimensional engineering drawing, and the axis grid information represents the design direction and design size of the two-dimensional engineering drawing; for each three-dimensional model, a corresponding axis grid and axis grid information are generated, the axis grid has an x-axis, a y-axis and a z-axis, the x-axis represents the horizontal direction of the cross section of the three-dimensional model, the y-axis represents the vertical direction of the cross section of the three-dimensional model, the z-axis represents the vertical direction of the longitudinal section of the three-dimensional model, the z-axis section of the three-dimensional model corresponds to the height of the three-dimensional model, and the axis grid information represents the design direction and design size of the three-dimensional model;

[0018] Determining the two-dimensional engineering drawings and three-dimensional models to be linked from the two-dimensional engineering drawings and three-dimensional models;

[0019] The axis grid information of the two-dimensional engineering drawings to be linked, the element identification, element attributes, connection relationship, and dependency relationship of each instantiated element, and the axis grid information of the three-dimensional model to be linked, the component identification, component attributes, connection relationship, and dependency relationship of each instantiated component are stored in the business database.

[0020] Preferably, the step S4: scaling the adjusted two-dimensional engineering drawing and the adjusted three-dimensional model to the same standard scale includes:

[0021] Step S41: extracting first feature points of a plurality of instantiated graphic elements from the adjusted two-dimensional engineering drawing; extracting second feature points corresponding to each first feature point from the adjusted three-dimensional model;

[0022] Step S42: Perform the following operations on each first feature point P(x, y), where x and y are the horizontal and vertical coordinates of the first feature point respectively:

[0023] Determine the horizontal number i and vertical number j of the axis grid where the first characteristic point P (x, y) is located in the adjusted two-dimensional engineering drawing:

[0024]

[0025] Among them, x n The nth x-axis grid of the two-dimensional engineering drawing after adjustment, m The mth y-axis grid of the two-dimensional engineering drawing after adjustment, x i The ith x-axis grid of the 2D engineering drawing after adjustment, y j The jth y-axis grid of the two-dimensional engineering drawing after adjustment;

[0026] Step S43: Determine the horizontal number x' and the vertical number y' of the axis grid where each second characteristic point is located in the adjusted three-dimensional model:

[0027]

[0028] Where x′ i , y′ i are the horizontal and vertical coordinates of the second feature point respectively;

[0029] Step S44: Based on the horizontal number and vertical number of the axis grid where each first feature point is located, and the horizontal number and vertical number of the axis grid where the second feature point corresponding to each first feature point is located, the adjusted two-dimensional engineering drawing and the adjusted three-dimensional model are scaled to the same standard scale.

[0030] Preferably, step S4, obtaining a real-scene picture to be linked, determining a coordinate conversion relationship between the scaled two-dimensional engineering drawing and the scaled three-dimensional model; determining the orthographic viewing angle of the real-scene picture to be linked, establishing a mapping relationship between the real-scene picture to be linked and the scaled two-dimensional engineering drawing; and mapping the real-scene picture to be linked to the scaled three-dimensional model based on the coordinate conversion relationship and the mapping relationship, includes:

[0031] Obtaining a real-scene picture to be linked, wherein the real-scene picture is a real-scene picture of the construction site;

[0032] Determine the coordinate transformation relationship between the two-dimensional engineering drawing and the three-dimensional model scaled to the same standard scale; use the positive direction of the panoramic initial perspective of the real scene picture to be linked as the positive perspective, select matching points in the scaled two-dimensional engineering drawing and the real scene picture to be linked to form point pairs, and establish a vector expression of the positive perspective of the real scene picture to be linked on the scaled two-dimensional engineering drawing based on the coordinates of each point in the point pair:

[0033]

[0034] a represents the coordinates of the point on the real scene image to be linked in the point alignment on the scaled two-dimensional engineering drawing, and a' represents the coordinates of the point on the scaled two-dimensional engineering drawing in the point alignment on the real scene image to be linked;

[0035] Based on the vector expression, determining a mapping relationship between the real scene picture to be linked and the scaled two-dimensional engineering drawing;

[0036] Based on the mapping relationship, the coordinates and elevations of the feature points in the real scene picture to be linked on the scaled two-dimensional drawing are determined, and then based on the coordinate conversion relationship, the real scene picture to be linked is mapped to the scaled three-dimensional model.

[0037] The present invention provides a device for linking and integrating engineering drawings, three-dimensional models, and real-life pictures, comprising:

[0038] Bottom-layer construction module: configured to set up the bottom-layer database for building 2D engineering drawings and 3D models;

[0039] First alignment module: configured to generate a two-dimensional engineering drawing and a three-dimensional model to be linked based on the underlying database, and perform a first alignment match based on the elevation of the two-dimensional engineering drawing to be linked and the z-axis section of the three-dimensional model corresponding to the height;

[0040] Second alignment module: Based on the results of the first alignment, it is configured to perform a second alignment of the 2D engineering drawings and 3D models to be linked, i.e., axial grid direction matching, to achieve the adjustment of the 2D engineering drawings and 3D models;

[0041] Linkage module: configured to scale the adjusted two-dimensional engineering drawings and the adjusted three-dimensional models to the same standard scale; obtain the real-scene picture to be linked, determine the coordinate conversion relationship between the scaled two-dimensional engineering drawings and the scaled three-dimensional model; determine the positive viewing angle of the real-scene picture to be linked, and establish a mapping relationship between the real-scene picture to be linked and the scaled two-dimensional engineering drawings; based on the coordinate conversion relationship and the mapping relationship, map the real-scene picture to be linked to the scaled three-dimensional model.

[0042] The present invention provides a computer-readable storage medium, wherein a plurality of instructions are stored in the storage medium; the plurality of instructions are used for a processor to load and execute the method described above.

[0043] The present invention provides an electronic device, characterized in that the electronic device includes:

[0044] A processor, which is used to execute multiple instructions;

[0045] A memory for storing a plurality of instructions;

[0046] The plurality of instructions are used to be stored by the memory and loaded and executed by the processor to implement the method as described above.

[0047] The present invention's integrated access to engineering drawings, models, and real-world scenarios is the result of a deep fusion of information technology and engineering practice. It breaks with traditional work models, allowing for closer integration of design, construction, and management, improving the overall efficiency and quality of engineering projects.

[0048] The beneficial technical effects brought about by the present invention are:

[0049] (1) The present invention customizes the multi-source heterogeneous fusion storage database of the two-dimensional drawings, three-dimensional models, and real-scene pictures of the project, laying the foundation for the linkage reference of the two-dimensional drawings, three-dimensional models, and real-scene pictures of subsequent projects.

[0050] (2) The present invention realizes the linkage and integrated consultation of engineering drawings, three-dimensional models, and real-life pictures. The geometric precise matching method of two-dimensional drawings, three-dimensional models, and real-life pictures based on the axis grid solves the precise matching and one-step matching of the spatial geometric coordinates of engineering drawings, three-dimensional models, and real-life pictures.

[0051] (3) The present invention realizes the linkage and integrated review of engineering drawings, three-dimensional models, and real-scene pictures, and realizes the precise linkage of the positions of engineering drawings, three-dimensional models, and real-scene pictures. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 A schematic flow chart of the method for linking and integrating the viewing of engineering drawings, three-dimensional models, and real-life pictures provided by the present invention;

[0053] Figure 2 This is a schematic diagram of the structure of the device for linking and integrating the viewing of engineering drawings, three-dimensional models, and real-life pictures provided by the present invention. DETAILED DESCRIPTION

[0054] The present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0055] like Figure 1 As shown, the present invention proposes a method for linking and integrating engineering drawings, three-dimensional models, and real-life pictures, which includes the following steps:

[0056] Step S1: Setting up the underlying database for constructing two-dimensional engineering drawings and three-dimensional models;

[0057] Step S2: generating a two-dimensional engineering drawing and a three-dimensional model to be linked based on the underlying database, and performing a first alignment and matching based on the elevation of the two-dimensional engineering drawing to be linked and the z-axis section of the three-dimensional model corresponding to the height;

[0058] Step S3: Based on the first alignment and matching result, the two-dimensional engineering drawing and the three-dimensional model to be linked are aligned for the second time, i.e., the axis grid direction is matched to achieve the adjustment of the two-dimensional engineering drawing and the three-dimensional model;

[0059] Step S4: Scale the adjusted two-dimensional engineering drawing and the adjusted three-dimensional model to the same standard scale; obtain the real-scene picture to be linked, determine the coordinate conversion relationship between the scaled two-dimensional engineering drawing and the scaled three-dimensional model; determine the positive viewing angle of the real-scene picture to be linked, and establish a mapping relationship between the real-scene picture to be linked and the scaled two-dimensional engineering drawing; based on the coordinate conversion relationship and the mapping relationship, map the real-scene picture to be linked to the scaled three-dimensional model.

[0060] In the field of intelligent construction, data from diverse sources exists, including 3D model data, 2D drawing data, and panoramic real-world data. This invention deconstructs data through data analysis and uses object-oriented deconstruction and storage to delve into the underlying layers of 3D models and 2D drawings. When applying multi-source heterogeneous data, this invention designs a unified business database, centrally storing component-level fusion relationships above the underlying object-based database of 3D models and 2D drawings.

[0061] Furthermore, the underlying database stores primitives, primitive identifiers, and primitive attributes used to construct two-dimensional engineering drawings. The primitive attributes include primitive type, layer information, position information, parametric geometry information, custom attributes, and primitive general attributes. Layer information indicates the hierarchy of the primitive in the two-dimensional engineering drawing, and position information indicates the position of the primitive in the two-dimensional engineering drawing. The underlying database also stores components, component identifiers, and component attributes used to construct three-dimensional models. The component attributes include geometric attributes, general attributes, and custom attributes.

[0062] In the present invention, the data structures of the three-dimensional model RVT, NWD, IFC, etc. are parsed and stored in the library according to the component as the smallest unit, and the geometry, attributes, custom attributes, etc. of the component are stored in the library with the component uid as the index.

[0063] Parse the data structures of two-dimensional drawings such as DWG and PDF, store them in the library according to the element as the smallest unit, use the element ID as the index, and save the element type, layer information, location information, parametric geometry information, attributes, custom attributes, and axis grid information in the library.

[0064] The step S2, generating the two-dimensional engineering drawings and three-dimensional models to be linked based on the underlying database, includes:

[0065] According to the actual information of the construction project, the required graphic elements are selected from the underlying database, and each graphic element is instantiated to generate a number of two-dimensional engineering drawings; the required components are selected from the underlying database, and each component is instantiated to generate a number of three-dimensional models; wherein, for each two-dimensional engineering drawing, a corresponding axis grid and axis grid information are generated, the axis grid has an x-axis and a y-axis, the x-axis represents the horizontal direction of the two-dimensional engineering drawing, the y-axis represents the vertical direction of the two-dimensional engineering drawing, and the axis grid information represents the design direction and design size of the two-dimensional engineering drawing; for each three-dimensional model, a corresponding axis grid and axis grid information are generated, the axis grid has an x-axis, a y-axis and a z-axis, the x-axis represents the horizontal direction of the cross section of the three-dimensional model, the y-axis represents the vertical direction of the cross section of the three-dimensional model, the z-axis represents the vertical direction of the longitudinal section of the three-dimensional model, the z-axis section of the three-dimensional model corresponds to the height of the three-dimensional model, and the axis grid information represents the design direction and design size of the three-dimensional model;

[0066] Determining the two-dimensional engineering drawings and three-dimensional models to be linked from the two-dimensional engineering drawings and three-dimensional models;

[0067] The axis grid information of the two-dimensional engineering drawings to be linked, the element identification of each instantiated element, the element attributes, the connection relationship, and the dependency relationship, and the axis grid information of the three-dimensional model to be linked, the component identification of each instantiated component, the component attributes, the connection relationship, and the dependency relationship are stored in the business database.

[0068] In the present invention, the business database uses the unique identifier of the association relationship as an index to store the three-dimensional model component ID, three-dimensional space position information, two-dimensional drawing element ID, two-dimensional space information, and panoramic real scene ID, thereby realizing the parametric storage of engineering drawings, models, real scene linkage relationships, and business connections.

[0069] In step S2, the two-dimensional engineering drawings and three-dimensional models to be linked are generated based on the underlying database, and the first alignment and matching is performed based on the elevation of the two-dimensional engineering drawings to be linked and the z-axis section of the three-dimensional model corresponding to the height, which is to align the instantiated graphics elements of the two-dimensional engineering drawings to be linked with the three-dimensional model in terms of height.

[0070] The step S3 is equivalent to reducing the dimensionality of the three-dimensional model axis grid into two dimensions after the first alignment and matching based on the elevation of the two-dimensional engineering drawing to be linked and the z-axis section of the three-dimensional model corresponding to the height.

[0071] Step S3: Based on the first alignment and matching result, the two-dimensional engineering drawing and the three-dimensional model to be linked are aligned and matched for the second time in the axis grid direction to achieve the adjustment of the two-dimensional engineering drawing and the three-dimensional model, including:

[0072] On the basis of the first alignment and matching, the 2D engineering drawing to be linked and the 3D model to be linked are aligned in the axis grid direction by rotating the 2D engineering drawing to be linked or rotating the 3D model to be linked, thereby realizing the adjustment of the 2D engineering drawing and the 3D model.

[0073] The step S4: scaling the adjusted two-dimensional engineering drawing and the adjusted three-dimensional model to the same standard scale includes:

[0074] Step S41: extracting first feature points of a plurality of instantiated graphic elements from the adjusted two-dimensional engineering drawing; extracting second feature points corresponding to each first feature point from the adjusted three-dimensional model;

[0075] In this invention, the original feature point P1 (x1, y1, z1) extracted from the adjusted 2D engineering drawing is calculated, where x1 and y1 are the horizontal and vertical coordinates of the feature point, respectively, and z1 is the elevation. Since z1 has already been aligned with the 3D model during the first alignment, only the values ​​of x1 and y1 need to be considered at this point. Therefore, the original feature point P1 extracted from the adjusted 2D engineering drawing is simplified to the first feature point P(x, y), where x = x1 and y = y1.

[0076] Step S42: Perform the following operations on each first feature point P(x, y), where x and y are the horizontal and vertical coordinates of the first feature point respectively:

[0077] Determine the horizontal number i and vertical number j of the axis grid where the first characteristic point P (x, y) is located in the adjusted two-dimensional engineering drawing:

[0078]

[0079] Among them, x n The nth x-axis grid of the two-dimensional engineering drawing after adjustment, m The mth y-axis grid of the two-dimensional engineering drawing after adjustment, x i The ith x-axis grid of the 2D engineering drawing after adjustment, y j The jth y-axis grid of the two-dimensional engineering drawing after adjustment;

[0080] Step S43: Determine the horizontal number x' and the vertical number y' of the axis grid where each second characteristic point is located in the adjusted three-dimensional model:

[0081]

[0082] Where x′ i , y′ i are the horizontal and vertical coordinates of the second feature point respectively;

[0083] Step S44: Based on the horizontal number and vertical number of the axis grid where each first feature point is located, and the horizontal number and vertical number of the axis grid where the second feature point corresponding to each first feature point is located, the adjusted two-dimensional engineering drawing and the adjusted three-dimensional model are scaled to the same standard scale.

[0084] The present invention scales the drawing and the model to the same standard scale to achieve precise alignment.

[0085] The traditional 2D-3D linkage of drawing models relies on the user to provide a reference system and spatial coordinate conversion ratio. Through the user-provided 3D unified z-axis plane A (x1, y1), B (x2, y2) and the 2D drawings A' (x'1, y'1), B' (x'2, y'2) corresponding to points A and B, the spatial coordinate relationship from 3D to 2D is obtained through computer-aided calculation, and the coordinates from 3D (x, y) are converted to 2D (x', y').

[0086]

[0087] However, in business practice, the above conversion method is not accurate. The present invention proposes a new ratio conversion method.

[0088] The drawing-model-reality precise geometric matching method based on the axis grid can automatically match the axis grid data standardized in the design phase to provide a benchmark for spatial coordinate transformation. This method is more accurate and convenient than traditional manual spatial reference. And finding the nearest axis grid correspondence in the spatial coordinate transformation can reduce the calculation error caused by the truncation of the computer spatial coordinate transformation calculation. This method solves the problem of accurate spatial matching coordinate transformation between drawing and model through the above two parts. On this basis, the present invention can automatically perform two-dimensional and three-dimensional space conversion on the spatial coordinates obtained by manually associating the real-life image with the drawing, so as to achieve one-time association and accurate matching of the drawing-model-reality in all states.

[0089] The step S4, obtaining a real-scene picture to be linked, determining a coordinate conversion relationship between the scaled two-dimensional engineering drawing and the scaled three-dimensional model; determining the orthographic viewing angle of the real-scene picture to be linked, establishing a mapping relationship between the real-scene picture to be linked and the scaled two-dimensional engineering drawing; and mapping the real-scene picture to be linked to the scaled three-dimensional model based on the coordinate conversion relationship and the mapping relationship, includes:

[0090] Obtaining a real-scene picture to be linked, wherein the real-scene picture is a real-scene picture of the construction site;

[0091] Determine the coordinate transformation relationship between the two-dimensional engineering drawing and the three-dimensional model scaled to the same standard scale; use the positive direction of the panoramic initial perspective of the real scene picture to be linked as the positive perspective, select matching points in the scaled two-dimensional engineering drawing and the real scene picture to be linked to form point pairs, and establish a vector expression of the positive perspective of the real scene picture to be linked on the scaled two-dimensional engineering drawing based on the coordinates of each point in the point pair:

[0092]

[0093] a represents the coordinates of the point on the real scene image to be linked in the point alignment on the scaled two-dimensional engineering drawing, and a' represents the coordinates of the point on the scaled two-dimensional engineering drawing in the point alignment on the real scene image to be linked;

[0094] Based on the vector expression, determining a mapping relationship between the real scene picture to be linked and the scaled two-dimensional engineering drawing;

[0095] Based on the mapping relationship, the coordinates and elevations of the feature points in the real scene picture to be linked on the scaled two-dimensional drawing are determined, and then based on the coordinate conversion relationship, the real scene picture to be linked is mapped to the scaled three-dimensional model.

[0096] In the present invention, based on the third alignment and matching result, a linkage of the coordinate conversion relationship between the adjusted two-dimensional engineering drawing and the adjusted three-dimensional model is established, and in the display interface of the specific software system, by clicking on any point in the two-dimensional engineering drawing or the three-dimensional model, the view of the corresponding point in the corresponding three-dimensional model or the two-dimensional engineering drawing can be displayed simultaneously. On the basis of being able to determine the mapping relationship between the real-scene picture to be linked and the adjusted two-dimensional engineering drawing to be linked, a linkage of coordinates and perspectives between the real-scene picture to be linked and the two-dimensional engineering drawing is established, that is, by clicking on the real-scene picture associated coordinate point on the two-dimensional drawing, the two-dimensional engineering drawing and the real-scene picture can be automatically displayed on the same screen, the two-dimensional engineering drawing can be automatically focused and enlarged to the real-scene picture associated point, and the current panoramic view direction can be displayed on the two-dimensional engineering drawing. Based on the coordinate conversion relationship, the established linkage of the coordinate and perspective relationship between the real-scene picture and the two-dimensional engineering drawing is automatically mapped to the three-dimensional model.

[0097] Using the previously created coordinate conversion relationship between the 2D engineering drawing and the 3D model, the coordinates of the real scene on the 2D drawing are converted to the camera position coordinates in the 3D model, and the identifier is automatically added. The vector representation of the real scene's orthographic angle on the 2D drawing is converted to a 3D vector representing the camera's observation direction. The camera's upward direction in the 3D model corresponds to the z-axis.

[0098] The three-dimensional coordinates of the linked three-dimensional model are used to express the camera position, camera observation direction and camera upward direction corresponding to the real scene image, that is, the correspondence between the viewing angle of the real scene image to be linked and the observation camera viewport of the three-dimensional model after linkage is determined. According to the correspondence, the perspective linkage between the real scene image to be linked and the linked three-dimensional model is established. In the display interface of the specific software system, the operation of rotating the three-dimensional model or any point in the real scene image to be linked can simultaneously reproduce the operation rotation of the corresponding real scene image to be linked or the three-dimensional model.

[0099] Furthermore, the same-scale scaling is established for the linked two-dimensional engineering drawings and three-dimensional models, that is, when the linked two-dimensional engineering drawings and three-dimensional models are displayed on the same screen, the linked two-dimensional engineering drawings and three-dimensional models are scaled to the same scale, so that when any one of the linked two-dimensional engineering drawings and three-dimensional models moves, the other moves synchronously in the same direction and relative displacement.

[0100] In this invention, since the axis grid matching of the drawing and the model has been achieved in the second part of the drawing-model-real-world precise data matching, the positive directions of the x and y axes of the drawing and the model are already correlated and matched. When two or three-dimensional drawings are displayed on the same screen, the two or three dimensions are automatically scaled to the same scale according to the axis grid. When one of the drawing model is moved, the other is also moved in exactly the same way. When the three-dimensional movement Δx, Δy, the proportional relationship between the two-dimensional movement Δx', Δy' is:

[0101]

[0102] When linking drawings and real scenes, the initial panorama viewpoint positive direction set when linking drawings and real scenes is aligned with the positive z-axis using the vector coordinates in the drawing. This links the z-axis viewpoint rotation in the drawing with the panorama's rotation about the z-axis. The x-axis and y-axis rotation relationships are ignored during the linking operation.

[0103] During the model-reality linkage operation, the z-axis positive direction alignment and the vector coordinate expression of the initial viewing angle positive direction obtained through the drawing-reality linkage operation, as well as the x- and y-axis grid alignment obtained through the drawing-model linkage operation, realize the association relationship between the x, y, and z-axis rotation angles of the model drawing.

[0104] Furthermore, the method includes step S5: reviewing the linked two-dimensional engineering drawings, three-dimensional models, and real-scene pictures.

[0105] like Figure 2 As shown, the present invention also provides a device for linking and integrating engineering drawings, three-dimensional models, and real-life pictures, the device comprising:

[0106] Bottom-layer construction module: configured to set up the bottom-layer database for building 2D engineering drawings and 3D models;

[0107] First alignment module: configured to generate a two-dimensional engineering drawing and a three-dimensional model to be linked based on the underlying database, and perform a first alignment match based on the elevation of the two-dimensional engineering drawing to be linked and the z-axis section of the three-dimensional model corresponding to the height;

[0108] Second alignment module: Based on the results of the first alignment, it is configured to perform a second alignment of the 2D engineering drawings and 3D models to be linked, i.e., axial grid direction matching, to achieve the adjustment of the 2D engineering drawings and 3D models;

[0109] Linkage module: configured to scale the adjusted two-dimensional engineering drawings and the adjusted three-dimensional models to the same standard scale; obtain the real-scene picture to be linked, determine the coordinate conversion relationship between the scaled two-dimensional engineering drawings and the scaled three-dimensional model; determine the positive viewing angle of the real-scene picture to be linked, and establish a mapping relationship between the real-scene picture to be linked and the scaled two-dimensional engineering drawings; based on the coordinate conversion relationship and the mapping relationship, map the real-scene picture to be linked to the scaled three-dimensional model.

[0110] The above specific embodiments merely illustrate the design principles of the present invention. The shapes and names of the components described herein may vary and are not limiting. Therefore, those skilled in the art may modify or substitute equivalents for the technical solutions described in the above embodiments. Such modifications and substitutions, without departing from the inventive spirit and technical solutions of the present invention, shall fall within the scope of protection of the present invention.

Claims

1. A method for linking and integrating engineering drawings, three-dimensional models, and real-life pictures, characterized in that: include: Step S1: Setting up the underlying database for constructing two-dimensional engineering drawings and three-dimensional models; Step S2: Generate a two-dimensional engineering drawing and a three-dimensional model to be linked based on the underlying database, and perform a first alignment match based on the elevation of the two-dimensional engineering drawing to be linked and the z-axis section of the three-dimensional model corresponding to the height; Step S3: Based on the result of the first alignment and matching, the two-dimensional engineering drawing and the three-dimensional model to be linked are aligned and matched for the second time, that is, the axis grid direction is matched, so as to realize the adjustment of the two-dimensional engineering drawing and the three-dimensional model; Step S4: scaling the adjusted two-dimensional engineering drawing and the adjusted three-dimensional model to the same standard scale; obtaining the real scene picture to be linked, and determining the coordinate conversion relationship between the scaled two-dimensional engineering drawing and the scaled three-dimensional model; Determine the positive viewing angle of the real scene picture to be linked, and establish a mapping relationship between the real scene picture to be linked and the scaled two-dimensional engineering drawing; Based on the coordinate conversion relationship and the mapping relationship, the real scene picture to be linked is mapped onto the scaled three-dimensional model.

2. The method according to claim 1, characterized in that The underlying database stores primitives, primitive identifiers, and primitive attributes used to construct two-dimensional engineering drawings, and the primitive attributes include primitive type, layer information, position information, parametric geometric information, custom attributes, and primitive general attributes; wherein the layer information is used to indicate the hierarchy of the primitive in the two-dimensional engineering drawings, and the position information is used to indicate the position of the primitive in the two-dimensional engineering drawings; the underlying database stores components, component identifiers, and component attributes used to construct three-dimensional models, and the component attributes include geometric attributes, general attributes, and custom attributes.

3. The method according to claim 2, characterized in that The generating of the two-dimensional engineering drawings and three-dimensional models to be linked based on the underlying database includes: According to the actual information of the construction project, the required primitives are selected from the underlying database, each primitive is instantiated, and a number of two-dimensional engineering drawings are generated; the required components are selected from the underlying database, each component is instantiated, and a number of three-dimensional models are generated; wherein, for each two-dimensional engineering drawing, a corresponding axis grid and axis grid information are generated, the axis grid has an x-axis and a y-axis, the x-axis represents the horizontal direction of the two-dimensional engineering drawing, the y-axis represents the longitudinal direction of the two-dimensional engineering drawing, and the axis grid information represents the design direction and design size of the two-dimensional engineering drawing; for each three-dimensional model, a corresponding axis grid and axis grid information are generated, the axis grid has an x-axis, a y-axis and a z-axis, the x-axis represents the horizontal direction of the cross section of the three-dimensional model, the y-axis represents the longitudinal direction of the cross section of the three-dimensional model, the z-axis represents the vertical direction of the longitudinal section of the three-dimensional model, the z-axis section of the three-dimensional model corresponds to the height of the three-dimensional model, and the axis grid information represents the design direction and design size of the three-dimensional model; Determining the two-dimensional engineering drawings and three-dimensional models to be linked from the two-dimensional engineering drawings and three-dimensional models; The grid information of the two-dimensional engineering drawings to be linked, the element identification, element attributes, connection relationship, and dependency relationship of each instantiated element, and the grid information of the three-dimensional model to be linked, the component identification, component attributes, connection relationship, and dependency relationship of each instantiated component are stored in the business database.

4. The method according to any one of claims 1 to 3, characterized in that The step S4: scaling the adjusted two-dimensional engineering drawing and the adjusted three-dimensional model to the same standard scale includes: Step S41: extracting first feature points of a plurality of instantiated graphic elements from the rectified two-dimensional engineering drawing; extracting second feature points corresponding to each first feature point from the rectified three-dimensional model; Step S42: Perform the following operations for each first feature point P(x, y), where x and y are the horizontal coordinate and vertical coordinate of the first feature point respectively: Determine the horizontal number i and the vertical number j of the axis grid where the first characteristic point P (x, y) is located in the adjusted two-dimensional engineering drawing: Among them, x n The nth x-axis grid of the 2D engineering drawing after adjustment, m The mth y-axis grid of the two-dimensional engineering drawing after adjustment, x i is the i-th x-axis grid of the 2D engineering drawing after adjustment, y j The jth y-axis grid of the two-dimensional engineering drawing after adjustment; Step S43: Determine the horizontal number x' and the vertical number y' of the axis grid where each second characteristic point is located in the adjusted three-dimensional model: Among them, x′ i , y′ i are the horizontal and vertical coordinates of the second feature point respectively; Step S44: Based on the horizontal number and vertical number of the axis grid where each first feature point is located, and the horizontal number and vertical number of the axis grid where the second feature point corresponding to each first feature point is located, the adjusted two-dimensional engineering drawing and the adjusted three-dimensional model are scaled to the same standard scale.

5. The method according to claim 4, characterized in that The step S4 is to obtain the real scene picture to be linked, determine the coordinate conversion relationship between the scaled two-dimensional engineering drawing and the scaled three-dimensional model; determine the positive viewing angle of the real scene picture to be linked, and establish a mapping relationship between the real scene picture to be linked and the scaled two-dimensional engineering drawing; Based on the coordinate conversion relationship and the mapping relationship, mapping the real scene picture to be linked to the scaled three-dimensional model includes: Obtaining a real-scene picture to be linked, wherein the real-scene picture is a real-scene picture of the construction site; Determine the coordinate conversion relationship between the two-dimensional engineering drawings and the three-dimensional model scaled to the same standard scale; take the positive direction of the panoramic initial perspective of the real scene picture to be linked as the positive perspective, select the matching points in the scaled two-dimensional engineering drawings and the real scene picture to be linked to form a point pair, and establish a vector expression of the positive perspective of the real scene picture to be linked on the scaled two-dimensional engineering drawings according to the coordinates of each point in the point pair: a represents the coordinates of the point on the real scene image to be linked in the point pair on the scaled two-dimensional engineering drawing, and a' represents the coordinates of the point on the scaled two-dimensional engineering drawing in the point pair on the real scene image to be linked; Based on the vector expression, determining a mapping relationship between the real scene picture to be linked and the scaled two-dimensional engineering drawing; Based on the mapping relationship, the coordinates and elevations of the feature points in the real scene picture to be linked on the scaled two-dimensional drawing are determined, and then based on the coordinate conversion relationship, the real scene picture to be linked is mapped to the scaled three-dimensional model.

6. A device for linking and integrating engineering drawings, three-dimensional models, and real-life pictures, characterized in that: include: Bottom-layer construction module: configured to set up the bottom-layer database for constructing two-dimensional engineering drawings and three-dimensional models; The first alignment module is configured to generate the two-dimensional engineering drawings and three-dimensional models to be linked based on the underlying database, and perform the first alignment matching based on the elevation of the two-dimensional engineering drawings to be linked and the z-axis section of the three-dimensional model corresponding to the height; Second alignment module: configured to perform a second alignment and matching on the two-dimensional engineering drawings and three-dimensional models to be linked based on the first alignment and matching results, that is, axis grid direction matching, to achieve the adjustment of the two-dimensional engineering drawings and three-dimensional models; Linkage module: configured to scale the adjusted two-dimensional engineering drawings and the adjusted three-dimensional models to the same standard scale; obtain the real scene picture to be linked, and determine the coordinate conversion relationship between the scaled two-dimensional engineering drawings and the scaled three-dimensional models; Determine the positive viewing angle of the real scene picture to be linked, and establish a mapping relationship between the real scene picture to be linked and the scaled two-dimensional engineering drawing; Based on the coordinate conversion relationship and the mapping relationship, the real scene picture to be linked is mapped onto the scaled three-dimensional model.

7. A computer-readable storage medium, wherein a plurality of instructions are stored in the storage medium; the plurality of instructions are used for a processor to load and execute the method as claimed in any one of claims 1 to 5.

8. An electronic device, characterized in that: The electronic device comprises: A processor, which is used to execute multiple instructions; A memory for storing a plurality of instructions; The plurality of instructions are used to be stored in the memory and loaded and executed by the processor according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and apparatus for researching and determining construction security risk

    CN107688908A

  • Linkage display platform of live-action three-dimensional data and two-dimensional raster pictures and linkage method thereof

    CN111273877A

  • Graph-model linkage marking method, system and equipment, and graph-model linkage checking method, system and equipment

    CN113643405A

  • Building measurement management method and system based on digital twinning

    CN114331194A

  • Data linkage editing method and device between three-dimensional virtual scene and two-dimensional view

    CN116630589A

Cited By

  • Method for managing three-dimensional drawings of building components

    CN120147575A