Three-dimensional model generation method, device and electronic equipment

By obtaining and processing the node information and feature parameters of the target real-life elements in the electronic map, the three-dimensional model is automatically generated, which solves the problem of huge labor costs and uneven quality in urban-level three-dimensional modeling in the existing technology, and realizes efficient and convenient three-dimensional modeling processing.

CN114299224BActive Publication Date: 2025-05-13新奥新智科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111477128.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-06
Publication Date
2025-05-13
Estimated Expiration
2041-12-06

AI Technical Summary

Technical Problem

When the existing technology converts two-dimensional data into three-dimensional models, it requires designers to complete it manually, resulting in huge labor and time costs in urban-level application scenarios, and the model quality is uneven.

Method used

By obtaining the node information and feature parameters of the target real scene element in the electronic map, the intersection points are automatically connected to generate and reconstruct real scene elements, and three-dimensional modeling is performed based on the feature parameters to generate a three-dimensional model.

Benefits of technology

It realizes efficient and convenient three-dimensional modeling of multiple target real-life elements, which is suitable for urban-level three-dimensional modeling, reducing human factors and avoiding uneven model quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114299224B_ABST
    Figure CN114299224B_ABST
Patent Text Reader

Abstract

The present application discloses a three-dimensional model generation method, device and electronic device, the method comprising: obtaining node information and feature parameters corresponding to M target real scene elements in an electronic map; connecting the respective intersections corresponding to the M target real scene elements according to the connection relationship between the respective intersections in the node information, and obtaining M first reconstructed real scene elements corresponding to the M target real scene elements; performing three-dimensional modeling processing on the M first reconstructed real scene elements according to the feature parameters, and generating the first three-dimensional model corresponding to the M target real scene elements. Based on the above method, the node information and feature parameters corresponding to the target real scene elements are used to generate the three-dimensional model corresponding to the target real scene elements, and the three-dimensional modeling processing can be performed on multiple target real scene elements at the same time, which is efficient and convenient, and is suitable for city-level three-dimensional modeling. At the same time, since a large number of human factors are reduced, the uneven quality of the generated three-dimensional model can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information processing technology, and in particular to a three-dimensional model generation method, device and electronic equipment. Background Art

[0002] A three-dimensional city model is a three-dimensional model generated based on two-dimensional data. By realizing digital three-dimensional simulation of urban terrain, roads, buildings, etc., the three-dimensional city model can provide a virtual urban environment similar to the real life environment, allowing users to intuitively experience the entire city from a global perspective, bringing convenience to urban planning, construction and operation decision-making.

[0003] At present, the conversion of two-dimensional data into three-dimensional models is usually based on different two-dimensional data sources, such as CAD drawings, planar Geographic Information System (GIS), etc., to determine the shape and position of the two-dimensional primitives of a single plane, and then provide three-dimensional information for the two-dimensional primitives of a single plane based on other reference files input from the outside, such as supplementary Building Information Modeling (BIM) information, more two-dimensional data sources, etc., so that the two-dimensional primitives have three-dimensional attributes and spatial characteristics. Furthermore, designers perform three-dimensional modeling on the two-dimensional primitives based on the three-dimensional attributes and spatial characteristics of the two-dimensional primitives.

[0004] The above method of converting two-dimensional data into a three-dimensional model requires a designer to complete and can only be applied to a small number of building units. If used in city-level application scenarios, it will consume huge manpower and time costs, seriously affecting the progress of the project. In addition, under the influence of various human factors, the quality of model generation will be uneven. Summary of the invention

[0005] The present application provides a 3D model generation method, device and electronic device, which generates a 3D model corresponding to a target real scene element from the node information and feature parameters corresponding to the target real scene element, and can simultaneously perform 3D modeling processing on multiple target real scene elements, which is efficient and convenient and suitable for city-level 3D modeling. At the same time, since a large number of human factors are reduced, the uneven quality of the generated 3D model can be avoided.

[0006] In a first aspect, the present application provides a three-dimensional model generation method, the method comprising:

[0007] Obtain node information and feature parameters corresponding to M target real scene elements in the electronic map, wherein M is an integer greater than or equal to 1, the node information indicates the intersection information between the graphic line segments corresponding to the real scene elements in the electronic map, including the intersection coordinates and the connection relationship between each intersection, and the feature parameters at least include the real scene element category and height information;

[0008] According to the connection relationship between each intersection point in the node information, each intersection point corresponding to the M target real scene elements is connected to obtain M first reconstructed real scene elements corresponding to the M target real scene elements;

[0009] The M first reconstructed real scene elements are subjected to three-dimensional modeling processing according to the characteristic parameters to generate first three-dimensional models corresponding to the M target real scene elements.

[0010] Through the above method, the node information and characteristic parameters corresponding to the target real scene element are used to generate the 3D model corresponding to the target real scene element, and the 3D modeling processing can be performed on multiple target real scene elements at the same time, which is efficient and convenient and can be applied to city-level 3D modeling. At the same time, since a large number of human factors are reduced, the uneven quality of the generated 3D model can be avoided.

[0011] Furthermore, the step of obtaining node information and feature parameters corresponding to the target real scene element in the electronic map includes:

[0012] Obtain node information and characteristic parameters corresponding to N types of real scene elements in the electronic map, where N is an integer greater than or equal to M;

[0013] Determining whether the node information and the characteristic parameter correspond to the same real scene element;

[0014] If yes, the node information and the characteristic parameters are used as the target real scene elements;

[0015] Otherwise, the node information and characteristic parameters corresponding to the same real scene element are classified to obtain the node information and characteristic parameters corresponding to N types of real scene elements;

[0016] The node information and feature parameters corresponding to any M types of real scene elements among the N types of real scene elements are used as the node information and feature parameters corresponding to the M target real scene elements.

[0017] Through the above method, the node information and characteristic parameters used for generating the three-dimensional model are obtained.

[0018] Further, three-dimensional modeling is performed on the M first reconstructed real scene elements according to the characteristic parameters to generate first three-dimensional models corresponding to the M target real scene elements, including:

[0019] According to the characteristic parameters, feature-labeling is performed on the M first reconstructed real scene elements to obtain M second reconstructed real scene elements containing feature identifiers;

[0020] The M second reconstructed real scene elements are converted into the first three-dimensional model according to the height information corresponding to the feature identifier.

[0021] Through the above method, the M first reconstructed real scene elements are converted from two-dimensional models into three-dimensional models.

[0022] In a possible design, after generating the first three-dimensional models corresponding to the M target real scene elements, the following steps are included:

[0023] According to the characteristic parameters, adjusting the connection lines between the intersection points corresponding to the first three-dimensional model;

[0024] Determine whether the similarity between the adjusted first three-dimensional model and the M target real scene elements is greater than a preset threshold;

[0025] If yes, the adjusted first three-dimensional model is used as the target three-dimensional model;

[0026] Otherwise, continue to adjust the connection lines between the intersection points corresponding to the first three-dimensional model until the similarity between the adjusted first three-dimensional model and the M target real scene elements is greater than the preset threshold.

[0027] By means of the above method, the generated first three-dimensional model is adjusted so that the final target three-dimensional model can better restore the M target real scene elements.

[0028] In one possible design, the device further includes:

[0029] Encoding the target three-dimensional model so that an output format of the target three-dimensional model satisfies an output condition;

[0030] The target 3D model that meets the output conditions is taken as the final 3D model.

[0031] Through the above method, the output format of the final three-dimensional model is adapted to the hardware resources.

[0032] In a second aspect, the present application provides a three-dimensional model generation device, the device comprising:

[0033] An acquisition module, used to acquire node information and feature parameters corresponding to M target real scene elements in the electronic map, wherein M is an integer greater than or equal to 1, the node information indicates the intersection information between the graphic line segments corresponding to the real scene elements in the electronic map, including the intersection coordinates and the connection relationship between each intersection, and the feature parameters at least include the real scene element category and height information;

[0034] A connection module, configured to connect the intersections corresponding to the M target real scene elements according to the connection relationship between the intersections in the node information, to obtain M first reconstructed real scene elements corresponding to the M target real scene elements;

[0035] A generating module is used to perform three-dimensional modeling processing on the M first reconstructed real scene elements according to the characteristic parameters to generate first three-dimensional models corresponding to the M target real scene elements.

[0036] Furthermore, the acquisition module is specifically used for:

[0037] Obtain node information and characteristic parameters corresponding to N types of real scene elements in the electronic map, where N is an integer greater than or equal to M;

[0038] Determining whether the node information and the characteristic parameter correspond to the same real scene element;

[0039] If yes, the node information and the characteristic parameters are used as the target real scene elements;

[0040] Otherwise, the node information and characteristic parameters corresponding to the same real scene element are classified to obtain the node information and characteristic parameters corresponding to N types of real scene elements;

[0041] The node information and feature parameters corresponding to any M types of real scene elements among the N types of real scene elements are used as the node information and feature parameters corresponding to the M target real scene elements.

[0042] Furthermore, the generation module is specifically used for:

[0043] According to the characteristic parameters, feature-labeling is performed on the M first reconstructed real scene elements to obtain M second reconstructed real scene elements containing feature identifiers;

[0044] The M second reconstructed real scene elements are converted into the first three-dimensional model according to the height information corresponding to the feature identifier.

[0045] In one possible design, the device further includes:

[0046] According to the characteristic parameters, adjusting the connection lines between the intersection points corresponding to the first three-dimensional model;

[0047] Determine whether the similarity between the adjusted first three-dimensional model and the M target real scene elements is greater than a preset threshold;

[0048] If yes, the adjusted first three-dimensional model is used as the target three-dimensional model;

[0049] Otherwise, continue to adjust the connection lines between the intersection points corresponding to the first three-dimensional model until the similarity between the adjusted first three-dimensional model and the M target real scene elements is greater than the preset threshold.

[0050] In a possible design, after taking the adjusted first three-dimensional model as the target three-dimensional model, the method further includes:

[0051] An encoding module, used for encoding the target three-dimensional model so that an output format of the target three-dimensional model satisfies an output condition;

[0052] The determination module is used to take the target three-dimensional model that meets the output conditions as the final three-dimensional model.

[0053] In a third aspect, the present application provides an electronic device, including:

[0054] Memory, used to store computer programs;

[0055] The processor is used to implement the above three-dimensional model generation method steps when executing the computer program stored in the memory.

[0056] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned three-dimensional model generation method steps are implemented.

[0057] Based on the above 3D model generation method, the node information and feature parameters corresponding to the target real scene element are used to generate the 3D model corresponding to the target real scene element, and 3D modeling processing can be performed on multiple target real scene elements at the same time, which is efficient and convenient and suitable for city-level 3D modeling. At the same time, since a large number of human factors are reduced, the uneven quality of the generated 3D model can be avoided.

[0058] The technical effects that can be achieved in each of the above-mentioned second to fourth aspects and each of the above-mentioned aspects refer to the technical effects that can be achieved in the above-mentioned first aspect or various possible schemes in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 A flowchart of a three-dimensional model generation method provided in this application;

[0060] Figure 2 A two-dimensional schematic diagram corresponding to an office building provided for this application;

[0061] Figure 3 A three-dimensional plan view corresponding to an office building provided for this application;

[0062] Figure 4aA schematic diagram of highway reconstruction provided for this application;

[0063] Figure 4b A schematic diagram of an adjusted highway reconstruction provided for this application;

[0064] Figure 5 A schematic diagram of the structure of a three-dimensional model generating device provided in this application;

[0065] Figure 6 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION

[0066] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The specific operating methods in the method embodiments can also be applied to device embodiments or system embodiments. It should be noted that in the description of the present application, "multiple" is understood as "at least two". "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A is connected to B, which can represent: A is directly connected to B and A is connected to B through C. In addition, in the description of the present application, words such as "first" and "second" are only used to distinguish the purpose of description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.

[0067] The embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0068] At present, the conversion of two-dimensional data into three-dimensional models is usually based on different two-dimensional data sources, such as CAD drawings, planar Geographic Information System (GIS), etc., to determine the shape and position of the two-dimensional primitives of a single plane, and then provide three-dimensional information for the two-dimensional primitives of a single plane based on other reference files input from the outside, such as supplementary Building Information Modeling (BIM) information, more two-dimensional data sources, etc., so that the two-dimensional primitives have three-dimensional attributes and spatial characteristics. Furthermore, designers perform three-dimensional modeling on the two-dimensional primitives based on the three-dimensional attributes and spatial characteristics of the two-dimensional primitives.

[0069] The above method of converting two-dimensional data into a three-dimensional model requires a designer to complete and can only be used for a small number of building units. If used in city-level application scenarios, it will consume huge manpower and time costs, seriously affecting the progress of the project. In addition, under the influence of various human factors, the quality of model generation will be uneven.

[0070] In order to solve the above problems, the present application provides a 3D model generation method, which generates a 3D model corresponding to the target real scene element from the node information and feature parameters corresponding to the target real scene element, and can perform 3D modeling processing on multiple target real scene elements at the same time, which is efficient and convenient and suitable for city-level 3D modeling. At the same time, since a large number of human factors are reduced, the uneven quality of the generated 3D model can be avoided.

[0071] Among them, the method and device described in the embodiments of the present application are based on the same technical concept. Since the principles of the problems solved by the method and the device are similar, the embodiments of the device and the method can refer to each other, and the repeated parts will not be repeated.

[0072] like Figure 1 As shown, it is a flowchart of a three-dimensional model generation method provided by the present application, which specifically includes the following steps:

[0073] S11, obtaining node information and feature parameters corresponding to M target real scene elements in the electronic map;

[0074] In the embodiment of the present application, the electronic map includes Open Street Map (OSM), Baidu Map, and Amap. The node information and feature parameters corresponding to N kinds of real scene elements can be obtained through the data interface of the electronic map, where N is an integer greater than or equal to 1, and the N kinds of real scene elements can be any N kinds of urban real scene elements such as mountains, rivers, roads, tracks, bridges, and buildings;

[0075] In the above process, the node information corresponding to the real scene element refers to the intersection information between the graphic line segments corresponding to the real scene element in the electronic map, including the intersection coordinates and the connection relationship between each intersection. If the real scene element is a path, the node information corresponding to the real scene element includes the coordinates of the path turning point, the path intersection coordinates and the connection relationship between each coordinate point; if the real scene element is a building, the node information corresponding to the real scene element includes the corner coordinates of the building and the connection relationship between each coordinate point;

[0076] The characteristic parameters corresponding to the real scene elements include at least the category of the real scene elements and the height information. If the real scene element is a path, the categories of the real scene elements include highways, rivers, rail transit, etc., and the height information of the real scene elements includes the path level, such as tunnels, ground roads, elevated roads, etc.; if the real scene element is a building, at this time, the characteristic parameters corresponding to the real scene element also include entrance and exit information, the categories of the real scene elements include apartments, office buildings, residences, etc., and the height information of the real scene elements includes elevation, number of floors, etc.

[0077] Of course, in addition to electronic maps, data such as node information and characteristic parameters corresponding to N kinds of real scene elements can also be obtained from other data sources, and the data source is not specifically limited here.

[0078] After obtaining the node information and feature parameters corresponding to N kinds of real scene elements, it is necessary to further process all the node information and feature parameters to obtain M target real scene elements, where M is an integer greater than or equal to 1 and less than or equal to N. The specific method of processing all the node information and feature parameters includes:

[0079] Determine whether the acquired node information and feature parameters correspond to the same real scene element;

[0080] If so, the node information and feature parameters are used as target real scene elements;

[0081] Otherwise, the node information and characteristic parameters corresponding to the same real scene element are classified to obtain the node information and characteristic parameters corresponding to N types of real scene elements;

[0082] The node information and feature parameters corresponding to any M types of real scene elements among the N types of real scene elements are used as the node information and feature parameters corresponding to the M target real scene elements.

[0083] Through the above method, node information and feature parameters for three-dimensional modeling can be obtained.

[0084] S12, connecting the intersections corresponding to the M target real scene elements according to the connection relationship between the intersections in the node information, to obtain first reconstructed real scene elements corresponding to the M target real scene elements respectively;

[0085] In the embodiment of the present application, after obtaining the node information and feature parameters corresponding to the M target real scene elements from the electronic map, the nodes are connected according to the connection relationship between the nodes in the node information to obtain the first reconstructed real scene elements corresponding to the M target real scene elements. For example, Figure 2 As shown, this is the node information corresponding to the office building, where point A, point B, point C, and point D are the four corners of the office building projected in the two-dimensional space. However, in actual operation, it is not known that these four points are the nodes corresponding to the office building. It is only known that the connection relationship between these four points is A and B, B and C, C and D, and D and A. Therefore, after connecting these four points according to the connection relationship between the points in the node information, a square figure is obtained.

[0086] Through the above method, the nodes in the node information are connected to achieve reconstruction of the real scene elements in the two-dimensional space.

[0087] S13, performing three-dimensional modeling processing on the M first reconstructed real scene elements according to the characteristic parameters to generate first three-dimensional models corresponding to the M target real scene elements.

[0088] In the embodiment of the present application, after obtaining M first reconstructed real scene elements, it is necessary to add three-dimensional features to the M first reconstructed real scene elements in order to generate a three-dimensional model. The specific method may be:

[0089] First, according to the feature parameters, feature annotation is performed on the M first reconstructed real scene elements to obtain M second reconstructed real scene elements containing feature identifiers. For example, Figure 2 ,exist Figure 2 Among them, the characteristic marks include: office building, elevation 9 meters, 3 floors;

[0090] Then, according to the height information corresponding to the feature identifier, the M second reconstructed real scene elements are converted into the first three-dimensional model. For example, referring to Figure 3 , Figure 3 is Figure 2 After adding height information on the basis of the model, it is converted into a three-dimensional model, in which the height information includes an elevation of 9 meters and 3 floors.

[0091] Through the above method, the M first reconstructed real scene elements are converted from two-dimensional models into three-dimensional models.

[0092] Based on a 3D model generation method provided by the present application, the node information and feature parameters corresponding to the target real scene element are used to generate the 3D model corresponding to the target real scene element, and 3D modeling processing can be performed on multiple target real scene elements at the same time, which is efficient and convenient and suitable for city-level 3D modeling. At the same time, since a large number of human factors are reduced, the uneven quality of the generated 3D model can be avoided.

[0093] Furthermore, in order to make the finally generated three-dimensional model more realistic, it is necessary to further process the generated first three-dimensional model. The specific processing method includes:

[0094] According to the characteristic parameters, the connection lines between the intersection points corresponding to the first three-dimensional model are adjusted. For example, refer to Figure 4a , which is the top view of the three-dimensional model of the highway. The characteristic parameters corresponding to points P2 and P5 are that the inner angle of the bend is 120 degrees. In this case, the original connection method needs to be adjusted to adjust the straight line to Figure 4b The arc shown makes the adjusted 3D model more realistic.

[0095] Next, it is determined whether the similarity between the adjusted first three-dimensional model and the M target real scene elements is greater than a preset threshold;

[0096] If yes, the adjusted first three-dimensional model is used as the target three-dimensional model;

[0097] Otherwise, continue to adjust the connection lines between the intersection points corresponding to the first three-dimensional model until the similarity between the adjusted first three-dimensional model and the M target real scene elements is greater than a preset threshold.

[0098] By means of the above method, the generated first three-dimensional model is adjusted so that the final target three-dimensional model can better restore the M target real scene elements.

[0099] Furthermore, after the target 3D model is generated, in order to make the target 3D model more readable by hardware resources, the output format of the 3D model needs to be encoded. Depending on the actual situation, the encoding format can be FBX format or OBJ format, which is not specifically limited here.

[0100] In a possible design, after the target three-dimensional model is generated, the target three-dimensional model may be further rendered so that the color of the three-dimensional model is closer to the real target scene elements.

[0101] Based on a 3D model generation method provided by the present application, the node information and feature parameters corresponding to the target real scene element are used to generate the 3D model corresponding to the target real scene element, and 3D modeling processing can be performed on multiple target real scene elements at the same time, which is efficient and convenient and suitable for city-level 3D modeling. At the same time, since a large number of human factors are reduced, the uneven quality of the generated 3D model can be avoided.

[0102] Based on the same inventive concept, the present application also provides a three-dimensional model generation device, such as Figure 5 FIG. 1 is a schematic diagram of a structure of a three-dimensional model generating device in the present application, the device comprising:

[0103] The acquisition module 51 is used to acquire node information and characteristic parameters corresponding to M target real scene elements in the electronic map, wherein M is an integer greater than or equal to 1, and the node information indicates the intersection information between the graphic line segments corresponding to the real scene elements in the electronic map, including the intersection coordinates and the connection relationship between each intersection, and the characteristic parameters at least include the real scene element category and height information;

[0104] A connection module 52, configured to connect the intersections corresponding to the M target real scene elements according to the connection relationship between the intersections in the node information, to obtain M first reconstructed real scene elements corresponding to the M target real scene elements;

[0105] The generating module 53 is used to perform three-dimensional modeling processing on the M first reconstructed real scene elements according to the characteristic parameters to generate first three-dimensional models corresponding to the M target real scene elements.

[0106] Furthermore, the acquisition module 51 is specifically used for:

[0107] Obtain node information and characteristic parameters corresponding to N types of real scene elements in the electronic map, where N is an integer greater than or equal to M;

[0108] Determining whether the node information and the characteristic parameter correspond to the same real scene element;

[0109] If yes, the node information and the characteristic parameters are used as the target real scene elements;

[0110] Otherwise, the node information and characteristic parameters corresponding to the same real scene element are classified to obtain the node information and characteristic parameters corresponding to N types of real scene elements;

[0111] The node information and feature parameters corresponding to any M types of real scene elements among the N types of real scene elements are used as the node information and feature parameters corresponding to the M target real scene elements.

[0112] Furthermore, the generating module 53 is specifically used for:

[0113] According to the characteristic parameters, feature-labeling is performed on the M first reconstructed real scene elements to obtain M second reconstructed real scene elements containing feature identifiers;

[0114] The M second reconstructed real scene elements are converted into the first three-dimensional model according to the height information corresponding to the feature identifier.

[0115] In one possible design, the device further includes:

[0116] According to the characteristic parameters, adjusting the connection lines between the intersection points corresponding to the first three-dimensional model;

[0117] Determine whether the similarity between the adjusted first three-dimensional model and the M target real scene elements is greater than a preset threshold;

[0118] If yes, the adjusted first three-dimensional model is used as the target three-dimensional model;

[0119] Otherwise, continue to adjust the connection lines between the intersection points corresponding to the first three-dimensional model until the similarity between the adjusted first three-dimensional model and the M target real scene elements is greater than the preset threshold.

[0120] In one possible design, the device further includes:

[0121] An encoding module, used for encoding the target three-dimensional model so that an output format of the target three-dimensional model satisfies an output condition;

[0122] The determination module is used to take the target three-dimensional model that meets the output conditions as the final three-dimensional model.

[0123] Based on a 3D model generation device provided by the present application, the node information and feature parameters corresponding to the target real scene element are used to generate the 3D model corresponding to the target real scene element, and 3D modeling processing can be performed on multiple target real scene elements at the same time, which is efficient and convenient and suitable for city-level 3D modeling. At the same time, since a large number of human factors are reduced, the uneven quality of the generated 3D model can be avoided.

[0124] Based on the same inventive concept, an electronic device is also provided in the embodiment of the present application, and the electronic device can realize the function of the aforementioned three-dimensional model generating device, referring to Figure 6 , the electronic device comprises:

[0125] At least one processor 61, and a memory 62 connected to the at least one processor 61. The specific connection medium between the processor 61 and the memory 62 is not limited in the embodiment of the present application. Figure 6 In the example, the processor 61 and the memory 62 are connected via a bus 60. The bus 60 is Figure 6 The connection between other components is shown by bold lines, and the connection between other components is only for schematic illustration and is not intended to be limiting. The bus 60 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 61 can also be called a controller, and there is no limitation on the name.

[0126] In the embodiment of the present application, the memory 62 stores instructions that can be executed by at least one processor 61. The at least one processor 61 can execute the three-dimensional model generation method discussed above by executing the instructions stored in the memory 62. The processor 61 can implement Figure 5 The functions of each module in the device shown.

[0127] Among them, the processor 61 is the control center of the device, and can use various interfaces and lines to connect the various parts of the entire control device. By running or executing instructions stored in the memory 62 and calling data stored in the memory 62, the various functions of the device and processing data, the device can be monitored as a whole.

[0128] In a possible design, the processor 61 may include one or more processing units, and the processor 61 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 61. In some embodiments, the processor 61 and the memory 62 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on separate chips.

[0129] The processor 61 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the three-dimensional model generation method disclosed in the embodiments of the present application can be directly embodied as a hardware processor to be executed, or can be executed by a combination of hardware and software modules in the processor.

[0130] The memory 62 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 62 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 62 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 62 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.

[0131] By programming the processor 61, the code corresponding to the three-dimensional model generation method described in the above embodiment can be fixed into the chip, so that the chip can execute the code when running. Figure 1The steps of the three-dimensional model generation method of the embodiment shown are as follows: How to design and program the processor 61 is a technique known to those skilled in the art and will not be described in detail here.

[0132] Based on the same inventive concept, an embodiment of the present application further provides a storage medium, which stores computer instructions. When the computer instructions are executed on a computer, the computer executes the three-dimensional model generation method discussed above.

[0133] In some possible implementations, various aspects of the three-dimensional model generation method provided by the present application can also be implemented in the form of a program product, which includes program code. When the program product is run on an apparatus, the program code is used to enable the control device to execute the steps of the three-dimensional model generation method according to various exemplary embodiments of the present application described above in this specification.

[0134] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0135] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0136] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0137] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0138] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A three-dimensional model generation method, characterized in that: The method comprises: Obtain node information and feature parameters corresponding to M target real scene elements in the electronic map, wherein M is an integer greater than or equal to 1, the node information indicates the intersection information between the graphic line segments corresponding to the real scene elements in the electronic map, including the intersection coordinates and the connection relationship between each intersection, and the feature parameters at least include the real scene element category and height information; According to the connection relationship between each intersection point in the node information, each intersection point corresponding to the M target real scene elements is connected to obtain M first reconstructed real scene elements corresponding to the M target real scene elements; Performing three-dimensional modeling processing on the M first reconstructed real scene elements according to the characteristic parameters to generate first three-dimensional models corresponding to the M target real scene elements; According to the characteristic parameters, adjusting the connection lines between the intersection points corresponding to the first three-dimensional model; Determine whether the similarity between the adjusted first three-dimensional model and the M target real scene elements is greater than a preset threshold; If yes, the adjusted first three-dimensional model is used as the target three-dimensional model; Otherwise, continue to adjust the connection lines between the intersection points corresponding to the first three-dimensional model until the similarity between the adjusted first three-dimensional model and the M target real scene elements is greater than the preset threshold.

2. The method according to claim 1, characterized in that The step of obtaining node information and feature parameters corresponding to the target real scene element in the electronic map includes: Obtain node information and characteristic parameters corresponding to N types of real scene elements in the electronic map, where N is an integer greater than or equal to M; Determining whether the node information and the characteristic parameter correspond to the same real scene element; If yes, the node information and the characteristic parameters are used as the target real scene elements; Otherwise, the node information and characteristic parameters corresponding to the same real scene element are classified to obtain the node information and characteristic parameters corresponding to N types of real scene elements; The node information and feature parameters corresponding to any M types of real scene elements among the N types of real scene elements are used as the node information and feature parameters corresponding to the M target real scene elements.

3. The method according to claim 1, characterized in that The three-dimensional modeling process of the M first reconstructed real scene elements is performed according to the characteristic parameters to generate first three-dimensional models corresponding to the M target real scene elements, including: According to the characteristic parameters, feature-labeling is performed on the M first reconstructed real scene elements to obtain M second reconstructed real scene elements containing feature identifiers; The M second reconstructed real scene elements are converted into the first three-dimensional model according to the height information corresponding to the feature identifier.

4. The method according to claim 1, characterized in that After taking the adjusted first three-dimensional model as the target three-dimensional model, the method further includes: Encoding the target three-dimensional model so that an output format of the target three-dimensional model satisfies an output condition; The target 3D model that meets the output conditions is taken as the final 3D model.

5. A three-dimensional model generating device, characterized in that: The device comprises: An acquisition module, used to acquire node information and feature parameters corresponding to M target real scene elements in the electronic map, wherein M is an integer greater than or equal to 1, the node information indicates the intersection information between the graphic line segments corresponding to the real scene elements in the electronic map, including the intersection coordinates and the connection relationship between each intersection, and the feature parameters at least include the real scene element category and height information; A connection module, configured to connect the intersections corresponding to the M target real scene elements according to the connection relationship between the intersections in the node information, to obtain M first reconstructed real scene elements corresponding to the M target real scene elements; A generating module, configured to perform three-dimensional modeling processing on the M first reconstructed real scene elements according to the characteristic parameters, and generate first three-dimensional models corresponding to the M target real scene elements; According to the characteristic parameters, adjusting the connection lines between the intersection points corresponding to the first three-dimensional model; Determine whether the similarity between the adjusted first three-dimensional model and the M target real scene elements is greater than a preset threshold; If yes, the adjusted first three-dimensional model is used as the target three-dimensional model; Otherwise, continue to adjust the connection lines between the intersection points corresponding to the first three-dimensional model until the similarity between the adjusted first three-dimensional model and the M target real scene elements is greater than the preset threshold.

6. The device according to claim 5, characterized in that The acquisition module is specifically used for: Obtain node information and characteristic parameters corresponding to N types of real scene elements in the electronic map, where N is an integer greater than or equal to M; Determining whether the node information and the characteristic parameter correspond to the same real scene element; If yes, the node information and the characteristic parameters are used as the target real scene elements; Otherwise, the node information and characteristic parameters corresponding to the same real scene element are classified to obtain the node information and characteristic parameters corresponding to N types of real scene elements; The node information and feature parameters corresponding to any M types of real scene elements among the N types of real scene elements are used as the node information and feature parameters corresponding to the M target real scene elements.

7. The device according to claim 5, characterized in that The generation module is specifically used for: According to the characteristic parameters, feature-labeling is performed on the M first reconstructed real scene elements to obtain M second reconstructed real scene elements containing feature identifiers; The M second reconstructed real scene elements are converted into the first three-dimensional model according to the height information corresponding to the feature identifier.

8. The device according to claim 5, characterized in that The device also includes: An encoding module, used for encoding the target three-dimensional model so that an output format of the target three-dimensional model satisfies an output condition; The determination module is used to take the target three-dimensional model that meets the output conditions as the final three-dimensional model.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to implement the method steps of any one of claims 1 to 4 when executing the computer program stored in the memory.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps of any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Three-dimensional model generation method and system

    CN107481321A

  • Live-action model construction method and device taking entity target as minimum unit

    CN112308962A