Zoom Agnostic Watermark Extraction
The zoom agnostic watermark detection and decoding system using machine learning models efficiently identifies and decodes watermarks across varying zoom levels and distortions, addressing the inefficiencies of existing methods by reducing computational overhead and ensuring accurate extraction.
Patent Information
- Application Number
- JP2022561572
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-06-21
- Publication Date
- 2024-08-26
- Estimated Expiration
- 2041-06-21
AI Technical Summary
Existing methods for detecting and decoding visually imperceptible watermarks in images are computationally expensive and require repeated analysis at multiple zoom levels, wasting resources and time, especially when image distortions such as JPEG compression are present.
A zoom agnostic watermark detection and decoding system using machine learning models that can identify and decode watermarks independently of zoom level, employing techniques like numerical rounding and training on distorted images to improve model performance and reduce computational overhead.
The system efficiently detects and decodes watermarks across varying zoom levels and distortions, saving computational resources and time by first determining the presence of watermarks before decoding, ensuring accurate watermark extraction without repeated analysis.
Smart Images

Figure 0007539998000003 
Figure 0007539998000004 
Figure 0007539998000002
Abstract
Description
[Technical field]
[0001] TECHNICAL FIELD This specification relates generally to data processing and techniques for recovering watermarks from images. [Background technology]
[0002] In a networked environment such as the Internet, a first-party content provider can provide information for presentation in an electronic document, e.g., a web page or an application interface. The document can include first-party content provided by the first-party content provider and third-party content provided by a third-party content provider (e.g., a content provider different from the first-party content provider).
[0003] Third-party content can be added to electronic documents using a variety of techniques. For example, some documents include tags that instruct a client device on which the document is presented to request a third-party content item directly from a third-party content provider (e.g., from a server in a different domain than the server that provides the first-party content). Other documents include tags that instruct the client device to invoke an intermediary service that partners with multiple third-party content providers to return a selected third-party content item from one or more of the third-party content providers. In some examples, third-party content items are dynamically selected for presentation in an electronic document, and the particular third-party content item selected for a given serving of a document may differ from the third-party content item selected for other servings of the same document. [Prior art documents] [Non-patent literature]
[0004] [Non-Patent Document 1] Ronneberger O., Fischer P., Brox T., (2015) "U-Net: Convolutional Networks for Biomedical Image Segmentation." In: Navab N., Hornegger J., Wells W., Frangi A. (eds), Medical Image Computing and Computer-Assisted Intervention - MICCAI 2015, MICCAI 2015., Lecture Notes in Computer Science, Vol 9351, Springer, Cham. https: / / doi.org / 10.1007 / 978-3-319-24574-4_28 Summary of the Invention [Means for solving the problem]
[0005] In general, one inventive aspect of the subject matter described herein may be embodied in a method including operations of receiving, by a watermark detection device, images; determining, for each particular one of the images, by the watermark detection device whether the particular image includes a visually imperceptible watermark using a detector machine learning model, where the watermark detection device detects a visually imperceptible watermark in at least one of the images; forwarding the particular image based on a determination of whether the particular image includes a visually imperceptible watermark, where the watermark detection device forwards the particular image to a watermark decoder in response to the watermark detection device detecting a visually imperceptible watermark in the particular image; and removing the particular image from further processing in response to the watermark detection device not detecting a visually imperceptible watermark in the particular image; decoding, by the watermark decoder, the visually imperceptible watermark detected in the particular image forwarded to the watermark decoder; and verifying an item shown in the particular image based on data extracted from the decoded visually imperceptible watermark.
[0006] These and other implementations can each optionally include one or more of the following features: In some aspects, determining whether the particular image includes a visually imperceptible watermark using a detector machine learning model includes determining whether the particular image includes a visually imperceptible watermark using a detector machine learning model trained to determine whether a region of an input image includes a visually imperceptible watermark based on an analysis of the region that does not require a pixel-by-pixel analysis of the region.
[0007] In some aspects, determining whether a particular image includes a visually imperceptible watermark includes determining, by a watermark detection device, a set of encoded pixels within the region of the particular image and classifying the region of the particular image based on the set of encoded pixels within the region of the particular image, including classifying the region as a watermarked region in response to the set of encoded pixels satisfying a watermark condition and classifying the region as a non-watermarked region in response to the set of encoded pixels not satisfying the watermark condition.
[0008] In some aspects, determining whether a particular image contains a visually imperceptible watermark includes outputting a binary 1 for all pixels in the region to mark the region as containing a visually imperceptible watermark, and generating a watermark map for the image using the binary 1s, where the watermark map indicates regions of the map that contain the visually imperceptible watermark.
[0009] In some aspects, decoding the watermark includes decoding the watermark using a decoder machine learning model trained for visually imperceptible watermarks in a particular image regardless of the zoom level of an item shown in the image.
[0010] In some aspects, training the decoder machine learning model using the set of training images includes a plurality of training images each showing the watermarked item at a different zoom level and with a different image distortion.
[0011] In some aspects, pre-processing the set of training images to prevent model performance deficiencies caused by training a decoder machine learning model in floating point numbers using images represented by RGB unsigned integers.
[0012] In some aspects, developing the zoom agnostic watermark decoder model includes obtaining, by one or more processors, a set of training images including a visually imperceptible watermark; distorting, by the one or more processors, images of the set of training images to create distorted images, the distorting including varying a zoom level of an item shown in the image to create a zoomed image; training, by the one or more processors, a zoom agnostic watermark decoder model using the distorted images to decode the visually imperceptible watermark in the input image across multiple zoom levels of the input image; and deploying the zoom agnostic watermark decoder model to decode the visually imperceptible watermark at the respective different zoom levels in the input image.
[0013] In some aspects, warping the images in the set of training images to create the warped images includes converting the images to a respectively different image file format or modifying the resolution of the images.
[0014] In some aspects, preprocessing the images in the set of training images includes, for each image in the set of training images, rounding floating-point numbers that represent colors of pixels in the image to prevent model performance defects caused by mismatches between floating-point numbers that represent colors of pixels and RGB unsigned integers used to store the image.
[0015] In some aspects, rounding a floating point number that represents a color of a pixel in the image includes rounding the floating point number using ordinary rounding and rounding the floating point number using truncation.
[0016] In some aspects, varying the zoom level of an item shown in an image to create a zoomed image includes varying, in each zoomed image, the number of pixels used to represent a single pixel in an image of the set of training images.
[0017] In some aspects, training the zoom-agnostic watermark decoder model includes training the zoom-agnostic watermark decoder model using two different zoomed images created from a same image in the set of training images, where each of the two different zoomed images uses a different number of pixels to represent a single pixel of the same image.
[0018] In some aspects, developing the zoom-agnostic watermark decoder model may further include training, by the one or more processors, a zoom-agnostic watermark detection model using the zoomed images to detect the presence of a visually imperceptible watermark in the input image across multiple zoom levels of the input image, where detection is performed independently of decoding of the visually imperceptible watermark.
[0019] Certain embodiments of the subject matter described herein may be implemented to achieve one or more of the following advantages: A visually imperceptible watermark, also referred to simply as a "watermark" for brevity, may be used to determine the source of third-party content presented with first-party content (e.g., on a website, in a streaming video, or in a native application). Such watermarks may be extracted and decoded more efficiently than before. For example, the watermark extraction and decoding techniques described herein perform an initial detection process that detects the presence of a watermark in an input image before attempting to decode any watermarks that may be included in the image. This is motivated by considering the computational resources involved in the decoding, which may be reduced by using a computationally less expensive (relative to the decoding process) detection process to filter out images that do not contain a watermark, thereby saving both time and computational resources required to process such input images through a computationally more expensive decoding process. In other words, instead of processing the image completely and attempting to decode the watermark in every image, it may be determined at the beginning of the detection process whether the image contains a watermark, while using fewer computing resources and requiring less time than performing the decoding process. In this manner, use of the detection process prior to beginning the decoding process conserves computing resources by more quickly filtering out images that do not contain the watermark, thereby reducing the amount of data that needs to be processed, allowing images that do contain the watermark to be identified and analyzed more quickly. In contrast, techniques that rely solely on the decoding process for both detecting and decoding watermarked images, or processes that do not use the detection process as a filtering mechanism, are more computationally expensive.
[0020] The detection and decoding process described herein is zoom agnostic, i.e., the watermark can be directly detected and / or decoded independent of the zoom level at which the image is captured. More specifically, the techniques described herein are used to detect and decode watermarks in playback data of an initially presented content (e.g., in a photograph or screenshot of the content), where the zoom level at which the initially presented content is captured varies for each instance captured (e.g., from photograph to photograph). Without the techniques described herein, detection and / or decoding of watermarks in an input image (e.g., playback data such as a photograph of the content presented at a client device) would require analyzing the input image at multiple different zoom levels, resulting in a waste of computing resources and time. Thus, implementations of the disclosed method are motivated by reducing the computational resources required to repeatedly analyze an image at each different zoom level to detect or decode the watermark. The techniques described herein utilize models trained to detect and decode watermarks in an input image without the need to repeatedly analyze the input image at multiple different zoom levels. The techniques described herein also enable accurate detection and decoding of watermarks in input images that have other distortions, such as those caused by image compression techniques (eg, JPEG compression).
[0021] Detection and / or decoding model performance is improved (e.g., the model becomes more accurate) by using numerical rounding on the training data. For example, captured images are typically stored as unsigned RGB integers, while model training is performed using floating point numbers. This mismatch is typically ignored when it does not substantially affect model performance, but when detecting / decoding watermarks from images, each pixel is important, whereby model performance degradation caused by a mismatch between the unsigned RGB integers and the floating point numbers used for training may result in unacceptable model performance. Thus, rounding techniques can be applied to floating point numbers to improve model training and the ability of the trained model to detect and / or decode watermarks in input images.
[0022] The details of one or more embodiments of the subject matter described herein are set forth in the accompanying drawings and the description below. Other features, aspects, and advantages of the subject matter will become apparent from the description, drawings, and claims. [Brief description of the drawings]
[0023] [Figure 1] 1 is a block diagram of a computing environment for transmitting an electronic document with a watermark image to a client device. [Diagram 2] FIG. 1 is a diagram of an example of encoding an image in the form of a two-dimensional binary Quick Response Code (QR Code®). [Diagram 3] FIG. 2 is a block diagram of an image analysis and decoder module. [Figure 4] 1 is a flow diagram of an example process for predicting whether a captured source image (eg, a screenshot) is encoded with one or more watermarked images. [Diagram 5] 1 is a flow diagram of an example process for training a zoom agnostic machine learning model (decoder machine learning model). [Figure 6] 1 is a flow diagram of an example process for decoding a captured source image (eg, a screenshot) that includes one or more watermarked images. [Figure 7] FIG. 1 is a block diagram of an exemplary computer system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0024] Described herein are systems, methods, devices, and techniques for detecting and decoding visually imperceptible watermarks in captured playback data of content (e.g., digital photographs of the content presented at a client device). Although the following description describes watermark detection with respect to visually imperceptible watermarks, the techniques can also be applied to visually perceptible watermarks. Visually imperceptible watermarks, simply referred to as "watermarks" for brevity, are semi-transparent and visually imperceptible to a human user under normal viewing conditions, allowing the watermark to be embedded in content without degrading the visual quality of the content. A watermark can convey information such as an identifier of the source of the watermarked image. For example, in the context of the Internet, a watermark can identify (among other information) an entity, server, or service that placed content on a publisher's property (e.g., a website, a video stream, a video game, or a mobile application) when the publisher's property is accessed by a user. Thus, when playback data of content presented on a publisher's property (e.g., a photo or screenshot of the content) is captured, submitted and verified, the watermark can be detected and decoded to verify whether the content was actually delivered by the appropriate entity, server, or service.
[0025] As described in more detail below, detection and decoding of the watermark can be performed by a machine learning model trained to detect and decode the watermark regardless of the zoom level at which the image is captured. For example, assume that the same content is presented on two different client devices of two different users. In this example, the display characteristics of one client device may cause the content to be presented at twice the size (e.g., 4x zoom) of the content presented on the other client device (e.g., 2x zoom). Thus, even if each user captures the presentation data of the content (e.g., using a screen capture application or digital camera) at the same zoom level, playback data of the captured content will be at different zoom levels. Of course, even if the content is presented at the same size on each client device, the difference in the zoom level at which the presentation data of the content is captured (e.g., using a screen capture application or digital camera) will result in playback data of the content at different zoom levels. In either case, the model described herein can detect and decode the watermark from each of the captured images of the content regardless of the difference in zoom level.
[0026] 1 is a block diagram of a networked environment 100 implementing a watermark detection apparatus 132. The environment 100 includes a server system 102, a client device 104, and computing systems for one or more image providers 106a-106n. The server system 102, the client device 104, and the image providers 106a-106n are connected over one or more networks, such as the Internet or a local area network (LAN). In general, the client device 104 is configured to generate and send a request for an electronic document to the server system 102. Based on the request from the client device 104, the server system 102 generates response data (e.g., an electronic document) to return to the client device 104. The given response data can include content, such as a source image 128a configured to be displayed to a user of the client device 104, the source image 128a being provided by one of the image providers 106a-106n. The server system 102 can enhance the response data provided to the client device 104 with a semi-transparent watermark image 126 configured to be displayed in the source image 128a within the presentation data of the response document at the client device 104. By way of example, the following description uses the source images 128a-128n as examples of third-party content provided to the client device 104, but it should be appreciated that the watermark image 126 can be overlaid on a variety of other types of visible content, including native application content, streaming video content, video game content, or other visible content.
[0027] The client device 104 can be any type of computing device configured to present images and other content to one or more human users. The client device 104 may include an application, such as a web browser application, that issues requests to and receives responses from the server system 102. The application may execute response data from the server system 102, such as web page code or other types of document files, and present the response data to one or more users of the client device 104. In some implementations, the client device 104 includes or is coupled to an electronic display device (e.g., an LCD or LED screen, a CRT monitor, a head-mounted virtual reality display, a head-mounted mixed reality display) that displays content from the rendered response data to one or more users of the client device 104. The displayed content may include a source image 128a and a watermark image 126 that is displayed substantially transparently over the source image 128a. In some implementations, the client device 104 is a notebook computer, a smartphone, a tablet computer, a desktop computer, a gaming console, a personal digital assistant, a smart speaker (e.g., voice controlled), a smart watch, or other wearable device.
[0028] In some implementations, the source image 128a provided in response to the client device 104 is a third-party content item, e.g., not included in the content provided by the first-party content provider of the response data. For example, if the response data is a web page, the creator of the web page may include a slot in the web page configured to be populated with an image from a third-party content provider (e.g., an image repository provider) different from the creator of the web page. In another example, the first-party content provider may directly link to the third-party source image 128a. The client device 104 may request the source image 128a directly from a computing system corresponding to one of the image providers 106a-106n or indirectly through an intermediate service, such as a service provided by the server system 102 or another server system. The server system 102 may be implemented as one or more computers in one or more locations.
[0029] The server system 102 can be configured to communicate with the computing systems of the image providers 106a-106n to, for example, obtain a source image 128a to provide to the client device 104. In some implementations, the server system 102 is configured to respond to a request from the client device 104 with an electronic document and a semi-transparent watermark image 126 to be displayed over the source image 128a in the electronic document. To generate the semi-transparent watermark, the server system 102 can include an image generation subsystem 110, which can further include an encoding input generator 112 and a watermark image generator 114.
[0030] The encoding input generator 112 can process the plain text data item to generate an encoded image 124 that encodes the plain text data item. For example, the plain text data item may be a text sample or string that includes information identifying the provider of the image or other characteristics of the image. For example, the plain text data item can be a unique identifier that identifies the image provider 106a-106n. The plain text data item can also include a session identifier that uniquely identifies a network session between the client device 104 and the server system 102 in which a response to a request from the client device 104 is provided. The plain text data item can also include or reference image data that identifies a particular source image 128a to be provided to the client device 104 or information related to the source image 128a (e.g., information indicating which of the image providers 106a-106n provided the particular source image 128a to be provided to the client device 104, and a timestamp indicating when the source image 128a was provided or requested).
[0031] In some implementations, the server system 102 can also include a response record database 120 that stores such information about the source images 128a or data correlating responses given to specific requests so that detailed information can be accessed via the session identifier or other information represented by the plain text data items. The response record database 120 can also associate a session identifier with the image data, thereby allowing the image data to be accessed by querying the database 120 using the session identifier represented by the plain text data items. A user can identify which of the source images 128a-128n were given to the client device 104, when, and from which image provider 106a-106n to use, for example, the session identifier from the plain text data items.
[0032] The watermark image generator 114 of the server system 102 may be configured to process the encoded image 124 to generate a semi-transparent watermark image 126. The semi-transparent watermark image 126 is derived from the encoded image 124 and also encodes the plaintext data items 122. However, the transparency, color, arrangement, and / or other features of the encoded pixels of the watermark image 126 may be varied from the transparency, color, arrangement, and / or other features of the encoded pixels of the encoded image 124. For example, the encoded image 124 may be uniformly opaque and comprised of encoded pixels closely packed adjacent to one another, whereas the watermark image 126 may include some fully transparent pixels and some partially transparent pixels. Furthermore, the encoded pixels in the watermark image 126 may be spaced relative to one another such that each encoded pixel is surrounded by non-encoded pixels (i.e., "blank" pixels). The conversion of the encoded image 124 to the watermark image 126 may be performed such that the watermark image 126 is overlaid and merged onto the background source image 128a before the post-encoding information is decoded, for example, by reconstructing the encoded image 124 or the watermark image 126.
[0033] In some implementations, the encoded image 124 is a matrix barcode and represents the plain text data item 122. One example of a suitable matrix barcode is a Quick Response Code (QR Code). The encoded image 124 can have a predefined size in terms of the number of rows and columns of pixels. Each pixel in the encoded image 124 can encode a binary bit of data, with the value of each bit being represented by a different color. For example, a pixel encoding a binary value "1" may be black, while a pixel encoding a binary value "0" may be white. In some implementations, the minimum encoding unit of the encoded image 124 may actually be larger than a single pixel. However, in the examples described herein, the minimum encoding unit is assumed to be a single pixel. However, it should be appreciated that the techniques described herein may extend the minimum encoding unit to a set of multiple pixels, for example, a 2x2 set or a 3x3 set of pixels. An exemplary encoded image 124 is further described with reference to FIG. 2.
[0034] 2 illustrates an exemplary QR code (registered trademark, as below) 200 that can serve as an encoded image, e.g., encoded image 124, in the techniques described herein. OR code 200 has a fixed size of 21×21 pixels in this example; however, QR codes of other predefined sizes are also suitable. A notable feature of QR code 200 are three squares 202a-202c of 7×7 pixels located at the top left, top right, and bottom left corners of code 200. The square patterns 202a-202c aid an optical reading device in identifying the boundaries of QR code 200 and properly orienting the image of QR code 200 so that the rows and columns of pixels can be ascertained and code 200 can be read successfully. Each square pattern is defined by seven consecutive black pixels (e.g., encoded value 1) in the first and seventh rows, black-white-white-white-white-white-black (e.g., encoded values 1-0-0-0-0-0-1) in the second and sixth rows, and black-white-black-black-black-black-white-black (e.g., encoded values 1-0-1-1-1-0-1) in the third, fourth, and fifth rows. A watermarked image can be formed from the QR code 200 as described with respect to FIG. 1, including by assigning a high partial transparency value to each black pixel in the code 200, applying a full transparency value to each white pixel in the code 200, inserting a blank (uncoded) full transparency pixel to the right of each pixel from the QR code 200 in each odd row, and inserting a blank full transparency pixel to the left of each pixel from the QR code 200 in each even row of the code 200. This results in a 21x43 pixel watermarked image that can be overlaid on the source image to be encoded.
[0035] 1, the watermark image 126 may be generated directly from the plaintext data without explicitly generating the encoded image 124 as an intermediate operation on the way to achieving the watermark image 126. In some implementations, the server system 102 may directly merge the watermark image 126 onto the source image 128a and provide the merged image to the client device 104, or the server system 102 may directly encode the watermark in the source image 128a without explicitly generating the encoded image 124, the watermark image 126, or both.
[0036] After generating the watermark image 126, the server system 102 generates response data to return to the client device 104 in response to the client's request for the electronic document. The response data can include one or more content items, including first-party and third-party content items. These content items collectively form an electronic document, such as a web page, an application interface, a PDF, a presentation slide deck, or a spreadsheet. In some implementations, the response data includes a primary document, which specifies how the various content items should be arranged and displayed. The primary document, such as a Hypertext Markup Language (HTML) page, may point to the first-party and third-party content items to be displayed when presenting the document. In some implementations, the server system 102 is configured to add computer code to the primary document that instructs the client device 104, when executing the response, to display one or more instances of the watermark image 126 on the source image 128a, e.g., to add a watermark that is substantially imperceptible to a human user to the source image 128a. Because the watermark image 126 has fully transparent and partially transparent pixels, an application at the client device 104 rendering the electronic document can perform blending techniques to overlay the watermark image 126 on the source image 128a according to a specified transparency of the watermark image 126. For example, the server system 102 may add code that instructs the client device 104 to display the source image 128a as a background image in a third-party content slot in the electronic document and to display one or more instances of the watermark image 126 as foreground images on the source image 128a.
[0037] In an environment where there may be millions of images (and other visual content) delivered to many different client devices 104, there may be situations where the server system 102 needs to determine the provider or source of the image (or other visual content), other characteristics of the image, or the context of a particular impression (e.g., presentation data) of the image. For example, a user of a client device 104 may receive an inappropriate or objectionable image 128a from one of the image providers 106a-106n in response to a request for an electronic document. The user may capture a screenshot of the encoded image 130 (e.g., a reproduction of the image or other content presented at the client device 104) and send the screenshot to the server system 102 so that it can be analyzed, e.g., inquiring about the origin of the source image 128a. Because the screenshot shows the original image 128a overlaid by the watermarked image 126, the server system 102 can process the screenshot to recover the encoded representation of the plaintext data item, and can decode the encoded representation to recover the plaintext data item itself. The system 102 can then use the recovered plain text data item for various purposes, such as querying a response record database to retrieve detailed information about the image 128a and its origin, or other information about the particular client session in which the source image 128a was presented to the client device 104.
[0038] To detect and decode the encoded representation of the plain text data item 122 from the encoded source image 130, the server system 102 may include an image analysis and decoder module 118. The encoded source image 130 is an image obtained by the client device 104 rendering the watermark image 126 on the source image 128a. Although the watermark image 126 is separated from the source image 128a, the encoded source image 130 processed by the image analysis and decoder module 118 may be a merged image showing the watermark image 126 integrated on the source image 128a. The encoded source image 130 may also be referred to as an input image, since it may be input to the image analysis and decoder module 118 to detect and / or decode the watermark that is part of the encoded source image 130. The encoded source image 130 captured and submitted to the image analysis and decoder module 118 may be a reproduction (e.g., a screenshot or other digital capture) of the presentation data of the watermark image 126 on the source image 128a. Therefore, the original source image 128a and the original watermark image 126 do not have to be submitted to the image analysis and decoder module 118 for analysis.
[0039] In some cases, the server system 102, including the image analysis and decoder module 118, may receive a request to analyze a possibly encoded / watermarked image. As used herein, the term "possible" refers to a condition of an item that may be attributed to an item, but is nevertheless unknown to the processing entity (e.g., the server system 102) that processes the item. That is, a possible condition of an item is a candidate condition of the item whose true or false is unknown to the processing entity. The processing entity may identify possible (candidate) conditions of an item to make predictions as to whether a possible (candidate) condition is true and / or to perform processing to identify possible (candidate) items exhibiting a particular condition. For example, a possibly encoded source image is a source image that is possibly encoded with a watermark, but initially, it is unknown to the server system 102 whether the image is actually watermarked. Thus, a possible encoding of the source image 128a with a watermark is a candidate condition of the source image 128a, and the source image is a candidate item exhibiting a condition to be encoded with a watermark. A potentially encoded image may be obtained by a user capturing a screenshot (or another digital reproduction, e.g., a digital photograph) of the source image and providing the captured image to server system 102 for analysis, but in this case without including any further information indicating whether the image is encoded / watermarked.
[0040] The image analysis and decoder module 118 may include a watermark detector 132 that may implement one or more machine learning models (referred to as detector machine learning models) for detecting whether the possibly encoded source image may or may not contain a watermark, as described above, when the server system 102 receives the possibly encoded (watermarked) source image 130. The watermark detector 132 may identify possibly encoded regions of the possibly encoded source image and may determine values of features of the possibly encoded source image 130. For simplicity, the possibly encoded source image may also be referred to as a possibly encoded image.
[0041] If the watermark detection unit 132 detects a visually imperceptible watermark in the encoded source image 130, the watermark decoder 134 implemented in the image analysis and decoder module 118 completes one or more attempts to decode the potentially encoded image. As described in more detail with respect to other figures, the watermark decoder 134 may implement one or more machine learning models (referred to as decoder machine learning models) configured to process possibly encoded regions of the potentially encoded image and features of the potentially encoded image 302 to predict the watermark status of the potentially encoded image. In this example, the watermark decoder 134 implements a decoder machine learning model 134a, which is further described with reference to Figures 3-6. The image analysis and decoder module 118 may also include a zoom unit 138 and a verification unit 132, which are described in more detail below. The image analysis and decoder module 118 and any subsystems may be implemented on one or more computers at one or more locations where the server system 102 is implemented.
[0042] 3 is a block diagram 300 of an exemplary image analysis and decoder module 118 that detects and decodes an encoded representation of a plaintext data item 122 from a potentially encoded image 302 input to the image analysis and decoder module 118. The potentially encoded image 302 may be in the form of a screen capture or digital photograph of an image presented at a client device. For example, the potentially encoded image 302 may be a screen capture of an image presented on a publisher website. More specifically, the potentially encoded image 302 may have been captured by a user visiting the publisher website and then submitted by the user to report the presentation data of the image (e.g., report it as inappropriate). The image analysis and decoder module 118 may include one or more of a watermark detector 132, a watermark decoder 134, a controller 136, a zoom device 138, and a verification device 140.
[0043] In some implementations, the watermark detector 132 may implement a machine learning model (referred to as a detector machine learning model 132a) configured to process the potentially encoded image 302 and generate as output an indication of whether the potentially encoded image 302 contains a portion of a watermark or one or more watermarks. The detector machine learning model 132a may be any model deemed suitable for a particular implementation, such as decision trees, artificial neural networks, genetic programming, logic programming, support vector machines, clustering, reinforcement learning, Bayesian inference, etc. The machine learning model may also include methods, algorithms, and techniques for computer vision and image processing to analyze the image.
[0044] In some implementations, the watermark detector 132 may also implement a heuristics-based approach or another suitable model-based or rule-based technique to determine whether the potentially encoded image 302 includes a watermark. In such implementations, an indication of whether the potentially encoded image 302 includes a portion of the watermark or one or more watermarks may be in the form of a classification or a number, such as a score or probability. For example, the detector machine learning model 132a may be implemented as a classification model that may process the potentially encoded image 302 to classify the image as an image that includes a watermark or an image that does not include a watermark. In another example, the detector machine learning model 132a may process the potentially encoded image 302 to generate a score, such as a score indicative of the likelihood that the potentially encoded image 302 includes a watermark.
[0045] In some implementations, the watermark detection device 132 may implement a detector machine learning model 132a for performing semantic image segmentation. Semantic image segmentation is a process of classifying each pixel of an image into one or more classes. For example, the detector machine learning model 132 may process the potentially encoded image 302 to classify each pixel of the potentially encoded image 302 into a first class and a second class. In this example, the first class corresponds to pixels of the image 302 that are encoded with a watermark image (or are superimposed when displayed on the client device 104), and the second class corresponds to pixels of the image 302 that are not encoded with a watermark image. The detector machine learning model 132a classifies pixels based on pixel characteristics of the potentially encoded image 302. For example, pixels that are visually imperceptible but are classified as the first class (i.e., encoded with a watermark image) may be distinguished by the detector machine learning model 132a. For example, a 32-bit RGB pixel contains 8 bits for each color channel (e.g., red (R), green (G), and blue (B)) as well as an "alpha" channel for transparency. Such a format can support 4,294,967,296 color combinations that are specifiable by a computer system, although some combinations are indistinguishable by the human eye.
[0046] In some implementations, the detector machine learning model 132a can generate as output a segmentation mask that identifies a set of watermarked encoded pixels. For example, the detector machine learning model 132a can generate the segmentation mask by classifying pixels of the potentially encoded image 302 into a first class and a second class, and then assigning a label to the pixel related to the class to which the pixel is assigned. For example, the detector machine learning model 132a can receive as input a potentially encoded image 302 (e.g., a screenshot from the client device 104) with dimensions 1000×1000×3 and generate as output a segmentation mask with dimensions 1000×1000×1, where each value of the segmentation mask corresponds to a label assigned to a respective pixel of the potentially encoded image 302. For example, if a pixel of the potentially encoded image 302 is classified as the first class, the pixel can be assigned the label "1", and if the pixel is classified as the second class, the pixel can be assigned the label "0". In this example, the segmentation mask 310 is generated by processing the potentially encoded image 302 with the detector machine learning model 132a. As can be seen in Fig. 3, the potentially encoded image 302 contains two watermarks 126a and 126b in two different regions of the potentially encoded image 302. The segmentation mask 310 identifies the watermarks 126a and 126b as 310a and 310b as regions of the potentially encoded image 302 that contain the watermarks. Upon detecting the watermarks, the potentially encoded image 302 is classified as an encoded image that can be processed by the watermark decoder 134 as described in more detail below.
[0047] In another example, the detector machine learning model 132a can generate a segmentation mask for each class of the detector machine learning model 132a. For example, the detector machine learning model 132a can generate a segmentation mask of dimensions 1000×1000×NumClass, where NumClass=2 is the number of classes of the detector machine learning model 132a. In this example, the segmentation mask can be interpreted as two 1000×1000 matrices, where a first matrix can identify pixels of the potentially encoded image 302 that belong to a first class, and a second matrix can identify pixels of the potentially encoded image 302 that belong to a second class. In such a situation, the labels "0" and "1" are used to indicate whether a pixel belongs to a particular class or not. For example, the values of the first matrix whose corresponding pixels of the potentially encoded image 302 are classified as the first class have the label "1", and the elements whose corresponding pixels are classified as the second class have the label "0". Similarly, the values of the second matrix, i.e. elements whose corresponding pixels of the potentially encoded image 302 are classified as the second class, have the label “1” and elements whose corresponding pixels are classified as the first class have the label “0”.
[0048] In some implementations, the detector machine learning model 132a may be a deep convolutional neural network (CNN) with a UNet architecture trained to perform semantic segmentation of the potentially encoded image 302 to detect regions of the potentially encoded image 302 that contain the watermark. CNNs with UNet architecture are described in more detail in Ronneberger O., Fischer P., Brox T., (2015) "U-Net: Convolutional Networks for Biomedical Image Segmentation. In: Navab N., Hornegger J., Wells W., Frangi A. (eds) "Medical Image Computing and Computer-Assisted Intervention - MICCAI 2015." MICCAI 2015. Lecture Notes in Computer Science, Vol 9351, Springer, Cham. https: / / doi.org / 10.1007 / 978-3-319-24574-4_28, the entire contents of which are incorporated herein by reference. In another example, the detector machine learning model 132 can be a region-based convolutional neural network (R-CNN).
[0049] In some implementations, the detector machine learning model 132a may include multiple training parameters. The detector machine learning model 132a is trained on a first training data set using a training process that may adjust the multiple training parameters to generate an indication of whether the potentially encoded image 302 includes a portion of a watermark or one or more watermarks. The first training data set may include multiple training samples, each training sample including a watermarked training image and a target that identifies pixels of the training image that were encoded using the watermark. For example, the training image may be an image similar to a screenshot from the client device 104 that includes a watermark in one or more regions of the training image. The target corresponding to the training image may include a segmentation mask that identifies watermarked or non-watermarked pixels, and in some cases, identifies both watermarked and non-watermarked pixels of the training image.
[0050] To enhance the generalizability of the detector machine learning model 132a, the training process can extend the first dataset by generating new training samples using existing training samples of the first dataset. To generate new training samples, the training process can distort images from the set of training images to create distorted images. In some implementations, the distorted images can be generated by applying visual perturbations that commonly occur in real-world visual data, such as horizontal and vertical flipping, translation, rotation, cropping, zooming, color distortion, and adding random noise. The training process can also generate new training samples by encoding the training images into different file formats using lossy compression or conversion techniques. For example, the training process can introduce small artifacts into the training images using JPEG compression, and can extend the first dataset using the training images generated after compression.
[0051] The training process may generate multiple different zoomed versions of the same image of the first dataset to create a training set that trains the detector machine learning model 132a to detect watermarks in images across various zoom levels. For example, given a particular training image, multiple different versions of the training image may be created by changing the zoom level of items shown in the image, thereby creating zoomed versions of the particular training image.
[0052] During training, the training process can adjust multiple parameters of the detector machine learning model 132a using a loss function such as cross-entropy error. For example, the cross-entropy error for a pixel can look at each pixel individually and compare the class prediction to the pixel's target class and adjust the parameters of the detector machine learning model 132a accordingly. The training process can be iterative in nature, and at each iteration, the training process attempts to minimize the cross-entropy error until the loss is below a specified threshold or until the training process has performed a specified number of iterations. The cross-entropy error can take the form: L=-(y log(p)+(1-y) log(1-p)) y is the target label for the pixel, and p is the predicted likelihood that the pixel belongs to the first class. Other example loss functions can include weighted cross-entropy error, focal loss, sensitivity-specificity loss, dice loss, boundary loss, Hausdorff distance loss, or compound loss.
[0053] In some implementations, in response to the watermark detector 132 detecting the presence of a watermark in the potentially encoded image 302, the image analysis and decoder module 118 forwards the potentially encoded image 302 and one or more outputs generated by the watermark detector 132 (e.g., a segmentation mask generated by the detector machine learning model 132a) to the watermark decoder 134 to decode and extract the watermark in the potentially encoded image 302. For example, if the watermark detector 132 detects the presence of a watermark in the potentially encoded image 302, the potentially encoded image 302 is classified as a post-encoded image, and the image analysis and decoder module 118 may decode the detected watermark using the watermark decoder 134. In situations where the watermark detector 132 fails to detect the presence of a watermark in the potentially encoded image 302, the image analysis and decoder module 118 ignores the potentially encoded image 302 and does not further process the potentially encoded image 302 using the watermark decoder 134, thereby conserving computational resources required to attempt to decode the watermark.
[0054] In some implementations, the watermark decoder 134 performs a process of decoding the watermark, which generally involves identifying the coded values of coded pixels in the potentially coded image 302 and determining, for example, whether each coded pixel corresponds to a black pixel (value 1) in the coded source image (e.g., a QR code) or a white pixel (value 0) in the coded source image. After the location or coordinates of the coded pixel are identified, various decoding techniques can be used to identify the coded value of the pixel. For example, the color of the pixel may be compared to its neighboring pixels, and if the color of the pixel is a certain amount darker than the neighboring pixels, it may be considered to code a black pixel (value 1) from the coded image. If the color of the pixel is not a required amount darker than the neighboring pixels, it may be considered to code a white pixel (value 0) from the coded image. Additionally, the same coded pixel from multiple instances of the watermarked image coded in the source image may be analyzed and the results statistically averaged. In some implementations, a machine learning model (referred to as the decoder machine learning model 134a) may be trained to perform the decoding analysis.
[0055] In some situations, even if the watermark detector 132 successfully detects the presence of a watermark on the potentially encoded image 302, the watermark decoder 134 may not be able to decode the watermark. Such situations may arise when the watermark detector 132 is able to detect one or more encoded pixels, but the potentially encoded image 302 has been downsampled or zoomed in or out from the original native zoom level to such an extent that the watermark decoder 134 is unable to decode the watermark. For example, system components may downsample an image as part of image processing, thereby reducing image resolution and inhibiting decoding of the potentially encoded image 302. In another example, a user's device may have captured a zoomed view of an image such that the image has a lower resolution than the original source image and the watermarked image when the screenshot is obtained. Additionally, the screenshot may include noise as a result of file compression that reduces storage space and / or transmission costs of the screenshot.
[0056] In situations where the watermark decoder 134 is unable to accurately decode the potentially encoded image 302 or where the watermark decoder 134 is not operating at least with a specified level of accuracy, a zoom technique may be used to improve the watermark decoder's ability to decode the potentially encoded image. The zoom technique may be performed by a zoom unit 138, which is configured to receive as input the potentially encoded image 302 forwarded by the watermark detection unit 132 and output a zoomed version of the image features. More specifically, the zoom unit 138 generates at least one scaled version of the potentially encoded image 302 that can be used to decode the watermark in the potentially encoded image 302. For example, if it is desired to improve the accuracy of the watermark decoder 134, the zoom unit 138 may generate a scaled version of the potentially encoded image 302 by increasing the resolution of the image features (e.g., by 2× or other suitable zoom amount), thereby increasing the resolution of the watermark features and thereby improving the accuracy of the watermark decoder 134. Of course, any number of scaled versions of the potentially encoded image 302 may be generated, but in practice a single zoomed version of the potentially encoded image should be sufficient.
[0057] In some implementations, if the watermark detector 132 generates, for example, only an indication of a confirmation that the potentially encoded image 302 includes a watermark and not a segmentation mask, the watermark decoder 134 may implement a watermark pixel extractor that identifies possible watermark regions rather than iteratively searching throughout the potentially encoded image 302. The watermark pixel extractor may implement the image segmentation techniques described with reference to the detector machine learning model 132a. For example, the watermark pixel extractor may implement a machine learning model such as U-Net trained to semantically segment the potentially encoded image 302 to generate a segmentation mask 310 having the same resolution as the potentially encoded image 302. In other implementations, if the detector machine learning model 132a identifies possible watermark regions on the potentially encoded image 302 by generating a segmentation mask that identifies pixels of the potentially encoded image 302 that are watermarked, the image analysis and decoder module 118 may bypass the watermark pixel extractor and decode the watermark of the potentially encoded image 302 using the decoder machine learning model 134a.
[0058] In some implementations, the image analysis and decoder module 118 can determine the zoom level of the potentially encoded image 302 based on the segmentation mask. Because the segmentation mask identifies the watermarked region, the image analysis and decoder module 118 can determine characteristics of the region, such as the number of pixels in the watermarked region, to determine the zoom level of the potentially encoded image 302. For example, assume that the region identified as the watermarked region is twice as large as the known size of the watermark. In this example, the zoom level is considered to be 200% or 2×, thereby determining that the image is captured at a 2× zoom level. In such implementations, the image analysis and decoder module 118 can use this information to help decode the watermark image of the potentially encoded image 302, for example, by informing a model that decodes the image of the zoom level.
[0059] In some implementations, the image analysis and decoder module 118 may generate a scaled version of the potentially encoded image 302 in response to the inability of the watermark pixel extractor (or watermark detector 132) to detect and / or extract the entire watermarked region of the potentially encoded image 302. For example, assume that the segmentation mask generates only a portion of the watermarked region. In such a situation, the watermark decoder 134 is unable to decode the watermark due to incomplete information. In such a situation, the image analysis and decoder module 118 may generate a scaled version of the potentially encoded image 302 using the zoom device 138 and check whether the entire watermarked region of the potentially encoded image 302 can be identified prior to decoding.
[0060] In some implementations, the decoder machine learning model 134a is configured to process the possibly encoded image 302 and generate as output a decoded watermark image 320 (also referred to as a predicted watermark image 320). The decoder machine learning model 134a can be any model deemed suitable for a particular implementation, such as decision trees, artificial neural networks, genetic programming, logic programming, support vector machines, clustering, reinforcement learning, Bayesian inference, etc. The machine learning model may also include methods, algorithms, and techniques for computer vision and image processing to analyze images. In some implementations, the watermark detector 132 can also implement a heuristics-based approach or another suitable model-based or rule-based technique that can generate the decoded watermark image 320.
[0061] In some implementations, the detector machine learning model 134a may be a deep convolutional neural network (CNN) with a UNet architecture trained to predict a decoded watermark image 320 of the potentially encoded image 302. The decoder machine learning model 134a may include a number of training parameters, and the decoder machine learning model 134a is trained on a second training data set using a training process that may adjust the number of training parameters to generate a predicted data (e.g., decoded watermark image 320) of the watermark image 126. The second training data set may include a number of training samples, each training sample including a watermarked training image, a form of identification information of an area of the training image that includes a watermark (e.g., a segmentation mask that identifies watermarked and non-watermarked pixels), and a target that includes the watermark image of the watermark in the training image.
[0062] To enhance the generalizability of the decoder machine learning model 134a, the second dataset can be expanded by generating new training samples using existing training samples of the second dataset. To generate new training samples, the training process can distort training images of the set of training images to create distorted images used to train the model. In some implementations, the distorted images can be generated by applying visual perturbations that commonly occur in real-world visual data, such as horizontal and vertical flipping, translation, rotation, cropping, color distortion, and addition of random noise. In some implementations, the training process can generate new training samples by encoding the training images into different file formats using lossy compression or conversion techniques. For example, the training process can introduce small artifacts into the training images using JPEG compression, and can expand the first dataset using the training images generated after compression.
[0063] The training process may generate multiple different zoomed versions of the same image of the second dataset to create a training set that trains the decoder machine learning model 134a to detect watermarks in images across various zoom levels. For example, given a particular training image, multiple different versions of the training image may be created by changing the zoom level of the items shown in the image, thereby creating zoomed versions of the particular training image. Because zooming at different levels changes the number of pixels used to represent a single pixel in the training image, the decoder machine learning model 134a when trained using the augmented images is independent of the number of pixels used to represent the watermark.
[0064] In some implementations, the training process can further extend the second training data set by rounding floating-point numbers that represent the colors of pixels in the training images. In such a situation, the training images are floating-point images, such as ARRIRAW, Blackmagic RAW, DNG, DPX, EXR, PSD, and TIFF image formats. Because floating-point images provide the highest accuracy and dynamic range, the decoder machine learning model 134a is trained on floating-point images that are extended to increase generalizability to cover the entire range of all possible image formats and other image characteristics. For example, the floating-point numbers in the floating-point images can be rounded using normal rounding, where the rounded value is the nearest decimal value to the floating-point number. In another example, the floating-point numbers in the floating-point images can be rounded using truncation, where the rounded value is the decimal part of the floating-point number.
[0065] During training, the training process may adjust multiple parameters of the decoder machine learning model 134a using a loss function such as cross-entropy error. For example, pixel-wise cross-entropy error may look at each pixel individually and compare pixel prediction data of the decoded (predicted) watermark image 320 with pixels of the target watermark image, and adjust the parameters of the decoder machine learning model 134a accordingly. The training process may be iterative in nature, and during each iteration, the training process attempts to minimize the L2 loss until the loss is below a specified threshold or until the training process has performed a specified number of iterations.
[0066] In some implementations, after generating the decoded watermark image 320 by processing the possibly encoded image 302, the watermark decoder 134 can generate as an output the decoded watermark image 320 that can be used by the image analysis and decoder module 118 to verify the authenticity (or source) of the possibly encoded image 302. To verify the authenticity (or source), the verification device 140 implemented in the server system 102 can use the decoded watermark image 320 to recover the corresponding encoded image 124 and / or the corresponding plaintext data item 122. When the possibly encoded image 302 is provided to the client device 104 as response data from the server system 102, the verification device 140 can verify the authenticity of the possibly encoded image 302 using the corresponding encoded image 124 and / or the corresponding plaintext data item 122. For example, if the server system 102 can identify the corresponding encoded image 124 and / or the corresponding plain text data item 122 from the response record database 120, the corresponding encoded image 124 and / or the corresponding plain text data item 122 are valid. Based on the corresponding encoded image 124 and / or the corresponding plain text data item 122, the server system 102 can further determine information about the source image 128a, such as the provider of the source image 128a, and details of the response data given for the particular request. If the corresponding encoded image 124 and / or the corresponding plain text data item 122 cannot be identified, the server system 102 can determine that the possibly encoded image 302 was not sent by the server system 102. In other words, if the information identifying the source of the possibly encoded image 302 is not decoded, the image analysis and decoder module 118 can determine that the possibly encoded image 302 was not delivered by the server system 102.This is because the content delivered by the server system 102 is encoded with information that identifies the server system 102 as the source of the content.
[0067] In some implementations, the watermark decoder 134 may generate as output a decoded watermark image 320 scaled from the original zoom level according to the scaling performed on the version of the potentially encoded image 302. For example, to generate the decoded watermark image 320, the watermark decoder 134 may generate a 200 percent (2×) zoom level scaled version of the potentially encoded image 302 using the zoom device 138. This type of zooming may help increase the likelihood that the watermark will be properly decoded, as described above. For example, if a relatively small portion of the potentially original encoded image 302 is encoded with the watermarking image, the decoded watermark image 320 may be insufficient for the decoder machine learning model 134a to generate the decoded watermark image 320. In such situations, the decoded watermark image 320 generated by the decoder machine learning model 134a may be zoomed to aid in the decoding process.
[0068] 4 is a flow diagram of an example process 400 for predicting whether a potentially encoded image (e.g., a screenshot of content presented at a client device) is encoded with one or more watermarking images. The operations of process 400 may be performed, for example, by the server system 102 including the image analysis and decoder module 118. The operations of process 400 may be implemented as instructions stored on one or more computer-readable media, which may be non-transitory, and execution of the instructions by one or more data processing devices may cause the one or more data processing devices to perform the operations of process 400.
[0069] A potentially encoded image is obtained (410). In some implementations, the potentially encoded images, also referred to as candidate images, are obtained by the image analysis and decoder module 118, which includes one or more database processing devices and / or watermark detection devices. For example, a user of a client device 104 may receive inappropriate or objectionable content (e.g., an image or video) in response to a request for an electronic document. In this example, the user may capture a screenshot of the content (referred to as a potentially encoded image or candidate image) and send it to the image analysis and decoder module 118 so that the screenshot can be analyzed, e.g., to query the origin of the content presented to the user and represented by the potentially encoded image. Although multiple images are received, they need not be received simultaneously. For example, the images may be obtained over a period of time as content on the publisher's property is submitted by the user to be presented.
[0070] It is determined (420) whether each possibly encoded image (candidate image) contains a visually imperceptible watermark. In some implementations, the determination as to whether the candidate image contains a visually imperceptible watermark is performed by a watermark detector prior to any processing of the candidate image by a watermark decoder. Using a watermark detector to determine whether a candidate image contains a watermark prior to processing the image with a watermark decoder results in a more efficient computing system. For example, a simpler (e.g., less computationally expensive) detection process can be used to detect the presence of a watermark in a received image before it is necessary to run a more computationally intensive decoder process. Thus, the system can ignore images where no watermark is detected without wasting resources required to run the decoder process.
[0071] The watermark detector 132 may be implemented within the image analysis and decoder module 118 and may implement a detector machine learning model 132a configured to process a candidate image and generate as an output an indication of whether the candidate image includes a portion of a watermark or one or more watermarks. For example, the detector machine learning model may be implemented as a classification model that may process a candidate image and classify the image as an image that includes a watermark or an image that does not include a watermark.
[0072] In some implementations, the watermark detection device may also implement a detector machine learning model for performing semantic image segmentation. For example, the detector machine learning model may process a candidate image to classify each pixel of the candidate image into a first class and a second class. In this example, the first class corresponds to pixels of the candidate image that are encoded (or superimposed when displayed on a client device) with the watermark image, and the second class corresponds to pixels of the candidate image that are not encoded with the watermark image. In some implementations, the detector machine learning model may generate as output a segmentation mask that identifies a set of watermarked encoded pixels. For example, after classifying pixels of the candidate image into the first class and the second class, the detector machine learning model may generate the segmentation mask by assigning a label to the pixel that is related to the class to which the pixel is assigned. For example, if a pixel of the candidate image is classified as the first class, the pixel may be assigned the label "1", and if the pixel is classified as the second class, the pixel may be assigned the label "0".
[0073] In some implementations, the determination of whether the candidate image includes a visually imperceptible watermark is performed using a detector machine learning model. In these implementations, the determining includes determining whether the candidate image includes a visually imperceptible watermark using a detector machine learning model trained to determine whether a region of an input image includes a visually imperceptible watermark based on a coarse analysis of the region that does not require a pixel-by-pixel analysis of the region. For example, the total number of coded bits or black bits can be used as a condition for determining whether the candidate image includes a watermark. More specifically, if a region corresponding to the size of the watermark does not include a sufficient number of coded bits or black bits, it is not possible to include the watermark in the region, and therefore further processing of the image is not required.
[0074] The determination of whether the candidate image includes a visually imperceptible watermark may also be performed by classifying a region of the candidate image as watermarked or unwatermarked based on a watermark condition. The watermark condition may include, for example, a threshold number of coded bits, a coded bit density threshold, a coded bit distribution condition, or other conditions that may indicate a watermarked region of the candidate image. In these implementations, a set of coded pixels in a region of the candidate image is determined, and the region is classified based on whether the set of coded pixels satisfies the watermark condition. For example, if the coded bit density (e.g., a portion of the total bits, e.g., a percentage of the total bits, in the region identified as coded) for a particular region of the candidate image is greater than the coded bit density threshold, the region may be classified as a watermarked region. However, if the coded bit density for a particular region is less than the coded bit density threshold, the region may be classified as a non-watermarked region.
[0075] After a region of a candidate image has been classified, a binary 1 can be output for all pixels in the region to mark the region as containing a visually imperceptible watermark. Such binary 1s can be used to generate a watermark map for the image. The watermark map indicates the regions of the map that contain visually imperceptible watermarks. In some circumstances, each region can contain the same watermark, thereby allowing the information contained in the watermark to be recovered regardless of which portion of the image is analyzed or decoded. In some circumstances, different regions of an image can contain different watermarks, each conveying different information, thereby increasing the amount of information that can be encoded into a single image.
[0076] Each particular candidate image (particular image) is forwarded based on a determination of whether the particular image contains a visually imperceptible watermark. For example, in response to detecting the presence of a watermark in the particular image, the particular image is forwarded to the watermark decoder 134, where the watermark is decoded and extracted. For particular images for which no watermark is detected to be present, such particular images are then ignored (or discarded) and not processed by the watermark decoder. In some implementations, the particular images for which no watermark is detected are excluded from further processing.
[0077] The visually imperceptible watermark detected in the particular image forwarded to the watermark decoder is decoded (430). In some implementations, the watermark decoder performs the watermark decoding using a machine decoder machine learning model. For example, the decoder machine learning model is configured to process the candidate image and generate a decoded watermark image as an output. The decoder machine learning model can be a deep convolutional neural network (CNN) with a UNet architecture trained to predict the decoded watermark image. The decoder machine learning model can include multiple training parameters, and the decoder machine learning model is trained on a second training data set using a training process that can adjust the multiple training parameters to generate predicted data for the watermark image (e.g., the decoded watermark image). The watermark can be decoded using the decoder machine learning model trained to decode the visually imperceptible watermark in the particular image regardless of the zoom level of the item shown in the particular image. For example, as described above, the set of training images used to train the decoder machine learning model can include multiple training images each showing an item watermarked with a different image distortion at a different zoom level. To improve the performance of the model, the decoder machine learning model can be trained in floating-point numbers using images represented by RGB unsigned integers. As mentioned above, rounding techniques can be used to address the discrepancy between floating-point numbers and unsigned RGB integers.
[0078] The image analysis and decoder module 118 may determine that the watermark image of the candidate image was not decoded by the decoder machine learning model. For example, the candidate image may include distortions that may reduce the likelihood (or prediction reliability) while generating the decoded watermark image. In another example, the zoom level for the candidate image provided as an input to the decoder machine learning model may have a relatively small portion encoded with the watermarked image that may be insufficient for the decoder machine learning model to generate a decoded watermark image with sufficient reliability. Once it is determined that the watermark image of the candidate image is decoded, the decoded watermark image may be processed for verification. When it is determined that the watermark image of the candidate image was not decoded, one or more scaled versions of the candidate image may be generated, and further attempts to decode the watermark using the one or more scaled versions of the candidate image may be performed.
[0079] The decoded watermark image is verified (440). For example, to verify the authenticity of the decoded watermark image, a verification device implemented in the server system can use the decoded watermark image to recover the corresponding encoded image and / or the corresponding plain text data item. If the content shown by the candidate image is provided to the client device 104 as response data from the server system 102, the verification device 140 can verify the authenticity of the content shown by the candidate image using the corresponding encoded image and / or the corresponding plain text data item. For example, if the server system can identify the corresponding encoded image and / or the corresponding plain text data item from the response record database, the corresponding encoded image and / or the corresponding plain text data item is valid. Based on the corresponding encoded image and / or the corresponding plain text data item, the server system can further determine information about the source image (e.g., image content provided by the image provider), such as the provider of the source image, and details of the response data provided for the particular request. If the corresponding encoded image and / or the corresponding plain text data item cannot be identified, the server system can determine that the possibly encoded source image was not sent by the server system.
[0080] 5 is a flow diagram of an example process for training a zoom agnostic watermark model (e.g., decoder machine learning model 134b). The operations of process 500 may be performed, for example, by a server system 102 including an image analysis and decoder module 118. The operations of process 500 may be implemented as instructions stored on one or more computer-readable media, which may be non-transitory, and execution of such instructions by one or more data processing devices causes the one or more data processing devices to perform the operations of process 500.
[0081] A set of training images is obtained (510). In some implementations, the set of training images is obtained by a server system 102 including one or more processors. The server system 102 can perform a training process to train the decoder machine learning model 134a using the set of training images. To perform the training process, the server system 102 obtains a set of training images (referred to as a second set of training images) including a plurality of training samples, where each training sample includes a watermarked training image, a form of identification information for a region of the training image that includes a watermark (e.g., a segmentation mask that identifies watermarked and non-watermarked pixels), and a target including the watermark image for the watermark in the training image.
[0082] Images of the set of training images are distorted (520). For example, the training process for enhancing the generalizability of the decoder machine learning model 134a can extend the second dataset by generating new training samples using existing training samples of the second dataset. To generate the new training samples, the images can be distorted to create distorted images. In some implementations, the images can be distorted by modifying the resolution of the images or by applying visual perturbations that commonly occur in real-world visual data, such as horizontal and vertical flipping, translation, rotation, cropping, color distortion, and addition of random noise. In some implementations, the training process can generate new training samples by encoding the training images into different file formats using lossy compression or conversion techniques. For example, the training process can introduce small artifacts into the training images using JPEG compression and can extend the first dataset using the training images generated after compression. In some implementations, the distorted images can be created by changing the number of pixels used to represent a single pixel in the image.
[0083] In some implementations, the training process can further extend the second training data set by rounding floating-point numbers that represent the colors of pixels in the training images. In such situations, the training images are floating-point images, such as ARRIRAW, Blackmagic RAW, DNG, DPX, EXR, PSD, and TIFF image formats. In such situations, the floating-point numbers in the floating-point images can be rounded using normal rounding, where the rounded value is the nearest decimal value to the floating-point number. In another example, the floating-point numbers in the floating-point images can be rounded using truncation, where the rounded value is the decimal portion of the floating-point number.
[0084] In some implementations, the training process can further extend the second training data set by generating one or more scaled versions of the training images to train the decoder machine learning model 134a to be independent of the zoom level of the potentially encoded images 302. For example, a single training image can be zoomed in and / or out to create different zoomed versions of each of the images. The various zoomed versions of the image can be included in the set of training images used to train the model, thereby enabling the model to detect and / or decode visually imperceptible watermarks in images regardless of the zoom level of the candidate images input to the model.
[0085] Train the zoom-agnostic watermark decoder model (530). In some implementations, the zoom-agnostic watermark decoder model is trained to decode visually imperceptible watermarks in a candidate image input to the model, where decoding can be performed by the model across multiple different zoom levels of the input image. For example, the server system 102 can perform a training process that can adjust multiple parameters of the decoder machine learning model 134a using a loss function such as L2 loss. For example, the cross-entropy error for a pixel can be calculated by examining each pixel individually and comparing pixel prediction data of the decoded (predicted) watermark image 320 with pixels of the target watermark image, and adjusting the parameters of the decoder machine learning model 134a accordingly. The training process can be iterative in nature, and during each iteration, the training process attempts to minimize the cross-entropy error until the loss is less than a specified threshold or until the training process has performed a specified number of iterations.
[0086] In some implementations, the zoom agnostic watermark decoder model is trained using two or more different zoomed images created from the same image in the set of training images, in which each of the two different zoomed images may use a different number of pixels to represent a single pixel of the same image.
[0087] The zoomed images can also be used to train a zoom-agnostic watermark decoder model to detect the presence of a visually imperceptible watermark in an input image across multiple zoom levels of the input image, in some implementations the detection is performed independently of decoding the visually imperceptible watermark using the decoder model.
[0088] A zoom agnostic watermark model is deployed (540). For example, after training the decoder machine learning model 134a, the server system 102 can begin receiving candidate images. If the presence of a watermark is detected in the candidate image, the server system 102 can generate a decoded watermark image 320 using the decoder machine learning model 134a.
[0089] 6 is a flow diagram of an exemplary process 600 for decoding a potentially encoded image. The operations of process 600 may be performed, for example, by the server system 102 including the image analysis and decoder module 118. The operations of process 600 may be implemented as instructions stored on one or more computer-readable media, which may be non-transitory, and execution of such instructions by one or more data processing devices causes the one or more data processing devices to perform the operations of process 600.
[0090] An input image is received (610) by the watermark decoder 134. For example, in response to detecting the presence of a watermark in a particular image, the particular image is forwarded to the watermark decoder 134, where the watermark is decoded and extracted, as described above.
[0091] A decoder machine learning model is applied to the input image (620). The watermark decoder 134 performs watermark decoding using the decoder machine learning model 134a. The decoder machine learning model is configured to process an input image (also called a candidate image) and generate a decoded watermark image as an output. The decoder machine learning model may be a deep convolutional neural network (CNN) with a UNet architecture trained to predict the decoded watermark image. The decoder machine learning model may include a number of training parameters, and the decoder machine learning model is trained on a second training data set using a training process that may adjust the number of training parameters to generate predicted data for the watermark image (e.g., the decoded watermark image).
[0092] The watermark can be decoded using a decoder machine learning model trained on visually imperceptible watermarks in images, regardless of the zoom level of the item shown in the particular image. For example, as described above, the second set of training images used to train the decoder machine learning model can include multiple training images showing watermarked items at different zoom levels, each with a different image distortion. To improve the model's performance, the decoder machine learning model can be trained using floating point numbers with images represented by RGB unsigned integers. As described above, rounding techniques can be used to address discrepancies between floating point numbers and unsigned RGB integers.
[0093] The image analysis and decoder module 118 determines whether the decoded watermark image is predicted. In some implementations, the determining includes determining whether the visually imperceptible watermark is decoded by applying the decoder machine learning model to the input image to obtain the decoded watermark. For example, the image analysis and decoder module 118 may determine that the watermark image of the candidate image was not decoded by the decoder machine learning model. In this example, the candidate image may include significant distortions that may reduce the likelihood (or prediction reliability) during generation of the decoded watermark image, thereby determining that the watermark image is not decoded with sufficient reliability. In another example, the zoom level for the candidate image provided as input to the decoder machine learning model may have a relatively small portion encoded with the watermarking image that may be insufficient for the decoder machine learning model to generate a decoded watermark image with sufficient reliability. Once it is determined that the watermark image of the candidate image is decoded, the decoded watermark image may be processed for verification. When it is determined that the watermark image of the candidate image was not decoded, one or more scaled versions of the candidate image may be generated, and further attempts to decode the watermark using the one or more scaled versions of the candidate image may be performed.
[0094] A result is output based on whether the visually imperceptible watermark was decoded by applying the decoder machine learning model to the input image (630). After generating the decoded watermark image 320 by processing the potentially encoded image 302, the watermark decoder 134 may generate as an output the decoded watermark image 320 that may be used by the image analysis and decoder module 118 to verify the authenticity (or source) of the potentially encoded image 302.
[0095] To verify the authenticity (or source), a verification device 140 implemented in the server system 102 can use the decoded watermark image 320 to recover the corresponding encoded image 124 and / or the corresponding plaintext data item 122. When the possibly encoded image 302 is provided to the client device 104 as response data from the server system 102, the verification device 140 can verify the authenticity of the possibly encoded image 302 using the corresponding encoded image 124 and / or the corresponding plaintext data item 122.
[0096] In some implementations, the watermark decoder 134 may generate as output a decoded watermark image 320 scaled from the original zoom level according to the scaling performed on the version of the potentially encoded image 302. For example, this output may include a zoomed output generated in response to determining that a visually imperceptible watermark has been decoded by applying a decoder machine learning model to the input image. In a particular example, the decoded watermark may have a zoom level corresponding to the zoom level of the item shown by the input image, but to generate the decoded watermark image 320, the watermark decoder 134 may generate a 200 percent (2×) zoom level (or some other zoom level) scaled version of the potentially encoded image 302 using the zoom device 138. In such a situation, the decoded watermark image 320 generated by the decoder machine learning model 134a may be zoomed to aid in the decoding process. The zoomed output is a version of the decoded watermark where a single pixel of the decoded watermark is shown using multiple pixels in the zoomed output, thereby increasing the resolution of the watermark. This allows for easier and / or more reliable reading of the watermark.
[0097] In some situations, visually imperceptible watermarks may not be decoded initially by applying the decoder machine learning model to the input image. In such situations, the decoder machine learning model may be reapplied to a zoomed version of the input image. For example, as described above, a zoom technique may be used to increase the resolution of the watermark in the input image, thereby allowing for more reliable decoding of the watermark. Reapplying the decoder machine learning model to the zoomed version of the input image may include zooming the input image by at least a 2x multiplier to create a zoomed version of the input image, where at least two pixels in the zoomed version of the input image are used to represent a single pixel in the input image. After the zooming has occurred, the decoder machine learning model may be reapplied to the zoomed version of the input image, and again results may be output.
[0098] In some implementations, additional operations may be performed before applying the decoder machine learning model to the input image. For example, the input image may be processed using a detector machine learning model that is applied to the input image. In such implementations, applying the detector machine learning model to the input image may generate a segmentation mask that highlights watermarked regions of the input image, as described in detail above. Using this segmentation mask, the input image may be determined to contain a visually imperceptible watermark to be decoded. The segmentation mask may also be used to determine the zoom level of the input image. For example, the zoom level of the input image may be determined based on the number of pixels used to represent the visually imperceptible watermark in the segmentation mask relative to the number of pixels used to represent the visually imperceptible watermark in the unzoomed image. In a particular example, assume that the watermark to be overlaid on the image is 100x100 pixels square, but the segmentation mask is 300x300 pixels. In this example, the dimensions of the segmentation mask are three times larger than the dimensions of the known size of the watermark in the unzoomed image, so the zoom level of the input image may be determined to be 300% (3x). This information can be output as part of the results and can be used to scale the input image for further processing (by a decoder machine learning model) or to inform other models or processing units of the scale of the input image.
[0099] 7 is a block diagram of an exemplary computer system 700 that can be used to perform the operations described above. The system 700 includes a processor 710, a memory 720, a storage device 730, and an input / output device 740. Each of the components 710, 720, 730, and 740 can be interconnected, for example, using a system bus 750. The processor 710 is capable of processing instructions for execution within the system 700. In some implementations, the processor 710 is a single-threaded processor. In another implementation, the processor 710 is a multi-threaded processor. The processor 710 is capable of processing instructions stored in the memory 720 or on the storage device 730.
[0100] The memory 720 stores information within the system 700. In one implementation, the memory 720 is a computer-readable medium. In some implementations, the memory 720 is a volatile memory unit. In another implementation, the memory 720 is a non-volatile memory unit.
[0101] The storage device 730 is capable of providing mass storage for the system 700. In some implementations, the storage device 730 is a computer-readable medium. In various different implementations, the storage device 730 may include, for example, a hard disk device, an optical disk device, a storage device shared over a network by multiple computing devices (e.g., a cloud storage device), or some other mass storage device.
[0102] The input / output device 740 provides input / output operations for the system 700. In some implementations, the input / output device 740 can include one or more of a network interface device, e.g., an Ethernet card, a serial communication device, e.g., and an RS-232 port, and / or a wireless interface device, e.g., and an 802.11 card. In another implementation, the input / output device can include a driver device configured to receive input data and send output data to an external device 760, e.g., a keyboard, a printer, and a display device. However, other implementations can be used, such as a mobile computing device, a mobile communication device, a set-top box, a television client device, and the like.
[0103] Although an exemplary processing system has been described in Figures 1-6, implementations of the subject matter and functional operations described herein can be implemented in other types of digital electronic circuitry, or in computer software, firmware, or hardware, including the structures disclosed herein and their structural equivalents, or in combinations of one or more of them.
[0104] The subject matter and embodiments of the operations described herein can be implemented in digital electronic circuitry, or in computer software, firmware, or hardware, including the structures disclosed herein and their structural equivalents, or in any combination of one or more of them. The subject matter described herein can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on computer storage medium(s) for execution by or to control the operation of a data processing apparatus. Alternatively or additionally, the program instructions can be encoded on an artificially generated propagated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, generated to encode information for transmission to a suitable receiver apparatus for execution by the data processing apparatus. The computer storage medium can be or be included in a computer readable storage device, a computer readable storage substrate, a random or serial access memory array or device, or a combination of one or more of them. Furthermore, the computer storage medium is not a propagating signal, and the computer storage medium can be a source or destination of computer program instructions encoded in an artificially generated propagating signal. A computer storage medium may also be, or be contained in, one or more separate physical components or media (eg, multiple CDs, disks, or other storage devices).
[0105] The operations described herein may be implemented as operations performed by a data processing apparatus on data stored on one or more computer-readable storage devices or received from other sources.
[0106] The term "data processing apparatus" encompasses any kind of apparatus, device, and machine for processing data, including, by way of example, a programmable processor, a computer, a system on a chip, or a plurality or combination of the above. The apparatus may include special purpose logic circuitry, e.g., a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC). In addition to hardware, the apparatus may also include code that creates an execution environment for the computer program in question, e.g., code that constitutes a processor firmware, a protocol stack, a database management system, an operating system, a cross-platform runtime environment, a virtual machine, or one or more combinations thereof. The apparatus and execution environment may implement a variety of different computing model infrastructures, such as web services, distributed computing infrastructures, and grid computing infrastructures.
[0107] A computer program (also known as a program, software, software application, script, or code) can be written in any form of programming language, including compiled or interpreted, declarative or procedural, and can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, object, or other unit suitable for use in a computing environment. A computer program may correspond to a file in a file system, but need not. A program can be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program, or in multiple cooperating files (e.g., files that store one or more modules, subprograms, or portions of code). A computer program can be deployed to be executed on one computer or on multiple computers located at one site or distributed across multiple sites and interconnected by a communication network.
[0108] The processes and logic flows described herein may be performed by one or more programmable processors executing one or more computer programs to perform actions by operating on input data and generating output. The processes and logic flows may also be implemented by, and apparatus may be implemented as, special purpose logic circuitry, for example, an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit).
[0109] Processors suitable for executing computer programs include, by way of example, both general-purpose and special-purpose microprocessors. Generally, a processor will receive instructions and data from a read-only memory or a random access memory, or both. The essential elements of a computer are a processor for performing actions according to instructions, and one or more memory devices for storing instructions and data. Generally, a computer also includes one or more mass storage devices, e.g., magnetic disks, magneto-optical disks, or optical disks, for storing data, or is operatively coupled to receive data therefrom or transfer data thereto, or both. However, a computer is not required to have such devices. Moreover, a computer can be incorporated into another device, e.g., a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device (e.g., a universal serial bus (USB) flash drive), to name just a few examples. Devices suitable for storing computer program instructions and data include all forms of non-volatile memory, non-volatile media, and non-volatile memory devices, including, by way of example, semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices, magnetic disks, e.g., internal hard disks or removable disks, magneto-optical disks, and CD-ROM and DVD-ROM disks. The processor and memory may be augmented by, or incorporated in, special purpose logic circuitry.
[0110] To provide for interaction with a user, embodiments of the subject matter described herein can be implemented on a computer having a display device, such as a CRT (cathode ray tube) or LCD (liquid crystal display) monitor, for displaying information to the user, as well as a keyboard and a pointing device, such as a mouse or trackball, by which the user can provide input to the computer. Other types of devices can also be used to provide for interaction with the user. For example, feedback provided to the user can be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback, and input from the user can be received in any form, including acoustic input, speech input, or tactile input. Additionally, the computer can interact with the user by sending documents to a device used by the user and receiving documents from the device, e.g., by sending a web page to a web browser on the user's client device in response to a request received from the web browser.
[0111] An embodiment of the subject matter described herein can be implemented in a computing system that includes back-end components, e.g., as a data server, or includes middleware components, e.g., an application server, or includes front-end components, e.g., a client computer having a graphical user interface or web browser through which a user can interact with an implementation of the subject matter described herein, or includes any combination of one or more such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication, e.g., a communication network. Examples of communication networks include local area networks ("LANs") and wide area networks ("WANs"), internetworks (e.g., the Internet), and peer-to-peer networks (e.g., ad-hoc peer-to-peer networks).
[0112] A computing system may include clients and servers. Clients and servers are generally remote from each other and typically interact through a communications network. The relationship of clients and servers arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. In some embodiments, the server sends data (e.g., HTML pages) to the client devices (e.g., to display the data to and receive user input from a user interacting with the client device). Data generated at the client device (e.g., results of user interaction) can be received at the server from the client device.
[0113] Although this specification contains many specific implementation details, these should not be interpreted as limitations on the scope of any invention or what may be claimed, but as descriptions of specific features for specific embodiments of a particular invention. Some features described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Moreover, although features may be described above as working in some combinations and may even be initially claimed as such, one or more features from the claimed combination may, in some cases, be deleted from the combination, and the claimed combination may be directed to a subcombination or a variation of the subcombination.
[0114] Similarly, although operations are shown in the figures in a particular order, this should not be understood as requiring that such operations be performed in the particular order or sequence shown, or that all of the illustrated operations be performed, to achieve desirable results. In some situations, multitasking and parallel processing may be advantageous. Furthermore, the separation of various system components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the program components and systems described may generally be incorporated together in a single software product or packaged in multiple software products.
[0115] Above, specific embodiments of the present subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims may be performed in a different order and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order or sequence shown to achieve desirable results. In some implementations, multitasking and parallel processing may be advantageous. [Explanation of symbols]
[0116] 100 Networked Environment 102 Server System 104 client devices 106a~106n Image Provider 110 Image Generation Subsystem 112 Encoded input generator 114 Watermark Image Generator 118 Image Analysis and Decoder Module 120 Response Record Database 122 Plain Text Data Items 124 encoded images 126 Watermark Images 126a, 126b Watermark 128a~128n Source image 130 Encoded image 132 Watermark detection device 132a Detector Machine Learning Model 134 Watermark Decoder 134a, 134b Decoder machine learning model 138 Zoom Device 140 Verification Device 200 QR Codes 202a~202c 7x7 pixel square 302 Possibly Encoded Images 310 Segmentation Mask 310a, 310b Watermark 320 Watermark Images 700 Computer Systems 710 Processor 720 Memory 730 Storage Devices 740 Input / Output Devices 750 System Bus 760 External Devices
Claims
1. 1. A computer-implemented method comprising: receiving an image by a watermark detection device; For each particular one of the images, determining, by the watermark detection device, whether the particular image contains a visually imperceptible watermark using a detector machine learning model, wherein the watermark detection device detects the visually imperceptible watermark in at least one of the images, and the detector machine learning model has been trained to detect the visually imperceptible watermark in images across various zoom levels using a training process that generates multiple different zoomed versions of the same image of a dataset; forwarding the particular image based on a determination of whether the particular image includes the visually imperceptible watermark, transferring the particular image to a watermark decoder in response to the watermark detector detecting the visually imperceptible watermark in the particular image; removing the particular image from further processing in response to the watermark detection device not detecting the visually imperceptible watermark in the particular image; decoding, by said watermark decoder, said visually imperceptible watermark detected in said particular image forwarded to said watermark decoder; and verifying items shown in the particular image based on data extracted from the decoded visually imperceptible watermark.
2. 2. The method of claim 1, wherein the step of determining whether the particular image includes a visually imperceptible watermark using a detector machine learning model comprises determining whether the particular image includes the visually imperceptible watermark using a detector machine learning model trained to determine whether a region of an input image includes the visually imperceptible watermark based on a coarse analysis of the region that does not require a pixel-by-pixel analysis of the region.
3. The step of determining whether the particular image contains the visually imperceptible watermark comprises: determining, by said watermark detection device, a set of encoded pixels within said region of said particular image; classifying the region of the particular image based on the set of encoded pixels within the region of the particular image, classifying the region as a watermarked region in response to the set of encoded pixels satisfying a watermark condition; and classifying the region as an unwatermarked region in response to the set of encoded pixels not satisfying the watermark condition.
4. outputting a binary 1 for every pixel in said region to mark said region as containing said visually imperceptible watermark; 4. The method of claim 3, further comprising: generating a watermark map for the image using the binary 1, the watermark map indicating areas of the watermark map that contain the visually imperceptible watermark.
5. 2. The method of claim 1, wherein the step of decoding the watermark comprises decoding the watermark using a decoder machine learning model trained for visually imperceptible watermarks in the particular image regardless of zoom level of items shown in the image.
6. 6. The method of claim 5, further comprising training the decoder machine learning model using a set of training images including a plurality of training images each showing a watermarked item at a different zoom level and with a different image distortion.
7. 6. The method of claim 5, further comprising pre-processing a set of training images to prevent model performance deficiencies caused by training the decoder machine learning model in floating point numbers using images represented by RGB unsigned integers.
8. 1. A system comprising: A data storage device; 1. A watermark detection apparatus including one or more processors, the processors configured to perform operations, the operations comprising: determining whether a particular image includes a visually imperceptible watermark using a detector machine learning model, where the watermark detection device detects the visually imperceptible watermark in at least one of the images, and the detector machine learning model has been trained to detect the visually imperceptible watermark in images across various zoom levels using a training process that generates multiple different zoomed versions of the same image of a dataset; forwarding the particular image based on a determination of whether the particular image includes the visually imperceptible watermark, transmitting the particular image to a watermark decoder in response to the watermark detector detecting the visually imperceptible watermark in the particular image; and filtering the particular image from further processing in response to the watermark detection device not detecting the visually imperceptible watermark in the particular image.
1. A watermark decoder comprising one or more processors configured to perform operations including decoding the visually imperceptible watermark detected in the particular image forwarded by the watermark decoder to the watermark decoder, the system configured to perform operations including verifying items shown in the particular image based on data extracted from the decoded visually imperceptible watermark.
9. 10. The system of claim 8, wherein determining whether the particular image includes a visually imperceptible watermark using a detector machine learning model includes determining whether the particular image includes the visually imperceptible watermark using a detector machine learning model trained to determine whether a region of an input image includes the visually imperceptible watermark based on a coarse analysis of the region that does not require a pixel-by-pixel analysis of the region.
10. The determining whether the particular image includes the visually imperceptible watermark comprises: determining, by said watermark detection device, a set of encoded pixels within said region of said particular image; classifying the region of the particular image based on the set of encoded pixels within the region of the particular image, classifying the region as a watermarked region in response to the set of encoded pixels satisfying a watermark condition; and classifying the region as an unwatermarked region in response to the set of encoded pixels not satisfying the watermark condition.
11. outputting a binary 1 for every pixel in said region to mark said region as containing said visually imperceptible watermark; 11. The system of claim 10, further comprising: generating a watermark map for the image using the binary 1, the watermark map indicating areas of the watermark map that contain the visually imperceptible watermark.
12. 10. The system of claim 8, wherein the decoding the watermark includes decoding the watermark using a decoder machine learning model trained for visually imperceptible watermarks in the particular image regardless of zoom level of an item shown in the image.
13. 13. The system of claim 12, further comprising training the decoder machine learning model using a set of training images including a plurality of training images each showing a watermarked item at a different zoom level and with a different image distortion.
14. 13. The system of claim 12, further comprising pre-processing a set of training images to prevent model performance deficiencies caused by training the decoder machine learning model in floating point numbers using images represented by RGB unsigned integers.
15. 1. A computer readable storage medium storing instructions that, when executed by one or more data processing apparatus, cause the one or more data processing apparatus to perform operations, the operations including: receiving an image by a watermark detection device; For each particular one of the images, determining, by the watermark detection device, whether the particular image includes a visually imperceptible watermark using a detector machine learning model, where the watermark detection device detects the visually imperceptible watermark in at least one of the images, and the detector machine learning model has been trained to detect the visually imperceptible watermark in images across various zoom levels using a training process that generates multiple different zoomed versions of the same image of a dataset; forwarding the particular image based on a determination of whether the particular image includes the visually imperceptible watermark, transmitting the particular image to a watermark decoder in response to the watermark detector detecting the visually imperceptible watermark in the particular image; and filtering out the particular image from further processing in response to the watermark detection device not detecting the visually imperceptible watermark in the particular image. decoding, by said watermark decoder, said visually imperceptible watermark detected in said particular image forwarded to said watermark decoder; and verifying items shown in the particular image based on data extracted from the decoded visually imperceptible watermark.
16. 16. The computer-readable storage medium of claim 15, wherein determining whether the particular image includes a visually imperceptible watermark using a detector machine learning model includes determining whether the particular image includes the visually imperceptible watermark using a detector machine learning model trained to determine whether a region of an input image includes the visually imperceptible watermark based on a coarse analysis of the region that does not require a pixel-by-pixel analysis of the region.
17. The determining whether the particular image includes the visually imperceptible watermark comprises: determining, by said watermark detection device, a set of encoded pixels within said region of said particular image; classifying the region of the particular image based on the set of encoded pixels within the region of the particular image, classifying the region as a watermarked region in response to the set of encoded pixels satisfying a watermark condition; and classifying the region as a non-watermarked region in response to the set of encoded pixels not satisfying the watermark condition.
18. outputting a binary 1 for every pixel in said region to mark said region as containing said visually imperceptible watermark; 20. The computer-readable storage medium of claim 17, further comprising: generating a watermark map for the image using the binary 1, the watermark map indicating areas of the watermark map that contain the visually imperceptible watermark.
19. 16. The computer-readable storage medium of claim 15, wherein the decoding the watermark includes decoding the watermark using a decoder machine learning model trained for visually imperceptible watermarks in the particular image regardless of zoom level of an item shown in the image.
20. 20. The computer-readable storage medium of claim 19, further comprising training the decoder machine learning model using a set of training images including a plurality of training images each showing a watermarked item at a different zoom level and with a different image distortion.
21. 20. The computer-readable storage medium of claim 19, further comprising preprocessing a set of training images to prevent model performance deficiencies caused by training the decoder machine learning model in floating point numbers using images represented by RGB unsigned integers.
22. 1. A computer-implemented method comprising: obtaining, by one or more processors, a set of training images including a visually imperceptible watermark; warping, by the one or more processors, an image of the set of training images to create a warped image, the warping including varying a zoom level of an item shown in the image to create a zoomed image; training, by the one or more processors, a zoom agnostic watermark decoder model using the distorted image to decode a visually imperceptible watermark in an input image across multiple zoom levels of the input image; and deploying the zoom agnostic watermark decoder model to decode a watermark that is visually imperceptible at a plurality of different zoom levels within an input image.
23. 23. The method of claim 22, wherein the step of distorting images of the set of training images to create distorted images comprises converting the images to a respective different image file format or modifying a resolution of the images.
24. 23. The method of claim 22, further comprising preprocessing the images of the set of training images including, for each image of the set of training images, rounding floating point numbers representing colors of pixels in the image to prevent model performance deficiencies caused by mismatches between floating point numbers representing colors of the pixels and RGB unsigned integers used to store the image.
25. The step of rounding floating point numbers representing colors of pixels in the image comprises: rounding the floating point number using normal rounding; and rounding the floating point number using truncation.
26. 23. The method of claim 22, wherein the step of varying the zoom level of items shown in the images to create zoomed images includes changing, in each zoomed image, the number of pixels used to represent a single pixel in an image of the set of training images.
27. 27. The method of claim 26, wherein training a zoom-agnostic watermark decoder model comprises training the zoom-agnostic watermark decoder model using two different zoomed images created from a same image in the set of training images, each of the two different zoomed images using a different number of pixels to represent a single pixel of the same image.
28. 23. The method of claim 22, further comprising: training, by the one or more processors, a zoom agnostic watermark decoder model using the zoomed images to detect the presence of the visually imperceptible watermark in the input image across multiple zoom levels of the input image, wherein the detection is performed independently of decoding of the visually imperceptible watermark.
29. 1. A system comprising: A data storage device; One or more processors configured to perform operations, the operations including: obtaining, by the one or more processors, a set of training images including a visually imperceptible watermark; warping, by the one or more processors, an image of the set of training images to create a distorted image, the distorting including varying a zoom level of an item shown in the image to create a zoomed image; training, by the one or more processors, a zoom agnostic watermark decoder model using the distorted image to decode a visually imperceptible watermark in an input image across multiple zoom levels of the input image; and one or more processors. deploying the zoom agnostic watermark decoder model to decode a watermark that is visually imperceptible at a plurality of different zoom levels within an input image.
30. 30. The system of claim 29, wherein distorting images of the set of training images to create distorted images comprises converting the images to a different image file format or modifying a resolution of the images.
31. 30. The system of claim 29, further comprising preprocessing the images of the set of training images including, for each image of the set of training images, rounding floating point numbers representing a color of a pixel in the image to prevent model performance deficiencies caused by mismatches between floating point numbers representing a color of the pixel and RGB unsigned integers used to store the image.
32. The rounding of floating point numbers representing colors of pixels in the image may include: rounding said floating point number using normal rounding; and rounding the floating point number using truncation.
33. 30. The system of claim 29, wherein modifying a zoom level of items shown in the images to create zoomed images includes modifying, in each zoomed image, a number of pixels used to represent a single pixel in an image in the set of training images.
34. 34. The system of claim 33, wherein training the zoom-agnostic watermark decoder model includes training the zoom-agnostic watermark decoder model using two different zoomed images created from a same image in the set of training images, each of the two different zoomed images using a different number of pixels to represent a single pixel of the same image.
35. 30. The system of claim 29, further comprising: training, by the one or more processors, a zoom-agnostic watermark decoder model using the zoomed images to detect the presence of the visually imperceptible watermark in the input image across multiple zoom levels of the input image, wherein the detection is performed independently of decoding of the visually imperceptible watermark.
36. 1. A computer readable storage medium storing instructions that, when executed by one or more data processing apparatus, cause the one or more data processing apparatus to perform operations, the operations including: obtaining, by one or more processors, a set of training images including a visually imperceptible watermark; warping, by the one or more processors, an image of the set of training images to create a distorted image, the distorting including varying a zoom level of an item shown in the image to create a zoomed image; training, by the one or more processors, a zoom agnostic watermark decoder model using the distorted image to decode a visually imperceptible watermark in an input image across multiple zoom levels of the input image; and deploying the zoom agnostic watermark decoder model to decode a watermark that is visually imperceptible at a plurality of different zoom levels within an input image.
37. 37. The computer-readable storage medium of claim 36, wherein distorting images of the set of training images to create distorted images comprises converting the images to a respective different image file format or modifying a resolution of the images.
38. 37. The computer-readable storage medium of claim 36, further comprising preprocessing the images of the set of training images including, for each image of the set of training images, rounding floating-point numbers representing colors of pixels in the image to prevent model performance deficiencies caused by mismatches between floating-point numbers representing colors of the pixels and RGB unsigned integers used to store the image.
39. The rounding of floating point numbers representing colors of pixels in the image may include: rounding said floating point number using normal rounding; and rounding the floating point number using truncation.
40. 37. The computer-readable storage medium of claim 36, wherein modifying the zoom level of items shown in the images to create zoomed images includes modifying, in each zoomed image, a number of pixels used to represent a single pixel in an image of the set of training images.
41. 41. The computer-readable storage medium of claim 40, wherein training the zoom-agnostic watermark decoder model includes training the zoom-agnostic watermark decoder model using two different zoomed images created from a same image in the set of training images, each of the two different zoomed images using a different number of pixels to represent a single pixel of the same image.
42. 37. The computer-readable storage medium of claim 36, further comprising training, by the one or more processors, a zoom-agnostic watermark decoder model using the zoomed images to detect a presence of the visually imperceptible watermark in the input image across multiple zoom levels of the input image, wherein the detection is performed independently of decoding of the visually imperceptible watermark.
Citation Information
Patent Citations
Self-adaptive invisible watermark synchronous detection method based on deep learning
CN112200710A
Feature-based watermark localization in digital capture systems
US20150030201A1
Detecting semi-transparent image watermarks
WO2021045781A1
