Data processing method, device and equipment

By constructing low-brightness pixel images and candidate areas in the image, determining the embedding position and embedding watermark information, the problems of large amount of calculation and easy-to-destruct information in the prior art are solved, and efficient and hidden watermark embedding is achieved.

CN112541853BActive Publication Date: 2024-11-26ALIBABA GROUP HOLDING LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910899739.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-23
Publication Date
2024-11-26
Estimated Expiration
2039-09-23

AI Technical Summary

Technical Problem

When embedding watermark information in images or videos, the calculation is large, the complexity is high, the time is consumed, and the artificially given embedding strategy is easily parsed, destroying the watermark information.

Method used

By acquiring low-brightness pixels in the image, a candidate image area is constructed, the target embedding position of the watermark information is determined, and information is embedded at that position is embedded, which reduces overall calculations, takes into account the image content characteristics, and improves the concealment of the embedding position.

Benefits of technology

It reduces the calculation amount and embedding time, reduces the chance of information being destroyed, and improves the concealment and stability of watermark information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112541853B_ABST
    Figure CN112541853B_ABST
Patent Text Reader

Abstract

The present application discloses a data processing method, which includes obtaining a first target image and the information to be embedded; obtaining a second target image corresponding to the first target image according to the first target image, wherein the second target image is an image including low-brightness pixels in the first target image, and the low-brightness pixels are pixels in the first target image whose brightness is not higher than a brightness threshold; selecting a candidate image area from the second target image, and determining the target embedding position of the information to be embedded in the first target image according to the candidate image area; and embedding the information to be embedded at the target embedding position of the first target image. The method can reduce the amount of calculation, the complexity of calculation, and the embedding time during information embedding processing, and the embedding position or embedding strategy of the information is not easily parsed, which can reduce the probability of information being destroyed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to two data processing methods, devices, electronic devices, and storage devices. Background Art

[0002] With the development of digital media technology and Internet technology, people are paying more and more attention to the digital copyright protection of images, videos and other resources.

[0003] Currently, digital watermarking technology is commonly used to protect digital copyrights. Digital watermarking technology mainly refers to implicitly embedding watermark information in resources such as images and videos to provide copyright protection. However, when embedding watermark information in resources such as images and videos, there are two methods for selecting the embedding location of the watermark information. One method is to use a fixed strategy to select the embedding location, such as specifying a global pixel domain or frequency domain for selection, or to select a fixed local area through a given corresponding strategy, or to select an area with a certain regular change in the image, video, or other resources. Another method is to select the embedding location based on a fixed embedding strategy, such as selecting a fixed location based on the position of the image or video frame, or to periodically change the embedding location.

[0004] When embedding watermark information, although both of the above methods can embed watermark information at a certain position in the image, the first method usually requires a comprehensive calculation of the image or video frame to be watermarked, which is computationally intensive and complex, time-consuming, and not conducive to batch processing. While the second method can reduce the computational complexity to a certain extent, it uses a manually given embedding strategy to select the embedding position, which usually ignores the content characteristics of the image or video frame to be embedded with the watermark information. Therefore, the corresponding embedding strategy can be easily parsed, thereby destroying the embedded watermark information. Summary of the Invention

[0005] The present application provides a data processing method, apparatus, electronic device and storage device to solve the existing problems of large amount of calculation, high computational complexity and high time consumption when embedding information to be embedded into an image or video frame, as well as the problem that the embedded information is easily destroyed.

[0006] This application provides a data processing method, including:

[0007] Acquire a first target image to be embedded with information and information to be embedded;

[0008] Acquire, based on the first target image, a second target image corresponding to the first target image, wherein the second target image is an image including low-brightness pixels in the first target image, and the low-brightness pixels are pixels in the first target image whose brightness is not higher than a brightness threshold;

[0009] Selecting a candidate image region from the second target image, and determining a target embedding position of the information to be embedded in the first target image according to the candidate image region;

[0010] The information to be embedded is embedded in the target embedding position in the first target image.

[0011] Optional,

[0012] The acquiring, based on the first target image, a second target image corresponding to the first target image includes:

[0013] Acquire a brightness information image having pixel brightness information corresponding to the first target image;

[0014] discarding pixels in the brightness information image whose brightness is higher than the brightness threshold, and acquiring a low brightness information image corresponding to the brightness information image;

[0015] According to the first target image and the low-brightness information image, a second target image corresponding to the first target image is acquired.

[0016] Optional,

[0017] The acquiring, according to the first target image and the low-brightness information image, a second target image corresponding to the first target image comprises:

[0018] Acquire an edge binary image corresponding to the first target image, wherein the edge binary image is a binary image including global texture edge information of the first target image;

[0019] A second target image corresponding to the first target image is acquired according to the edge binary image and the low-brightness information image.

[0020] Optional,

[0021] The acquiring of the edge binary image corresponding to the first target image includes:

[0022] Preprocessing the first target image to obtain a preprocessed target image corresponding to the first target image;

[0023] According to the preprocessed target image, acquiring an edge target image corresponding to the preprocessed target image;

[0024] According to the edge target image, an edge binary image corresponding to the first target image is acquired.

[0025] Optional,

[0026] The step of acquiring a second target image corresponding to the first target image according to the edge binary image and the low-brightness information image includes:

[0027] The image data in the low-brightness information image is matched with the image data of the edge binary image to obtain a low-brightness edge binary image including the global low-brightness texture edge information of the first target image.

[0028] Optional,

[0029] The selecting a candidate image region from the second target image includes:

[0030] Setting a sliding window for selecting the candidate image area in the low-brightness edge binary image;

[0031] The candidate image region is selected from the low-brightness edge binary image using the sliding window.

[0032] Optional,

[0033] The selecting the candidate image region in the second target image using the sliding window includes:

[0034] In the low-brightness edge binary image, the sliding window is slid according to the step value of the sliding window, and the candidate image area is selected in the low-brightness edge binary image.

[0035] Optionally, also include:

[0036] If the sliding range of the sliding window exceeds the boundary position of the low-brightness edge binary image when the sliding window is slid according to the step value of the sliding window, a new candidate image area is selected within the low-brightness edge binary image starting from the boundary position where the boundary crossing occurs, and the new candidate image area is used as the candidate image area at the boundary position.

[0037] Optional,

[0038] The step of selecting the candidate image region from the second target image using the sliding window further includes:

[0039] At the same time, the low-brightness edge binary image is divided into at least one candidate image region, and the candidate image region matches the size of the sliding window.

[0040] Optional,

[0041] The determining, based on the candidate image region, a target embedding position of the information to be embedded in the first target image includes:

[0042] Calculating the cumulative sum of edge data in the candidate image area to obtain the cumulative sum of edge values ​​corresponding to the candidate image area;

[0043] A target embedding position of the information to be embedded in the first target image is determined according to the accumulated sum of the edge values ​​corresponding to the candidate image region.

[0044] Optional,

[0045] The preprocessing of the first target image to obtain a preprocessed target image corresponding to the first target image includes:

[0046] Perform Gaussian smoothing on the first target image to obtain a preprocessed smoothed target image corresponding to the first target image.

[0047] Optionally, the brightness information image includes any one of the following: a brightness image corresponding to the first target image, or a grayscale image corresponding to the first target image.

[0048] The present application also provides a data processing device, comprising:

[0049] An information acquisition unit, configured to acquire a first target image to be embedded with information and the information to be embedded;

[0050] a low-brightness target image acquisition unit, configured to acquire, based on the first target image, a second target image corresponding to the first target image, wherein the second target image is an image including low-brightness pixels in the first target image, and the low-brightness pixels are pixels in the first target image whose brightness is not higher than a brightness threshold;

[0051] an embedding position determining unit, configured to select a candidate image region from the second target image, and determine a target embedding position of the information to be embedded in the first target image based on the candidate image region;

[0052] An information embedding unit is configured to embed the information to be embedded in the target embedding position in the first target image.

[0053] The present application also provides an electronic device, comprising:

[0054] processor;

[0055] Memory,

[0056] A program for storing a data processing method. After the device is powered on and the program for the data processing method is run by the processor, the following steps are performed:

[0057] Acquire a first target image to be embedded with information and information to be embedded;

[0058] Acquire, based on the first target image, a second target image corresponding to the first target image, wherein the second target image is an image including low-brightness pixels in the first target image, and the low-brightness pixels are pixels in the first target image whose brightness is not higher than a brightness threshold;

[0059] Selecting a candidate image region from the second target image, and determining a target embedding position of the information to be embedded in the first target image according to the candidate image region;

[0060] The information to be embedded is embedded in the target embedding position in the first target image.

[0061] The present application also provides a storage device,

[0062] A program storing a data processing method is executed by a processor to perform the following steps:

[0063] Acquire a first target image to be embedded with information and information to be embedded;

[0064] Acquire, based on the first target image, a second target image corresponding to the first target image, wherein the second target image is an image including low-brightness pixels in the first target image, and the low-brightness pixels are pixels in the first target image whose brightness is not higher than a brightness threshold;

[0065] Selecting a candidate image region from the second target image, and determining a target embedding position of the information to be embedded in the first target image according to the candidate image region;

[0066] The information to be embedded is embedded in the target embedding position in the first target image.

[0067] This application also provides another data processing method, including:

[0068] Acquire a first image to be detected;

[0069] Acquire, based on the image to be detected, a second image to be detected corresponding to the image to be detected, wherein the second image to be detected is an image including low-brightness pixels in the first image to be detected, and the low-brightness pixels are pixels in the first image to be detected whose brightness is not higher than a brightness threshold;

[0070] Selecting a candidate image region from the second target image, and determining a target embedding position of information to be extracted in the first image to be detected based on the candidate image region;

[0071] The information to be extracted is extracted from the target embedded position in the first image to be detected.

[0072] The present application also provides a data processing device, comprising:

[0073] An image acquisition unit, configured to acquire a first image to be detected;

[0074] A second image to be detected acquiring unit, configured to acquire, based on the first image to be detected, a second image to be detected corresponding to the first image to be detected, wherein the second image to be detected is an image including low-brightness pixels in the first image to be detected, and the low-brightness pixels are pixels in the second image to be detected whose brightness is less than a brightness threshold;

[0075] an embedding position determining unit, configured to select a candidate image region from the second image to be detected, and determine a target embedding position of the information to be extracted in the first image to be detected based on the candidate image region;

[0076] An information extraction unit is used to extract the information to be extracted from the target embedding position in the first image to be detected.

[0077] The present application also provides an electronic device, comprising:

[0078] processor;

[0079] The memory is used to store a program of the data processing method. After the device is powered on and the program of the data processing method is run by the processor, the following steps are performed:

[0080] Acquire a first image to be detected;

[0081] Acquire, based on the first image to be detected, a second image to be detected corresponding to the first image to be detected, wherein the second image to be detected is an image including low-brightness pixels in the first image to be detected, the low-brightness pixels being pixels in the first image to be detected whose brightness is not higher than a brightness threshold, where the brightness is used to represent the brightness of pixels in the image;

[0082] Selecting a candidate image region from the second image to be detected, and determining a target embedding position of information to be extracted in the first image to be detected based on the candidate image region;

[0083] The information to be extracted is extracted from the target embedded position in the first image to be detected.

[0084] The present application also provides a storage device,

[0085] A program storing a data processing method is executed by a processor to perform the following steps:

[0086] Acquire a first image to be detected;

[0087] Acquire, based on the first image to be detected, a second image to be detected corresponding to the first image to be detected, wherein the second image to be detected is an image including low-brightness pixels in the first image to be detected, and the low-brightness pixels are pixels in the first image to be detected whose brightness is not higher than a brightness threshold;

[0088] Selecting a candidate image region from the second image to be detected, and determining a target embedding position of information to be extracted in the first image to be detected based on the candidate image region;

[0089] The information to be extracted is extracted from the target embedded position in the first image to be detected.

[0090] Compared with the prior art, this application has the following advantages:

[0091] The present application provides a data processing method, which comprises obtaining a first target image and the information to be embedded; and obtaining a second target image corresponding to the first target image based on the first target image, wherein the second target image is an image including low-brightness pixels in the first target image, wherein the low-brightness pixels are pixels in the first target image whose brightness is not higher than a brightness threshold; then, by selecting a candidate image region from the second target image and determining a target embedding position of the information to be embedded in the first target image based on the candidate image region, the information to be embedded is embedded at the target embedding position in the first target image. The method can avoid the need for overall calculation of the first target image during information embedding processing, thereby reducing the amount of calculation, computational complexity, and embedding time. At the same time, by selecting a candidate image region in the second target image corresponding to the first target image and determining the embedding position of the information to be embedded based on the candidate image region, that is, determining the embedding position of the information to be embedded based on the geometric optical properties of the first target image itself, the method not only takes into account the content characteristics of the first target image itself, but also makes it difficult to parse the embedding position or embedding strategy of the information, thereby reducing the probability of information corruption. BRIEF DESCRIPTION OF THE DRAWINGS

[0092] Figure 1 This is a schematic diagram of an application scenario embodiment provided by this application.

[0093] Figure 2This is a flowchart of a data processing method provided in the first embodiment of the present application.

[0094] Figure 3 This is a schematic diagram of preprocessing the first target image provided by the first embodiment of the present application.

[0095] Figure 4 This is a schematic diagram of an edge target image corresponding to the first target image provided in the first embodiment of the present application.

[0096] Figure 5 This is a schematic diagram of an edge binary image corresponding to a first target image provided in the first embodiment of the present application.

[0097] Figure 6 This is a schematic diagram of a low-brightness edge binary image corresponding to a first target image provided in the first embodiment of the present application.

[0098] Figure 7 This is a schematic diagram of selecting a candidate image area in a second target image through a sliding window provided in the first embodiment of the present application.

[0099] Figure 8 Schematic diagram of the target embedding position in the first target image provided in the first embodiment of the present application.

[0100] Figure 9 This is a schematic diagram of the first embodiment of the present application before and after watermarks are embedded in different target images.

[0101] Figure 10 This is a flowchart of another data processing method provided in the second embodiment of the present application.

[0102] Figure 11 This is a schematic diagram of a data processing device provided in the third embodiment of the present application.

[0103] Figure 12 This is a schematic diagram of an electronic device provided in the fourth embodiment of the present application.

[0104] Figure 13 It is a schematic diagram of another data processing device provided in the sixth embodiment of the present application.

[0105] Figure 14 This is a schematic diagram of an electronic device provided in the seventh embodiment of the present application. DETAILED DESCRIPTION

[0106] The following description sets forth many specific details to facilitate a thorough understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the scope of the present application. Therefore, the present application is not limited to the specific implementations disclosed below.

[0107] In order to present the present application more clearly, the application scenario of the data processing method provided in the embodiment of the present application is first introduced.

[0108] Some embodiments provided in this application can be applied to scenarios where a client interacts with a server, such as Figure 1 As shown, it is a schematic diagram of an application scenario embodiment provided by the present application. The client first establishes a connection with the server. After the connection is established, the client sends a first target image of information to be embedded and the information to be embedded to the server. After the server receives the first target image and the information to be embedded, it obtains a second target image corresponding to the first target image based on the first target image, wherein the second target image is an image including low-brightness pixels in the first target image, and the low-brightness pixels are pixels in the first target image whose brightness is not higher than a brightness threshold; then, the server obtains a candidate image area from the second target image, and determines the target embedding position of the information to be embedded in the first target image based on the candidate image area. Then, the server embeds the information to be embedded in the target embedding position of the first target image, and sends the first target image after the information to be embedded to the client. Then, the client receives the first target image after the information is embedded.

[0109] Of course, it should be noted that the client can be a mobile terminal device, such as a mobile phone, tablet computer, etc., or a commonly used computer device. In addition, in specific implementation, the data processing method described in this application can also be applied separately to the client or server device. For example, after the client obtains the first target image and the information to be embedded, it directly processes them through the corresponding application installed in the client and obtains the target image after the information is embedded; of course, after the server obtains the first target image and the information to be embedded, it directly stores the processed first target image embedded with the information to be embedded in its own storage or remote storage without sending it to the client. The above application scenario is only a specific embodiment of the data processing method described in this application. The purpose of providing the application scenario embodiment is to facilitate the understanding of the data processing method of this application, and it is not used to limit the data processing method of this application.

[0110] The first embodiment of the present application provides a data processing method, which is as follows: Figure 2 — Figure 9 Provide explanation.

[0111] like Figure 2 As shown, in step S201, a first target image and information to be embedded are acquired.

[0112] The first target image is a carrier for carrying embedded information, and can generally be an image or a video frame in a video resource.

[0113] The information to be embedded is additional information added to the first target object. The additional information has a specific meaning. It can be copyright information used to protect the first target image, such as watermark information, or other information that needs to be transmitted covertly. The watermark information to be embedded can be a piece of text information or image information.

[0114] Step S202: Based on the first target image, a second target image corresponding to the first target image is obtained, where the second target image is an image including low-brightness pixels in the first target image, and the low-brightness pixels are pixels in the first target image whose brightness is not higher than a brightness threshold.

[0115] The second target image is an image different from the first target image. In this embodiment, the second target image refers to an image including low-brightness pixels in the first target image, wherein the low-brightness pixels are pixels in the first target image whose brightness is not higher than a brightness threshold.

[0116] It should be noted that in the field of image processing, common color models used to describe the color of pixels in an image include HSB (hue, saturation, brightness), RGB (red, green, blue), CMYK (cyan, magenta, yellow, black), and CIE L*a*b* color models. In the HSB color model, H (Hue) represents hue, S (Saturation) represents saturation, and B (brightness) represents brightness; in the RGB color model, R (Red) represents red, G (Green) represents green, and B (Blue) represents blue. In this embodiment, brightness refers to the relative brightness of a pixel in an image. Its value is usually obtained by performing a color space transformation on the RGB values ​​of the pixels in the image. That is, the RGB values ​​of the pixels in the image are multiplied by the corresponding parameter matrix to obtain the brightness data of the pixel. In addition, if the image is a grayscale image, brightness usually refers to the grayscale value of the pixel. The higher the grayscale value, the higher the brightness of the pixel. In this embodiment, the brightness of the pixel is generally measured by the grayscale value. It should be noted that the grayscale value refers to the color depth of pixels in a black and white image, generally ranging from 0 to 255, with white at 255 and black at 0. The parameter matrix can be a 3x3 YCbCr matrix, a color space commonly used for continuous image processing in films or in digital photography systems. Y refers to the luminance component, Cb refers to the blue chrominance component, and Cr refers to the red chrominance component. Because the detailed process for obtaining the image's luminance value is well-known, it will not be elaborated here.

[0117] In this embodiment, to determine the target embedding position of the information to be embedded in the first target image, the first target image is processed to obtain a second target image corresponding to the first target image, including pixels in the first target image whose brightness does not exceed a brightness threshold. The target embedding position of the information to be embedded in the first target image is determined based on the second target image. This is described in detail below.

[0118] The brightness threshold is a coefficient multiplied by 0.8 of the average brightness of the pixels in the first target image. That is, after obtaining the cumulative sum of the brightness of the pixels in the first target image, the cumulative sum is multiplied by 0.8 to obtain the specific value of the brightness threshold. Of course, in specific implementations, the brightness threshold can also be set to other values ​​as needed.

[0119] The method of acquiring a second target image corresponding to the first target image based on the first target image includes first acquiring a brightness information image having pixel brightness information corresponding to the first target image; then discarding pixels in the brightness information image having brightness greater than a brightness threshold to acquire a low brightness information image corresponding to the brightness information image; and then acquiring a second target image corresponding to the first target image based on the first target image and the low brightness information image.

[0120] In this embodiment, the brightness information image includes specific brightness information of pixels in the image, i.e., brightness values. It can be a brightness image corresponding to the first target image or a grayscale image corresponding to the first target image. The brightness information image can be obtained by color space transformation, i.e., by multiplying the RGB values ​​of pixels in the first target image by a corresponding parameter matrix. This is described in detail in the prior art and will not be repeated here.

[0121] After obtaining the brightness information image corresponding to the first target image, pixels in the brightness information image with brightness higher than a brightness threshold are discarded, thereby obtaining a low brightness information image corresponding to the brightness information image.

[0122] The pixels in the brightness information image whose brightness is higher than the brightness threshold are discarded. Specifically, the pixels in the brightness information image whose original brightness is higher than the brightness threshold are first obtained. Then, the brightness of the pixels is set to an initial value, that is, a brightness value not higher than the brightness threshold is used to replace the brightness value of the pixels higher than the brightness threshold. Of course, other methods can also be used to discard pixels in the brightness information image whose brightness is higher than the brightness threshold, which will not be repeated here.

[0123] After acquiring the low-brightness information image corresponding to the brightness information image, a second target image corresponding to the first target image can be acquired based on the first target image and the low-brightness information image. Specifically, the image data in the low-brightness information image is matched with the image data in the first target image, and pixels in the first target image that fail to match are discarded to obtain the low-brightness target image corresponding to the first target image.

[0124] In this embodiment, the target embedding position of the information to be embedded in the first target image is obtained based on the second target image obtained and corresponding to the first target image. It should be noted that in this embodiment, the second target image is specifically a low-brightness edge binary image corresponding to the first target image. Of course, in a specific implementation, the second target image can also be another image corresponding to the first target image. This embodiment mainly explains in detail how to obtain the low-brightness edge binary image corresponding to the first target image, and how to obtain the target embedding position of the information to be embedded in the first target image based on the obtained low-brightness edge binary image. The process of using other images to determine the target embedding position is similar to this process and will not be repeated here.

[0125] First, how to obtain a low-brightness edge binary image corresponding to the first target image is described in detail below.

[0126] Step S202 - 1 : Acquire an edge binary image corresponding to the first target image, wherein the edge binary image is a binary image including global texture edge information of the first target image.

[0127] First, in order to improve the processing speed of the first target image and enhance the image effect of the first target image at different scales, before obtaining the low-brightness edge binary image corresponding to the first target image, the first target image is preprocessed to obtain a preprocessed target image corresponding to the first target image.

[0128] The preprocessing of the first target image to obtain a preprocessed target image corresponding to the first target image includes: performing Gaussian smoothing on the first target image to obtain a preprocessed smoothed target image corresponding to the first target image, that is, in order to eliminate Gaussian noise in the first target image, Gaussian smoothing is performed on the first target image to eliminate Gaussian noise in the first target image. The Gaussian smoothing is a linear smoothing filter process used to eliminate Gaussian noise; the Gaussian smoothing of the first target image refers to a weighted averaging process for the pixels in the first target image, and the value of each pixel in the first target image obtained after the processing is the weighted average of the pixel itself and other pixel values ​​in the neighborhood of the pixel. Figure 3 As shown in FIG, which is a schematic diagram of preprocessing the first target image provided by the first embodiment of the present application. The specific implementation of the Gaussian smoothing process on the first target image can be achieved by scanning each pixel in the first target image using a convolution or mask, and replacing the value of the pixel with the weighted average grayscale value of the pixels in the neighborhood of each pixel determined by the convolution or mask. The detailed processing process is not repeated here.

[0129] After obtaining a preprocessed target image corresponding to the first target image, an edge target image corresponding to the preprocessed target image is first obtained based on the preprocessed target image. Specifically, the preprocessed target image is processed using a corresponding edge extraction operator to obtain the edge target image. The edge extraction operator can be a Sobel operator, a Laplacian operator, a Canny operator, a Rebort operator, or the like.

[0130] like Figure 4 As shown, it is a schematic diagram of the edge target image corresponding to the target image provided by the first embodiment of the present application. In this embodiment, the edge target image is obtained by using the Sobel operator to obtain the transverse gradient edge image Gx and the longitudinal gradient edge image Gy of the pre-processed target image. It should be noted that the Sobel operator is one of the most important operators in pixel image edge detection, and plays a vital role in information technology fields such as machine learning, digital media, and computer vision. From a technical point of view, it is specifically a discrete first-order difference operator used to calculate the approximate value of the first-order gradient of the image brightness function. Using this operator at any point in the image will generate the gradient vector or its normal vector corresponding to the point. The transverse gradient edge image Gx is generally obtained by subtracting the pixel matrix of the pre-processed target image from the matrix The longitudinal gradient edge image Gy is generally obtained by multiplying the pixel matrix of the preprocessed target image with the matrix Multiply to obtain.

[0131] After the edge target image corresponding to the pre-processed target image is acquired, an edge binary image corresponding to the first target image can be acquired based on the edge target image.

[0132] like Figure 5As shown, it is a schematic diagram of an edge binary image corresponding to the first target image provided by the first embodiment of the present application. After obtaining the transverse gradient edge image Gx and the longitudinal gradient edge image Gy corresponding to the pre-processed target image by the Sobel operator, the transverse gradient edge image Gx and the longitudinal gradient edge image Gy are processed by the edge detection operator to obtain an edge binary image corresponding to the first target image. In this embodiment, the edge binary image refers to a binary image in which the value of the pixels at the texture edge is 255 and the value of the pixels in the smooth area is 0. Of course, the value of the pixels at the texture edge can also be 1 and the value of the pixels in the smooth area can be 0, which is not specifically limited here. In this embodiment, the edge detection operator is the Canny operator. Of course, other methods can also be used to obtain the edge binary image corresponding to the first target image, for example, using a differential edge detection method, which will not be described here.

[0133] like Figure 4 、 Figure 5 As shown, after the above processing, an edge binary image corresponding to the first target image and including the global texture edge information in the first target image can be adaptively obtained, and the complex texture area in the first target image can be intuitively presented through the edge binary image.

[0134] After step S202-1, step S202-2 is executed to obtain a second target image corresponding to the first target image based on the edge binary image and the low-brightness information image.

[0135] After obtaining the edge binary image corresponding to the first target image in step S202-1, a low-brightness edge binary image corresponding to the first target image can be obtained based on the edge binary image and the low-brightness information image corresponding to the first target image obtained in the above steps, which is described in detail below.

[0136] like Figure 6 As shown, it is a schematic diagram of a low-brightness edge binary image corresponding to a first target image provided by the first embodiment of the present application. The low-brightness edge binary image corresponding to the first target image is obtained based on the edge binary image and the low-brightness information image corresponding to the first target image obtained in the above steps. Specifically, the image data in the low-brightness information image is matched with the image data in the edge binary image to obtain a low-brightness edge binary image that includes only the global low-brightness texture edge information of the first target image. That is, pixels in the edge binary image whose brightness is higher than a brightness threshold are discarded, and pixels whose brightness is not higher than the brightness threshold are retained.

[0137] At this point, the low-brightness edge binary image corresponding to the first target image is obtained. Afterwards, the target embedding position of the information to be embedded in the first target image can be obtained based on the low-brightness edge binary image.

[0138] Please continue to see Figure 2 After step S202, step S203 is executed to select a candidate image area from the second target image, and determine a target embedding position of the information to be embedded in the first target image according to the candidate image area.

[0139] In order to reduce the amount of calculation during the embedding process, and at the same time, to be able to select the target embedding position of the information to be embedded according to the content characteristics of the first target image, this embodiment selects a candidate image area corresponding to the information to be embedded in the low-brightness target image corresponding to the first target image, that is, the low-brightness edge binary image in this embodiment, and obtains the target embedding position of the information to be embedded in the first target image based on a comprehensive measure of the texture information and brightness information of the image in the candidate image area.

[0140] In this embodiment, an adaptive multi-resolution decomposition scanning method is used to select a target embedding position for embedding watermark information from a low-brightness edge binary image corresponding to a first target image. Specifically, first, a sliding window is set to select a candidate image area in the low-brightness edge binary image; then, the sliding window is used to scan the low-brightness edge binary image to select the candidate image area.

[0141] The sliding window is used to select candidate image regions of the same size as the sliding window by sliding within the image. The receptive field of the sliding window can be considered an N-dimensional square. For ease of understanding, the sliding window can be simply considered an N-dimensional square. The receptive field of the sliding window refers to the size of the sliding window's receptive range of the image, or the area mapped by the sliding window within the image. In addition, the length and width of the sliding window are generally set according to the size of the information to be embedded.

[0142] The method of using the sliding window to select the candidate image area in the low-brightness target image can specifically include sliding the sliding window according to a set sliding window step value in a low-brightness edge binary image corresponding to the first target image, and selecting the candidate image area in the low-brightness edge binary image.

[0143] The step length of the sliding window refers to the distance the window moves each time. In this embodiment, to accurately select the target embedding position of the information to be embedded in the first target image, the length and width of the sliding window are set to the step length of the sliding window. For example, if the length and width of the sliding window are 20mm*10mm, the corresponding step length is also 20mm*10mm.

[0144] like Figure 7 As shown, it is a schematic diagram of selecting a candidate image area in the second target image through a sliding window provided by the first embodiment of the present application. In specific implementation, not all sizes of low-brightness edge binary images can divide the window, that is, the size of a low-brightness edge binary image is usually not necessarily an integer multiple of the set sliding window. Therefore, when the sliding window slides to the boundary of the low-brightness edge binary image and selects a candidate image area at the boundary, the candidate image area at this time will usually exceed the boundary position of the low-brightness edge binary image. For this case, when the sliding range of the sliding window exceeds the boundary position of the low-brightness edge binary image, starting from the boundary position where the cross-border occurs, a new candidate image area is selected in the low-brightness edge binary image, and the new candidate image area is used as the candidate image area at the boundary position. As shown Figure 7 As shown, when the candidate image area exceeds the lower boundary area of ​​the image, a reverse selection is performed from the outside to the inside starting from the lower boundary position where the crossing occurs to select a new candidate image area.

[0145] Of course, in order to improve the speed and efficiency of obtaining the target embedding position, when using a sliding window to select a candidate image area in the low-brightness edge binary image corresponding to the target image, it is also possible not to adopt a sliding selection method, but to divide the low-brightness edge binary image into at least one candidate image area in parallel, wherein the candidate image area matches the size of the sliding window. At the same time, the method for selecting the candidate image area at the boundary of the low-brightness edge binary image is basically similar to the above and will not be repeated here.

[0146] After selecting a candidate image area from a low-brightness edge binary image, the target embedding position of the information to be embedded in the first target image can be determined based on the candidate image area. Specifically, first, the cumulative sum of the edge data in the candidate image area is calculated to obtain the cumulative sum of the edge values ​​corresponding to the candidate image area; then, the target embedding position of the watermark information to be embedded in the target image is determined based on the cumulative sum of the edge values ​​corresponding to the candidate image area.

[0147] That is, after selecting a candidate image region in a low-brightness edge binary image through a sliding window, or after selecting multiple candidate image regions in a low-brightness edge binary image through a sliding window in parallel, the cumulative sum of the values ​​of the pixels at the texture edge in each candidate image region can be calculated; then, the candidate image region with the largest cumulative sum of the values ​​of the pixels at the texture edge is determined as the target embedding position of the information to be embedded in the first target image. For example, when the low-brightness edge binary image includes 6 candidate image regions, because the values ​​of the pixels in each candidate image region are only 255 and 0, or 1 and 0, or other binary information, by accumulating the values ​​of the pixels at the texture edge in each candidate image region, the cumulative sum corresponding to each candidate image region can be obtained. Then, by comparing the sizes of the 6 cumulative sums obtained, the target embedding position of the information to be embedded in the first target image can be obtained. For example, since the cumulative sum of the edge values ​​corresponding to candidate image region 3 is the largest, candidate image region 3 can be used as the target embedding position of the watermark information to be embedded in the first target image.

[0148] like Figure 8 As shown, it is a schematic diagram of the target embedding position in the first target image provided by the first embodiment of the present application. It should be noted that, in this embodiment, the reason why the area with the largest cumulative sum of edge values ​​in the candidate image area is selected as the target embedding position of the information to be embedded in the first target image is that the global texture edge information and low-brightness area information in the first target image can be intuitively expressed through the low-brightness edge binary image corresponding to the first target image, and in the low-brightness edge binary image, the candidate image area with the largest cumulative sum of edge values ​​is often the area with the most complex texture information in the first target image and the brightness information is less than or equal to the brightness threshold; and this method is not affected by the image resolution, and embedding the information to be embedded in this area has high concealment and the embedded information is not easily destroyed.

[0149] The above describes in detail a method for selecting a target embedding position of information to be embedded in a first target image provided by this embodiment. In specific implementation, of course, other methods can also be used to select the target embedding position of information to be embedded in the first target image, which will not be repeated here.

[0150] Please continue to see Figure 2 After step S203, step S204 is executed to embed the information to be embedded in the target embedding position in the first target image.

[0151] like Figure 9 As shown, it is a schematic diagram of the first embodiment of the present application before and after the information is embedded in different first target images. Figure 9It can be seen that when information is embedded in an image using the data processing method described in this embodiment, there is no obvious difference in the target embedding position before and after the information is embedded, which can achieve a better effect of hiding the embedded information.

[0152] In summary, the data processing method of the present application obtains a first target image and the information to be embedded; and based on the first target image, obtains a second target image corresponding to the first target image, wherein the second target image is an image including low-brightness pixels in the first target image, wherein the low-brightness pixels are pixels in the first target image whose brightness is not higher than a brightness threshold; then, by selecting a candidate image area from the second target image and determining the target embedding position of the information to be embedded in the first target image based on the candidate image area, the information to be embedded is embedded at the target embedding position of the first target image. The method can avoid the overall calculation of the first target image, thereby reducing the amount of calculation, the computational complexity, and the embedding time during the embedding process; at the same time, by selecting a candidate image area in the second target image corresponding to the first target image and determining the target embedding position of the information to be embedded based on the candidate image area, that is, determining the embedding position of the information to be embedded based on the geometric optical properties of the first target image itself, it takes into account the content characteristics of the first target image itself and is not easy to be parsed to determine the embedding position or embedding strategy of the information, thereby reducing the probability of information damage.

[0153] In the above description, a data processing method is provided. Corresponding to the above data processing method, this application also provides another data processing method, please refer to Figure 10 , which is a flowchart of another data processing method provided in the second embodiment of the present application, some of the steps have been described in detail in the above-mentioned first embodiment, so the description here is relatively simple. For relevant matters, please refer to the partial description of a data processing method provided in the first embodiment of the present application. The processing process described below is only schematic.

[0154] like Figure 10 As shown, it is a flow chart of a data processing method provided by the second embodiment of the present application. Figure 10 Please explain.

[0155] Step S1001: Acquire a first image to be detected.

[0156] Step S1002: acquiring, based on the first image to be detected, a second image to be detected corresponding to the first image to be detected, wherein the second image to be detected is an image including low-brightness pixels in the first image to be detected, and the low-brightness pixels are pixels in the first image to be detected whose brightness is not higher than a brightness threshold;

[0157] Step S1003: selecting a candidate image region from the second image to be detected, and determining a target embedding position of information to be extracted in the first image to be detected based on the candidate image region;

[0158] Step S1004: extracting the information to be extracted from the target embedding position in the first image to be detected.

[0159] Corresponding to the data processing method provided in the first embodiment above, the present application also provides a data processing device, see Figure 11 , which is a schematic diagram of an embodiment of a data processing device provided in the third embodiment of the present application. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple. For relevant details, please refer to the partial description of the method embodiment. The device embodiment described below is only illustrative. The data processing device provided in the third embodiment of the present application includes the following parts:

[0160] The information acquiring unit 1101 is configured to acquire a first target image and information to be embedded.

[0161] The second target image acquisition unit 1102 is used to acquire a second target image corresponding to the first target image based on the first target image, wherein the second target image is an image including low-brightness pixels in the first target image, and the low-brightness pixels are pixels in the first target image whose brightness is not higher than a brightness threshold.

[0162] The embedding position determining unit 1103 is configured to select a candidate image region from the second target image, and determine a target embedding position of the information to be embedded in the first target image according to the candidate image region.

[0163] The information embedding unit 1104 is configured to embed the information to be embedded in the target embedding position in the first target image.

[0164] Optionally, the target image acquisition unit includes:

[0165] a brightness information image acquisition subunit, configured to acquire a brightness information image having pixel brightness information corresponding to the first target image;

[0166] a low-brightness information image acquisition subunit, configured to discard pixels in the brightness information image whose brightness is higher than the brightness threshold, and acquire a low-brightness information image corresponding to the brightness information image;

[0167] The target image acquisition subunit is used to acquire a second target image corresponding to the first target image based on the first target image and the low-brightness information image.

[0168] Optionally, the target image acquisition subunit includes:

[0169] an edge binary image acquisition subunit, configured to acquire an edge binary image corresponding to the first target image, wherein the edge binary image is a binary image including global texture edge information of the first target image;

[0170] The second target image acquisition subunit is configured to acquire a second target image corresponding to the first target image according to the edge binary image and the low-brightness information image.

[0171] Optionally, acquiring a second target image corresponding to the first target image according to the edge binary image and the low-brightness information image includes:

[0172] The image data in the low-brightness information image is matched with the image data of the edge binary image to obtain a low-brightness edge binary image including the global low-brightness texture edge information of the first target image.

[0173] Optionally, the edge binary image acquisition subunit includes:

[0174] a preprocessed target image acquisition subunit, configured to preprocess the first target image to acquire a preprocessed target image corresponding to the first target image;

[0175] An edge target image acquisition subunit, configured to acquire an edge target image corresponding to the preprocessed target image based on the preprocessed target image;

[0176] The edge binary image acquisition subunit is configured to acquire an edge binary image corresponding to the first target image based on the edge target image.

[0177] Optionally, selecting a candidate image region from the second target image includes:

[0178] Setting a sliding window for selecting the candidate image area in the low-brightness edge binary image;

[0179] The candidate image region is selected from the low-brightness edge binary image using the sliding window.

[0180] Optionally, the selecting the candidate image region in the second target image using the sliding window includes:

[0181] In the low-brightness edge binary image, the sliding window is slid according to the step value of the sliding window, and the candidate image area is selected in the low-brightness edge binary image.

[0182] Optionally, also include:

[0183] If the sliding range of the sliding window exceeds the boundary position of the low-brightness edge binary image when the sliding window is slid according to the step value of the sliding window, a new candidate image area is selected within the low-brightness edge binary image starting from the boundary position where the boundary crossing occurs, and the new candidate image area is used as the candidate image area at the boundary position.

[0184] Optionally, the selecting the candidate image region in the second target image using the sliding window further includes:

[0185] At the same time, the low-brightness edge binary image is divided into at least one candidate image region, and the candidate image region matches the size of the sliding window.

[0186] Optionally, the embedded position determining unit includes:

[0187] an edge value accumulation and acquisition subunit, configured to calculate the accumulation of edge data in the candidate image region and obtain the edge value accumulation corresponding to the candidate image region;

[0188] The target embedding position acquisition subunit is used to determine the target embedding position of the information to be embedded in the first target image according to the cumulative sum of the edge values ​​corresponding to the candidate image area.

[0189] Optionally, the preprocessed target image acquisition subunit is specifically configured to perform Gaussian smoothing on the first target image to acquire a preprocessed smoothed target image corresponding to the first target image.

[0190] Corresponding to the data processing method provided in the first embodiment of the present application, the fourth embodiment of the present application also provides an electronic device.

[0191] like Figure 12 As shown, the electronic device includes:

[0192] Processor 1201;

[0193] The memory 1202 is used to store a program of the data processing method. After the device is powered on and the program of the data processing method is run by the processor, the following steps are performed:

[0194] Acquire a first target image to be embedded with information and information to be embedded;

[0195] Acquire, based on the first target image, a second target image corresponding to the first target image, wherein the second target image is an image including low-brightness pixels in the first target image, and the low-brightness pixels are pixels in the first target image whose brightness is not higher than a brightness threshold;

[0196] Selecting a candidate image region from the second target image, and determining a target embedding position of the information to be embedded in the first target image according to the candidate image region;

[0197] The information to be embedded is embedded in the target embedding position in the first target image.

[0198] It should be noted that for the detailed description of the electronic device provided in the fourth embodiment of the present application, reference can be made to the relevant description of the first embodiment of the present application, and no further details will be given here.

[0199] Corresponding to the data processing method provided in the first embodiment of the present application, the fifth embodiment of the present application further provides a storage device storing a program of the data processing method, which is executed by a processor to perform the following steps:

[0200] Acquire a first target image to be embedded with information and information to be embedded;

[0201] Acquire, based on the first target image, a second target image corresponding to the first target image, wherein the second target image is an image including low-brightness pixels in the first target image, and the low-brightness pixels are pixels in the first target image whose brightness is not higher than a brightness threshold;

[0202] Selecting a candidate image region from the second target image, and determining a target embedding position of the information to be embedded in the first target image according to the candidate image region;

[0203] The information to be embedded is embedded in the target embedding position in the first target image.

[0204] It should be noted that for the detailed description of the storage device provided in the fifth embodiment of the present application, reference can be made to the relevant description of the first embodiment of the present application, and no further details will be given here.

[0205] Corresponding to the data processing method provided in the second embodiment above, this application also provides another data processing device, please refer to Figure 13 , which is a schematic diagram of an embodiment of a data processing device provided in the sixth embodiment of the present application. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple. For relevant details, please refer to the partial description of the method embodiment. The device embodiment described below is only illustrative. The data processing device provided in the sixth embodiment of the present application includes the following parts:

[0206] The image acquisition unit 1301 is configured to acquire a first image to be detected.

[0207] The second image to be detected acquisition unit 1302 is used to acquire a second image to be detected corresponding to the first image to be detected based on the first image to be detected, wherein the second image to be detected is an image including low-brightness pixels in the first image to be detected, and the low-brightness pixels are pixels in the second image to be detected whose brightness is not higher than a brightness threshold.

[0208] The embedding position determining unit 1303 is configured to select a candidate image region from the second image to be detected, and determine a target embedding position of the information to be extracted in the first image to be detected based on the candidate image region.

[0209] The information extraction unit 1304 is configured to extract the information to be extracted from the target embedding position in the first image to be detected.

[0210] Corresponding to the data processing method provided in the second embodiment of the present application, the seventh embodiment of the present application also provides an electronic device.

[0211] like Figure 14 As shown, the electronic device includes:

[0212] Processor 1401;

[0213] The memory 1402 is used to store a program of the data processing method. After the device is powered on and the program of the data processing method is run by the processor, the following steps are performed:

[0214] Acquire a first image to be detected;

[0215] Acquire, based on the first image to be detected, a second image to be detected corresponding to the first image to be detected, wherein the second image to be detected is an image including low-brightness pixels in the first image to be detected, the low-brightness pixels being pixels in the first image to be detected whose brightness is not higher than a brightness threshold, where the brightness is used to represent the brightness of pixels in the image;

[0216] Selecting a candidate image region from the second image to be detected, and determining a target embedding position of information to be extracted in the first image to be detected based on the candidate image region;

[0217] The information to be extracted is extracted from the target embedded position in the first image to be detected.

[0218] It should be noted that for the detailed description of the electronic device provided in the seventh embodiment of the present application, reference can be made to the relevant description of the second embodiment of the present application, and no further details will be given here.

[0219] Corresponding to the data processing method provided in the second embodiment of the present application, the eighth embodiment of the present application further provides a storage device storing a program of the data processing method, which is executed by a processor to perform the following steps:

[0220] Acquire a first image to be detected;

[0221] Acquire, based on the first image to be detected, a second image to be detected corresponding to the first image to be detected, wherein the second image to be detected is an image including low-brightness pixels in the first image to be detected, and the low-brightness pixels are pixels in the first image to be detected whose brightness is not higher than a brightness threshold;

[0222] Selecting a candidate image region from the second image to be detected, and determining a target embedding position of information to be extracted in the first image to be detected based on the candidate image region;

[0223] The information to be extracted is extracted from the target embedded position in the first image to be detected.

[0224] It should be noted that for the detailed description of the storage device provided in the eighth embodiment of the present application, reference can be made to the relevant description of the second embodiment of the present application, which will not be repeated here.

[0225] Although the present application is disclosed as above with the preferred embodiments, it is not intended to limit the present application. Any person skilled in the art may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.

[0226] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0227] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0228] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include non-transitory media such as modulated data signals and carrier waves.

[0229] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

Claims

1. A data processing method, characterized in that: include: Acquire a first target image and information to be embedded; According to the first target image, a second target image corresponding to the first target image is acquired, wherein the second target image is an image including low-brightness pixels in the first target image, and the low-brightness pixels are pixels in the first target image whose brightness is not higher than a brightness threshold; Selecting a candidate image region from the second target image, and determining a target embedding position of the information to be embedded in the first target image according to the candidate image region; The information to be embedded is embedded in the target embedding position in the first target image.

2. The data processing method according to claim 1, characterized in that: The step of acquiring, according to the first target image, a second target image corresponding to the first target image comprises: Acquire a brightness information image having pixel brightness information corresponding to the first target image; Discarding pixels in the brightness information image whose brightness is higher than the brightness threshold, and acquiring a low brightness information image corresponding to the brightness information image; According to the first target image and the low-brightness information image, a second target image corresponding to the first target image is acquired.

3. The data processing method according to claim 2, characterized in that: The step of acquiring a second target image corresponding to the first target image according to the first target image and the low-brightness information image comprises: Acquire an edge binary image corresponding to the first target image, wherein the edge binary image is a binary image including global texture edge information of the first target image; A second target image corresponding to the first target image is acquired according to the edge binary image and the low-brightness information image.

4. The data processing method according to claim 3, characterized in that: The step of acquiring an edge binary image corresponding to the first target image comprises: Preprocessing the first target image to obtain a preprocessed target image corresponding to the first target image; According to the preprocessed target image, acquiring an edge target image corresponding to the preprocessed target image; According to the edge target image, an edge binary image corresponding to the first target image is acquired.

5. The data processing method according to claim 3, characterized in that: The step of acquiring a second target image corresponding to the first target image according to the edge binary image and the low brightness information image comprises: The image data in the low-brightness information image is matched with the image data in the edge binary image to obtain a low-brightness edge binary image including the global low-brightness texture edge information of the first target image.

6. The data processing method according to claim 5, characterized in that: The selecting a candidate image region from the second target image comprises: Setting a sliding window for selecting the candidate image area in the low-brightness edge binary image; The candidate image region is selected in the low-brightness edge binary image using the sliding window.

7. The data processing method according to claim 6, characterized in that: The step of selecting the candidate image region in the second target image using the sliding window includes: In the low-brightness edge binary image, the sliding window is slid according to the step value of the sliding window, and the candidate image area is selected in the low-brightness edge binary image.

8. The data processing method according to claim 7, characterized in that: Also includes: If the sliding range of the sliding window exceeds the boundary position of the low-brightness edge binary image when the sliding window is slid according to the step value of the sliding window, a new candidate image area is selected within the low-brightness edge binary image starting from the boundary position where the boundary crossing occurs, and the new candidate image area is used as the candidate image area at the boundary position.

9. The data processing method according to claim 6, characterized in that: The step of selecting the candidate image region in the second target image using the sliding window further includes: At the same time, the low-brightness edge binary image is divided into at least one candidate image region, and the candidate image region matches the size of the sliding window.

10. The data processing method according to claim 5, characterized in that: The step of determining a target embedding position of the information to be embedded in the first target image according to the candidate image region includes: Calculate the cumulative sum of edge data in the candidate image area to obtain the cumulative sum of edge values ​​corresponding to the candidate image area; A target embedding position of the information to be embedded in the first target image is determined according to the accumulated sum of edge values ​​corresponding to the candidate image region.

11. The data processing method according to claim 4, characterized in that: The preprocessing of the first target image to obtain a preprocessed target image corresponding to the first target image includes: Perform Gaussian smoothing on the first target image to obtain a preprocessed smoothed target image corresponding to the first target image.

12. The data processing method according to claim 2, characterized in that: The brightness information image includes any one of the following: a brightness image corresponding to the first target image, or a grayscale image corresponding to the first target image.

13. A data processing method, characterized in that: include: Acquire a first image to be detected; According to the image to be detected, a second image to be detected corresponding to the image to be detected is acquired, wherein the second image to be detected is an image including low-brightness pixels in the first image to be detected, and the low-brightness pixels are pixels in the first image to be detected whose brightness is not higher than a brightness threshold; Selecting a candidate image region from the second image to be detected, and determining a target embedding position of information to be extracted in the first image to be detected according to the candidate image region; The information to be extracted is extracted from the target embedded position in the first image to be detected.

14. A data processing device, characterized in that: include: An information acquisition unit, used for acquiring a first target image to be embedded with information and the information to be embedded; A second target image acquisition unit, configured to acquire, based on the first target image, a second target image corresponding to the first target image, wherein the second target image is an image including low-brightness pixels in the first target image, and the low-brightness pixels are pixels in the first target image whose brightness is not higher than a brightness threshold; an embedding position determining unit, configured to select a candidate image region from the second target image, and determine a target embedding position of the information to be embedded in the first target image according to the candidate image region; An information embedding unit is used to embed the information to be embedded in the target embedding position in the first target image.

15. An electronic device, characterized in that: include: processor; A memory is used to store a program of a data processing method. After the device is powered on and the program of the data processing method is run by the processor, the following steps are performed: Acquire a first target image to be embedded with information and the information to be embedded; According to the first target image, a second target image corresponding to the first target image is acquired, wherein the second target image is an image including low-brightness pixels in the first target image, and the low-brightness pixels are pixels in the first target image whose brightness is not higher than a brightness threshold; Selecting a candidate image region from the second target image, and determining a target embedding position of the information to be embedded in the first target image according to the candidate image region; The information to be embedded is embedded in the target embedding position in the first target image.

16. A storage device, characterized in that: A program storing a data processing method is executed by a processor to perform the following steps: Acquire a first target image to be embedded with information and the information to be embedded; According to the first target image, a second target image corresponding to the first target image is acquired, wherein the second target image is an image including low-brightness pixels in the first target image, and the low-brightness pixels are pixels in the first target image whose brightness is not higher than a brightness threshold; Selecting a candidate image region from the second target image, and determining a target embedding position of the information to be embedded in the first target image according to the candidate image region; The information to be embedded is embedded in the target embedding position in the first target image.

17. A data processing device, characterized in that: include: An image acquisition unit, used for acquiring a first image to be detected; A second image to be detected acquiring unit, configured to acquire, based on the first image to be detected, a second image to be detected corresponding to the first image to be detected, wherein the second image to be detected is an image including low-brightness pixels in the first image to be detected, and the low-brightness pixels are pixels in the second image to be detected whose brightness is less than a brightness threshold; an embedding position determining unit, configured to select a candidate image region from the second image to be detected, and determine a target embedding position of information to be extracted in the first image to be detected according to the candidate image region; An information extraction unit is used to extract the information to be extracted from the target embedding position in the first image to be detected.

18. An electronic device, characterized in that: include: processor; A memory is used to store a program of a data processing method. After the device is powered on and the program of the data processing method is run by the processor, the following steps are performed: Acquire a first image to be detected; According to the first image to be detected, a second image to be detected corresponding to the first image to be detected is acquired, wherein the second image to be detected is an image including low-brightness pixels in the first image to be detected, the low-brightness pixels are pixels in the first image to be detected whose brightness is not higher than a brightness threshold, and the brightness is used to represent the brightness of pixels in the image; Selecting a candidate image region from the second image to be detected, and determining a target embedding position of information to be extracted in the first image to be detected according to the candidate image region; The information to be extracted is extracted from the target embedded position in the first image to be detected.

19. A storage device, characterized in that: A program storing a data processing method is executed by a processor to perform the following steps: Acquire a first image to be detected; According to the first image to be detected, a second image to be detected corresponding to the first image to be detected is acquired, wherein the second image to be detected is an image including low-brightness pixels in the first image to be detected, and the low-brightness pixels are pixels in the first image to be detected whose brightness is not higher than a brightness threshold; Selecting a candidate image region from the second image to be detected, and determining a target embedding position of information to be extracted in the first image to be detected according to the candidate image region; The information to be extracted is extracted from the target embedded position in the first image to be detected.