A video projection shooting source tracing method

By detecting screen types and optimizing feature extraction algorithms, embedding the identification code of video frames, realizing the traceability and authentication of video content, the problem of difficulty in embedding verified identification information in video content in the prior art is solved, and the security of video content is improved and traceability reliability.

CN118075572BActive Publication Date: 2024-11-01BEIJING HEREN GUANGZHI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410291821.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-14
Publication Date
2024-11-01
Estimated Expiration
2044-03-14

AI Technical Summary

Technical Problem

In the prior art, poor targeting of video content leads to the problem of difficulty in embedding verifiable identification information in video content.

Method used

By detecting the image resolution and border width of the screen to be projected, the screen type is determined, the feature extraction algorithm is optimized, the hash value of the video feature information is generated and the timestamp is combined to form a unique identification code, and the identification code is used to use the least significant bit steganography to steganography. Embed the metadata of the video frame and perform feature matching to verify the video source.

Benefits of technology

Ensure the source of video content legality, authenticity and completeness, improve the security and credibility of video content, enhance the reliability and accuracy of video traceability, and effectively prevent tampering and infringement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118075572B_ABST
    Figure CN118075572B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of image recognition technology, and in particular to a video projection shooting and tracing method, comprising: step S1, collecting video frames of the original video that has not been projected; step S2, determining the screen type of the screen to be projected by detecting the resolution and border width of the image of the screen to be projected, and optimizing the feature extraction algorithm; step S3, creating an identification code and embedding it into the video frame of the original video; step S4, shooting the target video obtained by projection, and matching feature information; S5, determining the source of the video. The present invention ensures the legality, authenticity and integrity of the source of the video content through embedded identification codes and feature matching technology, and can improve the security and credibility of the video content through feature matching and comparison. Based on its precise feature extraction and matching technology, it helps to achieve the reliability and accuracy of video tracing and tracking.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image recognition technology, and in particular to a method for tracing the source of video projection shooting. Background Art

[0002] In the current context where digital video content is easy to spread and tamper with, the video projection shooting traceability method is of great significance.

[0003] A patent document with publication number CN112929692A discloses a video tracing method and device suitable for short videos, the method comprising: receiving a short video uploaded by a video playback terminal device; performing a tracing operation on preset data in the short video by comparing it with pre-processed sample data; obtaining a tracing main program of the short video from the pre-processed sample data; and pushing the tracing main program to the video playback terminal device for playback.

[0004] It can be seen that the video tracing method and device suitable for short videos have the problem that the algorithm used in the prior art is not well targeted to the video content, which makes it difficult to embed verifiable identification information in the video content. Summary of the invention

[0005] To this end, the present invention provides a video projection shooting tracing method to overcome the problem that the algorithm used in the prior art has poor targeting of video content, resulting in difficulty in embedding verifiable identification information in the video content.

[0006] To achieve the above object, the present invention provides a video projection shooting source tracing method, comprising:

[0007] Step S1, collecting video frames of the original video that has not been projected;

[0008] Step S2, by detecting the resolution and border width of the image of the screen to be projected, to determine whether the screen type of the screen to be projected is a spliced ​​screen or a large-size LCD TV, and according to the screen type, using a data set containing the screen type to calculate the accuracy of a preset feature extraction algorithm,

[0009] If the accuracy of the feature extraction algorithm is lower than a preset accuracy threshold, it is determined that the feature extraction algorithm needs to be optimized, and then, according to the screen type, the extracted features are reselected and the features are fused to optimize the feature extraction algorithm;

[0010] Step S3, generating a hash value of the video feature information and combining it with the timestamp to generate a unique identification code, embedding the identification code into the metadata of the video frame, encoding it in digital form and hiding it using least significant bit steganography, extracting the embedded field metadata of the video frame, decoding and verifying the accuracy and integrity of the encoded identification code, comparing the length of the decoded identification code with the unique identification code, determining whether the embedding is successful, and checking the embedding integrity;

[0011] Step S4, shooting a target video obtained by projecting the original video embedded with the identification code to obtain a video frame of the target video, extracting features of the identification code from the video frame of the target video and the video frame of the original video using an optimized feature extraction algorithm, and performing feature information matching by comparing the features of the identification code;

[0012] Step S5, judging whether the source of the target video is correct according to the result of the feature information matching, if the feature information matching is successful, it is judged that the source of the video is correct.

[0013] Furthermore, the step S2 comprises:

[0014] Step S21, collecting an image of the screen to be projected, obtaining the resolution of the image by fast Fourier transform, extracting the border width of the screen to be projected in the image by using the Canny edge detection algorithm, and determining the screen type according to the resolution and border width of the screen to be projected, wherein the screen types include spliced ​​screens and large-size LCD TVs;

[0015] Step S22, according to the determined screen type, by using a data set containing the screen type to calculate the accuracy, the data set being image sample data of the screen type, and judging whether the feature extraction algorithm needs to be optimized according to the calculated accuracy and a preset accuracy threshold,

[0016] If the accuracy of the feature extraction algorithm is lower than a preset accuracy threshold, it is determined that optimization is required;

[0017] Step S23: If it is determined that optimization is needed, the feature extraction algorithm is optimized according to the screen type.

[0018] Further, in the step S21, determining the screen type according to the resolution and border width of the screen to be projected includes:

[0019] Compare the resolution of the screen to be projected with the standard resolution, compare the border width of the screen to be projected with the standard border width, and determine the screen type of the screen to be projected according to the comparison results.

[0020] If the resolution of the screen to be projected is greater than the standard resolution and the border width of the screen to be projected is greater than the standard border width, it is determined that the screen type of the screen to be projected is a spliced ​​screen;

[0021] If the resolution of the screen is less than or equal to the standard resolution and the border width of the screen to be projected is less than or equal to the standard border width, it is determined that the screen type of the screen to be projected is a large-size LCD TV.

[0022] Furthermore, the step S23 includes:

[0023] Step S231, reselecting the extracted features. For a spliced ​​screen, select extracting pixel-level features. For a large-size LCD screen, select extracting region-level features.

[0024] Step S232, fusing the pixel-level features and the region-level features by weighted averaging.

[0025] Furthermore, the step S3 comprises:

[0026] Step S31, using a timestamp service to generate a hash value of the video feature information, and combining it with the current timestamp to generate a unique identification code in the form of a hash value;

[0027] Step S32, embedding the generated identification code into the video frame of the original video by adding the identification code to the metadata of the video frame, wherein the metadata is a set of information describing the content and attributes of the video frame;

[0028] Step S33, exporting the video frame embedded with the identification code as a file.

[0029] Furthermore, the step S32 includes:

[0030] Step S321, encoding the identification code in digital form to form an encoded identification code, and determining the length of the identification code;

[0031] Step S322, specifying an embedded field in the metadata of the video frame, and embedding the identification code into the embedded field;

[0032] Step S323, selecting a central area or a peripheral area of ​​the video frame as a position for embedding the identification code, wherein the central area is an area of ​​the video frame containing main visual content, and the peripheral area is an area of ​​the video frame containing background and border;

[0033] Step S324, hiding the encoded identification code in the pixel value of the video frame by using the least significant bit based steganography in the embedded field according to the embedded position, so as to embed the encoded identification code into the metadata of the video frame;

[0034] Step S325: determining whether the encoding identification code is successfully embedded into the video frame by checking the accuracy of the encoding identification code and verifying the integrity of the encoding identification code.

[0035] Furthermore, the step S325 includes:

[0036] Step S3251, extracting metadata of the embedded field of the video frame in which the identification code is embedded using a preset feature extraction algorithm;

[0037] Step S3252, decoding the encoding identification code of the designated embedded field from the extracted metadata of the embedded field by performing an inverse operation on the encoding step of the encoding identification code to form a decoding identification code, and determining the length of the decoding identification code;

[0038] Step S3253, comparing and verifying the decoded identification code with the identification code,

[0039] If the decoded identification code is consistent with the identification code, it is determined that the encoded identification code is successfully embedded in the metadata of the video frame;

[0040] If the decoded identification code is inconsistent with the identification code, it is determined that the encoding identification code embedding fails;

[0041] Step S3254, comparing the length of the decoded identification code with the length of the identification code,

[0042] If the length of the decoded identification code is less than the length of the identification code, it is determined that the metadata of the identification code embedded in the video frame is incomplete;

[0043] If the length of the decoded identification code is equal to the length of the identification code, it is determined that the metadata of the identification code embedded in the video frame is complete.

[0044] Furthermore, the step S4 comprises:

[0045] Step S41, extracting a target video frame from the captured target video, and extracting an original video frame corresponding to the target video frame from the original video by comparing the timestamp of the target video;

[0046] Step S42, using the optimized feature extraction algorithm, respectively extracting the pattern, edge and texture features of the identification code from the video frames of the target video and the video frames of the original video, and performing feature fusion on the pattern, edge and texture features of the identification code;

[0047] Step S43, by using similarity calculation, the fused features of the video frame of the target video and the video frame of the original video are compared to determine whether the identification code in the target video frame matches the identification code in the original video frame.

[0048] Furthermore, in the step S42, the feature fusion of the pattern, edge and texture features of the identification code includes:

[0049] For the pattern, edge and texture features of the identification code, feature calculations at the pixel level and the region level are calculated respectively.

[0050] For pattern features, the optimized feature extraction algorithm is used to extract the pattern information of each pixel for description and summarize the entire area;

[0051] For edge features, the edge strength of each pixel is extracted through the optimized feature detection algorithm, and edge features are extracted for the entire area;

[0052] For texture features, the texture information of each pixel is calculated through the optimized feature extraction algorithm, and texture features are extracted for the entire area;

[0053] Setting the weights of the pixel-level features and the region-level features of the pattern, edge and texture features of the identification code,

[0054] For pattern features, the pixel-level feature weight is set to a, and the region-level feature weight is set to 1-a;

[0055] For edge features, the pixel-level feature weight is set to b, and the region-level feature weight is set to 1-b;

[0056] For texture features, the pixel-level feature weight is set to c, and the region-level feature weight is set to 1-c;

[0057] The pixel-level features and the region-level features are weighted averaged for the pattern, edge, and texture features to obtain fused features, and the fused features are combined to form the final fused features.

[0058] Further, the step S43 includes:

[0059] Step S431, fusing the fusion features of the video frame of the target video and the video frame of the original video to form a fusion feature vector;

[0060] Step S432, bringing the fused feature vector into the Euclidean distance calculation formula, calculating the similarity value of the fused features of the video frame of the target video and the video frame of the original video, and judging whether the identification code in the target video frame matches the identification code in the original video frame by comparing the similarity value with the similarity threshold.

[0061] If the similarity value is greater than the similarity threshold, determining that the identification code in the target video frame matches the identification code in the original video frame;

[0062] If the similarity value is less than or equal to the similarity threshold, it is determined that the identification code in the target video frame does not match the identification code in the original video frame.

[0063] Compared with the prior art, the beneficial effect of the present invention lies in that the present invention ensures the legality, authenticity and integrity of the source of video content through embedded identification codes and feature matching technology, and can improve the security and credibility of video content through feature matching and comparison. Based on its precise feature extraction and matching technology, it helps to achieve the reliability and accuracy of video tracing.

[0064] Furthermore, according to the identification process of the screen type to be projected, the key information of the screen to be projected, such as resolution and border width, is obtained through methods such as fast Fourier transform, so as to accurately determine whether the screen type is a spliced ​​screen or a large-size LCD TV. Subsequently, by calculating and optimizing the accuracy of the feature extraction algorithm, the accuracy and matching effect of feature extraction are ensured, and the reliability of video traceability is effectively improved. This process deepens the understanding of screen features, optimizes the feature extraction process, and strengthens the ability to identify and track the source of the video, thereby providing strong support for maintaining the authenticity of video content and copyright protection. By improving the accuracy of feature extraction and matching effects, this method can effectively deal with tampering and infringement of video content, ensure the reliability and integrity of the video source, and further enhance the credibility and stability of video traceability.

[0065] Furthermore, based on the comparison of the resolution and border width of the screen to be projected, accurate determination of the screen type can provide key information in the video tracing process, effectively distinguish large-size LCD TVs and spliced ​​screens, and lay the foundation for subsequent feature extraction and tracing analysis. Accurate classification of screen types helps optimize feature extraction algorithms, improve matching accuracy, and ensure the reliability of video source tracing, thereby maintaining copyright protection and authenticity of video content. By determining the screen type, the accuracy and reliability of video tracing are further improved.

[0066] Furthermore, selecting appropriate feature extraction methods according to different screen types and fusing pixel-level and region-level features are of great significance to the recognition ability and traceability accuracy of spliced ​​screens and large-size LCD screens. By carefully extracting pixel-level or region-level features, the subtle features and structural information of the screen can be better captured, and the sensitivity and accuracy of pattern recognition can be improved. The feature fusion process can comprehensively consider information at different levels, making the feature representation more comprehensive and accurate, which helps to improve the analysis and detection of image or video content.

[0067] Furthermore, a unique identification code is generated by a timestamp service agency, and the unique identification of the video content is achieved by embedding it in the metadata of the original video frame. Based on this process, the traceability and authentication of the video content can be achieved. This method can effectively prevent the video content from being tampered with or stolen, improve the authenticity of the video and the level of copyright protection. Through the combination of timestamp and unique identification code, reliable identity authentication can be provided for the video content, further optimizing the security and credibility of the video.

[0068] Furthermore, digital coding is adopted and hidden in the pixels of the video frame, and the identification code is embedded into the metadata through steganography to realize the accuracy and integrity verification of the video content. This identification code embedding method can improve the uniqueness and traceability of the video content, prevent tampering or theft, and provide reliable technical support for video content authentication and copyright protection. Based on the accuracy and integrity verification of the encoded identification code, the process can ensure that the identification code is successfully embedded in the video frame.

[0069] Furthermore, feature extraction algorithms and decoding operations are used to determine whether the identification code is successfully embedded in the video frame metadata, thereby confirming the integrity of the embedding. This verification method can effectively ensure the accuracy and integrity of the identification code, improve the authenticity and uniqueness of the video content, and can determine the embedding status of the identification code based on the comparison and verification of the decoded identification code with the original identification code, which helps prevent information tampering and protect the security of video content. At the same time, by comparing the length of the decoded identification code with the length of the original identification code, the embedding integrity of the path can be further confirmed, improving the accuracy of traceability and the traceability of significance.

[0070] Furthermore, feature extraction and similarity calculation are used to confirm the matching of the identification code in the target video with the original video frame, so as to realize the identity authentication and authenticity comparison of the video content. This method can ensure the integrity and uniqueness of the video content, prevent information tampering and forgery, and improve the accuracy and effectiveness of video content authentication. Based on the similarity calculation of the fused features, the matching of the identification code can be determined, which helps to ensure the legitimacy of the source and copyright of the video content, and further enhance the authenticity and credibility of the video content.

[0071] Furthermore, through the steps of comprehensive analysis and fusion of identification code features, combined with pixel-level and region-level feature calculation and weight setting, a more comprehensive and accurate feature description and extraction is achieved, thereby improving the uniqueness and authenticity of the identification code. This feature fusion method can accurately capture the pattern, edge and texture features of the identification code, effectively distinguish the features of different video content, and improve the accuracy and security of video content authentication. Feature fusion based on comprehensive weights can effectively reduce the redundancy of feature information and increase the richness of feature information, which helps to improve the recognition and traceability of video content.

[0072] Furthermore, through the similarity calculation method, it can ensure that the identification codes of the target video frame and the original video frame are effectively matched during the identification code verification process, thereby improving the accuracy of video content identification and matching precision. This similarity analysis based on Euclidean distance calculation can effectively determine the matching of identification codes, thereby ensuring the authenticity and integrity of video content, avoiding information tampering and forgery, and improving the credibility and accuracy of video content traceability. By comparing the similarity value with the set threshold, the matching of identification codes can be accurately determined, providing reliable technical support for digital copyright protection and video content authentication. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] Figure 1 This is a flow chart of the video projection shooting source tracing method according to this embodiment of the present invention;

[0074] Figure 2 This is a flow chart of the algorithm for optimizing the screen type according to this embodiment;

[0075] Figure 3 A flowchart of the specific steps of optimizing the feature extraction algorithm of this embodiment;

[0076] Figure 4 Flowchart for creating identification code and embedding it into video for this embodiment. DETAILED DESCRIPTION

[0077] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0078] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.

[0079] It should be noted that, in the description of the present invention, terms such as "up", "down", "left", "right", "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings. This is merely for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention.

[0080] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0081] See also Figure 1 As shown, it is a flow chart of the video screen projection shooting source tracing method of this embodiment. This embodiment provides a video screen projection shooting source tracing method, including:

[0082] Step S1, collecting video frames of the original video that has not been projected;

[0083] Step S2, by detecting the resolution and border width of the image of the screen to be projected, to determine whether the screen type of the screen to be projected is a spliced ​​screen or a large-size LCD TV, and according to the screen type, using a data set containing the screen type to calculate the accuracy of a preset feature extraction algorithm,

[0084] If the accuracy of the feature extraction algorithm is lower than a preset accuracy threshold, it is determined that the feature extraction algorithm needs to be optimized, and then, according to the screen type, the extracted features are reselected and the features are fused to optimize the feature extraction algorithm;

[0085] Step S3, generating a hash value of the video feature information and combining it with the timestamp to generate a unique identification code, embedding the identification code into the metadata of the video frame, encoding it in digital form and hiding it using least significant bit steganography, extracting the embedded field metadata of the video frame, decoding and verifying the accuracy and integrity of the encoded identification code, comparing the length of the decoded identification code with the unique identification code, determining whether the embedding is successful, and checking the embedding integrity;

[0086] The least significant bit steganography is a technique for hiding secret information by embedding it into an image, audio or video file, and the length of the decoded identification code and the unique identification code is the number of bits contained in the decoded identification code and the unique identification code;

[0087] Step S4, shooting a target video obtained by projecting the original video embedded with the identification code to obtain a video frame of the target video, extracting features of the identification code from the video frame of the target video and the video frame of the original video using an optimized feature extraction algorithm, and performing feature information matching by comparing the features of the identification code;

[0088] Step S5, judging whether the source of the target video is correct according to the result of the feature information matching, if the feature information matching is successful, it is judged that the source of the video is correct.

[0089] First, in step S1, the video frames of the original video are captured. Then, in step S2, the screen type to be projected is identified and the feature extraction algorithm is optimized. Then, in step S3, an identification code is created and embedded into the original video frame. Subsequently, in step S4, the projected target video is filmed, the identification code features are extracted and matched and compared. Finally, in step S5, whether the video source is correct is confirmed based on the matching results.

[0090] The present invention ensures the legality, authenticity and integrity of the source of video content through embedded identification codes and feature matching technology. Through feature matching and comparison, it can improve the security and credibility of video content. Based on its precise feature extraction and matching technology, it helps to achieve the reliability and accuracy of video tracing.

[0091] The selection of the preset feature extraction algorithm depends on factors such as actual task requirements, data type and algorithm performance. Generally, convolutional neural network, oriented gradient histogram and accelerated robust feature algorithm are used. In this embodiment, the preset feature extraction algorithm is a convolutional neural network.

[0092] Please continue reading Figure 2 As shown, it is a flow chart of the algorithm for optimizing the screen type according to this embodiment;

[0093] Specifically, step S2 includes:

[0094] Step S21, collecting an image of the screen to be projected, obtaining the resolution of the image by fast Fourier transform, extracting the border width of the screen to be projected in the image by using the Canny edge detection algorithm, and determining the screen type according to the resolution and border width of the screen to be projected, wherein the screen types include spliced ​​screens and large-size LCD TVs;

[0095] Step S22, according to the determined screen type, by using a data set containing the screen type to calculate the accuracy, the data set being image sample data of the screen type, and judging whether the feature extraction algorithm needs to be optimized according to the calculated accuracy and a preset accuracy threshold,

[0096] If the accuracy of the feature extraction algorithm is lower than a preset accuracy threshold, it is determined that optimization is required;

[0097] Step S23: If it is determined that optimization is needed, the feature extraction algorithm is optimized according to the screen type.

[0098] Firstly, by collecting the screen image to be projected, using fast Fourier transform to obtain the image resolution, and applying the Canny edge detection algorithm to extract the border width of the screen to be projected, it is determined whether the screen type is a spliced ​​screen or a large-size LCD TV. Secondly, the accuracy is calculated according to the screen type and compared with the preset accuracy threshold. If it is lower than the preset accuracy threshold, the feature extraction algorithm is optimized. Finally, the feature extraction algorithm is optimized according to the screen type.

[0099] According to the identification process of the screen type to be projected, the key information of the screen to be projected, such as resolution and border width, is obtained through methods such as fast Fourier transform, and then the screen type is accurately judged as a spliced ​​screen or a large-size LCD TV. Subsequently, by calculating and optimizing the accuracy of the feature extraction algorithm, the accuracy and matching effect of feature extraction are ensured, and the reliability of video traceability is effectively improved. This process deepens the understanding of screen features, optimizes the feature extraction process, and strengthens the ability to identify and track the source of the video, thereby providing strong support for maintaining the authenticity of video content and copyright protection. By improving the accuracy of feature extraction and matching effects, this method can effectively deal with tampering and infringement of video content, ensure the reliability and integrity of the video source, and further enhance the credibility and stability of video traceability.

[0100] The accuracy threshold is a standard used to determine whether optimization is needed during the feature extraction algorithm optimization process. Generally speaking, the specific numerical setting of the accuracy threshold will vary depending on factors such as the specific application scenario, task requirements, and data characteristics, and is usually set between 80% and 95%. In this embodiment, the accuracy threshold is set to 85%.

[0101] It is understandable that the larger the accuracy threshold is, the higher the corresponding precision is, but the corresponding equipment performance requirement is higher; for conventional monitoring, the best performance is 85%.

[0102] Specifically, in step S21, determining the screen type according to the resolution and border width of the screen to be projected includes:

[0103] Compare the resolution of the screen to be projected with the standard resolution, compare the border width of the screen to be projected with the standard border width, and determine the screen type of the screen to be projected according to the comparison results.

[0104] If the resolution of the screen to be projected is greater than the standard resolution and the border width of the screen to be projected is greater than the standard border width, it is determined that the screen type of the screen to be projected is a spliced ​​screen;

[0105] If the resolution of the screen is less than or equal to the standard resolution and the border width of the screen to be projected is less than or equal to the standard border width, it is determined that the screen type of the screen to be projected is a large-size LCD TV.

[0106] Determine the screen type by first comparing the resolution to the standard resolution, then comparing the border width to the standard border width.

[0107] Based on the comparison of the resolution and border width of the screen to be projected, accurate determination of the screen type can provide key information in the video tracing process, effectively distinguish large-size LCD TVs and spliced ​​screens, and lay the foundation for subsequent feature extraction and tracing analysis. Accurate classification of screen types helps optimize feature extraction algorithms, improve matching accuracy, and ensure the reliability of video source tracing, thereby maintaining copyright protection and authenticity of video content. By determining the screen type, the accuracy and reliability of video tracing are further improved.

[0108] The standard resolution is one of the standards used to distinguish screen types, and is generally set to 4K resolution or 8K resolution. In this embodiment, the standard resolution is 4K resolution;

[0109] The standard border width is one of the standards used to distinguish screen types, and is generally set between 4-5 mm. In this embodiment, the standard border width is 5 mm.

[0110] like Figure 3 As shown, it is a flowchart of the specific steps of optimizing the feature extraction algorithm of this embodiment;

[0111] Specifically, the step S23 includes:

[0112] Step S231, reselecting the extracted features. For a spliced ​​screen, select extracting pixel-level features. For a large-size LCD screen, select extracting region-level features.

[0113] Step S232, fusing the pixel-level features and the region-level features by weighted averaging.

[0114] Firstly, pixel-level features are extracted for the spliced ​​screen, and region-level features are extracted for the large-size LCD screen. Then, pixel-level and region-level features are fused by weighted average to realize the feature extraction and fusion process of the spliced ​​screen and the large-size LCD screen.

[0115] Selecting appropriate feature extraction methods based on different screen types and fusing pixel-level and region-level features are of great significance to the recognition ability and traceability accuracy of spliced ​​screens and large-size LCD screens. By carefully extracting pixel-level or region-level features, the subtle features and structural information of the screen can be better captured, and the sensitivity and accuracy of pattern recognition can be improved. The feature fusion process can comprehensively consider information at different levels, making the feature representation more comprehensive and accurate, which helps to improve the analysis and detection of image or video content.

[0116] like Figure 4 As shown, it is a flow chart of creating an identification code and embedding it into a video in this embodiment;

[0117] Specifically, step S3 includes:

[0118] Step S31, using a timestamp service to generate a hash value of the video feature information, and combining it with the current timestamp to generate a unique identification code in the form of a hash value;

[0119] Step S32, embedding the generated identification code into the video frame of the original video by adding the identification code to the metadata of the video frame, wherein the metadata is a set of information describing the content and attributes of the video frame;

[0120] Step S33, exporting the video frame embedded with the identification code as a file.

[0121] First, a timestamp service is used to generate a hash value of the video feature information, and then the hash value is combined with the current timestamp to generate a unique identification code. Then, the generated identification code is associated with the video content by embedding the identification code into the metadata of the original video frame. Finally, the video frame with the embedded identification code is exported as a file to achieve authentication and traceability of the video content.

[0122] A unique identification code is generated by a timestamp service agency, and the unique identification of the video content is achieved by embedding it in the metadata of the original video frame. Based on this process, the traceability and authentication of the video content can be achieved. This method can effectively prevent the video content from being tampered with or stolen, improve the authenticity and copyright protection of the video, and through the combination of timestamp and unique identification code, it can provide reliable identity authentication for the video content, further optimizing the security and credibility of the video.

[0123] Specifically, the step S32 includes:

[0124] Step S321, encoding the identification code in digital form to form an encoded identification code, and determining the length of the identification code;

[0125] Step S322, specifying an embedded field in the metadata of the video frame, and embedding the identification code into the embedded field;

[0126] Step S323, selecting a central area or a peripheral area of ​​the video frame as a position for embedding the identification code, wherein the central area is an area of ​​the video frame containing main visual content, and the peripheral area is an area of ​​the video frame containing background and border;

[0127] Step S324, hiding the encoded identification code in the pixel value of the video frame by using the least significant bit based steganography in the embedded field according to the embedded position, so as to embed the encoded identification code into the metadata of the video frame;

[0128] Step S325: determining whether the encoding identification code is successfully embedded into the video frame by checking the accuracy of the encoding identification code and verifying the integrity of the encoding identification code.

[0129] First, the identification code is encoded to form an encoded identification code and the length is determined. Then, the embedding field is specified and the encoded identification code is embedded in the metadata. Subsequently, the center or peripheral area is selected as the embedding position, the center area is the main visual content, and the peripheral area is the background. Then, the encoded identification code is hidden in the pixels using the least significant bit steganography. Finally, the identification code is successfully embedded in the video frame through verification and accuracy checks.

[0130] By using digital coding and hiding it in the pixels of the video frame, the identification code is embedded in the metadata through steganography to verify the accuracy and integrity of the video content. This identification code embedding method can improve the uniqueness and traceability of the video content, prevent tampering or theft, and provide reliable technical support for video content authentication and copyright protection. Based on the accuracy and integrity verification of the encoded identification code, the process can ensure that the identification code is successfully embedded in the video frame.

[0131] Specifically, the step S325 includes:

[0132] Step S3251, extracting metadata of the embedded field of the video frame in which the identification code is embedded using a preset feature extraction algorithm;

[0133] Step S3252, decoding the encoding identification code of the designated embedded field from the extracted metadata of the embedded field by performing an inverse operation on the encoding step of the encoding identification code to form a decoding identification code, and determining the length of the decoding identification code;

[0134] Step S3253, comparing and verifying the decoded identification code with the identification code,

[0135] If the decoded identification code is consistent with the identification code, it is determined that the encoded identification code is successfully embedded in the metadata of the video frame;

[0136] If the decoded identification code is inconsistent with the identification code, it is determined that the encoding identification code embedding fails;

[0137] Step S3254, comparing the length of the decoded identification code with the length of the identification code,

[0138] If the length of the decoded identification code is less than the length of the identification code, it is determined that the metadata of the identification code embedded in the video frame is incomplete;

[0139] If the length of the decoded identification code is equal to the length of the identification code, it is determined that the metadata of the identification code embedded in the video frame is complete.

[0140] First, a feature extraction algorithm is used to extract the video frame metadata with the embedded identification code. Next, the encoded identification code is decoded from the extracted metadata to form a decoded identification code, and the length is determined. Subsequently, the decoded identification code is compared and verified with the identification code. If they are consistent, the embedding is successful, otherwise the embedding fails. Finally, the length of the decoded identification code is compared to determine whether the embedding is complete.

[0141] Through feature extraction algorithms and decoding operations, it is determined whether the identification code is successfully embedded in the video frame metadata, and then the integrity of the embedding is confirmed. This verification method can effectively ensure the accuracy and integrity of the identification code, improve the authenticity and uniqueness of the video content, and can determine the embedding status of the identification code based on the comparison and verification of the decoded identification code with the original identification code, which helps to prevent information tampering and protect the security of video content. At the same time, by comparing the length of the decoded identification code with the length of the original identification code, the embedding integrity of the path can be further confirmed, and the accuracy of traceability and the traceability of significance can be improved.

[0142] Specifically, step S4 includes:

[0143] Step S41, extracting a target video frame from the captured target video, and extracting an original video frame corresponding to the target video frame from the original video by comparing the timestamp of the target video;

[0144] Step S42, using the optimized feature extraction algorithm, respectively extracting the pattern, edge and texture features of the identification code from the video frames of the target video and the video frames of the original video, and performing feature fusion on the pattern, edge and texture features of the identification code;

[0145] Step S43, by using similarity calculation, the fused features of the video frame of the target video and the video frame of the original video are compared to determine whether the identification code in the target video frame matches the identification code in the original video frame.

[0146] First, the target video frame is extracted, and the corresponding original video frame is obtained by timestamp comparison. Then, the identification code features of the target video and the original video are extracted respectively using the optimized feature extraction algorithm, and feature fusion is performed. Finally, the data after feature fusion is compared through similarity calculation to confirm whether the identification code in the target video frame matches the original video frame.

[0147] Feature extraction and similarity calculation are used to confirm the match between the identification code in the target video and the original video frame, so as to realize the identity authentication and authenticity comparison of the video content. This method can ensure the integrity and uniqueness of the video content, prevent information tampering and forgery, and improve the accuracy and effectiveness of video content authentication. Based on the similarity calculation of the fused features, the matching of the identification code can be determined, which helps to ensure the legitimacy of the source and copyright of the video content, and further enhance the authenticity and credibility of the video content.

[0148] Specifically, in step S42, the feature fusion of the pattern, edge and texture features of the identification code includes:

[0149] For the pattern, edge and texture features of the identification code, feature calculations at the pixel level and the region level are calculated respectively.

[0150] For pattern features, the optimized feature extraction algorithm is used to extract the pattern information of each pixel for description and summarize the entire area;

[0151] For edge features, the edge strength of each pixel is extracted through the optimized feature detection algorithm, and edge features are extracted for the entire area;

[0152] For texture features, the texture information of each pixel is calculated through the optimized feature extraction algorithm, and texture features are extracted for the entire area;

[0153] Setting the weights of the pixel-level features and the region-level features of the pattern, edge and texture features of the identification code,

[0154] For pattern features, the pixel-level feature weight is set to a, and the region-level feature weight is set to 1-a;

[0155] For edge features, the pixel-level feature weight is set to b, and the region-level feature weight is set to 1-b;

[0156] For texture features, the pixel-level feature weight is set to c, and the region-level feature weight is set to 1-c;

[0157] The pixel-level features and the region-level features are weighted averaged for the pattern, edge, and texture features to obtain fused features, and the fused features are combined to form the final fused features.

[0158] First, the pattern, edge and texture features of the identification code are fused, including feature calculation at the pixel level and region level. Then, each feature is extracted and weighted through an optimization algorithm. Finally, the final fused feature is obtained.

[0159] Through the steps of comprehensive analysis and fusion of identification code features, combined with pixel-level and regional-level feature calculation and weight setting, a more comprehensive and accurate feature description and extraction is achieved, thereby improving the uniqueness and authenticity of the identification code. This feature fusion method can accurately capture the pattern, edge and texture features of the identification code, effectively distinguish the features of different video content, and improve the accuracy and security of video content authentication. Feature fusion based on comprehensive weights can effectively reduce the redundancy of feature information and increase the richness of feature information, which helps to improve the recognition and traceability of video content.

[0160] Specifically, the step S43 includes:

[0161] Step S431, fusing the fusion features of the video frame of the target video and the video frame of the original video to form a fusion feature vector;

[0162] Step S432, bringing the fused feature vector into the Euclidean distance calculation formula, calculating the similarity value of the fused features of the video frame of the target video and the video frame of the original video, and judging whether the identification code in the target video frame matches the identification code in the original video frame by comparing the similarity value with the similarity threshold.

[0163] If the similarity value is greater than the similarity threshold, determining that the identification code in the target video frame matches the identification code in the original video frame;

[0164] If the similarity value is less than or equal to the similarity threshold, it is determined that the identification code in the target video frame does not match the identification code in the original video frame.

[0165] First, the fusion features of the target video frame and the original video frame are combined into a feature vector, and then the similarity value is calculated through the Euclidean distance. Finally, the similarity value is compared with the threshold to determine whether the identification code in the target video frame matches that in the original video frame.

[0166] Through the similarity calculation method, it can ensure that the identification codes of the target video frame and the original video frame are effectively matched during the identification code verification process, which improves the accuracy of video content identification and matching precision. This similarity analysis based on Euclidean distance calculation can effectively determine the matching of identification codes, thereby ensuring the authenticity and integrity of video content, avoiding information tampering and forgery, and improving the credibility and accuracy of video content traceability. Based on the comparison of the similarity value with the set threshold, the matching of identification codes can be accurately determined, providing reliable technical support for digital copyright protection and video content authentication.

[0167] The similarity threshold is a threshold used to determine whether two video frames match each other after similarity calculation, and is generally set at 0.7-0.9. In this embodiment, the similarity threshold is set to 0.8.

[0168] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

[0169] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A video projection shooting source tracing method, characterized in that: include: Step S1, collecting video frames of the original video that has not been projected; Step S2, by detecting the resolution and border width of the image of the screen to be projected, to determine whether the screen type of the screen to be projected is a spliced ​​screen or a large-size LCD TV, and according to the screen type, using a data set containing the screen type to calculate the accuracy of a preset feature extraction algorithm, If the accuracy of the feature extraction algorithm is lower than a preset accuracy threshold, it is determined that the feature extraction algorithm needs to be optimized, and then, according to the screen type, the extracted features are reselected and the features are merged to optimize the feature extraction algorithm; Step S3, generating a hash value of the video feature information and combining it with the timestamp to generate a unique identification code, embedding the identification code into the metadata of the video frame, encoding it in digital form and hiding it using least significant bit steganography, extracting the embedded field metadata of the video frame, decoding and verifying the accuracy and integrity of the encoded identification code, comparing the length of the decoded identification code with the unique identification code, determining whether the embedding is successful, and checking the embedding integrity; Step S4, shooting a target video obtained by projecting the original video embedded with the identification code to obtain a video frame of the target video, extracting features of the identification code from the video frame of the target video and the video frame of the original video using an optimized feature extraction algorithm, and performing feature information matching by comparing the features of the identification code; Step S5, judging whether the source of the target video is correct according to the result of the feature information matching, if the feature information matching is successful, then judging that the source of the video is correct; The step S4 comprises: Step S41, extracting a target video frame from the captured target video, and extracting an original video frame corresponding to the target video frame from the original video by comparing the timestamp of the target video; Step S42, using the optimized feature extraction algorithm, respectively extracting the pattern, edge and texture features of the identification code from the video frames of the target video and the video frames of the original video, and performing feature fusion on the pattern, edge and texture features of the identification code; Step S43, by using similarity calculation, comparing the fused features of the video frame of the target video and the video frame of the original video, so as to determine whether the identification code in the target video frame matches the identification code in the original video frame; In the step S42, the feature fusion of the pattern, edge and texture features of the identification code includes: For the pattern, edge and texture features of the identification code, feature calculations at the pixel level and the region level are calculated respectively. For pattern features, the optimized feature extraction algorithm is used to extract the pattern information of each pixel for description and summarize the entire area; For edge features, the edge strength of each pixel is extracted through the optimized feature detection algorithm, and edge features are extracted for the entire area; For texture features, the texture information of each pixel is calculated through the optimized feature extraction algorithm, and texture features are extracted for the entire area; Set the weights of the pixel-level features and region-level features of the pattern, edge and texture features of the identification code, For pattern features, the pixel-level feature weight is set to a, and the region-level feature weight is set to 1-a; For edge features, the pixel-level feature weight is set to b, and the region-level feature weight is set to 1-b; For texture features, the pixel-level feature weight is set to c, and the region-level feature weight is set to 1-c; Performing weighted average of pixel-level features and region-level features on pattern, edge and texture features respectively to obtain fused features, and combining the fused features to form a final fused feature; The step S43 comprises: Step S431, fusing the fusion features of the video frame of the target video and the video frame of the original video to form a fusion feature vector; Step S432, bringing the fused feature vector into the Euclidean distance calculation formula, calculating the similarity value of the fused features of the video frame of the target video and the video frame of the original video, and judging whether the identification code in the target video frame matches the identification code in the original video frame by comparing the similarity value with the similarity threshold. If the similarity value is greater than the similarity threshold, determining that the identification code in the target video frame matches the identification code in the original video frame; If the similarity value is less than or equal to the similarity threshold, it is determined that the identification code in the target video frame does not match the identification code in the original video frame.

2. The video projection shooting source tracing method according to claim 1 is characterized in that: The step S2 comprises: Step S21, collecting an image of the screen to be projected, obtaining the resolution of the image by fast Fourier transform, extracting the border width of the screen to be projected in the image by using the Canny edge detection algorithm, and determining the screen type according to the resolution and border width of the screen to be projected, wherein the screen types include spliced ​​screens and large-size LCD TVs; Step S22, according to the determined screen type, by using a data set containing the screen type to calculate the accuracy, the data set being image sample data of the screen type, and judging whether the feature extraction algorithm needs to be optimized according to the calculated accuracy and a preset accuracy threshold, If the accuracy of the feature extraction algorithm is lower than a preset accuracy threshold, it is determined that optimization is required; Step S23: If it is determined that optimization is needed, the feature extraction algorithm is optimized according to the screen type.

3. The video projection shooting source tracing method according to claim 2 is characterized in that: In the step S21, determining the screen type according to the resolution and border width of the screen to be projected includes: Compare the resolution of the screen to be projected with the standard resolution, compare the border width of the screen to be projected with the standard border width, and determine the screen type of the screen to be projected according to the comparison results. If the resolution of the screen to be projected is greater than the standard resolution and the border width of the screen to be projected is greater than the standard border width, it is determined that the screen type of the screen to be projected is a spliced ​​screen; If the resolution of the screen is less than or equal to the standard resolution and the border width of the screen to be projected is less than or equal to the standard border width, it is determined that the screen type of the screen to be projected is a large-size LCD TV.

4. The video projection shooting source tracing method according to claim 3 is characterized in that: The step S23 includes: Step S231, reselecting the extracted features. For a spliced ​​screen, select extracting pixel-level features. For a large-size LCD screen, select extracting region-level features. Step S232, fusing the pixel-level features and the region-level features by weighted averaging.

5. The video projection shooting source tracing method according to claim 4 is characterized in that: The step S3 comprises: Step S31, using a timestamp service to generate a hash value of the video feature information, and combining it with the current timestamp to generate a unique identification code in the form of a hash value; Step S32, embedding the generated identification code into the video frame of the original video by adding the identification code to the metadata of the video frame, wherein the metadata is a set of information describing the content and attributes of the video frame; Step S33, exporting the video frame embedded with the identification code as a file.

6. The video projection shooting source tracing method according to claim 5 is characterized in that: The step S32 comprises: Step S321, encoding the identification code in digital form to form an encoded identification code, and determining the length of the identification code; Step S322, specifying an embedded field in the metadata of the video frame, and embedding the identification code into the embedded field; Step S323, selecting a central area or a peripheral area of ​​the video frame as a position for embedding the identification code, wherein the central area is an area of ​​the video frame containing main visual content, and the peripheral area is an area of ​​the video frame containing background and border; Step S324, hiding the encoded identification code in the pixel value of the video frame by using the least significant bit based steganography in the embedded field according to the embedded position, so as to embed the encoded identification code into the metadata of the video frame; Step S325: determining whether the encoding identification code is successfully embedded into the video frame by checking the accuracy of the encoding identification code and verifying the integrity of the encoding identification code.

7. The video projection shooting source tracing method according to claim 6 is characterized in that: The step S325 includes: Step S3251, extracting metadata of the embedded field of the video frame in which the identification code is embedded using a preset feature extraction algorithm; Step S3252, decoding the encoding identification code of the designated embedded field from the extracted metadata of the embedded field by performing an inverse operation on the encoding step of the encoding identification code to form a decoding identification code, and determining the length of the decoding identification code; Step S3253, comparing and verifying the decoded identification code with the identification code, If the decoded identification code is consistent with the identification code, it is determined that the encoded identification code is successfully embedded in the metadata of the video frame; If the decoded identification code is inconsistent with the identification code, it is determined that the encoding identification code embedding fails; Step S3254, comparing the length of the decoded identification code with the length of the identification code, If the length of the decoded identification code is less than the length of the identification code, it is determined that the metadata of the identification code embedded in the video frame is incomplete; If the length of the decoded identification code is equal to the length of the identification code, it is determined that the metadata of the identification code embedded in the video frame is complete.