CN112950748B - Building drawing splicing method and related device - Google Patents
Building drawing splicing method and related device Download PDFInfo
- Publication number
- CN112950748B CN112950748B CN202110134197.8A CN202110134197A CN112950748B CN 112950748 B CN112950748 B CN 112950748B CN 202110134197 A CN202110134197 A CN 202110134197A CN 112950748 B CN112950748 B CN 112950748B
- Authority
- CN
- China
- Prior art keywords
- image block
- block
- blocks
- image
- target
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000004590 computer program Methods 0.000 claims description 17
- 238000004891 communication Methods 0.000 claims description 14
- 238000012545 processing Methods 0.000 claims description 14
- 238000012216 screening Methods 0.000 claims description 8
- 230000009286 beneficial effect Effects 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 10
- 230000008569 process Effects 0.000 description 7
- 238000010276 construction Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000001360 synchronised effect Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000013500 data storage Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000009182 swimming Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformation in the plane of the image
- G06T3/40—Scaling the whole image or part thereof
- G06T3/4038—Scaling the whole image or part thereof for image mosaicing, i.e. plane images composed of plane sub-images
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2200/00—Indexing scheme for image data processing or generation, in general
- G06T2200/32—Indexing scheme for image data processing or generation, in general involving image mosaicing
Abstract
The application provides a building drawing splicing method and a related device, wherein the method comprises the following steps: determining a first image block which accords with a preset standard frame proportion in an original building drawing of a target building; cutting the graph blocks which need cutting but are not actually cut in the drawing editing attribute parameter indication in the first graph block to obtain updated second graph blocks; grouping the second image blocks according to a layer relation to obtain at least one image block group, wherein each image block group comprises at least one second image block with the same layer, and the layers of any two image block groups are different from each other; and determining target splicing blocks of each block group in the at least one block group, and obtaining a target building drawing composed of at least one target splicing block. The embodiment of the application is beneficial to improving the accuracy and the comprehensiveness of splicing the building drawings.
Description
Technical Field
The application relates to the technical field of building drawing splicing, in particular to a building drawing splicing method and a related device.
Background
At present, building drawing splicing software can only support and identify rectangular frames formed by multiple sections of lines, but cannot identify frames spliced by multiple sections of blocks, which can lead to missing identification of frames in a drawing or split one frame into multiple frames according to block units.
Disclosure of Invention
The embodiment of the application provides a building drawing splicing method and a related device, so as to improve the accuracy and the comprehensiveness of building drawing splicing.
In a first aspect, an embodiment of the present application provides a method for splicing building drawings, including:
determining a first image block which accords with a preset standard frame proportion in an original building drawing of a target building;
cutting the graph blocks which need cutting but are not actually cut in the drawing editing attribute parameter indication in the first graph block to obtain updated second graph blocks;
grouping the second image blocks according to a layer relation to obtain at least one image block group, wherein each image block group comprises at least one second image block with the same layer, and the layers of any two image block groups are different from each other;
and determining target splicing blocks of each block group in the at least one block group, and obtaining a target building drawing composed of at least one target splicing block.
In a second aspect, an embodiment of the present application provides a building drawing splicing apparatus, including a processing unit and a communication unit, where,
the processing unit is used for determining a first image block which accords with the preset standard frame proportion in the original building drawing of the target building; cutting the graph blocks which need cutting but are not actually cut in the drawing editing attribute parameter indication in the first graph block to obtain updated second graph blocks; grouping the second image blocks according to a layer relation to obtain at least one image block group, wherein each image block group comprises at least one second image block with the same layer, and the layers of any two image block groups are different from each other; and determining a target spliced block of each block group in the at least one block group, so as to obtain a target building drawing composed of at least one target spliced block.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured for execution by the processor, the programs comprising instructions for performing the steps of any of the methods of the first aspect of embodiments of the present application.
In a fourth aspect, embodiments of the present application provide a chip, including: a processor for calling and running a computer program from a memory, causing a device on which the chip is mounted to perform some or all of the steps as described in any of the methods of the first or second aspects of the embodiments of the present application.
In a fifth aspect, embodiments of the present application provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform some or all of the steps as described in any of the methods of the first or second aspects of embodiments of the present application.
In a sixth aspect, embodiments of the present application provide a computer program, wherein the computer program is operable to cause a computer to perform some or all of the steps as described in any of the methods of the first or second aspects of the embodiments of the present application. The computer program may be a software installation package.
It can be seen that in the embodiment of the present application, the electronic device first determines a first image block in an original building drawing of a target building, where the first image block meets a preset standard frame proportion; secondly, cutting the graph block which is required to be cut but is not actually cut in the first graph block according to the drawing editing attribute parameter indication, and obtaining an updated second graph block; then, grouping the second image blocks according to the layer relation to obtain at least one image block group, wherein each image block group comprises at least one second image block with the same layer, and the layers of any two image block groups are different from each other; and finally, determining target splicing blocks of each block group in at least one block group, and obtaining a target building drawing composed of at least one target splicing block. Because only the identical picture blocks of the picture layer are likely to be spliced into the picture frame, the spliced picture blocks formed after the picture layer is divided can avoid mixing of other picture layer picture blocks, and the cutting detection can avoid drawing confusion caused by the fact that the picture blocks which are actually forgotten to be cut are spliced by the drawing staff although the marks are needed to be cut, thereby being beneficial to improving the accuracy and the comprehensiveness of splicing the building drawing.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a method for splicing building drawings according to an embodiment of the present application;
fig. 3 is a functional unit composition block diagram of a building drawing splicing device provided in an embodiment of the present application;
fig. 4 is a functional unit block diagram of another building drawing splicing device according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims of the present application and in the above-described figures, are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
Currently, for frames in DWG drawings, only complete frames can be resolved by a program, and such frames spliced by a plurality of blocks can be eliminated for various reasons, or one frame is split into a plurality of frames according to the blocks.
Aiming at the problems, the embodiment of the application provides a building drawing splicing method and a related device, wherein a plurality of blocks possibly forming a frame are judged through an intersecting relation, then whether the formed range accords with the frame proportion is judged through the combined block range, after a suspected frame range is identified, line segments in the range are spliced and combined, a necessary element inner frame of the frame is searched through a fine rule, further identification and analysis of the spliced frames are realized, and more accurate and comprehensive basic data support is provided for drawing analysis related programs. Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device 110 according to an embodiment of the present application. The electronic device 110 comprises an application processor 120, a memory 130, a communication module 140, and one or more programs 131, wherein the application processor 120 is communicatively connected to both the memory 130 and the communication module 140 via an internal communication bus.
Wherein the one or more programs 131 are stored in the memory 130 and configured to be executed by the application processor 120, the one or more programs 131 comprising instructions for performing any of the steps of the method embodiments described above.
The Application processor 120 may be, for example, a central processing unit (Central Processing Unit, CPU), a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an Application-specific integrated circuit (ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various exemplary logic blocks, units and circuits described in connection with this disclosure. The processor may also be a combination that performs the function of a computation, e.g., a combination comprising one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication unit may be a communication module 140, a transceiver, a transceiving circuit, etc., and the storage unit may be a memory 130.
The memory 130 may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. The volatile memory may be random access memory (random access memory, RAM) which acts as an external cache. By way of example but not limitation, many forms of random access memory (random access memory, RAM) are available, such as Static RAM (SRAM), dynamic Random Access Memory (DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced Synchronous Dynamic Random Access Memory (ESDRAM), synchronous Link DRAM (SLDRAM), and direct memory bus RAM (DR RAM).
In a specific implementation, the application processor 120 is configured to perform any step performed by the electronic device in an embodiment of the method of the present application.
Referring to fig. 2, fig. 2 is a flow chart of a building drawing splicing method provided in an embodiment of the present application, which is applied to an electronic device 101, and the building drawing splicing method includes the following operations.
Step 201, determining a first block in the original building drawing of the target building, wherein the first block meets a preset standard frame proportion.
The target building may be, for example, an underground garage, a swimming pool, etc., which is not limited herein.
Wherein, the original building drawing is a DWG drawing.
The preset standard frame proportion is 0.707, and the proportion of A4, A3 and A1 standard publication papers can be adapted.
Wherein the first tile is a rectangular region tile containing at least one build instance, the coordinate range of the rectangular region tile covering the coordinate range of each build instance.
In this possible example, the determining the first block meeting the preset standard frame proportion in the original building drawing of the target building includes: extracting a plurality of original image blocks in an original building drawing of a target building, wherein each original image block is used for carrying out graphic illustration on one or more building elements of the target building; determining a maximum bounding box of each original image block, wherein the bounding box is used for representing a minimum rectangular area covering the coordinate range of the current original image block; and screening a first image block which accords with the preset standard image frame proportion from the plurality of original image blocks.
In this example, the electronic device determines the maximum bounding box of the original image block of the original building drawing, and screens the image block according to the preset standard image frame proportion, so as to avoid confusion of the splicing result caused by mixing the unconventional image block into the image block to be spliced, and improve the splicing accuracy.
Step 202, cutting the graph block which is required to be cut but is not actually cut in the first graph block and indicated by the drawing editing attribute parameter, so as to obtain an updated second graph block.
When the drawing staff edits the image blocks, descriptive information of the drawing editing attribute parameters can be recorded to clearly indicate whether the current image block needs to be cut to adapt to subsequent image splicing, and the general drawing staff can cut the image block in advance to enable the original image block to be the cut image block, if the drawing staff forgets to cut the image block, the electronic equipment can identify the situation and automatically complete cutting to accurately adapt to subsequent splicing requirements.
Step 203, grouping the second tiles according to a layer relationship to obtain at least one tile group, where each tile group includes at least one second tile of the same layer, and layers of any two tile groups are different from each other.
Step 204, determining a target splicing block of each block group in the at least one block group, so as to obtain a target building drawing composed of at least one target splicing block.
The target spliced image block is an integral image block obtained by processing and splicing more than two second image blocks, and any two second image blocks in the more than two second image blocks are in direct intersection or indirect correlation.
In a specific implementation, the determining the target splicing block of each block group in the at least one block group, to obtain a target building drawing composed of at least one target splicing block includes:
performing the following operation for each of the at least one block group to obtain a target building drawing consisting of at least one target spliced block;
combining coordinate ranges of second image blocks of the image block group processed at present according to the direct intersection and/or indirect intersection relationship to obtain at least one reference spliced image block;
and screening target splicing blocks which accord with the preset lengthening frame proportion from the at least one reference splicing block.
The preset lengthened picture frame proportion is the picture frame proportion of a lengthened drawing prescribed by national standard specification.
For example, assuming that tile A (coordinate ranges [ (x 1, x 2), (y 1, y 2) ]) and tile B (coordinate ranges [ (x 3, x 4), (y 1, y 2) ]) directly intersect (x2.ltoreq.x3), tile B and tile C (coordinate ranges [ (x 5, x 6), (y 1, y 2) ]) directly intersect (x4.ltoreq.x5), tile A and tile C indirectly intersect. And (3) carrying out coordinate range combination through the direct intersection and/or indirect intersection relationship to obtain the transverse coordinate range of the block D as (x 1, x 6). The longitudinal coordinate range of the block D is (y 1, y 2), then the frame range of the block D is [ (x 1, y 1), (x 6, y 2) ].
In this example, the electronic device can perform tile merging based on the direct intersection and/or the indirect intersection relationship, and take the reference tile that meets the preset elongated frame proportion as the target tile.
In this possible example, the direct correlation refers to that the horizontal coordinate ranges of two second tiles intersect and the vertical coordinate ranges are the same, and the indirect intersection refers to that the horizontal coordinate ranges of two second tiles establish an indirect intersection relationship through the horizontal coordinate range of another second tile, and the vertical coordinate ranges are the same.
In one possible example, after the target tile matching the preset elongated frame proportion is selected from the at least one reference tile, the method further includes: and respectively carrying out edge line combination on each target splicing block according to the horizontal direction and the vertical direction to generate an inner border line of each target splicing block.
In a specific implementation, edge merging refers to: and merging the horizontal lines in the range of the currently processed target spliced block according to the rules of identical layers and identical Y values, merging the vertical lines in the range of the currently processed target spliced block according to the rules of identical layers and identical X values, searching for the upper, lower, left and right inner frame lines according to the blank side proportion of the A3 drawing as a standard, and obtaining the inner frame lines if the upper, lower, left and right inner frame lines find out the straight lines meeting the conditions.
It should be noted that the horizontal direction and the vertical direction described in the embodiments of the present application are relative concepts, that is, the horizontal direction and the vertical direction can be interchanged to adapt to the current scheme, and are not limited to the horizontal direction and the vertical direction of the drawing coordinates.
It can be seen that in the embodiment of the present application, the electronic device first determines a first image block in an original building drawing of a target building, where the first image block meets a preset standard frame proportion; secondly, cutting the graph block which is required to be cut but is not actually cut in the first graph block according to the drawing editing attribute parameter indication, and obtaining an updated second graph block; then, grouping the second image blocks according to the layer relation to obtain at least one image block group, wherein each image block group comprises at least one second image block with the same layer, and the layers of any two image block groups are different from each other; and finally, determining target splicing blocks of each block group in at least one block group, and obtaining a target building drawing composed of at least one target splicing block. Because only the identical picture blocks of the picture layer are likely to be spliced into the picture frame, the spliced picture blocks formed after the picture layer is divided can avoid mixing of other picture layer picture blocks, and the cutting detection can avoid drawing confusion caused by the fact that the picture blocks which are actually forgotten to be cut are spliced by the drawing staff although the marks are needed to be cut, thereby being beneficial to improving the accuracy and the comprehensiveness of splicing the building drawing.
The embodiment of the application provides a building drawing splicing device, which can be a mobile terminal. Specifically, the building drawing splicing device is used for executing the steps executed by the mobile terminal in the building drawing splicing method. The building drawing splicing device provided by the embodiment of the application can comprise modules corresponding to the corresponding steps.
According to the embodiment of the application, the building drawing splicing device can be divided into the functional modules according to the method example, for example, each functional module can be divided corresponding to each function, and two or more functions can be integrated into one processing module. The integrated modules may be implemented in hardware or in software functional modules. The division of the modules in the embodiment of the present application is schematic, which is merely a logic function division, and other division manners may be implemented in practice.
Fig. 3 shows a possible structural diagram of the construction drawing splicing device according to the above embodiment, with the respective functional modules being divided in correspondence with the respective functions. As shown in fig. 3, the construction drawing splicing device 3 is applied to electronic equipment; the device comprises:
a determining unit 30, configured to determine a first block in an original building drawing of a target building, where the first block meets a preset standard frame proportion;
the clipping unit 31 is configured to clip a tile that is required to be clipped but is not actually clipped in the first tile indicated by the drawing editing attribute parameter, so as to obtain an updated second tile;
a grouping unit 32, configured to group the second tiles according to a layer relationship to obtain at least one tile group, where each tile group includes at least one second tile of the same layer, and layers of any two tile groups are different from each other;
the determining unit 30 is further configured to determine a target mosaic tile of each tile group in the at least one tile group, so as to obtain a target building drawing composed of at least one target mosaic tile.
In one possible example, in the determining the target mosaic tile of each tile group of the at least one tile group, the determining unit 30 is specifically configured to: performing the following operation for each of the at least one block group to obtain a target building drawing consisting of at least one target spliced block; combining coordinate ranges of the second image blocks of the currently processed image block group according to the direct intersection and/or indirect intersection relationship to obtain at least one reference spliced image block; and screening target splicing blocks which accord with the preset lengthening frame proportion from the at least one reference splicing block.
In one possible example, the direct correlation refers to that the horizontal coordinate ranges of two second tiles intersect and the vertical coordinate ranges are the same, and the indirect intersection refers to that the horizontal coordinate ranges of two second tiles establish an indirect intersection relationship through the horizontal coordinate ranges of another second tile, and the vertical coordinate ranges are the same.
In a possible example, the apparatus further includes a merging unit 33, configured to, after the determining unit 30 screens out target tiles that match a preset elongated frame proportion from the at least one reference tile, merge edges of each target tile in a horizontal direction and a vertical direction respectively to generate an inner border of each target tile.
In one possible example, in terms of the first block of the original building drawing of the determined target building, which meets the preset standard frame scale, the determining unit 30 is specifically configured to: extracting a plurality of original image blocks in an original building drawing of a target building, wherein each original image block is used for carrying out graphic illustration on one or more building elements of the target building; and determining a maximum bounding box of each original image block, wherein the bounding box is used for representing a minimum rectangular area covering a coordinate range of the current original image block; and screening a first image block which accords with the preset standard image frame proportion from the plurality of original image blocks.
In one possible example, the original building drawing is a DWG drawing.
In one possible example, the preset standard frame ratio is 0.707.
In the case of using an integrated unit, a schematic structural diagram of another building drawing splicing device provided in the embodiment of the present application is shown in fig. 4. In fig. 4, the construction drawing splicing device 4 includes: a processing module 40 and a communication module 41. The processing module 40 is used for controlling and managing the actions of the construction drawing stitching device, such as the steps performed by the determining unit 30, the clipping unit 31, the grouping unit 32, the merging unit 33, and/or for performing other processes of the techniques described herein. The communication module 41 is used for supporting interaction between the building drawing splicing device and other devices. As shown in fig. 4, the construction drawing splicing device may further include a storage module 42, where the storage module 42 is used to store program codes and data of the construction drawing splicing device.
The processing module 40 may be a processor or controller, such as a central processing unit (Central Processing Unit, CPU), a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules, and circuits described in connection with this disclosure. The processor may also be a combination that performs the function of a computation, e.g., a combination comprising one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module 41 may be a transceiver, an RF circuit, a communication interface, or the like. The memory module 42 may be a memory.
All relevant contents of each scenario related to the above method embodiment may be cited to the functional description of the corresponding functional module, which is not described herein. The building drawing splicing device 3 and the building drawing splicing device 4 can execute the steps executed by the electronic equipment in the building drawing splicing method shown in fig. 2.
The above embodiments may be implemented in whole or in part by software, hardware, firmware, or any other combination. When implemented in software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, the processes or functions described in accordance with the embodiments of the present application are all or partially produced. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may 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 instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center by wired or wireless means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more sets of available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. The semiconductor medium may be a solid state disk.
The embodiment of the application also provides a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, where the computer program causes a computer to execute part or all of the steps of any one of the methods described in the embodiments of the method, where the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any one of the methods described in the method embodiments above. The computer program product may be a software installation package, said computer comprising an electronic device.
It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed method, apparatus, and system may be implemented in other manners. For example, the device embodiments described above are merely illustrative; for example, the division of the units is only one logic function division, and other division modes can be adopted in actual implementation; for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may be physically included separately, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Although the present invention is disclosed above, the present invention is not limited thereto. Variations and modifications, including combinations of the different functions and implementation steps, as well as embodiments of the software and hardware, may be readily apparent to those skilled in the art without departing from the spirit and scope of the invention.
Claims (5)
1. The splicing method of the building drawings is characterized by comprising the following steps of:
extracting a plurality of original image blocks in an original building drawing of a target building, wherein each original image block is used for carrying out graphic illustration on one or more building elements of the target building;
determining a maximum bounding box of each original image block, wherein the bounding box is used for representing a minimum rectangular area covering the coordinate range of the current original image block;
screening a first image block conforming to a preset standard image frame proportion from the plurality of original image blocks, wherein the original building drawing is a DWG drawing, and the preset standard image frame proportion is 0.707;
cutting the graph blocks which need cutting but are not actually cut in the first graph block according to the drawing editing attribute parameters to obtain updated second graph blocks;
grouping the second image blocks according to a layer relation to obtain at least one image block group, wherein each image block group comprises at least one second image block with the same layer, and the layers of any two image block groups are different from each other;
performing the following operation for each of the at least one block group to obtain a target building drawing consisting of at least one target spliced block;
combining coordinate ranges of second image blocks of the image block group processed at present according to a direct intersection and/or indirect intersection relation to obtain at least one reference spliced image block, wherein the direct intersection refers to that the horizontal coordinate ranges of the two second image blocks intersect and the vertical coordinate ranges are the same, the indirect intersection refers to that the horizontal coordinate ranges of the two second image blocks establish an indirect intersection relation through the horizontal coordinate range of the other second image block, and the vertical coordinate ranges are the same;
and screening target splicing blocks which accord with the preset lengthening frame proportion from the at least one reference splicing block.
2. The method of claim 1, wherein after the target tile is selected from the at least one reference tile to meet a predetermined elongated frame ratio, the method further comprises:
and respectively carrying out edge line combination on each target splicing block according to the horizontal direction and the vertical direction to generate an inner border line of each target splicing block.
3. The building drawing splicing device is characterized by comprising a processing unit and a communication unit, wherein,
the processing unit is used for extracting a plurality of original image blocks in an original building drawing of a target building, each original image block is used for carrying out graphic illustration on one or more building elements of the target building, and the original building drawing is a DWG drawing; and determining a maximum bounding box of each original image block, wherein the bounding box is used for representing a minimum rectangular area covering a coordinate range of the current original image block; screening a first image block which accords with a preset standard image frame proportion from the plurality of original image blocks, wherein the preset standard image frame proportion is 0.707; cutting the graph blocks which need cutting but are not actually cut in the first graph block according to the drawing editing attribute parameter indication, and obtaining updated second graph blocks; grouping the second image blocks according to a layer relation to obtain at least one image block group, wherein each image block group comprises at least one second image block with the same layer, and the layers of any two image block groups are different from each other; and performing the following operation on each of the at least one block group to obtain a target building drawing consisting of at least one target spliced block; the second image blocks of the image block group which is processed at present are combined in coordinate ranges according to the direct intersection and/or indirect intersection relation to obtain at least one reference spliced image block, wherein the direct intersection refers to the intersection of the horizontal coordinate ranges of the two second image blocks and the same vertical coordinate range, the indirect intersection refers to the establishment of the indirect intersection relation of the horizontal coordinate ranges of the two second image blocks through the horizontal coordinate range of the other second image block, and the vertical coordinate ranges are the same; and screening target splicing blocks which accord with the preset lengthening frame proportion from the at least one reference splicing block.
4. An electronic device comprising a processor, a memory, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-2.
5. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any of claims 1-2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110134197.8A CN112950748B (en) | 2021-01-29 | 2021-01-29 | Building drawing splicing method and related device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110134197.8A CN112950748B (en) | 2021-01-29 | 2021-01-29 | Building drawing splicing method and related device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112950748A CN112950748A (en) | 2021-06-11 |
CN112950748B true CN112950748B (en) | 2024-01-23 |
Family
ID=76240402
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110134197.8A Active CN112950748B (en) | 2021-01-29 | 2021-01-29 | Building drawing splicing method and related device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112950748B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799720A (en) * | 2012-07-03 | 2012-11-28 | 武汉天喻软件有限责任公司 | Computer-aided design (CAD) graph and image mixed editing system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102014003348B4 (en) * | 2013-03-08 | 2019-05-23 | Virtek Vision International Ulc | Galvanometer scanning camera with variable focus and method |
CN105447872A (en) * | 2015-12-03 | 2016-03-30 | 中山大学 | Method for automatically identifying liver tumor type in ultrasonic image |
-
2021
- 2021-01-29 CN CN202110134197.8A patent/CN112950748B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799720A (en) * | 2012-07-03 | 2012-11-28 | 武汉天喻软件有限责任公司 | Computer-aided design (CAD) graph and image mixed editing system |
Also Published As
Publication number | Publication date |
---|---|
CN112950748A (en) | 2021-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112560862B (en) | Text recognition method and device and electronic equipment | |
CN105976698B (en) | Road rendering method and device in a kind of electronic map | |
CN113236124B (en) | Deep shale gas horizontal well geological guiding method | |
CN114004882A (en) | Two-dimensional map generation method and device, terminal equipment and storage medium | |
CN110942455A (en) | Method and device for detecting missing of cotter pin of power transmission line and computer equipment | |
CN112950748B (en) | Building drawing splicing method and related device | |
KR102432164B1 (en) | System for providing construction site checking service using augmented reality checking and augmented reality form based on three dimentional building information modelling | |
CN102866885A (en) | Method and device for confirming clicking position in webpage | |
CN114283190A (en) | Beam line splicing method, device, equipment and storage medium | |
CN111913777A (en) | Information processing method, information processing device, electronic equipment and storage medium | |
CN110188152B (en) | Electronic map road information processing method and device, electronic equipment and readable medium | |
CN111597283A (en) | Map tile updating method, device, equipment and storage medium | |
CN116045906A (en) | Minimum building limit detection method, minimum building limit detection device and server | |
CN114444185A (en) | In-situ labeling identification method and device and electronic equipment | |
CN110851896B (en) | CAD (computer-aided design) outer wall body identification method and device based on local neighborhood information | |
CN113390425A (en) | Map data processing method, map data processing device, map data processing equipment and storage medium | |
CN114283436A (en) | Table identification method, device, equipment and storage medium | |
CN114048539A (en) | CAD file analysis and rule judgment method and related device | |
CN109829019B (en) | Data conversion method and device of vector data and electronic equipment | |
CN108829840B (en) | Electronic fence map construction method and device | |
CN112101170A (en) | Target positioning method and device, computer equipment and storage medium | |
CN111986287A (en) | Geological mapping method and device and electronic equipment | |
CN106443732B (en) | Path diagram drawing method and system based on GPS | |
CN110597845A (en) | Method, device and system for distributed storage and geographic data retrieval | |
CN113838165B (en) | Automatic numbering method and device for pattern spots, 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: 20230704 Address after: A601, Zhongke Naneng Building, No. 06 Yuexing 6th Road, Gaoxin District Community, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 518051 Applicant after: Shenzhen Wanyi Digital Technology Co.,Ltd. Address before: 519000 room 105-24914, No.6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province (centralized office area) Applicant before: WANYI TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |