Video stream data security enhancement method and device, electronic equipment and storage medium

By using Gaussian filtering and Laplace transform in video streaming data for edge detection, and embedding sensitive data in stream encryption algorithm, the problem of embedding sensitive data in the prior art affects image quality and video fluency, achieving high security and extractable data hiding.

CN119583733AInactive Publication Date: 2025-03-07北京建恒信安科技有限公司
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202510131536.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-06
Publication Date
2025-03-07
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When the prior art embeds sensitive data in multimedia content, it often leads to a decrease in image quality or a decrease in video playback fluency, and the embedded data is easily detected, and the recipient cannot accurately extract sensitive data.

Method used

The video stream data is edge-detected through Gaussian filtering and Laplace transform, and the plain text data is encrypted in combination with the stream encryption algorithm, and the encrypted data is embedded in the edge pixels of the video stream data.

Benefits of technology

It improves the security and extractability of sensitive data hidden in video stream data, avoids the influence of intuitive effects on video stream data, and makes embedded data difficult to be easily detected.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119583733A_ABST
    Figure CN119583733A_ABST
Patent Text Reader

Abstract

The invention provides a video stream data security enhancement method and device, electronic equipment and a storage medium, and relates to the technical field of data processing.When plaintext data is steganographically written into original video stream data, an edge detection mode and a stream encryption algorithm based on Gaussian filtering and Laplacian transformation are adopted, according to the method, the edge pixel points in the video stream data can be accurately detected based on an edge detection mode of Gaussian filtering and Laplacian transformation, and the positions of the detected edge pixel points do not change before and after the target encrypted data is embedded in the original video stream data, so that the visual effect of the video stream data is not influenced, and the accuracy of the video stream data is improved. According to the method, the embedded data is not easy to perceive, meanwhile, a receiver can accurately extract the embedded plaintext data from the target video stream data, and the stream encryption algorithm can enhance the security of the video stream data, so that the security and extractability of the hidden sensitive data in the video stream data are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, electronic device and storage medium for enhancing the security of video stream data. Background Art

[0002] With the development of multimedia technologies (such as videos and images), these media forms have been widely used in data communications. In order to enhance data security, a common practice is to embed sensitive data in multimedia content.

[0003] Existing methods typically use edge detection algorithms such as the Canny edge detector or deep learning methods to detect edge pixels in an image and then embed sensitive data into these edge pixels to achieve sensitive data hiding. However, in practical applications, these methods often compromise the intuitiveness of multimedia, such as reduced image quality or decreased video playback smoothness, making the embedded sensitive data easily detectable. Furthermore, the edge pixels of the image after embedding sensitive data change, making it difficult for the recipient to accurately extract the sensitive data. Summary of the Invention

[0004] The object of the present invention is to provide a method, device, electronic device and storage medium for enhancing the security of video stream data, so as to improve the security and extractability of sensitive data hidden in video stream data.

[0005] In a first aspect, the present invention provides a method for enhancing the security of video stream data, comprising: Obtaining the original video stream data to be processed and the plaintext data to be embedded; Perform edge detection on the original video stream data through Gaussian filtering and Laplace transform to obtain edge pixel points of the original video stream data; Encrypt the plaintext data using a stream encryption algorithm to obtain target encrypted data; The target encrypted data is embedded into the edge pixels of the original video stream data to obtain the target video stream data.

[0006] In an optional embodiment, edge detection is performed on the original video stream data by Gaussian filtering and Laplace transform to obtain edge pixel points of the original video stream data, including: Performing Gaussian filtering on each video frame in the original video stream data to obtain a filtered video frame; The Laplace operator is used to convolve the filtered video frame to obtain a Gaussian-Laplacian response image; Each pixel point in the Gaussian-Laplace response image is traversed in sequence, and the pixel points that meet the preset conditions are determined as edge pixels; wherein the preset conditions include that the absolute value of the pixel value difference between the pixel point and the next adjacent pixel point is greater than a preset threshold.

[0007] In an optional embodiment, performing Gaussian filtering on each video frame in the original video stream data to obtain a filtered video frame includes: Perform convolution on each video frame using the following Gaussian kernel function G(x,y) to obtain the filtered video frame: ; Where (x, y) is the coordinate of a pixel in the video frame, and σ is the standard deviation of the video frame.

[0008] In an optional embodiment, encrypting the plaintext data using a stream encryption algorithm to obtain target encrypted data includes: Use ChaCha20 to encrypt the plaintext data to obtain the target encrypted data.

[0009] In an optional embodiment, embedding target encrypted data into edge pixels of original video stream data to obtain target video stream data includes: Traversing the encrypted values ​​of the target encrypted data, and sequentially extracting an edge pixel point from each edge pixel point of the original video stream data; When the current encrypted value is reached, the pixel value of the edge pixel currently taken out is replaced with the current encrypted value; Until the target encrypted data is traversed, the target video stream data after pixel value replacement is obtained.

[0010] In an optional embodiment, after embedding the target encrypted data into edge pixels of the original video stream data to obtain the target video stream data, the method further includes: Perform edge detection on the target video stream data through Gaussian filtering and Laplace transform to obtain edge pixel points of the target video stream data; According to the preset number of encrypted values, target encrypted data is extracted from the edge pixels of the target video stream data; The target encrypted data is decrypted using a stream encryption algorithm to obtain plaintext data.

[0011] In an optional embodiment, extracting target encrypted data from edge pixels of target video stream data according to a preset number of encrypted values ​​includes: Determine target pixel points embedded with target encrypted data from the target video stream data, where the target pixel points are edge pixel points of the target video stream data that are the same as the number of the previous encrypted values; The pixel values ​​of the target pixels are extracted in sequence to obtain the target encrypted data.

[0012] In a second aspect, the present invention provides a video stream data security enhancement device, comprising: An acquisition module, used to acquire the original video stream data to be processed and the plaintext data to be embedded; The detection module is used to perform edge detection on the original video stream data through Gaussian filtering and Laplace transform to obtain edge pixel points of the original video stream data; The encryption module is used to encrypt the plaintext data using a stream encryption algorithm to obtain target encrypted data; The embedding module is used to embed the target encrypted data into the edge pixels of the original video stream data to obtain the target video stream data.

[0013] In a third aspect, the present invention provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the video stream data security enhancement method of any one of the aforementioned embodiments is implemented.

[0014] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the video stream data security enhancement method of any one of the aforementioned embodiments is executed.

[0015] The video stream data security enhancement method, device, electronic device, and storage medium provided by the present invention can obtain original video stream data to be processed and plaintext data to be embedded; perform edge detection on the original video stream data through Gaussian filtering and Laplace transform to obtain edge pixels of the original video stream data; encrypt the plaintext data through a stream encryption algorithm to obtain target encrypted data; and embed the target encrypted data into the edge pixels of the original video stream data to obtain the target video stream data. In this way, when steganographically writing plaintext data into the original video stream data, an edge detection method based on Gaussian filtering and Laplace transform and a stream encryption algorithm are adopted. The edge detection method based on Gaussian filtering and Laplace transform can accurately detect edge pixels in the video stream data, and the positions of the detected edge pixels do not change before and after the target encrypted data is embedded in the original video stream data, thereby not affecting the visual effect of the video stream data, making the embedded data less noticeable. At the same time, the receiver can accurately extract the embedded plaintext data from the target video stream data. The stream encryption algorithm can enhance the security of the video stream data, thereby improving the security and extractability of sensitive data hidden in the video stream data. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0017] Figure 1 A schematic diagram of a process for enhancing the security of video stream data provided by an embodiment of the present invention; Figure 2 A schematic diagram of a process for enhancing the security of another video stream data provided by an embodiment of the present invention; Figure 3 A schematic structural diagram of a video stream data security enhancement device provided by an embodiment of the present invention; Figure 4 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0018] The following will clearly and completely describe the technical solutions of the present invention in conjunction with the embodiments. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0019] Hiding sensitive data within multimedia (such as videos and images) is a common practice in secure data communications. Current methods often alter the position of edge pixels after embedding sensitive data within multimedia, affecting the visual experience of the multimedia. This makes the embedded sensitive data easily detectable and prevents the recipient from accurately extracting the sensitive data. Therefore, embodiments of the present invention provide a method, device, electronic device, and storage medium for enhancing the security of video stream data. These methods combine edge detection based on Gaussian filtering and Laplace transforms with a stream encryption algorithm to improve the security and extractability of sensitive data hidden within video stream data.

[0020] To facilitate understanding of this embodiment, a method for enhancing security of video stream data disclosed in an embodiment of the present invention is first introduced in detail.

[0021] The embodiment of the present invention provides a method for enhancing the security of video stream data, which can be executed by an electronic device with data processing capabilities. Figure 1 The flowchart of a method for enhancing the security of video stream data is shown, and the method mainly includes the following steps S110 to S140: Step S110: obtaining the original video stream data to be processed and the plaintext data to be embedded.

[0022] The above plaintext data is data to be hidden in the original video stream data, and may be sensitive data or other data that needs to be encrypted.

[0023] Step S120 , performing edge detection on the original video stream data through Gaussian filtering and Laplace transform to obtain edge pixel points of the original video stream data.

[0024] The edge detection method based on Gaussian filtering and Laplace transform combines the smoothing effect of Gaussian filtering and the second-order differential characteristics of the Laplace operator, which can highlight the significant change areas in the image, namely the edges.

[0025] In some possible embodiments, the above-mentioned step S120 may include: performing Gaussian filtering on each video frame in the original video stream data to obtain a filtered video frame; performing convolution on the filtered video frame using a Laplace operator to obtain a Gaussian-Laplacian response image; sequentially traversing each pixel point in the Gaussian-Laplacian response image, and determining the pixel points that meet preset conditions as edge pixels; wherein the preset conditions include that the absolute value of the pixel value difference between the pixel point and the next adjacent pixel point is greater than a preset threshold.

[0026] The above preset threshold can be set according to actual needs and is not limited here. For example, the preset threshold can be 16. If the pixel value of pixel (3, 5) in the Gaussian-Laplace response image is 7, and the pixel value of pixel (3, 6) in the Gaussian-Laplace response image is 29, then the absolute value of the difference between the two pixel values ​​is 22, which is greater than the preset threshold 16. Pixel (3, 5) is determined to be an edge pixel.

[0027] Alternatively, the following Gaussian kernel function can be used G ( x , y ) Perform convolution operation on each video frame to obtain the filtered video frame: ; in,( x , y ) is the coordinate of a pixel point in the video frame, σ is the standard deviation of the video frame.

[0028] Step S130: encrypt the plaintext data using a stream encryption algorithm to obtain target encrypted data.

[0029] The stream encryption algorithm may be, but is not limited to, Salsa20, ChaCha20, or AES in stream mode (such as CTR mode).

[0030] In some possible embodiments, the above step S130 may include: encrypting the plaintext data using ChaCha20 to obtain target encrypted data.

[0031] Furthermore, to enhance security, multiple stream encryption algorithms can be used for multiple or mixed encryption of plaintext data. Optionally, the plaintext data is double-encrypted using Salsa20 and then ChaCha20 to obtain target encrypted data. Optionally, the plaintext data is split into two parts, a first sub-data and a second sub-data, which are encrypted using Salsa20 and then ChaCha20, respectively. The encrypted first sub-data and the encrypted second sub-data are then combined in a preset combination to obtain the target encrypted data; the combination can be set according to actual needs and is not limited here.

[0032] Step S140: embed the target encrypted data into the edge pixels of the original video stream data to obtain the target video stream data.

[0033] In some possible embodiments, the above-mentioned step S140 may include: traversing the encrypted values ​​of the target encrypted data, and taking out an edge pixel point from each edge pixel point of the original video stream data in turn; when traversing to the current encrypted value, replacing the pixel value of the currently taken edge pixel point with the current encrypted value; until the target encrypted data is traversed, the target video stream data after the pixel value is replaced is obtained.

[0034] The video stream data security enhancement method provided by the embodiment of the present invention can obtain the original video stream data to be processed and the plaintext data to be embedded; perform edge detection on the original video stream data through Gaussian filtering and Laplace transform to obtain edge pixels of the original video stream data; encrypt the plaintext data through a stream encryption algorithm to obtain target encrypted data; and embed the target encrypted data into the edge pixels of the original video stream data to obtain the target video stream data. In this way, when steganographically writing the plaintext data into the original video stream data, an edge detection method based on Gaussian filtering and Laplace transform and a stream encryption algorithm are adopted. The edge detection method based on Gaussian filtering and Laplace transform can accurately detect the edge pixels in the video stream data, and the positions of the detected edge pixels do not change before and after the target encrypted data is embedded in the original video stream data, thereby not affecting the visual effect of the video stream data, making the embedded data difficult to detect. At the same time, the receiver can accurately extract the embedded plaintext data from the target video stream data. The stream encryption algorithm can enhance the security of the video stream data, thereby improving the security and extractability of sensitive data hidden in the video stream data.

[0035] Furthermore, this embodiment provides a method for extracting plaintext data from the target video stream data. Specifically, the method further includes: performing edge detection on the target video stream data using Gaussian filtering and Laplace transform to obtain edge pixels of the target video stream data; extracting target encrypted data from the edge pixels of the target video stream data based on a preset number of encrypted values; and decrypting the target encrypted data using a stream encryption algorithm to obtain plaintext data. Thus, as long as the user knows the number of encrypted values, they can accurately extract plaintext data from the target video stream data.

[0036] In some possible embodiments, the above-mentioned target encrypted data can be extracted in the following manner: from the target video stream data, determine the target pixel points embedded with the target encrypted data, the target pixel points being the edge pixel points of the number of the previous encrypted values ​​in the target video stream data; extract the pixel values ​​of the target pixel points in turn to obtain the target encrypted data.

[0037] It should be noted that some steps involved in extracting plaintext data are the same as some steps of embedding plaintext data mentioned above. For details, please refer to the corresponding content of the above embodiment, which will not be repeated here.

[0038] For ease of understanding, the following describes the above-mentioned video stream data security enhancement method in detail, taking the embedding of sensitive data in the video stream and the stream encryption algorithm as ChaCha20 as an example.

[0039] This embodiment of the present invention combines Gaussian filtering, Laplace transforms, and the ChaCha20 encryption algorithm to hide sensitive data in multimedia. Gaussian filtering and Laplace transforms help detect locations within video frames suitable for hiding data, while ChaCha20 encrypts the sensitive data before embedding it in these locations, enhancing data security.

[0040] The method provided in this embodiment includes detecting edges within a video frame to identify suitable locations for hiding data, performing XOR encryption on the data using an encryption key generated using the ChaCha20 algorithm, and embedding the encrypted data within the identified edges to complete the encryption. Combining Gaussian filtering and Laplace transforms with the ChaCha20 algorithm provides a fast, robust, and secure method for hiding sensitive data.

[0041] See also Figure 2The flowchart of another method for enhancing the security of video stream data is shown. After selecting the media (i.e., the original video stream data to be processed) and the data (sensitive data to be embedded), the process of hiding the sensitive data in the media mainly includes the following three steps: using Gaussian Laplace to detect the video frame edge of the media, encrypting the data using chacha20 (i.e., ChaCha20), and embedding the encrypted data into the edge of the video frame to complete the hiding of the sensitive data.

[0042] The above three steps are introduced in detail below.

[0043] 1. Use Gaussian Laplacian to detect the edges of media video frames: Video frame edge detection involves performing edge detection on each frame in the video stream, detecting the edges of people or objects within them and embedding sensitive data within those edges. Embedding sensitive data at the edges of video frames affects only the edges of the objects, leaving the original image information intact. This avoids distortion caused by embedding data directly in the center of an object.

[0044] The input data for this step is an image. Simply put, this part involves finding locations within the image where sensitive data can be embedded. The edges of the detected video frame are where the sensitive data will be embedded.

[0045] 1.1 Use the following equation to estimate the Gaussian kernel: ; in,( x , y ) is the coordinate of a pixel point in the video frame, σ is the standard deviation of the video frame.

[0046] Estimate the Gaussian kernel for each pixel in the image, that is, perform Gaussian filtering.

[0047] 1.2 Laplace extraction of Gaussian equation: ; This step is to perform Laplace extraction on the above equation, also called Laplace calculation. The Gaussian kernel above can detect the edge information of the image, and then perform a Laplace transform to further optimize the edge information.

[0048] 1.3 Use Gaussian kernel and Laplacian to perform edge detection on video frames.

[0049] This step is to calculate the Gaussian kernel and Laplace on the video frame to obtain the edge information in the image (edge ​​information is edge pixels, which are used to embed sensitive data).

[0050] ; Based on the above formula, an array LG can be output. LG consists of the positions of edge pixels in the video frame, such as [(3,4),(18,22),(28,33),()…()].

[0051] 2. Encrypt the data using chacha20: Chacha20 is a stream encryption algorithm that is particularly suitable for processing video streams.

[0052] 2.1 Generate an encryption key: Create a 256-bit encryption key using a user-provided key and any 96-bit random number. A 256-bit encryption key can be generated using a key derivation function (KDF), such as PBKDF2, bcrypt, scrypt, or Argon2, based on the user-provided key and any 96-bit random number.

[0053] 2.2 Initialization: Generate the initial encryption state using the encryption key and a new random number.

[0054] 2.3 Data Encryption: Each block of sensitive data is encrypted using the encryption state, and the state is updated after each block is processed. It should be noted that the block division method for sensitive data can be selected according to actual needs and is not limited here.

[0055] 2.4 Output: Perform an XOR operation on the sensitive data and the encryption result of step 2.3 to create the final ciphertext (i.e., the encrypted data), denoted as ED.

[0056] 3. Embed the encrypted data into the edge of the video frame: Using ED, the pixel values ​​of the pixel positions in LG are replaced to hide sensitive data.

[0057] LG is a set of edge pixel locations. In a video, each frame will have a set of edge pixel location information. By traversing the entire video, a large array will be obtained.

[0058] ED is an array that uses Chacha20 to encrypt the embedded sensitive data, which is theoretically smaller than LG.

[0059] Illustratively, LG and ED are as follows: LG=[[(1,4),(22,55),(56,789)],[(23,34),(678,867),(567,756)]…] ED=[23,54,123,54,65,34,65] Take each pixel from LG in turn: First, take out the first pixel point (1,4) in the first array. (1,4) represents the pixel point with coordinates 1 and 4 in the first frame image. Take out the first value 23 in ED; Change the pixel value of pixel 1,4 in the first frame image to 23.

[0060] By analogy, after traversing all EDs, the embedding of sensitive data in the video stream is completed.

[0061] Corresponding to the above-mentioned video stream data security enhancement method, the embodiment of the present invention also provides a video stream data security enhancement device. Figure 3 The structure diagram of a video stream data security enhancement device shown in FIG. 1 includes: An acquisition module 301 is used to acquire the original video stream data to be processed and the plaintext data to be embedded; The detection module 302 is used to perform edge detection on the original video stream data through Gaussian filtering and Laplace transform to obtain edge pixel points of the original video stream data; The encryption module 303 is used to encrypt the plaintext data using a stream encryption algorithm to obtain target encrypted data; The embedding module 304 is configured to embed the target encrypted data into the edge pixels of the original video stream data to obtain the target video stream data.

[0062] The video stream data security enhancement device provided by the embodiment of the present invention can obtain the original video stream data to be processed and the plaintext data to be embedded; perform edge detection on the original video stream data through Gaussian filtering and Laplace transform to obtain edge pixels of the original video stream data; encrypt the plaintext data through a stream encryption algorithm to obtain target encrypted data; and embed the target encrypted data into the edge pixels of the original video stream data to obtain the target video stream data. In this way, when steganographically writing the plaintext data into the original video stream data, an edge detection method based on Gaussian filtering and Laplace transform and a stream encryption algorithm are adopted. The edge detection method based on Gaussian filtering and Laplace transform can accurately detect the edge pixels in the video stream data, and the positions of the detected edge pixels do not change before and after the target encrypted data is embedded in the original video stream data, thereby not affecting the visual effect of the video stream data, making the embedded data difficult to detect. At the same time, the receiver can accurately extract the embedded plaintext data from the target video stream data. The stream encryption algorithm can enhance the security of the video stream data, thereby improving the security and extractability of sensitive data hidden in the video stream data.

[0063] Furthermore, the above-mentioned detection module 302 is specifically used to: perform Gaussian filtering on each video frame in the original video stream data to obtain a filtered video frame; use the Laplace operator to convolve the filtered video frame to obtain a Gaussian-Laplacian response image; traverse each pixel point in the Gaussian-Laplacian response image in turn, and determine the pixel points that meet the preset conditions as edge pixels; wherein the preset conditions include that the absolute value of the pixel value difference between the pixel point and the next adjacent pixel point is greater than a preset threshold.

[0064] Furthermore, the detection module 302 is further configured to: G ( x , y ) Perform convolution operation on each video frame to obtain the filtered video frame: ; in,( x , y ) is the coordinate of a pixel point in the video frame, σ is the standard deviation of the video frame.

[0065] Furthermore, the encryption module 303 is specifically configured to encrypt the plaintext data using ChaCha20 to obtain target encrypted data.

[0066] Furthermore, the above-mentioned embedding module 304 is specifically used to: traverse the encrypted value of the target encrypted data, and take out an edge pixel point from each edge pixel point of the original video stream data in turn; when traversing to the current encrypted value, replace the pixel value of the currently taken edge pixel point with the current encrypted value; until the target encrypted data is traversed, the target video stream data after the pixel value is replaced is obtained.

[0067] Furthermore, the detection module 302 is further configured to: perform edge detection on the target video stream data through Gaussian filtering and Laplace transform to obtain edge pixel points of the target video stream data; The above device also includes: An extraction module is used to extract target encrypted data from edge pixels of target video stream data according to a preset number of encrypted values; The decryption module is used to decrypt the target encrypted data through the stream encryption algorithm to obtain the plaintext data.

[0068] Furthermore, the above-mentioned extraction module is specifically used to: determine the target pixel points embedded with target encrypted data from the target video stream data, the target pixel points being the edge pixel points of the first encrypted value number in the target video stream data; extract the pixel values ​​of the target pixel points in turn to obtain the target encrypted data.

[0069] The video stream data security enhancement device provided in this embodiment has the same implementation principle and technical effects as those of the aforementioned video stream data security enhancement method embodiment. For the sake of brief description, for matters not mentioned in the embodiment of the video stream data security enhancement device, reference may be made to the corresponding content in the aforementioned video stream data security enhancement method embodiment.

[0070] like Figure 4 As shown, an embodiment of the present invention provides an electronic device 400, including: a processor 401, a memory 402 and a bus, the memory 402 stores a computer program that can be run on the processor 401, when the electronic device 400 is running, the processor 401 and the memory 402 communicate through the bus, and the processor 401 executes the computer program to implement the above-mentioned video stream data security enhancement method.

[0071] Specifically, the memory 402 and processor 401 can be general-purpose memories and processors, which are not specifically limited here.

[0072] Embodiments of the present invention also provide a computer-readable storage medium storing a computer program that, when executed by a processor, executes the video stream data security enhancement method described in the preceding method embodiments. Such computer-readable storage media include various media capable of storing program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), RAM, a magnetic disk, or an optical disk.

[0073] The term "and / or" herein simply describes an association relationship between associated objects, indicating that three relationships can exist. For example, "A and / or B" can represent the existence of three situations: A alone, A and B simultaneously, and B alone. Furthermore, the term "at least one" herein refers to any combination of at least two of any one or more of a plurality of items. For example, "at least one of A, B, and C" can represent any one or more elements selected from the set consisting of A, B, and C.

[0074] In all examples shown and described herein, any specific values ​​should be interpreted as merely exemplary and not limiting, and thus other examples of the exemplary embodiments may have different values.

[0075] The flowcharts and block diagrams in the accompanying drawings show the possible implementation architectures, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment or part of code, and the module, program segment or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0076] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interface, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0077] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules may be selected to achieve the purpose of this embodiment according to actual needs.

[0078] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0079] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for enhancing the security of video stream data, characterized in that: include: Obtaining the original video stream data to be processed and the plaintext data to be embedded; Performing edge detection on the original video stream data by Gaussian filtering and Laplace transform to obtain edge pixel points of the original video stream data; Encrypting the plaintext data by a stream encryption algorithm to obtain target encrypted data; The target encrypted data is embedded into the edge pixels of the original video stream data to obtain the target video stream data.

2. The method according to claim 1, characterized in that The step of performing edge detection on the original video stream data by Gaussian filtering and Laplace transform to obtain edge pixel points of the original video stream data includes: Performing Gaussian filtering on each video frame in the original video stream data to obtain a filtered video frame; Convolving the filtered video frame using a Laplace operator to obtain a Gaussian-Laplace response image; Each pixel point in the Gaussian-Laplacian response image is traversed in turn, and the pixel points that meet the preset conditions are determined as edge pixels; wherein the preset conditions include that the absolute value of the pixel value difference between the pixel point and the next adjacent pixel point is greater than a preset threshold.

3. The method according to claim 2, characterized in that The step of performing Gaussian filtering on each video frame in the original video stream data to obtain a filtered video frame includes: Through the following Gaussian kernel function G ( x , y ) performing a convolution operation on each of the video frames to obtain the filtered video frame: ; in,( x , y ) is the coordinate of a pixel point in the video frame, σ is the standard deviation of the video frame.

4. The method according to claim 1, characterized in that: The step of encrypting the plaintext data by a stream encryption algorithm to obtain target encrypted data includes: The plaintext data is encrypted using ChaCha20 to obtain the target encrypted data.

5. The method according to claim 1, characterized in that: The step of embedding the target encrypted data into edge pixels of the original video stream data to obtain the target video stream data comprises: Traversing the encrypted values ​​of the target encrypted data, and sequentially taking out an edge pixel point from each edge pixel point of the original video stream data; When the current encrypted value is reached, the pixel value of the edge pixel currently retrieved is replaced with the current encrypted value; Until the target encrypted data is traversed, the target video stream data after the pixel value is replaced is obtained.

6. The method according to claim 1, characterized in that After embedding the target encrypted data into edge pixels of the original video stream data to obtain the target video stream data, the method further includes: Performing edge detection on the target video stream data by Gaussian filtering and Laplace transform to obtain edge pixel points of the target video stream data; According to a preset number of encrypted values, the target encrypted data is extracted from edge pixels of the target video stream data; The target encrypted data is decrypted by the stream encryption algorithm to obtain the plaintext data.

7. The method according to claim 6, characterized in that The step of extracting the target encrypted data from edge pixels of the target video stream data according to a preset number of encrypted values ​​includes: Determine, from the target video stream data, target pixel points embedded with the target encrypted data, the target pixel points being edge pixel points of the target video stream data in the number of the encrypted values; The pixel values ​​of the target pixel points are extracted in sequence to obtain the target encrypted data.

8. A video stream data security enhancement device, characterized in that: include: An acquisition module, used to acquire the original video stream data to be processed and the plaintext data to be embedded; A detection module, used for performing edge detection on the original video stream data through Gaussian filtering and Laplace transform to obtain edge pixel points of the original video stream data; An encryption module, used for encrypting the plaintext data by a stream encryption algorithm to obtain target encrypted data; The embedding module is used to embed the target encrypted data into the edge pixel points of the original video stream data to obtain the target video stream data.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the computer program, the video stream data security enhancement method described in any one of claims 1-7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the video stream data security enhancement method according to any one of claims 1 to 7 is executed.

Citation Information

Patent Citations

  • Mixed bilateral image filtering method

    CN104778672A

  • Reversible information hiding method and system for enhancing image smoothness

    CN113766084A

  • Live video encryption transmission method based on cloud computing

    CN115190333A

  • Image edge determination method and device

    CN115482542A

  • Human visual model for data hiding

    CN1656501A