Watermark image generation method, watermark information acquisition method, computing device, storage medium and computer program product
Patent Information
- Application Number
- PCT/IB2024/062711
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-03-06
- Filing Date
- 2024-12-16
- Publication Date
- 2025-10-02
AI Technical Summary
In the existing technology, the process of adding watermark information to images is complicated, time-consuming and labor-intensive, and common watermarking technologies have poor robustness under compression formats such as H.264.
The DCT-based transformation method is used to divide the image into multiple image blocks, and the image transformation processing is performed through the first and second transformation matrices to generate a watermark embedding matrix, and finally a watermark image embedded with watermark information is generated.
It realizes the rapid addition of watermark information to images, saves time and labor costs, and improves the embedding efficiency and robustness of dark watermarks in the H.264 compression format.
Smart Images

Figure IB2024062711_02102025_PF_FP_ABST
Abstract
Description
[0001] Watermark Image Generation Method, Watermark Information Acquisition Method, Computing Device, Storage Medium, and Computer Program Product TECHNICAL FIELD This disclosure relates to the field of image processing technology, and more particularly to a watermark image generation method, a watermark information acquisition method, another watermark image generation method, a watermark image generation device, a watermark information acquisition device, another watermark image generation device, a computing device, a computer-readable storage medium, and a computer program product. BACKGROUND With the continuous advancement of computer technology, watermarking technology for adding watermark information to images has also been continuously developed for purposes such as copyright protection and anti-piracy. However, in the prior art, the process of adding watermark information to images is relatively complex and requires significant time and labor costs. Therefore, how to quickly add watermark information to images has become an urgent problem to be solved. SUMMARY OF THE INVENTION In view of this, the present disclosure provides a watermark image generation method. One or more embodiments of this specification simultaneously relate to a watermark information acquisition method, another watermark image generation method, a watermark image generation device, a watermark information acquisition device, another watermark image generation device, a computing device, a computer-readable storage medium, and a computer program product, to address technical deficiencies in the prior art. According to a first aspect of this disclosure, a watermark image generation method is provided, comprising: determining a to-be-processed image and watermark information corresponding to the to-be-processed image; dividing the to-be-processed image into a plurality of to-be-processed image blocks, and performing image transformation processing on the plurality of to-be-processed image blocks based on a first transformation matrix and a second transformation matrix to obtain a plurality of to-be-processed image matrices; generating a plurality of watermark data based on the watermark information, and obtaining a plurality of watermark embedding matrices based on the plurality of watermark data and the plurality of to-be-processed image matrices; and generating a watermark image embedded with the watermark information based on the plurality of watermark embedding matrices. According to a second aspect of the present disclosure, a watermark image generation apparatus is provided, comprising: an image determination module configured to determine an image to be processed and watermark information corresponding to the image to be processed; a first matrix acquisition module configured to divide the image to be processed into a plurality of image blocks to be processed, and perform image transformation processing on the plurality of image blocks to be processed based on a first transformation matrix and a second transformation matrix to obtain a plurality of image matrices to be processed; a second matrix acquisition module configured to generate a plurality of watermark data based on the watermark information, and obtain a plurality of watermark embedding matrices based on the plurality of watermark data and the plurality of image matrices to be processed; and a watermark image generation module configured to generate a watermark image embedded with the watermark information based on the plurality of watermark embedding matrices.According to a third aspect of the present disclosure, a method for obtaining watermark information is provided, comprising: determining a watermark image, wherein the watermark image is a watermark image generated by the watermark image generation method described above; dividing the watermark image into a plurality of watermark image blocks, and performing image transformation processing on the plurality of watermark image blocks based on a first transformation matrix to obtain a plurality of watermark image matrices; extracting watermark data from each watermark image matrix to obtain a plurality of watermark data, and obtaining watermark information based on the plurality of watermark data. According to a fourth aspect of the present disclosure, a watermark information acquisition device is provided, comprising: an image determination module, configured to determine a watermark image, wherein the watermark image is a watermark image generated by the above-mentioned watermark image generation method; a matrix determination module, configured to divide the watermark image into multiple watermark image blocks, and perform image transformation processing on the multiple watermark image blocks based on a first transformation matrix to obtain multiple watermark image matrices; and a watermark acquisition module, configured to extract watermark data from each watermark image matrix to obtain multiple watermark data, and obtain watermark information based on the multiple watermark data. According to a fifth aspect of the present disclosure, a watermark image generation method is provided, comprising: determining an image to be processed and a dark watermark corresponding to the image to be processed; dividing the image to be processed into a plurality of image blocks to be processed, and performing image transformation processing on the plurality of image blocks to be processed based on a first transformation matrix and a second transformation matrix to obtain a plurality of image matrices to be processed; generating a plurality of watermark data according to the dark watermark, and obtaining a plurality of watermark embedding matrices according to the plurality of watermark data and the plurality of image matrices to be processed; and generating a watermark image embedded with the dark watermark according to the plurality of watermark embedding matrices. According to a sixth aspect of the present disclosure, a watermark image generation device is provided, comprising: an image determination module, configured to determine an image to be processed and a dark watermark corresponding to the image to be processed; a first matrix acquisition module, configured to divide the image to be processed into multiple image blocks to be processed, and perform image transformation processing on the multiple image blocks to be processed based on a first transformation matrix and a second transformation matrix to obtain multiple image matrices to be processed; a second matrix acquisition module, configured to generate multiple watermark data based on the dark watermark, and obtain multiple watermark embedding matrices based on the multiple watermark data and the multiple image matrices to be processed; and a watermark image generation module, configured to generate a watermark image embedded with the dark watermark based on the multiple watermark embedding matrices.According to a seventh aspect of the present disclosure, a computing device is provided, comprising: a memory and a processor; the memory is configured to store a computer program / instructions, and the processor is configured to execute the computer program / instructions. When executed by the processor, the computer program / instructions implement the steps of the aforementioned watermark image generation method, another watermark image generation method, or watermark information acquisition method. According to an eighth aspect of the present disclosure, a computer-readable storage medium is provided, storing a computer program / instructions. When executed by the processor, the computer program / instructions implement the steps of the aforementioned watermark image generation method, another watermark image generation method, or watermark information acquisition method. According to a ninth aspect of the present disclosure, a computer program product is provided, comprising a computer program / instructions. When executed by the processor, the computer program / instructions implement the steps of the aforementioned watermark image generation method, another watermark image generation method, or watermark information acquisition method. One or more embodiments of this specification provide a watermark image generation method, comprising: determining a to-be-processed image and watermark information corresponding to the to-be-processed image; dividing the to-be-processed image into multiple to-be-processed image blocks, and performing image transformation processing on the multiple to-be-processed image blocks based on a first transformation matrix and a second transformation matrix to obtain multiple to-be-processed image matrices; generating multiple watermark data based on the watermark information, and obtaining multiple watermark embedding matrices based on the multiple watermark data and the multiple to-be-processed image matrices; and generating a watermark image embedded with the watermark information based on the multiple watermark embedding matrices. Specifically, the watermark image generation method provided in this specification can process the multiple to-be-processed image blocks divided by the to-be-processed image based on the first transformation matrix and the second transformation matrix to obtain multiple to-be-processed image matrices, and generate multiple watermark data based on the watermark information; and then generating a watermark image embedded with the watermark information based on the multiple watermark data and the multiple watermark embedding matrices obtained from the multiple to-be-processed image matrices. This allows the image to be processed to be quickly watermarked, avoiding the complexity of the process, and saving time and labor costs.BRIEF DESCRIPTION OF THE DRAWINGS FIG1 is an application diagram of a watermark image generation method provided in one embodiment of the present specification; FIG2 is a flow chart of a watermark image generation method provided in one embodiment of the present specification; FIG3 is a schematic diagram of an image to be processed in a watermark image generation method provided in one embodiment of the present specification; FIG4 is a flow chart of a processing process of a watermark image generation method provided in one embodiment of the present specification; FIG5 is a flow chart of a watermark information acquisition method provided in one embodiment of the present specification; FIG6 is a flow chart of a processing process of a watermark information acquisition method provided in one embodiment of the present specification; FIG7 is a flow chart of another watermark image generation method provided in one embodiment of the present specification; FIG8 is a structural diagram of a watermark image generation device provided in one embodiment of the present specification; FIG9 is a structural diagram of a watermark information acquisition device provided in one embodiment of the present specification; FIG10 is a structural diagram of a watermark image generation device provided in one embodiment of the present specification; FIG11 is a structural block diagram of a computing device provided in one embodiment of the present specification. DETAILED DESCRIPTION OF THE EMBODIMENTS Many specific details are set forth in the following description to facilitate a full understanding of the present specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without departing from the scope of this specification. Therefore, this specification is not limited to the specific implementations disclosed below. The terminology used in one or more embodiments of this specification is for the purpose of describing specific embodiments only and is not intended to limit this specification. As used in one or more embodiments of this specification and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and encompasses any and all possible combinations of one or more of the associated listed items. It should be understood that although the terms "first," "second," and so on may be used to describe various information in one or more embodiments of this specification, such information should not be limited to these terms. These terms are merely used to distinguish information of the same type from one another. For example, "first" could also be referred to as "second," and similarly, "second" could also be referred to as "first," without departing from the scope of one or more embodiments of this specification. Depending on the context, the term "if" as used herein can be interpreted as "when," "when," or "in response to determining."Furthermore, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, storage, and display) referred to in one or more embodiments of this specification are all authorized by the user or fully authorized by all parties. The collection, use, and processing of such data must comply with the relevant laws, regulations, and standards of the relevant countries and regions, and corresponding access points are provided for users to choose to authorize or deny such data. First, the terms used in one or more embodiments of this specification are explained.
[0002] DCT (Discrete Cosine Transform): Discrete cosine transform is a commonly used signal processing method that converts continuous or discrete signals in the time domain to the frequency domain. DCT is widely used in image, audio, and video compression, as well as digital watermarking and speech recognition. A dark watermark is information added to a video or image to protect its content. Asymmetric watermarking involves different processes between the watermark embedding and extraction processes.
[0003] H.264 is a highly compressed digital video codec standard, also known as a digital video compression format. This standard is commonly referred to as H.264 / AVC (or AVC / H.264, H.264 / MPEG-4 AVC, etc.). The integer DCT transform is a simplified version of the discrete cosine transform (DCT), accelerating image processing by reducing computational complexity. By employing integer operations based on 4x4 blocks rather than real numbers (including floating-point numbers), this approach reduces design complexity and avoids codec mismatches. The integer DCT transform essentially converts real signals from the time domain to the frequency domain, enabling better compression of image data.
[0004] Inverse DCT transform: Also known as inverse DCT transform or inverse DCT, it refers to the inverse process of the discrete cosine transform. The DCT transform is a mathematical tool used to convert data or images from the spatial domain to the frequency domain. The inverse DCT transform converts DCT-transformed frequency-domain data back to spatial-domain data. Through the inverse DCT transform, frequency-domain data can be restored to the original spatial-domain data, that is, the original signal or image can be recovered. With the continuous advancement of computer technology, watermarking technology for adding watermark information to images has also been continuously developed for copyright protection and anti-piracy purposes. Watermarking technology for adding watermark information to images can include image watermarking and video watermarking. For example, video watermarking is a solution that adds an identifier (i.e., watermark information) to videos and can be used for copyright protection, brand promotion, and anti-piracy purposes. The importance of video watermarking lies in its ability to effectively prevent criminals from misappropriating video content and protect the copyright rights of video producers. Furthermore, video watermarking can guarantee video quality, ensure the video's source and authenticity, and increase user trust and recognition. Therefore, adding watermarks is an essential step in video production and distribution, serving multiple purposes and benefits. Image watermarking is a solution that adds an identifier (i.e., watermark information) to an image. It can also be used to protect image copyrights, promote brands, and combat piracy. In practical applications, security is a key consideration for internet products when serving customers. Whether online or offline, customers are deeply concerned about the security of their information. In the digital age, protecting customer privacy is particularly crucial, as the leakage of personal information can lead to serious consequences, such as financial loss and damaged credit. Therefore, if internet products can provide more reliable watermarking solutions to protect information, customers will be more trusting and willing to use them. While ensuring customer security, the products can also enhance their brand image and competitiveness. This internet product can be a service platform, an application, or something else entirely, and this is not intended to limit it. To address the aforementioned issues, this specification provides two solutions. One is a clear watermark solution, in which users can directly view the watermarked content. This solution prevents data leakage by adding an explicit string of characters on the screen. However, this clear watermark solution has a significant drawback. Because it is perceptible to users, the relevant clear watermark information can be erased through certain technical means, failing to prevent data leakage. The other is a spatial domain dark watermark solution, which embeds watermark information by directly modifying pixel values.However, this spatial domain dark watermarking scheme also has significant drawbacks. It is less robust to common compression performance issues like H.264, resulting in poor performance of the watermarked image. Therefore, this specification provides a watermark image generation method. This specification also relates to a watermark information acquisition method, a watermark image generation device, a watermark information acquisition device, a computing device, and a computer-readable storage medium, each of which is described in detail in the following embodiments. Referring to FIG1 , FIG1 illustrates an application diagram of a watermark image generation method according to one embodiment of this specification. As can be seen from FIG1 , a user sends a dark watermark and an image to be processed to a server 104 via a terminal 102. The server 104 performs a DCT transform on the image block to be processed using a first transform matrix and a second transform matrix to obtain multiple DCT coefficient matrices. Simultaneously, the dark watermark information is converted into binary data and embedded into the multiple DCT coefficient matrices based on multiple binary bits in the binary data. The multiple DCT coefficient matrices embedded with binary bits are then restored to pixel information to obtain a watermarked image embedded with a dark watermark. This accelerates the computational speed, improves dark watermark embedding efficiency, and rapidly obtains a watermarked image containing a dark watermark. Referring to Figure 2, a flow chart of a watermarked image generation method provided according to one embodiment of this specification is shown, specifically including the following steps. Step 202: Determine an image to be processed and the watermark information corresponding to the image to be processed. The image to be processed can be understood as an image to which watermark information is to be added, such as a video frame in a video. The image to be processed can be in various formats, and this specification does not impose any specific restrictions thereon. For example, referring to Figure 3, a schematic diagram of an image to be processed in a watermarked image generation method provided according to one embodiment of this specification is shown. As can be seen from Figure 3, the image to be processed can be any image to which watermark information is to be added. Watermark information can be understood as information that can be embedded in the image to be processed. This watermark information can be used to protect the copyright of multimedia files such as images and videos; it can also be used for brand promotion and anti-piracy purposes; and it can also be used to protect users' personal information, thereby preventing personal information leakage. The watermark information can be composed of any one or more elements, such as characters, images, numbers, and / or symbols. For example, the watermark information can be PydA2K / 775RE / 2m4TprdIWKgt0Ds4xbXH25Y04dpZhg=, etc. It should be noted that the watermark information can be called a watermark or a digital watermark.In the watermark image generation method provided in this specification, the watermark information may be a dark watermark. The following description uses the dark watermark as an example. Step 204: Divide the image to be processed into multiple image blocks to be processed, and perform image transformation processing on the multiple image blocks to be processed based on the first transformation matrix and the second transformation matrix to obtain multiple image matrices to be processed. In one or more embodiments provided in this specification, dividing the image to be processed into multiple image blocks to be processed can be understood as dividing the image to be processed into multiple images to be processed according to a preset division size. Each image to be processed is sorted according to the division order. The preset division size can be set according to the actual application scenario. For example, the preset division size can be 4x4 pixels or 8x8 pixels. Correspondingly, the multiple image blocks to be processed divided according to the preset division size can be multiple image blocks of 4x4 pixels or multiple image blocks of 8x8 pixels. The image block to be processed can be understood as an image area within the image to be processed. For example, an image can be divided into four image blocks. Each image block is a quarter of the image. It should be noted that since images are composed of pixels (i.e., binary bits), each image block to be processed can be a matrix composed of binary bits corresponding to the pixels. In the matrix corresponding to the image block to be processed, each matrix parameter represents a pixel. For example, a 4x4 pixel image block to be processed can be a 4x4 pixel matrix. Based on this, the image block to be processed can be a 4x4 pixel image block (i.e., a 4x4 pixel matrix), which represents a small rectangular area consisting of four adjacent columns and four rows of pixels. In one or more embodiments provided herein, performing image transformation processing on the multiple image blocks to be processed based on a first transformation matrix and a second transformation matrix to obtain multiple image matrices to be processed includes: determining a first transformation matrix and a second transformation matrix corresponding to the multiple image blocks to be processed, wherein the first transformation matrix and the second transformation matrix are obtained by decomposing an image transformation operation on the image to be processed; performing image transformation processing on the multiple image blocks to be processed using the first transformation matrix and a transposed matrix corresponding to the first transformation matrix to obtain multiple transformed image matrices; and performing image transformation processing on the multiple transformed image matrices using the second transformation matrix to obtain the multiple image matrices to be processed. The image transformation operation can be understood as a method of performing image transformation on the image to be processed. For example, the image transformation operation can be a method capable of transforming the image to be processed, such as DCT or integerized DCT.The first transformation matrix can be understood as a preset matrix for transforming multiple image blocks to be processed. The second transformation matrix can be understood as a preset matrix for transforming multiple image blocks to be processed. The first and second transformation matrices can be set according to actual application scenarios. In one or more embodiments provided herein, a discrete cosine transform (DCT) can be used to process multiple image blocks to be processed to obtain multiple image matrices to be processed. Based on this, the first and second transformation matrices can be the C4 matrix and S4 matrix in the discrete cosine transform (DCT). In one or more embodiments provided herein, the watermark image generation method provided herein can improve the speed of watermark embedding and information extraction by integerizing the DCT transform and decomposing the integerized DCT transform into two independent C4 matrix and S4 matrix calculations. The specific calculation formula is shown in the following formula 1: Among them, the table can identify the input matrix X, which is the 4x4 pixel matrix after the image to be processed is segmented (i.e. 4x4 coefficient matrix, that is, an independent S4 matrix obtained by decomposing the DCT. Here, C4 can be the first transform matrix, and S4 can be the second transform matrix. In one or more embodiments provided in this specification, the matrix size of the first transform matrix or the second transform matrix and the parameters in the matrix can be set according to the actual application scenario, and will not be described in detail here. For example, the value of the size of the first transform matrix can be seen in Table 1, which shows the values of the 16 positions of the first transform matrix. Table 1 For example, the values of the size of the second transformation matrix can be referred to Table 2, which shows the values of 16 positions of the second transformation matrix. Wherein, a=sqrt(10) in Table 2, i.e., square root 10. It should be noted that Table 1 may be the above-mentioned matrix C4 may be the first transformation matrix, and S4 may be the second transformation matrix. The transposed matrix may be understood as the matrix obtained by performing matrix transposition processing on the first transformation matrix. For example, by flipping the C4 matrix along the diagonal direction, the transposed matrix corresponding to the C4 matrix may be obtained. The transformed image matrix may be understood as the coefficient matrix obtained by performing a two-dimensional transformation on the image block to be processed using the first transformation matrix. The image matrix to be processed may be understood as the image matrix to be embedded with watermark information, and watermark information may be subsequently added to the image matrix to be processed. In one or more embodiments provided in this specification, the image matrix to be processed may be understood as the coefficient matrix after DCT processing. It should be noted that, in the watermark image generation method provided in this specification, performing image transformation processing on multiple image blocks to be processed may be understood as performing integer DCT transformation processing on the multiple image blocks to be processed. Specifically, the watermark image generation method provided in this specification can, after dividing an image to be processed into multiple image blocks to be processed, determine a first transformation matrix and a second transformation matrix corresponding to the multiple image blocks to be processed; transform each of the multiple image blocks to be processed using the first transformation matrix, thereby obtaining multiple transformed image matrices; and then process each of the multiple transformed image matrices using the second transformation matrix, thereby obtaining multiple image matrices to be processed. This improves the speed of watermark embedding and information extraction. The application of the watermark image generation method provided in this specification in an image watermark embedding scenario is used as an example for illustration. The image block to be processed can be a 4x4 pixel matrix, the first transformation matrix can be the C4 matrix shown in Table 1, and the second transformation matrix can be the S4 matrix shown in Table 2. Based on this, after dividing image A into multiple 4x4 pixel image blocks according to the size of the 4x4 pixel blocks, the C4 matrix and the S4 matrix for transforming the multiple 4x4 pixel image blocks are determined. Based on the C4 matrix and the transposed matrix corresponding to the C4 matrix, a two-dimensional transformation is performed on each of the multiple 4x4 pixel image blocks to obtain multiple coefficient matrices (i.e., multiple transformed image matrices). The obtained multiple coefficient matrices are then processed based on the S4 matrix to complete the CT transformation and obtain multiple coefficient matrices.In one or more embodiments provided herein, performing image transformation processing on the multiple image blocks to be processed using the first transformation matrix and the transposed matrix corresponding to the first transformation matrix to obtain multiple transformed image matrices includes: performing matrix transposition processing on the first transformation matrix to obtain the transposed matrix corresponding to the first transformation matrix; multiplying the first transformation matrix by each image block to be processed to obtain multiple multiplication matrices; and multiplying each multiplication matrix by the transposed matrix to obtain the multiple transformed image matrices. The multiplication matrix can be understood as a matrix obtained by multiplying each image block to be processed by the first transformation matrix. Continuing with the above example, the watermark image generation method provided herein can use DCT to generate the watermark image. To increase the speed of watermark embedding and extraction, the DCT transform can be integerized and decomposed into two independent C4 and S4 matrix calculations. The matrix calculation method based on the C4 matrix can be understood as the C4 matrix performing a two-dimensional transformation on the input 4x4 matrix through matrix multiplication to obtain a coefficient matrix after the two-dimensional transformation. In other words, a two-dimensional matrix transformation C4 needs to be calculated for each image block. The execution process can be as follows: First, since a 4x4 image block is a 4x4 pixel matrix, the C4 coefficient matrix is multiplied by each 4x4 pixel matrix to obtain multiple coefficient matrices A. Second, a transposed matrix is determined by transposing the C4 matrix. Finally, the multiple coefficient matrices A are multiplied by the transposed matrix to obtain multiple two-dimensional transformed coefficient matrices, thus completing the matrix transformation. This facilitates the subsequent use of these multiple two-dimensional transformed coefficient matrices to improve the speed of watermark embedding. In one or more embodiments provided in this specification, performing image transformation processing on the multiple transformed image matrices using the second transformation matrix to obtain the multiple image matrices to be processed includes: determining transformation matrix parameters in the second transformation matrix and the transformation matrix parameter positions of the transformation matrix parameters; determining image matrix parameters in each transformed image matrix and the image matrix parameter positions of the image matrix parameters; determining, for the image matrix parameters in each transformed image matrix based on the transformation matrix parameter positions and the image matrix parameter positions; and multiplying the image matrix parameters in each transformed image matrix by the transformation matrix parameters corresponding to the positions to obtain the multiple image matrices to be processed. The transformation matrix parameters can be understood as matrix parameters included in the second transformation matrix, for example, see the values of the S4 matrix shown in Table 2.The transformation matrix parameter positions can be understood as the position information of the transformation matrix parameters within the second transformation matrix. For example, the 16 positions (0, 0) to (3, 3) are shown in Table 2. Image matrix parameters can be understood as the matrix parameters contained in the transformation image matrix. The values of these image matrix parameters can be set according to the actual application scenario. The image matrix parameter positions can be understood as the position information of the image matrix parameters within the transformation image matrix. For example, if the transformation image matrix is a 4-row 4-column matrix, the image matrix parameter positions can be the 16 positions (0, 0) to (3, 3). It should be noted that the matrix structure of the second transformation matrix corresponds to that of the multiple transformation image matrices. For example, the second transformation matrix and each transformation image matrix are matrices with 4 rows and 4 columns, and the matrix sizes of the second transformation matrix and each transformation image matrix are the same. Continuing with the above example, the watermark image generation method provided in this specification can use DCT to generate the watermark image. To improve the speed of watermark embedding and extraction, the DCT transform can be integerized and decomposed into two independent C4 and S4 matrix calculations. The matrix calculation method based on the S4 matrix can be understood as performing point-by-point matrix multiplication on multiple 2D transformed coefficient matrices (processed by the C4 matrix). Specifically, the values of the 2D transformed coefficient matrices are changed by multiplying the corresponding two matrix parameters (i.e., matrix elements) based on the position of each matrix parameter in the S4 matrix. In other words, after obtaining the 4x4 coefficient matrix after the 2D transformation, the matrix parameters in the S4 matrix are multiplied with the matrix parameters at the corresponding positions in the 4x4 coefficient matrix after the 2D transformation, thereby changing the values of the transformed pixel matrix and obtaining the DCT coefficient matrix. This facilitates the subsequent improvement of watermark embedding speed based on this DCT coefficient matrix. Step 206: Generate multiple watermark data based on the watermark information, and obtain multiple watermark embedding matrices based on the multiple watermark data and the multiple image matrices to be processed. The watermark data can be understood as data generated based on the watermark information and used to represent the watermark information. In one or more embodiments provided herein, the watermark data can be a binary bit "bit" in the binary data corresponding to the character information. For example, if the watermark data is a string of characters, the string of characters can be converted to binary to obtain the corresponding binary data (e.g., 10110). A binary bit "bit" in the binary data can be a piece of watermark data (e.g., a binary bit "1" can be a piece of watermark data).For another example, in the case of an image (such as a brand logo) containing watermark data, the image can be converted into binary to obtain corresponding binary data (such as 101...10). A binary bit in the binary data can be watermark data. In one or more embodiments provided herein, generating multiple watermark data based on the watermark information and obtaining multiple watermark embedding matrices based on the multiple watermark data and the multiple image matrices to be processed includes: converting the watermark information into binary data and using multiple binary bits in the watermark information as multiple watermark data; determining, from the multiple image matrices to be processed, the image matrix to be embedded corresponding to each watermark data; and embedding the multiple watermark data into the corresponding image matrix to be embedded based on the watermark embedding parameters in each image matrix to be embedded, thereby obtaining the multiple watermark embedding matrices. The image matrix to be embedded can be understood as the image matrix to be processed in which the corresponding watermark data needs to be embedded. In one or more embodiments provided herein, determining the image matrix to be embedded corresponding to each watermark data from the multiple image matrices to be processed includes: determining a data position corresponding to each watermark data, and determining a matrix position corresponding to each image matrix to be processed. Based on the data position and the matrix position, a corresponding image matrix to be embedded is determined for each watermark data from the multiple image matrices to be processed. The data position can be understood as the current position of each watermark data in a sequential arrangement. For example, when converting watermark information into binary data, each binary bit in the binary data corresponding to the watermark information is arranged in sequence and has a corresponding position. Based on this, the data position corresponding to each watermark data can be understood as the position of each watermark data in the current order of the multiple watermark data. The matrix position can be understood as the current position of each image matrix to be processed in a sequential arrangement. When dividing the image to be processed into multiple image blocks to be processed, each image block to be processed is arranged in sequence and has a corresponding matrix position. For example, the image to be processed is divided into four image blocks to be processed in a four-square grid. The image block to be processed corresponding to the upper left corner of the grid is arranged first, the image block to be processed corresponding to the lower left corner of the grid is arranged second, the image block to be processed corresponding to the upper right corner of the grid is arranged third, and the image block to be processed corresponding to the lower right corner of the grid is arranged fourth. In this manner, each image block to be processed is arranged in sequence. It should be noted that the above is an explanation of the arrangement of the image blocks to be processed by way of example.The arrangement of the multiple image blocks to be processed can be configured based on the actual application scenario and is not detailed in this specification. After dividing the image to be processed into multiple image blocks to be processed, the multiple image matrices to be processed obtained by processing the multiple image blocks to be processed are also arranged in the order corresponding to the multiple image blocks to be processed. Therefore, each image matrix to be processed has a corresponding matrix position. Based on this, the matrix position corresponding to each image matrix to be processed can be understood as the position of each image matrix to be processed within the current order of the multiple image matrices to be processed. Specifically, the data position of each watermark data within the current order of the multiple watermark data is determined, as is the matrix position of each image matrix to be processed within the current order of the multiple image matrices to be processed. Then, based on the data position and matrix position, the image matrix to be processed corresponding to each watermark data position is determined from the multiple image matrices to be processed as the image matrix to be embedded. This determines the corresponding image matrix to be embedded for each watermark data, facilitating the subsequent rapid generation of a watermark image based on the image matrix to be embedded. For example, multiple image matrices to be processed are arranged in the order of [1, 2, ..., N]. Multiple watermark data are arranged in the order of [1, 2, ..., M]. The image matrix to be processed that is located first among the multiple image matrices to be processed is determined as the image matrix to be processed corresponding to the watermark data located first among the multiple watermark data. The image matrix to be processed that is located second among the multiple image matrices to be processed is determined as the image matrix to be processed corresponding to the watermark data located second among the multiple watermark data. The above determination operation is performed on the multiple image matrices to be processed and the multiple watermark data until corresponding image matrices to be processed are determined as image matrices to be embedded for all watermark data from the image matrices to be processed. It should be noted that the number of the multiple image matrices to be embedded may be greater than or equal to the number of the multiple watermark data. Specifically, the watermark image generation method provided in this specification, after obtaining multiple image matrices to be processed, can first convert the watermark information into binary data, and use multiple binary bits in the watermark information as multiple watermark data. Secondly, from the multiple image matrices to be processed, the image matrix corresponding to each watermark data is selected as the image matrix to be embedded. Finally, the watermark embedding parameters for each image matrix to be embedded are determined, and by adjusting the watermark embedding parameters, the multiple watermark data are respectively embedded into the corresponding image matrix to be embedded, thereby obtaining the multiple watermark embedding matrices. This facilitates the subsequent rapid generation of watermark images based on the image matrices to be embedded.In one or more embodiments provided herein, embedding the plurality of watermark data into the corresponding image matrices to be embedded based on watermark embedding parameters in each image matrix to be embedded to obtain the plurality of watermark embedding matrices includes: determining a first watermark embedding parameter and a second watermark embedding parameter in each image matrix to be embedded; and adjusting the first watermark embedding parameter and the second watermark embedding parameter in each image matrix to be embedded based on the watermark data corresponding to each image matrix to be embedded to obtain the plurality of watermark embedding matrices. The first watermark embedding parameter can be understood as a matrix parameter in the image matrix to be embedded, used to embed the watermark data into the image matrix to be embedded. For example, the first watermark embedding parameter can be a matrix parameter at any position in the image matrix to be embedded. The second watermark embedding parameter can be understood as a matrix parameter in the image matrix to be embedded corresponding to a parameter position of the first watermark embedding parameter, used to embed the watermark data into the image matrix to be embedded. For example, the first watermark embedding parameter can be a matrix parameter at position (a, b) in the image matrix to be embedded. The second watermark embedding parameters may be the matrix parameters for the position (b, a) corresponding to the position (a, b) along the matrix diagonal in the image matrix to be embedded. For another example, if the image matrix to be embedded is a 4-row, 4-column matrix, the first watermark embedding parameters may be the matrix parameters for the position (0, 0) in the image matrix to be embedded. The second watermark embedding parameters may be the matrix parameters for the position (3, 3) corresponding to the position (0, 0) in the image matrix to be embedded. It should be noted that the method for determining the first and second watermark embedding parameters in this specification can be set according to actual application scenarios. Specifically, the watermark image generation method provided in this specification can determine the first and second watermark embedding parameters in each image matrix to be embedded. Based on the watermark data corresponding to each image matrix to be embedded, the relationship between the first and second watermark embedding parameters in each image matrix to be embedded is adjusted. The relationship between the first and second watermark embedding parameters represents the specific value of the watermark data, thereby embedding the watermark data into each image matrix to be embedded, obtaining multiple watermark embedding matrices containing the embedded watermark data. This allows for rapid completion of the watermarking process for the processed images, avoiding the complexities of image watermarking and saving time and labor costs.In one or more embodiments provided herein, adjusting the first watermark embedding parameter and the second watermark embedding parameter in each image matrix to be embedded based on the watermark data corresponding to each image matrix to be embedded to obtain the multiple watermark embedding matrices includes: determining the watermark data corresponding to each image matrix to be embedded; if the watermark data is determined to be a first preset binary bit, adjusting the first watermark embedding parameter in each image matrix to be embedded to be greater than the second watermark embedding parameter; and if the watermark data is determined to be a second preset binary bit, adjusting the first watermark embedding parameter in each image matrix to be embedded to be less than the second watermark embedding parameter, to obtain the multiple watermark embedding matrices. The first preset binary bit can be understood as a preset binary bit of 0 or a preset binary bit of 1. The second preset binary bit can be understood as a preset binary bit of 0 or a preset binary bit of 1. OIt should be noted that the first preset binary bit and the second preset binary bit may be different. To facilitate explanation of the watermark image generation method provided in this specification, the first preset binary bit can be understood as binary bit 0, and the second preset binary bit can be understood as binary bit 1. Continuing with the above example, in the process of embedding watermark information into the image to be processed, the watermark information needs to be converted into binary data, and a corresponding DCT coefficient matrix is determined for each binary bit in the binary data from multiple DCT coefficient matrices (i.e., the coefficient matrices after the DCT transformation described above). Each binary bit is then embedded into the corresponding DCT coefficient matrix, thereby embedding the watermark information into the image to be processed and obtaining a watermarked image. In the process of embedding each binary bit into the corresponding DCT coefficient matrix, the matrix parameters (i.e., DCT coefficients) at position (a, b) and the matrix parameters (i.e., DCT coefficients) at position (b, a) need to be selected from the 4x4 DCT coefficient matrix. The DCT coefficient at position (a, b) is the first watermark embedding parameter, and the DCT coefficient at position (b, a) is the second watermark embedding parameter. Then, based on the watermark data corresponding to the DCT coefficient matrix, the size relationship of the DCT coefficients at two positions (a, b) and position (b, a) is modified, so that the size relationship between the two coefficients is used to indicate whether the hidden watermark data is binary 0 or binary 1. Specifically, when it is determined that the watermark data corresponding to a DCT coefficient matrix is binary 0, the DCT coefficient x at position (a, b) is modified to be larger than the DCT coefficient y at position (b, a); when it is determined that the watermark data corresponding to a DCT coefficient matrix is binary 1, the coefficient x at position (a, b) is modified to be smaller than the coefficient y at position (b, a); by modifying the DCT coefficients at two positions, it is ensured that when the binary bit to be embedded is 0, the DCT coefficient at position (a, b) is larger than the DCT coefficient at position (b, a); when the binary bit to be embedded is 1, the DCT coefficient at position (b, a) is larger than the DCT coefficient at position (a, b). The above steps of embedding watermark data into the DCT coefficient matrix are performed on all watermark data until all watermark data are embedded in the DCT coefficient matrix, thereby completing the step of embedding each binary bit into the corresponding DCT coefficient matrix. This quickly completes the operation of adding watermark information to the image to be processed, avoids the problem of a more complicated process of adding watermark information to the image, and saves time and labor costs.In one or more embodiments provided herein, determining first and second watermark embedding parameters in each to-be-embedded image matrix includes: determining a first parameter selection region and a second parameter selection region in each to-be-embedded image matrix, wherein the matrix parameters in the first parameter selection region correspond to the matrix parameters in the second parameter selection region; randomly selecting any matrix parameter in the first parameter selection region as the first watermark embedding parameter; and using the matrix parameter in the second parameter selection region corresponding to the first watermark embedding parameter as the second watermark embedding parameter. The first parameter selection region can be understood as a region in the to-be-embedded image matrix for selecting the first watermark embedding parameter. The second parameter selection region can be understood as a region in the to-be-embedded image matrix for selecting the second watermark embedding parameter. For example, the to-be-embedded image matrix can be divided into two regions along its matrix diagonal, with one region serving as the first parameter selection region and the other as the second parameter selection region. The first and second parameter selection regions correspond to each other along the matrix diagonal. The matrix position region where the matrix diagonal lies may not serve as the first or second parameter selection region. For another example, a center line of the image matrix to be embedded (a virtual line located in the center of the image matrix to be embedded) is determined. Based on this center line, the image matrix to be embedded is divided into upper and lower regions. One region is used as the first parameter selection region, and the other region is used as the second parameter selection region. The first parameter selection region and the second parameter selection region correspond to each other along the center line. The matrix position region where the center line is located may not be used as the first parameter selection region or the second parameter selection region. Continuing with the above example, in a 4x4 DCT coefficient matrix, two positions (a, b) and (b, a) symmetrical about the diagonal are selected, and the matrix parameters (first watermark embedding parameters) for position (a, b) and the matrix parameters (second watermark embedding parameters) for position (b, a) are determined. Specifically, the CT coefficient matrix is a 4-row, 4-column (4x4) matrix. Two regions (the first parameter selection region and the second parameter selection region) are determined based on the matrix diagonal division of the DCT coefficient matrix. Therefore, from the 16 positions (0, 0) to (3, 3), positions (1, 2) and (2, 1) corresponding to positions (1, 2) along the matrix diagonal are selected as the locations for embedding information. The matrix parameters at position (1, 2) are used as the first watermark embedding parameters, and the matrix parameters at position (2, 1) are used as the second watermark embedding parameters.This completes the steps of determining the first and second watermark embedding parameters, facilitating the subsequent rapid addition of watermark information to the image to be processed. Step 208: Generate a watermark image embedded with the watermark information based on the multiple watermark embedding matrices. This watermark image can be understood as an image already embedded with the watermark information. In one or more embodiments provided herein, generating a watermark image embedded with the watermark information based on the multiple watermark embedding matrices includes performing image restoration processing on the multiple watermark embedding matrices to generate a watermark image embedded with a dark watermark. This image restoration processing can be understood as a step of restoring the multiple watermark embedding matrices to an image. For example, pixel restoration processing can be performed on the multiple watermark embedding matrices to obtain multiple image blocks, which are then combined to form a watermark image embedded with the dark watermark. In one or more embodiments provided herein, this image restoration processing can be performed by performing an inverse DCT transform. Continuing with the previous example, after obtaining multiple watermark embedding matrices, inverse DCT transforms are performed on them, and the modified coefficient matrices are converted back to pixel information to obtain multiple image blocks. These blocks are then combined to form a watermarked image embedded with a dark watermark. This allows for rapid acquisition of the watermarked image, avoiding the complex process of adding watermarking information to an image, saving time and labor. Furthermore, by performing a DCT transform to add watermark information (dark watermark) in the frequency domain, the watermark is rendered invisible, further facilitating image copyright protection, brand promotion, and anti-piracy efforts. In one or more embodiments provided herein, after generating a watermark image embedded with the watermark information based on the multiple watermark embedding matrices, the method further includes: determining a watermark image, wherein the watermark image is a watermark image generated in one of the aforementioned watermark image generation methods; dividing the watermark image into multiple watermark image blocks, and performing image transformation processing on the multiple watermark image blocks based on a first transformation matrix to obtain multiple watermark image matrices; extracting watermark data from each watermark image matrix to obtain multiple watermark data, and obtaining watermark information based on the multiple watermark data. Specifically, after generating a watermark image embedded with the watermark information through the watermark information embedding step in the watermark image generation method, the watermark information in the watermark data can be extracted. It should be noted that the watermark information embedding step in the watermark image generation method can be implemented at the watermark embedding end, while the step of extracting the watermark information from the watermark data can be implemented at the watermark extraction end. The watermark embedding end and the watermark extraction end can be the same or different. Among them, the watermark embedding end can be understood as the server, client, cloud, server (physical machine) or smart terminal (mobile phone, laptop, etc.).This watermark image generation method can be applied to a watermark embedding end. The watermark extraction end can be understood as a server, client, cloud, server (physical machine), or intelligent terminal (such as a mobile phone or laptop). The watermark extraction end can be used to extract watermark information from the watermark data. Specifically, the watermark information extraction method for the watermark data can be: first, determining a watermark image from which watermark information extraction is to be performed, where the watermark image is the watermark image generated in the aforementioned embodiment of the watermark image generation method; second, dividing the watermark image into multiple watermark image blocks, determining first transformation matrices corresponding to the multiple watermark image blocks, and performing image transformation processing on the multiple watermark image blocks based on the first transformation matrix to obtain multiple watermark image matrices. Finally, watermark data extraction is performed on each watermark image matrix to obtain multiple watermark data, and the multiple watermark data are converted into watermark information, thereby quickly obtaining the watermark information embedded in the watermark image, saving labor and time costs. Specifically, for the method of extracting watermark information from watermark data in the above embodiment, reference can be made to the corresponding or corresponding steps in the following watermark information acquisition method, which will not be elaborated upon here. Based on the above embodiment, it can be seen that the watermark image generation method provided in this specification proposes an asymmetric dark watermarking scheme based on DCT. Asymmetry refers to the inconsistency between the watermark embedding process and the watermark extraction process. By integerizing the DCT transform, computational speed is accelerated at the watermark embedding end, improving watermark embedding efficiency. By decomposing the DCT transform at the watermark extraction end, the number of matrix multiplications at the watermark extraction end is reduced, thereby accelerating extraction efficiency. Accelerating computational speed at the watermark embedding end by integerizing the DCT transform can be understood as integerizing the DCT transform and decomposing it into two independent matrices, C4 and S4, for computation, thereby accelerating computational speed. It should be noted that the step of integerizing the DCT transform can be understood as directly using integer operations, rather than floating-point operations, in the DCT calculation. This significantly reduces computational complexity and storage space, improves computational efficiency, and mitigates errors caused by floating-point precision. The watermark image generation method provided in this specification processes multiple image blocks divided into a processing image to obtain multiple processing image matrices, and generates multiple watermark data based on the watermark information. Subsequently, based on the multiple watermark data and multiple watermark embedding matrices obtained from the multiple processing image matrices, a watermark image embedded with the watermark information is generated. This method rapidly completes the process of adding watermark information to the processing image, avoiding the complex process of adding watermark information to the image, and saving time and labor costs.The following, combined with Figure 4, further illustrates the watermark image generation method provided in this specification using its application in a watermark image processing scenario as an example. Figure 4 shows a flowchart of the processing process of a watermark image generation method provided in one embodiment of this specification, specifically including the following steps: Step 402: Obtain watermark information and image A to which the watermark information is to be added. For example, the watermark information may be: PydA2K / 775RE / 2m4Tp rd I WKgt0Ds4xbXH25Y04dpZhg=. Step 404: Divide image A into image blocks. Specifically, image A is divided into multiple 4x4 pixel blocks according to the size of the 4x4 pixel block. Each 4x4 image block represents a small rectangular area consisting of four adjacent columns and four rows of pixels. Step 406: Perform matrix multiplication on each 4x4 image block to obtain a transformed pixel matrix. In the watermark image generation method provided in this specification, a two-dimensional matrix transformation is performed on each image block based on matrix C4 to obtain a coefficient matrix after DCT transformation. The execution process can be as follows: First, since a 4x4 image block is a 4x4 pixel matrix, the C4 coefficient matrix is multiplied by the 4x4 pixel matrix to obtain a coefficient matrix A. It should be noted that because matrix multiplication is not commutative, the result of multiplying the C4 coefficient matrix by the 4x4 pixel matrix is not equal to the result of multiplying the 4x4 pixel matrix by the C4 coefficient matrix. However, in the watermark image generation method provided in this specification, the coefficient matrix A can be obtained by multiplying the C4 coefficient matrix by the 4x4 pixel matrix. Second, a transposed matrix is determined by transposing the coefficient matrix C4. Finally, the coefficient matrix A is multiplied by the transposed matrix to obtain a transformed coefficient matrix, thereby completing the matrix transformation. Step 408: Perform point-by-point matrix multiplication on the transformed coefficient matrix. Specifically, after obtaining the transformed 4x4 matrix data, the elements in the S4 matrix are multiplied by the corresponding elements in the transformed coefficient matrix, thereby changing the values of the transformed coefficient matrix and obtaining the coefficient matrix after DCT transformation. Step 410: Embed the watermark information into image A. The watermark information is converted into binary data, and each binary bit in the binary data is embedded into an image block of image A. One binary bit corresponds to one image block. The specific method is as follows:
[0005] Step 1: Convert the watermark information into binary data. Each bit in the binary data will then be stored in a corresponding 4x4 DCT coefficient matrix (i.e., the coefficient matrix after the DCT transformation). Step 2: Determine a corresponding DCT coefficient matrix for each binary bit. Step 3: From the DCT coefficient matrix, identify two symmetrical positions (a, b) and (b, a) around the diagonal. Step 4: Adjust the size relationship between positions (a, b) and (b, a), and use this size relationship to indicate whether a binary 0 or 1 should be embedded. This allows the binary bit information corresponding to the watermark information to be embedded in the DCT coefficient matrix. Specifically, when the watermark data corresponding to a DCT coefficient matrix is determined to be binary 0, the DCT coefficient x at position (a, b) is modified to be greater than the DCT coefficient y at position (b, a). When the watermark data corresponding to a DCT coefficient matrix is determined to be binary 1, the coefficient x at position (a, b) is modified to be less than the coefficient y at position (b, a). By modifying the DCT coefficients at both positions, it is ensured that when the binary bit to be embedded is 0, the DCT coefficient at position (a, b) is greater than the DCT coefficient at position (b, a); and when the binary bit to be embedded is 1, the DCT coefficient at position (b, a) is greater than the DCT coefficient at position (a, b). Step 412: Perform an inverse DCT transform. By performing the inverse DCT transform, the modified coefficient matrix is restored to pixel information to obtain a watermarked image embedded with the dark watermark, thereby completing the watermark embedding step. Furthermore, a dark watermark embedded in a watermarked image can be obtained using a watermark information acquisition method capable of extracting watermark data from a watermarked image. Based on the above steps, the watermark image generation method provided in this specification proposes an asymmetric dark watermarking scheme based on DCT. The asymmetric algorithm flow for watermark embedding and extraction presented in this scheme aims to achieve rapid watermark information detection and embedding. During DCT embedding of the dark watermark, a DCT transform splitting method is employed, including a method for selecting the matrix C4 to obtain a C4 matrix with good performance. Furthermore, during embedding of the binary bit data of the dark watermark into the image, the binary bit data is embedded using the magnitude relationship of the matrix coefficients. The embedded information can be adapted to the subsequent watermark data extraction process from the watermarked image, thereby improving the speed of watermark extraction.Referring to Figure 5, Figure 5 shows a flowchart of a watermark information acquisition method provided according to one embodiment of this specification, specifically comprising the following steps. Step 502: Determine a watermark image, wherein the watermark image is a watermark image generated by the aforementioned watermark image generation method. The watermark image can be understood as an image embedded with watermark information, the watermark information can be understood as the watermark information in the aforementioned watermark image generation method, or the watermark image can be understood as the watermark image generated by the aforementioned watermark image generation method. Step 504: Divide the watermark image into multiple watermark image blocks, and perform image transformation processing on the multiple watermark image blocks based on a first transformation matrix to obtain multiple watermark image matrices. In one or more embodiments provided in this specification, performing image transformation processing on the multiple watermark image blocks can be understood as performing integerized DCT transforms on the multiple watermark image blocks. Regarding the step of dividing the watermark image into multiple watermark image blocks, reference can be made to the description of dividing the image to be processed into multiple watermark image blocks in the aforementioned watermark image generation method. In one or more embodiments provided herein, dividing the watermark image into multiple watermark image blocks can be understood as dividing the watermark image into multiple watermark images according to a preset partition size. Each watermark image is sorted according to the partition order. The preset partition size can be set based on the actual application scenario. For example, the preset partition size can be 4x4 pixels or 8x8 pixels. Correspondingly, the multiple watermark image blocks divided according to the preset partition size can be multiple image blocks of 4x4 pixels or multiple image blocks of 8x8 pixels. The watermark image block can be understood as an image area within the watermark image. For example, an image is divided into four image blocks. Each image block represents one-fourth of the image. It should be noted that since an image is composed of pixels (i.e., binary bits), each watermark image block can be a matrix composed of binary bits. In the matrix corresponding to the watermark image block, each matrix parameter represents a pixel. For example, a 4x4 pixel watermark image block can be a 4x4 pixel matrix. Based on this, the watermark image block may be a 4x4 pixel image block (ie, a 4x4 pixel matrix), and the 4x4 pixel image block expresses a small rectangular area consisting of four adjacent columns and four rows of pixels.In one or more embodiments provided herein, performing image transformation processing on the multiple watermark image blocks based on a first transformation matrix to obtain multiple watermark image matrices includes: determining a first transformation matrix corresponding to the multiple watermark image blocks; performing image transformation processing on the multiple watermark image blocks using the first transformation matrix and a transposed matrix corresponding to the first transformation matrix to obtain the multiple watermark image matrices. The first transformation matrix and the transposed matrix can be found in the corresponding or corresponding descriptions of the aforementioned watermark image generation method and are not further described here. A watermark image matrix can be understood as a matrix embedded with watermark data, with one watermark image matrix corresponding to each watermark image block. Specifically, the watermark information acquisition method provided herein, after dividing a watermark image into multiple watermark image blocks, can determine a first transformation matrix corresponding to the multiple watermark image blocks; and performing transformation processing on each watermark image in the multiple watermark image blocks using the first transformation matrix to obtain the multiple watermark image matrices. This improves the speed of watermark information extraction. The application of the watermark image generation method provided in this specification in an image watermark extraction scenario is used as an example for illustration. The watermark image block may be a 4x4 pixel matrix, and the first transformation matrix may be the C4 matrix shown in Table 1 of the aforementioned watermark image generation method. Based on this, after image A is divided into multiple 4x4 pixel image blocks according to the size of the 4x4 pixel blocks, a C4 matrix is determined for transforming the multiple 4x4 pixel image blocks. Based on the C4 matrix and the transposed matrix corresponding to the C4 matrix, a two-dimensional transformation is performed on each of the multiple 4x4 pixel image blocks to obtain multiple coefficient matrices (i.e., watermark image matrices). In one or more embodiments provided herein, performing image transformation processing on the multiple watermark image blocks using the first transformation matrix and the transposed matrix corresponding to the first transformation matrix to obtain the multiple watermark image matrices includes: performing matrix transposition processing on the first transformation matrix to obtain the transposed matrix corresponding to the first transformation matrix; multiplying the first transformation matrix by each watermark image block to obtain multiple multiplied watermark matrices; and multiplying each multiplied watermark matrix by the transposed matrix to obtain the multiple watermark image matrices. The multiplied watermark matrices can refer to the explanation of the multiplication matrices in the embodiment of the watermark image generation method described above and are not further described here. Continuing with the above example, the watermark information acquisition method provided herein, because the watermark image is generated using integerized DCT, can improve the speed of watermark information extraction during watermark information acquisition.Specifically, the DCT transform can be integerized and decomposed into two independent C4 and S4 matrix calculations. The matrix calculation method based on the C4 matrix can be understood as performing a two-dimensional transformation on the input 4x4 matrix (i.e., each watermark image block) through matrix multiplication, obtaining a coefficient matrix after the two-dimensional transformation. In other words, the two-dimensional matrix transformation C4 needs to be calculated for each watermark image block. The execution process can be as follows: First, since the 4x4 watermark image block is a 4x4 pixel matrix, the C4 coefficient matrix is multiplied by each 4x4 pixel matrix to obtain multiple coefficient matrices A. Second, a transposed matrix is determined by transposing the C4 matrix. Finally, the multiple coefficient matrices A are multiplied by the transposed matrix to obtain multiple two-dimensional transformed coefficient matrices (i.e., watermark image matrices), thus completing the matrix transformation. This facilitates subsequent rapid watermark information extraction based on these multiple two-dimensional transformed coefficient matrices, thereby improving the speed of watermark information extraction. It should be noted that during the watermark information acquisition process, the C4 matrix is used to obtain the watermark information, thereby achieving asymmetry between the watermark image generation step and the watermark information acquisition step. Step 506: Perform watermark data extraction on each watermark image matrix to obtain multiple watermark data, and obtain watermark information based on the multiple watermark data. The watermark data can be found in the corresponding explanation in the embodiment of the watermark image generation method described above and will not be described in detail here. In one or more embodiments provided herein, performing watermark data extraction on each watermark image matrix to obtain multiple watermark data and obtaining watermark information based on the multiple watermark data includes: determining first and second watermark embedding parameters in each watermark image matrix; determining multiple watermark data from each watermark image matrix based on the first and second watermark embedding parameters, and generating embedded watermark information based on the multiple watermark data. The first and second watermark embedding parameters can be found in the corresponding explanation in the embodiment of the watermark image generation method described above and will not be described in detail here. It should be noted that the first watermark embedding parameter and the second watermark embedding parameter in the watermark information acquisition method provided in this specification may be the first watermark embedding parameter and the second watermark embedding parameter determined from each to-be-embedded image matrix in the above-mentioned watermark image generation method.Specifically, the watermark information acquisition method provided in this specification, after obtaining multiple watermark image matrices, first determines the first watermark embedding parameter and the second watermark embedding parameter in each image matrix to be embedded. Second, based on the magnitude relationship between the first watermark embedding parameter and the second watermark embedding parameter in each watermark image matrix, determines the watermark data to be embedded in each watermark image matrix. Finally, the embedded watermark information is generated based on the multiple watermark data. This allows for rapid completion of the watermark information extraction operation. In one or more embodiments provided herein, determining multiple watermark data from each watermark image matrix based on the first watermark embedding parameter and the second watermark embedding parameter, and generating embedded watermark information based on the multiple watermark data, includes: if it is determined that the first watermark embedding parameter is greater than the second watermark embedding parameter, determining that the embedded watermark data in the watermark image matrix corresponding to the first watermark embedding parameter and the second watermark embedding parameter is a first preset binary bit; if it is determined that the first watermark embedding parameter is less than the second watermark embedding parameter, determining that the embedded watermark data in the watermark image matrix corresponding to the first watermark embedding parameter and the second watermark embedding parameter is a second preset binary bit; and converting the first preset binary bit and the second preset binary bit embedded in each watermark image matrix into the watermark information. The first preset binary bit can be understood as a preset binary bit 0 or a preset binary bit 1. The second preset binary bit can be understood as a preset binary bit 0 or a preset binary bit 1. OIt should be noted that the first preset binary bit and the second preset binary bit may be different. To facilitate explanation of the watermark information acquisition method provided in this specification, the first preset binary bit can be understood as binary bit 0, and the second preset binary bit can be understood as binary bit 1. Continuing with the above example, in the process of embedding watermark information into the image to be processed, the watermark image generation method described above needs to convert the watermark information into binary data and determine a corresponding DCT coefficient matrix for each binary bit in the binary data from multiple DCT coefficient matrices (i.e., the coefficient matrices after the DCT transformation described above). Each binary bit is then embedded into the corresponding DCT coefficient matrix, thereby embedding the watermark information into the image to be processed and obtaining a watermarked image. Based on this, in the process of extracting watermark information from the watermark image, each 4x4 DCT coefficient matrix (i.e., each watermark image matrix) is determined, and the matrix parameters (i.e., DCT coefficients) at position (a, b) and the matrix parameters (i.e., DCT coefficients) at position (b, a) are selected from the 4x4 DCT coefficient matrix. Then, the magnitude relationship between the two matrix coefficients is used to indicate whether the hidden watermark data is 0 or 1. Specifically, when the DCT coefficient x at position (a, b) in a DCT coefficient matrix is determined to be greater than the DCT coefficient y at position (b, a), the watermark data corresponding to the DCT coefficient matrix is determined to be binary 0. When the coefficient x at position (a, b) in a DCT coefficient matrix is determined to be less than the coefficient y at position (b, a), the watermark data corresponding to the DCT coefficient matrix is determined to be binary 1. The above watermark data extraction steps are performed on all watermarked image matrices until all watermark data is extracted, thereby completing the step of extracting the embedded binary bit from the DCT coefficient matrix. The watermark data (i.e., binary bit) is then restored to obtain the embedded watermark information. This rapidly completes the watermark information extraction process from the watermarked image, avoiding the complex watermark information extraction process and saving time and labor costs. The above is an exemplary solution for a watermark information acquisition method according to this embodiment. It should be noted that the technical solution of the watermark information acquisition method and the technical solution of the watermark image generation method described above are of the same concept. For details not described in detail in the technical solution of the watermark information acquisition method, please refer to the description of the technical solution of the watermark image generation method described above.This specification provides a watermark information acquisition method. This method performs image transformation processing on multiple watermark image blocks divided into a watermark image based on a first transformation matrix to obtain multiple watermark image matrices. Watermark information is then generated based on the multiple watermark data extracted from each watermark image matrix. This method rapidly extracts watermark information from a watermark image, avoiding the complexity of the watermark information extraction process and saving time and labor costs. The following, combined with Figure 6, further illustrates the watermark information acquisition method provided in this specification using its application in a watermark image processing scenario as an example. Figure 6 illustrates a flowchart of the watermark information acquisition method provided in one embodiment of this specification, specifically including the following steps: Step 602: Obtain a watermark image from which watermark information is to be extracted. Step 604: Divide the watermark image into image blocks. Specifically, image A is divided into multiple 4x4 image blocks, based on the size of the 4x4 pixel blocks. Each 4x4 image block represents a small rectangular area consisting of four adjacent columns and four rows of pixels. Step 606: Perform matrix multiplication on each 4x4 image block to obtain a transformed coefficient matrix. In this solution, a two-dimensional matrix transformation is performed on each image block based on the C4 matrix to obtain a transformed DCT coefficient matrix. The execution process can be as follows: First, since a 4x4 image block is a 4x4 pixel matrix, the C4 coefficient matrix is multiplied by the 4x4 pixel matrix to obtain a coefficient matrix A. It should be noted that since matrix multiplication is not commutative, the result of multiplying the C4 coefficient matrix by the 4x4 pixel matrix is not equal to the result of multiplying the 4x4 pixel matrix by the C4 coefficient matrix. Therefore, in the watermark information acquisition method provided in this specification, the coefficient matrix A can be obtained by multiplying the C4 coefficient matrix by the 4x4 pixel matrix. Next, a transposed matrix is determined by transposing the C4 coefficient matrix; coefficient matrix A is multiplied by the transposed matrix to obtain a DCT coefficient matrix B. Step 608: Extract the embedded watermark information. Specifically, the positions (a, b) and (b, a) that are symmetrical along the diagonal line in the DCT coefficient matrix B are determined, and the sizes of the matrix coefficients corresponding to the two positions are determined.When the DCT coefficient x at position (a, b) in a DCT coefficient matrix is determined to be greater than the DCT coefficient y at position (b, a), the watermark data corresponding to the DCT coefficient matrix is determined to be binary 0. When the coefficient x at position (a, b) in a DCT coefficient matrix is determined to be less than the coefficient y at position (b, a), the watermark data corresponding to the DCT coefficient matrix is determined to be binary 1, thereby obtaining a binary bit embedded in the DCT coefficient matrix. This binary bit is then converted into watermark information, thereby obtaining the watermark information embedded in the watermarked image. Based on the above steps, it can be seen that the watermark information acquisition method provided in this specification, during the watermark extraction process, considers that the S4 coefficients at diagonally symmetric positions are identical. Therefore, the corresponding point-by-point matrix multiplication operation is not required to obtain the corresponding embedded watermark information, thereby achieving asymmetry in the watermark processing process and accelerating the watermark extraction speed. Referring to Figure 7, Figure 7 shows a flowchart of another watermark image generation method provided according to one embodiment of this specification, which specifically includes the following steps. Step 702: Determine an image to be processed and a dark watermark corresponding to the image to be processed. Step 704: Divide the image to be processed into multiple image blocks to be processed and perform image transformation processing on the multiple image blocks to be processed based on a first transformation matrix and a second transformation matrix to obtain multiple image matrices to be processed. Step 706: Generate multiple watermark data based on the dark watermark and obtain multiple watermark embedding matrices based on the multiple watermark data and the multiple image matrices to be processed. Step 708: Generate a watermark image embedded with the dark watermark based on the multiple watermark embedding matrices. The dark watermark can be understood as a type of watermark information. Embedding a dark watermark in the image to be processed modifies the original image information. However, the human eye is not sensitive to the absolute value of pixel information, so even a small modification of pixel information is not noticeable. A computer, however, identifies the changes in each bit of information in the watermark image to locate the hidden watermark information. It should be noted that the dark watermark can be understood as the watermark information in the aforementioned watermark image generation method. For the explanation and processing steps of the dark watermark, please refer to the explanation and processing steps of the watermark information in the above-mentioned watermark image generation method, which will not be repeated here. The above is an exemplary solution of another watermark image generation method of this embodiment.It should be noted that the technical solution of this alternative watermark image generation method shares the same concept as the technical solution of the aforementioned watermark image generation method. For details not described in detail in the technical solution of the alternative watermark image generation method, reference can be made to the description of the technical solution of the aforementioned watermark image generation method. The alternative watermark image generation method provided in this specification processes multiple image blocks divided into a processing image based on a first transformation matrix and a second transformation matrix to obtain multiple processing image matrices, and generates multiple watermark data based on a dark watermark. Subsequently, based on the multiple watermark data and multiple watermark embedding matrices obtained from the multiple processing image matrices, a watermark image embedded with the dark watermark is generated. This method rapidly completes the dark watermarking of the processing image, avoids the complex process of adding dark watermarks to the image, and saves time and labor costs. Corresponding to the aforementioned method embodiment, this specification also provides an embodiment of a watermark image generation device. Figure 8 shows a schematic structural diagram of a watermark image generation device provided in one embodiment of this specification. As shown in FIG8 , the apparatus includes: an image determination module 802 configured to determine an image to be processed and watermark information corresponding to the image to be processed; a first matrix acquisition module 804 configured to divide the image to be processed into a plurality of image blocks to be processed, and perform image transformation processing on the plurality of image blocks to be processed based on a first transformation matrix and a second transformation matrix to obtain a plurality of image matrices to be processed; a second matrix acquisition module 806 configured to generate a plurality of watermark data based on the watermark information, and obtain a plurality of watermark embedding matrices based on the plurality of watermark data and the plurality of image matrices to be processed; and a watermark image generation module 808 configured to generate a watermark image embedded with the watermark information based on the plurality of watermark embedding matrices. Optionally, the first matrix acquisition module 804 is further configured to: determine a first transformation matrix and a second transformation matrix corresponding to the multiple image blocks to be processed, wherein the first transformation matrix and the second transformation matrix are obtained by decomposing an image transformation operation on the image to be processed; perform image transformation processing on the multiple image blocks to be processed using the first transformation matrix and a transposed matrix corresponding to the first transformation matrix to obtain multiple transformed image matrices; and perform image transformation processing on the multiple transformed image matrices using the second transformation matrix to obtain the multiple image matrices to be processed.Optionally, the first matrix acquisition module 804 is further configured to: perform matrix transposition processing on the first transformation matrix to obtain a transposed matrix corresponding to the first transformation matrix; multiply the first transformation matrix by each image block to be processed to obtain multiple multiplication matrices; and multiply each multiplication matrix by the transposed matrix to obtain the multiple transformed image matrices. Optionally, the first matrix acquisition module 804 is further configured to: determine transformation matrix parameters in the second transformation matrix and transformation matrix parameter positions of the transformation matrix parameters; determine image matrix parameters in each transformed image matrix and image matrix parameter positions of the image matrix parameters; determine transformation matrix parameters corresponding to positions of the image matrix parameters in each transformed image matrix based on the transformation matrix parameter positions and the image matrix parameter positions; and multiply the image matrix parameters in each transformed image matrix by the transformation matrix parameters corresponding to the positions to obtain the multiple image matrices to be processed. Optionally, the second matrix acquisition module 806 is further configured to: convert the watermark information into binary data and use multiple binary bits in the binary data as multiple watermark data; determine, from the multiple image matrices to be processed, the image matrices to be embedded corresponding to each watermark data; and embed the multiple watermark data into the corresponding image matrices to be embedded based on the watermark embedding parameters in each image matrix to be embedded, to obtain the multiple watermark embedding matrices. Optionally, the second matrix acquisition module 806 is further configured to: determine first watermark embedding parameters and second watermark embedding parameters in each image matrix to be embedded; and adjust the first watermark embedding parameters and the second watermark embedding parameters in each image matrix to be embedded based on the watermark data corresponding to each image matrix to be embedded, to obtain the multiple watermark embedding matrices. Optionally, the second matrix acquisition module 806 is further configured to: determine watermark data corresponding to each of the to-be-embedded image matrices; and if it is determined that the watermark data is a first preset binary bit, adjust the first watermark embedding parameter in each of the to-be-embedded image matrices to be greater than the second watermark embedding parameter; and if it is determined that the watermark data is a second preset binary bit, adjust the first watermark embedding parameter in each of the to-be-embedded image matrices to be less than the second watermark embedding parameter, to obtain the multiple watermark embedding matrices.Optionally, the second matrix acquisition module 806 is further configured to: determine a first parameter selection region and a second parameter selection region in each to-be-embedded image matrix, wherein the matrix parameters in the first parameter selection region correspond to the matrix parameters in the second parameter selection region; randomly select any one of the matrix parameters in the first parameter selection region as the first watermark embedding parameter; and use the matrix parameter in the second parameter selection region corresponding to the first watermark embedding parameter as the second watermark embedding parameter. Optionally, the watermark image generation module 808 is further configured to: perform image restoration processing on the multiple watermark embedding matrices to generate a watermarked image embedded with a dark watermark. Optionally, the watermark image generation device further includes a watermark information acquisition module configured to: determine a watermark image, wherein the watermark image is a watermark image generated by one of the watermark image generation methods described above; divide the watermark image into multiple watermark image blocks, and perform image transformation processing on the multiple watermark image blocks based on a first transformation matrix to obtain multiple watermark image matrices; extract watermark data from each watermark image matrix to obtain multiple watermark data, and obtain watermark information based on the multiple watermark data. The watermark image generation device provided in this specification can process multiple to-be-processed image blocks divided from a to-be-processed image based on a first transformation matrix and a second transformation matrix to obtain multiple to-be-processed image matrices, and generate multiple watermark data based on the watermark information; then, based on the multiple watermark data and multiple watermark embedding matrices obtained from the multiple to-be-processed image matrices, generate a watermark image embedded with the watermark information. This method rapidly completes the process of adding watermark information to the to-be-processed image, avoids the complex process of adding watermark information to the image, and saves time and labor costs. The above is a schematic diagram of a watermark image generation device according to this embodiment. It should be noted that the technical solution of this watermark image generation device and the technical solution of the watermark image generation method described above share the same concept. For details not described in detail in the technical solution of the watermark image generation device, please refer to the description of the technical solution of the watermark image generation method described above. Corresponding to the above method embodiment, this specification also provides an embodiment of a watermark information acquisition device. Figure 9 shows a schematic structural diagram of a watermark information acquisition device according to one embodiment of this specification.As shown in Figure 9, the apparatus includes: an image determination module 902 configured to determine a watermark image, wherein the watermark image is a watermark image generated by the above-described watermark image generation method; a matrix determination module 904 configured to divide the watermark image into multiple watermark image blocks and perform image transformation processing on the multiple watermark image blocks based on a first transformation matrix to obtain multiple watermark image matrices; and a watermark acquisition module 906 configured to extract watermark data from each watermark image matrix to obtain multiple watermark data, and obtain watermark information based on the multiple watermark data. Optionally, the matrix determination module 904 is further configured to: determine a first transformation matrix corresponding to the multiple watermark image blocks; and perform image transformation processing on the multiple watermark image blocks using the first transformation matrix and a transposed matrix corresponding to the first transformation matrix to obtain the multiple watermark image matrices. Optionally, the matrix determination module 904 is further configured to: perform matrix transposition processing on the first transformation matrix to obtain a transposed matrix corresponding to the first transformation matrix; multiply the first transformation matrix by each watermark image block to obtain multiple multiplied watermark matrices; and multiply each multiplied watermark matrix by the transposed matrix to obtain the multiple transformed watermark image matrices. Optionally, the watermark acquisition module 906 is further configured to: determine a first watermark embedding parameter and a second watermark embedding parameter in each watermark image matrix; determine multiple watermark data from each watermark image matrix based on the first watermark embedding parameter and the second watermark embedding parameter; and generate embedded watermark information based on the multiple watermark data. Optionally, the watermark acquisition module 906 is further configured to: if it is determined that the first watermark embedding parameter is greater than the second watermark embedding parameter, determine that the watermark data embedded in the watermark image matrix corresponding to the first watermark embedding parameter and the second watermark embedding parameter is a first preset binary bit; if it is determined that the first watermark embedding parameter is less than the second watermark embedding parameter, determine that the watermark data embedded in the watermark image matrix corresponding to the first watermark embedding parameter and the second watermark embedding parameter is a second preset binary bit; and convert the first preset binary bit and the second preset binary bit embedded in each watermark image matrix into the watermark information. This specification provides a watermark information acquisition device that performs image transformation processing on multiple watermark image blocks divided into a watermark image based on a first transformation matrix to obtain multiple watermark image matrices; and then generates watermark information based on multiple watermark data extracted from each watermark image matrix.This allows for rapid extraction of watermark information from a watermarked image, avoiding the complexities of the watermark extraction process and saving time and labor. The above is a schematic diagram of a watermark information acquisition device according to this embodiment. It should be noted that the technical solution of this watermark information acquisition device shares the same concept as the technical solution of the aforementioned watermark information acquisition method. For details not described in detail in the technical solution of the watermark information acquisition device, please refer to the description of the technical solution of the aforementioned watermark information acquisition method. Corresponding to the aforementioned method embodiment, this specification also provides another embodiment of a watermark image generation device. Figure 10 shows a schematic structural diagram of another watermark image generation device provided in one embodiment of this specification. As shown in FIG10 , the apparatus includes: an image determination module 1002 configured to determine an image to be processed and a dark watermark corresponding to the image to be processed; a first matrix acquisition module 1004 configured to divide the image to be processed into a plurality of image blocks to be processed, and perform image transformation processing on the plurality of image blocks to be processed based on a first transformation matrix and a second transformation matrix to obtain a plurality of image matrices to be processed; a second matrix acquisition module 1006 configured to generate a plurality of watermark data according to the dark watermark, and obtain a plurality of watermark embedding matrices according to the plurality of watermark data and the plurality of image matrices to be processed; and a watermark image generation module 1008 configured to generate a watermark image embedded with the dark watermark according to the plurality of watermark embedding matrices. This specification provides another watermark image generation device that processes multiple image blocks divided from a processed image based on a first transformation matrix and a second transformation matrix to obtain multiple image matrices, and generates multiple watermark data based on a dark watermark. The device then generates a watermark image embedded with the dark watermark based on the multiple watermark data and multiple watermark embedding matrices obtained from the multiple image matrices. This allows for rapid completion of the dark watermarking process for the processed image, avoiding the complexities of the image dark watermarking process and saving time and labor. The above is a schematic diagram of another watermark image generation device according to this embodiment. It should be noted that the technical solution of this another watermark image generation device shares the same concept as the technical solution of the aforementioned another watermark image generation method. Details not described in detail in the technical solution of the another watermark image generation device can be found in the description of the technical solution of the aforementioned another watermark image generation method. Figure 11 shows a block diagram of a computing device 1100 according to one embodiment of this specification.Components of the computing device 1100 include, but are not limited to, a memory 1110 and a processor 1120. The processor 1120 and the memory 1110 are connected via a bus 1130. A database 1150 is used to store data. The computing device 1100 also includes an access device 1140 that enables the computing device 1100 to communicate via one or more networks 1160. Examples of such networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 1140 may include one or more of any type of wired or wireless network interface (e.g., a network interface card (NIC)), such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a Worldwide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, or a Near Field Communication (NFC) interface. In one embodiment of this specification, the aforementioned components of the computing device 1100 and other components not shown in FIG. 11 may also be connected to each other, for example, via a bus. It should be understood that the computing device structure block diagram shown in FIG. 11 is for illustrative purposes only and does not limit the scope of this specification. Those skilled in the art may add or replace other components as needed. Computing device 1100 can be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smartphone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC).The computing device 1100 may also be a mobile or stationary server. The processor 1120 is configured to execute the following computer-executable instructions, which, when executed by the processor, implement the steps of the aforementioned watermark image generation method, alternative watermark image generation method, or watermark information acquisition method. The various embodiments in this specification are described in a progressive manner. Similar portions between the various embodiments may be referenced to each other. Each embodiment focuses on the differences from the other embodiments. In particular, the computing device embodiment is generally similar to the aforementioned watermark image generation method, alternative watermark image generation method, or watermark information acquisition method embodiments, so the description is relatively simple. For relevant portions, reference may be made to the partial description of the aforementioned watermark image generation method, alternative watermark image generation method, or watermark information acquisition method embodiments. This specification also provides a computer-readable storage medium storing a computer program / instructions. When executed by the processor, the computer program / instructions implement the steps of the aforementioned watermark image generation method, alternative watermark image generation method, or watermark information acquisition method embodiments. The various embodiments in this specification are described in a progressive manner. Similar or identical parts between the various embodiments can be referenced to each other. Each embodiment focuses on the differences from other embodiments. In particular, the computer-readable storage medium embodiment is generally similar to the aforementioned watermark image generation method, another watermark image generation method, or watermark information acquisition method embodiments, so its description is relatively simple. For relevant parts, reference can be made to the partial description of the aforementioned watermark image generation method, another watermark image generation method, or watermark information acquisition method embodiments. This specification also provides a computer program product in one embodiment, including a computer program / instructions. When executed by a processor, the computer program / instructions implement the steps of the aforementioned watermark image generation method, another watermark image generation method, or watermark information acquisition method. The above is an exemplary embodiment of a computer program product of this embodiment. It should be noted that the technical solution of this computer program product shares the same concept as the technical solution of the aforementioned watermark image generation method, another watermark image generation method, or watermark information acquisition method. For details not described in detail in the technical solution of the computer program product, reference can be made to the description of the technical solution of the aforementioned watermark image generation method, another watermark image generation method, or watermark information acquisition method. The above description is of specific embodiments of this specification. Other embodiments are within the scope of the appended claims.In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous. The computer instructions include computer program code, which may be in source code form, object code form, executable files, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signals, telecommunication signals, and software distribution media. It should be noted that the content of the computer-readable medium may be appropriately increased or decreased based on the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media does not include electric carrier signals and telecommunication signals. It should be noted that, for ease of description, the aforementioned method embodiments are presented as a series of actions. However, those skilled in the art should understand that the present disclosure is not limited by the order of the actions described, as certain steps may be performed in a different order or simultaneously, according to the present disclosure. Furthermore, those skilled in the art should also understand that the embodiments described in this specification are preferred embodiments, and the actions and modules described are not necessarily required for the present disclosure. In the above embodiments, the description of each embodiment has its own emphasis. For portions not described in detail in a particular embodiment, reference should be made to the relevant descriptions of other embodiments. The preferred embodiments disclosed above are merely intended to help illustrate this specification. The optional embodiments do not describe all details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and variations are possible based on the content of this disclosure. This specification selects and describes these embodiments in detail to better explain the principles and practical applications of the present disclosure, thereby enabling those skilled in the art to better understand and utilize this specification. This specification is limited only by the claims and their full scope and equivalents.
Claims
22 Claims 1. A method for generating a watermark image, comprising: Determining an image to be processed and watermark information corresponding to the image to be processed; Dividing the image to be processed into a plurality of image blocks to be processed, and performing image transformation processing on the plurality of image blocks to be processed based on a first transformation matrix and a second transformation matrix to obtain a plurality of image matrices to be processed; generating a plurality of watermark data according to the watermark information, and obtaining a plurality of watermark embedding matrices according to the plurality of watermark data and the plurality of image matrices to be processed; A watermark image embedded with the watermark information is generated according to the multiple watermark embedding matrices.
2. The watermark image generation method according to claim 1, wherein the step of performing image transformation processing on the plurality of image blocks to be processed based on the first transformation matrix and the second transformation matrix to obtain a plurality of image matrices to be processed comprises: Determining a first transformation matrix and a second transformation matrix corresponding to the multiple image blocks to be processed, wherein the first transformation matrix and the second transformation matrix are obtained by decomposing an image transformation operation on the image to be processed; performing image transformation processing on the multiple image blocks to be processed using the first transformation matrix and a transposed matrix corresponding to the first transformation matrix to obtain multiple transformed image matrices; and performing image transformation processing on the multiple transformed image matrices using the second transformation matrix to obtain the multiple image matrices to be processed.
3. The watermark image generation method according to claim 2, wherein the step of performing image transformation processing on the plurality of image blocks to be processed using the first transformation matrix and a transposed matrix corresponding to the first transformation matrix to obtain a plurality of transformed image matrices comprises: performing matrix transposition processing on the first transformation matrix to obtain a transposed matrix corresponding to the first transformation matrix; Multiplying each image block to be processed by the first transformation matrix respectively to obtain a plurality of multiplication matrices; and multiplying each multiplication matrix by the transposed matrix respectively to obtain the plurality of transformed image matrices.
4. The watermark image generation method according to claim 2, wherein the step of performing image transformation processing on the plurality of transformed image matrices using the second transformation matrix to obtain the plurality of image matrices to be processed comprises: determining transformation matrix parameters in the second transformation matrix, and transformation matrix parameter positions of the transformation matrix parameters; Determining image matrix parameters in each transformed image matrix, and image matrix parameter positions of the image matrix parameters; Determining, for the image matrix parameters in each transformed image matrix, corresponding transformation matrix parameters at the corresponding positions based on the transformation matrix parameter positions and the image matrix parameter positions; and multiplying the image matrix parameters in each transformed image matrix by the transformation matrix parameters corresponding to the corresponding positions to obtain the plurality of image matrices to be processed.
5. The watermark image generation method according to claim 1, wherein generating a plurality of watermark data according to the watermark information and obtaining a plurality of watermark embedding matrices according to the plurality of watermark data and the plurality of image matrices to be processed comprises: Converting the watermark information into binary data, and using multiple binary bits in the binary data as multiple watermark data; Determining the image matrix to be embedded corresponding to each watermark data from the plurality of image matrices to be processed; According to the watermark embedding parameters in each to-be-embedded image matrix, the multiple watermark data are respectively embedded into the corresponding to-be-embedded image matrix to obtain the multiple watermark embedding matrices.
6. The watermark image generation method according to claim 5, wherein the step of embedding the plurality of watermark data into the corresponding image matrices to be embedded according to the watermark embedding parameters in the image matrices to be embedded to obtain the plurality of watermark embedding matrices comprises: Determining first watermark embedding parameters and second watermark embedding parameters in each to-be-embedded image matrix; Based on the watermark data corresponding to each to-be-embedded image matrix, the first watermark embedding parameter and the second watermark embedding parameter in each to-be-embedded image matrix are adjusted to obtain the multiple watermark embedding matrices.
7. The watermark image generation method according to claim 6, wherein the adjusting the first watermark embedding parameters and the second watermark embedding parameters in each of the image matrices to be embedded based on the watermark data corresponding to each of the image matrices to be embedded to obtain the multiple watermark embedding matrices comprises: Determining the watermark data corresponding to each of the image matrices to be embedded; When it is determined that the watermark data is a first preset binary bit, the first watermark embedding parameter in each of the to-be-embedded image matrices is adjusted to be greater than the second watermark embedding parameter; and when it is determined that the watermark data is a second preset binary bit, the first watermark embedding parameter in each of the to-be-embedded image matrices is adjusted to be less than the second watermark embedding parameter, to obtain the multiple watermark embedding matrices.
8. The watermark image generation method according to claim 6, wherein determining the first watermark embedding parameter and the second watermark embedding parameter in each image matrix to be embedded comprises: Determine a first parameter selection area and a second parameter selection area in each to-be-embedded image matrix, wherein matrix parameters in the first parameter selection area correspond to matrix parameters in the second parameter selection area; randomly select any one of the matrix parameters in the first parameter selection area as the first watermark embedding parameter; and use the matrix parameters in the second parameter selection area corresponding to the first watermark embedding parameter as the second watermark embedding parameter.
9. The watermark image generation method according to claim 1, wherein generating a watermark image embedded with the watermark information according to the multiple watermark embedding matrices comprises: Image restoration processing is performed on the multiple watermark embedding matrices to generate a watermark image embedded with a dark watermark.
10. The watermark image generation method according to claim 1, after generating the watermark image embedded with the watermark information according to the multiple watermark embedding matrices, further comprising: Determine a watermark image, wherein the watermark image is a watermark image generated by the above-mentioned watermark image generation method; divide the watermark image into a plurality of watermark image blocks, and perform image transformation processing on the plurality of watermark image blocks based on a first transformation matrix to obtain a plurality of watermark image matrices; extract watermark data from each watermark image matrix to obtain a plurality of watermark data, and obtain a watermark image matrix based on the plurality of watermark data. Get watermark information.
11. A method for obtaining watermark information, comprising: Determine a watermark image, wherein the watermark image is a watermark image generated by any one of the watermark image generation methods of claims 1 to 0 above; divide the watermark image into a plurality of watermark image blocks, and perform image transformation processing on the plurality of watermark image blocks based on a first transformation matrix to obtain a plurality of watermark image matrices; extract watermark data from each watermark image matrix to obtain a plurality of watermark data, and obtain watermark information based on the plurality of watermark data.
12. The watermark information acquisition method according to claim 11, wherein the step of performing image transformation processing on the plurality of watermark image blocks based on the first transformation matrix to obtain a plurality of watermark image matrices comprises: Determining a first transformation matrix corresponding to the plurality of watermark image blocks; Performing image transformation processing on the multiple watermark image blocks using the first transformation matrix and a transposed matrix corresponding to the first transformation matrix to obtain the multiple watermark image matrices.
13. The watermark information acquisition method according to claim 12, wherein the step of performing image transformation processing on the plurality of watermark image blocks using the first transformation matrix and a transposed matrix corresponding to the first transformation matrix to obtain the plurality of watermark image matrices comprises: performing matrix transposition processing on the first transformation matrix to obtain a transposed matrix corresponding to the first transformation matrix; Multiplying each watermark image block by the first transformation matrix respectively to obtain a plurality of multiplied watermark matrices; and multiplying each multiplied watermark matrix by the transposed matrix respectively to obtain the plurality of watermark image matrices.
14. The watermark information acquisition method according to claim 11, wherein extracting watermark data from each watermark image matrix to obtain a plurality of watermark data, and obtaining watermark information based on the plurality of watermark data comprises: determining first watermark embedding parameters and second watermark embedding parameters in each watermark image matrix; Based on the first watermark embedding parameter and the second watermark embedding parameter, a plurality of watermark data are determined from each watermark image matrix, and embedded watermark information is generated based on the plurality of watermark data.
15. The watermark information acquisition method according to claim 14, wherein the determining a plurality of watermark data from each watermark image matrix based on the first watermark embedding parameter and the second watermark embedding parameter, and generating embedded watermark information based on the plurality of watermark data, comprises: When it is determined that the first watermark embedding parameter is greater than the second watermark embedding parameter, determining that the embedded watermark data in the watermark image matrix corresponding to the first watermark embedding parameter and the second watermark embedding parameter is a first preset binary bit; When it is determined that the first watermark embedding parameter is less than the second watermark embedding parameter, determining that the embedded watermark data in the watermark image matrix corresponding to the first watermark embedding parameter and the second watermark embedding parameter is a second preset binary bit; 25. Convert the first preset binary bits and the second preset binary bits embedded in each watermark image matrix into the watermark information.
16. A method for generating a watermark image, comprising: Determining an image to be processed and a dark watermark corresponding to the image to be processed; The method further comprises dividing the image to be processed into a plurality of image blocks to be processed, and performing image transformation processing on the plurality of image blocks to be processed based on a first transformation matrix and a second transformation matrix to obtain a plurality of image matrices to be processed; generating a plurality of watermark data according to the dark watermark, and obtaining a plurality of watermark embedding matrices according to the plurality of watermark data and the plurality of image matrices to be processed; and generating a watermark image embedded with the dark watermark according to the plurality of watermark embedding matrices.
17. A computing device comprising: memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer program / instructions are executed by the processor, the steps of the watermark image generation method described in any one of claims 1 to 10, the watermark information acquisition method described in any one of claims 11 to 15, or the watermark image generation method described in any one of claim 16 are implemented.
18. A computer-readable storage medium storing a computer program / instruction, which, when executed by a processor, implements the steps of the watermark image generation method described in any one of claims 1 to 10, the watermark information acquisition method described in any one of claims 11 to 15, or the watermark image generation method described in any one of claim 16.
19. A computer program product comprising a computer program / instruction, which, when executed by a processor, implements the steps of the watermark image generation method described in any one of claims 1 to 10, the watermark information acquisition method described in any one of claims 11 to 15, or the watermark image generation method described in any one of claim 16.