Watermark embedding and extracting method for human motion capture data

By embedding and extracting watermarks from single-frame directed graphs in motion capture data files, the problem of insufficient protection of motion capture data in the existing technology is solved, and robust protection of the data is achieved to ensure that the data can be adjusted in scale, rotation, and translation. and data security under clipping attacks.

CN118799162APending Publication Date: 2024-10-18HANGZHOU DIANZI UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410967173.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

There is a lack of effective means of protecting motion capture data in the existing technology. Especially when facing scaling, rotation, translation, and cropping attacks, motion capture data is easily tampered with or destroyed.

Method used

A watermark embedding and extraction method is used to embed the watermark information by initializing the single-frame directed graph in the motion capture data file, calculating the center of gravity, layer sequence traversal and angle embedding of the watermark information, and extracting the watermark information according to the sea level. The clear check bit verifies the correctness of the watermark information to ensure the robustness of the data under scaling, rotation, translation and cropping attacks.

Benefits of technology

It implements copyright protection for motion capture data and can effectively resist data scaling, rotation, translation and partial cropping attacks, ensuring data integrity and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799162A_ABST
    Figure CN118799162A_ABST
Patent Text Reader

Abstract

The invention discloses a watermark embedding and extracting method for human motion capture data, and belongs to the field of information hiding. The watermark embedding method comprises the following steps: firstly, acquiring an original action capture data file, initializing an original single-frame directed graph and taking the original single-frame directed graph as a first undirected graph, calculating a gravity center point, traversing the first undirected graph and converting the first undirected graph into a first directed graph, and embedding watermark information in an angle between edges of the first directed graph; and finally obtaining an action capture data file embedded with the watermark and storing the action capture data file. The watermark extraction method comprises the following steps: reading watermark-embedded action capture data from a watermark-embedded action capture data file, initializing a watermark-embedded single-frame directed graph to serve as a second undirected graph, calculating a gravity center point, traversing the second undirected graph, converting the second undirected graph into a second directed graph, and extracting the watermark from the second directed graph. Extracting the watermark information from the angles of a single-frame node incoming edge and other outgoing edges, and judging whether the extracted watermark information is correctly positioned or not.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of information hiding, and in particular relates to a watermark embedding and extraction method for human motion capture data. Background Art

[0002] Motion capture data, also known as motion capture data, refers to the time data sequence obtained by collecting key sample nodes through sensors. It is often used in the production of animation and game characters to achieve more realistic character action display. Therefore, the protection of motion capture data is very necessary.

[0003] Motion capture data is often stored in the .fbx file format, which mainly contains the topological structure of the nodes. The data of each node is a time series frame. The data of each key frame is saved in the form of three basic transformations: scaling, rotation, and offset, and has three components: x, y, and z.

[0004] Nowadays, the protection measures for motion capture data are very limited, and there is no mature means to protect motion capture data. Therefore, there is an urgent need for a method to embed and extract watermarks in motion capture data by combining watermark technology commonly used in image information hiding. Summary of the invention

[0005] The purpose of the present invention is to solve the problems existing in the prior art and provide a watermark embedding and extraction method for human motion capture data, which includes two parts: embedding and extraction, so as to realize the protection of motion capture data and has the ability to resist attacks such as scaling, rotation, translation and cropping.

[0006] In order to achieve the above-mentioned invention object, the present invention specifically adopts the following technical solutions:

[0007] In a first aspect, the present invention provides a method for embedding a watermark in human motion capture data, comprising the following steps:

[0008] AS1. Obtaining an original motion capture data file, reading the original motion capture data from the original motion capture data file, the original motion capture data can be divided into a series of original single-frame directed graphs in the time dimension, initializing the original single-frame directed graph to obtain an initialized single-frame undirected graph, and using the initialized single-frame undirected graph as the first undirected graph;

[0009] AS2. Calculate the centroid of the first undirected graph;

[0010] AS3. Traverse the first undirected graph and convert it into a first directed graph. At the same time, the number of layers in the layer-order traversal of the single-frame node in the first undirected graph is the order of the single-frame node. Each single-frame node and the order of each single-frame node are recorded in the first mapping table.

[0011] AS4. Traverse the first directed graph, embed watermark information in the angles between the edges of the first directed graph, update the coordinates of the single-frame nodes according to the angle change, and record the single-frame nodes with updated coordinates and their changed coordinates in the node coordinate update mapping table;

[0012] AS5. Update the translation transformation data of the corresponding single-frame node in the original motion capture data according to the node coordinate update mapping table;

[0013] AS6. Take a preset number of consecutive original single-frame directed graphs as a group of original single-frame directed graphs, embed watermark information into a group of original single-frame directed graphs, and then embed watermark information into a new group of original single-frame directed graphs after a certain interval, until all the original single-frame directed graphs in the original motion capture data file are processed, and the motion capture data file with embedded watermark is obtained and saved; wherein, the watermark information embedded in the original single-frame directed graph consists of three parts, namely, the marker watermark, the watermark data information and the Hamming check bit.

[0014] Based on the above scheme, each step can be implemented in the following preferred specific manner.

[0015] As a preferred embodiment of the first aspect, the specific process of step AS1 is as follows:

[0016] AS11. For each single-frame node data in the original single-frame directed graph in space, the scaling transformation data therein is converted into a first scaling transformation matrix, wherein the first scaling transformation data is a three-dimensional vector, and the three components in the three-dimensional vector corresponding to the first scaling transformation data respectively represent the scaling factors on the x, y, and z axes. The first scaling transformation matrix of the i-th single-frame node of the t-th frame original single-frame directed graph is

[0017] AS12. For each single-frame node data in the original single-frame directed graph in space, the rotation transformation data therein is converted into a first rotation transformation matrix, wherein the first rotation transformation data is a four-dimensional vector Among the four components of the four-dimensional vector corresponding to the first rotation transformation data, Represents the real part of the rotation transformation data of the i-th single-frame node of the t-th frame original single-frame directed graph, Represents the imaginary component of the rotation transformation data of the ith single-frame node of the t-th frame original single-frame directed graph along the x-axis, Represents the imaginary component of the rotation transformation data of the ith single-frame node of the tth frame original single-frame directed graph along the y-axis, It represents the imaginary component of the rotation transformation data of the ith single-frame node of the t-th frame original single-frame directed graph along the z-axis. The first rotation transformation matrix of the ith single-frame node of the t-th frame original single-frame directed graph is

[0018] AS13. For each single-frame node data in the original single-frame directed graph in space, the translation transformation data therein is converted into a first translation transformation matrix, wherein the first translation transformation data is a three-dimensional vector, and the three components of the three-dimensional vector corresponding to the first translation transformation data respectively represent the offsets on the x, y, and z axes. The first translation transformation matrix of the i-th single-frame node of the t-th frame original single-frame directed graph is

[0019] AS14. Calculate the local composite matrix of each single-frame node in the original single-frame directed graph; where the local composite matrix of the i-th single-frame node in the t-th frame original single-frame directed graph is expressed as

[0020] AS15. Multiply the local composite matrices of all nodes on the path from the root node to the single-frame node in the original single-frame directed graph in turn to obtain the global composite matrix of each single-frame node;

[0021] AS16. After converting the coordinates of the single-frame nodes in the local coordinate system of the original single-frame directed graph, the world coordinates of each single-frame node in the original single-frame directed graph are calculated; among which, the world coordinates of the i-th single-frame node in the t-th frame original single-frame directed graph are In the formula, They represent the components of the x, y, and z axes in the world coordinates of the ith single-frame node of the t-th original single-frame directed graph. T represents transposition. Represents the global composite matrix of the ith single-frame node of the tth frame original single-frame directed graph;

[0022] AS17. Traverse the original single-frame directed graph, perform AS12-AS16 processing on each single-frame node in the original single-frame directed graph, obtain the world coordinate data of each single-frame node in the original single-frame directed graph, and change each directed edge of the original single-frame directed graph into an undirected edge, and finally obtain the first undirected graph.

[0023] Furthermore, the first scaling transformation matrix of the ith single-frame node of the tth frame original single-frame directed graph is The form is:

[0024]

[0025] in, Represents the first scaling transformation matrix A row and column of parameters; Represents the first scaling transformation matrix The two-row and two-column parameters of ; Represents the first scaling transformation matrix The three rows and three columns of parameters.

[0026] Furthermore, the first rotation transformation matrix of the ith single-frame node of the tth frame original single-frame directed graph is The form is:

[0027]

[0028] in:

[0029]

[0030]

[0031] In the formula, Represents the first rotation transformation matrix A row and column of parameters, Represents the first rotation transformation matrix One row and two columns of parameters, Represents the first rotation transformation matrix One row and three columns of parameters, Represents the first rotation transformation matrix The two rows and one column parameters of Represents the first rotation transformation matrix The two-row and two-column parameters of Represents the first rotation transformation matrix The two rows and three columns of parameters; Represents the first rotation transformation matrix The three rows and one column parameters, Represents the first rotation transformation matrix The three rows and two columns of parameters, Represents the first rotation transformation matrix The three rows and three columns of parameters.

[0032] Furthermore, the first translation transformation matrix of the ith single-frame node of the tth frame original single-frame directed graph is The form is:

[0033]

[0034] In the formula, Represents the first translation transformation matrix One row and four columns of parameters; Represents the first translation transformation matrix The two rows and four columns of parameters; Represents the first translation transformation matrix The three rows and four columns of parameters.

[0035] As a preferred embodiment of the first aspect, the specific process of step AS3 is as follows:

[0036] AS31. Construct an empty first mapping table, traverse the first undirected graph, calculate the distance between each single-frame node and the centroid in the first undirected graph, and take the single-frame node with the smallest distance as the only 0-order single-frame node;

[0037] AS32. Take the 0-order single-frame node as the starting node of the traversal, perform a level-order traversal on the first undirected graph, take the level number of the single-frame node in the level-order traversal in the first undirected graph as the order of the single-frame node, and change the undirected edges in the first undirected graph into directed edges, the direction of the directed edges is from the single-frame node with a lower order to the single-frame node with a higher order, and record each single-frame node and the order of each single-frame node in the first mapping table.

[0038] As a preferred embodiment of the first aspect, the specific process of step AS4 is as follows:

[0039] AS41. Initialize an initially empty queue for updating the single-frame node coordinates to obtain a first queue, and put the root node of the first directed graph into the first queue;

[0040] AS42. Take a single frame node from the first queue as the watermark node, and calculate the angles of the incoming edge and other outgoing edges of the watermark node; the angle between the incoming edge of the j-th watermark node and the k-th outgoing edge of the j-th watermark node is expressed in radians as

[0041] AS43. Angle between the incoming edge of the jth watermark node and the kth outgoing edge of the jth watermark node Embed a bit of watermark information in and get the angle of embedded watermark information In the plane formed by the incoming edge of the watermark node and the kth outgoing edge of the watermark node, according to the angle of the embedded watermark information Get the outgoing edge of the embedded watermark information, update the coordinates of the kth outgoing edge of the embedded watermark node pointing to the single-frame node, put the single-frame node with updated coordinates into the first queue, and record the single-frame node with updated coordinates and the changed coordinates of the single-frame node with updated coordinates in the node coordinate update mapping table.

[0042] AS44. Execute AS42-AS43 in a loop until the specified number of bits of embedded watermark is reached.

[0043] As a preferred embodiment of the above-mentioned first aspect, in step AS6, three consecutive frames of original single-frame directed graphs are taken as a group of original single-frame directed graphs, and 48 bits of watermark information are embedded in each group of original single-frame directed graphs, the first 10 bits of the watermark information are the mark watermark, the middle 32 bits are the watermark data information, and the last 6 bits are the Hamming check bits.

[0044] As a preferred embodiment of the first aspect above, after obtaining the motion capture data file embedded with a watermark, different types of attacks are applied to the motion capture data file embedded with a watermark, and each type of attack corresponds to an attacked motion capture data file, and ultimately multiple attacked motion capture data files are obtained.

[0045] As a preferred embodiment of the first aspect, the attack types applied are scaling, rotation, translation and cropping attacks.

[0046] In a second aspect, the present invention provides a method for extracting a watermark from human motion capture data, comprising the following steps:

[0047] BS1. Obtain a watermarked motion capture data file obtained by a watermark embedding method for human motion capture data described in the first aspect above, read the watermarked motion capture data from the watermarked motion capture data file, the watermarked motion capture data can be divided into a series of watermarked single-frame directed graphs in the time dimension, initialize the watermarked single-frame directed graph to obtain an initialized watermarked single-frame undirected graph, and use the initialized watermarked single-frame undirected graph as the second undirected graph;

[0048] BS2. Calculate the centroid of the second undirected graph;

[0049] BS3. Traverse the second undirected graph and convert it into a second directed graph. At the same time, the layer number of the single-frame node in the second undirected graph in the layer order traversal is the order of the single-frame node, and each single-frame node and the order of each single-frame node are recorded in the second mapping table;

[0050] BS4. Perform layer-order traversal on the second directed graph, use each traversed single-frame node in the second directed graph as a watermark extraction node, calculate the angle between the incoming edge of the watermark extraction node and other outgoing edges, and extract watermark information from it, until the specified number of bits of the extracted watermark is reached;

[0051] BS5. Take a preset number of consecutive second directed graphs as a group of second directed graphs, extract watermark information from the group of second directed graphs, if the watermark information extracted from the group of second directed graphs is correctly positioned, judge whether the watermark information extracted from the group of second directed graphs is incorrect based on the check bit: if it is correct, the watermark extraction is successful; if it is incorrect, extract watermark information from a new group of second directed graphs after a certain interval of frames until the extracted watermark information is correct; if the watermark information extracted from the group of second directed graphs is not correctly positioned, move the group of second directed graphs back one frame and then extract watermark information from them until the extracted watermark information is correctly positioned.

[0052] Based on the above scheme, each step can be implemented in the following preferred specific manner.

[0053] As a preferred embodiment of the second aspect, the specific process of step BS1 is as follows:

[0054] BS11. For each single-frame node data in the space of the single-frame directed graph embedded with watermark, the scaling transformation data therein is converted into a second scaling transformation matrix, wherein the second scaling transformation data is a three-dimensional vector, and the three components of the three-dimensional vector corresponding to the second scaling transformation data represent the scaling factors on the x, y, and z axes respectively. The second scaling transformation matrix of the i-th single-frame node of the single-frame directed graph embedded with watermark in the t-th frame is

[0055] BS12. For each single-frame node data in the space of the single-frame directed graph embedded with the watermark, the rotation transformation data therein is converted into a second rotation transformation matrix, wherein the second rotation transformation data is a four-dimensional vector Among the four components of the four-dimensional vector corresponding to the second rotation transformation data, Represents the real part of the rotation transformation data of the ith single-frame node of the single-frame directed graph embedded with the watermark in the tth frame, Represents the imaginary component of the rotation transformation data of the ith single-frame node of the single-frame directed graph embedded with the watermark in the tth frame along the x-axis, Represents the imaginary component of the rotation transformation data of the ith single-frame node of the single-frame directed graph embedded with the watermark in the tth frame along the y-axis, It represents the imaginary component of the rotation transformation data of the ith single frame node of the single frame directed graph embedded with watermark in the tth frame along the z-axis. The second rotation transformation matrix of the ith single frame node of the single frame directed graph embedded with watermark in the tth frame is

[0056] BS13. For each single-frame node data in the single-frame directed graph embedded with watermark in space, the translation transformation data therein is converted into a second translation transformation matrix, wherein the second translation transformation data is a three-dimensional vector, and the three components of the three-dimensional vector corresponding to the second translation transformation data respectively represent the offsets on the three axes of x, y, and z. The second translation transformation matrix of the i-th single-frame node in the single-frame directed graph embedded with watermark in the t-th frame is

[0057] BS14. Calculate the local composite matrix of each single-frame node in the single-frame directed graph embedded with watermark; where the local composite matrix of the i-th single-frame node in the single-frame directed graph embedded with watermark in the t-th frame is expressed as

[0058] BS15. Multiply the local composite matrices of all nodes on the path from the root node to the single-frame node itself in the single-frame directed graph embedded with the watermark in turn to obtain the global composite matrix of each single-frame node;

[0059] BS16. After converting the coordinates of the single-frame nodes in the single-frame directed graph embedded with watermark in the local coordinate system, the world coordinates of each single-frame node in the single-frame directed graph embedded with watermark are calculated; among which, the world coordinates of the i-th single-frame node in the single-frame directed graph embedded with watermark in the t-th frame are in They respectively represent the components of the x, y, and z axes in the world coordinates of the ith single-frame node of the single-frame directed graph embedded with the watermark in the tth frame; T represents transposition; The global composite matrix representing the i-th single-frame node of the single-frame directed graph of the t-th frame embedded with watermark;

[0060] BS17. Traverse the single-frame directed graph embedded with watermark, perform BS12-BS16 processing on each single-frame node in the single-frame directed graph embedded with watermark, obtain the world coordinate data of each single-frame node in the single-frame directed graph embedded with watermark, and change each directed edge of the single-frame directed graph embedded with watermark into an undirected edge, and finally obtain the second undirected graph.

[0061] Furthermore, the second scaling transformation matrix of the ith single-frame node of the single-frame directed graph of the tth frame embedded with the watermark is The form is:

[0062]

[0063] in, Represents the second scaling transformation matrix A row and column of parameters; Representation Matrix The two-row and two-column parameters of ; Represents the second scaling transformation matrix The three rows and three columns of parameters.

[0064] Furthermore, the second rotation transformation matrix of the ith single-frame node of the single-frame directed graph of the tth frame embedded with the watermark is The form is:

[0065]

[0066] in:

[0067]

[0068] In the formula, Represents the second rotation transformation matrix A row and column of parameters, Represents the second rotation transformation matrix One row and two columns of parameters, Represents the second rotation transformation matrix One row and three columns of parameters, Represents the second rotation transformation matrix The two rows and one column parameters of Represents the second rotation transformation matrix The two-row and two-column parameters of Represents the second rotation transformation matrix The two rows and three columns of parameters; Represents the second rotation transformation matrix The three rows and one column parameters, Represents the second rotation transformation matrix The three rows and two columns of parameters, Represents the second rotation transformation matrix The three rows and three columns of parameters.

[0069] Furthermore, the second translation transformation matrix of the ith single-frame node of the single-frame directed graph of the tth frame embedded with the watermark is The form is:

[0070]

[0071] In the formula, Represents the second translation transformation matrix One row and four columns of parameters; Represents the second translation transformation matrix The two rows and four columns of parameters; Represents the second translation transformation matrix The three rows and four columns of parameters.

[0072] As a preferred embodiment of the second aspect, the specific process of step BS3 is as follows:

[0073] BS31. Construct an empty second mapping table, traverse the second undirected graph, calculate the distance between each single-frame node and the centroid in the second undirected graph, and take the single-frame node with the smallest distance as the only 0-order single-frame node.

[0074] BS32. Take the 0-order single-frame node as the starting node of the traversal, perform a level-order traversal on the second undirected graph, take the level number of the single-frame node in the level-order traversal in the second undirected graph as the order of the single-frame node, and change the undirected edges in the second undirected graph into directed edges, the direction of the directed edges is from the single-frame node with a lower order to the single-frame node with a higher order, and record each single-frame node and the order of each single-frame node in the second mapping table.

[0075] Compared with the prior art, the present invention has the following beneficial effects:

[0076] The present invention realizes copyright protection of human motion capture data. Without affecting the use of the original motion capture data, the copyright protection information is embedded in the form of partial data fine-tuning, and the ability to effectively resist attacks such as data scaling, rotation, translation and partial cropping is excellent in terms of scaling, rotation, translation and partial cropping. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] Figure 1 A flow chart of the steps of embedding and extracting watermarks from human motion capture data according to the present invention;

[0078] Figure 2 is a flow chart of the watermark embedding method of the present invention;

[0079] Figure 3 is a flow chart of the watermark extraction method of the present invention;

[0080] Figure 4 A schematic diagram of updating a single frame node according to an embodiment of the present invention;

[0081] Figure 5 This is a visual comparison diagram before and after the watermark is embedded in the embodiment of the present invention; the left side is the effect diagram before the watermark is embedded, and the right side is the effect diagram after the watermark is embedded;

[0082] Figure 6 This is a visual comparison diagram before and after the watermark is embedded in the embodiment of the present invention; wherein the left side is the effect diagram before the watermark is embedded, and the right side is the effect diagram after the watermark is embedded. DETAILED DESCRIPTION

[0083] In order to make the above-mentioned purpose, features and advantages of the present invention more obvious and easy to understand, the specific implementation mode of the present invention is described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below. The technical features in each embodiment of the present invention can be combined accordingly without conflicting with each other.

[0084] In the description of the present invention, it should be understood that the terms "first" and "second" are only used for the purpose of distinguishing descriptions, and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features.

[0085] Motion capture data refers to the time data sequence obtained by collecting sample key nodes through sensors, which is often used in the production of animation and game characters to achieve more realistic character action display. Therefore, the protection of motion capture data is very necessary. Motion capture data is often stored in the .fbx file format, which mainly contains the topological structure of the node. The data of each node is a time series frame, and the data of each key frame is saved in the form of three basic transformations: scaling, rotation, and offset, and there are three components of x, y, and z. The present invention proposes a watermark embedding and extraction method for human motion capture data, including two parts of embedding and extraction, so as to achieve the protection of motion capture data, and has the ability to resist attacks such as scaling, rotation, translation, and cropping.

[0086] like Figure 1 As shown, in a preferred implementation of the present invention, the watermark embedding method for human motion capture data includes the following steps AS1 to AS6. The specific implementation process is described in detail below.

[0087] AS1. Obtain the original motion capture data file, read the original motion capture data from the original motion capture data file, the original motion capture data can be divided into a series of original single-frame directed graphs in the time dimension, initialize the original single-frame directed graph to obtain the initialized single-frame undirected graph, and use the initialized single-frame undirected graph as the first undirected graph.

[0088] It should be noted that, in step AS1 of the present invention, the format of the original motion capture data file is a .fbx file, and the specific process of step AS1 is as follows:

[0089] AS11. For each single-frame node data in the original single-frame directed graph in space, the scaling transformation data therein is converted into a first scaling transformation matrix, wherein the first scaling transformation data is a three-dimensional vector, and the three components of the three-dimensional vector corresponding to the first scaling transformation data represent the scaling factors on the x, y, and z axes respectively. The first scaling transformation matrix of the i-th single-frame node of the t-th frame original single-frame directed graph is The form is:

[0090]

[0091] in, Represents the first scaling transformation matrix A row and column of parameters are the scaling factors on the x-axis; Represents the first scaling transformation matrix The two rows and two columns of the parameter are the scaling factors on the y-axis; Represents the first scaling transformation matrix The three rows and three columns of parameters are the scaling factors on the z-axis.

[0092] AS12. For each single-frame node data in the original single-frame directed graph in space, the rotation transformation data therein is converted into a first rotation transformation matrix, wherein the first rotation transformation data is a four-dimensional vector Among the four components of the four-dimensional vector corresponding to the first rotation transformation data, Represents the real part of the rotation transformation data of the i-th single-frame node of the t-th frame original single-frame directed graph, Represents the imaginary component of the rotation transformation data of the ith single-frame node of the t-th frame original single-frame directed graph along the x-axis, Represents the imaginary component of the rotation transformation data of the ith single-frame node of the tth frame original single-frame directed graph along the y-axis, Represents the imaginary component of the rotation transformation data of the ith single-frame node of the t-th frame original single-frame directed graph along the z-axis, and the first rotation transformation matrix of the ith single-frame node of the t-th frame original single-frame directed graph The form is:

[0093]

[0094] in:

[0095]

[0096]

[0097] In the formula, Represents the first rotation transformation matrix A row and column of parameters, Represents the first rotation transformation matrix One row and two columns of parameters, Represents the first rotation transformation matrix One row and three columns of parameters, Represents the first rotation transformation matrix The two rows and one column parameters of Represents the first rotation transformation matrix The two-row and two-column parameters of Represents the first rotation transformation matrix The two rows and three columns of parameters; Represents the first rotation transformation matrix The three rows and one column parameters, Represents the first rotation transformation matrix The three rows and two columns of parameters, Represents the first rotation transformation matrix The three rows and three columns of parameters.

[0098] It should be noted that in step AS12 of the present invention, for the four-dimensional vector The relationship between the traditional axis vector determining the rotation direction and the angle determining the rotation magnitude is as follows:

[0099]

[0100] In the formula, Indicates the rotation angle of the ith single-frame node of the tth frame original single-frame directed graph, Represents the x-axis component of the rotation axis of the ith single-frame node of the t-th frame original single-frame directed graph, It represents the y-axis component of the rotation axis of the i-th single-frame node of the original single-frame directed graph of the t-th frame. Represents the z-axis component of the rotation axis vector of the i-th single-frame node in the t-th frame original single-frame directed graph.

[0101] AS13. For each single-frame node data in the original single-frame directed graph in space, the translation transformation data therein is converted into a first translation transformation matrix, wherein the first translation transformation data is a three-dimensional vector, and the three components of the three-dimensional vector corresponding to the first translation transformation data respectively represent the offsets on the x, y, and z axes. The first translation transformation matrix of the i-th single-frame node of the t-th frame original single-frame directed graph is The form is:

[0102]

[0103] In the formula, Represents the first translation transformation matrix The four-column parameter of the row is the x-axis offset of the translation transformation data of the ith single-frame node of the t-th original single-frame directed graph; Represents the first translation transformation matrix The two-row and four-column parameters are the offset on the y-axis of the translation transformation data of the i-th single-frame node of the t-th frame original single-frame directed graph; Represents the first translation transformation matrix The three rows and four columns of parameters are the offset on the z-axis of the translation transformation data of the i-th single-frame node of the t-th frame original single-frame directed graph.

[0104] AS14. Calculate the local composite matrix of each single-frame node in the original single-frame directed graph; where the local composite matrix of the i-th single-frame node in the t-th frame original single-frame directed graph is expressed as

[0105] AS15. Multiply the local composite matrices of all nodes on the path from the root node to the single-frame node in the original single-frame directed graph in turn to obtain the global composite matrix of each single-frame node. The global composite matrix of the i-th single-frame node in the t-th original single-frame directed graph is expressed as

[0106] AS16. After converting the coordinates of the single-frame nodes in the local coordinate system of the original single-frame directed graph, the world coordinates of each single-frame node in the original single-frame directed graph are calculated; among which, the world coordinates of the i-th single-frame node in the t-th frame original single-frame directed graph are in They respectively represent the components of the x, y, and z axes in the world coordinates of the ith single-frame node of the t-th frame original single-frame directed graph, and T represents transpose.

[0107] It should be noted that in step AS16 of the present invention, the coordinates of the single-frame node in the original single-frame directed graph in the local coordinate system are (0,0,0). After conversion, the coordinates of the single-frame node in the local coordinate system become a four-dimensional vector (0,0,0,1). This step is to match the coordinates of the single-frame node with the dimensions of the global composite matrix.

[0108] AS17. Traverse the original single-frame directed graph, perform AS12-AS16 processing on each single-frame node in the original single-frame directed graph, obtain the world coordinate data of each single-frame node in the original single-frame directed graph, and change each directed edge of the original single-frame directed graph into an undirected edge, and finally obtain the first undirected graph.

[0109] AS2. Calculate the centroid of the first undirected graph.

[0110] In the present invention, the specific method of calculating the centroid of the first undirected graph of the t-th frame is as follows:

[0111]

[0112]

[0113] In the formula, Represents the x-axis component of the coordinates of the center of gravity of the first undirected graph in the tth frame, Represents the y-axis component of the coordinates of the center of gravity of the first undirected graph in the tth frame, Represents the Z-axis component of the coordinates of the center of gravity of the first undirected graph in the tth frame, N in Represents the number of single-frame nodes in the first undirected graph.

[0114] AS3. Traverse the first undirected graph and convert it into a first directed graph. At the same time, the layer number of the single-frame node in the first undirected graph in the layer-order traversal is the order of the single-frame node. Each single-frame node and the order of each single-frame node are recorded in the first mapping table.

[0115] It should be noted that in step AS3 of the present invention, the first mapping table stores each single-frame node and the order of each single-frame node. The specific process of step AS3 is as follows:

[0116] AS31. Construct an empty first mapping table, traverse the first undirected graph, calculate the distance between each single-frame node and the centroid in the first undirected graph, and take the single-frame node with the smallest distance as the only 0-order single-frame node.

[0117] AS32. Take the 0-order single-frame node as the starting node of the traversal, perform a level-order traversal on the first undirected graph, take the level number of the single-frame node in the level-order traversal in the first undirected graph as the order of the single-frame node, and change the undirected edges in the first undirected graph into directed edges, the direction of the directed edges is from the single-frame node with a lower order to the single-frame node with a higher order, and record each single-frame node and the order of each single-frame node in the first mapping table.

[0118] At this point, the first mapping table is completely constructed, and the conversion from the first undirected graph to the first directed graph is completed.

[0119] AS4. Traverse the first directed graph, embed watermark information in the angles between the edges of the first directed graph, update the coordinates of the single-frame nodes according to the angle change, and record the single-frame nodes with updated coordinates and their changed coordinates in the node coordinate update mapping table.

[0120] It should be noted that in step AS4 of the present invention, the node coordinate update mapping table stores each single-frame node, whether the single-frame node data needs to be updated, and the updated data of the single-frame node. The specific steps of step AS4 are as follows:

[0121] AS41. Initialize an initially empty queue for updating the coordinates of single-frame nodes to obtain a first queue, and put the root node of the first directed graph into the first queue.

[0122] AS42. Take a single frame node from the first queue as the watermark node, and calculate the angles of the incoming edge and other outgoing edges of the watermark node; the angle between the incoming edge of the j-th watermark node and the k-th outgoing edge of the j-th watermark node is expressed in radians as

[0123] It should be noted that in step AS42 of the present invention, the incoming edge of a single-frame node is a directed edge pointing to the single-frame node, and the outgoing edge of a single-frame node is a directed edge from the single-frame node to other single-frame nodes. The outgoing edges of the watermark node are processed in the order of the edge size from small to large.

[0124] AS43. Angle between the incoming edge of the jth watermark node and the kth outgoing edge of the jth watermark node Embed a bit of watermark information in and get the angle of embedded watermark information In the plane formed by the incoming edge of the watermark node and the kth outgoing edge of the watermark node, according to the angle of the embedded watermark information Get the outgoing edge of the embedded watermark information, update the coordinates of the kth outgoing edge of the embedded watermark node pointing to the single-frame node, put the single-frame node with updated coordinates into the first queue, and record the single-frame node with updated coordinates and the changed coordinates of the single-frame node with updated coordinates in the node coordinate update mapping table.

[0125] It should be noted that in step AS43 of the present invention, the update reference of the outgoing edge of the watermark node and the single frame node pointed to by the outgoing edge is Figure 4 . Figure 4 In the figure, the blue point is the watermark node, the blue edge is the incoming edge of the watermark node, and the red edge is the kth outgoing edge of the watermark node. After updating the outgoing edge, the updated outgoing edge is Figure 4 For the orange edge in the middle, the coordinates of the single-frame node pointed to by the outgoing edge also change, that is, the updated single-frame node coordinates are generated.

[0126] In addition, in step AS43, the strategy for embedding watermark information is to embed according to the odd-even rule (if the watermark is 1, the specific bit of the data is changed to an even number, and if the watermark is 0, the specific bit of the data is changed to an odd number). In this embodiment, it is embedded in the second decimal place.

[0127] AS44. Execute AS42-AS43 in a loop until the specified number of bits of embedded watermark is reached.

[0128] AS5. Update the translation transformation data of the corresponding single-frame node in the original motion capture data according to the node coordinate update mapping table.

[0129] It should be noted that in the AS5 step of the present invention, for the single frame node that needs to be updated, Keep single frame nodes No change, only change to satisfy the updated coordinates.

[0130] AS6. Take a preset number (Nl frames) of continuous original single-frame directed graphs as a group of original single-frame directed graphs. After embedding watermark information into a group of original single-frame directed graphs, embed watermark information into a new group of original single-frame directed graphs after a certain interval of frames (Ninterval frames), until all the original single-frame directed graphs in the original motion capture data file are processed, and the motion capture data file with embedded watermark is obtained and saved.

[0131] It should be noted that in step AS6 of the present invention, the watermark information embedded in the original single-frame directed graph of consecutive Nl frames consists of three parts, namely, a mark watermark, watermark data information and a Hamming check bit. In this embodiment, Nl is 3, Ninterval is 100, and 48-bit watermark information is embedded in the three consecutive original single-frame directed graphs. The first 10 bits of the 48-bit watermark information are the mark watermark (without real information, only when the mark watermark comparison is successful, it represents that this frame is the starting frame of three consecutive frames), the middle 32 bits are the watermark data information, and the last 6 bits are the Hamming check bits.

[0132] It should be noted that, in the present invention, after obtaining the motion capture data file embedded with the watermark, different types of attacks are applied to the motion capture data file embedded with the watermark, and each type of attack corresponds to an attacked motion capture data file, and finally multiple attacked motion capture data files are obtained. In this embodiment, the types of attacks applied are scaling, rotation, translation, and cropping attacks.

[0133] like Figure 2 As shown, in a preferred implementation of the present invention, the watermark extraction method for human motion capture data includes the following steps BS1 to BS5. The specific implementation process is described in detail below.

[0134] BS1. Obtain a watermarked motion capture data file obtained by a watermark embedding method for human motion capture data in the above embodiment, read the watermarked motion capture data from the watermarked motion capture data file, the watermarked motion capture data can be divided into a series of watermarked single-frame directed graphs in the time dimension, initialize the watermarked single-frame directed graph to obtain an initialized watermarked single-frame undirected graph, and use the initialized watermarked single-frame undirected graph as the second undirected graph.

[0135] It should be noted that in step BS1 of the present invention, the format of the motion capture data file after embedding the watermark is a .fbx file. The specific process of step BS1 is as follows:

[0136] BS11. For each single-frame node data in the space of the single-frame directed graph embedded with watermark, the scaling transformation data therein is converted into a second scaling transformation matrix, wherein the second scaling transformation data is a three-dimensional vector, and the three components of the three-dimensional vector corresponding to the second scaling transformation data respectively represent the scaling factors on the three axes of x, y, and z. The second scaling transformation matrix of the i-th single-frame node of the single-frame directed graph embedded with watermark in the t-th frame is The form is:

[0137]

[0138] in, Represents the second scaling transformation matrix A row and column of parameters are the scaling factors on the x-axis; Representation Matrix The two rows and two columns of the parameter are the scaling factors on the y-axis; Represents the second scaling transformation matrix The three rows and three columns of parameters are the scaling factors on the z-axis.

[0139] BS12. For each single-frame node data in the space of the single-frame directed graph embedded with the watermark, the rotation transformation data therein is converted into a second rotation transformation matrix, wherein the second rotation transformation data is a four-dimensional vector Among the four components of the four-dimensional vector corresponding to the second rotation transformation data, Represents the real part of the rotation transformation data of the ith single-frame node of the single-frame directed graph embedded with the watermark in the tth frame, Represents the imaginary component of the rotation transformation data of the ith single-frame node of the single-frame directed graph embedded with the watermark in the tth frame along the x-axis, Represents the imaginary component of the rotation transformation data of the ith single-frame node of the single-frame directed graph embedded with the watermark in the tth frame along the y-axis, The imaginary component of the rotation transformation data of the ith single-frame node of the single-frame directed graph embedded with the watermark in the t-th frame along the z-axis, and the second rotation transformation matrix of the ith single-frame node of the single-frame directed graph embedded with the watermark in the t-th frame The form is:

[0140]

[0141] in:

[0142]

[0143] In the formula, Represents the second rotation transformation matrix A row and column of parameters, Represents the second rotation transformation matrix One row and two columns of parameters, Represents the second rotation transformation matrix One row and three columns of parameters, Represents the second rotation transformation matrix The two rows and one column parameters of Represents the second rotation transformation matrix The two-row and two-column parameters of Represents the second rotation transformation matrix The two rows and three columns of parameters; Represents the second rotation transformation matrix The three rows and one column parameters, Represents the second rotation transformation matrix The three rows and two columns of parameters, Represents the second rotation transformation matrix The three rows and three columns of parameters.

[0144] It should be noted that in step BS13 of the present invention, for the four-dimensional vector The relationship between the traditional axis vector determining the rotation direction and the angle determining the rotation magnitude is as follows:

[0145]

[0146]

[0147] In the formula, Indicates the rotation angle of the ith single-frame node of the single-frame directed graph with the tth frame embedded with the watermark, The x-axis component of the rotation axis of the ith single-frame node of the single-frame directed graph with the t-th frame watermark embedded in it, The y-axis component of the rotation axis of the ith single-frame node of the single-frame directed graph with the t-th frame watermark embedded in it, Represents the z-axis component of the rotation axis vector of the i-th single-frame node in the single-frame directed graph with the t-th frame embedded with the watermark.

[0148] BS13. For each single-frame node data in the single-frame directed graph embedded with watermark in space, the translation transformation data therein is converted into a second translation transformation matrix, wherein the second translation transformation data is a three-dimensional vector, and the three components of the three-dimensional vector corresponding to the second translation transformation data respectively represent the offsets on the three axes of x, y, and z. The second translation transformation matrix of the i-th single-frame node of the single-frame directed graph embedded with watermark in the t-th frame is The form is:

[0149]

[0150] In the formula, Represents the second translation transformation matrix The four-column parameter of the single-frame directed graph with one row and four columns is the offset on the x-axis of the translation transformation data of the ith single-frame node of the single-frame watermark embedded in the t-th frame; Represents the second translation transformation matrix The two rows and four columns of the parameter are the offset on the y-axis of the translation transformation data of the i-th single-frame node of the single-frame directed graph of the t-th frame embedded with the watermark; Represents the second translation transformation matrix The three rows and four columns of parameters are the offset on the z-axis of the translation transformation data of the i-th single-frame node of the single-frame directed graph where the t-th frame is embedded with the watermark.

[0151] BS14. Calculate the local composite matrix of each single-frame node in the single-frame directed graph embedded with watermark; where the local composite matrix of the i-th single-frame node in the single-frame directed graph embedded with watermark in the t-th frame is expressed as

[0152] BS15. Multiply the local composite matrices of all nodes on the path from the root node to the single-frame node in the watermarked single-frame directed graph in turn to obtain the global composite matrix of each single-frame node. The global composite matrix of the i-th single-frame node in the t-th frame watermarked single-frame directed graph is expressed as

[0153] BS16. After converting the coordinates of the single-frame nodes in the single-frame directed graph embedded with watermark in the local coordinate system, the world coordinates of each single-frame node in the single-frame directed graph embedded with watermark are calculated; among which, the world coordinates of the i-th single-frame node in the single-frame directed graph embedded with watermark in the t-th frame are in They respectively represent the components of the x, y, and z axis directions in the world coordinates of the ith single-frame node of the single-frame directed graph with the t-th frame embedded with the watermark, and T represents transposition.

[0154] It should be noted that in step BS16 of the present invention, the coordinates of the single-frame node in the single-frame directed graph embedded with the watermark in the local coordinate system are (0,0,0). After conversion, the coordinates of the single-frame node in the local coordinate system become a four-dimensional vector (0,0,0,1). This step is to match the coordinates of the single-frame node with the dimensions of the global composite matrix.

[0155] BS17. Traverse the single-frame directed graph embedded with watermark, perform BS12-BS16 processing on each single-frame node in the single-frame directed graph embedded with watermark, obtain the world coordinate data of each single-frame node in the single-frame directed graph embedded with watermark, and change each directed edge of the single-frame directed graph embedded with watermark into an undirected edge, and finally obtain the second undirected graph.

[0156] BS2. Calculate the centroid of the second undirected graph.

[0157] In the present invention, the specific method of calculating the centroid of the second undirected graph of the t-th frame is as follows:

[0158]

[0159] In the formula, Represents the x-axis component of the coordinates of the center of gravity of the second undirected graph in the tth frame, Represents the y-axis component of the coordinates of the center of gravity of the second undirected graph in the t-th frame, Represents the Z-axis component of the coordinates of the center of gravity of the second undirected graph in the tth frame, N out Represents the number of single-frame nodes in the second undirected graph.

[0160] BS3. Traverse the second undirected graph and convert it into a second directed graph. At the same time, the layer number of the single-frame node in the second undirected graph in the layer-order traversal is the order of the single-frame node. Each single-frame node and the order of each single-frame node are recorded in the second mapping table.

[0161] It should be noted that in step BS3 of the present invention, the second mapping table stores each single-frame node and the order of each single-frame node. The specific process of step BS3 is as follows:

[0162] BS31. Construct an empty second mapping table, traverse the second undirected graph, calculate the distance between each single-frame node and the centroid in the second undirected graph, and take the single-frame node with the smallest distance as the only 0-order single-frame node.

[0163] BS32. Take the 0-order single-frame node as the starting node of the traversal, perform a level-order traversal on the second undirected graph, take the level number of the single-frame node in the level-order traversal in the second undirected graph as the order of the single-frame node, and change the undirected edges in the second undirected graph into directed edges, the direction of the directed edges is from the single-frame node with a lower order to the single-frame node with a higher order, and record each single-frame node and the order of each single-frame node in the second mapping table.

[0164] At this point, the second mapping table is completely constructed, and the conversion from the second undirected graph to the second directed graph is completed.

[0165] BS4. Perform a layer-by-layer traversal on the second directed graph, use each traversed single-frame node in the second directed graph as a watermark extraction node, calculate the angle between the input edge of the watermark extraction node and other output edges, and extract watermark information from it until the specified number of bits of the extracted watermark is reached.

[0166] It should be noted that in step BS4 of the present invention, the only directed edge of the directed edges of the single-frame node that points to the single-frame node is defined as the incoming edge of the single-frame node, and the directed edges from the single-frame node to other single-frame nodes are defined as the outgoing edges of the single-frame node. The adjacent single-frame nodes of the single-frame node are obtained in order from the single-frame nodes, and the order is determined from small to large according to the distance between the single-frame node and its adjacent single-frame nodes. The angles of the incoming and outgoing edges are represented by radians, and the rule for extracting the watermark from the angle is the odd-even rule (if the number is even, the watermark information 1 is extracted, and if the number is odd, the watermark information 0 is extracted). In the present embodiment BS4, the watermark is extracted from the second decimal place of the angle.

[0167] BS5. Take a preset number (Nl frames) of consecutive second directed graphs as a group of second directed graphs, and extract watermark information from a group of second directed graphs. If the watermark information extracted from a group of second directed graphs is correctly positioned, determine whether the watermark information extracted from a group of second directed graphs is incorrect based on the check bit: if it is correct, the watermark extraction is successful; if it is incorrect, extract watermark information from a new group of second directed graphs after a certain interval of frames (Ninterval frames) until the extracted watermark information is correct; if the watermark information extracted from a group of second directed graphs is not correctly positioned, move a group of second directed graphs backward by one frame and then extract watermark information from them until the extracted watermark information is correctly positioned.

[0168] In this embodiment, watermarks are embedded into two motion capture data files respectively. The results are as follows: Figure 5 and Figure 6 shown. Figure 5 This is a visual comparison chart obtained by embedding a watermark into a motion capture data file. Figure 5 The left side shows the effect before embedding the watermark. Figure 5 The right side shows the effect after embedding the watermark. Figure 6 This is a visual comparison chart obtained by embedding a watermark in another motion capture data file. Figure 6 The left side shows the effect before embedding the watermark. Figure 6 The right side shows the effect after embedding the watermark. Table 1 shows the test results of the motion capture data watermark after the attack.

[0169] Table 1 Motion capture data watermark test results

[0170] File Type Attack Operation total Number of successes Success rate fbx none 205 205 100% fbx Zoom 205 205 100% fbx Rotation 205 205 100% fbx Pan 205 205 100% fbx Cropping 205 191 93.1%

[0171] The above-described embodiment is only a preferred solution of the present invention, but it is not intended to limit the present invention. A person skilled in the relevant technical field may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, any technical solution obtained by equivalent replacement or equivalent transformation falls within the protection scope of the present invention.

Claims

1. A watermark embedding method for human motion capture data, It is characterized in that The following steps are involved: AS1. Obtaining an original motion capture data file, reading the original motion capture data from the original motion capture data file, the original motion capture data can be divided into a series of original single-frame directed graphs in the time dimension, initializing the original single-frame directed graph to obtain an initialized single-frame undirected graph, and using the initialized single-frame undirected graph as the first undirected graph; AS2. Calculate the centroid of the first undirected graph; AS3. Traverse the first undirected graph and convert it into a first directed graph. At the same time, the number of layers in the layer-order traversal of the single-frame node in the first undirected graph is the order of the single-frame node. Each single-frame node and the order of each single-frame node are recorded in the first mapping table. AS4. Traverse the first directed graph, embed watermark information in the angles between the edges of the first directed graph, update the coordinates of the single-frame nodes according to the angle change, and record the single-frame nodes with updated coordinates and their changed coordinates in the node coordinate update mapping table; AS5. Update the translation transformation data of the corresponding single-frame node in the original motion capture data according to the node coordinate update mapping table; AS6. Take a preset number of consecutive original single-frame directed graphs as a group of original single-frame directed graphs, embed watermark information into a group of original single-frame directed graphs, and then embed watermark information into a new group of original single-frame directed graphs after a certain interval, until all the original single-frame directed graphs in the original motion capture data file are processed, and the motion capture data file with embedded watermark is obtained and saved; wherein, the watermark information embedded in the original single-frame directed graph consists of three parts, namely, the marker watermark, the watermark data information and the Hamming check bit.

2. A watermark embedding method for human motion capture data according to claim 1, It is characterized in that The specific process of step AS1 is as follows: AS11. For each single-frame node data in the original single-frame directed graph in space, the scaling transformation data therein is converted into a first scaling transformation matrix, wherein the first scaling transformation data is a three-dimensional vector, and the three components in the three-dimensional vector corresponding to the first scaling transformation data respectively represent the scaling factors on the x, y, and z axes. The first scaling transformation matrix of the i-th single-frame node of the t-th frame original single-frame directed graph is AS12. For each single-frame node data in the original single-frame directed graph in space, the rotation transformation data therein is converted into a first rotation transformation matrix, wherein the first rotation transformation data is a four-dimensional vector Among the four components of the four-dimensional vector corresponding to the first rotation transformation data, Represents the real part of the rotation transformation data of the i-th single-frame node of the t-th frame original single-frame directed graph, Represents the imaginary component of the rotation transformation data of the ith single-frame node of the t-th frame original single-frame directed graph along the x-axis, Represents the imaginary component of the rotation transformation data of the ith single-frame node of the tth frame original single-frame directed graph along the y-axis, It represents the imaginary component of the rotation transformation data of the ith single-frame node of the t-th frame original single-frame directed graph along the z-axis. The first rotation transformation matrix of the ith single-frame node of the t-th frame original single-frame directed graph is AS13. For each single-frame node data in the original single-frame directed graph in space, the translation transformation data therein is converted into a first translation transformation matrix, wherein the first translation transformation data is a three-dimensional vector, and the three components of the three-dimensional vector corresponding to the first translation transformation data respectively represent the offsets on the x, y, and z axes. The first translation transformation matrix of the i-th single-frame node of the t-th frame original single-frame directed graph is AS14. Calculate the local composite matrix of each single-frame node in the original single-frame directed graph; where the local composite matrix of the i-th single-frame node in the t-th frame original single-frame directed graph is expressed as AS15. Multiply the local composite matrices of all nodes on the path from the root node to the single-frame node in the original single-frame directed graph in turn to obtain the global composite matrix of each single-frame node; AS16. After converting the coordinates of the single-frame nodes in the local coordinate system of the original single-frame directed graph, the world coordinates of each single-frame node in the original single-frame directed graph are calculated; among which, the world coordinates of the i-th single-frame node in the t-th frame original single-frame directed graph are In the formula, They respectively represent the components of the x, y, and z axes in the world coordinates of the ith single-frame node of the t-th frame original single-frame directed graph; T represents transposition; Represents the global composite matrix of the ith single-frame node of the tth frame original single-frame directed graph; AS17. Traverse the original single-frame directed graph, perform AS12-AS16 processing on each single-frame node in the original single-frame directed graph, obtain the world coordinate data of each single-frame node in the original single-frame directed graph, and change each directed edge of the original single-frame directed graph into an undirected edge, and finally obtain the first undirected graph.

3. A watermark embedding method for human motion capture data according to claim 1, It is characterized in that The specific process of step AS3 is as follows: AS31. Construct an empty first mapping table, traverse the first undirected graph, calculate the distance between each single-frame node and the centroid in the first undirected graph, and take the single-frame node with the smallest distance as the only 0-order single-frame node; AS32. Take the 0-order single-frame node as the starting node of the traversal, perform a level-order traversal on the first undirected graph, take the level number of the single-frame node in the level-order traversal in the first undirected graph as the order of the single-frame node, and change the undirected edges in the first undirected graph into directed edges, the direction of the directed edges is from the single-frame node with a lower order to the single-frame node with a higher order, and record each single-frame node and the order of each single-frame node in the first mapping table.

4. A watermark embedding method for human motion capture data according to claim 1, It is characterized in that The specific process of step AS4 is as follows: AS41. Initialize an initially empty queue for updating the single-frame node coordinates to obtain a first queue, and put the root node of the first directed graph into the first queue; AS42. Take a single frame node from the first queue as the watermark node, and calculate the angles of the incoming edge and other outgoing edges of the watermark node; the angle between the incoming edge of the j-th watermark node and the k-th outgoing edge of the j-th watermark node is expressed in radians as AS43. Angle between the incoming edge of the jth watermark node and the kth outgoing edge of the jth watermark node Embed a bit of watermark information in and get the angle of embedded watermark information In the plane formed by the incoming edge of the watermark node and the kth outgoing edge of the watermark node, according to the angle of the embedded watermark information Get the outgoing edge of the embedded watermark information, update the coordinates of the kth outgoing edge of the embedded watermark node pointing to the single-frame node, put the single-frame node with updated coordinates into the first queue, and record the single-frame node with updated coordinates and the changed coordinates of the single-frame node with updated coordinates in the node coordinate update mapping table; AS44. Execute AS42-AS43 in a loop until the specified number of bits of embedded watermark is reached.

5. A watermark embedding method for human motion capture data according to claim 1, It is characterized in that In step AS6, three consecutive frames of original single-frame directed graphs are taken as a group of original single-frame directed graphs, and 48 bits of watermark information are embedded in each group of original single-frame directed graphs. The first 10 bits of the watermark information are the mark watermark, the middle 32 bits are the watermark data information, and the last 6 bits are the Hamming check bits.

6. A watermark embedding method for human motion capture data according to claim 1, It is characterized in that After obtaining the motion capture data file embedded with the watermark, different types of attacks are applied to the motion capture data file embedded with the watermark, and each type of attack corresponds to an attacked motion capture data file, and finally multiple attacked motion capture data files are obtained.

7. A watermark embedding method for human motion capture data according to claim 6, It is characterized in that The types of attacks applied are scaling, rotation, translation, and cropping attacks.

8. A watermark extraction method for human motion capture data, It is characterized in that The following steps are involved: BS1. Obtain a watermarked motion capture data file obtained by a watermark embedding method for human motion capture data according to any one of claims 1 to 7, read the watermarked motion capture data from the watermarked motion capture data file, the watermarked motion capture data can be divided into a series of watermarked single-frame directed graphs in the time dimension, initialize the watermarked single-frame directed graph to obtain an initialized watermarked single-frame undirected graph, and use the initialized watermarked single-frame undirected graph as the second undirected graph; BS2. Calculate the centroid of the second undirected graph; BS3. Traverse the second undirected graph and convert it into a second directed graph. At the same time, the layer number of the single-frame node in the second undirected graph in the layer order traversal is the order of the single-frame node, and each single-frame node and the order of each single-frame node are recorded in the second mapping table; BS4. Perform layer-order traversal on the second directed graph, use each traversed single-frame node in the second directed graph as a watermark extraction node, calculate the angle between the incoming edge of the watermark extraction node and other outgoing edges, and extract watermark information from it, until the specified number of bits of the extracted watermark is reached; BS5. Take a preset number of consecutive second directed graphs as a group of second directed graphs, extract watermark information from the group of second directed graphs, if the watermark information extracted from the group of second directed graphs is correctly positioned, judge whether the watermark information extracted from the group of second directed graphs is incorrect based on the check bit: if it is correct, the watermark extraction is successful; if it is incorrect, extract watermark information from a new group of second directed graphs after a certain interval of frames until the extracted watermark information is correct; if the watermark information extracted from the group of second directed graphs is not correctly positioned, move the group of second directed graphs back one frame and then extract watermark information from them until the extracted watermark information is correctly positioned.

9. A method for extracting watermarks from human motion capture data according to claim 8, It is characterized in that The specific process of step BS1 is as follows: BS11. For each single-frame node data in the space of the single-frame directed graph embedded with watermark, the scaling transformation data therein is converted into a second scaling transformation matrix, wherein the second scaling transformation data is a three-dimensional vector, and the three components of the three-dimensional vector corresponding to the second scaling transformation data represent the scaling factors on the x, y, and z axes respectively. The second scaling transformation matrix of the i-th single-frame node of the single-frame directed graph embedded with watermark in the t-th frame is BS12. For each single-frame node data in the space of the single-frame directed graph embedded with the watermark, the rotation transformation data therein is converted into a second rotation transformation matrix, wherein the second rotation transformation data is a four-dimensional vector Among the four components of the four-dimensional vector corresponding to the second rotation transformation data, Represents the real part of the rotation transformation data of the ith single-frame node of the single-frame directed graph embedded with the watermark in the tth frame, Represents the imaginary component of the rotation transformation data of the ith single-frame node of the single-frame directed graph embedded with the watermark in the tth frame along the x-axis, Represents the imaginary component of the rotation transformation data of the ith single-frame node of the single-frame directed graph embedded with the watermark in the tth frame along the y-axis, It represents the imaginary component of the rotation transformation data of the ith single frame node of the single frame directed graph embedded with watermark in the tth frame along the z-axis. The second rotation transformation matrix of the ith single frame node of the single frame directed graph embedded with watermark in the tth frame is BS13. For each single-frame node data in the single-frame directed graph embedded with watermark in space, the translation transformation data therein is converted into a second translation transformation matrix, wherein the second translation transformation data is a three-dimensional vector, and the three components of the three-dimensional vector corresponding to the second translation transformation data respectively represent the offsets on the three axes of x, y, and z. The second translation transformation matrix of the i-th single-frame node in the single-frame directed graph embedded with watermark in the t-th frame is BS14. Calculate the local composite matrix of each single-frame node in the single-frame directed graph embedded with watermark; where the local composite matrix of the i-th single-frame node in the single-frame directed graph embedded with watermark in the t-th frame is expressed as BS15. Multiply the local composite matrices of all nodes on the path from the root node to the single-frame node itself in the single-frame directed graph embedded with the watermark in turn to obtain the global composite matrix of each single-frame node; BS16. After converting the coordinates of the single-frame nodes in the single-frame directed graph embedded with watermark in the local coordinate system, the world coordinates of each single-frame node in the single-frame directed graph embedded with watermark are calculated; among which, the world coordinates of the i-th single-frame node in the single-frame directed graph embedded with watermark in the t-th frame are in They respectively represent the components of the x, y, and z axes in the world coordinates of the ith single-frame node of the single-frame directed graph embedded with the watermark in the tth frame; T represents transposition; The global composite matrix representing the i-th single-frame node of the single-frame directed graph of the t-th frame embedded with watermark; BS17. Traverse the single-frame directed graph embedded with watermark, perform BS12-BS16 processing on each single-frame node in the single-frame directed graph embedded with watermark, obtain the world coordinate data of each single-frame node in the single-frame directed graph embedded with watermark, and change each directed edge of the single-frame directed graph embedded with watermark into an undirected edge, and finally obtain the second undirected graph.

10. A method for extracting watermarks from human motion capture data according to claim 8, It is characterized in that The specific process of step BS3 is as follows: BS31. Construct an empty second mapping table, traverse the second undirected graph, calculate the distance between each single-frame node and the centroid in the second undirected graph, and take the single-frame node with the smallest distance as the only 0-order single-frame node. BS32. Take the 0-order single-frame node as the starting node of the traversal, perform a level-order traversal on the second undirected graph, take the level number of the single-frame node in the level-order traversal in the second undirected graph as the order of the single-frame node, and change the undirected edges in the second undirected graph into directed edges, the direction of the directed edges is from the single-frame node with a lower order to the single-frame node with a higher order, and record each single-frame node and the order of each single-frame node in the second mapping table.

Citation Information

Cited By

  • Digital watermark embedding method and device, electronic equipment and storage medium

    CN122179633A