Video ownership proving method

By adopting a multi-user video ownership proof method in cloud storage and using random cropping and image mixing to generate challenge tags and ownership evidence, the security problem of video deduplication solutions in cloud storage is solved, and efficient video data management and Security verification.

CN118555074APending Publication Date: 2024-08-27ROCKET FORCE UNIV OF ENG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410588899.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-13
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

The existing technology has security issues in the video deduplication solution in cloud storage, and it requires a large amount of calculation and consumes hardware resources, making it difficult to effectively prevent attackers from obtaining video data through repetitive detection.

Method used

Using a duplicate video ownership proof method for multiple users, the server divides video files, randomly crops and mixes images to generate challenge tags. The client generates ownership evidence based on a random parameter set, and the server performs distance verification to prove ownership, ensuring Safety and efficiency.

Benefits of technology

It effectively reduces the amount of computer calculations, saves hardware resources, improves efficiency, ensures the security of video operations and the clarity of ownership certificates, and is suitable for popularization and application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555074A
    Figure CN118555074A
Patent Text Reader

Abstract

A video ownership proving method belongs to the field of image data processing and is characterized by comprising a preparation stage, a challenge stage, a response stage and a verification stage. In the preparation stage, a server side divides a video file and groups and preprocesses obtained video frames to generate a random parameter set; in the challenge stage, the server side carries out random cutting and image mixing operation on the video frame to generate a challenge label; in the response stage, the client generates ownership certificates according to the random parameter set and the original video; in the verification stage, the server side carries out distance verification according to the challenge tag and the ownership certificate. Through a method of indirectly extracting video frames and cutting the video frames, the calculation amount of a computer can be effectively reduced, so that hardware resources are effectively saved, and the efficiency is improved; and meanwhile, the server and the client both use the random parameter set to cut the video frame, so that the security of video operation can be effectively ensured, the ownership certification process is clear and reliable, and the method is suitable for popularization and application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of image data processing, and in particular relates to a method for proving ownership of duplicate videos for multiple users. Background Art

[0002] At present, in order to solve the problems of redundant data resources and waste of network bandwidth on the cloud server side, the technical concept of "deduplication" has gradually become a hot topic for many scientific researchers. The core idea of ​​this technology is that the server side only retains one copy of the original file. If many clients want to store the same file on the cloud server, the server will first search it. If there are identical files, the client does not have to upload the file to the server. This method is called "client cross deduplication deletion scheme."

[0003] Security issues also need to be considered when designing a video deduplication solution. This is one of the key issues that need to be addressed in the promotion and popularization of cloud computing, and it is also an aspect that users consider first when choosing a cloud server. In recent years, there have been many cloud server failures: such as system downtime, data loss, and users being unable to access resources due to network problems. These have caused serious damage to users and also affected the reputation of cloud service providers. Therefore, when deleting video duplicate data, data security issues cannot be ignored.

[0004] Garv et al. proposed a technology that uses a combination of PCA and DWT to encrypt videos to protect their ownership. By separating all RGB data of the video frame, the video frames in different states are subjected to discrete wavelet transform to obtain the eigenvalues ​​of the video frame; by normalizing the email address data of the user login, new eigenvalues ​​are generated in combination with the original eigenvalues; finally, watermarked frames are constructed and the video frames are processed one by one. However, the above-mentioned public method does not describe the specific process of the transmission file between the sender and the receiver, nor does it provide a method for comparing the similarity between the original video frame and the video frame with the watermark added. At the same time, when the amount of experimental data is large, the method involves the entire video frame in the calculation, which takes a long time and hardware resources. Summary of the invention

[0005] In order to solve the security problem of the above-mentioned video deduplication solution in cloud storage and ensure that attackers cannot easily obtain the entire video data only through duplication detection, the present invention provides a duplicate video ownership proof method for multiple users.

[0006] The video ownership certification method of the present invention includes a preparation stage, a challenge stage, a response stage and a verification stage; In the preparation stage, the server divides the video file, groups and preprocesses the obtained video frames, generates a random parameter set, and sends the random parameter set to the client; In the challenge stage, the server performs two random cropping and image mixing operations on the video frame to generate a challenge tag; In the response phase, the client generates ownership evidence based on the random parameter set and the original video file, and sends it to the server; In the verification phase, the server performs distance verification based on the challenge tag and ownership evidence, proves ownership after verification, and authorizes the user.

[0007] Furthermore, in the video ownership certification method of the present invention, the preparation stage specifically includes the following steps: 1) the server divides each video file V' into N parts evenly; if the parts cannot be divided evenly, the image frame is placed in the last part; 2) Grayscale and center crop the obtained video frames to obtain a video frame set I' gray , where the video frame width is w and the height is h; 3) The server generates a random parameter set based on the preset fixed block size: (a 1 ,b 1 ,c 1 ,d 1 ,p 1 ,q 1 ),(a 2 ,b 2 ,c 2 ,d 2 ,p 2 ,q 2 ),...,(a N ,b N ,c N ,d N ,p N ,q N ); Among them, (a i ,b i ),(c i ,d i ), (i=1,2,...,N) represent the coordinate values ​​of the upper left corner and the lower right corner of the image block respectively, and N is the number of groups of random parameter sets; (p i ,q i ), (i=1,2,...,N) represents the image block S i Randomly partition the mixture into blocks S i 'The upper left corner coordinate value; The coordinate value should meet the conditions: |a i-c i |≥x,|b i -d i |≥x, where x is the height and width of the image block, and the value of x is generally: x≥10; 1≤a i ,c i ≤w,1≤b i ,d i ≤h,1≤p i ≤w-|a i -c i |,1≤q i ≤h-|b i -d i |,i=(1,2,...,N), and cut (a i ,b i ) and (c i ,d i ) between the image blocks S' fi ; 4) Perform a second cropping process on the original video frame, and the cropped random block S s ' i The coordinates of the upper left corner are (p i ,q i ), i=(1,2,...,N), size and S' fi Same, then S' fi With S s ' i Mix the image blocks, and the mixed image blocks constitute the image block set Block s '={Block s ' 1 ,Block s ' 2 ,...,Block s ' N}.

[0008] Furthermore, in the video ownership certification method of the present invention, the challenge phase includes the server sending a random parameter value to the client, and then performing a random operation on each block in the image block set. s ' i ,i=(1,2,...,N) Generate challenge tag g' si ,i=(1,2,...,N), the result constitutes the set {g' s1 ,g' s2 ,...,g' sN}.

[0009] Furthermore, in the video ownership certification method of the present invention, the response phase includes the following steps: 1) the client receives a random parameter set sent by the server; 2) The client divides each video file V' into N equal parts; if the number cannot be divided evenly, the image frame is placed in the last part; 3) Grayscale and center crop the obtained video frames to obtain a video frame set I gray , where the video frame width is w and the height is h; 4) The client responds to (a) based on the random parameter set sent by the server i ,b i ) and (c i ,d i ) to obtain image block S fi ; 5) Perform a second cropping process on the original video frame, and the coordinate of the upper left corner of the cropped random block is S si , (p i ,q i ),i=(1,2,...,N), size and S si Same, then S fi With S si Mix them, and the result forms a set of image blocks Block c = {Block c1 ,Block c2 ,...,Block cN}; 6) The client uses the same method as generating the challenge tag to generate each block in the image block set. ci ,i=(1,2,...,N) Generate ownership evidence g ci ,i=(1,2,.N.., the result constitutes the set {g c1 ,g c2 ,...,g cN}; 7) The client calculates the ownership evidence set {g c1 ,g c2 ,...,g cN}Upload to the server.

[0010] Furthermore, in the video ownership certification method of the present invention, the verification phase includes the server calculating {g' s1 ,g' s2 ,...,g' sN} and {g c1 ,g c2 ,...,g cN} between the chamfer similarity distance D; if D({g' s1 ,g' s2 ,...,g' sN},{g c1,g c2 ,...,g cN})≤T, where T is the distance threshold, and its value can be adjusted according to the specific application scenario. Then the output is "True", indicating that the client has passed the verification and the server can authorize the user. Then the server evaluates the video quality of V and V'. Otherwise, the output is "False", indicating that the verification has failed and the client is refused to upload.

[0011] Furthermore, in the video ownership certification method of the present invention, the step of generating the challenge tag includes: s '={Block s ' 1 ,Block s ' 2 ,...,Block s ' N Apply DWT discrete wavelet transform to obtain 4 coefficients, namely LL, LH, HL and HH, and retain the high-low component HL and low-high component LH in the form of image block matrix; Then, principal component analysis is performed on the high-low component HL and the low-high component LH to obtain their eigenvalues; Finally, the user ID is converted into ASCII code, normalized, and combined with the aforementioned feature value to generate a challenge label. By using the user ID to participate in the calculation, it can be applied to the scenario where multiple users simultaneously request to upload video files and identify them by user ID.

[0012] Furthermore, in the video ownership certification method of the present invention, the server and the client divide the video file V' into N equal parts according to time series.

[0013] The video ownership proof method of the present invention can effectively reduce the amount of computer calculations by indirectly extracting and cropping video frames, thereby effectively saving hardware resources and improving efficiency; at the same time, both the server and the client use a random parameter set to crop the video frames, which can effectively ensure the security of video operations, and the ownership proof process is clear and reliable, which is suitable for popularization and application. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 This is a schematic diagram of the process of the video ownership certification method according to an embodiment of the present invention; Figure 2 A schematic diagram of the position coordinates of an image block according to an embodiment of the present invention; Figure 3 A schematic diagram of an image block mixing process according to an embodiment of the present invention; Figure 4 This is a diagram of the process of generating a mixed image block set according to an embodiment of the present invention. DETAILED DESCRIPTION

[0015] The video ownership certification method of the present invention is described in detail below through the accompanying drawings and embodiments.

[0016] This embodiment discloses a method for proving video ownership, including a preparation phase, a challenge phase, a response phase, and a verification phase; Figure 1 As shown, in the preparation stage, the server divides the video file, groups and preprocesses the obtained video frames, generates a random parameter set, and sends the random parameter set to the client; in the challenge stage, the server performs two random cropping and image mixing operations on the video frame to generate a challenge tag; in the response stage, the client generates ownership evidence according to the random parameter set and the original video file, and sends it to the server; in the verification stage, the server performs distance verification based on the challenge tag and the ownership evidence, proves its ownership after verification, and authorizes the user.

[0017] In the embodiment of the present disclosure, the server-side initialization algorithm for generating the ownership authentication tag adopts RbfBlock(w,h,V',N)→{(a 1 ,b 1 ,c 1 ,d 1 ,p 1 ,q 1 ),(a 2 ,b 2 ,c 2 ,d 2 ,p 2 ,q 2 ),...,(a N ,b N ,c N ,d N ,p N ,q N )}, since it takes a lot of time and effort to add watermarks to each frame of the video file or to the extracted complete frame, it is considered to select some image blocks for subsequent steps. The input of the algorithm is the original video file V', the width w and height h of the video frame, and the number of division groups N, and the output is a set of random parameters of the fused image block, such as Figure 2 As shown, where (a i ,b i ),(c i ,d i ), (i=1,2,...,N) represent the coordinate values ​​of the upper left corner and the lower right corner of the image block respectively, (p i ,q i ), (i=1,2,...,N) represents the image block S iRandomly partition the mixture into blocks S i 'The upper left corner coordinates.

[0018] In the embodiment of the present disclosure, the algorithm for generating the ownership proof protocol on the server side adopts CharGen({(a 1 ,b 1 ,c 1 ,d 1 ,p 1 ,q 1 ),(a 2 ,b 2 ,c 2 ,d 2 ,p 2 ,q 2 ),...,(a N ,b N ,c N ,d N ,p N ,q N ),V'}) →{g' s1 ,g s ' 2 ,...,g s ' N}, the algorithm takes a random parameter set and a server-side video file V' as input and outputs a challenge tag set g' si (i=1,2,...,N).

[0019] The generation method of the challenge tag is as follows: Apply DWT discrete wavelet transform to the cropped image block Block. DWT (Discrete Wavelet Transform) is a signal processing technology based on wavelet analysis. It decomposes a signal into multiple scale and frequency sub-bands, thus providing a method of time-frequency analysis. Compared with the traditional Fourier transform, discrete wavelet transform has good localization properties and multi-scale analysis capabilities, and can better extract the characteristic information of the signal.

[0020] Applying DWT discrete wavelet transform, we get 4 coefficients: LL, LH, HL, and HH, where "LL" represents the low-frequency component of this frame, "LH" represents the low-high component, "HL" represents the high-low component, and "LL" represents the basic frequency component of this frame.

[0021] That is: DWT(Block)=(LL,LH,HL,LL); To ensure the confidentiality of the watermarking process, the watermark in the image is usually invisible on the image, that is, the more difficult it is to detect visually, the safer the data. Although this article does not need to restore the image block after adding the watermark, it can also effectively prevent the spies from using the inverse wavelet transform method to construct the watermarked image block. Therefore, it is necessary to select a combination of high-frequency and low-frequency components of the DWT algorithm, namely LH and HL, because the low-frequency component LL defines the main features of the key frame image block, which is usually visible to the human eye. If this component is selected, the image block will be very different before and after processing, and the security and confidentiality requirements cannot be met. The reason for not selecting the high-frequency component is that noise usually has a high-frequency component. If noise is added to the image block at this time, it will destroy the original watermark. Therefore, through this step, the high-low component HL and the low-high component LH in the form of an image block matrix can be obtained.

[0022] Next, we need to obtain the eigenvalues ​​of the image block. This step is completed by performing principal component analysis (PCA) on the high-low component HL and the low-high component LH. PCA (Principal Component Analysis) is a statistical method that converts a set of variables that may be correlated into a set of linearly uncorrelated variables through orthogonal transformation. The converted set of variables is called principal components, thereby achieving the purpose of optimizing execution efficiency.

[0023] By performing principal component analysis PCA on the high-low component HL and the low-high component LH, and finding the singular value decomposition of the matrices HL and LH, we can get the upper triangular matrix U, the eigenvector HL or LH, and the lower triangular matrix V, which are 3 parts in total, as shown in the following formula: The matrix ∑ is a quasi-diagonal matrix, and its diagonal elements are singular values. The upper triangular matrix U and the lower triangular matrix V are both unitary matrices (their column vectors are all orthogonal unit vectors).

[0024] At this time, the top component of the eigenvector represents the most important eigenvalue, followed by the second most important eigenvalue, and its eigenvalues ​​are organized in a hierarchical form.

[0025] Generally speaking, users need to register when using cloud services, so the encryption process can be completed using the user ID data generated by the system. This method can uniquely identify the user and ensure the security of the encryption process. The encryption algorithm is as follows: λ i _new=λ i _old+ID ASCII where λ i _old represents the original eigenvalue, λ i _new indicates the newly generated feature value, IDASCII Indicates the ASCII code corresponding to the user ID. This operation is also to ensure that the watermarking process will not have a huge impact on the image block. Because the user ID cannot be directly added to the eigenvector of the matrix HL and LH, it is considered to convert the ID number into the corresponding ASCII code, and then normalize it to make it within the range of 0-1, and then add it to the eigenvector in the form of a diagonal from top to bottom. The new eigenvalue finally obtained is used as the challenge label.

[0026] In the embodiment of the present disclosure, the algorithm for the client to generate ownership proof to respond to the server challenge adopts ProofGen({(a 1 ,b 1 ,c 1 ,d 1 ,p 1 ,q 1 ),(a 2 ,b 2 ,c 2 ,d 2 ,p 2 ,q 2 ),...,(a N ,b N ,c N ,d N ,p N ,q N ),V})→{g c1 ,g c2 ,...,g cN}, the algorithm takes the random parameter set sent by the server and the client video file V as input, and outputs the ownership evidence set g ci (i=1,2,...,N). The ownership evidence generation method in this process is similar to the challenge tag generation algorithm.

[0027] In the embodiment of the present disclosure, the server verifies whether the ownership evidence generated by the user has passed the authentication algorithm using Verify({g' s1 ,g' s2 ,...,g' sN},{g c1 ,g c2 ,...,g cN})={"True","False"}, the algorithm uses the challenge tag set g' generated by the server si and the ownership evidence set g generated by the client ci As input, chamfer similarity is used to measure the similarity between the challenge label and the ownership evidence. If the ownership evidence is verified to be correct, the output result is "True", otherwise it is "False".

[0028] The video ownership proof method described in this embodiment is mainly divided into four stages: preparation stage, challenge stage, response stage and verification stage. The specific implementation steps are as follows: (1) Preparation stage; 1) The server uses the video preprocessing tool FFmpeg to divide each video file V' into N parts according to the time sequence. If it cannot be divided evenly, the image frame is placed in the last part; 2) Grayscale and center crop the obtained video frames to obtain a video frame set I' gray , where the video frame width is w and the height is h. In the embodiment of the present disclosure, w=125 and h=110; 3) The server generates N sets of random parameter values ​​based on the preset fixed block size (a 1 ,b 1 ,c 1 ,d 1 ,p 1 ,q 1 ),(a 2 ,b 2 ,c 2 ,d 2 ,p 2 ,q 2 ),...,(a N ,b N ,c N ,d N ,p N ,q N ), where the coordinate values ​​should satisfy the conditions: |a i -c i |≥10,|b i -d i |≥10, in the embodiment of the present disclosure, x is 10; 1≤a i ,c i ≤w,1≤b i ,d i ≤h,1≤p i ≤w-|a i -c i |,1≤q i ≤h-|b i -d i |,i=(1,2,...,N), and cut (a i ,b i ) and (c i ,d i ) between the image blocks S' fi ; 4) Perform a second cropping process on the original video frame, and the cropped random block Ss ' i The coordinates of the upper left corner are (p i ,q i ), i=(1,2,...,N), size and S' fi Same, then S' fi With S s ' i Blending is performed, that is, setting the image blending parameter to α = 0.5 for Blend operation. The mixed image blocks can constitute an image block set Block s '={Block s ' 1 ,Block s ' 2 ,...,Block s ' N}.like Figure 3 As shown, two partial blocks of the same size of the picture are mixed.

[0029] (2) Challenge phase; The server sends the random parameter value to the client, and then performs a random operation on each block in the image block set. s ' i ,i=(1,2,...,N) Generate challenge tag g' si ,i=(1,2,N.., the result constitutes the set {g' s1 ,g s ' 2 ,...,g sN '}.

[0030] The specific steps for generating challenge tags are as follows: For the cropped image block set Block s '={Block s ' 1 ,Block s ' 2 ,...,Block s ' N}By applying DWT discrete wavelet transform, we can get 4 coefficients, namely LL, LH, HL and HH. Here we only need to keep the high-low component HL and the low-high component LH in the form of image block matrix.

[0031] Then, the high-low component HL and the low-high component LH are subjected to principal component analysis to obtain their eigenvalues. Finally, the user ID is converted into an ASCII code. In this embodiment, the preprocessing.MinMaxScaler class in the sklearn tool is used for normalization processing, and the obtained eigenvalues ​​are combined to generate a challenge label.

[0032] (3) Response phase; 1) The client receives a set of random parameters sent by the server; 2) The client uses a video preprocessing tool to divide each video file V' into N parts evenly according to the time sequence. If it cannot be divided evenly, the image frame is placed in the last part; 3) Grayscale and center crop the obtained video frames to obtain a video frame set I gray , where the video frame width is w and the height is h. In this embodiment, w=125 and h=110; 4) The client responds to (a) based on the random parameter set sent by the server i ,b i ) and (c i ,d i ) to obtain image block S fi ; 5) Perform a second cropping process on the original video frame, and the coordinate of the upper left corner of the cropped random block is S si ; (p i ,q i ),i=(1,2,...,N), size and S si Same, then S fi With S si Blending is performed, that is, setting the image blending parameter to α = 0.5 for Blend operation, and the result constitutes a set of image blocks Block c = {Block c1 ,Block c2 ,...,Block cN}; 6) The client uses the challenge tag generation step to generate each block in the image block set. ci ,i=(1,2,...,N) Generate ownership evidence g ci ,i=(1,2,...,N), the results form the set {g c1 ,g c2 ,...,g cN}; 7) The client calculates the ownership evidence set {g c1 ,g c2 ,...,g cN}Upload to the server.

[0033] (4) Verification phase; 1) The server receives the ownership evidence uploaded by the client {g c1 ,g c2 ,...,g cN}; 2) The server calculates {g' s1 ,g' s2 ,...,g' sN} and {g c1 ,g c2 ,...,g cN} between the chamfer similarity distance D, if D({g' s1 ,g' s2 ,...,g' sN},{g c1 ,g c2 ,...,g cN})≤T, where T is the distance threshold. Then the output is "True", which means that the client has passed the verification and the server can authorize the user. Then the server evaluates the video quality of V and V'. Otherwise, the output is "False", which means that the verification has failed and the client is refused to upload.

[0034] The following theoretical analysis and proof of the video ownership proof method described in this embodiment is conducted against external attacks, assuming that the cloud server is honest and reliable, thus ignoring the security threats of the server itself.

[0035] Definition 1 (security): The Rbf-PoW (Rbf-PoW = (RbfBlock, CharGen, ProofGen, Verify)) protocol is secure, which means that in the multiple interactions between the client and the server, the probability of an attacker passing the server verification is infinitely close to 0, assuming that the attacker will intercept the client ownership evidence {g c1 ,g c2 ,...,g cN}Forged response evidence {g a1 ,g a2 ,...,g aN} and upload it to the server, the formula is satisfied: P(Verify({g a1 ,g a2 ,...,g aN},{g s ' 1 ,g s ' 2 ,...,g s ' N}))={"True"}≈0 In this scheme, it is assumed that the attacker has the video feature sequence of the original video and some information about the original video. After receiving the ownership evidence {g c1 ,g c2 ,...,gcN}, then forge the response evidence {g a1 ,g a2 ,...,g aN} and send it to the server. However, this forgery process is very difficult. Since the image block cropping is based on the random generation process of coordinates, even if the image block intercepted by the attacker happens to be within the verification range, the image still needs to be cropped again based on random coordinates and image mixing. In addition, the ownership evidence is obtained based on the video feature generation algorithm. If the number of frames selected for each video file for testing is 50, the size of the generated reduced-dimensional video feature is 50×40. The attacker's bit-by-bit guessing has a very small chance of success. In actual situations, the number of video frames used for testing is much larger than 50. In summary, if the attacker wants to generate the response evidence {g a1 ,g a2 ,...,g aN} and successfully passed the server authentication, the probability of success is infinitely close to 0. At this point, the Rbf-PoW protocol is safe.

[0036] Theorem 1: Assume that the server has the ability to prevent attackers from successfully passing server verification by only having video features, and the features of the client video to be deduplicated are p 1 , the feature size is n p , if the server-side authentication threshold is n s , then the attacker needs to get the number of bits n a =n p -n s , then the probability that the attacker can pass the Rbf-PoW protocol verification is Where n is the number of times ownership authentication is performed.

[0037] Proof: From the Rbf-PoW ownership proof scheme, we know that the challenge tag and ownership evidence are mainly obtained by calculating the video feature value, so the number of bits for similarity comparison is closely related to the video feature structure. If the client needs to perform a deduplication operation on the video V in the feature set X with a total of N items, and the server needs to perform a comparison operation on the video V' in the feature set Y with a total of M items, since the calculation principle of chamfer similarity is to find the closest item in the set Y for each item in the set X and then average the distance, assuming that the attacker knows {g c1 ,g c2 ,...,g cN}, in order to obtain {g a1 ,g a2 ,...,g aN} and pass the verification, we can only guess n a =n p -n s The probability of guessing is If the number of video frames for each video operation is 50, and the feature size of each image block after dimensionality reduction is 1×40, the feature size of each video is 50×40, and the distance judgment bit threshold is 57, then n a =50×40-57=1943, the number of ownership authentication is 3, and the obtained p s =1 / 2 5829 , which can be ignored in practice.

[0038] Theorem 2: Assuming that the attacker obtains the grayscale image block for ownership authentication by the server, the probability of passing the Rbf-PoW protocol verification is p u , and p u tends to infinitesimal.

[0039] Proof: The image block here defaults to the image block after the first cropping. When the attacker obtains the image block for authentication, he has two options: one is to guess the complete video frame based on the obtained image block, and then construct the original video to pass the server-side ownership authentication; the other is to continue mixing the obtained image block and subsequent operations to generate ownership evidence.

[0040] For the first option, let the original video frame size be W×H, and the grayscale image block size obtained by the attacker be w×h. If m image frames are selected for verification for each video, and the number of ownership authentications is n, then the attacker’s guess probability for each challenge video is p. u =1 / 256 (W×H-w×h)mn In this paper, the video frame size is 125×110, that is, W=125, H=110, w=124, h=109, if 50 frames are selected for authentication calculation in each video on average, and ownership authentication is performed 3 times, then p u =1 / 256 35100 Here, it can be almost assumed that the attacker has obtained the complete video, but in reality, this is difficult to achieve, and in general, the total number of frames of a video may be far more than 50, so the probability of the attacker passing the verification is higher than p u Much smaller.

[0041] For the second option; let s be the coordinate (p i ,q i ), i = (1, 2, ..., N) the number of all possible cases, let t be the number of all possible values ​​of the mixing parameter α (α ∈ [0, 1]) for the image mixing operation. If an average of 50 frames are selected for authentication calculation in each video, and ownership authentication is performed 3 times, then there are p u =1 / (50 st×3); Analysis of the values ​​of s and t shows that when the cropped image block size is 16×16, s=(125-16)×(110-16)=10246, and α has infinite possibilities. Therefore, it is difficult for an attacker to use this method to pass ownership authentication.

Claims

1. A method for proving video ownership, characterized in that: It includes the preparation phase, the challenge phase, the response phase and the verification phase; In the preparation stage, the server divides the video file, groups and preprocesses the obtained video frames, generates a random parameter set, and sends the random parameter set to the client; In the challenge stage, the server performs two random cropping and image mixing operations on the video frame to generate a challenge tag; In the response phase, the client generates ownership evidence based on the random parameter set and the original video file, and sends it to the server; In the verification phase, the server performs distance verification based on the challenge tag and ownership evidence, proves ownership after verification, and authorizes the user.

2. The video ownership certification method according to claim 1, characterized in that: The preparation stage specifically includes the following steps: 1) The server divides each video file V' into N parts on average; If it is not divisible, put the image frame into the last part; 2) Grayscale and center crop the obtained video frames to obtain a video frame set I' gray , where the video frame width is w and the height is h; 3) The server generates a random parameter set based on the preset fixed block size: (a1,b1,c1,d1,p1,q1),(a2,b2,c2,d2,p2,q2),...,(a N ,b N ,c N ,d N ,p N ,q N ); Among them, (a i ,b i ),(c i ,d i ), (i=1,2,...,N) represent the coordinate values ​​of the upper left corner and the lower right corner of the image block respectively, and N is the number of random parameter sets; (p i ,q i ), (i=1,2,...,N) represents the image block S i Perform mixed random blocks S' i The upper left corner coordinate value; The coordinate value should meet the conditions: |a i -c i |≥x,|b i -d i |≥x, where x is the height and width of the image block; 1≤a i ,c i ≤w,1≤b i ,d i ≤h,1≤p i ≤w-|a i -c i |,1≤q i ≤h-|b i -d i |,i=(1,2,...,N), and cut (a i ,b i ) and (c i ,d i ) between the image blocks S' fi ; 4) Perform a second cropping process on the original video frame, and the resulting random block S' si The coordinates of the upper left corner are (p i ,q i ), i=(1,2,...,N), size and S' fi Same, then S' fi With S' si Mix the image blocks, and the mixed image blocks constitute the image block set Block s '={Block s '1,Block s '2,...,Block s ' N }.

3. The video ownership certification method according to claim 2, characterized in that: The challenge phase includes the server sending a random parameter value to the client, and then s ' i ,i=(1,2,...,N) Generate challenge tag g' si ,i=(1,2,...,N) and the result constitutes the set {g' s1 ,g' s2 ,...,g sN '}.

4. The video ownership certification method according to claim 3 is characterized in that: The response phase includes the following steps: 1) the client receives a random parameter set sent by the server; 2) The client divides each video file V' into N equal parts; if the number cannot be divided evenly, the image frame is placed in the last part; 3) Grayscale and center crop the obtained video frames to obtain a video frame set I gray , where the video frame width is w and the height is h; 4) The client responds to (a) based on the random parameter set sent by the server i ,b i ) and (c i ,d i ) to obtain image block S fi ; 5) Perform a second cropping process on the original video frame, and the coordinate of the upper left corner of the cropped random block is S si , (p i ,q i ),i=(1,2,...,N), size and S si Same, then S fi With S si Mix them, and the result forms a set of image blocks Block c = {Block c1 ,Block c2 ,...,Block cN }; 6) The client uses the same method as generating the challenge tag to generate each block in the image block set. ci ,i=(1,2,...,N) Generate ownership evidence g ci ,i=(1,2,...,N) and the result constitutes the set {g c1 ,g c2 ,...,g cN }; 7) The client calculates the ownership evidence set {g c1 ,g c2 ,...,g cN }Upload to the server.

5. The video ownership certification method according to claim 4 is characterized in that: The verification phase includes the server calculating {g' s1 ,g s '2,...,g s ' N } and {g c1 ,g c2 ,...,g cN } between the chamfer similarity distance D; if D({g' s1 ,g' s2 ,...,g' sN },{g c1 ,g c2 ,...,g cN })≤T, where T is the distance threshold; then the output is "True", indicating that the client has passed the verification and the server can authorize the user, and then the server will evaluate the video quality of V and V'; otherwise, the output is "False", indicating that the verification has failed and the client is refused to upload.

6. The video ownership certification method according to claim 3 or 5, characterized in that: The step of generating the challenge tag comprises: s '={Block s '1,Block s '2,...,Block s ' N Apply DWT discrete wavelet transform to obtain 4 coefficients, namely LL, LH, HL and HH, and retain the high-low component HL and low-high component LH in the form of image block matrix; Then, principal component analysis is performed on the high-low component HL and the low-high component LH to obtain their eigenvalues; Finally, the user ID is converted into ASCII code, normalized, and combined with the aforementioned feature values ​​to generate a challenge label.

7. The video ownership certification method according to claim 6, characterized in that: The server and the client divide the video file V' into N equal parts according to the time series.