Point set automatic identification method and device for earthwork calculation, and storage medium
By extracting and matching the name and shape information in the point set CAD drawing, and automatically identifying and converting it in combination with preset requirements, the three-dimensional three-dimensional point set is solved, and the problem of low efficiency and low accuracy of point set layout recognition in the earthwork calculation volume is achieved, and efficient and accurate automatic point set recognition is achieved.
Patent Information
- Application Number
- CN202510306612.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-14
- Publication Date
- 2025-06-20
AI Technical Summary
The mid-point set arrangement of earthwork calculations has problems with low recognition efficiency and low recognition accuracy, especially in large-area point set arrangements, which are difficult to identify due to the large-area point set layout.
By extracting the annotation layer and entity layer of the point set CAD drawing, the name information and shape information of the point set to be identified are obtained, and match and identify with the name information and shape information of the preset set defined in the preset requirement. Set the maximum recognition range and recognition order of the point set, match recognition under constraints, and convert to generate a three-dimensional three-dimensional point set after the recognition is completed.
It realizes large-scale automatic recognition without manual placement of point sets, improves the efficiency and accuracy of point set processing, effectively distinguishes interfering information, and solves the problems of low recognition efficiency and low accuracy.
Smart Images

Figure CN120182995A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, and particularly relates to a method, device and storage medium for automatically identifying point sets for earthwork quantity calculation. Background Art
[0002] Before the construction of an engineering project, earthwork quantity calculation is required. Taking the earthwork quantity calculation with CAD drawings as an example, in some CAD drawings, the number of point sets is very large, and there are various design styles and shapes of point sets, as well as some other design information irrelevant to the business.
[0003] Currently, there is a situation of low layout efficiency in the existing earthwork quantity calculation point set layout; moreover, in the large-area point set layout, due to the interference information and the variety of point set styles, the problem of large recognition difficulty exists.
[0004] Therefore, the problems of low recognition efficiency and low recognition accuracy in the point set layout in earthwork quantity calculation are the problems that need to be solved currently. Summary of the Invention
[0005] Embodiments of the present invention provide a method, device and storage medium for automatically identifying point sets for earthwork quantity calculation to at least solve the above technical problems in the prior art.
[0006] In a first aspect, embodiments of the present invention provide a method for automatically identifying point sets for earthwork quantity calculation, including:
[0007] Obtain a point set CAD drawing to be recognized;
[0008] Extract the annotation layer of the point set CAD drawing to obtain the name information of the point set to be recognized;
[0009] Extract the entity layer of the point set CAD drawing to obtain the shape information of the point set to be recognized;
[0010] Obtain the name information and shape information of a preset point set defined in a preset requirement;
[0011] Match and recognize the point set to be recognized according to the name information and shape information of the point set to be recognized, and the name information and shape information of the preset point set defined in the preset requirement.
[0012] In some embodiments, after obtaining the name information and shape information of the preset point set defined in the preset requirement, the method includes:
[0013] Judge whether the name information of the point set to be recognized has been obtained;
[0014] If there is a point set to be recognized for which the name information has not been obtained, set whether to recognize the point set to be recognized;
[0015] If so, perform matching recognition on the point set to be recognized according to the shape information of the point set to be recognized and the shape information of the preset point set defined in the preset requirement.
[0016] In some embodiments, performing matching recognition on the point set to be recognized includes:
[0017] Set the maximum recognition range and recognition order of the point set;
[0018] Under the constraint of the maximum recognition range, perform matching recognition on the point set to be recognized according to the recognition order.
[0019] In some embodiments, after performing matching recognition on the point set to be recognized, the method includes:
[0020] Generate a three-dimensional solid point set at the corresponding position in the point set CAD drawing where the matching recognition has been completed.
[0021] In some embodiments, generating a three-dimensional solid point set at the corresponding position in the point set CAD drawing where the matching recognition has been completed includes:
[0022] Obtain the preset construction requirement, and generate a three-dimensional solid point set at the corresponding position in the point set CAD drawing where the matching recognition has been completed within the range of the preset construction requirement area.
[0023] In a second aspect, an embodiment of the present invention provides a point set automatic recognition device for earthwork quantity calculation, including:
[0024] A data extraction module, configured to obtain the point set CAD drawing to be recognized; extract the annotation layer of the point set CAD drawing to obtain the name information of the point set to be recognized; extract the entity layer of the point set CAD drawing to obtain the shape information of the point set to be recognized;
[0025] A data acquisition module, configured to obtain the name information and shape information of the preset point set defined in the preset requirement;
[0026] A matching recognition module, configured to perform matching recognition on the point set to be recognized according to the name information and shape information of the point set to be recognized and the name information and shape information of the preset point set defined in the preset requirement.
[0027] A conversion generation module, configured to generate a three-dimensional solid point set at the corresponding position in the point set CAD drawing where the matching recognition has been completed.
[0028] In some of these embodiments, the matching and recognition module is further configured to determine whether the name information of the point set to be recognized has been obtained; if there is a point set to be recognized for which the name information has not been obtained, it is set whether to perform recognition on the point set to be recognized; if so, according to the shape information of the point set to be recognized and the shape information of the preset point set defined in the preset requirements, the point set to be recognized is subjected to matching and recognition.
[0029] In some of these embodiments, the matching and recognition module is further configured to set the maximum recognition range and recognition order of the point set; under the constraint of the maximum recognition range, the point set to be recognized is subjected to matching and recognition according to the recognition order.
[0030] In some of these embodiments, the conversion and generation module is further configured to obtain preset construction requirements, and within the range of the area of the preset construction requirements, a three-dimensional solid point set is converted and generated at the corresponding position in the CAD drawing of the point set that has completed matching and recognition.
[0031] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium storing a computer program, which when executed by a processor implements the method described in any one of the above first aspects.
[0032] The present invention has the following advantages or beneficial effects: Compared with the related art, an automatic point set recognition method, device and storage medium for earthwork calculation provided by the embodiments of the present invention extract the annotation layer of the point set CAD drawing to obtain the name information of the point set to be recognized; extract the entity layer of the point set CAD drawing to obtain the shape information of the point set to be recognized; obtain the name information and shape information of the preset point set defined in the preset requirements; according to the name information and shape information of the point set to be recognized, and the name information and shape information of the preset point set defined in the preset requirements, the point set to be recognized is subjected to matching and recognition. The hierarchical matching of the present invention can effectively distinguish interference information (such as non-business-related point sets), solves the problems of low recognition efficiency and low accuracy in the arrangement of point sets in earthwork calculation, realizes large-scale automatic recognition without manual arrangement of point sets, and ensures the processing efficiency and accuracy of point sets. Description of the Drawings
[0033] The drawings described herein are used to provide a further understanding of the present invention, and constitute a part of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0034] Figure 1 is a flowchart of an automatic point set recognition method for earthwork calculation according to an embodiment of the present invention;
[0035] Figure 2 is a schematic diagram of a CAD drawing of a large-area point set according to an embodiment of the present invention;
[0036] Figure 3 It is a schematic diagram of the annotation layer and the entity layer of the point-set CAD drawing according to an embodiment of the present invention;
[0037] Figure 4 It is a structural framework diagram of the point-set automatic recognition device for earthwork quantity calculation according to an embodiment of the present invention;
[0038] Figure 5 It is a schematic structural diagram of a storage medium according to an embodiment of the present invention.
[0039] Reference numerals: 401, data extraction module; 402, data acquisition module; 403, matching and recognition module; 404, conversion and generation module. Detailed implementation manners
[0040] To make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments provided by the present invention without creative efforts shall fall within the scope of protection of the present invention.
[0041] Obviously, the accompanying drawings in the following description are only some examples or embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, the present invention can also be applied to other similar scenarios based on these drawings. In addition, it can also be understood that although the efforts made in this development process may be complex and lengthy, for those of ordinary skill in the art related to the content disclosed by the present invention, making some design, manufacturing or production changes based on the technical content disclosed by the present invention is only a conventional technical means, and it should not be understood that the content disclosed by the present invention is insufficient.
[0042] Referring to "embodiments" in the present invention means that the specific features, structures or characteristics described in connection with the embodiments can be included in at least one embodiment of the present invention. The phrase appears in various positions in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those of ordinary skill in the art explicitly and implicitly understand that the embodiments described by the present invention can be combined with other embodiments without conflict.
[0043] Unless otherwise defined, the technical terms or scientific terms involved in the present invention shall have the ordinary meanings understood by those with ordinary skills in the technical field to which the present invention belongs. The words such as "a", "one", "a kind of", "the" and the like involved in the present invention do not represent a limitation in quantity and may represent a singular or plural number. The terms "include", "comprise", "have" and any variations thereof involved in the present invention are intended to cover non-exclusive inclusion; for example, a process, method, device, product or equipment that includes a series of steps or modules (units) is not limited to the listed steps or units, but may further include steps or units not listed, or may further include other steps or units inherent to these processes, methods, products or equipment. The terms "connect", "be connected", "be coupled" and the like involved in the present invention are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "plurality" involved in the present invention refers to two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships may exist. For example, "A and / or B" may represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the front and rear associated objects. The terms "first", "second", "third" and the like involved in the present invention are only used to distinguish similar objects and do not represent a specific order for the objects.
[0044] An embodiment of the present invention provides a method for automatically identifying a point set for earthwork quantity calculation. Figure 1 It is a flowchart of the method for automatically identifying a point set for earthwork quantity calculation according to an embodiment of the present invention, as Figure 1 shown, and the method includes the following steps:
[0045] Step S101, obtain the point set CAD drawing to be identified;
[0046] Specifically, Figure 2 It is a schematic diagram of the CAD drawing of a large-area point set according to an embodiment of the present invention, as Figure 2 shown, and the position occupied by the white point set is the position where the point set is located. It can be seen that in the same project, the shapes of the point sets are not exactly the same.
[0047] Step S102, extract the annotation layer of the point set CAD drawing to obtain the name information of the point set to be identified;
[0048] Step S103, extract the entity layer of the point set CAD drawing to obtain the shape information of the point set to be identified;
[0049] Specifically, Figure 3 It is a schematic diagram of the annotation layer and the entity layer of the point set CAD drawing according to an embodiment of the present invention, as Figure 3As shown, the name information (identifier) of the point set to be recognized obtained in step S102 specifically refers to 117.3 and 116.86 in the figure; the shape information of the point set to be recognized obtained in step S103 is at the position indicated by the arrow in the figure, where the white point set and the intersection point set are the shapes of the point set.
[0050] Step S104, obtain the name information and shape information of the preset point set defined in the preset requirements;
[0051] Specifically, the shape information of the preset point set defined in the preset requirements includes a solid point set, an intersection point set, a hollow point set, a point set with intersections and points superimposed, etc.
[0052] Optionally, after step S104, determine whether the name information of the point set to be recognized has been obtained;
[0053] If there is a point set to be recognized for which the name information has not been obtained, set whether to recognize the point set to be recognized. If so, perform a matching recognition on the point set to be recognized according to the shape information of the point set to be recognized and the shape information of the preset point set defined in the preset requirements. If not, do not perform a matching recognition on the point set to be recognized for which the name information has not been obtained; if there is no point set to be recognized for which the name information has not been obtained, continue to execute step S105.
[0054] It should be noted that the above option is for the information extraction of the CAD drawing of the point set to be recognized, and there is a situation of "extracting the shape but not the name". If you want to recognize all the point sets to be recognized for which the name has not been obtained at one time, you can manually set it after the recognition is completed; if you do not want to convert and remember these unlabeled positions, you can not perform the default conversion (only recognize the point sets to be recognized for which the name has been obtained), and you can manually set it again after the recognition is completed, which increases the flexibility of large-scale point set recognition.
[0055] Step S105, perform a matching recognition on the point set to be recognized according to the name information and shape information of the point set to be recognized, and the name information and shape information of the preset point set defined in the preset requirements.
[0056] Specifically, set the maximum recognition range and recognition order of the point set; under the constraint of the maximum recognition range, perform a matching recognition on the point set to be recognized according to the recognition order.
[0057] It should be noted that when setting the maximum recognition range of the point set, the recognition order can be set according to the priority of the point set type in the CAD drawing of the point set, for example, execute in sequence according to the point set type (such as recognizing the solid point set first) or the spatial position (such as from left to right).
[0058] Optionally, after step S104, perform a position conversion on the corresponding point set in the CAD drawing of the point set for which the matching recognition has been completed to generate a three-dimensional solid point set.
[0059] Preferably, obtain the preset construction requirements. Within the area range of the preset construction requirements, convert and generate a three-dimensional point set at the position of the corresponding point set in the point set CAD drawing that has completed the matching and recognition. For example, many point sets are drawn on a CAD drawing (size 50X50 meters), but for actual construction, only the point sets within the construction range of the actual size of 20X20 meters may be required. Therefore, there is no need to convert and generate point sets outside the range.
[0060] Through steps S101 to S105 in the embodiments of the present invention, the problems of low recognition efficiency and low accuracy in the arrangement of point sets in earthwork quantity calculation are solved, realizing large-scale automatic recognition without manual arrangement of point sets, and ensuring the processing efficiency and accuracy of point sets.
[0061] It should be noted that the steps shown in the above process or the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order from here.
[0062] The embodiments of the present invention provide a device for automatic recognition of point sets for earthwork quantity calculation. Figure 4 It is a structural framework diagram of the device for automatic recognition of point sets for earthwork quantity calculation according to the embodiments of the present invention, as Figure 4 shown, the device includes: a data extraction module 401, a data acquisition module 402, a matching recognition module 403, and a conversion generation module 404;
[0063] The data extraction module 401 is used to obtain the point set CAD drawing to be recognized; extract the annotation layer of the point set CAD drawing to obtain the name information of the point set to be recognized; extract the entity layer of the point set CAD drawing to obtain the shape information of the point set to be recognized.
[0064] The data acquisition module 402 is used to obtain the name information and shape information of the preset point set defined in the preset requirements.
[0065] The matching recognition module 403 is used to perform matching recognition on the point set to be recognized according to the name information and shape information of the point set to be recognized, and the name information and shape information of the preset point set defined in the preset requirements.
[0066] The conversion generation module 404 is used to convert and generate a three-dimensional point set at the corresponding position in the point set CAD drawing that has completed the matching and recognition.
[0067] In some of these embodiments, the matching and recognition module 403 is further configured to determine whether the name information of the point set to be recognized has been obtained; if there is a point set to be recognized for which the name information has not been obtained, it is set whether to perform recognition on the point set to be recognized; if so, the point set to be recognized is matched and recognized according to the shape information of the point set to be recognized and the shape information of the preset point set defined in the preset requirements.
[0068] In some of these embodiments, the matching and recognition module 403 is further configured to set the maximum recognition range and recognition order of the point set; under the constraint of the maximum recognition range, the point set to be recognized is matched and recognized in the recognition order.
[0069] In some of these embodiments, the conversion and generation module 404 is further configured to obtain the preset construction requirements, and within the range of the area of the preset construction requirements, a three-dimensional solid point set is converted and generated at the corresponding position in the CAD drawing of the point set for which the matching and recognition has been completed.
[0070] Through the data extraction module 401, data acquisition module 402, matching and recognition module 403, and conversion and generation module 404 in the embodiments of the present invention, the problems of low recognition efficiency and low accuracy in the arrangement of point sets in earthwork quantity calculation are solved, realizing large-scale automatic recognition without manual arrangement of point sets, and ensuring the processing efficiency and accuracy of point sets.
[0071] It should be noted that the above-mentioned various modules can be functional modules or program modules, and can be implemented either by software or by hardware. For the modules implemented by hardware, the above-mentioned various modules can be located in the same processor; or the above-mentioned various modules can also be located in different processors in any combined form.
[0072] The embodiments of the present invention also provide a computer-readable storage medium, which stores a computer program, and is characterized in that when the program is executed by a processor, the method described in any one of the above is implemented.
[0073] In one embodiment, Figure 5 is a schematic structural diagram of the storage medium according to the embodiments of the present invention, including a network interface, a processor, a memory, and a storage medium connected through an internal system bus. Among them, the network interface is used to communicate with an external terminal through a network connection; the storage medium stores an operating system and a computer program; the processor is used to provide computing and control capabilities; the internal memory is used to provide an environment for the operation of the operating system and the computer program, and when the computer program is executed by the processor, the method described in any one of the above is implemented.
[0074] Those skilled in the art can understand, Figure 5The structure shown is only a schematic diagram of some structures related to the solution of the present invention, and does not constitute a limitation on other electronic devices to which the solution of the present invention is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout.
[0075] In addition, in each embodiment of the present invention, each functional unit may be integrated in a processing module, or each unit may exist physically alone, or two or more units may be integrated in a module. The above integrated module may be implemented in the form of hardware or in the form of a software functional module. When the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. The storage medium may be a read-only memory, a magnetic disk or an optical disc, etc.
[0076] Those of ordinary skill in the art can understand that all or part of the processes in the above method embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When running, it can execute the processes of the above method embodiments. The memory, storage, database or other media used herein all fall within the scope of the storage medium. The storage medium includes, but is not limited to: read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, random access memory (RAM) or external cache memory. Further, for example, there are various forms of RAM, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and Rambus direct RAM (RDRAM), direct Rambus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.
[0077] In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a network interface, a processor, a memory, a storage medium, a display screen, and an input device connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a storage medium and an internal memory. The storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, it implements a method for automatic recognition of point sets for earthwork quantity calculation. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device may be a touch layer covering the display screen, or may be a button, a trackball, or a touchpad provided on the housing of the computer device, or may also be an external keyboard, touchpad, or mouse, etc.
[0078] Those skilled in the art should understand that the technical features of the above-described embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0079] The above-described embodiments merely represent several implementation manners of the present invention. The description thereof is relatively specific and detailed, but it should not be construed as a limitation on the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can still be made, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention patent shall be subject to the appended claims.
Claims
1. A point set automatic recognition method for earthwork calculation, characterized in that: The method comprises: Obtain the CAD drawing of the point set to be identified; Extracting the annotation layer of the point set CAD drawing to obtain the name information of the point set to be identified; Extracting the physical layer of the point set CAD drawing to obtain shape information of the point set to be identified; Get the name and shape information of the preset point set defined in the preset requirements; The point set to be identified is matched and identified according to the name information and shape information of the point set to be identified and the name information and shape information of the preset point set defined in the preset requirement.
2. The method according to claim 1, characterized in that After obtaining the name information and shape information of the preset point set defined in the preset requirement, the method includes: Determining whether the name information of the point set to be identified has been obtained; If there is a point set to be identified whose name information has not been obtained, set whether to identify the point set to be identified; if so, match and identify the point set to be identified based on the shape information of the point set to be identified and the shape information of the preset point set defined in the preset requirements.
3. The method according to claim 1 or 2, characterized in that: Matching and identifying the to-be-identified point set includes: Set the maximum recognition range and recognition order of the point set; Under the constraint of the maximum recognition range, the set of points to be recognized is matched and recognized in the recognition order.
4. The method according to claim 1 or 2, characterized in that: After matching and identifying the set of points to be identified, the method includes: The corresponding positions in the CAD drawing of the point set that has completed matching and recognition are converted to generate a three-dimensional point set.
5. The method according to claim 4, characterized in that The corresponding position conversion in the point set CAD drawing that has completed matching recognition to generate a three-dimensional point set includes: The preset construction requirements are obtained, and within the area of the preset construction requirements, the corresponding positions in the CAD drawings of the point sets that have been matched and identified are converted to generate three-dimensional point sets.
6. A point set automatic recognition device for earthwork calculation, characterized in that: include: A data extraction module is used to obtain the CAD drawing of the point set to be identified; Extracting the annotation layer of the point set CAD drawing to obtain the name information of the point set to be identified; Extracting the physical layer of the point set CAD drawing to obtain shape information of the point set to be identified; A data acquisition module is used to obtain the name information and shape information of the preset point set defined in the preset requirements; A matching and identifying module, configured to match and identify the point set to be identified according to the name information and shape information of the point set to be identified, and the name information and shape information of the preset point set defined in the preset requirement; The conversion generation module is used to convert and generate a three-dimensional point set at the corresponding position in the point set CAD drawing that has completed matching and recognition.
7. The device according to claim 6, characterized in that The matching and identification module is also used to determine whether the name information of the point set to be identified has been obtained; if there is a point set to be identified whose name information has not been obtained, it is set whether to identify the point set to be identified; if so, the point set to be identified is matched and identified based on the shape information of the point set to be identified and the shape information of the preset point set defined in the preset requirements.
8. The device according to claim 6 or 7, characterized in that The matching and identifying module is further used to set a maximum identification range and an identification order of a point set; and to match and identify the point set to be identified in the identification order under the constraint of the maximum identification range.
9. The device according to claim 6, characterized in that The conversion generation module is also used to obtain preset construction requirements, and convert and generate three-dimensional point sets at corresponding positions in the CAD drawings of the point sets that have completed matching and identification within the area of the preset construction requirements.
10. A computer-readable storage medium storing a computer program, characterized in that When the program is executed by a processor, the method described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
In-decoration-picture block recognition method based on deep learning
CN111126414A
Automatic identification method and system for core mold in building calculation
CN115221579A