Packaging box modeling rendering method and system

By analyzing the geometric characteristics of the packaging box and mining the matching relationship between materials and textures from historical data, we can automatically select the optimal material and texture combination, and solve the problems of low rendering efficiency and insufficient intelligence in traditional methods, and improve the intelligence level and efficiency of packaging box rendering.

CN119516077AActive Publication Date: 2025-02-25LANGBIN TECHNOLOGY (HANGZHOU) CO LTD

Patent Information

Application Number
CN202411750409.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-02
Publication Date
2025-02-25
Estimated Expiration
2044-12-02

AI Technical Summary

Technical Problem

Traditional packaging box modeling and rendering methods rely on designers to manually adjust materials and textures, resulting in low rendering efficiency, insufficient intelligence, and insufficient adaptability to diversified needs and complex rendering effects.

Method used

By mining the relationship between geometric features and materials and textures from historical data, analyzing the geometric features of the packaging box to be rendered, intelligently selecting the optimal material and texture combination to achieve automated rendering path optimization.

Benefits of technology

It improves the intelligence level of packaging box rendering, reduces designers' repeated selection and adjustment time, saves time and cost of manual operation, provides designers with flexibility and improves rendering efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119516077A_ABST
    Figure CN119516077A_ABST
Patent Text Reader

Abstract

The invention provides a packing box modeling rendering method and system, and relates to the technical field of three-dimensional modeling rendering. The method comprises the following steps: acquiring 3D model data of a to-be-rendered packaging box, and constructing to obtain a model geometric feature vector of the to-be-rendered packaging box; processing the model geometric feature vector through a material matching model, generating a plurality of candidate materials and a first matching degree of each candidate material, and querying candidate textures of each candidate material through a material texture list; determining a plurality of first rendering paths according to the candidate texture of each candidate material, analyzing the plurality of first rendering paths through a texture matching model, and generating a second matching degree of each first rendering path; and determining a second rendering path from the plurality of first rendering paths according to the second matching degree, and rendering the to-be-rendered packaging box through the second rendering path. The intelligent level of packing box rendering is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of three-dimensional modeling and rendering technology, and in particular to a packaging box modeling and rendering method and system. Background Art

[0002] The rendering effect of packaging box design plays an important role in product display and customer communication. Some traditional packaging box modeling and rendering methods rely more on designers to manually adjust and select materials, textures and other visual effects. Although this method can meet basic needs, it has certain shortcomings in efficiency and intelligence. This usually requires designers to manually select materials and textures based on experience and aesthetic subjective judgment. Although this method can achieve better rendering effects, the rendering efficiency is low, and it requires designers to have excellent knowledge reserves. It is not adaptable enough to diverse needs and complex rendering effects, and the rendering efficiency needs to be improved. Summary of the invention

[0003] To solve the above technical problems, the present invention proposes a packaging box modeling and rendering method and system, which mines the complex relationship between geometric features and materials and textures from historical data, analyzes the geometric features of the packaging box to be rendered, and intelligently selects the optimal combination from multiple candidate materials and textures, thereby realizing automatic rendering path optimization and improving the intelligence level of packaging box rendering.

[0004] To achieve the above object, the present invention provides a packaging box modeling and rendering method in a first aspect, comprising: Acquire 3D model data of the packaging box to be rendered, perform geometric feature extraction on the 3D model data of the packaging box to be rendered to obtain multiple geometric feature parameters, and construct a model geometric feature vector of the packaging box to be rendered; The model geometric feature vector is processed by a material matching model to generate a plurality of candidate materials and a first matching degree of each candidate material, and the candidate texture of each candidate material is queried by a material texture list, wherein the material texture list is constructed by analyzing historical rendering data of the packaging box; Determine a plurality of first rendering paths according to the candidate texture of each candidate material, analyze the plurality of first rendering paths by a texture matching model, and generate a second matching degree of each first rendering path; Determine a second rendering path from the plurality of first rendering paths according to the second matching degree, and render the packaging box to be rendered through the second rendering path; The analyzing the plurality of first rendering paths by using the texture matching model includes: After obtaining the historical rendering data of the packaging box, a geometric texture associated data set of each first rendering path is extracted from the historical rendering data based on multiple candidate materials and each candidate material, and the third matching degree under each first rendering path is extracted through the multiple geometric texture associated data sets, and the second matching degree of each first rendering path is calculated based on the first matching degree and the third matching degree.

[0005] Preferably, extracting a geometric texture associated data set of each first rendering path from the historical rendering data according to the multiple candidate materials and each candidate material, and extracting a third matching degree under each first rendering path through the multiple geometric texture associated data sets, including: Classifying a plurality of first rendering paths based on candidate materials to obtain a plurality of rendering path categories, extracting reference rendering data corresponding to each rendering path category from the historical rendering data, including extracting sub-sample data under a plurality of rendering operations from the historical rendering data according to the candidate materials to which each rendering path category belongs, selecting a plurality of groups of target sample data from a plurality of groups of sub-sample data according to a plurality of candidate textures involved in the rendering path category, and constructing a geometric texture associated data set containing a plurality of groups of target sample data for each rendering path category, wherein a plurality of first rendering paths containing the same candidate material correspond to the same geometric texture associated data set; Extracting a target geometric feature vector from each group of target sample data, clustering multiple groups of target sample data in each geometric texture association data set based on the target geometric feature vector to obtain multiple geometric feature clusters, and determining a first association value of each geometric feature cluster with respect to multiple candidate textures; A matching list of a packaging box to be rendered and a plurality of candidate textures in each geometric texture associated data set is determined according to the model geometric feature vector, and a third matching degree under each first rendering path is determined according to the matching list.

[0006] Preferably, determining a matching list of a packaging box to be rendered and a plurality of candidate textures in each geometric texture associated data set according to the model geometric feature vector, and determining a third matching degree under each first rendering path according to the matching list comprises: Determine the reference distances respectively corresponding to the model geometric feature vector and multiple geometric feature clusters in each geometric texture association data set, and based on the reference distances, correct the first association value of each geometric feature cluster with respect to multiple candidate textures to obtain the second association value of the to-be-rendered packaging box in each geometric feature cluster with respect to each candidate texture; Feature fusion is performed on multiple second association values ​​to generate a third association value for each candidate texture of the packaging box to be rendered in each geometric texture association data set, and a matching list of the packaging box to be rendered and multiple candidate textures in each geometric texture association data set is constructed. According to the candidate texture corresponding to the first rendering path, the third association value under each candidate texture is determined from the matching list and recorded as the third matching degree under the first rendering path.

[0007] Preferably, determining a second rendering path from a plurality of first rendering paths according to the second matching degree, and rendering the packaging box to be rendered through the second rendering path includes: Select the first rendering path with the largest second matching degree as the second rendering path, and render the packaging box to be rendered according to the candidate material and the candidate texture in the second rendering path; Among them, for the second matching degree, the first matching degree is weightedly corrected by the third matching degree to obtain the second matching degree of each first rendering path.

[0008] Preferably, the material texture list also includes: Performing statistical analysis on historical rendering data of the packaging box to determine multiple material texture combinations, counting frequency parameters of each material texture combination, and constructing a geometric structure data set of each material texture combination based on the historical rendering data; Determine a plurality of target geometric feature vectors in each geometric structure data set, and calculate an entropy value of each geometric structure data set based on the target geometric feature vectors; The frequency parameters of each material-texture combination are optimized according to the entropy value of the geometric structure data set to obtain the matching parameters of each material-texture combination, multiple target combinations are determined from the multiple material-texture combinations associated with each material, and a material texture list for each material is constructed according to the target combinations.

[0009] Preferably, the material matching model further includes: A training set is constructed based on the historical rendering data of the packaging box, and the material matching model is trained through the training set; Among them, for the construction of the training set, multiple groups of geometric structure data and rendering material data corresponding to each group of geometric structure data are extracted from the historical rendering data; Taking multiple groups of geometric structure data as input of the material matching model, taking the rendering material data corresponding to each group of geometric structure data as the training target of the material matching model, the material matching model is obtained by training with the training set, wherein the material matching model is a multi-layer perceptron model.

[0010] A second aspect of the present invention provides a packaging box modeling and rendering system, which is used to implement the above-mentioned packaging box modeling and rendering method, including: A model data preprocessing module is used to obtain 3D model data of the packaging box to be rendered, extract geometric features of the 3D model data of the packaging box to be rendered to obtain multiple geometric feature parameters, and construct a model geometric feature vector of the packaging box to be rendered; A rendering texture analysis module is used to process the model geometric feature vector through a material matching model, generate multiple candidate materials and a first matching degree of each candidate material, and query the candidate texture of each candidate material through a material texture list, wherein the material texture list is constructed by analyzing the historical rendering data of the packaging box; A rendering path analysis module, used to determine a plurality of first rendering paths according to a candidate texture of each candidate material, analyze the plurality of first rendering paths through a texture matching model, and generate a second matching degree for each first rendering path; The packaging box modeling and rendering module is used to determine a second rendering path from multiple first rendering paths according to the second matching degree, and render the packaging box to be rendered through the second rendering path.

[0011] Preferably, for the rendering path analysis module, analyzing the plurality of first rendering paths by using a texture matching model includes: After obtaining the historical rendering data of the packaging box, a geometric texture associated data set of each first rendering path is extracted from the historical rendering data based on multiple candidate materials and each candidate material, and the third matching degree under each first rendering path is extracted through the multiple geometric texture associated data sets, and the second matching degree of each first rendering path is calculated based on the first matching degree and the third matching degree.

[0012] The present invention has the following beneficial effects: The present invention analyzes historical rendering data, determines the association between geometric structure and rendering material and rendering texture in the packaging box rendering process, designs an automated packaging box rendering process, and can automatically select the most suitable material texture combination according to the geometric structure information of the packaging box to be rendered, thereby reducing the time spent by designers on repeated selection and adjustment in the rendering process, saving time and cost of manual operations, providing designers with sufficient flexibility, allowing designers to make personalized improvements based on automated rendering, and improving the efficiency and intelligence level of packaging box rendering. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 A schematic flow chart of a packaging box modeling and rendering method provided by an embodiment of the present invention.

[0014] Figure 2 A schematic diagram of the structure of a packaging box modeling and rendering system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0015] In order to make those skilled in the art better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0016] The embodiment of the present invention provides a packaging box modeling and rendering method, see Figure 1 , the method specifically comprises the following steps: Step S1, obtaining 3D model data of a packaging box to be rendered, performing geometric feature extraction on the 3D model data of the packaging box to be rendered to obtain a plurality of geometric feature parameters, and constructing a model geometric feature vector of the packaging box to be rendered.

[0017] In this embodiment, the 3D model data of the packaging box to be rendered may be from various 3D design software such as Rhino, Blender, etc., which contains basic geometric structure information of the packaging box model with a designed structure. Geometric feature extraction is performed on the 3D model data of the packaging box to obtain multiple geometric feature parameters. The geometric feature parameters include but are not limited to the model's outer dimensions, edge angles, surface curvature, crease positions, concave and convex shapes, cutting lines and other features. Based on these extracted geometric feature parameters, a model geometric feature vector of the packaging box to be rendered is constructed to represent the shape, surface properties, geometric structure and other features of the packaging box model.

[0018] Step S2: Process the model geometric feature vector through the material matching model to generate multiple candidate materials and a first matching degree of each candidate material, and query the candidate texture of each candidate material through the material texture list.

[0019] In this embodiment, the extracted model geometric feature vector is processed by a pre-trained material matching model to generate multiple candidate materials, wherein the material matching model is trained based on a training set constructed based on historical rendering data, and can be used to identify a variety of materials that are more suitable for rendering the packaging box under different geometric structures. At the same time, the model also outputs the first matching degree under each candidate material, which is used to indicate the matching degree between the packaging box to be rendered and the multiple candidate materials under the current structure. Then, multiple textures that are more matched with each material are determined according to the material texture list obtained by pre-analysis. It is worth noting that the material texture list is constructed by analyzing and arranging the historical rendering data of the packaging box, and the historical rendering data contains rendering schemes that are more matched with packaging boxes of different structures, such as information such as the rendered materials and textures. By analyzing these data, multiple texture schemes adapted to each material can be determined as reference data in the matching process.

[0020] Step S3: determining a plurality of first rendering paths according to the candidate texture of each candidate material, analyzing the plurality of first rendering paths by means of a texture matching model, and generating a second matching degree of each first rendering path.

[0021] In this embodiment, after determining the multiple candidate textures corresponding to each candidate material, each candidate material is combined with the multiple candidate textures corresponding to it, and multiple first rendering paths about the packaging box to be rendered are obtained, which are used to indicate multiple optional schemes for rendering the packaging box on the material and texture. On this basis, the multiple first rendering paths are further analyzed through the texture matching model, and the second matching degree of each first rendering path is used to indicate the overall adaptability of the texture and material of the rendering path under the current packaging box structure.

[0022] Step S4: determine a second rendering path from the multiple first rendering paths according to the second matching degree, and render the packaging box to be rendered through the second rendering path.

[0023] In this embodiment, after the second matching degree of each first rendering path is determined, a second rendering path is selected from the plurality of rendering paths. Specifically, the higher the second matching degree is, the higher the degree of adaptation of the scheme to the structure of the packaging box to be rendered is, and thus the first rendering path with the largest second matching degree is selected as the second rendering path, and the packaging box to be rendered is rendered according to the candidate materials and candidate textures in the second rendering path, thereby realizing intelligent packaging box rendering.

[0024] It is worth noting that traditional packaging box rendering relies more on the experience and subjective judgment of designers, and designers need to manually select materials and textures according to different geometric features and design requirements. This process is cumbersome and easily affected by human bias, and the rendering efficiency is low. The present invention completes the rendering process of the packaging box through the above-mentioned automated steps, and can automatically select the most suitable material texture combination, reducing the time for designers to repeatedly select and adjust during the rendering process, saving the time and cost of manual operation. And on the basis of automatically recommending the most suitable material and texture combination according to historical data and geometric features, the present invention can also provide designers with sufficient flexibility, allowing designers to make personalized improvements on the basis of automated rendering. For example, designers can further adjust certain details based on the recommended rendering path and texture combination, optimize visual effects or add specific design elements to achieve a final effect that is more in line with creative requirements. This allows designers to not only reduce cumbersome operations, but also achieve personalized artistic expression under a more efficient workflow, and can flexibly respond to the needs of different customers and markets while improving the efficiency of packaging box design rendering.

[0025] In an optional implementation process, the material texture list in step S2 is constructed in the following manner: Statistical analysis is performed on the historical rendering data of the packaging box to determine multiple material texture combinations, the frequency parameters of each material texture combination are counted, and a geometric structure data set for each material texture combination is constructed based on the historical rendering data. That is, the historical rendering data of the materials and textures involved in the material texture combination are extracted together to obtain the geometric structure data set for each material texture combination.

[0026] Then, multiple target geometric feature vectors in each geometric structure data set are determined. Since the historical rendering data includes the geometric structure data of the rendered packaging boxes under multiple rendering operations, as well as the texture, material and other data involved in the rendering scheme, the geometric structure data of the rendered packaging boxes under each rendering operation are analyzed, and the geometric structure features are extracted to construct the target geometric feature vector. The entropy value of each geometric structure data set is calculated based on the target geometric feature vector. The higher the entropy value, the more dispersed the geometric structures corresponding to the multiple packaging boxes in the geometric structure data set are, and the higher the degree of discreteness is.

[0027] The frequency parameters of each material-texture combination are optimized according to the entropy value of the geometric structure data set. Specifically, during the optimization process, the smaller the entropy value of the geometric structure data set, the larger the frequency parameter. The weight parameter used to optimize the frequency parameter of each material-texture combination can be determined by the entropy value of the geometric structure data set. The frequency parameter of each material-texture combination is optimized by the weight parameter to obtain the matching parameter of each material-texture combination. The larger the matching parameter, the more matched the material and texture involved in the material-texture combination. Through a pre-set matching threshold, multiple target combinations can be determined from multiple material-texture combinations associated with each material. A material texture list for each material is constructed according to the target combination to indicate a variety of textures that are more suitable for each material.

[0028] In an optional implementation process, the material matching model in step S2 is constructed in the following manner: A training set is constructed based on the historical rendering data of the packaging box, and the material matching model is trained through the training set; Specifically, multiple groups of geometric structure data and rendering material data corresponding to each group of geometric structure data are extracted from historical rendering data, and each group of geometric structure data is associated with the corresponding rendering material data to construct a training set. During the model training process, multiple groups of geometric structure data are used as inputs of the material matching model, and the rendering material data corresponding to each group of geometric structure data are used as the training targets of the material matching model. The material matching model learns the association between the geometric structure of the packaging box and different rendering materials through the training set, and finally, after the geometric structure data to be analyzed is input, the matching value between the geometric structure data to be analyzed and a plurality of rendering materials can be generated, which is used to measure the matching degree of different rendering materials under this geometric structure. Among them, the material matching model can specifically be a multi-layer perceptron model, which can be used to process the prediction tasks of multiple target variables and is widely used in various regression tasks. The training process of the multi-layer perceptron is a technical means well known to those skilled in the art, and will not be repeated here.

[0029] In an optional implementation process, for step S3, multiple first rendering paths are analyzed by a texture matching model, specifically including: After obtaining the historical rendering data of the packaging box, a geometric texture associated data set of each first rendering path is extracted from the historical rendering data according to multiple candidate materials and each candidate material, wherein the geometric texture associated data set is used to record the feature data under the combination of different geometric features and textures, and is specifically selected based on each candidate material and basis to analyze the more suitable texture schemes under different geometric structures of the packaging box under each candidate material, and then the third matching degree under each first rendering path is extracted through multiple geometric texture associated data sets, and finally the second matching degree of each first rendering path is calculated according to the first matching degree and the third matching degree to reflect the comprehensive adaptation effect of the geometric features of the packaging box to be rendered and the combination of multiple candidate materials and textures.

[0030] In an optional implementation process, extracting a geometric texture associated data set of each first rendering path from the historical rendering data according to multiple candidate materials and each candidate material, and extracting a third matching degree under each first rendering path through the multiple geometric texture associated data sets, specifically includes: Based on the candidate materials, multiple first rendering paths are classified to obtain multiple rendering path categories, reference rendering data corresponding to each rendering path category is extracted from the historical rendering data, and a geometric texture association data set containing multiple groups of target sample data for each rendering path category is constructed.

[0031] It is worth noting that although the geometric structure characteristics of the packaging box cannot directly determine its suitable material, but also need to take into account some other personalized art design needs, by analyzing and mining a large amount of historical rendering data with good design effects, since it contains materials and textures that have good matching effects under different geometric structures of packaging boxes, some statistical laws can be found by analyzing these data, that is, specific geometric features such as smoothness, curved surfaces, creases, etc. usually match well with certain types of materials and textures. For example, surfaces with more folds and edges may be more suitable for paper or cardboard materials; smooth and glossy surfaces may require plastic or metal materials with strong reflectivity. These laws can be used as a reference in the intelligent rendering process, so as to recommend the most suitable materials and textures during automatic rendering. Under different materials, the textures that are suitable will also be different. For example, different materials such as wood, metal, and plastic, for smooth materials such as plastic or metal, fine textures are suitable, which may be glossy textures. For rough materials such as wood or paper packaging, natural and rough textures such as wood grain and paper texture can be selected. When a material is adapted to multiple textures, the difference in geometric features will affect the specific selection and application effect of the texture under a certain material. Therefore, the present invention takes the material as the core, further explores the difference in geometric features, and conducts a more detailed study on the impact of multiple textures adapted to the same material.

[0032] In this embodiment, multiple first rendering paths are classified with candidate materials as the core, the rendering path category corresponding to each candidate material is determined, and then the reference rendering data corresponding to each rendering path category is extracted to construct a geometric texture associated data set corresponding to each rendering path category. Specifically, sub-sample data under multiple rendering operations are extracted from the historical rendering data according to the candidate material to which each rendering path category belongs. The packaging box rendering operations involved in the multiple groups of sub-sample data all involve the same material. For the multiple groups of sub-sample data under each rendering path category, multiple groups of target sample data are selected from the multiple groups of sub-sample data according to the multiple candidate textures involved in the rendering path category to remove some of the noise data. In this way, a geometric texture associated data set containing multiple groups of target sample data for each rendering path category is constructed. Each geometric texture associated data set contains multiple first rendering paths with the same candidate material.

[0033] A target geometric feature vector is extracted from each group of target sample data, multiple groups of target sample data in each geometric texture associated data set are clustered based on the target geometric feature vector to obtain multiple geometric feature clusters, and a first association value of each geometric feature cluster with respect to multiple candidate textures is determined.

[0034] In this embodiment, after obtaining the geometric texture association data set corresponding to each rendering path category, the target geometric feature vector is extracted from each group of target sample data, and these geometric feature vectors represent the characteristics of different geometric structures under specific materials and textures. By analyzing the target geometric feature vector, the difference in texture adaptation under different geometric structures can be identified, and then cluster analysis is performed on multiple groups of target sample data in each geometric texture association data set. The purpose of clustering is to classify similar geometric features into one category so as to better analyze the texture adaptation under these geometric features. Through cluster analysis, the adaptation mode of texture to geometric features under the same material can be identified. Each geometric feature cluster represents a specific geometric structure group, which shows similar regularity in texture adaptation. By analyzing multiple groups of target sample data in each geometric feature cluster, statistical features about candidate textures are extracted, such as the number of times each candidate texture is used in the geometric feature cluster and normalized, and the obtained multiple parameters are used as the first association values ​​corresponding to multiple candidate textures respectively, and the first association value reflects the matching degree of different geometric features to different candidate textures in the multiple candidate textures adapted under the specific material.

[0035] Finally, a matching list of the packaging box to be rendered and a plurality of candidate textures in each geometric texture associated data set is determined according to the model geometric feature vector, and a third matching degree under each first rendering path is determined according to the matching list.

[0036] Specifically, the reference distances corresponding to the model geometric feature vector and multiple geometric feature clusters in each geometric texture association data set are determined, and the first association values ​​of each geometric feature cluster with respect to multiple candidate textures are corrected based on the reference distances to obtain the second association values ​​of the to-be-rendered packaging box with respect to each candidate texture in each geometric feature cluster.

[0037] In this embodiment, the center of each geometric feature cluster is first determined, for example, the mean of multiple target geometric feature vectors in each geometric feature cluster is calculated as the cluster center, and the reference distances between the model geometric feature vector and the multiple cluster centers are calculated based on the distance calculation formula, such as the Euclidean distance, and then the first association values ​​of the multiple candidate textures corresponding to each geometric feature cluster are corrected. Since the similarity between the geometric feature vector of the package box to be rendered and the geometric feature cluster is not a perfect match, the matching degree of the package box to be rendered with multiple candidate textures under different candidate materials can be better measured by correction. The correction of the first association value can specifically be weighting the first association value, that is, determining the corresponding weight according to multiple reference distances, each geometric feature cluster corresponds to the same weight, and the closer the distance to the geometric feature cluster, the greater the weight. In this way, the first association value of each candidate texture in each cluster can be corrected to obtain the second association value of each candidate texture in each geometric feature cluster.

[0038] Finally, feature fusion is performed on multiple second association values. For example, the mean of multiple second association values ​​of each candidate texture is calculated, and the calculated mean is used as the third association value of each candidate texture for the packaging box to be rendered in each geometric texture association data set. This is used to characterize the degree of matching between the packaging box to be rendered and multiple candidate textures under the same material, so as to effectively evaluate the adaptability of different textures.

[0039] A matching list of the packaging box to be rendered and multiple candidate textures in each geometric texture association data set is constructed by using multiple third association values. Then, according to the candidate texture corresponding to the first rendering path, the third association value under each candidate texture is determined from the matching list and recorded as the third matching degree under the first rendering path. In this case, the magnitude of the third matching degree is used to indicate the matching degree between the geometric features of the packaging box to be rendered and different candidate textures under a certain candidate material.

[0040] For the second matching degree of each first rendering path, the first matching degree is weightedly corrected by the third matching degree to obtain the second matching degree of each first rendering path. Specifically, for the first matching degree and the third matching degree of the packaging box to be rendered, the first matching degree is used to indicate the matching degree between the geometric features of the packaging box to be rendered and a variety of candidate materials, while the third matching degree is based on the known candidate materials, and the matching degree between the geometric structure and texture of the packaging box to be rendered under a specific material. The second matching degree finally calculated comprehensively characterizes the interactive effects between the geometric structure, material and texture while reducing noise interference, and can provide accurate data reference for selecting a suitable rendering path.

[0041] The embodiment of the present invention also provides a packaging box modeling and rendering system, which is specifically used to implement the above-mentioned packaging box modeling and rendering method, see Figure 2 ,include: A model data preprocessing module is used to obtain 3D model data of the packaging box to be rendered, extract geometric features of the 3D model data of the packaging box to be rendered to obtain multiple geometric feature parameters, and construct a model geometric feature vector of the packaging box to be rendered; A rendering texture analysis module is used to process the model geometric feature vector through a material matching model, generate multiple candidate materials and a first matching degree of each candidate material, and query the candidate texture of each candidate material through a material texture list, wherein the material texture list is constructed by analyzing the historical rendering data of the packaging box; A rendering path analysis module, used to determine a plurality of first rendering paths according to a candidate texture of each candidate material, analyze the plurality of first rendering paths through a texture matching model, and generate a second matching degree for each first rendering path; Analyzing the plurality of first rendering paths by the texture matching model includes: After obtaining the historical rendering data of the packaging box, a geometric texture associated data set of each first rendering path is extracted from the historical rendering data based on multiple candidate materials and each candidate material, and the third matching degree under each first rendering path is extracted through the multiple geometric texture associated data sets, and the second matching degree of each first rendering path is calculated based on the first matching degree and the third matching degree.

[0042] The packaging box modeling and rendering module is used to determine a second rendering path from multiple first rendering paths according to the second matching degree, and render the packaging box to be rendered through the second rendering path.

[0043] Specifically, the first rendering path with the largest second matching degree is selected as the second rendering path, and the packaging box to be rendered is rendered according to the candidate material and the candidate texture in the second rendering path; Among them, for the second matching degree, the first matching degree is weightedly corrected by the third matching degree to obtain the second matching degree of each first rendering path.

[0044] The above is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be obvious to those skilled in the art. Parts not described in detail in this specification belong to the prior art known to those skilled in the art.

Claims

1. A packaging box modeling and rendering method, characterized in that: include: Acquire 3D model data of the packaging box to be rendered, perform geometric feature extraction on the 3D model data of the packaging box to be rendered to obtain multiple geometric feature parameters, and construct a model geometric feature vector of the packaging box to be rendered; The model geometric feature vector is processed by a material matching model to generate a plurality of candidate materials and a first matching degree of each candidate material, and the candidate texture of each candidate material is queried by a material texture list, wherein the material texture list is constructed by analyzing historical rendering data of the packaging box; Determine a plurality of first rendering paths according to the candidate texture of each candidate material, analyze the plurality of first rendering paths by a texture matching model, and generate a second matching degree of each first rendering path; Determine a second rendering path from the plurality of first rendering paths according to the second matching degree, and render the packaging box to be rendered through the second rendering path; The analyzing the plurality of first rendering paths by using the texture matching model includes: After obtaining the historical rendering data of the packaging box, a geometric texture associated data set of each first rendering path is extracted from the historical rendering data based on multiple candidate materials and each candidate material, and the third matching degree under each first rendering path is extracted through the multiple geometric texture associated data sets, and the second matching degree of each first rendering path is calculated based on the first matching degree and the third matching degree.

2. A packaging box modeling and rendering method according to claim 1, characterized in that: Extracting a geometric texture associated data set of each first rendering path from the historical rendering data according to the multiple candidate materials and each candidate material, and extracting a third matching degree under each first rendering path through the multiple geometric texture associated data sets, including: Classifying a plurality of first rendering paths based on candidate materials to obtain a plurality of rendering path categories, extracting reference rendering data corresponding to each rendering path category from the historical rendering data, including extracting sub-sample data under a plurality of rendering operations from the historical rendering data according to the candidate materials to which each rendering path category belongs, selecting a plurality of groups of target sample data from a plurality of groups of sub-sample data according to a plurality of candidate textures involved in the rendering path category, and constructing a geometric texture associated data set containing a plurality of groups of target sample data for each rendering path category, wherein a plurality of first rendering paths containing the same candidate material correspond to the same geometric texture associated data set; Extracting a target geometric feature vector from each group of target sample data, clustering multiple groups of target sample data in each geometric texture association data set based on the target geometric feature vector to obtain multiple geometric feature clusters, and determining a first association value of each geometric feature cluster with respect to multiple candidate textures; A matching list of a packaging box to be rendered and a plurality of candidate textures in each geometric texture associated data set is determined according to the model geometric feature vector, and a third matching degree under each first rendering path is determined according to the matching list.

3. A packaging box modeling and rendering method according to claim 2, characterized in that: Determining a matching list of a packaging box to be rendered and a plurality of candidate textures in each geometric texture associated data set according to the model geometric feature vector, and determining a third matching degree under each first rendering path according to the matching list, including: Determine the reference distances respectively corresponding to the model geometric feature vector and multiple geometric feature clusters in each geometric texture association data set, and based on the reference distances, correct the first association value of each geometric feature cluster with respect to multiple candidate textures to obtain the second association value of the to-be-rendered packaging box in each geometric feature cluster with respect to each candidate texture; Feature fusion is performed on multiple second association values ​​to generate a third association value for each candidate texture of the packaging box to be rendered in each geometric texture association data set, and a matching list of the packaging box to be rendered and multiple candidate textures in each geometric texture association data set is constructed. According to the candidate texture corresponding to the first rendering path, the third association value under each candidate texture is determined from the matching list and recorded as the third matching degree under the first rendering path.

4. A packaging box modeling and rendering method according to claim 1, characterized in that: Determining a second rendering path from the plurality of first rendering paths according to the second matching degree, and rendering the packaging box to be rendered through the second rendering path, including: Selecting the first rendering path with the largest second matching degree as the second rendering path, and rendering the packaging box to be rendered according to the candidate material and the candidate texture in the second rendering path; Among them, for the second matching degree, the first matching degree is weightedly corrected by the third matching degree to obtain the second matching degree of each first rendering path.

5. A packaging box modeling and rendering method according to claim 2, characterized in that: For material texture lists, also include: Performing statistical analysis on historical rendering data of the packaging box to determine multiple material texture combinations, counting frequency parameters of each material texture combination, and constructing a geometric structure data set of each material texture combination based on the historical rendering data; Determine a plurality of target geometric feature vectors in each geometric structure data set, and calculate an entropy value of each geometric structure data set based on the target geometric feature vectors; The frequency parameters of each material-texture combination are optimized according to the entropy value of the geometric structure data set to obtain the matching parameters of each material-texture combination, multiple target combinations are determined from the multiple material-texture combinations associated with each material, and a material texture list for each material is constructed according to the target combinations.

6. A packaging box modeling and rendering method according to claim 1, characterized in that: For material matching models, also include: A training set is constructed based on the historical rendering data of the packaging box, and the material matching model is trained through the training set; Among them, for the construction of the training set, multiple groups of geometric structure data and rendering material data corresponding to each group of geometric structure data are extracted from the historical rendering data; Taking multiple groups of geometric structure data as input of the material matching model, taking the rendering material data corresponding to each group of geometric structure data as the training target of the material matching model, the material matching model is obtained by training with the training set, wherein the material matching model is a multi-layer perceptron model.

7. A packaging box modeling and rendering system, characterized in that: The system is used to implement a packaging box modeling and rendering method according to any one of claims 1 to 6, comprising: A model data preprocessing module is used to obtain 3D model data of the packaging box to be rendered, extract geometric features of the 3D model data of the packaging box to be rendered to obtain multiple geometric feature parameters, and construct a model geometric feature vector of the packaging box to be rendered; A rendering texture analysis module is used to process the model geometric feature vector through a material matching model, generate multiple candidate materials and a first matching degree of each candidate material, and query the candidate texture of each candidate material through a material texture list, wherein the material texture list is constructed by analyzing the historical rendering data of the packaging box; A rendering path analysis module, used to determine a plurality of first rendering paths according to a candidate texture of each candidate material, analyze the plurality of first rendering paths through a texture matching model, and generate a second matching degree for each first rendering path; The packaging box modeling and rendering module is used to determine a second rendering path from multiple first rendering paths according to the second matching degree, and render the packaging box to be rendered through the second rendering path.

8. A packaging box modeling and rendering system according to claim 7, characterized in that: For the rendering path analysis module, analyzing the plurality of first rendering paths by using the texture matching model includes: After obtaining the historical rendering data of the packaging box, a geometric texture associated data set of each first rendering path is extracted from the historical rendering data based on multiple candidate materials and each candidate material, and the third matching degree under each first rendering path is extracted through the multiple geometric texture associated data sets, and the second matching degree of each first rendering path is calculated based on the first matching degree and the third matching degree.

Citation Information

Patent Citations

  • 3D rendering design method and device for cigarette package and electronic equipment

    CN114758050A

  • Material extraction method, device and equipment and storage medium

    CN116958168A

  • Cigarette packaging design 3D display model system and method

    CN117744184A

  • Line rendering method and device, electronic equipment and storage medium

    CN117765104A

  • Furniture design rendering method and system based on user requirements

    CN118071911A

Cited By

  • Selective 3D rendering method based on three-dimensional scene

    CN119741462A