3D model picture automatic generation method and device, electronic equipment and storage medium

Through automatic rendering and uploading technology, the cumbersome and high cost of uploading product images in the existing technology are solved, and efficient and real 3D model image generation and uploading are achieved, improving user experience and enterprise efficiency .

CN119444950AActive Publication Date: 2025-02-14粤港澳大湾区(广东)国创中心
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202411429259.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-02-14
Estimated Expiration
2044-10-14

AI Technical Summary

Technical Problem

The existing 3D component library has cumbersome and error-prone problems in uploading product images, and unrendered 3D model images cannot provide sufficient sensory experience, increasing labor and time costs.

Method used

Through the automatic rendering technology of 3D models, the preset material resource library and surface treatment resource library are used to render the 3D model to be processed, generate realistic rendered pictures, and automatically upload them to the specified location of the missing pictures.

Benefits of technology

It quickly and accurately adds realistic materials, colors and surface treatment effects to complex 3D models, simplifies the product image acquisition process, reduces the company's operating costs, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119444950A_ABST
    Figure CN119444950A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a 3D model picture automatic generation method and device, electronic equipment and a storage medium, and belongs to the technical field of 3D models. The method comprises the following steps: detecting a 3D model picture of a platform, and if a specified position of the platform lacks the 3D model picture, obtaining a to-be-processed 3D model corresponding to the specified position; rendering the to-be-processed 3D model by adopting a preset material resource library and a surface processing resource library to obtain a rendered 3D model; intercepting a picture of the rendered 3D model to obtain a rendered picture of the rendered 3D model; and uploading the rendered picture to a specified position of the platform. According to the 3D model picture automatic generation method provided by the embodiment of the invention, automatic rendering and screenshot are carried out on the 3D model, so that the operation steps of product picture acquisition are greatly simplified, and a large amount of time and labor cost are saved for enterprises.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of 3D models, and in particular to a method and apparatus, device and storage medium for automatically generating 3D model images. Background Art

[0002] Currently, with the rapid development of industrial software and data, the 3D resource library of parts has become an important tool for enterprises to display their products. However, the existing resource library has obvious deficiencies in uploading product images. Enterprises need to manually find, download or screenshot the real product images of parts and manually upload them to the resource library. This process is cumbersome and error-prone, which reduces the user experience. At the same time, when real product images are difficult to obtain, uploading unrendered 3D model images cannot provide sufficient sensory experience, and using 3D modeling software for rendering further increases labor and time costs. Therefore, the existing technology still needs to be improved in the construction of parts resource libraries. Summary of the invention

[0003] The main purpose of the embodiments of the present application is to propose a method and device for automatically generating 3D model images, an electronic device and a storage medium, aiming to quickly and accurately add realistic materials, colors and surface treatment effects to complex 3D models through automatic rendering technology of component 3D models, with simple operation and realistic rendering effects.

[0004] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application proposes a method for automatically generating a 3D model image, the method comprising:

[0005] Detect the 3D model image of the platform, and if the 3D model image is missing at the specified position of the platform, obtain the 3D model to be processed corresponding to the specified position;

[0006] Using a preset material resource library and a surface treatment resource library, the 3D model to be processed is rendered to obtain a rendered 3D model;

[0007] Intercepting the image of the rendered 3D model to obtain a rendered image of the rendered 3D model;

[0008] The rendered image is uploaded to a designated location on the platform.

[0009] In some embodiments, the step of uploading the rendered image to a designated location on the platform specifically includes:

[0010] Naming the rendered image according to the name of the 3D model to obtain a named rendered image;

[0011] Obtain the storage path corresponding to the specified location of the platform;

[0012] The named rendered image is uploaded to a designated location on the platform according to the storage path.

[0013] In some embodiments, the step of using a preset material resource library and a surface treatment resource library to render the 3D model to be processed to obtain a rendered 3D model specifically includes:

[0014] Using 3D modeling software to open the 3D model to be processed, and obtaining the component category and component attributes of the 3D model to be processed;

[0015] According to the component category and the component attribute, obtaining rendering parameters of the 3D model to be processed;

[0016] According to the rendering parameters, the 3D model to be processed is rendered using a preset material resource library and a surface treatment resource library to obtain a rendered 3D model.

[0017] In some embodiments, the step of intercepting the image of the rendered 3D model to obtain the rendered image of the rendered 3D model specifically includes:

[0018] Obtaining component categories and component attributes of the 3D model to be processed;

[0019] Obtaining a screenshot angle of the 3D model to be processed according to the component category;

[0020] Obtaining a screenshot ratio and a screenshot size of the 3D model to be processed according to the component attributes;

[0021] Based on the screenshot angle, the screenshot ratio and the screenshot size, a picture of the rendered 3D model is captured to obtain a rendered picture of the rendered 3D model.

[0022] In some embodiments, the step of using a preset material resource library and a surface treatment resource library to render the 3D model to be processed to obtain a rendered 3D model specifically includes:

[0023] Obtaining custom rendering parameters of the 3D model;

[0024] According to the custom rendering parameters, the 3D model to be processed is rendered using a preset material resource library and a surface treatment resource library to obtain a rendered 3D model.

[0025] In some embodiments, the step of using a preset material resource library and a surface treatment resource library to render the 3D model to be processed to obtain a rendered 3D model specifically includes:

[0026] Acquire a number of 3D models to be processed, and send the 3D models to be processed to a number of sub-servers;

[0027] Obtaining a number of rendered 3D models uploaded by the sub-server;

[0028] The sub-server is used to render the 3D model to be processed by using a preset material resource library and a surface treatment resource library to obtain a rendered 3D model.

[0029] In some embodiments, the step of detecting the 3D model image of the platform and, if the 3D model image is missing at the designated position of the platform, obtaining the 3D model to be processed corresponding to the designated position further includes:

[0030] The 3D model to be processed is converted into STP format.

[0031] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application proposes a device for automatically generating a 3D model image, the device comprising:

[0032] An image detection module is used to detect the 3D model image of the platform, and if the 3D model image is missing at the specified position of the platform, obtain the 3D model to be processed corresponding to the specified position;

[0033] A model rendering module, used to render the 3D model to be processed by using a preset material resource library and a surface treatment resource library to obtain a rendered 3D model;

[0034] A picture interception module, used to intercept the picture of the rendered 3D model to obtain a rendered picture of the rendered 3D model;

[0035] The image uploading module is used to upload the rendered image to a designated location on the platform.

[0036] To achieve the above-mentioned purpose, a third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned method for automatically generating a 3D model image when executing the computer program.

[0037] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes 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 method for automatically generating a 3D model image is implemented.

[0038] The 3D model image automatic generation method and device, equipment and storage medium proposed in this application renders the 3D model that lacks the 3D model image, captures the image of the rendered 3D model, and uploads the image to the specified location of the missing image. By automatically rendering and capturing the 3D model, the operation steps of obtaining product images are greatly simplified, saving a lot of time and labor costs for enterprises. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 is a flow chart of a method for automatically generating a 3D model image provided in an embodiment of the present application;

[0040] Figure 2 yes Figure 1 Flow chart of step S104 in FIG.

[0041] Figure 3 yes Figure 1 Flow chart of step S102 in FIG.

[0042] Figure 4 yes Figure 1 Flow chart of step S103 in FIG.

[0043] Figure 5 It is a structural schematic diagram of a 3D model image automatic generation device provided in an embodiment of the present application;

[0044] Figure 6 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0046] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0047] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0048] First, some nouns involved in this application are analyzed:

[0049] 3D model: 3D model, also known as three-dimensional model, refers to a model with three-dimensional data constructed through a virtual three-dimensional space using three-dimensional software. It is usually used in the fields of three-dimensional printing, computer graphics, movies, television, video games and virtual reality. These models define the shape, size, position and surface characteristics of objects in a three-dimensional coordinate system through a series of geometric elements such as points, lines and surfaces; three-dimensional models can represent objects or scenes in the real world in great detail, including their shape, texture, color, light and shadow effects, etc. They can be created through various 3D modeling software, such as Blender, 3ds Max, Maya, Cinema 4D, SketchUp, etc. The process of creating a three-dimensional model usually involves steps such as design, modeling, texture mapping, lighting and rendering.

[0050] Rendering: Rendering of 3D models is an important part of computer graphics, which involves converting 3D models into realistic 2D images. The basic principle of rendering is to simulate the propagation and reflection of light in 3D space, and calculate the color and brightness of each pixel in different positions according to the surface properties of the 3D model (such as material, color, texture, etc.) and light source factors (position, direction, intensity, etc.), so as to generate a 2D image. This process involves complex physical and mathematical calculations to ensure that the generated image has a high degree of realism and fidelity.

[0051] The importance of industrial software and industrial data is becoming increasingly prominent. As the cornerstone of intelligent manufacturing, they are driving the manufacturing industry to develop in a more efficient and intelligent direction. In this context, the construction of 3D resource libraries for parts has become a key measure for major companies to improve the efficiency of product design, manufacturing and supply chain management. These resource libraries not only provide a convenient platform for parts query and selection for the design team within the company, but also promote resource sharing and collaborative design across enterprises, accelerating product innovation and market response. However, although the current component resource library has made significant progress in displaying basic 3D models, there are still many shortcomings in providing real product images of parts. Some resource libraries are limited to displaying simple 3D models, lacking intuitiveness and realism, and it is difficult to meet users' in-depth understanding of the appearance, materials and actual application scenarios of parts. Although some more advanced resource libraries have tried to introduce real product images, they still rely on a lot of manual operations in the process of image acquisition, screening and uploading, which is not only inefficient, but also easy to introduce human errors, affecting user experience and the accuracy of the resource library.

[0052] When building a parts resource library, companies need to invest a lot of manpower and material resources to collect, screen and upload real product images of parts. In this process, manual search, downloading, screenshots, identification and uploading are cumbersome and complicated, which is not only time-consuming and labor-intensive, but also easy to cause errors in uploading pictures due to human negligence, thereby misleading users and reducing the credibility and user experience of the resource library. When companies cannot obtain suitable real product pictures, they often choose to directly screenshot or render the 3D model as an alternative. However, this approach has obvious limitations. Unrendered 3D model images often lack realism and details, and it is difficult to accurately reflect the actual appearance and material of parts. Although using 3D modeling software for rendering can improve the quality of images, this process also requires a lot of manual time and effort, and has high requirements for rendering technology, which increases the operating costs of enterprises.

[0053] Based on this, the embodiments of the present application provide a method and apparatus, a device and a storage medium for automatically generating 3D model images, aiming to improve the efficiency of 3D model display and reduce the operating costs of enterprises through automatic rendering of 3D models. The method and apparatus, a device and a storage medium for automatically generating 3D model images provided in the embodiments of the present application are specifically described through the following embodiments. First, the method for automatically generating 3D model images in the embodiments of the present application is described.

[0054] The method for automatically generating 3D model images provided in the embodiment of the present application relates to the field of 3D model technology. The method for automatically generating 3D model images provided in the embodiment of the present application can be applied to a terminal, can be applied to a server side, or can be software running in a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or can be configured as a server cluster or a distributed system composed of multiple physical servers, or can be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can realize the application of the method for automatically generating 3D model images, etc., but is not limited to the above forms.

[0055] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0056] It should be noted that in each specific implementation of the present application, when it is necessary to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.

[0057] Figure 1 is an optional flowchart of the method for automatically generating a 3D model image provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S104.

[0058] Step S101, detecting the 3D model image of the platform, if the 3D model image is missing at the designated position of the platform, obtaining the 3D model to be processed corresponding to the designated position;

[0059] Step S102, using a preset material resource library and a surface treatment resource library to render the 3D model to be processed, to obtain a rendered 3D model;

[0060] Step S103, capturing the image of the rendered 3D model to obtain a rendered image of the rendered 3D model;

[0061] Step S104, uploading the rendered image to a designated location of the platform.

[0062] Steps S101 to S104 shown in the embodiment of the present application realize automatic detection, rendering, interception and uploading of 3D model images in the resource library in an automated and intelligent manner, effectively solving the problems existing in the current component resource library in displaying real product images, and improving the quality of the resource library and user experience.

[0063] Specifically, the system will first traverse and check the designated location of the resource library to determine whether there are any missing 3D model images. The determination of missing images is achieved by comparing the model information recorded in the database with the actual stored image files. Next, the system will select appropriate materials and surface treatment effects from the preset material resource library and surface treatment resource library according to the properties and requirements of the 3D model to be processed, and then apply these resources to render the model. The rendering process involves advanced graphics processing technologies such as lighting simulation, shadow processing, and texture mapping. After the rendering is completed, the system will automatically capture the image of the rendered 3D model. Finally, the system will upload the captured rendered image to the designated location of the resource library and update the relevant records in the database to reflect this change.

[0064] In step S104 of some embodiments, referring to Figure 2 , specifically including:

[0065] S1041, naming the rendered image according to the name of the 3D model to obtain a named rendered image;

[0066] S1042, obtaining a storage path corresponding to the platform specified location;

[0067] S1043: Upload the named rendering image to a designated location of the platform according to the storage path.

[0068] Steps S1041 to S1043 shown in the embodiment of the present application, in the process of uploading the rendered image to the designated location of the platform, ensure the accuracy and efficiency of image uploading through standardized naming, automatic acquisition of storage path and automated uploading, thereby improving the quality of the resource library and user experience.

[0069] Specifically, the system will automatically generate a corresponding rendering image name based on the name of the 3D model to be processed. This name can include key information such as the model number, type, and size to ensure the uniqueness and identifiability of the name. Then, the system automatically calculates the storage path corresponding to the specified location based on the directory structure and storage rules of the resource library, and uploads the image to the specified location of the resource library based on the named rendering image and storage path obtained in the previous steps.

[0070] In step S102 of some embodiments, referring to Figure 3 , specifically including:

[0071] S1021, using 3D modeling software to open the 3D model to be processed, and obtaining the component category and component attributes of the 3D model to be processed;

[0072] S1022, acquiring rendering parameters of the 3D model to be processed according to the component category and the component attributes;

[0073] S1023. Render the 3D model to be processed using a preset material resource library and a surface treatment resource library according to the rendering parameters to obtain a rendered 3D model.

[0074] Steps S1021 to S1023 shown in the embodiment of the present application, during the process of rendering the 3D model to be processed, ensure the accuracy and quality of the rendering results by analyzing the model's component categories and properties in detail, accurately matching rendering parameters, and applying high-quality materials and surface treatment effects. This not only improves the display effect of the 3D model in the resource library, but also provides users with a more intuitive and realistic visual experience.

[0075] Specifically, the system will first use professional 3D modeling software (such as SolidWorks, AutoCAD, etc.) to open the 3D model file to be processed; after opening the model, the system will traverse the various parts of the model, identify and extract the category (such as mechanical parts, electronic components, etc.) and properties (such as size, shape, material, etc.) of each part. By analyzing the category and properties of the model's parts in detail, the system can more accurately understand the structure and characteristics of the model, providing a reliable basis for the subsequent determination of rendering parameters. After obtaining the category and properties of the model's parts, the system will select appropriate rendering parameters for each part according to the preset rendering parameter library. The rendering parameters include light intensity, shadow effect, texture resolution, material reflectivity, etc. After determining the rendering parameters, the system will select appropriate materials and surface treatment effects from the preset material resource library and surface treatment resource library, and apply these resources to render the model. By applying high-quality materials and surface treatment effects, as well as precise rendering parameters, the system can generate a rendered 3D model with realism and rich details, providing users with a more intuitive and realistic visual experience.

[0076] In step S103 of some embodiments, referring to Figure 4 , specifically including:

[0077] S1031, obtaining the component category and component attributes of the 3D model to be processed;

[0078] S1032, obtaining a screenshot angle of the 3D model to be processed according to the component category;

[0079] S1033, obtaining a screenshot ratio and a screenshot size of the 3D model to be processed according to the component attributes;

[0080] S1034: Based on the screenshot angle, the screenshot ratio, and the screenshot size, capture the image of the rendered 3D model to obtain a rendered image of the rendered 3D model.

[0081] In steps S1031 to S1034 shown in the embodiment of the present application, in the process of capturing the rendered 3D model image, the rationality and accuracy of the screenshot parameters are ensured by comprehensively considering the component categories and properties of the 3D model to be processed, thereby improving the quality and display effect of the rendered image.

[0082] Specifically, the system will first obtain the component category and component attributes of the 3D model to be processed, and then determine the best screenshot angle based on the category of the component, combined with the preset screenshot angle library or intelligent recommendation based on machine learning algorithms; for example, for mechanical parts, it may be necessary to display their assembly interface and internal structure; for electronic components, it may be necessary to highlight their pin layout and appearance features. At the same time, the system will determine the appropriate screenshot ratio and size based on the attributes of the components, combined with the preset screenshot ratio and size rules. After determining the screenshot-related parameters, the system will take screenshots of the rendered 3D model based on parameters such as the screenshot angle, screenshot ratio, and screenshot size to ensure that the final rendered image meets the preset requirements. Reasonable screenshot parameter settings ensure that the rendered image is clear, complete, and easy to understand, thereby improving the user's visual experience and satisfaction.

[0083] In some embodiments, the step of using a preset material resource library and a surface treatment resource library to render the 3D model to be processed to obtain a rendered 3D model specifically includes:

[0084] Obtaining custom rendering parameters of the 3D model;

[0085] According to the custom rendering parameters, the 3D model to be processed is rendered using a preset material resource library and a surface treatment resource library to obtain a rendered 3D model.

[0086] Specifically, the system first checks whether the 3D model to be processed contains custom rendering parameters, which may be set in advance by the user or model designer to control the effects of lighting, shadows, colors, textures, reflectivity, etc. during the rendering process. Custom rendering parameters may exist in various forms, such as metadata embedded in the 3D model file, external configuration files, or parameters entered by the user through the interface. The system will parse these parameters and prepare to apply them in the subsequent rendering process. After the rendering step begins, the system will use the custom rendering parameters obtained previously, combined with the preset material resource library and surface treatment resource library, to render the 3D model to be processed. The preset material resource library contains a variety of material information, such as metal, plastic, wood, glass, etc., and each material has corresponding texture, color, reflectivity and other properties. The surface treatment resource library contains various surface treatment effects, such as polishing, sandblasting, electroplating, etc., which can further enhance the realism and details of the model. According to the requirements in the custom rendering parameters, the system will select the appropriate material from the material resource library and apply the corresponding surface treatment effect to finally generate a rendered 3D model. By allowing users or model designers to set custom rendering parameters, the system can flexibly handle various rendering requirements to meet different display and application scenarios.

[0087] In some embodiments, the step of using a preset material resource library and a surface treatment resource library to render the 3D model to be processed to obtain a rendered 3D model specifically includes:

[0088] Acquire a number of 3D models to be processed, and send the 3D models to be processed to a number of sub-servers;

[0089] Obtaining a number of rendered 3D models uploaded by the sub-server;

[0090] The sub-server is used to render the 3D model to be processed by using a preset material resource library and a surface treatment resource library to obtain a rendered 3D model.

[0091] Specifically, the system first collects and obtains multiple 3D models to be processed, which may come from user uploads, database imports or other sources. The system distributes the 3D models to be processed to multiple sub-servers based on the number and load of currently available sub-servers. The distribution strategy is optimized based on factors such as load balancing, model size, and rendering complexity to ensure that each sub-server can efficiently handle its assigned rendering tasks. After receiving the 3D model to be processed, each sub-server will use the preset material resource library and surface treatment resource library for rendering. These resource libraries may be stored locally or accessed through the network, depending on the design and configuration of the system. After completing the rendering task, each sub-server will upload the generated rendered 3D model back to the main server or the designated storage location. The system will collect these rendering results and perform necessary integration and verification to ensure that all rendering tasks have been successfully completed. Through distributed rendering, the system can process multiple rendering tasks at the same time, significantly shortening the overall rendering time. At the same time, according to the load of the sub-server and the complexity of the rendering task, the system can dynamically adjust the task allocation to optimize resource utilization. By increasing the number of sub-servers, the system can easily expand the rendering capacity to meet larger-scale rendering needs.

[0092] In some embodiments, the step of detecting the 3D model image of the platform and, if the 3D model image is missing at the designated position of the platform, obtaining the 3D model to be processed corresponding to the designated position further includes:

[0093] The 3D model to be processed is converted into STP format.

[0094] Specifically, the system will read and parse the acquired 3D model to be processed, and then convert it into the STP format. The converted STP file will contain complete 3D model information and be represented in a standardized way, which allows it to be opened, edited and exchanged in different CAD (computer-aided design) systems, CAE (computer-aided engineering) systems, CAM (computer-aided manufacturing) systems and other software that supports the STP format.

[0095] See also Figure 5 The embodiment of the present application also provides a device for automatically generating a 3D model image, the device comprising:

[0096] The image detection module 101 is used to detect the 3D model image of the platform, and if the 3D model image is missing at the specified position of the platform, obtain the 3D model to be processed corresponding to the specified position;

[0097] The model rendering module 102 is used to render the 3D model to be processed by using a preset material resource library and a surface treatment resource library to obtain a rendered 3D model;

[0098] The picture interception module 103 is used to intercept the picture of the rendered 3D model to obtain the rendered picture of the rendered 3D model;

[0099] The image uploading module 104 is used to upload the rendered image to a designated location of the platform.

[0100] The specific implementation of the 3D model image automatic generation device is basically the same as the specific implementation of the above-mentioned 3D model image automatic generation method, and will not be repeated here.

[0101] See also Figure 6 , Figure 6 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0102] The processor 601 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0103] The memory 602 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 602 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 602, and the processor 601 calls and executes the 3D model image automatic generation method of the embodiment of this application;

[0104] Input / output interface 603, used to implement information input and output;

[0105] Communication interface 604, used to realize communication interaction between the device and other devices, which can be realized by wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);

[0106] Bus 605 , which transmits information between various components of the device (e.g., processor 601 , memory 602 , input / output interface 603 , and communication interface 604 );

[0107] The processor 601 , the memory 602 , the input / output interface 603 and the communication interface 604 are connected to each other in communication within the device via a bus 605 .

[0108] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned method for automatically generating a 3D model image is implemented.

[0109] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0110] The description of the embodiments of the present application is intended to more clearly illustrate the technical solutions of the embodiments of the present application and does not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.

[0111] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0112] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0113] The terms "first", "second", "third", "fourth", etc. (if any) in the specification 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.

[0114] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0115] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as 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 devices or units, which can be electrical, mechanical or other forms.

[0116] 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.

[0117] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a 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, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0118] The preferred embodiments of the present application are described above with reference to the accompanying drawings, but the scope of the rights of the present application is not limited thereto. Any modification, equivalent substitution and improvement made by those skilled in the art without departing from the scope and essence of the present application should be within the scope of the rights of the present application.

Claims

1. A method for automatically generating a 3D model image, characterized in that: The method comprises: Detect the 3D model image of the platform, and if the 3D model image is missing at the specified position of the platform, obtain the 3D model to be processed corresponding to the specified position; Using a preset material resource library and a surface treatment resource library, the 3D model to be processed is rendered to obtain a rendered 3D model; Intercepting the image of the rendered 3D model to obtain a rendered image of the rendered 3D model; The rendered image is uploaded to a designated location on the platform.

2. The method for automatically generating a 3D model image according to claim 1, characterized in that: The step of uploading the rendered image to the designated location of the platform specifically includes: Naming the rendered image according to the name of the 3D model to obtain a named rendered image; Obtain the storage path corresponding to the specified location of the platform; The named rendered image is uploaded to a designated location on the platform according to the storage path.

3. The method for automatically generating a 3D model image according to claim 1, characterized in that: The step of using a preset material resource library and a surface treatment resource library to render the 3D model to be processed to obtain a rendered 3D model specifically includes: Using 3D modeling software to open the 3D model to be processed, and obtaining the component category and component attributes of the 3D model to be processed; According to the component category and the component attribute, obtaining rendering parameters of the 3D model to be processed; According to the rendering parameters, the 3D model to be processed is rendered using a preset material resource library and a surface treatment resource library to obtain a rendered 3D model.

4. The method for automatically generating a 3D model image according to claim 1, characterized in that: The step of intercepting the image of the rendered 3D model to obtain the rendered image of the rendered 3D model specifically includes: Obtaining component categories and component attributes of the 3D model to be processed; Obtaining a screenshot angle of the 3D model to be processed according to the component category; Obtaining a screenshot ratio and a screenshot size of the 3D model to be processed according to the component attributes; Based on the screenshot angle, the screenshot ratio and the screenshot size, a picture of the rendered 3D model is captured to obtain a rendered picture of the rendered 3D model.

5. The method for automatically generating a 3D model image according to claim 1, characterized in that: The step of using a preset material resource library and a surface treatment resource library to render the 3D model to be processed to obtain a rendered 3D model specifically includes: Obtaining custom rendering parameters of the 3D model; According to the custom rendering parameters, the 3D model to be processed is rendered using a preset material resource library and a surface treatment resource library to obtain a rendered 3D model.

6. The method for automatically generating a 3D model image according to claim 1, characterized in that: The step of using a preset material resource library and a surface treatment resource library to render the 3D model to be processed to obtain a rendered 3D model specifically includes: Acquire a number of 3D models to be processed, and send the 3D models to be processed to a number of sub-servers; Obtaining a number of rendered 3D models uploaded by the sub-server; The sub-server is used to render the 3D model to be processed by using a preset material resource library and a surface treatment resource library to obtain a rendered 3D model.

7. The method for automatically generating 3D model images according to claim 1, characterized in that: After the step of detecting the 3D model image of the platform and obtaining the 3D model to be processed corresponding to the specified position if the 3D model image is missing at the specified position of the platform, the method further includes: The 3D model to be processed is converted into STP format.

8. A device for automatically generating 3D model images, characterized in that: The device comprises: An image detection module is used to detect the 3D model image of the platform, and if the 3D model image is missing at the specified position of the platform, obtain the 3D model to be processed corresponding to the specified position; A model rendering module, used to render the 3D model to be processed by using a preset material resource library and a surface treatment resource library to obtain a rendered 3D model; A picture interception module, used to intercept the picture of the rendered 3D model to obtain a rendered picture of the rendered 3D model; The image uploading module is used to upload the rendered image to a designated location on the platform.

9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the method for automatically generating a 3D model image according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for automatically generating a 3D model image according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Spatial global 3D view and panoramic image-based space display method

    CN106296783A

  • Rendering method and device, storage medium and electronic equipment

    CN111784812A

  • Model generation method and device, computer equipment and storage medium

    CN114419233A

  • Image generation method and device

    CN114445544A

  • Personalized 2D data set construction method for mechanical parts

    CN115033998A