Method, device, storage medium and electronic device for obtaining three-dimensional model

By distinguishing and processing different pixels in two-dimensional drawings, a combination of three-dimensional identification and automatic identification is adopted to solve the problem of low efficiency in three-dimensional model acquisition, and efficient and accurate three-dimensional model acquisition is achieved.

CN119048686BActive Publication Date: 2025-02-07BEIJING EXPLORER SOFTWARE CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411454957.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-17
Publication Date
2025-02-07
Estimated Expiration
2044-10-17

AI Technical Summary

Technical Problem

The prior art is less efficient when converting from two-dimensional drawings to three-dimensional models, especially when facing a large number of drawings, and the automatic conversion method is difficult to ensure the successful conversion of all pixels, resulting in an increase in correction steps and a decrease in efficiency.

Method used

By distinguishing the first pixel from the second pixel in the two-dimensional drawing, the first pixel meets the automatic recognition conditions, and the second pixel is not satisfied. The second pixel is processed by three-dimensional identification, and the first pixel is converted in combination with automatic recognition. Finally, the integration process is performed to obtain the three-dimensional model.

Benefits of technology

It improves the efficiency of obtaining three-dimensional models, reduces the cumbersomeness of manual conversion and the error correction work in automatic conversion, and ensures the integrity and accuracy of the three-dimensional model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119048686B_ABST
    Figure CN119048686B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, storage medium and electronic device for obtaining a three-dimensional model. The method includes: obtaining a two-dimensional drawing, wherein the two-dimensional drawing contains a first pixel and a second pixel, the first pixel is a pixel that meets the automatic recognition condition, and the second pixel is a pixel that does not meet the automatic recognition condition; three-dimensionally marking the second pixel to obtain a second pixel carrying a three-dimensional mark, wherein the three-dimensional mark is used to indicate the three-dimensional pixel corresponding to the second pixel; automatically identifying the first pixel, and in the process of automatic identification, converting the first pixel into a three-dimensional pixel corresponding to the first pixel; integrating the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel to obtain a three-dimensional model corresponding to the two-dimensional drawing. The present application solves the technical problem of low efficiency in obtaining three-dimensional models.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a method, device, storage medium and electronic device for acquiring a three-dimensional model. Background Art

[0002] In the scenario of acquiring three-dimensional models, two-dimensional drawings are usually converted into three-dimensional models by manual conversion, but this conversion method is inefficient, especially when faced with a large number of two-dimensional drawings.

[0003] If the two-dimensional drawings are converted into three-dimensional models by automatic conversion, it cannot be guaranteed that each pixel in the two-dimensional drawings can be successfully converted into three-dimensional pixels. If the conversion into three-dimensional pixels is not successful or the conversion into wrong three-dimensional pixels is not successful, it will increase the correction steps, which will lead to the problem of low efficiency in obtaining three-dimensional models. Therefore, there is a problem of low efficiency in obtaining three-dimensional models.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a method, device, storage medium and electronic device for acquiring a three-dimensional model, so as to at least solve the technical problem of low efficiency in acquiring the three-dimensional model.

[0006] According to one aspect of an embodiment of the present application, a method for acquiring a three-dimensional model is provided, comprising: acquiring a two-dimensional drawing, wherein the two-dimensional drawing comprises a first pixel and a second pixel, the first pixel being a pixel that satisfies an automatic recognition condition, and the second pixel being a pixel that does not satisfy the automatic recognition condition; performing three-dimensional labeling on the second pixel to obtain a second pixel carrying a three-dimensional label, wherein the three-dimensional label is used to indicate a three-dimensional pixel corresponding to the second pixel; performing automatic recognition on the first pixel, and during the process of the automatic recognition, converting the first pixel into a three-dimensional pixel corresponding to the first pixel; integrating the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel to obtain a three-dimensional model corresponding to the two-dimensional drawing.

[0007] According to another aspect of an embodiment of the present application, a device for acquiring a three-dimensional model is also provided, including: an acquisition unit, used to acquire a two-dimensional drawing, wherein the two-dimensional drawing includes a first pixel and a second pixel, the first pixel is a pixel that meets an automatic recognition condition, and the second pixel is a pixel that does not meet the automatic recognition condition; an identification unit, used to perform three-dimensional identification on the second pixel to obtain a second pixel carrying a three-dimensional identification, wherein the three-dimensional identification is used to indicate a three-dimensional pixel corresponding to the second pixel; an identification unit, used to automatically identify the first pixel, and during the automatic identification process, convert the first pixel into a three-dimensional pixel corresponding to the first pixel; an integration unit, used to integrate the three-dimensional pixel corresponding to the second pixel with the three-dimensional pixel corresponding to the first pixel to obtain a three-dimensional model corresponding to the two-dimensional drawing.

[0008] As an optional solution, the above-mentioned identification unit includes: a display module, used to display a three-dimensional file directory in response to a first selection operation performed on the above-mentioned second pixel, wherein the above-mentioned three-dimensional file directory contains at least one three-dimensional pixel; a first establishment module, used to establish an association relationship between the above-mentioned target three-dimensional pixel and the above-mentioned second pixel in response to a second selection operation performed on a target three-dimensional pixel in the above-mentioned at least one three-dimensional pixel; an identification module, used to perform the above-mentioned three-dimensional identification on the above-mentioned second pixel according to the above-mentioned association relationship, and obtain the above-mentioned second pixel carrying the three-dimensional identification.

[0009] As an optional scheme, the above-mentioned establishment module includes: a conversion sub-module, used to convert the first position information of the above-mentioned second pixel in the above-mentioned two-dimensional drawing into three dimensions, and obtain the second position information of the above-mentioned target three-dimensional pixel in the above-mentioned three-dimensional model, wherein the above-mentioned first position information and the above-mentioned second position information have the above-mentioned correlation relationship.

[0010] As an optional solution, the above-mentioned integration unit includes: a second establishment module, used to use the three-dimensional pixels corresponding to the above-mentioned first pixels to establish the initial model corresponding to the above-mentioned two-dimensional drawing; an insertion module, used to insert the above-mentioned target three-dimensional pixels into the above-mentioned initial model through the above-mentioned second orientation information to obtain the above-mentioned three-dimensional model.

[0011] As an optional solution, the above-mentioned device also includes: a storage unit, which is used to place the above-mentioned second pixel carrying the three-dimensional identification into an automatic recognition database after the above-mentioned second pixel is three-dimensionally identified to obtain the second pixel carrying the three-dimensional identification, wherein the pixels stored in the above-mentioned automatic recognition database are pixels that meet the above-mentioned automatic recognition conditions, and the above-mentioned first pixel is a pixel stored in the above-mentioned automatic recognition database.

[0012] As an optional solution, the above-mentioned device also includes: a detection unit, which is used to detect whether the pixels in the above-mentioned two-dimensional drawing are stored in the above-mentioned automatic recognition database after the above-mentioned two-dimensional drawing is obtained, and to prompt the pixels that are not stored in the above-mentioned automatic recognition database to need to be identified.

[0013] As an optional solution, the above-mentioned device also includes: a pre-integration unit, which is used to pre-integrate the three-dimensional pixels corresponding to the above-mentioned second pixel and the three-dimensional pixels corresponding to the above-mentioned first pixel before integrating the three-dimensional pixels corresponding to the above-mentioned second pixel and the three-dimensional pixels corresponding to the above-mentioned first pixel to obtain the three-dimensional model corresponding to the above-mentioned two-dimensional drawing, so as to obtain the pre-three-dimensional model, wherein the process of the above-mentioned pre-integration processing includes combining the contours of the three-dimensional pixels corresponding to the above-mentioned second pixel and the three-dimensional pixels corresponding to the above-mentioned first pixel according to the position relationship; the above-mentioned integration unit includes: an integration module, which is used to integrate the three-dimensional pixels corresponding to the above-mentioned second pixel and the three-dimensional pixels corresponding to the above-mentioned first pixel to obtain the above-mentioned three-dimensional model when the completeness corresponding to the above-mentioned pre-three-dimensional model is greater than or equal to a preset threshold.

[0014] According to another aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the above three-dimensional model acquisition method.

[0015] According to another aspect of an embodiment of the present application, there is also provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the three-dimensional model acquisition method through the computer program.

[0016] In an embodiment of the present application, a two-dimensional drawing is obtained, wherein the two-dimensional drawing includes a first pixel and a second pixel, the first pixel is a pixel that satisfies an automatic recognition condition, and the second pixel is a pixel that does not satisfy the automatic recognition condition; the second pixel is three-dimensionally labeled to obtain a second pixel carrying a three-dimensional label, wherein the three-dimensional label is used to indicate a three-dimensional pixel corresponding to the second pixel; the first pixel is automatically identified, and during the automatic identification process, the first pixel is converted into a three-dimensional pixel corresponding to the first pixel; the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel are integrated and processed to obtain a three-dimensional model corresponding to the two-dimensional drawing.

[0017] When it comes to converting 2D drawings to 3D models, traditional manual conversion methods are often inefficient, especially when dealing with a large number of drawings. Purely automatic conversion methods cannot guarantee that all pixels can be successfully and accurately converted into 3D pixels. Incorrect conversions will increase the number of correction steps, further reducing efficiency.

[0018] The present embodiment effectively improves the efficiency of obtaining the three-dimensional model through a combination method. First, the present embodiment distinguishes two types of pixels in the two-dimensional drawing: first pixels and second pixels. The first pixels are those elements that can be quickly converted into three-dimensional pixels directly or through some method, while the second pixels are those elements that are difficult to convert or prone to errors.

[0019] For the first pixels, since they meet certain "automatic recognition conditions", they can be converted relatively quickly and accurately. For the second pixels, this embodiment adopts a three-dimensional identification strategy. This identification not only clearly indicates the three-dimensional form that these pixels should correspond to, but also provides convenience for subsequent processing. In this way, errors and inconsistencies that may occur during the automatic conversion process are avoided, thereby reducing the need for correction.

[0020] Finally, this embodiment integrates the three-dimensional pixels corresponding to the first pixel and the second pixel. This step ensures the integrity and accuracy of the three-dimensional model, and also avoids the overall model quality degradation and increase in correction workload caused by the failure or error of some pixel conversions in the traditional method, thereby achieving the purpose of reducing the tediousness of manual conversion and avoiding the errors and correction work that may occur in automatic conversion, thereby achieving the technical effect of improving the acquisition efficiency of the three-dimensional model, and thus solving the technical problem of low acquisition efficiency of the three-dimensional model. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0022] Figure 1 is a schematic diagram of an application environment of an optional three-dimensional model acquisition method according to an embodiment of the present application;

[0023] Figure 2 is a schematic diagram of a process of an optional method for acquiring a three-dimensional model according to an embodiment of the present application;

[0024] Figure 3 is a schematic diagram of an optional method for obtaining a three-dimensional model according to an embodiment of the present application;

[0025] Figure 4is a schematic diagram of an optional three-dimensional model acquisition device according to an embodiment of the present application;

[0026] Figure 5 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] According to one aspect of an embodiment of the present application, a method for obtaining a three-dimensional model is provided. Optionally, as an optional implementation, the method for obtaining a three-dimensional model can be applied to, but is not limited to, Figure 1 In the environment shown, the environment may include, but is not limited to, a user device 102 and a server 112 . The user device 102 may include, but is not limited to, a display 104 , a processor 106 , and a memory 108 . The server 112 includes a database 114 and a processing engine 116 .

[0030] The specific process can be as follows:

[0031] Step S102, the user device 102 obtains a two-dimensional drawing;

[0032] Step S104, sending the two-dimensional drawing to the server 112 via the network 110;

[0033] In steps S106-S110, the server 112 uses the processing engine 116 to perform a three-dimensional identification on the second pixel to obtain the second pixel carrying the three-dimensional identification, and automatically identifies the first pixel. In the process of automatic identification, the first pixel is converted into a three-dimensional pixel corresponding to the first pixel, and the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel are further integrated to obtain a three-dimensional model corresponding to the two-dimensional drawing.

[0034] Step S112 , sending the three-dimensional model to the user device 102 via the network 110 , and the user device 102 displays the three-dimensional model on the display 104 via the processor 106 , and stores the three-dimensional model in the memory 108 .

[0035] remove Figure 1 In addition to the examples shown, the terminal device may be a terminal device configured with a target client, which may include but is not limited to at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, etc. The target client may be a video client, an instant messaging client, a browser client, an education client, etc. The network may include but is not limited to: a wired network, a wireless network, wherein the wired network includes: a local area network, a metropolitan area network and a wide area network, and the wireless network includes: Bluetooth, WIFI and other networks that implement wireless communication. The server may be a single server, or a server cluster consisting of multiple servers, or a cloud server. The above is only an example, and no limitation is made to this in this embodiment.

[0036] Optionally, as an optional implementation, as Figure 2 As shown, the method for obtaining the three-dimensional model can be executed by an electronic device, which can be, for example, Figure 1 The user device or server shown in the figure comprises:

[0037] S202, obtaining a two-dimensional drawing, wherein the two-dimensional drawing includes a first pixel and a second pixel, the first pixel is a pixel that meets the automatic recognition condition, and the second pixel is a pixel that does not meet the automatic recognition condition;

[0038] S204, performing three-dimensional labeling on the second pixel to obtain the second pixel carrying the three-dimensional label, wherein the three-dimensional label is used to indicate the three-dimensional pixel corresponding to the second pixel;

[0039] S206, automatically identifying the first pixel, and in the process of automatic identification, converting the first pixel into a three-dimensional pixel corresponding to the first pixel;

[0040] S208, integrating the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel to obtain a three-dimensional model corresponding to the two-dimensional drawing.

[0041] In an optional embodiment, the first pixels refer to those pixels in the two-dimensional drawing that meet the system's automatic recognition conditions.

[0042] In an optional embodiment, the second pixels refer to those pixels in the two-dimensional drawing that do not meet the system's automatic recognition conditions and require additional three-dimensional identification.

[0043] In an optional embodiment, the three-dimensional identification is a special processing performed on the second pixels, which is used to clearly indicate that the three-dimensional pixels should be used when these pixels are converted into a three-dimensional model.

[0044] It should be noted that this embodiment describes a process of obtaining a three-dimensional model from a two-dimensional drawing. First, it mentions that the two-dimensional drawing contains two types of pixels: first pixels and second pixels. The first pixels are those that can be automatically recognized by the system, while the second pixels are pixels that the system cannot automatically recognize. For the second pixel, additional three-dimensional identification processing is required so that it can be correctly converted into the corresponding three-dimensional pixel in the subsequent process. Then, the system will automatically identify the first pixel and convert it into the corresponding three-dimensional pixel. Finally, the two three-dimensional pixels are integrated to obtain a complete three-dimensional model.

[0045] This embodiment can also be understood as a semi-automatic 3D model acquisition method. It combines the efficiency of automatic recognition and the accuracy of manual assistance, aiming to solve the problems of low efficiency of traditional manual conversion methods and poor accuracy of pure automatic conversion methods. In this way, the conversion efficiency from 2D drawings to 3D models can be greatly improved while ensuring the accuracy of the model.

[0046] To further illustrate, let's assume that there is a two-dimensional architectural drawing that contains multiple elements such as doors, windows, walls, and stairs. Among them, doors, windows, and walls can be automatically recognized as first elements by the system due to their regular shapes and obvious features, and directly converted into corresponding three-dimensional elements. However, stairs may not be directly recognized by the system due to their complex structure and changeable shapes, so they are regarded as second elements. For the stairs, the designer needs to manually perform three-dimensional identification and clearly specify their corresponding three-dimensional form.

[0047] Through the embodiments provided by the present application, the efficiency of acquiring three-dimensional models is significantly improved. First, a large number of first pixels are quickly processed through automatic recognition technology, reducing the time and energy of manual operation. Secondly, the second pixels are three-dimensionally marked, avoiding errors and inconsistencies that may occur during the automatic conversion process, thereby reducing the need for corrections. Finally, the three-dimensional model obtained through the integrated processing is both complete and accurate, meeting the needs of practical applications. In general, this method not only improves the efficiency of acquiring three-dimensional models, but also ensures the accuracy and completeness of the model, thereby achieving the purpose of both reducing the tediousness of manual conversion and avoiding errors and corrections that may occur in automatic conversion, thereby achieving the technical effect of improving the efficiency of acquiring three-dimensional models.

[0048] As an optional solution, performing three-dimensional labeling on the second pixel to obtain the second pixel carrying the three-dimensional label includes:

[0049] S1-1, in response to a first selection operation performed on a second pixel, displaying a three-dimensional file directory, wherein the three-dimensional file directory includes at least one three-dimensional pixel;

[0050] S1-2, in response to a second selection operation performed on a target three-dimensional pixel in at least one three-dimensional pixel, establishing an association relationship between the target three-dimensional pixel and a second pixel;

[0051] S1-3, performing three-dimensional labeling on the second pixel according to the association relationship to obtain a second pixel carrying the three-dimensional label.

[0052] In an optional embodiment, the first selection operation refers to an operation in which the user selects or clicks a second pixel in the two-dimensional drawing.

[0053] In an optional embodiment, a three-dimensional file directory: an interface or list showing available three-dimensional pixels for a user to select from to establish an association with a second pixel.

[0054] In an optional embodiment, the target three-dimensional pixel is a specific three-dimensional pixel selected by a user from a three-dimensional file directory, and is used to establish an association with the second pixel.

[0055] In an optional embodiment, the association relationship refers to a connection or a corresponding relationship established between the second pixel and the target three-dimensional pixel.

[0056] It should be noted that this embodiment describes the process of how to three-dimensionally identify the second pixel (i.e., those pixels that do not meet the automatic recognition conditions). First, when the user selects a second pixel, the system will display a file directory containing multiple three-dimensional pixels. Then, the user can select a three-dimensional pixel corresponding to the target second pixel from the directory. Once the selection is completed, the system will establish an association relationship between the selected three-dimensional pixel (target three-dimensional pixel) and the second pixel. Finally, based on this association relationship, the system will three-dimensionally identify the second pixel so that it carries the corresponding three-dimensional pixel information.

[0057] This 3D identification method not only improves the conversion efficiency from 2D drawings to 3D models, but also increases the flexibility and accuracy of the conversion process. Designers can manually specify the exact 3D form for those elements that are difficult to automatically identify according to actual needs, thereby ensuring that the final generated 3D model is more accurate and in line with the design intent.

[0058] To further illustrate, let's assume that when designing a complex mechanical part, there is a special screw hole (second element) in the drawing, and the system cannot automatically identify its corresponding 3D shape. The designer first clicks on this screw hole (performs the first selection operation), and a file directory containing various 3D models of screw holes pops up on the interface. The designer selects a 3D model that matches the screw hole in the drawing (performs the second selection operation). The system then establishes an association between this 3D model and the screw hole in the drawing, and adds a 3D mark to the screw hole on the drawing.

[0059] By marking the second pixel in three dimensions, this embodiment improves the accuracy and efficiency of converting the two-dimensional drawing to the three-dimensional model. Designers can intuitively select and specify the three-dimensional form corresponding to the second pixel, avoiding errors and mismatches that may occur during the automatic conversion process. At the same time, this semi-automatic processing method also reduces the workload of designers, allowing them to focus more on the design itself rather than the tedious model conversion work.

[0060] As an optional solution, establishing an association relationship between the target three-dimensional pixel and the second pixel includes:

[0061] The first position information of the second pixel in the two-dimensional drawing is converted into three dimensions to obtain the second position information of the target three-dimensional pixel in the three-dimensional model, wherein the first position information and the second position information are associated with each other.

[0062] In an optional embodiment, the first position information refers to the position information of the second pixel in the two-dimensional drawing, including parameters such as coordinates and angles.

[0063] In an optional embodiment, the second position information refers to the position information of the target three-dimensional pixel in the three-dimensional model, which also includes parameters such as coordinates and angles.

[0064] In an optional embodiment, the association relationship refers specifically to the corresponding relationship between the second pixel and the target three-dimensional pixel established through the conversion of orientation information.

[0065] It should be noted that this embodiment describes that when establishing an association relationship between a target three-dimensional pixel and a second pixel, a key step is to convert the position information (first orientation information) of the second pixel in the two-dimensional drawing into the corresponding position information (second orientation information) in the three-dimensional model. This conversion of orientation information ensures that the pixels in the two-dimensional drawing and the pixels in the three-dimensional model are consistent in position, thereby establishing an association relationship between them.

[0066] This conversion of orientation information is a key step in the 3D modeling process, which ensures the consistency and coherence between the 2D design and the 3D model. Through precise orientation conversion, designers can accurately restore the intent of the 2D design in a 3D environment, which is crucial for subsequent design verification, optimization, and construction.

[0067] To further illustrate, let's assume that when designing a building model, there is a second pixel representing a column in the two-dimensional drawing. In order to convert this two-dimensional column pixel into a column in the three-dimensional model, the designer needs to select the corresponding three-dimensional pixel and ensure that the position of this three-dimensional pixel in the three-dimensional model matches the position in the two-dimensional drawing. This involves converting the column position in the two-dimensional drawing (first position information) to the corresponding position in the three-dimensional model (second position information), thereby establishing an association relationship between the two pixels.

[0068] By establishing an association relationship between the target three-dimensional pixel and the second pixel, especially by accurately converting the orientation information, this embodiment ensures that the design elements in the two-dimensional drawing can be accurately presented in the three-dimensional model. This not only improves the accuracy and authenticity of the three-dimensional model, but also provides a more intuitive and comprehensive design verification environment for designers. At the same time, the establishment of this association also greatly simplifies the conversion process from two-dimensional design to three-dimensional model, and improves design efficiency.

[0069] As an optional solution, the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel are integrated to obtain a three-dimensional model corresponding to the two-dimensional drawing, including:

[0070] S2-1, using the three-dimensional pixel corresponding to the first pixel, establish an initial model corresponding to the two-dimensional drawing;

[0071] S2-2, inserting the target three-dimensional pixel into the initial model through the second orientation information to obtain a three-dimensional model.

[0072] In an optional embodiment, the initial model refers to a three-dimensional model constructed by only including three-dimensional pixels corresponding to the first pixel, which is the first step result of the integration process.

[0073] In an optional embodiment, the three-dimensional model refers to a complete model of the three-dimensional pixels corresponding to both the first pixel and the second pixel after the integration process is completed.

[0074] It should be noted that this embodiment describes how to integrate the three-dimensional pixels corresponding to the first pixel and the second pixel to obtain a three-dimensional model corresponding to the two-dimensional drawing. First, an initial three-dimensional model is constructed using the three-dimensional pixels corresponding to the first pixel (i.e., the pixel that meets the automatic recognition condition). Then, according to the second orientation information previously established, the target three-dimensional pixel corresponding to the second pixel (i.e., the pixel that does not meet the automatic recognition condition) is inserted into the initial model to obtain a complete three-dimensional model.

[0075] This integrated approach allows designers to adopt a phased strategy when dealing with complex 2D drawings. First, a basic model is quickly constructed through automatic recognition technology, and then those elements that are difficult to recognize automatically are manually added. This approach combines the advantages of automation and manual operation, improving efficiency while ensuring the integrity of the model.

[0076] To further illustrate, it is optional to assume that this embodiment has a two-dimensional architectural drawing, which contains automatically identifiable walls and doors and windows (first pixels), and a special decoration (second pixel). First, the system automatically identifies the walls and doors and windows, and uses their corresponding three-dimensional pixels to establish an initial three-dimensional architectural model. Then, according to the second orientation information previously set for the decoration, the three-dimensional pixel of the decoration is inserted into the initial model. Finally, this embodiment obtains a complete three-dimensional model that includes walls, doors and windows, and decorations.

[0077] By integrating the three-dimensional pixels corresponding to the first pixel and the second pixel, the present embodiment can efficiently generate an accurate and complete three-dimensional model. The rapid construction of the initial model reduces the designer's waiting time, and the subsequent manual insertion operation ensures the model's precision and personalized needs. This integrated processing method not only improves the efficiency of three-dimensional modeling, but also ensures the accuracy of the model and the flexibility of the design.

[0078] As an optional solution, after performing three-dimensional labeling on the second pixel to obtain the second pixel carrying the three-dimensional label, the method further includes:

[0079] The second pixel carrying the three-dimensional mark is put into the automatic recognition database, wherein the pixels stored in the automatic recognition database are pixels that meet the automatic recognition conditions, and the first pixel is a pixel stored in the automatic recognition database.

[0080] In an optional embodiment, automatic recognition database: a database that stores pixels that meet automatic recognition conditions, used to assist the system in automatically recognizing pixels in drawings.

[0081] It should be noted that this embodiment describes the process of adding the second pixels carrying the three-dimensional identification to the automatic recognition database after completing the three-dimensional identification of the second pixels. The automatic recognition database stores pixels that meet the automatic recognition conditions, and originally only contains the first pixels. Now, by adding the second pixels carrying the three-dimensional identification to the database, the recognition range of the database can be expanded and the automatic recognition rate of future drawings can be improved.

[0082] By adding the second pixel with a 3D mark to the automatic recognition database, the system can continuously learn and accumulate, gradually improving its ability to recognize different types of pixels. This not only improves design efficiency, but also makes the system more intelligent and adaptable. At the same time, this also means that when designers encounter similar pixels in the future, they can reduce manual operations and rely more on the system's automatic recognition function.

[0083] To further illustrate, it is optional to assume that during the design process, some specific pixels (such as a special type of valve) are often needed, but they do not meet the automatic recognition conditions. After the designer manually adds 3D labels to these pixels, the system adds these pixels with 3D labels to the automatic recognition database. In the future, when the designer uses this valve again, the system will be able to automatically recognize and convert it into the corresponding 3D pixels.

[0084] Through the embodiments provided by the present application, after the second pixel carrying the three-dimensional identification is placed in the automatic recognition database, the automatic recognition capability of the system is significantly improved. In the future, when processing two-dimensional drawings containing these pixels, the system will be able to complete the conversion from two-dimensional to three-dimensional more quickly and accurately. This not only saves the designer's time and energy, but also improves the efficiency and accuracy of three-dimensional modeling. At the same time, with the continuous expansion and improvement of the database, the intelligence level of the system will continue to improve.

[0085] As an optional solution, after obtaining the two-dimensional drawing, the method further includes:

[0086] Check whether the pixels in the two-dimensional drawing are stored in the automatic recognition database, and prompt the pixels that are not stored in the automatic recognition database to be marked.

[0087] In an optional embodiment, pixel detection refers to the system automatically checking each pixel in the two-dimensional drawing to determine whether it already exists in the automatic recognition database.

[0088] In an optional embodiment, a prompt for identification is a prompt given by the system for pixels that are not stored in the automatic recognition database, informing the user that these pixels need to be manually identified in three dimensions.

[0089] It should be noted that, in this embodiment, after obtaining a two-dimensional drawing, the system will automatically detect whether the pixels in the drawing have been stored in the automatic recognition database. For pixels not stored in the database, the system will give a prompt that needs to be marked so that the user knows which pixels need to be processed manually.

[0090] The introduction of this step greatly improves the designer's work efficiency. Through the system's automatic detection and prompts, designers can quickly locate the pixels that need to be manually processed without having to check each pixel one by one. This reduces the designer's workload and ensures the accuracy and completeness of 3D modeling.

[0091] To further illustrate, for example, a designer imports a 2D drawing containing multiple elements. After automatic detection, the system finds that there is a special mechanical part element that is not in the automatic recognition database. Therefore, the system displays a prompt mark next to the element, such as a red question mark or highlight, to remind the designer that this element needs to be manually 3D marked.

[0092] By automatically detecting the pixels in the two-dimensional drawings and giving prompts for the ones that need to be marked, this embodiment improves the efficiency of designers in processing two-dimensional drawings. Designers can quickly find and process those pixels that are not in the automatic recognition database according to the prompts of the system, thereby ensuring the smooth progress of three-dimensional modeling. This intelligent auxiliary means not only saves time, but also improves the accuracy and work efficiency of three-dimensional modeling.

[0093] As an optional solution, before the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel are integrated to obtain the three-dimensional model corresponding to the two-dimensional drawing, the method further includes: pre-integrating the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel to obtain a pre-three-dimensional model, wherein the pre-integration process includes combining the contours of the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel according to the position relationship;

[0094] The three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel are integrated to obtain a three-dimensional model corresponding to the two-dimensional drawing, including: when the completeness corresponding to the three-dimensional model is greater than or equal to a preset threshold, the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel are integrated to obtain the three-dimensional model.

[0095] In an optional embodiment, the pre-integration process refers to the process of preliminarily combining the contours of three-dimensional pixels according to their positional relationships before formal integration.

[0096] In an optional embodiment, the pre-three-dimensional model: a preliminary three-dimensional model obtained after a pre-integration process.

[0097] In an optional embodiment, completeness: an indicator that measures the completeness and accuracy of the pre-3D model.

[0098] In an optional embodiment, a preset threshold is a set value used to determine whether the completeness of the preliminary three-dimensional model satisfies the conditions for performing formal integration processing.

[0099] It should be noted that this embodiment describes a pre-integration process before formally integrating the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel. The pre-integration process mainly combines the contours of the three-dimensional pixels according to the positional relationship to obtain a pre-three-dimensional model. Only when the completeness of the pre-three-dimensional model reaches or exceeds a preset threshold, the formal integration process will be performed to obtain the final three-dimensional model.

[0100] Pre-integration processing is an important intermediate step that allows designers to make a preliminary arrangement and combination of 3D pixels before formal integration. This can not only help designers check whether the relative positions and relationships between pixels are correct, but also discover and solve possible integration problems in advance. By setting a preset threshold, it can ensure that formal integration is only carried out when the pre-3D model reaches a certain degree of completeness, thereby improving the accuracy and quality of the final 3D model.

[0101] To further illustrate, it is optional to assume that the present embodiment is constructing a three-dimensional model of a complex mechanical device. Before formally combining all the parts, the present embodiment may first perform a pre-integration process to preliminarily combine the three-dimensional pixels of each part according to their positions in the device. In this way, the present embodiment can obtain a preliminary three-dimensional model, from which the general shape of the entire device can be seen. If the completeness of this preliminary three-dimensional model reaches the threshold set by the present embodiment (for example, 80%), then the present embodiment can continue with the formal integration process to obtain an accurate and complete three-dimensional model.

[0102] By introducing the mechanism of pre-integration processing and preset threshold, this embodiment improves the accuracy and efficiency of three-dimensional model construction. Pre-integration processing allows designers to perform preliminary arrangement and inspection of three-dimensional pixels before formal integration, so as to discover and solve potential problems in advance. The setting of preset thresholds ensures that formal integration processing will only be carried out when the pre-three-dimensional model reaches a certain degree of completeness, which further ensures the accuracy and quality of the final three-dimensional model. This method not only improves the efficiency of modeling, but also reduces the cost of later modification and adjustment.

[0103] As an optional solution, for ease of understanding, the above-mentioned three-dimensional model acquisition method is applied to architectural scenes, aiming to solve the problem that some pixels cannot be automatically converted during the two-dimensional to three-dimensional conversion process of CAD drawings, thereby improving modeling efficiency.

[0104] It should be noted that in the construction industry, the conversion of CAD drawings from 2D to 3D is a key link. Currently, although the program can identify some components based on pixel features and automatically convert them, there is still a problem that the pixels of some components cannot be accurately identified. This situation results in missing components in the converted 3D model, and manual modeling is required on the successfully converted model, which not only reduces modeling efficiency, but also increases the difficulty of collaborative work.

[0105] In order to solve this problem, this embodiment proposes a new method. Before conversion, this embodiment groups and identifies the pixels that cannot be intelligently converted. This identification not only contains the information of the pixels that cannot be converted, but also comes with the corresponding three-dimensional model name and storage address. This means that before the process of converting two-dimensional to three-dimensional begins, this embodiment has already prefabricated the three-dimensional models corresponding to these difficult-to-identify pixels.

[0106] In the process of converting 2D to 3D, the system first performs basic 2D to 3D model conversion. Then, by identifying the previously set manual markers, the system accurately inserts the pre-established 3D model into the identified model. This method can quickly generate a complete and accurate 3D model, greatly improving modeling efficiency and model quality.

[0107] Regarding the specific interaction method, this embodiment designs the following concise and efficient steps:

[0108] The user clicks the preset command "3D Mark" and then selects the pixel to be marked. Figure 3 As shown, the system will pop up a dialog box, prompting the user to select the corresponding 3D file directory, such as "Directory: E:\Test\Model Drawings". Once the selection is completed, the pixel identification work is also completed.

[0109] In the subsequent 3D conversion process, the user does not need to perform any additional operations. The program will automatically perform the above-mentioned insertion and integration work to generate a complete and accurate 3D model.

[0110] In this way, the present embodiment not only improves the automation of 2D to 3D conversion, but also greatly improves modeling efficiency and accuracy. At the same time, since the 3D models of the difficult-to-recognize pixels are prefabricated in advance, this also makes collaborative work easier and more efficient.

[0111] In an optional embodiment, before performing the intelligent conversion from 2D to 3D, the pixels in the 2D drawing that cannot be automatically converted are manually marked, and pixel data containing these marks is generated. This step is the basis for the subsequent conversion process and ensures that all pixels can be effectively processed.

[0112] For these specific pixels, corresponding 3D model files, i.e. preset 3D pixels, are created in advance. This step provides an accurate 3D data basis for subsequent automatic insertion operations.

[0113] During the conversion process, the system automatically detects and identifies pixels with manual markings through a preset recognition mechanism. This mechanism ensures the intelligent and automated conversion process, reducing the need for manual intervention.

[0114] The system further uses a preset mechanism to accurately identify the coordinates of the manually marked pixels and their corresponding 3D pixel file names and storage locations. The accuracy of this step is crucial for the subsequent 3D pixel insertion.

[0115] Finally, according to the identified coordinates, the system accurately inserts the preset 3D pixels into the successfully converted total model. This not only improves the overall efficiency of model conversion, but also ensures the integrity and accuracy of the 3D model.

[0116] Through the embodiments provided by the present application, two-dimensional to three-dimensional graphic insertion is performed directly according to the identification, and the accurate conversion of the two-dimensional drawing orientation information of the identification element to the three-dimensional space is realized, which significantly improves the conversion efficiency. The complex component modeling tasks are further separated from the large model and performed on the small model instead. This approach not only reduces the operating burden of the program, but also improves the flexibility and efficiency of modeling. In addition, this embodiment is also more suitable for collaborative work. Small models can be assigned to different operators, thereby realizing parallel processing of work tasks and further improving overall work efficiency.

[0117] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0118] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0119] According to another aspect of the embodiments of the present application, a three-dimensional model acquisition device for implementing the above three-dimensional model acquisition method is also provided. Figure 4 As shown, the device comprises:

[0120] An acquisition unit 402 is used to acquire a two-dimensional drawing, wherein the two-dimensional drawing includes a first pixel and a second pixel, the first pixel is a pixel that meets the automatic recognition condition, and the second pixel is a pixel that does not meet the automatic recognition condition;

[0121] The identification unit 404 is used to perform three-dimensional identification on the second pixel to obtain the second pixel carrying the three-dimensional identification, wherein the three-dimensional identification is used to indicate the three-dimensional pixel corresponding to the second pixel;

[0122] The recognition unit 406 is used to automatically recognize the first pixel and convert the first pixel into a three-dimensional pixel corresponding to the first pixel during the automatic recognition process;

[0123] The integration unit 408 is used to integrate the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel to obtain a three-dimensional model corresponding to the two-dimensional drawing.

[0124] For a specific embodiment, reference may be made to the example shown in the above-mentioned method for obtaining a three-dimensional model, which will not be described in detail in this example.

[0125] As an optional solution, the identification unit 404 includes:

[0126] A display module, configured to display a three-dimensional file directory in response to a first selection operation performed on the second pixel, wherein the three-dimensional file directory includes at least one three-dimensional pixel;

[0127] A first establishing module is used for establishing an association relationship between a target three-dimensional pixel and a second pixel in response to a second selection operation performed on a target three-dimensional pixel in at least one three-dimensional pixel;

[0128] The identification module is used to perform three-dimensional identification on the second pixel according to the association relationship to obtain the second pixel carrying the three-dimensional identification.

[0129] For a specific embodiment, reference may be made to the example shown in the above-mentioned method for obtaining a three-dimensional model, which will not be described in detail in this example.

[0130] As an optional solution, build modules including:

[0131] The conversion submodule is used to convert the first position information of the second pixel in the two-dimensional drawing into three dimensions to obtain the second position information of the target three-dimensional pixel in the three-dimensional model, wherein the first position information and the second position information are associated with each other.

[0132] For a specific embodiment, reference may be made to the example shown in the above-mentioned method for obtaining a three-dimensional model, which will not be described in detail in this example.

[0133] As an optional solution, the integration unit 408 includes:

[0134] The second building module is used to build an initial model corresponding to the two-dimensional drawing using the three-dimensional pixel corresponding to the first pixel;

[0135] The insertion module is used to insert the target three-dimensional pixel into the initial model through the second orientation information to obtain a three-dimensional model.

[0136] For a specific embodiment, reference may be made to the example shown in the above-mentioned method for obtaining a three-dimensional model, which will not be described in detail in this example.

[0137] As an optional solution, the device also includes:

[0138] The storage unit is used for placing the second pixel carrying the three-dimensional identification into an automatic identification database after performing three-dimensional identification on the second pixel to obtain the second pixel carrying the three-dimensional identification, wherein the pixels stored in the automatic identification database are pixels that meet the automatic identification conditions, and the first pixel is a pixel stored in the automatic identification database.

[0139] For a specific embodiment, reference may be made to the example shown in the above-mentioned method for obtaining a three-dimensional model, which will not be described in detail in this example.

[0140] As an optional solution, the device also includes:

[0141] The detection unit is used to detect whether the pixels in the two-dimensional drawing are stored in the automatic recognition database after obtaining the two-dimensional drawing, and to prompt the pixels that are not stored in the automatic recognition database to be marked.

[0142] For a specific embodiment, reference may be made to the example shown in the above-mentioned method for obtaining a three-dimensional model, which will not be described in detail in this example.

[0143] As an optional solution, the device further includes: a pre-integration unit, which is used to perform pre-integration processing on the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel to obtain a pre-three-dimensional model before integrating the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel to obtain a three-dimensional model corresponding to the two-dimensional drawing, wherein the pre-integration processing includes combining the contours of the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel according to the position relationship;

[0144] The integration unit 408 includes: an integration module, which is used to integrate the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel to obtain a three-dimensional model when the completeness corresponding to the preliminary three-dimensional model is greater than or equal to a preset threshold.

[0145] For a specific embodiment, reference may be made to the example shown in the above-mentioned method for obtaining a three-dimensional model, which will not be described in detail in this example.

[0146] According to another aspect of the embodiment of the present application, an electronic device for implementing the above-mentioned three-dimensional model acquisition method is also provided. The electronic device can be but is not limited to Figure 1 The user device 102 or the server 112 shown in FIG. 1 is used as an example to illustrate the electronic device as the user device 102. Figure 5 As shown, the electronic device includes a memory 502 and a processor 504. The memory 502 stores a computer program, and the processor 504 is configured to execute the steps in any of the above method embodiments through the computer program.

[0147] In an optional embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0148] In an optional embodiment, the processor may be configured to perform the following steps through a computer program:

[0149] S1, obtaining a two-dimensional drawing, wherein the two-dimensional drawing includes a first pixel and a second pixel, the first pixel is a pixel that meets an automatic recognition condition, and the second pixel is a pixel that does not meet the automatic recognition condition;

[0150] S2, performing three-dimensional identification on the second pixel to obtain the second pixel carrying the three-dimensional identification, wherein the three-dimensional identification is used to indicate the three-dimensional pixel corresponding to the second pixel;

[0151] S3, automatically identifying the first pixel, and in the process of automatic identification, converting the first pixel into a three-dimensional pixel corresponding to the first pixel;

[0152] S4, integrating the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel to obtain a three-dimensional model corresponding to the two-dimensional drawing.

[0153] Alternatively, a person skilled in the art may understand that: Figure 5 The structure shown is for illustration only. Figure 5 The structure of the electronic device is not limited. Figure 5 More or fewer components (such as network interfaces, etc.) as shown in, or with Figure 5 Different configurations are shown.

[0154] Among them, the memory 502 can be used to store software programs and modules, such as the program instructions / modules corresponding to the method and device for obtaining the three-dimensional model in the embodiment of the present application. The processor 504 executes various functional applications and data processing by running the software programs and modules stored in the memory 502, that is, realizing the above-mentioned method for obtaining the three-dimensional model. The memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 502 may further include a memory remotely arranged relative to the processor 504, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 502 can be specifically, but not limited to, used to store information such as two-dimensional drawings, first pixels, second pixels, and three-dimensional models. As an example, such as Figure 5 As shown, the memory 502 may include, but is not limited to, the acquisition unit 402, the identification unit 404, the recognition unit 406, and the integration unit 408 in the three-dimensional model acquisition device. In addition, it may also include, but is not limited to, other module units in the three-dimensional model acquisition device, which will not be repeated in this example.

[0155] Optionally, the transmission device 506 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 506 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 506 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0156] In addition, the electronic device further includes: a display 508 for displaying the two-dimensional drawing, the first pixel, the second pixel, the three-dimensional model and other information; and a connection bus 510 for connecting the various module components in the electronic device.

[0157] In other embodiments, the user device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. Among them, a peer-to-peer network may be formed between the nodes, and any form of computing device, such as a server, user device, or other electronic device, may become a node in the blockchain system by joining the peer-to-peer network.

[0158] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer program / instruction comprising a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions provided by the embodiments of the present application are executed.

[0159] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0160] It should be noted that the computer system of the electronic device is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0161] The computer system includes a central processing unit (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) or the program loaded from the storage part to the random access memory (RAM). In the random access memory, various programs and data required for system operation are also stored. The central processing unit, the read-only memory and the random access memory are connected to each other through a bus. The input / output interface (I / O interface) is also connected to the bus.

[0162] The following components are connected to the input / output interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a local area network card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the input / output interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.

[0163] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions defined in the system of the present application are executed.

[0164] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.

[0165] In an optional embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0166] S1, obtaining a two-dimensional drawing, wherein the two-dimensional drawing includes a first pixel and a second pixel, the first pixel is a pixel that meets an automatic recognition condition, and the second pixel is a pixel that does not meet the automatic recognition condition;

[0167] S2, performing three-dimensional identification on the second pixel to obtain the second pixel carrying the three-dimensional identification, wherein the three-dimensional identification is used to indicate the three-dimensional pixel corresponding to the second pixel;

[0168] S3, automatically identifying the first pixel, and in the process of automatic identification, converting the first pixel into a three-dimensional pixel corresponding to the first pixel;

[0169] S4, integrating the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel to obtain a three-dimensional model corresponding to the two-dimensional drawing.

[0170] Optionally, in the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0171] In an optional embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the electronic device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0172] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0173] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to execute all or part of the steps of the methods of each embodiment of the present application.

[0174] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0175] In the several embodiments provided in the present application, it should be understood that the disclosed user equipment can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0176] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple 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.

[0177] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0178] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for acquiring a three-dimensional model, characterized in that: include: Acquire a two-dimensional drawing, wherein the two-dimensional drawing includes a first pixel and a second pixel, the first pixel is a pixel that meets an automatic recognition condition, and the second pixel is a pixel that does not meet the automatic recognition condition; Performing three-dimensional identification on the second pixel to obtain a second pixel carrying the three-dimensional identification, wherein the three-dimensional identification is used to indicate the three-dimensional pixel corresponding to the second pixel; Automatically identifying the first pixel, and in the process of automatically identifying, converting the first pixel into a three-dimensional pixel corresponding to the first pixel; Integrate the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel to obtain a three-dimensional model corresponding to the two-dimensional drawing; Before the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel are integrated to obtain the three-dimensional model corresponding to the two-dimensional drawing, the method further includes: pre-integrating the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel to obtain a pre-three-dimensional model, wherein the pre-integration process includes combining the contours of the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel according to the position relationship; The three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel are integrated to obtain the three-dimensional model corresponding to the two-dimensional drawing, including: when the completeness corresponding to the preliminary three-dimensional model is greater than or equal to a preset threshold, the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel are integrated to obtain the three-dimensional model.

2. The method according to claim 1, characterized in that The step of performing three-dimensional labeling on the second pixel to obtain the second pixel carrying the three-dimensional label includes: In response to a first selection operation performed on the second pixel, displaying a three-dimensional file directory, wherein the three-dimensional file directory includes at least one three-dimensional pixel; In response to a second selection operation performed on a target three-dimensional pixel in the at least one three-dimensional pixel, establishing an association relationship between the target three-dimensional pixel and the second pixel; According to the association relationship, the second pixel is three-dimensionally labeled to obtain the second pixel carrying the three-dimensional label.

3. The method according to claim 2, characterized in that The establishing of the association relationship between the target three-dimensional pixel and the second pixel includes: The first position information of the second pixel in the two-dimensional drawing is converted into three dimensions to obtain the second position information of the target three-dimensional pixel in the three-dimensional model, wherein the first position information and the second position information have the association relationship.

4. The method according to claim 3, characterized in that The step of integrating the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel to obtain the three-dimensional model corresponding to the two-dimensional drawing includes: Using the three-dimensional pixel corresponding to the first pixel, an initial model corresponding to the two-dimensional drawing is established; The target three-dimensional pixel is inserted into the initial model through the second position information to obtain the three-dimensional model.

5. The method according to claim 1, characterized in that After performing three-dimensional labeling on the second pixel to obtain the second pixel carrying the three-dimensional label, the method further includes: The second pixel carrying the three-dimensional mark is placed in an automatic recognition database, wherein the pixels stored in the automatic recognition database are pixels that meet the automatic recognition conditions, and the first pixel is a pixel stored in the automatic recognition database.

6. The method according to claim 5, characterized in that After obtaining the two-dimensional drawing, the method further includes: It is detected whether the pixels in the two-dimensional drawing are stored in the automatic recognition database, and a prompt is given to the pixels that are not stored in the automatic recognition database to be marked.

7. A device for acquiring a three-dimensional model, characterized in that: include: An acquisition unit, used for acquiring a two-dimensional drawing, wherein the two-dimensional drawing includes a first pixel and a second pixel, the first pixel is a pixel that meets an automatic recognition condition, and the second pixel is a pixel that does not meet the automatic recognition condition; an identification unit, used for performing three-dimensional identification on the second pixel to obtain a second pixel carrying a three-dimensional identification, wherein the three-dimensional identification is used to indicate a three-dimensional pixel corresponding to the second pixel; a recognition unit, configured to automatically recognize the first pixel and, during the automatic recognition process, convert the first pixel into a three-dimensional pixel corresponding to the first pixel; An integration unit, used for integrating the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel to obtain a three-dimensional model corresponding to the two-dimensional drawing; A pre-integration unit is used for pre-integrating the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel to obtain a pre-three-dimensional model before integrating the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel to obtain a three-dimensional model corresponding to the two-dimensional drawing, wherein the pre-integration process includes combining the contours of the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel according to the position relationship; The integration unit includes: an integration module for integrating the three-dimensional pixel corresponding to the second pixel and the three-dimensional pixel corresponding to the first pixel to obtain a three-dimensional model when the completeness corresponding to the pre-three-dimensional model is greater than or equal to a preset threshold.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 6 when executed by an electronic device.

9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 6 through the computer program.

Citation Information

Patent Citations

  • A management method and device of a component database

    CN109543209A

  • Model processing method and related device

    CN111143923A