Method, device, equipment and storage medium for superimposing calculation book drawings and plan drawings
By obtaining the closed shape and shape parameters in the calculation book diagram and the plan diagram, calculating the coordinates of the target point, and moving the calculation book diagram to the plan diagram for overlapping, automatic alignment of the calculation book diagram and the plan diagram is achieved, solving the problem of cumbersome manual alignment operation and improving the review efficiency.
Patent Information
- Application Number
- CN202210023245.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-10
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2042-01-10
AI Technical Summary
In the prior art, when reviewing the plan according to the calculation book drawing, it is necessary to manually align the calculation book drawing and the plan drawing, which is cumbersome.
By obtaining the closed shape and shape parameters in the calculation book and plan view, the coordinates of the target point are calculated, and the calculation book is moved to the plan view for overlapping according to these coordinates to achieve automatic alignment.
Reduce the number of manual alignments, improve the review efficiency, and solve the problem of cumbersome operation.
Smart Images

Figure CN114549376B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of drawing review, and in particular to a method, device, equipment and storage medium for superimposing a calculation book drawing and a plan drawing. Background Art
[0002] The calculation book is the data or result of checking various performance indicators of the structure, and is the reference for designers to draw floor plans. When reviewing the floor plans drawn by designers, it is necessary to conduct a rule review in conjunction with the contents of the calculation book.
[0003] At present, the floor plan is reviewed based on the calculation book drawing, and the user manually aligns the calculation book drawing with the floor plan through the front-end interactive interface. The disadvantage is that the front-end interactive interface is required for users to drag the calculation book drawing to the floor plan. The floor plans of walls, columns, beams, and slabs on different floors need to correspond to multiple calculation books. For example, the "wall column floor plan from the first to the eighteenth floor" needs to correspond to 5 types of calculation books, a total of 18 floors, and manual alignment is required 5*18=90 times, which is very cumbersome to use. Summary of the invention
[0004] The present application provides a method, device, equipment and storage medium for superimposing a calculation book drawing and a plan drawing, so as to solve the problem that when reviewing a plan drawing based on a calculation book drawing, it is necessary to manually align the calculation book drawing and the plan drawing, which is a cumbersome operation.
[0005] In a first aspect, an embodiment of the present application provides a method for calculating the superposition of a book drawing and a plane drawing, comprising:
[0006] Obtaining each first closed shape in the calculation book figure and shape parameters of each first closed shape;
[0007] Acquire each second closed shape in the plan view and shape parameters of each second closed shape;
[0008] According to the shape parameters of each of the first closed shapes and the shape parameters of each of the second closed shapes, obtaining a first coordinate of a target point in the calculation book drawing and a second coordinate of the target point in the plane drawing;
[0009] According to the first coordinate and the second coordinate, the calculation book drawing is moved to the plane drawing for superposition.
[0010] Optionally, obtaining each first closed shape in the calculation book diagram includes:
[0011] Dividing the calculation book diagram into individual drawing frames;
[0012] Establishing a mapping relationship between the drawing frame and each line segment inside the drawing frame;
[0013] According to the layer information in the calculation book drawing, each wall column line segment is obtained;
[0014] According to the mapping relationship, obtaining the wall column line segments inside the frame;
[0015] The wall column line segments inside the frame are spliced into the first closed shape.
[0016] Optionally, dividing the calculation book diagram into various diagram frames includes:
[0017] Generate a target image corresponding to the calculation book image;
[0018] Acquire position information of each contour in the target image;
[0019] Obtaining the distances between the contours according to the position information of the contours;
[0020] The contours whose distance is less than the preset distance value are divided into the same frame.
[0021] Optionally, the obtaining of each second closed shape in the plan view includes:
[0022] The line segments of the same layer in the plan view are spliced to generate the second closed shape.
[0023] Optionally, before obtaining each first closed shape in the calculation book figure, the method further includes:
[0024] Obtain plate calculations and non-plate calculations;
[0025] Obtain the third coordinate of the first center point of the plate calculation book in the plate calculation book;
[0026] Obtaining a fourth coordinate of the second center point of the non-plate calculation sheet in the non-plate calculation sheet;
[0027] According to the third coordinate and the fourth coordinate, the plate calculation book is moved to the non-plate calculation book for superposition to generate the calculation book diagram.
[0028] Optionally, acquiring the first coordinate of the target point in the calculation book diagram and the second coordinate of the target point in the plan view according to the shape parameters of the respective first closed shapes and the shape parameters of the respective second closed shapes comprises:
[0029] Generate a calculation book closed shape set according to the first closed shape whose shape parameters are target shape parameters;
[0030] Generate a plan view closed shape set according to the second closed shape whose shape parameter is the target shape parameter;
[0031] Superimposing each first closed shape in the calculation book closed shape set and each second closed shape in the plane closed shape set to obtain a degree of overlap;
[0032] taking the coincident point in the first closed shape and the second closed shape with the highest coincidence degree as the target point;
[0033] Obtain the first coordinates of the target point in the calculation book drawing and the second coordinates of the target point in the plane drawing.
[0034] Optionally, the step of superimposing each first closed shape in the calculation book closed shape set and each second closed shape in the plan view closed shape set to obtain a degree of overlap includes:
[0035] Combining any one of the first closed shapes in the set of closed shapes in the calculation diagram and any one of the second closed shapes in the set of closed shapes in the plan view into a closed shape pair;
[0036] According to the position information of the closed shape pair, the calculation book image is moved to the plane image for superposition to generate a superimposed image;
[0037] Obtaining a first number of pixels in the overlapped area of the superimposed image and a second number of pixels in the calculated image;
[0038] The ratio of the first number of pixels to the second number of pixels is calculated as the degree of overlap.
[0039] In a second aspect, an embodiment of the present application provides a device for superimposing a calculation book diagram and a plane diagram, comprising:
[0040] A first acquisition module, used to acquire each first closed shape in the calculation book figure and shape parameters of each first closed shape;
[0041] A second acquisition module, used to acquire each second closed shape in the plan view and shape parameters of each second closed shape;
[0042] A first processing module, configured to obtain a first coordinate of a target point in the calculation book diagram and a second coordinate of the target point in the plane diagram according to shape parameters of each of the first closed shapes and shape parameters of each of the second closed shapes;
[0043] The second processing module is used to move the calculation book diagram to the plane diagram for superposition according to the first coordinates and the second coordinates.
[0044] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory, and a communication bus, wherein the processor and the memory communicate with each other via the communication bus;
[0045] The memory is used to store computer programs;
[0046] The processor is used to execute the program stored in the memory to implement the method for superimposing the calculation book diagram and the plane diagram described in the first aspect.
[0047] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method for superimposing a calculation book diagram and a plan view described in the first aspect.
[0048] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art: the method provided by the embodiment of the present application obtains each first closed shape in the calculation book drawing, and the shape parameters of each first closed shape, obtains each second closed shape in the plan view, and the shape parameters of each second closed shape, obtains the first coordinates of the target point in the calculation book drawing, and the second coordinates of the target point in the plan view according to the shape parameters of each first closed shape and the shape parameters of each second closed shape, and moves the calculation book drawing to the plan view for superposition according to the first coordinate and the second coordinate.
[0049] The present application calculates the shape parameters of the first closed shape in the book drawing and the shape parameters of the second closed shape in the plan view, finds the target point where the calculation book drawing and the plan view overlap when the calculation book drawing is moved to the plan view for superposition, and then obtains the movement parameters of the coordinates of each point in the calculation book drawing according to the first coordinate of the target point in the book drawing and the second coordinate of the target point in the plan view, and then moves the calculation book drawing to the plan view for superposition, so that the positions of each component in the calculation book drawing are consistent with those in the plan view, which facilitates the review of the plan view according to the calculation book drawing and realizes automatic alignment of the calculation book drawing and the plan view, solving the problem of manual alignment of the calculation book drawing and the cumbersome operation when reviewing the plan view according to the calculation book drawing. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0052] Figure 1 A schematic flow chart of a method for calculating the overlap of a book image and a plan view in an embodiment of the present application;
[0053] Figure 2 A schematic diagram of a method flow chart for obtaining each first closed shape in a calculation book diagram in a specific embodiment of the present application;
[0054] Figure 3 A schematic flow chart of a method for dividing a calculation book diagram into various diagram frames in a specific embodiment of the present application;
[0055] Figure 4 This is a schematic diagram of a method flow for obtaining a first coordinate and a second coordinate in a specific embodiment of the present application;
[0056] Figure 5 This is a flow chart of a method for obtaining the degree of overlap in a specific embodiment of the present application;
[0057] Figure 6 A schematic diagram of a calculation sheet diagram and a plan view before superposition in a specific embodiment of the present application;
[0058] Figure 7 A schematic diagram of a calculation diagram and a plan view after superposition according to the first superposition method in a specific embodiment of the present application;
[0059] Figure 8 A schematic diagram of a calculation diagram and a plan view after superposition according to the second superposition method in a specific embodiment of the present application;
[0060] Fig. 9 It is a schematic diagram of the structure of the device for superimposing a book drawing and a plane drawing in an embodiment of the present application;
[0061] Fig.10 Schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0062] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0063] In an embodiment of the present application, a method for calculating the superposition of a book map and a plan view is provided, and the method can be applied to a server, and of course, can also be applied to other electronic devices, such as terminals (mobile phones, tablet computers, etc.). In an embodiment of the present application, the method is applied to a server as an example for description.
[0064] In the present application embodiment, Figure 1 As shown in FIG. 1 , the method flow for calculating the superposition of the book drawing and the plane drawing mainly includes:
[0065] Step 101, obtaining each first closed shape in the calculation book figure and shape parameters of each first closed shape.
[0066] There are many types of calculation drawings, including but not limited to the following types: edge component diagram, beam-wall-column node load diagram, concrete component reinforcement and steel component stress ratio, component number section diagram, cast-in-place slab steel area calculation diagram, wall-column combined axial compression ratio diagram, wall-column axial compression ratio and length factor diagram. Each calculation drawing must correspond to a different plane drawing.
[0067] The first closed shape may be a wall column or other components. In the present application, the first closed shape is explained as a wall column, but the specific type of the first closed shape is not limited.
[0068] The shape parameters of the first closed shape may include the area of the first closed shape and the number of contour points of the first closed shape. As needed, the shape parameters of the first closed shape may also include other parameters. The present application does not limit the specific parameters included in the shape parameters of the first closed shape.
[0069] In a specific embodiment, Figure 2 As shown, obtaining each first closed shape in the calculation book diagram includes:
[0070] Step 201, dividing the calculation book into various frames.
[0071] Since the plan view is divided into frames, the calculation drawing needs to be compared with the plan view, so the calculation drawing must also be divided into frames.
[0072] In a specific embodiment, Figure 3 As shown, the calculation book diagram is divided into various frames, including:
[0073] Step 301, generating a target image corresponding to the calculation book image.
[0074] The computer drawing is usually a CAD (Computer Aided Design) drawing. The target image can be a binary image. A binary image refers to an image in which each pixel is black or white.
[0075] Step 302: Obtain the position information of each contour in the target image.
[0076] You can use cvFindContours (OPENCV image processing library, retrieve contours from binary images, and return the number of detected contours) to identify each contour in the target image and obtain the location information of each contour.
[0077] Step 303: Obtain the distance between each contour according to the position information of each contour.
[0078] Step 304: group the contours whose distance is less than a preset distance value into the same frame.
[0079] There may be a single component that is recognized as a contour, so the contours whose distance is less than the preset distance value are divided into the same frame. The bounding rectangle of the contours whose distance is less than the preset distance value is regarded as a frame.
[0080] Step 202: Establish a mapping relationship between the frame and each line segment inside the frame.
[0081] By judging the inclusion relationship between the coordinates of the two end points of each line segment and the coordinates of the drawing frame, each line segment inside the drawing frame is determined, and a mapping relationship between the drawing frame and each line segment inside the drawing frame is established.
[0082] Step 203, obtaining each wall column line segment according to the layer information in the calculation book drawing.
[0083] The layers of the calculation book drawing are generally generated by the calculation book software, and the layer names are fixed. For example, the line segments represented as wall columns must exist in fixed layers such as "concrete wall" or "SPRE_SPECWA_OUT", so you can directly judge which line segments belong to wall column segments by the layer name.
[0084] Step 204, obtaining the wall column line segments inside the frame according to the mapping relationship.
[0085] Step 205, splicing the wall column line segments inside the frame into a first closed shape.
[0086] Merge the column line segments in each frame respectively. As long as the coordinates of one of the endpoints of two line segments are the same, it can be determined that the two line segments are connected. When one end of one line segment is connected to one end of the first line segment, it can be determined that these line segments can form a first closed shape. That is, the shape formed by the line segments connected end to end is regarded as the first closed shape.
[0087] If the calculation book is a calculation book for walls, beams and columns, since the calculation book for walls, beams and columns is drawn in the same way as on the plan view, and they are all closed shapes, you can directly follow step 101 to obtain each first closed shape in the calculation book diagram, as well as the shape parameters of each first closed shape. If the calculation book is a plate calculation book, since the plate calculation book does not include wall columns, the plate is a shape surrounded by wall columns and beams, and the plate calculation book is composed of various line segments, not a closed shape, while the plate is a closed shape on the plan view, and it is impossible to directly use the plate for comparison, and it is impossible to directly follow step 101 to obtain each first closed shape in the calculation book diagram, as well as the shape parameters of each first closed shape, and it is necessary to use a non-plate calculation book to do this. There are closed shapes in non-plate calculation books. The following specific embodiment shows how to use a non-plate calculation book to move the plate calculation book to the plan view.
[0088] In a specific embodiment, before obtaining each first closed shape in the calculation book diagram, the method for superimposing the calculation book diagram and the plane diagram also includes: obtaining a plate calculation book and a non-plate calculation book; obtaining the third coordinate of the first center point of the plate calculation book in the plate calculation book; obtaining the fourth coordinate of the second center point of the non-plate calculation book in the non-plate calculation book; and according to the third coordinate and the fourth coordinate, moving the plate calculation book to the non-plate calculation book for superimposition to generate a calculation book diagram.
[0089] The second center point of the non-plate calculation book refers to the center point of the drawing frame in the non-plate calculation book. By aligning the center point of the drawing frame in the non-plate calculation book with the center point of the plate calculation book, the plate calculation book is moved to the non-plate calculation book, and by moving the non-plate calculation book to the plan view, the plate calculation book is moved to the plan view.
[0090] Step 102: Obtain each second closed shape in the plan view and shape parameters of each second closed shape.
[0091] A floor plan refers to a structural plan, which is usually a CAD (Computer Aided Design) drawing.
[0092] The second closed shape may be a wall column or other components. In the present application, the second closed shape is explained as a wall column, but the specific type of the second closed shape is not limited.
[0093] The shape parameters of the second closed shape may include the area of the second closed shape and the number of contour points of the second closed shape. The shape parameters of the second closed shape may also include other parameters as needed. The present application does not limit the specific parameters included in the shape parameters of the second closed shape.
[0094] In a specific embodiment, obtaining each second closed shape in the plan view includes: splicing line segments of the same layer in the plan view to generate the second closed shape.
[0095] flat Figure 1 Generally, it is drawn by the designer himself. Different designers have different naming and drawing methods for the layers. The wall line layer in the plan view is not fixed. It is impossible to determine which layer is the wall line and column line layer in the plan view. Therefore, the line segments of the same layer in the plan view are spliced to generate a second closed shape, which is used as the wall column. There are other shapes, such as edge components, but since it is impossible to determine which are the wall columns, closed shapes other than these wall columns are not excluded.
[0096] Step 103, obtaining the first coordinates of the target point in the calculation diagram and the second coordinates of the target point in the plane diagram according to the shape parameters of each first closed shape and the shape parameters of each second closed shape.
[0097] The target point refers to the point where the calculation drawing and the plan view overlap when the positions of each component in the calculation drawing are consistent with those in the plan view.
[0098] In a specific embodiment, Figure 4 As shown, according to the shape parameters of each first closed shape and the shape parameters of each second closed shape, obtaining the first coordinate of the target point in the calculation book diagram and the second coordinate of the target point in the plane diagram includes:
[0099] Step 401, generating a calculation book closed shape set according to a first closed shape whose shape parameters are target shape parameters.
[0100] The target shape parameter refers to the same shape parameter, for example, the target shape parameter is, the area is 10, and the number of contour points is 6.
[0101] Step 402: Generate a plan view closed shape set according to a second closed shape whose shape parameters are target shape parameters.
[0102] If a designer draws the floor plan strictly according to the calculation book, the closed shape set of the calculation book and the closed shape set of the floor plan are the same. However, in some cases, the designer will make some adaptive changes to the structural floor plan while satisfying the calculation book, so that the wall columns in the floor plan are slightly different from the corresponding wall columns in the calculation book.
[0103] Step 403: Superimpose each first closed shape in the calculation book closed shape set and each second closed shape in the plane closed shape set to obtain a degree of overlap.
[0104] In a specific embodiment, Figure 5As shown, each first closed shape in the calculation book closed shape set and each second closed shape in the plane closed shape set are superimposed to obtain the overlap degree, including:
[0105] Step 501, combining any first closed shape in the calculation book closed shape set and any second closed shape in the plane closed shape set into a closed shape pair.
[0106] For example, the target shape parameters are area 10 and the number of contour points 6. The calculation book closed shape set includes A, B, C, D, and the plane closed shape set includes E, F, G. Then after permutation and combination, there are 12 pairs of closed shapes: AE, AF, AG, BE, BF, BG, CE, CF, CG, DE, DF, DG.
[0107] Step 502, according to the position information of the closed shape pair, the calculated book image is moved to the plane image for superposition to generate a superimposed image.
[0108] For example, assuming that the calculation book diagram and the plane diagram are superimposed based on the AE closed shape pair, specifically, the upper left corner vertex of the shape A in the calculation book diagram can be moved to the upper left corner vertex of the shape E in the plane diagram, and the vertices of other closed shapes on the calculation book diagram are moved accordingly with reference to the upper left corner vertex of the shape A. After completing the above movement, a superimposed image is generated based on the superimposed calculation book diagram and the plane diagram.
[0109] Step 503, obtaining the first pixel number of the overlapping area in the superimposed image, and calculating the second pixel number in the book image.
[0110] Step 504: Calculate the ratio of the first pixel number to the second pixel number as the overlap degree.
[0111] In a specific embodiment, Figure 6 As shown in the figure, it is a schematic diagram of the calculation book diagram and the plane diagram before superposition. Figure 7 As shown in the figure, it is a schematic diagram of the calculation book diagram and the plane diagram after superposition according to the first superposition method. Figure 8 As shown, it is a schematic diagram of the calculation book drawing and the plane drawing after superposition according to the second superposition method. Figure 6 In the figure, the dotted rectangular box represents the frame of the calculation book figure, which includes the first closed shapes A and B. The areas of the first closed shapes A and B are both 10, and the number of contour points is 6, which belongs to the closed shape set of the calculation book figure. The solid rectangular box represents the frame of the plane figure, which includes the second closed shapes C and D. The areas of the second closed shapes C and D are both 10, and the number of contour points is 6, which belongs to the closed shape set of the plane figure. Figure 7In the figure, the calculation book drawing and the plane drawing are superimposed based on the AC closed shape pair. The area surrounded by the thick solid line is the overlapping area, and the overlap degree is 100%. Figure 8 In the figure, the calculation book diagram and the plane diagram are superimposed based on the AD closed shape pair. The area enclosed by the thick solid line is the overlapping area, and the overlap degree is 23%.
[0112] Step 404: Use the overlapping points in the first closed shape and the second closed shape with the highest overlap as target points.
[0113] Step 405, obtaining the first coordinate of the target point in the calculation diagram and the second coordinate of the target point in the plane diagram.
[0114] Step 104, according to the first coordinate and the second coordinate, the calculation book drawing is moved to the plane drawing for superposition.
[0115] According to the first coordinate and the second coordinate, the calculation book figure is moved to the plane view for superposition. The transformation matrix of the coordinates of the calculation book figure to the coordinates in the plane view is obtained according to the first coordinate and the second coordinate, and then the coordinates of each point in the calculation book figure are converted into the coordinates of each point in the plane view according to the transformation matrix, so as to realize moving the calculation book figure to the plane view for superposition.
[0116] In summary, the method provided by the embodiment of the present application obtains each first closed shape in the calculation book drawing, and the shape parameters of each first closed shape, obtains each second closed shape in the plan view, and the shape parameters of each second closed shape, obtains the first coordinates of the target point in the calculation book drawing, and the second coordinates of the target point in the plan view according to the shape parameters of each first closed shape and the shape parameters of each second closed shape, and moves the calculation book drawing to the plan view for superposition according to the first coordinate and the second coordinate.
[0117] The present application calculates the shape parameters of the first closed shape in the book drawing and the shape parameters of the second closed shape in the plan view, finds the target point where the calculation book drawing and the plan view overlap when the calculation book drawing is moved to the plan view for superposition, and then obtains the movement parameters of the coordinates of each point in the calculation book drawing according to the first coordinate of the target point in the book drawing and the second coordinate of the target point in the plan view, and then moves the calculation book drawing to the plan view for superposition, so that the positions of each component in the calculation book drawing are consistent with those in the plan view, which facilitates the review of the plan view according to the calculation book drawing and realizes automatic alignment of the calculation book drawing and the plan view, solving the problem of manual alignment of the calculation book drawing and the cumbersome operation when reviewing the plan view according to the calculation book drawing.
[0118] Based on the same concept, an apparatus for superimposing a calculation book diagram and a plane diagram is provided in an embodiment of the present application. The specific implementation of the apparatus can be found in the description of the method embodiment part, and the repeated parts will not be repeated. Fig. 9 As shown, the device mainly includes:
[0119] The first acquisition module 901 is used to acquire each first closed shape in the calculation book figure and shape parameters of each first closed shape;
[0120] A second acquisition module 902, used to acquire each second closed shape in the plan view and shape parameters of each second closed shape;
[0121] A first processing module 903 is used to obtain a first coordinate of a target point in the calculation book diagram and a second coordinate of the target point in the plane diagram according to shape parameters of each of the first closed shapes and shape parameters of each of the second closed shapes;
[0122] The second processing module 904 is used to move the calculation book diagram to the plane diagram for superposition according to the first coordinates and the second coordinates.
[0123] Based on the same concept, an electronic device is also provided in the embodiment of the present application, such as Fig.10 As shown, the electronic device mainly includes: a processor 1001, a memory 1002 and a communication bus 1003, wherein the processor 1001 and the memory 1002 communicate with each other through the communication bus 1003. The memory 1002 stores a program executable by the processor 1001, and the processor 1001 executes the program stored in the memory 1002 to implement the following steps:
[0124] Obtain each first closed shape in the calculation book drawing and the shape parameters of each first closed shape; obtain each second closed shape in the plan view and the shape parameters of each second closed shape; obtain the first coordinate of the target point in the calculation book drawing and the second coordinate of the target point in the plan view according to the shape parameters of each first closed shape and the shape parameters of each second closed shape; move the calculation book drawing to the plan view for superposition according to the first coordinate and the second coordinate.
[0125] The communication bus 1003 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 1003 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.10Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0126] The memory 1002 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Alternatively, the memory may also be at least one storage device located away from the processor 1001.
[0127] The above-mentioned processor 1001 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc., and can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0128] In another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is run on a computer, the computer executes the method for superimposing the calculation book drawing and the plan drawing described in the above embodiment.
[0129] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instruction is transmitted from a website site, a computer, a server or a data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integration. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape, etc.), an optical medium (such as a DVD) or a semiconductor medium (such as a solid-state hard disk), etc.
[0130] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0131] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for superimposing a calculation book drawing and a plane drawing, characterized in that: include: Obtaining each first closed shape in the calculation book figure and shape parameters of each first closed shape; Acquire each second closed shape in the plan view and shape parameters of each second closed shape; According to the shape parameters of each of the first closed shapes and the shape parameters of each of the second closed shapes, obtaining a first coordinate of a target point in the calculation book drawing and a second coordinate of the target point in the plane drawing; According to the first coordinate and the second coordinate, the calculation book drawing is moved to the plane drawing for superposition; The step of obtaining each first closed shape in the calculation diagram includes: Dividing the calculation book diagram into individual drawing frames; Establishing a mapping relationship between the drawing frame and each line segment inside the drawing frame; According to the layer information in the calculation book drawing, each wall column line segment is obtained; According to the mapping relationship, obtaining the wall column line segments inside the frame; splicing the wall column line segments inside the frame into the first closed shape; The obtaining of each second closed shape in the plan view comprises: splicing line segments in the same layer of the plan view to generate the second closed shape; The step of acquiring the first coordinate of the target point in the calculation book diagram and the second coordinate of the target point in the plane diagram according to the shape parameters of the first closed shapes and the shape parameters of the second closed shapes comprises: Generate a calculation book closed shape set according to the first closed shape whose shape parameters are target shape parameters; Generate a plan view closed shape set according to the second closed shape whose shape parameter is the target shape parameter; Superimposing each first closed shape in the calculation book closed shape set and each second closed shape in the plane closed shape set to obtain a degree of overlap; taking the coincident point in the first closed shape and the second closed shape with the highest coincidence degree as the target point; Obtain the first coordinates of the target point in the calculation book drawing and the second coordinates of the target point in the plane drawing.
2. The method for superimposing a calculation book drawing and a plane drawing according to claim 1, characterized in that: The step of dividing the calculation book into various frames includes: Generate a target image corresponding to the calculation book image; Acquire position information of each contour in the target image; Obtaining the distances between the contours according to the position information of the contours; The contours whose distance is less than the preset distance value are divided into the same frame.
3. The method for superimposing a calculation book drawing and a plane drawing according to claim 1, characterized in that: Before obtaining each first closed shape in the calculation book figure, the method further includes: Obtain plate calculations and non-plate calculations; Obtain the third coordinate of the first center point of the plate calculation book in the plate calculation book; Obtaining a fourth coordinate of the second center point of the non-plate calculation sheet in the non-plate calculation sheet; According to the third coordinate and the fourth coordinate, the plate calculation book is moved to the non-plate calculation book for superposition to generate the calculation book diagram.
4. The method for superimposing a calculation book drawing and a plane drawing according to claim 1, characterized in that: The step of superimposing each first closed shape in the calculation book closed shape set and each second closed shape in the plane closed shape set to obtain a degree of overlap includes: Combining any one of the first closed shapes in the set of closed shapes in the calculation diagram and any one of the second closed shapes in the set of closed shapes in the plan view into a closed shape pair; According to the position information of the closed shape pair, the calculation book image is moved to the plane image for superposition to generate a superimposed image; Obtaining a first number of pixels in the overlapped area of the superimposed image and a second number of pixels in the calculated image; The ratio of the first number of pixels to the second number of pixels is calculated as the degree of overlap.
5. A device for superimposing a calculation book drawing and a plane drawing, characterized in that: include: A first acquisition module, used to acquire each first closed shape in the calculation book figure and shape parameters of each first closed shape; A second acquisition module, used to acquire each second closed shape in the plan view and shape parameters of each second closed shape; A first processing module, configured to obtain a first coordinate of a target point in the calculation book diagram and a second coordinate of the target point in the plane diagram according to shape parameters of each of the first closed shapes and shape parameters of each of the second closed shapes; A second processing module is used to move the calculation book diagram to the plane diagram for superposition according to the first coordinates and the second coordinates; The step of obtaining each first closed shape in the calculation book diagram includes: Dividing the calculation book diagram into individual drawing frames; Establishing a mapping relationship between the drawing frame and each line segment inside the drawing frame; According to the layer information in the calculation book drawing, each wall column line segment is obtained; According to the mapping relationship, obtaining the wall column line segments inside the frame; splicing the wall column line segments inside the frame into the first closed shape; The obtaining of each second closed shape in the plan view comprises: splicing line segments in the same layer of the plan view to generate the second closed shape; The step of acquiring the first coordinate of the target point in the calculation book diagram and the second coordinate of the target point in the plane diagram according to the shape parameters of the first closed shapes and the shape parameters of the second closed shapes comprises: Generate a calculation book closed shape set according to the first closed shape whose shape parameters are target shape parameters; Generate a plan view closed shape set according to the second closed shape whose shape parameter is the target shape parameter; Superimposing each first closed shape in the calculation book closed shape set and each second closed shape in the plane closed shape set to obtain a degree of overlap; taking the coincident point in the first closed shape and the second closed shape with the highest coincidence degree as the target point; Obtain the first coordinates of the target point in the calculation book drawing and the second coordinates of the target point in the plane drawing.
6. An electronic device, characterized in that: include: A processor, a memory and a communication bus, wherein the processor and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is used to execute the program stored in the memory to implement the method for superimposing the calculation book drawing and the plane drawing as described in any one of claims 1 to 4.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for superimposing a calculation book diagram and a plan view as described in any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
CAD overlay method and related products
CN110991050A
Architectural drawing auditing method and device, computer readable medium and electronic equipment
CN113673413A