Three-dimensional modeling evaluation system and method based on multi-modal fusion
By combining multi-modal fusion technology in 3D modeling evaluation, using methods such as Harris algorithm and gray level co-occurrence matrix to calculate the spatial position, texture and shadow evaluation index of 3D modeling, the incomplete and subjective problems of traditional evaluation methods are solved. problem, achieving accurate grade judgment and quality control of 3D modeling.
Patent Information
- Application Number
- CN202410968363.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-22
AI Technical Summary
Traditional 3D modeling evaluation methods mainly rely on single modal data and ignore the complementarity and synergy between multi-modal data, resulting in incomplete evaluation and susceptible to subjective factors, making it difficult to accurately evaluate the quality of 3D models.
By putting the actual scanned model and the model after modeling into the same spatial rectangular coordinate system, the improved Harris algorithm is used to extract corner points, and combined with Euclidean distance, gray level co-occurrence matrix and lighting simulation, the spatial position, texture and shadow evaluation index are calculated , to obtain a comprehensive evaluation score to determine the modeling level.
It achieves a comprehensive and objective evaluation of 3D modeling, improves the accuracy and robustness of the evaluation, can quickly judge the modeling level, and provides support for quality control and optimization.
Smart Images

Figure CN118823243A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of three-dimensional modeling, and in particular to a three-dimensional modeling evaluation system and method based on multimodal fusion. Background Art
[0002] With the rapid development of computer graphics and 3D modeling technology, 3D models are increasingly used in various fields, such as industrial design, film and television special effects, virtual reality, augmented reality, and medical imaging. These applications have put forward higher and higher requirements on the accuracy, realism, and efficiency of 3D models.
[0003] Multimodal fusion refers to the effective integration of multiple information modalities (such as images, depth information, point cloud data, etc.) from different sensors, imaging devices or data sources to obtain more comprehensive, accurate and rich 3D model data. Through multimodal fusion, the shortcomings of single modality data in expression can be made up, the accuracy and realism of modeling can be improved, and the needs of different application scenarios can be met.
[0004] Traditional 3D modeling evaluation methods mainly focus on the data quality assessment of a single modality. This method ignores the complementarity and synergy between different modal data, fails to reflect the advantages of multimodal fusion modeling, and thus makes the 3D modeling evaluation incomplete. In addition, traditional 3D modeling evaluation methods also mainly rely on manual visual inspection or simple geometric measurements. These methods are often time-consuming and labor-intensive and are easily affected by subjective factors, making it difficult to accurately evaluate the quality of 3D models. Summary of the invention
[0005] 1. Technical issues to be resolved
[0006] In response to the technical problems in the background technology, the present invention proposes a three-dimensional modeling evaluation system and method based on multimodal fusion, which integrates data of spatial position, texture and shadow to obtain a comprehensive evaluation score of three-dimensional modeling, and judges the three-dimensional modeling level according to the comprehensive evaluation score; thereby solving the technical problems recorded in the background technology.
[0007] (II) Technical solution
[0008] To achieve the above objectives, the present invention is implemented through the following technical solutions:
[0009] The 3D modeling evaluation method based on multimodal fusion includes:
[0010] The actual scanned model and the model after modeling are placed in the same spatial rectangular coordinate system, and the center of gravity of the actual scanned model is used as the coordinate origin; the corner points of the actual scanned model and the model after modeling are respectively extracted based on the improved Harris algorithm; the coordinate value of each corner point is obtained from the coordinate system, and the Euclidean distance between the corresponding corner points in the actual scanned model and the model after modeling is calculated; the Euclidean distances between all corner points are combined to obtain the spatial position evaluation index Sle of the model after modeling;
[0011] The actual scanned model and the model after modeling are split into faces by modeling software; the grayscale co-occurrence matrix of each face is constructed according to the preset direction and interval, and the grayscale co-occurrence matrix is normalized to obtain the co-occurrence probability matrix P; the co-occurrence probability matrix P is subjected to feature operation to obtain the corresponding contrast Con, energy Asm and entropy Ent; the contrast difference, energy difference and entropy difference of the corresponding faces in the actual scanned model and the model after modeling are calculated; the contrast difference, energy difference and entropy difference of all faces in the actual scanned model and the model after modeling are combined to obtain the texture evaluation index Te of the model after modeling;
[0012] Perform illumination simulation on the actual scanned model and the model after modeling from multiple directions respectively, obtain the shadow images of the two models under each illumination direction, and overlap the shadow images of the two models under the same illumination direction. By analyzing the area of the overlapping shadow area, the overlap rate of the shadow images of the two models under each illumination direction is obtained. k ; The overlap ratio of the two model shadow images under all lighting directions Or k Combined to obtain the shadow evaluation index Sef of the model after modeling;
[0013] The spatial position evaluation index Sle, texture evaluation index Te and shadow evaluation index Sef of the model after modeling are combined to obtain the comprehensive evaluation score Score of the model after modeling; the comprehensive evaluation score Score of the model after modeling is compared with the preset modeling evaluation table to evaluate the modeling level of the model after modeling.
[0014] Specifically, the center of gravity of the two models is determined respectively through the built-in recalculation tool in the 3D modeling software, and a spatial rectangular coordinate system is established with the center of gravity of the actual scanned model as the origin, and the converted actual scanned model and the modeled 3D model are placed in this spatial rectangular coordinate system; and the positions of the two models are adjusted so that the center of gravity of the actual scanned model and the center of gravity of the modeled 3D model coincide with the origin of the spatial rectangular coordinate system, and are placed in the spatial rectangular coordinate system according to the way the actual model is normally placed in use.
[0015] Furthermore, the corner points of the actual scanned model and the model after modeling are extracted based on the improved Harris algorithm, including:
[0016] Selecting several directions so that all projection images obtained by projecting the model from these directions can completely include all features of the model; projecting the actual scanned model and the modeled three-dimensional model onto a two-dimensional plane according to the viewing angles of the above several directions to generate several projection images of each; converting the obtained several projection images into grayscale images;
[0017] Calculate the derivatives I of each grayscale image in the horizontal and vertical directions respectively x ,I y , and the product in both directions and I xy ; For each pixel in the grayscale image, calculate the autocorrelation matrix M of its surrounding area, expressed as:
[0018]
[0019] Among them, A, B, and C are three elements of the matrix M;
[0020] The corner point response value R of each pixel is calculated using the eigenvalues λ1 and λ2 of the autocorrelation matrix. The calculation formula is:
[0021] R=det Mk(traceM) 2
[0022] Among them, det M is the product of the eigenvalues, that is, det M = λ1λ2 = AB-C 2 , trace M is the sum of eigenvalues, that is, trace M = λ1 + λ2 = A + B, k is an empirical parameter;
[0023] Select the pixel with the largest response value R and set the adaptive threshold T, which is determined by the maximum value R max α times of , that is:
[0024] T=α×R max
[0025] Where α is a constant less than 1, and its value is generally 0.01 to 0.025. Each pixel of the grayscale image is compared with the adaptive threshold in turn, and the window centered on each pixel is judged. If the response value of the pixel is the maximum value in this window and is greater than the adaptive threshold T, the pixel is considered to be a corner point.
[0026] Furthermore, for the corner points extracted from the two models, the brute force matching method is used to find the corresponding corner points in the two models to form n corresponding corner point groups, which are respectively recorded as (P 1i ,P 2i); mark the corresponding corner point position and corner point coordinates in the spatial rectangular coordinate system, recorded as (x 1i ,y 1i ,z 1i ) and (x 2i ,y 2i ,z 2i );Calculate the Euclidean distance between the corresponding corner points in the actual scanned model and the model after modeling; The Euclidean distance d between all corresponding corner points in the actual scanned model and the model after modeling i Combined, the spatial position evaluation index Sle of the model after modeling is obtained, and the expression is:
[0027]
[0028] Among them, i represents the i-th corresponding corner point group.
[0029] Specifically, the modeling software is used to split the surfaces of the actual scanned model and the modeled model respectively, and the split curved surface is straightened to obtain a number of split planes, and the features on each surface are retained; the several split surfaces are converted into image files, and the images are converted into grayscale images;
[0030] For the grayscale image, the grayscale co-occurrence frequencies between neighboring pixels in the specified direction and distance are counted according to the horizontal direction and the interval of one pixel size. These co-occurrence frequencies will constitute the grayscale co-occurrence matrix; the value of the element (a, b) in the grayscale co-occurrence matrix represents the number of times two pixels in the image appear, where the grayscale value of one pixel is a and the grayscale value of the other pixel is b, and the adjacent distance is d and the direction is A; the co-occurrence matrix is normalized to obtain the co-occurrence probability matrix P; the matrix features are calculated based on the obtained co-occurrence probability matrix, including contrast Con, energy Asm and entropy Ent.
[0031] Furthermore, the contrast of each surface in the actual scanned model is recorded as Con 1j 、Energy is Asm 1j , Entropy is Ent 1j , the contrast of each face in the model after modeling is Con 2j 、Energy is Asm 2j , Entropy is Ent 2j ; Based on the similarity matching algorithm, the actual scanned model is matched with the faces in the model after modeling to obtain m corresponding plane groups; the contrast difference, energy difference and entropy difference are calculated for each plane group, and the contrast difference, energy difference and entropy difference of the m corresponding plane groups are combined to obtain the texture evaluation index Te of the model after modeling, which is expressed as:
[0032]
[0033] Among them, j represents the jth corresponding plane group.
[0034] Specifically, multiple lighting directions are determined and ensured to fully cover the model; under each selected lighting direction, the same light source type and properties are configured for the actual scanned model and the model after modeling;
[0035] Render each model under each lighting direction, retain only the shadow information, and generate a shadow image; convert the shadow image into a binary image, that is, each pixel in the image is either black or white; align the shadow images of the actual scanned model and the modeled model under the same lighting direction in the horizontal and vertical directions, and overlap them; perform a logical AND operation on the two binary shadow images to generate a new binary image, in which only the pixels that are black in the two original images will appear black in the new image; this new image represents the overlapping area of the two shadow images.
[0036] Furthermore, the number of black pixels in the image after the logical AND operation is counted, and the size of each pixel is converted into an area unit. This area represents the area S of the overlapping area of the two shadow images. 2k ; Compare the overlapping area under each illumination direction with the shadow area S of the actual scanned model under the corresponding direction 1k Combined, we get the overlap ratio of the two model shadow images in each direction Or k , the expression is:
[0037]
[0038] Among them, k represents the kth lighting direction;
[0039] The overlap ratio Or under all lighting directions k Summarize and combine to obtain the shadow evaluation index Sef of the model after modeling, expressed as: Where l represents the total number of different lighting directions.
[0040] Furthermore, the spatial position evaluation index Sle, texture evaluation index Te and shadow evaluation index Sef of the model after modeling are combined to obtain the comprehensive evaluation score Score of the model after modeling, which is expressed as:
[0041] Score=100[1-(β1*Sle+β2*Te+β3*Sef)]
[0042] Wherein, β1, β2, and β3 are respectively the preset weight coefficients of the spatial position evaluation index Sle, the texture evaluation index Te, and the shadow evaluation index Sef, and 1>β1>β3>β2>0, β1+β2+β3=1;
[0043] Compare the calculated comprehensive evaluation score Score of the model after modeling with the preset modeling evaluation table, specifically:
[0044] When 95≤Score≤100, the modeling level of the model after modeling is A, indicating that the model after modeling has high completion quality and can be directly used in the corresponding application scenario;
[0045] When 80≤Score<95, the modeling grade of the model after modeling is B, which means that the completion quality of the model after modeling is general, and the spatial position, texture and shadow of the model need to be further tested and optimized;
[0046] When Score<80, the modeling grade of the model after modeling is C, indicating that the completion quality of the model after modeling is low and the model needs to be remodeled.
[0047] The 3D modeling evaluation system based on multimodal fusion includes:
[0048] The spatial position evaluation module puts the actual scanned model and the model after modeling into the same spatial rectangular coordinate system; extracts the corner points of the actual scanned model and the model after modeling respectively based on the improved Harris algorithm; calculates the Euclidean distance between the corresponding corner points in the actual scanned model and the model after modeling according to the spatial coordinates of each corner point; combines the Euclidean distances between all corner points to obtain the spatial position evaluation index Sle of the model after modeling;
[0049] The texture evaluation module performs face splitting on the actual scanned model and the model after modeling; calculates the contrast Con, energy Asm and entropy Ent based on the gray-level co-occurrence matrix algorithm, and further calculates the contrast difference, energy difference and entropy difference between the corresponding faces in the actual scanned model and the model after modeling; combines the contrast difference, energy difference and entropy difference of all faces in the actual scanned model and the model after modeling to obtain the texture evaluation index Te of the model after modeling;
[0050] The shadow evaluation module performs illumination simulation on the actual scanned model and the model after modeling from multiple directions, obtains the shadow images of the two models under each illumination direction, and overlaps the shadow images of the two models under the same illumination direction. By analyzing the area of the overlapping shadow area, the overlap rate of the shadow images of the two models under each illumination direction is obtained. k ; The overlap ratio of the two model shadow images under all lighting directions Or k Combined to obtain the shadow evaluation index Sef of the model after modeling;
[0051] The comprehensive evaluation module combines the spatial position evaluation index Sle, texture evaluation index Te and shadow evaluation index Sef of the model after modeling to obtain the comprehensive evaluation score Score of the model after modeling; compares the comprehensive evaluation score Score of the model after modeling with the preset modeling evaluation table to determine the modeling level of the model after modeling and select subsequent operations.
[0052] (III) Beneficial effects
[0053] The present invention provides a three-dimensional modeling evaluation system and method based on multimodal fusion, which has the following beneficial effects:
[0054] 1. By placing the actual scanned model and the model after modeling into the same spatial rectangular coordinate system, and taking the center of gravity of the actual scanned model as the coordinate origin, the consistency and accuracy of the evaluation are ensured; the improved Harris algorithm is used to extract corner points, which not only takes into account the multi-directional characteristics of the model, but also screens corner points through adaptive thresholds, reducing the errors caused by manually setting thresholds, and improving the accuracy and robustness of corner point detection; by calculating the Euclidean distance between corresponding corner points and combining the distances of all corresponding corner points to obtain the spatial position evaluation index, this can comprehensively and objectively evaluate the accuracy and consistency of the model after modeling in terms of spatial position, providing strong support for the quality control and optimization of 3D modeling;
[0055] 2. By carefully splitting the actual scanned model and the model after modeling, and constructing the grayscale co-occurrence matrix of each face, this method can comprehensively capture and quantify the texture features of the model surface; by performing feature operations on the co-occurrence probability matrix, key indicators such as contrast, energy and entropy are extracted, and the clarity, coarseness and complexity of the model surface texture are effectively evaluated; by calculating the contrast difference, energy difference and entropy difference between the actual scanned model and the model after modeling, and combining the differences of all faces, the texture evaluation index is obtained, which not only helps to identify texture distortion and defects in the modeling process, but also provides strong support for optimizing modeling strategies and improving modeling quality;
[0056] 3. By performing a full range of lighting simulations on the actual scanned model and the model after modeling, and comparing the shadow images of the two under different lighting directions, this method not only fully considers the impact of lighting on the model shadow, but also quantifies the accuracy of modeling by calculating the overlap rate of shadow images; by combining the overlap rates under all lighting directions to obtain the shadow evaluation index, this method also provides a comprehensive evaluation index, which helps to more comprehensively understand the performance of the model under different lighting conditions;
[0057] 4. Comprehensively consider multiple key factors such as the spatial position, texture and shadow of the model after modeling, and combine the evaluation indexes of these factors through preset weight coefficients to obtain a comprehensive and objective comprehensive evaluation score; this score can accurately reflect the overall quality of the model after modeling. By comparing with the preset modeling evaluation table, the modeling level of the model can be quickly and accurately judged, thereby providing clear guidance for subsequent operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 A flowchart of the steps of the three-dimensional modeling evaluation method based on multimodal fusion provided by the present invention;
[0059] Figure 2 A schematic diagram of the structure of a three-dimensional modeling evaluation system based on multimodal fusion provided by the present invention. DETAILED DESCRIPTION
[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] refer to Figure 1 The present invention provides a three-dimensional modeling evaluation method based on multimodal fusion, comprising:
[0062] Step 1: Place the actual scanned model and the model after modeling into the same spatial rectangular coordinate system, and take the center of gravity of the actual scanned model as the coordinate origin; extract the corner points of the actual scanned model and the model after modeling respectively based on the improved Harris algorithm; obtain the coordinate value of each corner point from the coordinate system, and calculate the Euclidean distance between the corresponding corner points in the actual scanned model and the model after modeling; combine the Euclidean distances between all corner points to obtain the spatial position evaluation index Sle of the model after modeling.
[0063] The step one includes the following steps:
[0064] Step 101, respectively obtaining the 3D scanning data of the actual model and the 3D model data after modeling, and performing the same scale conversion operation on the actual scanning model as that on the 3D model after modeling;
[0065] Step 102: Determine the center of gravity of the two models respectively by using the built-in recalculation tool in the three-dimensional modeling software, and establish a spatial rectangular coordinate system with the center of gravity of the actual scanned model as the origin, and put the converted actual scanned model and the modeled three-dimensional model into the spatial rectangular coordinate system; and adjust the positions of the two models so that the center of gravity of the actual scanned model and the center of gravity of the modeled three-dimensional model coincide with the origin of the spatial rectangular coordinate system, and place them in the spatial rectangular coordinate system according to the placement method of the actual model when it is normally used;
[0066] Step 103: extracting corner points of the actual scanned model and the model after modeling based on the improved Harris algorithm, specifically including:
[0067] S1031, selecting a number of directions so that all projection images obtained by projecting the model from these directions can completely include all features of the model; projecting the actual scanned model and the modeled three-dimensional model onto a two-dimensional plane according to the viewing angles of the above-mentioned several directions, respectively, to generate a number of respective projection images; converting the obtained several projection images into grayscale images;
[0068] S1032, respectively calculate the derivatives I of each grayscale image in the horizontal direction and the vertical direction x ,I y , and the product in both directions and I xy ;
[0069] S1033. For each pixel in the grayscale image, calculate the autocorrelation matrix M of the surrounding area, expressed as:
[0070]
[0071] Among them, A, B, and C are three elements of the matrix M;
[0072] S1034, using the eigenvalues λ1 and λ2 of the autocorrelation matrix to calculate the corner point response value R of each pixel point, the calculation formula is:
[0073] R=det Mk(traceM) 2
[0074] Among them, det M is the product of the eigenvalues, that is, det M = λ1λ2 = AB-C 2 , trace M is the sum of the eigenvalues, that is, trace M = λ1 + λ2 = A + B, k is an empirical parameter with a value of 0.04;
[0075] S1035. In order to reduce the error caused by artificial threshold setting, so that the system can automatically set the most suitable threshold when facing different images, the Harris algorithm is now optimized, and the adaptive threshold method is adopted to screen the corner points. Specifically, the pixel point with the largest response value R is selected, and the adaptive threshold T is set. The threshold is determined by the maximum value R max α times of , that is:
[0076] T=α×R max
[0077] Where α is a constant less than 1, and is generally taken as 0.01 to 0.025. Each pixel of the grayscale image is compared with the adaptive threshold in turn, and the window centered on each pixel is judged. If the response value of the pixel is the maximum value in this window and is greater than the adaptive threshold T, the pixel is considered to be a corner point.
[0078] Step 104: For the corner points extracted from the two models, use the brute force matching method to find the corresponding corner points in the two models to form n corresponding corner point groups, which are respectively denoted as (P 1i ,P 2i ); mark the corresponding corner point position and corner point coordinates in the spatial rectangular coordinate system, recorded as (x 1i ,y 1i ,z 1i ) and (x 2i ,y 2i ,z 2i );Calculate the Euclidean distance between the corresponding corner points in the actual scanned model and the model after modeling; The Euclidean distance d between all corresponding corner points in the actual scanned model and the model after modeling i Combined, the spatial position evaluation index Sle of the model after modeling is obtained, and the expression is:
[0079]
[0080] Among them, i represents the i-th corresponding corner point group;
[0081] When using, combine the contents in steps 101 to 104:
[0082] By placing the actual scanned model and the model after modeling into the same spatial rectangular coordinate system and taking the center of gravity of the actual scanned model as the coordinate origin, the consistency and accuracy of the evaluation are ensured; the improved Harris algorithm is used to extract corner points, which not only takes into account the multi-directional characteristics of the model, but also filters the corner points through adaptive thresholds, thereby reducing the errors caused by manually setting thresholds and improving the accuracy and robustness of corner point detection; by calculating the Euclidean distance between corresponding corner points and combining the distances of all corresponding corner points to obtain the spatial position evaluation index, this can comprehensively and objectively evaluate the accuracy and consistency of the model after modeling in spatial position, providing strong support for the quality control and optimization of three-dimensional modeling.
[0083] Step 2: Use modeling software to split the actual scanned model and the model after modeling respectively; construct the grayscale co-occurrence matrix of each surface according to the preset direction and interval, and obtain the co-occurrence probability matrix P after normalizing the grayscale co-occurrence matrix; perform feature operation on the co-occurrence probability matrix P to obtain the corresponding contrast Con, energy Asm and entropy Ent; calculate the contrast difference, energy difference and entropy difference of the corresponding surface in the actual scanned model and the model after modeling; combine the contrast difference, energy difference and entropy difference of all surfaces in the actual scanned model and the model after modeling to obtain the texture evaluation index Te of the model after modeling;
[0084] The step 2 includes the following steps:
[0085] Step 201, using Autodesk 3ds Max software to split the surfaces of the actual scanned model and the model after modeling, and straightening the split surfaces to obtain a number of split planes; retaining the features on each surface;
[0086] Step 202: converting the plurality of split surfaces into image files, and converting the images into grayscale images;
[0087] Step 203: for the grayscale image, the grayscale co-occurrence frequencies between neighboring pixels in the specified direction and distance are counted according to the horizontal direction and the interval of one pixel size. These co-occurrence frequencies will constitute a grayscale co-occurrence matrix; the value of the element (a, b) in the grayscale co-occurrence matrix represents the number of occurrences of two pixels in the image, where the grayscale value of one pixel is a and the grayscale value of the other pixel is b, and the adjacent distance is d and the direction is A;
[0088] Step 204, normalize the co-occurrence matrix to obtain a co-occurrence probability matrix P;
[0089] Step 205: Calculate the features of the matrix based on the obtained co-occurrence probability matrix, including contrast Con, energy Asm and entropy Ent. The contrast measures how the values of the matrix are distributed and how much the local changes in the image are, which reflects the clarity of the image and the depth of the grooves of the texture; the energy transformation reflects the uniformity of the image grayscale distribution and the coarseness of the texture; the entropy shows the complexity of the image grayscale distribution. The specific calculation is as follows:
[0090]
[0091] Where P(a,b) represents the elements in the co-occurrence probability matrix P;
[0092] Step 206: The contrast of each surface in the actual scanned model is recorded as Con 1j 、Energy is Asm 1j , Entropy is Ent 1j , the contrast of each face in the model after modeling is Con 2j 、Energy is Asm 2j , Entropy is Ent 2j ; Based on the similarity matching algorithm, the actual scanned model is matched with the faces in the model after modeling to obtain m corresponding plane groups; the contrast difference, energy difference and entropy difference are calculated for each plane group, and the contrast difference, energy difference and entropy difference of the m corresponding plane groups are combined to obtain the texture evaluation index Te of the model after modeling, which is expressed as:
[0093]
[0094] Among them, j represents the jth corresponding plane group;
[0095] When using, combine the contents in steps 201 to 206:
[0096] By carefully splitting the actual scanned model and the model after modeling, and constructing a grayscale co-occurrence matrix for each surface, this method can comprehensively capture and quantify the texture features of the model surface; by performing feature operations on the co-occurrence probability matrix, key indicators such as contrast, energy and entropy are extracted, and the clarity, coarseness and complexity of the model surface texture are effectively evaluated; by calculating the contrast difference, energy difference and entropy difference between the actual scanned model and the model after modeling, and combining the differences of all surfaces, the texture evaluation index is obtained, which not only helps to identify texture distortion and defects in the modeling process, but also provides strong support for optimizing modeling strategies and improving modeling quality.
[0097] Step 3: Perform illumination simulation on the actual scanned model and the model after modeling from multiple directions, obtain the shadow images of the two models under each illumination direction, and overlap the shadow images of the two models under the same illumination direction. By analyzing the area of the overlapping shadow area, the overlap rate of the shadow images of the two models under each illumination direction is obtained. k ; The overlap ratio of the two model shadow images under all lighting directions Or k Combined to obtain the shadow evaluation index Sef of the model after modeling;
[0098] The step three includes the following steps:
[0099] Step 301, determine multiple lighting directions, and ensure that these directions can fully cover the model so that the shadow can be observed from different angles; under each selected lighting direction, configure the same light source type and properties for the actual scanned model and the model after modeling, and ensure that the rendering settings (such as resolution, anti-aliasing, etc.) are consistent between the two models to ensure the accuracy of the shadow image;
[0100] Step 302: Render each model in each lighting direction, retain only shadow information, and generate a shadow image; perform necessary preprocessing on the acquired shadow images, such as cropping and scaling, to ensure that they have the same size and alignment;
[0101] Step 303: convert the shadow image into a binary image, that is, each pixel in the image is either black or white; align the shadow images of the actual scanned model and the model after modeling under the same lighting direction in the horizontal and vertical directions, and overlap them; perform a logical AND operation on the two binary shadow images to generate a new binary image, in which only the pixels that are black in both original images will be displayed as black in the new image; this new image represents the overlapping area of the two shadow images;
[0102] Step 304: Count the number of black pixels in the image after the logical and operation results, and convert them into area units according to the size of each pixel. This area represents the area S of the overlapping area of the two shadow images. 2k ; Compare the overlapping area under each illumination direction with the shadow area S of the actual scanned model under the corresponding direction 1k Combined, we get the overlap ratio of the two model shadow images in each direction Or k , the expression is:
[0103]
[0104] Among them, k represents the kth lighting direction;
[0105] Step 305: Subtract the overlap rate Or under all illumination directions kSummarize and combine to obtain the shadow evaluation index Sef of the model after modeling, expressed as: Where l represents the total number of different lighting directions;
[0106] When using, combine the contents in steps 301 to 305:
[0107] By performing a full range of lighting simulation on the actual scanned model and the modeled model, and comparing the shadow images of the two under different lighting directions, this method not only comprehensively considers the impact of lighting on the model shadow, but also quantifies the accuracy of modeling by calculating the overlap rate of shadow images; by comprehensively calculating the overlap rate under all lighting directions to obtain the shadow evaluation index, this method also provides a comprehensive evaluation indicator, which helps to more comprehensively understand the performance of the model under different lighting conditions.
[0108] Step 4: Combine the spatial position evaluation index Sle, texture evaluation index Te and shadow evaluation index Sle of the model after modeling to obtain the comprehensive evaluation score Score of the model after modeling; compare the comprehensive evaluation score Score of the model after modeling with the preset modeling evaluation table to determine the modeling level of the model after modeling and select subsequent operations;
[0109] The step 4 includes the following steps:
[0110] Step 401: Combine the spatial position evaluation index Sle, the texture evaluation index Te, and the shadow evaluation index Sef of the model after modeling to obtain a comprehensive evaluation score Score of the model after modeling, expressed as:
[0111] Score=100[1-(β1*Sle+β2*Te+β3*Sef)]
[0112] Wherein, β1, β2, and β3 are respectively the preset weight coefficients of the spatial position evaluation index Sle, the texture evaluation index Te, and the shadow evaluation index Sef, and 1>β1>β3>β2>0, β1+β2+β3=1;
[0113] Step 402: Compare the calculated comprehensive evaluation score Score of the model after modeling with the preset modeling evaluation table to obtain the modeling level of the model after modeling. The preset modeling evaluation table is as follows:
[0114] Comprehensive evaluation score Score Modeling level 95≤Score≤100 A 80≤Score<95 B Score<80 C
[0115] Grade A means that the model has high quality after modeling and can be directly used in the corresponding application scenario; Grade B means that the model has average quality after modeling, that is, the model cannot be directly used in the corresponding application scenario, and the spatial position, texture and shadow of the model need to be further detected and optimized; Grade C means that the model has low quality after modeling, that is, the cost of detecting and optimizing the spatial position, texture and shadow of the model is too high, and the model needs to be remodeled;
[0116] When using, combine the contents in steps 401 to 402:
[0117] The system comprehensively considers multiple key factors such as the spatial position, texture and shadow of the model after modeling, and combines the evaluation indexes of these factors through preset weight coefficients to obtain a comprehensive and objective comprehensive evaluation score. This score can accurately reflect the overall quality of the model after modeling. By comparing with the preset modeling evaluation table, the modeling level of the model can be quickly and accurately judged, thereby providing clear guidance for subsequent operations.
[0118] refer to Figure 2 The present invention also provides a three-dimensional modeling evaluation system based on multimodal fusion, comprising:
[0119] The spatial position evaluation module puts the actual scanned model and the model after modeling into the same spatial rectangular coordinate system; extracts the corner points of the actual scanned model and the model after modeling respectively based on the improved Harris algorithm; calculates the Euclidean distance between the corresponding corner points in the actual scanned model and the model after modeling according to the spatial coordinates of each corner point; combines the Euclidean distances between all corner points to obtain the spatial position evaluation index Sle of the model after modeling;
[0120] The texture evaluation module performs face splitting on the actual scanned model and the model after modeling; calculates the contrast Con, energy Asm and entropy Ent based on the gray-level co-occurrence matrix algorithm, and further calculates the contrast difference, energy difference and entropy difference between the corresponding faces in the actual scanned model and the model after modeling; combines the contrast difference, energy difference and entropy difference of all faces in the actual scanned model and the model after modeling to obtain the texture evaluation index Te of the model after modeling;
[0121] The shadow evaluation module performs illumination simulation on the actual scanned model and the model after modeling from multiple directions, obtains the shadow images of the two models under each illumination direction, and overlaps the shadow images of the two models under the same illumination direction. By analyzing the area of the overlapping shadow area, the overlap rate of the shadow images of the two models under each illumination direction is obtained. k ; The overlap ratio of the two model shadow images under all lighting directions Or k Combined to obtain the shadow evaluation index Sef of the model after modeling;
[0122] The comprehensive evaluation module combines the spatial position evaluation index Sle, texture evaluation index Te and shadow evaluation index Sef of the model after modeling to obtain the comprehensive evaluation score Score of the model after modeling; compares the comprehensive evaluation score Score of the model after modeling with the preset modeling evaluation table to determine the modeling level of the model after modeling and select subsequent operations.
[0123] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer storage medium or transmitted via a computer storage medium.
[0124] Computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. Computer storage media can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. Available media can be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives (SSDs)).
[0125] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A three-dimensional modeling evaluation method based on multimodal fusion, characterized by: include: Put the actual scanned model and the model after modeling into the same spatial rectangular coordinate system, and take the center of gravity of the actual scanned model as the coordinate origin; Based on the improved Harris algorithm, the corner points of the actual scanned model and the model after modeling are extracted respectively; The coordinate value of each corner point is obtained from the coordinate system, and the Euclidean distance between the actual scanned model and the corresponding corner point in the model after modeling is calculated; the Euclidean distances between all corner points are combined to obtain the spatial position evaluation index Sle of the model after modeling; The actual scanned model and the modeled model are split into faces by modeling software; the gray-level co-occurrence matrix of each face is constructed according to the preset direction and interval, and the co-occurrence probability matrix P is obtained after the gray-level co-occurrence matrix is normalized; Perform feature operations on the co-occurrence probability matrix P to obtain the corresponding contrast Con, energy Asm and entropy Ent; calculate the contrast difference, energy difference and entropy difference between the actual scanned model and the corresponding surface in the model after modeling; combine the contrast difference, energy difference and entropy difference of all surfaces in the actual scanned model and the model after modeling to obtain the texture evaluation index Te of the model after modeling; Perform illumination simulation on the actual scanned model and the model after modeling from multiple directions respectively, obtain the shadow images of the two models under each illumination direction, and overlap the shadow images of the two models under the same illumination direction. By analyzing the area of the overlapping shadow area, the overlap rate of the shadow images of the two models under each illumination direction is obtained. k ; The overlap ratio of the two model shadow images under all lighting directions Or k Combined to obtain the shadow evaluation index Sef of the model after modeling; The spatial position evaluation index Sle, texture evaluation index Te and shadow evaluation index Sef of the model after modeling are combined to obtain the comprehensive evaluation score Score of the model after modeling; the comprehensive evaluation score Score of the model after modeling is compared with the preset modeling evaluation table to evaluate the modeling level of the model after modeling.
2. The three-dimensional modeling evaluation method based on multimodal fusion according to claim 1, characterized in that: The center of gravity of the two models is determined by the built-in recalculation tool in the 3D modeling software, and a spatial rectangular coordinate system is established with the center of gravity of the actual scanned model as the origin. The converted actual scanned model and the modeled 3D model are placed in this spatial rectangular coordinate system. The positions of the two models are adjusted so that the center of gravity of the actual scanned model and the center of gravity of the three-dimensional model after modeling coincide with the origin of the spatial rectangular coordinate system, and the two models are placed in the spatial rectangular coordinate system according to the arrangement method of the actual model during normal use.
3. The three-dimensional modeling evaluation method based on multimodal fusion according to claim 2, characterized in that: Based on the improved Harris algorithm, the corner points of the actual scanned model and the model after modeling are extracted respectively, including: Selecting several directions so that all projection images obtained by projecting the model from these directions can completely include all features of the model; projecting the actual scanned model and the modeled three-dimensional model onto a two-dimensional plane according to the viewing angles of the above several directions to generate several projection images of each; converting the obtained several projection images into grayscale images; Calculate the derivative I of each grayscale image in the horizontal and vertical directions respectively x ,I y , and the product in both directions and I xy ; For each pixel in the grayscale image, calculate the autocorrelation matrix M of its surrounding area, expressed as: Among them, A, B, and C are three elements of the matrix M; The corner point response value R of each pixel is calculated using the eigenvalues λ1 and λ2 of the autocorrelation matrix. The calculation formula is: R=det Mk(traceM) 2 Among them, det M is the product of the eigenvalues, that is, det M = λ1λ2 = AB-C 2 , traceM is the sum of eigenvalues, that is, trace M = λ1 + λ2 = A + B, k is an empirical parameter; Select the pixel with the largest response value R and set the adaptive threshold T, which is determined by the maximum value R max α times of , that is: T=α×R max Where α is a constant less than 1, and its value is generally 0.01 to 0.
025. Each pixel of the grayscale image is compared with the adaptive threshold in turn, and the window centered on each pixel is judged. If the response value of the pixel is the maximum value in this window and is greater than the adaptive threshold T, the pixel is considered to be a corner point.
4. The three-dimensional modeling evaluation method based on multimodal fusion according to claim 3, characterized in that: For the corner points extracted from the two models, the brute force matching method is used to find the corresponding corner points in the two models to form n corresponding corner point groups, which are recorded as (P 1i ,P 2i ); mark the corresponding corner point position and corner point coordinates in the spatial rectangular coordinate system, recorded as (x 1i ,y 1i ,z 1i ) and (x 2i ,y 2i ,z 2i );Calculate the Euclidean distance between the corresponding corner points in the actual scanned model and the model after modeling;Calculate the Euclidean distance d between all corresponding corner points in the actual scanned model and the model after modeling i Combined, the spatial position evaluation index Sle of the model after modeling is obtained, and the expression is: Among them, i represents the i-th corresponding corner point group.
5. The three-dimensional modeling evaluation method based on multimodal fusion according to claim 4, characterized in that: Use modeling software to split the surfaces of the actual scanned model and the modeled model respectively, straighten the split surfaces to obtain several split planes, and retain the features on each surface; Convert several split surfaces into image files, and convert these images into grayscale images; For the grayscale image, the grayscale co-occurrence frequencies between neighboring pixels in the specified direction and distance are counted according to the horizontal direction and the interval of one pixel size. These co-occurrence frequencies will constitute the grayscale co-occurrence matrix; the value of the element (a, b) in the grayscale co-occurrence matrix represents the number of times two pixels in the image appear, where the grayscale value of one pixel is a and the grayscale value of the other pixel is b, and the adjacent distance is d and the direction is A. The co-occurrence matrix is normalized to obtain a co-occurrence probability matrix P; the matrix features are calculated based on the obtained co-occurrence probability matrix, including contrast Con, energy Asm, and entropy Ent.
6. The three-dimensional modeling evaluation method based on multimodal fusion according to claim 5, characterized in that: The contrast of each surface in the actual scanned model is Con 1j 、Energy is Asm 1j , Entropy is Ent 1j , the contrast of each face in the model after modeling is Con 2j 、Energy is Asm 2j , Entropy is Ent 2j ; Based on the similarity matching algorithm, the actual scanned model is matched with the faces in the model after modeling to obtain m corresponding plane groups; the contrast difference, energy difference and entropy difference are calculated for each plane group, and the contrast difference, energy difference and entropy difference of the m corresponding plane groups are combined to obtain the texture evaluation index Te of the model after modeling, which is expressed as: Among them, j represents the jth corresponding plane group.
7. The three-dimensional modeling evaluation method based on multimodal fusion according to claim 6, characterized in that: Determine multiple lighting directions and ensure that these directions can fully cover the model; configure the same light source type and properties for the actual scanned model and the model after modeling under each selected lighting direction; Render each model in each lighting direction, retain only the shadow information, and generate a shadow image; The shadow image is converted into a binary image, that is, each pixel in the image is either black or white; the shadow images of the actual scanned model and the modeled model under the same lighting direction are aligned in the horizontal and vertical directions and overlapped; a logical AND operation is performed on the two binary shadow images to generate a new binary image, in which only the pixels that are black in both original images will appear black in the new image; this new image represents the overlapping area of the two shadow images.
8. The three-dimensional modeling evaluation method based on multimodal fusion according to claim 7, characterized in that: The number of black pixels in the image after the logical AND operation is counted, and the size of each pixel is converted into an area unit. This area represents the area S of the overlapping area of the two shadow images. 2k ; Compare the overlapping area under each illumination direction with the shadow area S of the actual scanned model under the corresponding direction 1k Combined, we get the overlap ratio of the two model shadow images in each direction Or k , the expression is: Among them, k represents the kth lighting direction; The overlap ratio Or under all lighting directions k Summarize and combine to obtain the shadow evaluation index Sef of the model after modeling, expressed as: Where l represents the total number of different lighting directions.
9. The three-dimensional modeling evaluation method based on multimodal fusion according to claim 8, characterized in that: The spatial position evaluation index Sle, texture evaluation index Te and shadow evaluation index Sef of the model after modeling are combined to obtain the comprehensive evaluation score Score of the model after modeling, which is expressed as: Score=100[1-(β1*Sle+β2*Te+β3*Sef)] Wherein, β1, β2, and β3 are respectively the preset weight coefficients of the spatial position evaluation index Sle, the texture evaluation index Te, and the shadow evaluation index Sef, and 1>β1>β3>β2>0, β1+β2+β3=1; Compare the calculated comprehensive evaluation score Score of the model after modeling with the preset modeling evaluation table, specifically: When 95≤Score≤100, the modeling level of the model after modeling is A, indicating that the model after modeling has high completion quality and can be directly used in the corresponding application scenario; When 80≤Score<95, the modeling grade of the model after modeling is B, which means that the completion quality of the model after modeling is general, and the spatial position, texture and shadow of the model need to be further tested and optimized; When Score<80, the modeling grade of the model after modeling is C, indicating that the completion quality of the model after modeling is low and the model needs to be remodeled.
10. A three-dimensional modeling evaluation system based on multimodal fusion, characterized in that: include: The spatial position evaluation module puts the actual scanned model and the model after modeling into the same spatial rectangular coordinate system; Based on the improved Harris algorithm, the corner points of the actual scanned model and the model after modeling are extracted respectively; the Euclidean distance between the corresponding corner point in the actual scanned model and the model after modeling is calculated according to the spatial coordinates of each corner point; the Euclidean distances between all corner points are combined to obtain the spatial position evaluation index Sle of the model after modeling; The texture evaluation module performs face splitting on the actual scanned model and the model after modeling; calculates the contrast Con, energy Asm and entropy Ent based on the gray-level co-occurrence matrix algorithm, and further calculates the contrast difference, energy difference and entropy difference between the corresponding faces in the actual scanned model and the model after modeling; combines the contrast difference, energy difference and entropy difference of all faces in the actual scanned model and the model after modeling to obtain the texture evaluation index Te of the model after modeling; The shadow evaluation module performs illumination simulation on the actual scanned model and the model after modeling from multiple directions, obtains the shadow images of the two models under each illumination direction, and overlaps the shadow images of the two models under the same illumination direction. By analyzing the area of the overlapping shadow area, the overlap rate of the shadow images of the two models under each illumination direction is obtained. k ; The overlap ratio of the two model shadow images under all lighting directions Or k Combined to obtain the shadow evaluation index Sef of the model after modeling; The comprehensive evaluation module combines the spatial position evaluation index Sle, texture evaluation index Te and shadow evaluation index Sef of the model after modeling to obtain the comprehensive evaluation score Score of the model after modeling; compares the comprehensive evaluation score Score of the model after modeling with the preset modeling evaluation table to determine the modeling level of the model after modeling and select subsequent operations.
Citation Information
Cited By
Distributed intelligent identification processing system for unmanned aerial vehicle cluster collaborative aerial image
CN120198783A
Distributed intelligent recognition and processing system for drone cluster collaborative aerial images
CN120198783B
