Picture watermark embedding method and system and computer equipment
By obtaining the color histogram of the image and calculating related parameters, dynamically adjusting the color channel value embedding watermarks, and using AES encryption and post-processing technology, the problems of insufficient concealment, robustness and security of watermarks in the existing technology are solved, and image watermark embedding with high concealment, robustness and security are achieved.
Patent Information
- Application Number
- CN202510203249.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-24
- Publication Date
- 2025-05-06
AI Technical Summary
The existing image watermarking technology has shortcomings in terms of concealment, robustness and security, especially in the lack of effective solutions in adaptive analysis of image color distribution and dynamic adjustment of watermark capacity.
By obtaining the color histogram of the image to be embedded, calculating the entropy value and gradient mean of the color distribution, obtaining the dynamic parameters of the color adjustment, dynamically adjusting the color channel value of the image to embed the watermark information, and encrypting the watermark information using the AES encryption algorithm, combining adaptive Gaussian filtering, bilateral filtering and distortion repair for post-processing.
It improves the concealment and robustness of the watermark, significantly improves the security of the watermark, ensures the original appearance of the image, and effectively prevents the watermark information from being extracted and tampered with unauthorized.
Smart Images

Figure CN119941484A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and more specifically, to a method, system and computer equipment for embedding a picture watermark. Background Art
[0002] With the widespread use of digital images on the Internet, image copyright protection and information security issues have become increasingly prominent. As a means of embedding identification information into images invisibly, dark watermark technology plays an important role in copyright tracking, content authentication and other fields. However, existing dark watermark technology still has significant deficiencies in terms of concealment and robustness, which are mainly reflected in the following aspects:
[0003] Existing technologies usually use fixed thresholds to adjust color channel values to embed watermarks, lacking adaptive analysis of image color distribution. This rigid adjustment easily introduces perceptible artifacts in color transition smooth areas, resulting in reduced watermark concealment.
[0004] Existing solutions often adopt a single watermark capacity mode and cannot dynamically adjust the amount of embedded data according to image features. For example, highly textured images can carry more watermark information without affecting concealment, but existing technologies fail to fully utilize this feature, resulting in low resource utilization or unbalanced robustness.
[0005] Therefore, it is urgent to develop an image watermark embedding method that is concealed, robust and secure. Summary of the invention
[0006] The present invention provides a method, system and computer equipment for embedding a picture watermark, so as to at least solve the problems of poor concealment, lack of robustness and poor security of the existing picture watermark embedding technology.
[0007] To achieve the above object, the present invention provides a method for embedding a picture watermark, comprising:
[0008] The color histogram acquisition step includes: acquiring an image to be embedded, and preprocessing the image to be embedded; identifying the main elements in the preprocessed image to be embedded based on feature extraction technology and performing color quantization to acquire a color histogram of the image to be embedded;
[0009] Color adjustment dynamic parameter acquisition step: acquiring color adjustment dynamic parameters based on the color histogram;
[0010] Watermark information preparation step: convert the watermark information to be embedded into binary form and encrypt it based on the encryption algorithm to obtain an encrypted binary watermark sequence;
[0011] Watermark embedding step: embedding the watermark information to be embedded into the image to be embedded based on the watermark bit value of the encrypted binary watermark sequence and the color adjustment dynamic parameter to obtain the image after the watermark is embedded.
[0012] Furthermore, the color adjustment dynamic parameter acquisition step includes:
[0013] Calculate the color distribution entropy value and the color distribution gradient mean based on the color histogram;
[0014] Based on the color distribution entropy value and the color distribution gradient mean, the color adjustment dynamic parameter is obtained through a linear weighting and truncation function.
[0015] Furthermore, the watermark embedding step includes:
[0016] Traversing the encrypted binary watermark sequence, and adjusting the color channel of the image to be embedded based on the watermark bit value and the color adjustment dynamic parameter of the encrypted binary watermark sequence;
[0017] If the watermark bit value is a first threshold, the value of the color channel is increased by the value of the color adjustment dynamic parameter; if the watermark bit value is a second threshold, the value of the color channel is reduced by the value of the color adjustment dynamic parameter.
[0018] Furthermore, it also includes:
[0019] Post-processing step: performing adaptive Gaussian filtering and bilateral filtering on the watermarked image, and performing distortion repair.
[0020] Furthermore, the encryption algorithm is an AES encryption algorithm.
[0021] The present invention provides a picture watermark embedding system, which is applied to the above-mentioned picture watermark embedding method, comprising:
[0022] Color histogram acquisition module: acquires the image to be embedded, and preprocesses the image to be embedded; identifies the main elements in the preprocessed image to be embedded based on feature extraction technology and performs color quantization to acquire the color histogram of the image to be embedded;
[0023] Color adjustment dynamic parameter acquisition module: acquires color adjustment dynamic parameters based on the color histogram;
[0024] Watermark information preparation module: converts the watermark information to be embedded into binary form, encrypts it based on the encryption algorithm, and obtains the encrypted binary watermark sequence;
[0025] Watermark embedding module: embeds the watermark information to be embedded into the image to be embedded based on the watermark bit value of the encrypted binary watermark sequence and the color adjustment dynamic parameter, and obtains the image after the watermark is embedded.
[0026] Furthermore, the color adjustment dynamic parameter acquisition module includes:
[0027] Calculate the color distribution entropy value and the color distribution gradient mean based on the color histogram;
[0028] Based on the color distribution entropy value and the color distribution gradient mean, the color adjustment dynamic parameter is obtained through a linear weighting and truncation function.
[0029] Furthermore, the watermark embedding module includes:
[0030] Traversing the encrypted binary watermark sequence, and adjusting the color channel of the image to be embedded based on the watermark bit value and the color adjustment dynamic parameter of the encrypted binary watermark sequence;
[0031] If the watermark bit value is a first threshold, the value of the color channel is increased by the value of the color adjustment dynamic parameter; if the watermark bit value is a second threshold, the value of the color channel is reduced by the value of the color adjustment dynamic parameter.
[0032] The present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned image watermark embedding method when executing the computer program.
[0033] Compared with the prior art, the advantages and positive effects of the present invention are:
[0034] The present invention improves the concealment and robustness of the watermark, and significantly improves the security of the watermark. The present invention obtains the color adjustment dynamic parameters through the color histogram, so that the watermark information can be adaptively embedded according to the image content, so that it is visually difficult to detect, so that the watermark information has good concealment, and ensures the original look and feel of the image. At the same time, the AES encryption algorithm is used to encrypt the watermark information, which improves the security of the watermark information and effectively prevents the watermark information from being extracted and tampered with without authorization. In addition, by performing post-processing steps such as adaptive Gaussian filtering, bilateral filtering and distortion repair on the image after embedding the watermark, the image quality is further optimized, ensuring that the image after the watermark is embedded is visually almost lossless. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 This is a schematic diagram of the process of embedding a picture watermark in an embodiment of the present invention;
[0036] Figure 2This is a schematic diagram of the structure of a picture watermark embedding system in an embodiment of the present invention;
[0037] Figure 3 A schematic diagram of a computer device provided in an embodiment of the present invention.
[0038] In the above picture:
[0039] 40. bus; 41. processor; 42. memory; 43. communication interface; 100. color histogram acquisition module; 200. color adjustment dynamic parameter acquisition module; 300. watermark information preparation module; 400. watermark embedding module. 500. post-processing module. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0041] In the description of the present application, it should be understood that the terms "center", "up", "down", "front", "back", "left", "right", "vertical", "liquid level", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. The terms "first" and "second" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present application, unless otherwise specified, "multiple" means two or more.
[0042] In the description of this application, it should be noted that, 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 ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0043] like Figure 1-Figure 3As shown, the present invention provides a method, system and computer device for embedding image watermarks to achieve image watermark embedding with concealment, robustness and security. Figure 1-Figure 3 The image watermark embedding method, system and computer equipment provided by the present invention are described in detail.
[0044] Embodiment 1:
[0045] Figure 1 FIG. 1 is a flow chart of a method for embedding a picture watermark in an embodiment of the present invention. Figure 1 As shown, the present invention provides a method for embedding a picture watermark, including a color histogram acquisition step S100, a color adjustment dynamic parameter acquisition step S200, a watermark information preparation step S300, a watermark embedding step S400 and a post-processing step S500.
[0046] Color histogram acquisition step S100: acquiring the image to be embedded and preprocessing the image to be embedded; identifying the main elements in the preprocessed image to be embedded based on feature extraction technology and performing color quantization to acquire the color histogram of the image to be embedded.
[0047] In some embodiments, an image to be embedded with a watermark is read from an image data source, and the image may be a digital image in any format, such as JPEG, PNG, BMP, etc., to ensure that the image data for subsequent processing is complete and available. A series of preprocessing operations are performed on the image to be embedded, including denoising, scaling, and image enhancement, to improve the effect of subsequent feature extraction and watermark embedding.
[0048] In some embodiments, SIFT (Scale-Invariant Feature Transform) or SURF (Speeded Up Robust Features) algorithm is used to extract features from the preprocessed image to identify major elements in the image, such as people, scenery, text, etc.
[0049] In some embodiments, the color space of the image is quantized into a number of color intervals, and the number of pixels in each color interval is counted to generate a color histogram. Assuming that the color histogram H is a set containing n elements, the color histogram can be expressed as:
[0050] H={h1,h2,...,h n}
[0051] Each element h i represents the frequency of the i-th color interval. These frequency values are normalized so that their sum is 1 for subsequent statistical analysis, expressed as:
[0052]
[0053] Color adjustment dynamic parameter acquisition step S200: acquiring color adjustment dynamic parameters based on the color histogram.
[0054] Preferably, the color adjustment dynamic parameter acquisition step S200 includes:
[0055] Calculate the color distribution entropy value and the color distribution gradient mean based on the color histogram;
[0056] Based on the color distribution entropy value and the color distribution gradient mean, the color adjustment dynamic parameters are obtained through linear weighting and truncation functions.
[0057] Specifically, the color distribution entropy value is calculated based on the color histogram as follows:
[0058]
[0059] Where ∈ is a minimum value (such as 10 -10 ) is used to avoid taking the logarithm of zero probability and prevent infinity or undefined situations in numerical calculations. The larger the color distribution entropy value E, the more uniform the color distribution and the higher the uncertainty; the smaller the entropy value E, the more concentrated the color distribution and the lower the uncertainty.
[0060] The gradient of the color histogram represents the rate of change of adjacent color intervals. Figure 1 The derivatives are as follows:
[0061]
[0062] The average absolute value of the gradient is the average of the absolute values of the gradient of the color histogram. It is used to measure the overall change of the color histogram. The average absolute value of the gradient is expressed as follows:
[0063]
[0064] The larger the absolute value of the average gradient, the more drastic the change in the color histogram and the greater the fluctuation in the color distribution; the smaller the absolute value of the average gradient, the smoother the change in the color histogram and the smaller the fluctuation in the color distribution.
[0065] Based on the color distribution entropy value and the color distribution gradient mean, the initial color adjustment dynamic parameter Δ is obtained by linear weighting. raw And limit its scope as follows:
[0066]
[0067] α and β are experimental experience values. In some embodiments, α can be 0.5 and β can be 0.3, which are used to balance the influence of entropy value and average gradient absolute value on dynamic parameters.
[0068] The color adjustment dynamic parameter Δ is constrained to be in the interval [1,5] by a truncation function:
[0069]
[0070] Watermark information preparation step S300: convert the watermark information to be embedded into binary form, and encrypt it based on an encryption algorithm to obtain an encrypted binary watermark sequence.
[0071] Preferably, the encryption algorithm is the Advanced Encryption Standard (AES) algorithm, which is a symmetric encryption algorithm widely used in the field of data encryption.
[0072] In some embodiments, the watermark information to be embedded (such as text, numbers, images, etc.) is converted into a binary sequence. For text watermark information, it is converted into ASCII code, and then the ASCII code is converted into a binary sequence; for digital watermark information, it is directly converted into a binary sequence; for image watermark information, it is converted into pixel values, and then the pixel values are converted into a binary sequence.
[0073] In some embodiments, encrypting a binary sequence based on the AES algorithm specifically includes using a random number generator to generate a random key, using a random number generator to generate a random initialization vector, using the AES encryption algorithm and the key to encrypt the binary watermark information, and obtaining an encrypted binary watermark sequence.
[0074] Watermark embedding step S400: embedding the watermark information to be embedded into the image to be embedded based on the watermark bit value and color adjustment dynamic parameters of the encrypted binary watermark sequence to obtain the image after the watermark is embedded.
[0075] Preferably, the watermark embedding step S400 includes:
[0076] Traversing the encrypted binary watermark sequence, adjusting the color channel of the image to be embedded based on the watermark bit value and color adjustment dynamic parameter of the encrypted binary watermark sequence;
[0077] If the watermark bit value is the first threshold, the value of the color channel is increased by the value of the color adjustment dynamic parameter; if the watermark bit value is the second threshold, the value of the color channel is reduced by the value of the color adjustment dynamic parameter.
[0078] In some embodiments, the encrypted binary watermark sequence is traversed, and the watermark bit value is read bit by bit. The first threshold value may be set to 1, and the second threshold value may be set to 0. If the watermark bit value is the first threshold value 1, then:
[0079] New color channel value = original color channel value + Δ
[0080] If the watermark bit value is the second threshold 0, then:
[0081] New color channel value = original color channel value - Δ
[0082] In some embodiments, when embedding a watermark, the color value of each pixel needs to be checked, and the RGB channel value of each pixel is within [0, 255]. If the value overflows after adjustment, that is, the new value of the color channel is less than 0, the value of the color channel is 0; if it overflows, that is, the new value of the color channel is greater than 255, the value of the color channel is 255.
[0083] Post-processing step S500: performing adaptive Gaussian filtering and bilateral filtering on the watermarked image, and performing distortion repair.
[0084] In some embodiments, a Gaussian low-pass filter is performed on the watermarked image to suppress high-frequency noise introduced by color adjustment.
[0085] Specifically, the standard deviation σ is dynamically calculated according to the color complexity of the local area. The expression of the standard deviation σ is as follows:
[0086]
[0087] The range of σ is limited as follows:
[0088] σ=clip(σ,0.8,2,5)
[0089] The filter kernel size is fixed to 5×5 to balance denoising efficiency and detail preservation.
[0090] In some embodiments, the σ value of high complexity areas (such as natural images with rich textures) is relatively high, generally ranging from 2.0 to 2.5, and strong denoising is performed. The σ value of low complexity areas (such as smooth backgrounds) is relatively low, generally ranging from 0.8 to 1.2, and weak denoising is performed.
[0091] In some embodiments, bilateral filtering is further applied after denoising to preserve edge details and smooth color transitions.
[0092] Specifically, the spatial domain standard deviation is calculated as follows:
[0093] σ d =max(1,σ g 0.6)
[0094] Among them, σ g is the standard deviation σ value of Gaussian filtering;
[0095] Specifically, the color domain standard deviation is dynamically adjusted based on the color difference of adjacent pixels and is calculated as follows:
[0096] σ r =mean(|diff(patch)|)·2
[0097] Among them, diff(patch) represents the color difference of the local area;
[0098] The filter kernel size is fixed to 7×7 to cover a larger neighborhood and optimize the smoothing effect.
[0099] In some embodiments, distortion repair effectively responds to geometric attacks such as rotation and cropping of images by integrating projection transformation correction, thereby enhancing the robustness and detectability of the watermark. Specifically, the distortion repair process first determines the geometric transformation relationship of the image by detecting feature points in the image, such as SIFT feature points. Based on the detected feature points, at least 4 pairs of control points are selected, which are used to calculate the projection transformation matrix. The projection transformation matrix can be implemented by affine transformation or perspective transformation. The image is corrected using the calculated projection transformation matrix to restore its original geometric shape, thereby ensuring that the watermark information can still be accurately extracted and recognized after being subjected to geometric attacks.
[0100] Through the above post-processing steps, the quality of the image after embedding the watermark can be effectively improved, further ensuring the concealment and robustness of the watermark while retaining the original visual effect of the image.
[0101] Embodiment 2:
[0102] Figure 2 FIG. 1 is a schematic diagram of the structure of a picture watermark embedding system according to an embodiment of the present invention. Figure 2 As shown, the present invention provides a picture watermark embedding system, including a color histogram acquisition module 100, a color adjustment dynamic parameter acquisition module 200, a watermark information preparation module 300, a watermark embedding module 400 and a post-processing module 500.
[0103] The color histogram acquisition module 100: acquires the image to be embedded and preprocesses the image to be embedded; identifies the main elements in the preprocessed image to be embedded based on the feature extraction technology and performs color quantization to acquire the color histogram of the image to be embedded;
[0104] Color adjustment dynamic parameter acquisition module 200: acquires color adjustment dynamic parameters based on a color histogram;
[0105] The watermark information preparation module 300 converts the watermark information to be embedded into binary form and encrypts it based on an encryption algorithm to obtain an encrypted binary watermark sequence.
[0106] Watermark embedding module 400: embeds the watermark information to be embedded into the image to be embedded based on the watermark bit value of the encrypted binary watermark sequence and the color adjustment dynamic parameter, and obtains the image after the watermark is embedded.
[0107] Preferably, the color adjustment dynamic parameter acquisition module 200 includes:
[0108] Calculate the color distribution entropy value and the color distribution gradient mean based on the color histogram;
[0109] Based on the color distribution entropy value and the color distribution gradient mean, the color adjustment dynamic parameters are obtained through linear weighting and truncation functions.
[0110] Preferably, the watermark embedding module 400 includes:
[0111] Traversing the encrypted binary watermark sequence, adjusting the color channel of the image to be embedded based on the watermark bit value and color adjustment dynamic parameter of the encrypted binary watermark sequence;
[0112] If the watermark bit value is the first threshold, the value of the color channel is increased by the value of the color adjustment dynamic parameter; if the watermark bit value is the second threshold, the value of the color channel is reduced by the value of the color adjustment dynamic parameter.
[0113] Embodiment three:
[0114] Combination Figure 3 As shown, this embodiment discloses a specific implementation of a computer device. The computer device may include a processor 41 and a memory 42 storing computer program instructions.
[0115] Specifically, the processor 41 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0116] Among them, the memory 42 may include a large-capacity memory for data or instructions. By way of example and not limitation, the memory 42 may include a hard disk drive (HDD), a floppy disk drive, a solid-state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 42 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 42 may be inside or outside the data processing device. In a specific embodiment, the memory 42 is a non-volatile memory. In a specific embodiment, the memory 42 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, referred to as PROM), an erasable PROM (Erasable ProgrammableRead-Only Memory, referred to as EPROM), an electrically erasable PROM (Electrically Erasable ProgrammableRead-Only Memory, referred to as EEPROM), an electrically alterable ROM (Electrically Alterable Read-Only
[0117] The RAM may be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM may be a fast page mode dynamic random access memory (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.
[0118] The memory 42 may be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 41 .
[0119] The processor 41 implements the image watermark embedding method in the above embodiment by reading and executing the computer program instructions stored in the memory 42 .
[0120] In some of the embodiments, the computer device may further include a communication interface 43 and a bus 40. Figure 3 As shown, the processor 41, the memory 42, the communication interface 43 and the bus 40 are connected and communicate with each other.
[0121] The communication interface 43 is used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0122] The communication interface 43 can also realize data communication with other components such as external devices, image / data acquisition equipment, databases, external storage, and image / data processing workstations.
[0123] The bus 40 includes hardware, software or both, and couples the components of the computer device to each other. The bus 40 includes but is not limited to at least one of the following: a data bus, an address bus, a control bus, an expansion bus, and a local bus. By way of example and not limitation, bus 40 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, bus 40 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
[0124] In addition, in combination with the image watermark embedding method in the above embodiment, the embodiment of the present application can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the image watermark embedding methods in the above embodiment is implemented.
[0125] The above description is only a preferred embodiment of the present invention and does not limit the present invention in other forms. Any technician familiar with the profession may use the technical content disclosed above to change or modify it into an equivalent embodiment with equivalent changes and apply it to other fields. However, any simple modification, equivalent change and modification made to the above embodiment based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. A method for embedding a picture watermark, characterized in that: include: Color histogram acquisition step: acquiring the image to be embedded and preprocessing the image to be embedded; Based on the feature extraction technology, the main elements in the preprocessed image to be embedded are identified and color quantized to obtain a color histogram of the image to be embedded; Color adjustment dynamic parameter acquisition step: acquiring color adjustment dynamic parameters based on the color histogram; Watermark information preparation step: convert the watermark information to be embedded into binary form and encrypt it based on the encryption algorithm to obtain an encrypted binary watermark sequence; Watermark embedding step: embedding the watermark information to be embedded into the image to be embedded based on the watermark bit value of the encrypted binary watermark sequence and the color adjustment dynamic parameter to obtain the image after the watermark is embedded.
2. The image watermark embedding method according to claim 1, characterized in that: The color adjustment dynamic parameter acquisition step comprises: Calculate the color distribution entropy value and the color distribution gradient mean based on the color histogram; Based on the color distribution entropy value and the color distribution gradient mean, the color adjustment dynamic parameter is obtained through a linear weighting and truncation function.
3. The image watermark embedding method according to claim 1, characterized in that: The watermark embedding step comprises: Traversing the encrypted binary watermark sequence, and adjusting the color channel of the image to be embedded based on the watermark bit value and the color adjustment dynamic parameter of the encrypted binary watermark sequence; If the watermark bit value is a first threshold, the value of the color channel is increased by the value of the color adjustment dynamic parameter; if the watermark bit value is a second threshold, the value of the color channel is reduced by the value of the color adjustment dynamic parameter.
4. The image watermark embedding method according to claim 1, characterized in that: Also includes: Post-processing step: performing adaptive Gaussian filtering and bilateral filtering on the watermarked image, and performing distortion repair.
5. The image watermark embedding method according to claim 1, characterized in that: The encryption algorithm is the AES encryption algorithm.
6. A picture watermark embedding system, characterized in that: The image watermark embedding method as described in any one of claims 1 to 5 above comprises: Color histogram acquisition module: acquires the image to be embedded, and preprocesses the image to be embedded; identifies the main elements in the preprocessed image to be embedded based on feature extraction technology and performs color quantization to acquire the color histogram of the image to be embedded; Color adjustment dynamic parameter acquisition module: acquires color adjustment dynamic parameters based on the color histogram; Watermark information preparation module: converts the watermark information to be embedded into binary form, encrypts it based on the encryption algorithm, and obtains the encrypted binary watermark sequence; Watermark embedding module: embeds the watermark information to be embedded into the image to be embedded based on the watermark bit value of the encrypted binary watermark sequence and the color adjustment dynamic parameter, and obtains the image after the watermark is embedded.
7. The tensor-reduced parallel computing system according to claim 6, characterized in that: The color adjustment dynamic parameter acquisition module includes: Calculate the color distribution entropy value and the color distribution gradient mean based on the color histogram; Based on the color distribution entropy value and the color distribution gradient mean, the color adjustment dynamic parameter is obtained through a linear weighting and truncation function.
8. The tensor-reduced parallel computing system according to claim 6, characterized in that: The watermark embedding module comprises: Traversing the encrypted binary watermark sequence, and adjusting the color channel of the image to be embedded based on the watermark bit value and the color adjustment dynamic parameter of the encrypted binary watermark sequence; If the watermark bit value is a first threshold, the value of the color channel is increased by the value of the color adjustment dynamic parameter; if the watermark bit value is a second threshold, the value of the color channel is reduced by the value of the color adjustment dynamic parameter.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the image watermark embedding method as described in any one of claims 1 to 5 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the image watermark embedding method as described in any one of claims 1 to 5 is implemented.