CN114549376A - Method, device, equipment and storage medium for calculating superposition of book graph and plan graph - Google Patents
Method, device, equipment and storage medium for calculating superposition of book graph and plan graph Download PDFInfo
- Publication number
- CN114549376A CN114549376A CN202210023245.0A CN202210023245A CN114549376A CN 114549376 A CN114549376 A CN 114549376A CN 202210023245 A CN202210023245 A CN 202210023245A CN 114549376 A CN114549376 A CN 114549376A
- Authority
- CN
- China
- Prior art keywords
- book
- closed shape
- plan
- shape
- coordinate
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000004364 calculation method Methods 0.000 claims abstract description 142
- 238000004590 computer program Methods 0.000 claims description 9
- 238000004891 communication Methods 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 8
- 238000013507 mapping Methods 0.000 claims description 7
- 238000012795 verification Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 61
- 238000011960 computer-aided design Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 229910000831 Steel Inorganic materials 0.000 description 2
- 238000012550 audit Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 239000010959 steel Substances 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003014 reinforcing effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/50—Image enhancement or restoration using two or more images, e.g. averaging or subtraction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/187—Segmentation; Edge detection involving region growing; involving region merging; involving connected component labelling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20212—Image combination
- G06T2207/20221—Image fusion; Image merging
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Processing Or Creating Images (AREA)
Abstract
The application relates to a method, a device, equipment and a storage medium for superposing a computer book and a plan, and relates to the field of drawing verification. The superposition method of the calculation book drawings and the plan drawings comprises the following steps: acquiring each first closed shape in the calculation book and drawing and shape parameters of each first closed shape; acquiring each second closed shape in the plan view and shape parameters of each second closed shape; acquiring a first coordinate of the target point in the calculation book and a second coordinate of the target point in the plan according to the shape parameters of the first closed shapes and the shape parameters of the second closed shapes; and moving the calculation book graph to the plane graph for superposition according to the first coordinate and the second coordinate. The method and the device are used for solving the problems that when the plan is checked according to the calculation of the book and the drawing, the calculation of the book and the plan need to be manually aligned, and the operation is complex.
Description
Technical Field
The present application relates to the field of drawings auditing, and in particular, to a method, an apparatus, a device, and a storage medium for superimposing a computer book and a plan.
Background
The calculation book is data or results of checking each performance index of the structure, and is a reference basis for drawing a plan by a designer. When the plan drawn by the designer is checked, the contents of the book and the drawing need to be combined to carry out rule checking in business.
Currently, according to the plan view of checking the computer book, the computer book and the plan view are manually aligned by a user through an interactive interface at the front end. The disadvantage is that a front-end interactive interface is required for the user to drag the computer book onto the plan view. The wall column, beam and plate plan of different floors needs to correspond to a plurality of calculation books, for example, the wall column plan of one to eighteen floors needs to correspond to 5 types of calculation books, the total number of the calculation books is 18, the manual alignment of 5 × 18 is needed to be 90 times, and the use is very complicated.
Disclosure of Invention
The application provides a method, a device, equipment and a storage medium for superposing a calculation book and a plan, which are used for solving the problem of complex operation caused by the need of manually aligning the calculation book and the plan when the plan is checked according to the calculation book.
In a first aspect, an embodiment of the present application provides a method for superimposing a computer book drawing and a plan drawing, including:
acquiring each first closed shape in the calculation book and drawing and shape parameters of each first closed shape;
acquiring each second closed shape in a plan view and shape parameters of each second closed shape;
according to the shape parameters of the first closed shapes and the shape parameters of the second closed shapes, acquiring first coordinates of target points in the calculation book graph and second coordinates of the target points in the plane graph;
and moving the calculation book graph into the plane graph for superposition according to the first coordinate and the second coordinate.
Optionally, the acquiring each first closed shape in the computed book includes:
dividing the calculation book into each picture frame;
establishing a mapping relation between the picture frame and each line segment in the picture frame;
acquiring each wall column line segment according to the layer information in the calculation book and drawing;
acquiring wall column line segments inside the picture frame according to the mapping relation;
and splicing the wall column line segments inside the picture frame into the first closed shape.
Optionally, the dividing the computational book into frames comprises:
generating a target image corresponding to the calculation book and graph;
acquiring position information of each contour in the target image;
obtaining the distance between each contour according to the position information of each contour;
and dividing the outlines of which the distances are smaller than a preset distance value into the same picture frame.
Optionally, each second closed shape in the acquired plan view includes:
and splicing the line segments of the same layer in the plan to generate the second closed shape.
Optionally, before the obtaining of each first closed shape in the computed book, the method further includes:
acquiring a board calculation book and a non-board calculation book;
acquiring a third coordinate of the first central point of the board calculation book in the board calculation book;
acquiring a fourth coordinate of a second central point of the non-board calculation book in the non-board calculation book;
and moving the board calculation book into the non-board calculation book for superposition according to the third coordinate and the fourth coordinate to generate the calculation book graph.
Optionally, the obtaining a first coordinate of the target point in the computed book and a second coordinate of the target point in the plan view according to the shape parameter of each first closed shape and the shape parameter of each second closed shape includes:
generating a calculation book and drawing closed shape set according to the first closed shape with the shape parameter as the target shape parameter;
generating a plan view closed shape set according to the second closed shape with the shape parameter as the target shape parameter;
superposing each first closed shape in the calculation book graph closed shape set and each second closed shape in the plane graph closed shape set to obtain a contact ratio;
taking a coincidence point in the first closed shape and the second closed shape with the highest coincidence degree as the target point;
and acquiring the first coordinate of the target point in the calculation book graph and the second coordinate of the target point in the plan graph.
Optionally, the overlapping each first closed shape in the book and drawing closed shape set and each second closed shape in the plan view closed shape set to obtain a coincidence ratio includes:
combining any one of the first closed shapes in the computer book drawing closed shape set and any one of the second closed shapes in the plan view closed shape set into a closed shape pair;
moving the calculation book graph to the plane graph for superposition according to the position information of the closed shape pair to generate a superposed image;
acquiring the first pixel quantity of a superposition region in the superposed image and the second pixel quantity in the calculation book and graph;
and calculating the ratio of the first pixel quantity to the second pixel quantity as the coincidence degree.
In a second aspect, an embodiment of the present application provides a device for superimposing a computer book and a plan view, including:
the first acquisition module is used for acquiring each first closed shape in the calculation book and graph and the shape parameter of each first closed shape;
the second acquisition module is used for acquiring each second closed shape in the plan view and the shape parameter of each second closed shape;
the first processing module is used for acquiring a first coordinate of a target point in the calculation book and drawing and a second coordinate of the target point in the plan according to the shape parameter of each first closed shape and the shape parameter of each second closed shape;
and the second processing module is used for moving the calculation book and graph to the plane graph for superposition according to the first coordinate and the second coordinate.
In a third aspect, an embodiment of the present application provides an electronic device, including: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor is configured to execute the program stored in the memory, and implement the method for superimposing the computer book and the plan view according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method for superimposing a book diagram and a plan diagram according to the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: the method provided by the embodiment of the application obtains each first closed shape and shape parameters of each first closed shape in the calculation book diagram, obtains each second closed shape and shape parameters of each second closed shape in the plan view, obtains a first coordinate of a target point in the calculation book diagram and a 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, and moves the calculation book diagram to the plan view for superposition according to the first coordinate and the second coordinate.
According to the method, when the calculation book diagram is moved to the plane diagram to be overlapped, the target point of the coincidence of the book diagram and the plane diagram is calculated by calculating the shape parameter of the first closed shape in the book diagram and the shape parameter of the second closed shape in the plane diagram, the movement parameter of the coordinate of each point in the calculation book diagram is obtained according to the first coordinate of the target point in the calculation book diagram and the second coordinate of the target point in the plane diagram, the calculation book diagram is moved to the plane diagram to be overlapped, the positions of all components in the calculation book diagram are consistent with the positions in the plane diagram, the automatic alignment calculation of the audit book diagram and the plane diagram is conveniently realized according to the calculation book diagram, and the problems that when the plane diagram is audited according to the calculation book diagram, the calculation book diagram and the plane diagram need to be manually aligned, and the operation is complicated are solved.
Drawings
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.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a flow chart illustrating a method for calculating the superposition of a book drawing and a plan drawing in an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for obtaining each first closed shape in a computer book according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for dividing a computer book into frames according to an embodiment of the present application;
FIG. 4 is a schematic flow chart illustrating a method for obtaining a first coordinate and a second coordinate according to an embodiment of the present application;
FIG. 5 is a schematic flow chart of a method for obtaining contact ratio in an embodiment of the present application;
FIG. 6 is a schematic representation of a computer book and plan view before superimposition in one embodiment of the present application;
FIG. 7 is a schematic illustration of a computer book and plan view after folding according to a first folding method in an embodiment of the present application;
FIG. 8 is a schematic illustration of a computer book and plan view after folding according to a second folding method in an embodiment of the present application;
FIG. 9 is a schematic structural diagram of a folding device for calculating book drawings and plan views in the embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the embodiment of the present application, a method for superimposing a computer book and a plan view is provided, and the method may be applied to a server, and certainly may also be applied to other electronic devices, such as a terminal (a mobile phone, a tablet computer, etc.). In the embodiment of the present application, the method is described as being applied to a server.
In the embodiment of the present application, as shown in fig. 1, the flow of the method for calculating the superposition of the book diagram and the plan diagram mainly includes:
There are many types of computer books, including but not limited to the following list of several types: the method comprises the following steps of edge member sketch, beam-wall column node load sketch, concrete member reinforcing bar and steel member stress ratio, member number section drawing, cast-in-place plate calculated steel bar area drawing, wall column axial compression ratio sketch, wall column axial compression ratio and length coefficient sketch. Each type of computer book map is associated with a different plan view.
The first closed shape may be a wall stud, and may be other members, and the first closed shape is explained as a wall stud in this application, but is not limited to a specific type of the first closed shape.
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, and the shape parameters of the first closed shape may further include other parameters as needed, and the application does not limit the specific parameters included in the shape parameters of the first closed shape.
In a specific embodiment, as shown in fig. 2, obtaining each first closed shape in the computer book includes:
Since the plan view is divided into frames and the calculation book is compared with the plan view, the calculation book is divided into frames.
In one embodiment, as shown in FIG. 3, dividing the computer book into frames includes:
The Computer book is usually a CAD (Computer Aided Design) drawing. The target image may be a binary image. The binary image refers to an image in which each pixel point is black or white.
Each contour in the target image and the position information of each contour can be identified using cvFindContours (OPENCV image processing library, retrieving contours from binary images and returning the number of detected contours).
And step 303, obtaining the distance between the outlines according to the position information of the outlines.
In step 304, the contours with the distances smaller than the preset distance value are divided into the same picture frame.
There may be individual members identified as a contour, so that contours having a distance smaller than a predetermined distance value are divided in the same frame. And taking the circumscribed rectangle of the outline with the distance smaller than the preset distance value as a picture frame.
And determining each line segment in the frame by judging the inclusion relation between the coordinates of the two end points of each line segment and the frame coordinates. And establishing a mapping relation between the picture frame and each line segment in the picture frame.
And step 203, acquiring each wall column line segment according to the layer information in the calculation book.
Layers of the calculation book and the drawing are generally generated by calculation book software, and the names of the layers are fixed. For example, since the line segment represented as a wall post is always present in a fixed layer such as "concrete wall" or "SPRE _ SPECWA _ OUT", it is possible to determine which line segments belong to the wall post line segment directly by the layer name.
And step 205, splicing the wall column line segments inside the picture frame into a first closed shape.
And respectively combining the wall column line segments in each picture frame, judging that the two line segments are connected as long as the coordinates of one end point in the two line segments are the same, and judging that the line segments can form a first closed shape when one end of one line segment is connected with one end of the first line segment. Namely, the shape formed by all line segments connected end to end is taken as a first closed shape.
If the calculation book is a calculation book of the wall beam column, since the calculation book of the wall beam column is consistent with the drawing method on the plan view and is in a closed shape, each first closed shape in the calculation book and the shape parameters of each first closed shape can be directly obtained according to the step 101. If the calculation book is a board calculation book, because the calculation book of the board does not contain a wall column, the board is in a shape enclosed by the wall column and a beam, the calculation book of the board is composed of line segments and is not in a closed shape, but the board on a plan view is in the closed shape, the board cannot be directly compared by the board, and the first closed shapes in the calculation book and the shape parameters of the first closed shapes cannot be directly obtained according to the step 101. Non-board computer books have closed shapes. The following specific example is how movement of a board computer book into a plan view is achieved with a non-board computer book.
In a specific embodiment, before obtaining each first closed shape in the calculation book, the method for superimposing the calculation book and the plan further includes: acquiring a board calculation book and a non-board calculation book; acquiring a third coordinate of the first central point of the board calculation book in the board calculation book; acquiring a fourth coordinate of the second central point of the non-board calculation book in the non-board calculation book; and moving the board calculation book into the non-board calculation book for superposition according to the third coordinate and the fourth coordinate to generate a calculation book and drawing.
The second center point of the non-board computer book is the center point of the frame in the non-board computer book. The center point of the picture frame in the non-board calculation book is coincided with the center point of the board calculation book, the board calculation book is moved into the non-board calculation book, and the board calculation book is moved into the plan view by moving the non-board calculation book into the plan view.
And 102, acquiring each second closed shape in the plan view and shape parameters of each second closed shape.
The plan view refers to a structural plan view. The plan view is typically a CAD (Computer Aided Design) drawing.
The second closed shape may be a wall stud, and may be other members, and the second closed shape is explained as a wall stud in this application, but is not limited to a specific type of the second closed shape.
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, and the shape parameters of the second closed shape may further include other parameters as needed, and the application does not limit the specific parameters included in the shape parameters of the second closed shape.
In one embodiment, obtaining each second closed shape in the plan view includes: and splicing the line segments of the same layer in the plane graph to generate a second closed shape.
The plan is generally drawn by designers, the naming and drawing modes of layers by designers are not the same, the wall line drawing layers in the plan are not fixed, and the specific layer in the plan is the layer where the wall line and the pillar line are located cannot be determined. Therefore, the line segments in the same layer in the plan view are spliced to generate a second closed shape, and the second closed shape is used as a wall column.
And 103, acquiring a first coordinate of the target point in the calculation book and a second coordinate of the target point in the plane graph according to the shape parameter of each first closed shape and the shape parameter of each second closed shape.
The target point is a point at which the calculation book and the plan view overlap each other when the calculation book and the plan view overlap each other and the positions of the respective members in the calculation book and the plan view coincide with each other.
In one embodiment, as shown in fig. 4, acquiring a first coordinate of the target point in the calculation book and a second coordinate of the target point in the plan view according to the shape parameter of each first closed shape and the shape parameter of each second closed shape includes:
The target shape parameter refers to the same shape parameter, for example, the target shape parameter is 10 in area and 6 in number of contour points.
If a designer draws a plan view exactly as the computer book, then the set of computer book closed shapes and the set of plan view closed shapes are the same. In some cases, however, the designer may make some adaptive changes to the structural plan view in order to satisfy the computational book, so that the wall studs in the plan view are different from the corresponding wall studs in the computational book.
And 403, overlapping each first closed shape in the book and drawing closed shape set and each second closed shape in the plane drawing closed shape set to obtain the overlap ratio.
In one embodiment, as shown in fig. 5, the superimposing each first closed shape in the closed shape set of the calculation book diagram and each second closed shape in the closed shape set of the plane diagram to obtain the overlap ratio includes:
For example, if the target shape parameter is 10 in area and the number of contour points is 6, the set of closed shapes in the book of computation includes A, B, C, D, and the set of closed shapes in the plan view includes E, F, G, then there are 12 pairs of closed shapes after permutation and combination, namely AE, AF, AG, BE, BF, BG, CE, CF, CG, DE, DF, and DG.
For example, assuming that the calculation book and the plane map are superimposed based on the AE closed shape pair, specifically, the vertex at the upper left corner of the a shape in the calculation book may be moved to the vertex at the upper left corner of the E shape in the plane map, and the vertices of other closed shapes in the calculation book may be moved accordingly with reference to the vertex at the upper left corner of the a shape. And after the movement is finished, generating an overlapped image according to the overlapped calculation book and plan.
In step 504, a ratio of the first number of pixels to the second number of pixels is calculated as a coincidence degree.
In one embodiment, as shown in FIG. 6, a schematic view of a computer book and a plan view before folding. Fig. 7 is a schematic diagram of a computer book and a plan view after superposition according to a first superposition mode. Fig. 8 is a schematic diagram of a computer book and a plan view after superposition according to a second superposition mode. In fig. 6, the dotted rectangle represents a frame of the calculation book, the frame of the calculation book includes 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, and belongs to the calculation book closed shape set, the solid rectangle represents a frame of the plan, the frame of the plan includes 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, and belongs to the plan closed shape set. In fig. 7, the calculated book and the plan view are superimposed based on the pair of AC closed shapes, and the region surrounded by the thick solid line is the superimposed region and the degree of superimposition is 100%. In fig. 8, the calculated book and the plan view are superimposed based on the pair of AD closed shapes, and the region surrounded by the thick solid line is the superimposed region and the degree of superimposition is 23%.
And step 404, taking the coincidence point in the first closed shape and the second closed shape with the highest coincidence degree as a target point.
And 104, moving the calculation book graph to a plane graph for superposition according to the first coordinate and the second coordinate.
The step of moving the calculation book diagram to the plane diagram for superimposition may be to obtain a conversion matrix of the coordinates of the calculation book diagram moving to the coordinates of the plane diagram according to the first coordinate and the second coordinate, and further convert the coordinates of each point in the calculation book diagram into the coordinates of each point in the plane diagram according to the conversion matrix, thereby implementing the step of moving the calculation book diagram to the plane diagram for superimposition.
In summary, the method provided by the embodiment of the present application obtains each first closed shape in the calculation book and the shape parameter of each first closed shape, obtains each second closed shape in the plan view and the shape parameter of each second closed shape, obtains a first coordinate of the target point in the calculation book and a second coordinate of the target point in the plan view according to the shape parameter of each first closed shape and the shape parameter of each second closed shape, and moves the calculation book to the plan view for superimposition according to the first coordinate and the second coordinate.
According to the method, when the calculation book diagram is moved to the plane diagram to be overlapped, the target point of the coincidence of the book diagram and the plane diagram is calculated by calculating the shape parameter of the first closed shape in the book diagram and the shape parameter of the second closed shape in the plane diagram, the movement parameter of the coordinate of each point in the calculation book diagram is obtained according to the first coordinate of the target point in the calculation book diagram and the second coordinate of the target point in the plane diagram, the calculation book diagram is moved to the plane diagram to be overlapped, the positions of all components in the calculation book diagram are consistent with the positions in the plane diagram, the automatic alignment calculation of the audit book diagram and the plane diagram is conveniently realized according to the calculation book diagram, and the problems that when the plane diagram is audited according to the calculation book diagram, the calculation book diagram and the plane diagram need to be manually aligned, and the operation is complicated are solved.
Based on the same concept, the embodiment of the present application provides a device for superimposing a computer book and a plan view, and the specific implementation of the device may refer to the description of the method embodiment, and repeated parts are not repeated, as shown in fig. 9, the device mainly includes:
a first obtaining module 901, configured to obtain each first closed shape in the computational book and the shape parameter of each first closed shape;
a second obtaining module 902, configured to obtain each second closed shape in the plan view and a shape parameter of each second closed shape;
a first processing module 903, configured to obtain, according to the shape parameter of each first closed shape and the shape parameter of each second closed shape, a first coordinate of a target point in the computer book and a second coordinate of the target point in the plan view;
a second processing module 904, configured to move the computational book and graph into the plan view for superimposition according to the first coordinate and the second coordinate.
Based on the same concept, an embodiment of the present application further provides an electronic device, as shown in fig. 10, 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 via 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, so as to implement the following steps:
acquiring each first closed shape in the calculation book and drawing and shape parameters of each first closed shape; acquiring each second closed shape in the plan view and shape parameters of each second closed shape; acquiring a first coordinate of the target point in the calculation book and a second coordinate of the target point in the plan according to the shape parameters of the first closed shapes and the shape parameters of the second closed shapes; and moving the calculation book graph to the plane graph for superposition according to the first coordinate and the second coordinate.
The communication bus 1003 mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 1003 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 10, but this is not intended to represent only one bus or type of bus.
The Memory 1002 may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Alternatively, the memory may be at least one storage device located remotely from the aforementioned processor 1001.
The Processor 1001 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc., and may 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, and discrete hardware components.
In yet another embodiment of the present application, there is also provided a computer-readable storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the method of superimposing a computer book and a plan view described in the above embodiment.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may 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 loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes, etc.), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A method of superimposing a computer book and a plan view, comprising:
acquiring each first closed shape in the calculation book and drawing and shape parameters of each first closed shape;
acquiring each second closed shape in a plan view and shape parameters of each second closed shape;
acquiring a first coordinate of a target point in the calculation book and a second coordinate of the target point in the plan according to the shape parameter of each first closed shape and the shape parameter of each second closed shape;
and moving the calculation book graph into the plane graph for superposition according to the first coordinate and the second coordinate.
2. The method of superimposing a computer book and a plan view according to claim 1, wherein the obtaining each first closed shape in the computer book comprises:
dividing the calculation book into each picture frame;
establishing a mapping relation between the picture frame and each line segment in the picture frame;
acquiring each wall column line segment according to the layer information in the calculation book and drawing;
acquiring wall column line segments inside the picture frame according to the mapping relation;
and splicing the wall column line segments inside the picture frame into the first closed shape.
3. The method of superimposing a computer book and a plan according to claim 2, wherein said dividing of the computer book into frames comprises:
generating a target image corresponding to the calculation book and graph;
acquiring position information of each contour in the target image;
obtaining the distance between the outlines according to the position information of the outlines;
and dividing the outlines of which the distances are smaller than a preset distance value into the same picture frame.
4. The method of superimposing computer book and plan views according to claim 1, wherein the obtaining of each second closed shape in plan view comprises:
and splicing the line segments of the same layer in the plan to generate the second closed shape.
5. The method of superimposing a computer book and a plan view according to claim 1, wherein before the obtaining of each first closed shape in the computer book, the method further comprises:
acquiring a board calculation book and a non-board calculation book;
acquiring a third coordinate of the first central point of the board calculation book in the board calculation book;
acquiring a fourth coordinate of a second central point of the non-board calculation book in the non-board calculation book;
and moving the board calculation book into the non-board calculation book for superposition according to the third coordinate and the fourth coordinate to generate the calculation book graph.
6. The method for superimposing a computer book and a plan view according to claim 1, wherein the obtaining a first coordinate of a target point in the computer book and a second coordinate of the target point in the plan view according to the shape parameter of each first closed shape and the shape parameter of each second closed shape comprises:
generating a calculation book and drawing closed shape set according to the first closed shape with the shape parameter as the target shape parameter;
generating a plan view closed shape set according to the second closed shape with the shape parameter as the target shape parameter;
superposing each first closed shape in the calculation book drawing closed shape set and each second closed shape in the plan drawing closed shape set to obtain the contact ratio;
taking a coincidence point in the first closed shape and the second closed shape with the highest coincidence degree as the target point;
and acquiring the first coordinate of the target point in the calculation book graph and the second coordinate of the target point in the plan graph.
7. The method for superimposing a computer book and a plan view according to claim 6, wherein the superimposing each first closed shape in the computer book closed shape set and each second closed shape in the plan view closed shape set to obtain a degree of superimposition comprises:
combining any one of the first closed shapes in the computer book drawing closed shape set and any one of the second closed shapes in the plan view closed shape set into a closed shape pair;
moving the calculation book graph to the plane graph for superposition according to the position information of the closed shape pair to generate a superposed image;
acquiring the first pixel quantity of a superposition region in the superposed image and the second pixel quantity in the calculation book and graph;
and calculating the ratio of the first pixel quantity to the second pixel quantity as the coincidence degree.
8. A computer book and plan overlay apparatus comprising:
the first acquisition module is used for acquiring each first closed shape in the calculation book and graph and the shape parameter of each first closed shape;
the second acquisition module is used for acquiring each second closed shape in the plan view and the shape parameter of each second closed shape;
the first processing module is used for acquiring a first coordinate of a target point in the calculation book and drawing and a second coordinate of the target point in the plan according to the shape parameter of each first closed shape and the shape parameter of each second closed shape;
and the second processing module is used for moving the calculation book and graph to the plane graph for superposition according to the first coordinate and the second coordinate.
9. An electronic device, comprising: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor, executing the program stored in the memory, implementing the method of superimposing a computer book and a plan according to any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method of superimposing a computer book and a plan according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210023245.0A CN114549376A (en) | 2022-01-10 | 2022-01-10 | Method, device, equipment and storage medium for calculating superposition of book graph and plan graph |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210023245.0A CN114549376A (en) | 2022-01-10 | 2022-01-10 | Method, device, equipment and storage medium for calculating superposition of book graph and plan graph |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114549376A true CN114549376A (en) | 2022-05-27 |
Family
ID=81670138
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210023245.0A Pending CN114549376A (en) | 2022-01-10 | 2022-01-10 | Method, device, equipment and storage medium for calculating superposition of book graph and plan graph |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114549376A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115186341A (en) * | 2022-07-08 | 2022-10-14 | 中国建筑西南设计研究院有限公司 | Edge component parameter calculation method based on local coordinate transformation |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110991050A (en) * | 2019-12-06 | 2020-04-10 | 万翼科技有限公司 | CAD (computer-aided design) image stacking method and related product |
CN111046462A (en) * | 2019-11-27 | 2020-04-21 | 湖南城市学院 | Drawing display system and method for outdoor building design |
WO2020177453A1 (en) * | 2019-03-07 | 2020-09-10 | 北京海益同展信息科技有限公司 | Method and apparatus for constructing floor plan based on uwb technology |
CN113673413A (en) * | 2021-08-16 | 2021-11-19 | 金地(集团)股份有限公司 | Method and device for examining architectural drawings, computer readable medium and electronic equipment |
-
2022
- 2022-01-10 CN CN202210023245.0A patent/CN114549376A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020177453A1 (en) * | 2019-03-07 | 2020-09-10 | 北京海益同展信息科技有限公司 | Method and apparatus for constructing floor plan based on uwb technology |
CN111046462A (en) * | 2019-11-27 | 2020-04-21 | 湖南城市学院 | Drawing display system and method for outdoor building design |
CN110991050A (en) * | 2019-12-06 | 2020-04-10 | 万翼科技有限公司 | CAD (computer-aided design) image stacking method and related product |
CN113673413A (en) * | 2021-08-16 | 2021-11-19 | 金地(集团)股份有限公司 | Method and device for examining architectural drawings, computer readable medium and electronic equipment |
Non-Patent Citations (1)
Title |
---|
张维锦 等: "结构施工图中暗柱识别算法研究", 华东交通大学学报, vol. 32, no. 02, 30 April 2015 (2015-04-30), pages 117 - 122 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115186341A (en) * | 2022-07-08 | 2022-10-14 | 中国建筑西南设计研究院有限公司 | Edge component parameter calculation method based on local coordinate transformation |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11288413B2 (en) | Method for automatic modeling of an architecture based on an architectural drawing | |
CN110307838B (en) | Robot repositioning method and device, computer-readable storage medium and robot | |
CN113205024A (en) | Engineering drawing preprocessing method and device, electronic equipment and storage medium | |
CN111290684B (en) | Image display method, image display device and terminal equipment | |
AU2022368364B2 (en) | Control method, device, equipment and storage medium for interactive reproduction of target object | |
CN114357574A (en) | Component editing method, device, equipment and storage medium based on parameterized drive | |
CN111857704A (en) | Code generation method and device for layout relationship | |
CN114549376A (en) | Method, device, equipment and storage medium for calculating superposition of book graph and plan graph | |
CN111968246B (en) | Scene switching method and device, electronic equipment and storage medium | |
CN114445844A (en) | Plate member identification method, device, equipment and storage medium | |
CN116385859A (en) | Primitive identification method, device, computer equipment and medium thereof | |
CN108280135B (en) | Method and device for realizing visualization of data structure and electronic equipment | |
CN114898076A (en) | Model label adding method and device, electronic equipment and storage medium | |
CN114444168A (en) | Method and device for identifying wall column in building drawing, electronic equipment and storage medium | |
CN110378948B (en) | 3D model reconstruction method and device and electronic equipment | |
März | A well-posedness framework for inpainting based on coherence transport | |
CN111612838A (en) | Image acquisition method and device and electronic equipment | |
CN116630912A (en) | Three-dimensional semantic occupation prediction method, system, equipment, medium and product | |
CN114283415A (en) | Parking space identification method and device, electronic equipment and storage medium | |
CN113872798A (en) | Method and device for constructing space network topological graph, storage medium and electronic equipment | |
CN110309314B (en) | Generation method and device of blood relationship graph, electronic equipment and storage medium | |
CN113392453B (en) | Space extraction method and device in engineering drawing, electronic equipment and storage medium | |
CN118154826B (en) | Image processing method, device, equipment and storage medium | |
CN112907294B (en) | Parking space pricing method and related product | |
CN114882024B (en) | Target object defect detection method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20230625 Address after: A601, Zhongke Naneng Building, No. 06 Yuexing 6th Road, Gaoxin District Community, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 518063 Applicant after: Shenzhen Wanyi Digital Technology Co.,Ltd. Address before: 519085 room 105-24914, No.6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province (centralized office area) Applicant before: WANYI TECHNOLOGY Co.,Ltd. |