Perceptual hash algorithm for three-dimensional model

Through the 3D model-aware hashing algorithm, we use technologies such as vertex sharpness and principal component analysis to generate a perceptual hash sequence, which solves the problem of increased authentication difficulty of 3D models after rotation, translation, and scaling, and achieves effective copyright for 3D models. Protect and identify.

CN118823232APending Publication Date: 2024-10-22UNIV OF SHANGHAI FOR SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410826199.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively authenticate and protect the uniqueness and authenticity of 3D models, especially after the model undergoes operations such as rotation, translation, and scaling, which makes authentication more difficult and cannot effectively prevent illegal copying and misappropriation.

Method used

A three-dimensional model perceptual hashing algorithm is used to identify key points by calculating the sharpness of vertices, generate a selected point set, perform principal component analysis and projection processing, construct a depth image and calculate local binary pattern features, and generate a perceptual hash sequence, using for model certification.

Benefits of technology

Effectively cope with the identification challenges caused by model transformation, ensure copyright protection, greatly save storage costs, and achieve effective authentication and protection of 3D models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118823232A_ABST
    Figure CN118823232A_ABST
Patent Text Reader

Abstract

The invention discloses a three-dimensional model perceptual hash algorithm, which is used for screening vertex data in an input 3D model file to remove redundant information so as to improve the subsequent processing efficiency. Thirdly, applying a principal component analysis (PCA) technology to the screened vertex data, enabling the obtained first three principal components to serve as new coordinate axes, and representing the vertex data in a new coordinate system to obtain a new point set; then, three-dimensional model information is converted into a two-dimensional image through a spherical projection technology and a radian-keeping equiangular projection technology, and depth information of each vertex is calculated in the projection process so as to enrich expression of the model; based on the projection and depth information, a gray level image is generated, and the image can reflect the structural features of the model. According to the method and the device, the model identification challenges caused by operations such as rotation, translation and zooming can be effectively handled, the input OBJ file is processed, and the copyright of the OBJ file can still be effectively protected even under the condition that the model is changed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of multimedia information, and in particular to a three-dimensional model-aware hash algorithm. Background Art

[0002] In the tide of the digital age, 3D models, as an important digital asset, are gradually showing their indispensable value in various fields. However, with the rapid development and widespread application of 3D printing technology, how to effectively authenticate and protect the property rights of 3D model assets has become the focus of industry and academia.

[0003] Given the digital nature of 3D models, accurate authentication becomes particularly important. Since 3D models may undergo operations such as rotation, translation, and scaling, these transformations undoubtedly increase the difficulty of model authentication. However, ensuring the uniqueness and authenticity of 3D models is crucial to protecting the rights and interests of creators and producers. This complexity requires us to develop more advanced model authentication technologies to prevent illegal copying, tampering, and misappropriation, thereby safeguarding the economic interests of 3D model creators and producers. Therefore, the issue of model authentication is particularly urgent in the current digital environment. Summary of the invention

[0004] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a 3D model-aware hash algorithm that can effectively cope with the model recognition challenges caused by operations such as rotation, translation and scaling, and process the input OBJ file to ensure that its copyright can be effectively protected even when the model is transformed. In order to achieve the above-mentioned purpose and other advantages according to the present invention, a 3D model-aware hash algorithm is provided, including:

[0005] S1. Input the 3D model to be processed;

[0006] S2, identifying key points by calculating the sharpness of vertices in the three-dimensional model;

[0007] S3, removing the selected key points and the eliminated vertices from the vertex set of the initial model to generate a selected point set;

[0008] S4, merging the key points in step S2 with the selected points in S3 to form a more comprehensive point set rich in key information;

[0009] S5, obtaining the principal component directions of the point set in step S4 by principal component analysis, using the first three principal components obtained as new coordinate axes, and expressing the point set data in the new coordinate system to obtain a new point set;

[0010] S6. Find a minimum bounding sphere for the point set in the above steps so that all points are on or inside the sphere;

[0011] S7, projecting the point set translated in step S6 onto the surface of the bounding sphere;

[0012] S8, calculating the depth information of each vertex in the point set obtained in S7;

[0013] S9, projecting the point set obtained in step S5 onto a two-dimensional plane by using an equiangular projection method that maintains the arc;

[0014] S10, generating a depth image;

[0015] S11, calculating the local binary pattern LBP eigenvalue of the image, constructing the LBP matrix, counting the LBP histogram of each block, connecting all histogram vectors, and finally obtaining the perceptual hash sequence H;

[0016] S12. Perform perceptual content authentication on the perceptual hash sequence extracted by the calculation model through the Euclidean distance.

[0017] Preferably, the sharpness in step S1 is determined by analyzing the normal angles between the faces composed of the vertices. Assume that a vertex V in the three-dimensional model participates in forming n faces, and these faces are recorded as F1, F2, ..., F n , for any two adjacent faces F i and F j , where i≠j, calculate their normals and The angle θ between ij , the total number of angles between all adjacent faces is q; for vertex V, calculate the angle between the normal lines of all adjacent faces θ ij (where i≠j, and F i and F j is an adjacent face) greater than a certain threshold θ thresh The number of points is recorded as m. If m>q / 2, that is, it is greater than half of the total number of angles between all adjacent faces, then the vertex V is considered to have a higher sharpness and is selected as a key point, that is:

[0018]

[0019] Then V is the key point. Among them, [θ ij >θ thresh ] is an indicator function, when θ ij >θ thresh The value is 1 when it is set, otherwise the value is 0.

[0020] Preferably, step S2 specifically includes removing the key points selected in step 1 from the initial model vertex set, then performing nearest neighbor calculation on the remaining vertices, and selecting the inverse of the median of the nearest neighbor distance of each vertex as the estimated density; for each remaining vertex V, calculating the distance to other vertices, and finding its k nearest neighbor vertices, where k is a preset parameter; calculating the median d of the k nearest neighbor distances i med ; where d ij is the vertex V i The distance between the jth nearest neighbor vertex, median d i med It is necessary to sort the k nearest neighbor distances and use the inverse of the median of the nearest neighbor distance as the estimated density ρ of each vertex i , perform statistical analysis on the estimated density of all vertices and calculate the median ρ med As the threshold; the estimated density ρ i Above the threshold ρ med The vertices are selected and sorted from high to low according to their estimated density values.

[0021] Preferably, if the estimated densities are the same, the inverse of the average of the nearest neighbor distances is used. As a secondary sorting basis; for the sorted high-density point set, extract non-intersecting points in order, and ensure that these points do not overlap with the vertices in the neighborhood associated with them; further analyze the vertices in the neighborhood associated with each point in the extracted non-intersecting high-density point set, and eliminate the vertices at the specified position according to the distance; remove the key points selected in step 1 and the above-eliminated vertices from the initial model vertex set to obtain a selected point set.

[0022] Preferably, step S5 specifically obtains the principal component directions of the point set, uses the first three principal components obtained as new coordinate axes, and obtains a new point set by expressing the point set obtained in step 4 in the new coordinate system.

[0023] Preferably, in step S10, in the process of creating the depth image, based on the point set projected onto the XOY plane in step S8, a square area centered on the origin is selected, which can ensure that all the projected points are included, and the area is divided into grids. Assuming that the point set projected onto the XOY plane is S, we select a square area R to include all the points and divide it into N*N grids, N=256. For each grid (i, j), its depth value D is defined. ij is the maximum value of the depth information of all projection points in the grid; assuming that the set of projection points in the grid (i, j) is S ij ,but:

[0024]

[0025] Among them, depth(P) represents the depth value of point P.

[0026] Preferably, step S11 is specifically that for each pixel (x, y) in the image, its LBP value LBP(x, y) is calculated based on the gray values of its neighboring pixels. Assuming an n*n neighborhood is considered, the calculation of the LBP value is as follows:

[0027]

[0028] Where:

[0029] p is the number of neighboring pixels. g c is the gray value of the central pixel (x, y); g p is the gray value of the p-th pixel in the neighborhood. S(x) is a sign function, defined as:

[0030]

[0031] Divide the LBP matrix into m*m non-overlapping blocks, and then count the LBP values within each block; construct a histogram with a length of 2 p to count the number of occurrences of each LBP value (from 0 to (2 p -1)) in the block;

[0032] Let h k(i) be the number of occurrences of the LBP value i (the value range of i is from 0 to (2 p -1)) in the k-th block, then h k is a vector with a length of 2 p ; Connect all the histogram vectors to form the final LBP feature.

[0033]

[0034] The length of the final perceptual hash sequence HH is 2 p *m 2 .

[0035] Preferably, in step S12, assume that the perceptual hash sequence of the model to be detected is an n-dimensional vector, denoted as H1 = (h1 1 , h1 2 , …, h1 n ); The perceptual hash sequence of the known model is also an n-dimensional vector, denoted as H2 = (h2 1 , h2 2 , …, h2 n ); The preset threshold, denoted as T, performs perceptual content authentication by calculating the Euclidean distance of the hash sequences. If D(H1, H2) < T, it is considered that the two models are perceptually similar.

[0036] Compared with the prior art, the present invention has the following beneficial effects: in order to solve the problem that the vertex data of 3D model files is large and difficult to process, the present invention selects key points and selected points from the model vertex data, removes the redundant points in the model describing the structure and shape of the model, and then obtains a grayscale image by projecting the key points and selected points twice, and finally maps the grayscale image to a hash sequence of fixed length, which greatly saves storage costs. It can effectively cope with the model recognition challenges caused by operations such as rotation, translation and scaling. The method processes the input OBJ file based on advanced image processing and feature extraction technology to ensure that its copyright can be effectively protected even when the model is transformed. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 is a flow chart of a three-dimensional model-aware hash algorithm according to the present invention;

[0038] Figure 2 The original model diagram of the three-dimensional model-aware hash algorithm according to the present invention;

[0039] Figure 3 A model diagram after translation of the three-dimensional model-aware hash algorithm according to the present invention;

[0040] Figure 4 A rotated model image of the three-dimensional model-aware hash algorithm according to the present invention;

[0041] Figure 5 Schematic diagram of a scaled model of a three-dimensional model-aware hashing algorithm according to the present invention. DETAILED DESCRIPTION

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

[0043] Reference Figure 1-5 , a 3D model-aware hashing algorithm, comprising the following steps:

[0044] Step 1: Select key points. After the 3D model file is input, the key points are identified by calculating the sharpness of the vertices in the 3D model. The sharpness is determined by analyzing the normal angles between the faces that the vertex participates in forming. Assume that a vertex V in the 3D model participates in forming n faces, which are recorded as F1, F2, ..., F n , for any two adjacent faces F iand F j (where i≠j), we can calculate their normals and The angle θ between ij , the total number of angles between all adjacent faces is q. For vertex V, calculate the angle θ between the normals of all adjacent faces ij (where i≠j, and F i and F j is an adjacent face) greater than a certain threshold θ thresh The number of is denoted as m.

[0045] If m>q / 2 (i.e., greater than half of the total number of angles between all adjacent faces), we consider vertex V to have a higher sharpness and select it as a key point.

[0046]

[0047] Then V is the key point. Among them, [θ ij >θ thresh ] is an indicator function, when θ ij >θ thresh The value is 1 when it is set, otherwise the value is 0.

[0048] θ ij This angle can be calculated using the dot product formula:

[0049]

[0050] in, is the dot product of two normal vectors, and are the moduli of the two normal vectors.

[0051] Step 2, selection of selected points. We first remove the key points selected in step 1 from the initial set of model vertices, then perform nearest neighbor calculations on the remaining vertices, and select the inverse of the median of the nearest neighbor distance of each vertex as the estimated density. For each remaining vertex V, we calculate its distance to other vertices and find its k nearest neighbor vertices (k is a preset parameter). Then, we calculate the median d of the k nearest neighbor distances i med . Where d ij is the vertex V i The distance between it and its jth nearest neighbor vertex. Median d i med The k nearest neighbor distances need to be sorted and obtained. Finally, the inverse of the median of the nearest neighbor distance is used as the estimated density ρ of each vertex i .

[0052]

[0053] Next, we perform a statistical analysis on the estimated density of all vertices and calculate the median ρ med As the threshold value, the estimated density ρ i Above the threshold ρ med The vertices are selected and sorted from high to low according to their estimated density values.

[0054] If the estimated densities are the same, the inverse of the average of the nearest neighbor distances is used. As a secondary sorting basis. For the sorted high-density point set, we extract non-intersecting points in order and ensure that these points do not overlap with the vertices in their associated neighborhoods. Next, we further analyze the vertices in the neighborhood associated with each point in the extracted non-intersecting high-density point set and remove the vertices at the specified position based on the distance. Finally, we remove the key points selected in step 1 and the above-removed vertices from the initial model vertex set to obtain a selected point set.

[0055] The formula for the average nearest neighbor distance is as follows:

[0056]

[0057] Step 3: merge the key points in step 1 and the selected points in step 2 to form a more comprehensive point set rich in key information.

[0058] Step 4, using principal component analysis (PCA) to obtain the principal component directions of the point set obtained in step 3, using the first three principal components obtained as new coordinate axes, and expressing the point set obtained in step 3 in the new coordinate system to obtain a new point set.

[0059] Step 5, find a minimum bounding sphere so that the point set obtained in step 4 is on or inside the sphere. Translate the point set and the bounding sphere so that the center of the bounding sphere is on the positive Z axis and the south pole of the sphere is the origin of the coordinate axis. The calculation process involved is as follows:

[0060] Assume we have N vertices, each vertex has D dimensions (x, y, z coordinates in 3D space), then the vertex data can be represented as an N*D matrix X. First, calculate the mean vector μ of the data:

[0061]

[0062] where x i is the i-th row of the matrix X, that is, the coordinates of the i-th vertex in the point set.

[0063] Centralized Vertex

[0064]

[0065] Calculate the covariance matrix C:

[0066]

[0067] Perform eigenvalue decomposition on the covariance matrix C to obtain eigenvectors v1, v2, ..., v D , and the corresponding eigenvalues ​​λ1, λ2, ..., λ D Sort the eigenvalues ​​λ in descending order and select the corresponding eigenvectors v1, v2, v3 as the first three principal components. Combine the selected first three eigenvectors v1, v2, v3 (by column) into a matrix v new .

[0068] V new =[v1, v2, v3]

[0069] The centralized data X centered Project onto the new coordinate axis system.

[0070] X transfored =X centered ·V new T

[0071] Where V new T Yes V new Transpose

[0072] Step 6, spherical projection, project the point set obtained in step 5 onto the spherical surface of the enclosing sphere, take the center of the sphere as the starting point and extend through the vertex to obtain the intersection with the sphere, which is the point of the spherical projection of the vertex.

[0073] Step 7, calculate the depth information of each vertex in the point set obtained in step 5, and define the depth information as the distance from the vertex to the center of the sphere divided by the radius of the sphere. The calculation formula for the depth information is as follows:

[0074]

[0075] Among them, d is the distance from the vertex to the center of the sphere, R is the radius of the sphere, and θ is the depth information of the vertex.

[0076] Step 8, maintaining the radian conformal projection, projecting the point set in step 6 onto the two-dimensional XOY plane by maintaining the radian conformal projection method. In step 8, the specific steps of the method involved are as follows:

[0077] Assume that a point S(x s ,y s ,z s ), the coordinates of the sphere center are (0, 0, r), and point P(x p ,y p,o) is the projection of point S on the XOY plane.

[0078]

[0079] l=r×φ

[0080] Where r is the radius of the sphere, ι is the length of the arc radius os, the projection on the XOY plane ensures that the length of OP is equal to the length of the arc radius point OS, and the SOP plane is perpendicular to the XOY plane. P is calculated as follows:

[0081]

[0082] Step 9, generation of depth image. In the process of creating the depth image, we first select a square area centered on the origin based on the point set projected onto the XOY plane in step 7. This area can ensure that all the projected points are included and is divided into a grid. Assuming that the point set projected onto the XOY plane is S, we select a square area R to contain all the points and divide it into N*N grids (here N=256). For each grid (i, j), we define its depth value D ij is the maximum value of the depth information of all projection points in the grid. Assume that the set of projection points in the grid (i, j) is S ij ,but:

[0083]

[0084] Among them, depth(P) represents the depth value of point P.

[0085] Then the depth value D of all grids ij Arrange into an N*N depth matrix D. Normalize the non-zero values ​​in the depth matrix: Assume that the minimum non-zero depth value in the depth matrix D is D min , the maximum depth value is D max We normalize the non-zero depth values ​​to the range [0, 254] and obtain the normalized depth matrix D norm ,

[0086]

[0087] in, Indicates a floor operation.

[0088] For the depth matrix D norm For the grid with a depth value of 0 (indicating invalid or missing data), we set its grayscale value to 255 and obtain the final depth image matrix I:

[0089]

[0090] In this way, a complete depth image matrix I containing valid depth information is obtained, where each element I ij Represents the grayscale value of the pixel at position (i, j) in the depth image.

[0091] Step 10, calculate and count the local binary pattern (LBP) features of the image. For each pixel (x, y) in the image, its LBP value LBP (x, y) is calculated based on the grayscale values ​​of its neighboring pixels. Assuming that an n*n neighborhood is considered, the calculation of the LBP value is:

[0092]

[0093] in:

[0094] p is the number of neighborhood pixels. g c is the grayscale value of the center pixel (x,y). p is the gray value of the pth pixel in the neighborhood. S(x) is a sign function defined as:

[0095]

[0096] Divide the LBP matrix into m*m non-overlapping blocks, and then count the LBP values ​​in each block. We can construct a length of 2 p The histogram is used to count each LBP value (0 to (2 p -1)) appears in the block.

[0097] Assume h k(i) is the LBP value i in the kth block (i ranges from 0 to (2 p -1)) occurs, then h k is a length of 2 p All histogram vectors are connected to form the final LBP feature.

[0098]

[0099] The length of the final perceptual hash sequence H is 2 p *m 2 The number of selected neighborhood pixels is 4, the LBP matrix is ​​divided into 16 non-overlapping blocks, and the length of the final generated descriptor is 256.

[0100] Step 11, perform perceptual content authentication on the perceptual hash sequence extracted by the model by calculating the Euclidean distance. Assume that the perceptual hash sequence of the model to be detected is an n-dimensional vector, denoted as H1=(h1 1 ,h1 2 ,…,h1 n)。The perceptual hash sequence of the known model is also an n-dimensional vector, denoted as H2 = (h2 1 , h2 2 , …, h2 n ). The preset threshold, denoted as T, performs perceptual content authentication by calculating the Euclidean distance of the hash sequence.

[0101] If D(H1, H2) < T, it is considered that the two models are perceptually similar. The calculation formula of the Euclidean distance is:

[0102]

[0103] Example 1

[0104] Step 1, read a 3D model obj file to be processed.

[0105] Step 2, select key points. After inputting the 3D model file, key points are identified by calculating the sharpness of the vertices in the 3D model, and the set angle threshold is 20°.

[0106] Step 3, screen out the selected points. First, we remove the key points selected in Step 2 from the initial model vertex set. For each remaining vertex V, we calculate its distance to all other vertices and find its 10 nearest neighbor vertices. Then, we calculate the median of these nearest neighbor distances. Where d ij is the distance between vertex V i and its jth nearest neighbor vertex. The median d i med needs to be obtained after sorting the 10 nearest neighbor distances. Finally, the reciprocal of the median of the nearest neighbor distances is used as the estimated density of each vertex.

[0107]

[0108] Perform statistical analysis on the estimated densities of all vertices, and calculate the median ρ med as the threshold. Select the vertices with estimated density ρ i higher than the threshold ρ med , and sort them from high to low according to their estimated density values. If the estimated densities are the same, the reciprocal of the average of the nearest neighbor distances is used as the secondary sorting basis. The formula for the average of the nearest neighbor distances is as follows:

[0109]

[0110] For the sorted high-density point set, we extract non-intersecting points in order and ensure that these points do not overlap with the vertices in their associated neighborhoods. Next, we further analyze the vertices in the neighborhood associated with each point in the extracted non-intersecting high-density point set, and remove the vertices at positions 1, 3, 5, 7, and 9 according to the distance from near to far. Finally, we remove the key points selected in step 1 and the above-removed vertices from the initial model vertex set to obtain a selected point set.

[0111] Step 4: Merge the key points and selected points into one point set.

[0112] Step 5, using principal component analysis (PCA) to obtain the principal component directions of the point set data obtained in step 4, using the first three principal components obtained as new coordinate axes, and expressing the point set data in the new coordinate system to obtain a new point set.

[0113] Step 6: Find a minimum bounding sphere for the point set obtained in step 5 so that all points are on or inside the sphere. Translate the point set and the bounding sphere so that the center of the bounding sphere is on the positive Z axis and the south pole of the sphere is the origin of the coordinate axis.

[0114] Step 7, spherical projection, project the point set translated in step 6 onto the spherical surface of the enclosing sphere, take the center of the sphere as the starting point and extend through the vertex to obtain the intersection with the sphere, which is the point of the vertex spherical projection.

[0115] Step 8, calculate the depth information of each vertex in the point set obtained in step 6, and define the depth information as the distance from the vertex to the center of the sphere divided by the radius of the sphere.

[0116]

[0117] Among them, d is the distance from the vertex to the center of the sphere, R is the radius of the sphere, and θ is the depth information of the vertex.

[0118] Step 9, project the point set on the sphere obtained in step 7 onto the two-dimensional XOY plane by using the equiangular projection method that maintains the arc. Assume that point S(x x ,y s ,z s ), the coordinates of the sphere center are (0, 0, r), and point P(x p ,y p ,o) is the projection of point S on the XOY plane.

[0119]

[0120] l=r×φ

[0121] Where r is the radius of the sphere, ι is the length of the arc radius OS, the projection on the XOY plane ensures that the length of OP is equal to the length of the arc radius point OS, and the SOP plane is perpendicular to the XOY plane. P is calculated as follows:

[0122]

[0123] Step 10, generation of depth image. In the process of creating the depth image, we first select a square area centered on the origin based on the point set projected onto the XOY plane in step 8. This area can ensure that all the projected points are included and divided into grids. Assuming that the point set projected onto the XOY plane is SS, we select a square area R to contain all the points and divide it into 256*256 grids. For each grid (i, j), we define its depth value D ij is the maximum value of the depth information of all projection points in the grid. Assume that the set of projection points in the grid (i, j) is S ij ,but:

[0124]

[0125] Among them, depth(P) represents the depth value of point P.

[0126] Then the depth value D of all grids ij Arrange into a 256*256 depth matrix D. Normalize the non-zero values ​​in the depth matrix: Assume that the minimum non-zero depth value in the depth matrix D is D min , the maximum depth value is D max We normalize the non-zero depth values ​​to the range [0, 254] and obtain the normalized depth matrix D norm :

[0127]

[0128] in, Indicates a floor operation.

[0129] For the depth matrix D norm For the grid with a depth value of 0 (indicating invalid or missing data), we set its grayscale value to 255 and obtain the final depth image matrix I:

[0130]

[0131] In this way, we get a complete depth image matrix I containing valid depth information, where each element I ij Represents the grayscale value of the pixel at position (i, j) in the depth image.

[0132] Step 11, calculate and count the local binary pattern (LBP) features of the image. For each pixel (x, y) in the image, its LBP value LBP (x, y) is calculated based on the grayscale values ​​of its neighboring pixels. The selected neighborhood is 3*3, and the selected neighborhood pixels are the four pixels above, below, left and right of the center pixel. The calculation of the LBP value is:

[0133]

[0134] in:

[0135] p is the number of neighborhood pixels (p=4). c is the grayscale value of the center pixel (x,y). p is the gray value of the pth pixel in the neighborhood. S(x) is a sign function defined as:

[0136]

[0137] The LBP matrix is ​​divided into 4*4 non-overlapping blocks, and then the LBP values ​​in each block are counted. Since the LBP value is a binary number (up to 4 bits, i.e. 0 to 15), we construct a histogram of length 16 to count the number of times each LBP value (0 to 15) appears in the block.

[0138] Assume h k(i) is the number of occurrences of LBP value i (i ranges from 0 to 15) in the kth block, then h k Is a vector of length 16. All histogram vectors are concatenated to form the final LBP feature.

[0139]

[0140] The length of the final perceptual hash sequence H is 256. Figure 2 The perceptual hash sequence H of the shown model is as follows:

[0141]

[0142] According to the above steps, the experiment was conducted. The object of this experiment was 155 3D model obj files. The models were rotated, translated, scaled, and other operations were performed on the models, and a different model from the original model was placed in. Table 1 shows the models after various operations. Table 2 shows the average distance and the maximum and minimum distance of the Euclidean distance between the hash sequences of the 155 models and the original models after different operations. For this data, we set the threshold for judging whether the models are perceptually similar to 350, that is, if the Euclidean distance of the hash sequences of the two models is less than 350, they are considered perceptually similar. Figure 2 The original model image. Figure 3 This is the model diagram after translation. Figure 4 This is the rotated model. Figure 5 This is a scaled model diagram.

[0143] Table 1 Model operation

[0144]

[0145]

[0146] Table 2 Euclidean distance between hash sequences of the model before and after operation

[0147]

[0148] The number of devices and processing scales described here are used to simplify the description of the present invention, and the application, modification and variation of the present invention will be obvious to those skilled in the art.

[0149] Although the embodiments of the present invention have been disclosed as above, they are not limited to the applications listed in the specification and implementation modes. They can be fully applied to various fields suitable for the present invention. For those familiar with the art, additional modifications can be easily implemented. Therefore, without departing from the general concept defined by the claims and the scope of equivalents, the present invention is not limited to the specific details and the illustrations shown and described herein.

Claims

1. A three-dimensional model-aware hash algorithm, characterized in that: The following steps are involved: S1. Input the 3D model to be processed; S2, identifying key points by calculating the sharpness of vertices in the three-dimensional model; S3, removing the selected key points and the eliminated vertices from the vertex set of the initial model to generate a selected point set; S4, merging the key points in step S2 with the selected points in S3 to form a more comprehensive point set rich in key information; S5, obtaining the principal component directions of the point set in step S4 by principal component analysis, using the first three principal components obtained as new coordinate axes, and expressing the point set data in the new coordinate system to obtain a new point set; S6. Find a minimum bounding sphere for the point set in the above steps so that all points are on or inside the sphere; S7, projecting the point set translated in step S6 onto the surface of the bounding sphere; S8, calculating the depth information of each vertex in the point set obtained in S7; S9, projecting the point set obtained in step S5 onto a two-dimensional plane by using an equiangular projection method that maintains the arc; S10, generating a depth image; S11, calculating the local binary pattern LBP eigenvalue of the image, constructing the LBP matrix, counting the LBP histogram of each block, connecting all histogram vectors, and finally obtaining the perceptual hash sequence H; S12. Perform perceptual content authentication on the perceptual hash sequence extracted by the calculation model through the Euclidean distance.

2. A three-dimensional model-aware hash algorithm as claimed in claim 1, characterized in that: In step S1, the sharpness is determined by analyzing the normal angles between the faces composed of the vertices. Assume that a vertex V in the three-dimensional model participates in forming n faces, and these faces are recorded as F1, F2, ..., F n , for any two adjacent faces F i and F j , where i≠j, calculate their normals and The angle θ between ij , the total number of angles between all adjacent faces is q; for vertex V, calculate the angle between the normal lines of all adjacent faces θ ij (where i≠j, and F i and F j is an adjacent face) greater than a certain threshold θ thresh The number of points is recorded as m. If m>q / 2, that is, it is greater than half of the total number of angles between all adjacent faces, then the vertex V is considered to have a higher sharpness and is selected as a key point, that is: Then V is the key point. Among them, [θ ij >θ thresh ] is an indicator function, when θ ij >θ thresh The value is 1 when it is set, otherwise the value is 0.

3. A three-dimensional model-aware hash algorithm as claimed in claim 2, characterized in that: Step S2 specifically removes the key points selected in step 1 from the initial model vertex set, then performs nearest neighbor calculation on the remaining vertices, and selects the inverse of the median of the nearest neighbor distance of each vertex as the estimated density; for each remaining vertex V, calculates the distance to other vertices, and finds its k nearest neighbor vertices, where k is a preset parameter; Calculate the median d of the k nearest neighbor distances i med ; where d ij is the vertex V i The distance between the jth nearest neighbor vertex, median d i med It is necessary to sort the k nearest neighbor distances and use the inverse of the median of the nearest neighbor distance as the estimated density ρ of each vertex i , perform statistical analysis on the estimated density of all vertices and calculate the median ρ med As the threshold; the estimated density ρ i Above the threshold ρ med The vertices are selected and sorted from high to low according to their estimated density values.

4. A three-dimensional model-aware hash algorithm as claimed in claim 3, characterized in that: If the estimated densities are the same, the inverse of the average of the nearest neighbor distances is used. As a secondary sorting basis; for the sorted high-density point set, extract non-intersecting points in order, and ensure that these points do not overlap with the vertices in the neighborhood associated with them; further analyze the vertices in the neighborhood associated with each point in the extracted non-intersecting high-density point set, and eliminate the vertices at the specified position according to the distance; remove the key points selected in step 1 and the above-eliminated vertices from the initial model vertex set to obtain a selected point set.

5. A three-dimensional model-aware hash algorithm as claimed in claim 4, characterized in that: Step S5 specifically obtains the principal component directions of the point set, uses the first three principal components obtained as new coordinate axes, and obtains a new point set by expressing the point set obtained in step 4 in the new coordinate system.

6. A three-dimensional model-aware hash algorithm as claimed in claim 1, characterized in that: In step S10, in the process of creating the depth image, based on the point set projected onto the XOY plane in step S8, a square area centered on the origin is selected, which can ensure that all the projected points are included and divided into grids. Assuming that the point set projected onto the XOY plane is S, we select a square area R to include all the points and divide it into N*N grids, N=256. For each grid (i, j), its depth value D is defined. ij is the maximum value of the depth information of all projection points in the grid; assuming that the set of projection points in the grid (i, j) is S ij ,but: Among them, depth(P) represents the depth value of point P.

7. A three-dimensional model-aware hash algorithm as claimed in claim 1, characterized in that: Step S11 specifically calculates the LBP value LBP(x,y) of each pixel (x,y) in the image based on the grayscale values ​​of its neighboring pixels; assuming that an n*n neighborhood is considered, the calculation of the LBP value is: in: p is the number of neighborhood pixels; g c is the gray value of the center pixel (x, y); g p is the gray value of the pth pixel in the neighborhood; S(x) is a sign function defined as: Divide the LBP matrix into m*m non-overlapping blocks, and then count the LBP values ​​in each block; construct a length of 2 p The histogram is used to count each LBP value (0 to (2 p -1)) The number of times it appears in the block; Assume h k(i) is the LBP value i in the kth block (i ranges from 0 to (2 p -1)) occurs, then h k is a length of 2 p Vector; connect all histogram vectors to form the final LBP feature. The length of the final perceptual hash sequence H is 2 p *m 2 .

8. A three-dimensional model-aware hash algorithm as claimed in claim 1, characterized in that: In step S12, it is assumed that the perceptual hash sequence of the model to be detected is an n-dimensional vector, denoted as H1 = (h1 1 , h1 2 , …, h1 n ); the perceptual hash sequence of the known model is also an n-dimensional vector, denoted as H2 = (h2 1 , h2 2 , …, h2 n ); the preset threshold is denoted as T. Perceptual content authentication is performed by calculating the Euclidean distance of the hash sequence. If D(H1, H2) < T, it is considered that the perceptions of the two models are similar.