Cross-domain content mixing

Through multi-stage content mixing technology and saliency models, the problem of seamless integration of digital components and online resources is solved, visual consistency and user experience improvement are achieved, and the problem of limited modification in the existing technology is solved.

CN118715547APending Publication Date: 2024-09-27GOOGLE LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380014088.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-01-06
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

It is difficult for existing technologies to seamlessly mix digital components from different domains with online resources within strict time constraints, resulting in poor user experience, waste of bandwidth, and waste of computing resources. Due to security constraints, the modification of digital components is limited and cannot be effective. Adjust its visual appearance to match native content.

Method used

Multi-stage content mixing technology is adopted, using saliency models to identify salient areas of electronic documents, performing combined processing of offline and online stages, and adjusting the visual characteristics of digital components to seamlessly integrate them with native content, including modifying background colors and textures , shape and typography are designed to ensure that salient areas are not occluded, and blend scores are evaluated based on a computer vision process.

Benefits of technology

It achieves seamless visual integration of digital components and online resources, improves user experience, reduces waste of bandwidth and computing resources, ensures the visual consistency and aesthetic appearance of digital components, and completes processing within strict time constraints.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118715547A
    Figure CN118715547A
Patent Text Reader

Abstract

Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for mixing content from different domains. A method includes obtaining, from a given content provider, a set of text and a set of images designated for combination to create a digital component. A saliency model is applied to an electronic document to identify a salient region in the electronic document. A set of modifications is constructed that do not cause the salient regions in the electronic document to be overlapped. Visual characteristics of the electronic document are determined. A request for content to be integrated into the electronic document is received, the electronic document being provided by a different domain than the digital component. Visual modifications are made to the digital component based on (i) the constructed set of modifications and (ii) the determined visual characteristics of the electronic document. The modified digital component is provided.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] This specification relates to data processing and blending content from different domains into a combined visual presentation. Summary of the invention

[0002] In general, one innovative aspect of the subject matter described in this specification can be embodied in a method comprising the following actions: obtaining, by one or more processors, a set of text and a set of images designated for combination to create a digital component from a given content provider; applying, by the one or more processors, a saliency model to an electronic document, the saliency model being configured using at least one machine learning training technique to accept image data of an image as input and output the location of a salient region in the image; constructing, by the one or more processors, a set of modifications to the set of text or the set of images, the set of modifications not causing the salient region in the electronic document to be overlapped by the set of text or the set of images; determining, by one or more data processing devices, the saliency model; The method of claim 1, wherein the method comprises: receiving a request for content to be integrated into the electronic document, the electronic document being provided to the client device by a domain different from that of the digital component, by the one or more processors and after receiving the request for content, visually modifying at least one of the set of text or the set of images based on a combination of (i) the constructed set of modifications and (ii) the determined visual characteristics of the electronic document; and providing the digital component to the client device as visually modified by the one or more processors in response to receiving the request for content. Other embodiments of this aspect include corresponding systems, apparatus, and computer programs configured to perform the actions of the method, encoded on a computer storage device.

[0003] These and other embodiments can each optionally include one or more of the following features.

[0004] Constructing the set of modifications may include: modifying the typography of the set of texts according to a given set of modifications; rendering a revised digital component including at least one image from the set of images and at least some text from the set of texts having the revised typography; performing one or more computer vision processes on the rendering of the revised digital component overlaid on the electronic document to determine whether the salient areas of the images are overlapped; and classifying the given set of modifications based on whether the salient areas of the images are overlapped.

[0005] Visually modifying at least one of the set of text or the set of images based on a combination of (i) the constructed set of modifications and (ii) the determined visual characteristics of the electronic document may include modifying the set of text to match a target typesetting design of the electronic document based on the salient areas of the images not being overlapped when modified to the target typesetting design being classified as acceptable; and providing the digital component to the client device as visually modified by the one or more processors includes providing the digital component including the target typesetting design of the electronic document.

[0006] Constructing the set of modifications may include: modifying the shape of the image to a target shape; rendering the revised digital component in the modified shape of the image; performing a set of computer vision processes on the revised digital component; and classifying the revised digital component based on results of the set of computer vision processes performed on the revised digital component.

[0007] Visually modifying at least one of the set of text or the set of images based on a combination of (i) the constructed set of modifications and (ii) the determined visual characteristics of the electronic document may include modifying the shape of the image to the target shape based on the set of computer vision processes indicating that the target shape of the image results in a pre-specified change in the distance between the image and content of the electronic document.

[0008] Visually modifying at least one of the set of text or the set of images based on a combination of (i) the constructed set of modifications and (ii) the determined visual characteristics of the electronic document may include modifying the shape of the image to the target shape based on one or more characteristics of the intended audience of the digital component.

[0009] The digital component may include video content. The method may also include: determining a context of the electronic document based on the content of the electronic document; determining a location within the video content that corresponds to the context of the electronic document; and starting playback of the video content at the location other than the beginning of the video content based on the determination that the location within the video content corresponds to the context of the electronic document.

[0010] The details of one or more embodiments of the subject matter described in this specification are set forth in the accompanying drawings and the following description. Other features, aspects, and advantages of the subject matter will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1is a block diagram of an example environment in which cross-domain content blending may be performed.

[0012] Figure 2 It is a graphic representation of an electronic document.

[0013] Figure 3 is a flow diagram of an example process 300 for visually blending content from different domains.

[0014] Figure 4 is a block diagram of an example computer.

[0015] Like reference numbers and designations in the various drawings indicate like elements. DETAILED DESCRIPTION

[0016] This specification describes techniques for performing cross-domain content mixing. As used throughout this document, cross-domain content mixing refers to adapting content from one domain for presentation with content in another domain. For example, assume that an online resource (e.g., an electronic document) from one domain, such as a web page, an application, or another online resource, has been requested by a client device for presentation, and assume that the requested online resource includes a script requesting that a digital component (e.g., third-party content) from another domain be incorporated into the requested online resource to create a final presentation of the combination of the requested online resource and the digital component.

[0017] In these cases, the digital component typically has a visual appearance (e.g., look and feel) that is significantly different from the look and feel of the content of the requested online resource, because the digital component is typically static in nature and must be provided within a range of hundreds of milliseconds, which reduces the ability to modify the digital component before providing it. This difference in visual appearance may cause the presentation of the combined content (e.g., the combined content of the requested online resource and the digital component) to be aesthetically unappealing, which may negatively affect the user experience and / or cause the user to quickly navigate to another online resource, which causes bandwidth waste, battery consumption (e.g., in the case of a mobile device), and other computing resource waste. In addition, when the online resource and the digital component are provided by servers in different domains and / or controlled by different entities, the modification of the online resource or the digital component is more restricted because one entity (or domain) is typically unable to modify the content provided by other entities (or domains) due to security constraints. For example, the digital component may be presented in a walled garden portion of the online resource (e.g., a frame separated from other parts of the online resource). Therefore, the entity that provides the digital component for presentation with the online resource is generally unable to access the online resource.

[0018] The techniques discussed in this specification enable more robust real-time (e.g., at the time of content request) modification of digital components to present a visual appearance that is more consistent with and / or more seamlessly blended with the content of the requested online resource, such that the combination of content from two different domains / entities appears to the viewer as one seamless document, while still providing the digital component within tight time constraints (e.g., hundreds of milliseconds) and potentially in a frame (or other user interface environment) separate from the requested online resource. This is achieved, for example, through a combination of pre-processing and real-time processing that enables modification of the digital component based on the visual presentation of the online resource into which the digital component will be integrated.

[0019] As used throughout this document, the phrase "digital component" refers to a discrete unit of digital content or digital information (e.g., a video clip, an audio clip, a multimedia clip, an image, text, or another unit of content). A digital component may be electronically stored as a single file or a collection of files in a physical memory device, and a digital component may take the form of a video file, an audio file, a multimedia file, an image file, or a text file and include advertising information, such that an advertisement is a type of digital component.

[0020] Figure 1 1 is a block diagram of an example environment 100 in which cross-domain content mixing can be performed. The example environment 100 includes a network 102, such as a local area network (LAN), a wide area network (WAN), the Internet, or a combination thereof. The network 102 connects electronic document servers 104, user devices 106, digital component servers 108, and service devices 110. The example environment 100 may include many different electronic document servers 104, user devices 106, and digital component servers 108.

[0021] Client devices 106 are electronic devices capable of requesting and receiving online resources over network 102. Example client devices 106 include personal computers, gaming devices, mobile communication devices, digital assistant devices, augmented reality devices, virtual reality devices, and other devices that can send and receive data over network 102. Client devices 106 typically include user applications (such as a web browser) to facilitate sending and receiving data over network 102, although native applications (other than browsers) executed by client devices 106 may also facilitate sending and receiving data over network 102.

[0022] A gaming device is a device that enables a user to participate in a gaming application, for example, in which a user can control one or more characters, avatars, or other rendered content presented in a gaming application. A gaming device typically includes a computer processor, a memory device, and a controller interface (physically or visually rendered) that enables a user to control the content rendered by the gaming application. The gaming device can store and execute the gaming application locally, or execute a gaming application (e.g., an online gaming application) that is at least partially stored and / or provided by a cloud server. Similarly, the gaming device can be docked with a gaming server that executes the gaming application and "streams" the gaming application to the gaming device. The gaming device can be a tablet device, a mobile telecommunications device, a computer, or another device that performs other functions in addition to executing the gaming application.

[0023] The digital assistant device includes a device with a microphone and a speaker. The digital assistant device is generally capable of receiving input by voice, and responding to the content using audible feedback, and can present other audible information. In some cases, the digital assistant device also includes a visual display or communicates with a visual display (e.g., by wireless or wired connection). When there is a visual display, feedback or other information can also be provided visually. In some cases, the digital assistant device can also control other devices, such as lights, locks, cameras, climate control devices, alarm systems, and other devices registered with the digital assistant device.

[0024] As shown, client device 106 is presenting electronic document 150. An electronic document is data that presents a set of content at client device 106. Examples of electronic documents include web pages, word processing documents, portable document format (PDF) documents, images, videos, search result pages, and feeds. Native applications (e.g., "apps" and / or game applications) (such as applications installed on mobile, tablet, or desktop computing devices) are also examples of electronic documents. Electronic documents can be provided to client devices 106 by electronic document servers 104 ("Electronic Doc Servers").

[0025] For example, electronic document server 104 may include a server hosting a publisher website. In this example, client device 106 may initiate a request for a given publisher web page, and electronic server 104 hosting the given publisher web page may respond to the request by sending a machine executable instruction that initiates presentation of the given web page at client device 106.

[0026] In another example, the electronic document server 104 may include an application server from which the client device 106 may download the application. In this example, the client device 106 may download the files required to install the application at the client device 106 and then execute the downloaded application locally. Alternatively or additionally, the client device 106 may initiate a request to execute the application, which is transmitted to the cloud server. In response to receiving the request, the cloud server may execute the application and stream the user interface of the application to the client device 106, so that the client device 106 itself does not have to execute the application. Instead, the client device 106 may present the user interface generated by the cloud server executing the application, and transmit any user interaction with the user interface back to the cloud server for processing.

[0027] An electronic document may include a variety of content. For example, an electronic document 150 may include native content 152 that is located within the electronic document 150 itself and / or does not change over time. An electronic document may also include dynamic content that may change over time or on a per-request basis. For example, a publisher of a given electronic document (e.g., electronic document 150) may maintain data sources for populating various portions of the electronic document. In this example, a given electronic document may include a script, such as script 154, that causes a client device 106 to request content (e.g., a digital component) from a data source when the given electronic document is processed (e.g., rendered or executed) by a client device 106 (or a cloud server). The client device 106 (or cloud server) integrates the content (e.g., a digital component) obtained from the data source into a given electronic document to create a composite electronic document that includes the content obtained from the data source.

[0028] In some cases, a given electronic document (e.g., electronic document 150) may include a digital component script (e.g., script 154) that references a service device 110 or a particular service provided by the service device 110. In these cases, the digital component script is executed by the client device 106 when the given electronic document is processed by the client device 106. The execution of the digital component script configures the client device 106 to generate a request for a digital component 112 (referred to as a "component request"), which is transmitted to the service device 110 via the network 102. For example, the digital component script may enable the client device 106 to generate a packetized data request including header and payload data. The component request 112 may include event data specifying characteristics, such as the name (or network location) of the server for which the digital component is being requested, the name (or network location) of the requesting device (e.g., client device 106), and / or information that the service device 110 may use to select one or more digital components or other content to be provided in response to the request. The component request 112 is transmitted by the client device 106 to a server of the service device 110 via the network 102 (e.g., a telecommunications network).

[0029] The component request 112 may include event data specifying other event characteristics, such as characteristics of the electronic document being requested and the location of the electronic document at which the digital component may be presented. For example, event data specifying a reference (e.g., a URL) to an electronic document (e.g., a web page) in which the digital component is to be presented, an available location of the electronic document that can be used to present the digital component, the size of the available location, and / or a media type that is eligible for presentation at the location may be provided to the service device 110. Similarly, event data specifying keywords associated with the electronic document ("document keywords") or entities referenced by the electronic document (e.g., people, places, or things) may also be included in the component request 112 (e.g., as payload data) and provided to the service device 110 to facilitate identifying digital components that are eligible for presentation with the electronic document. The event data may also include a search query submitted from the client device 106 to obtain a search results page.

[0030] The component request 112 may also include event data related to other information, such as information that has been provided by a user of the client device, geographic information indicating the state or region in which the component request was submitted, or other information providing the context of the environment in which the digital component will be displayed (e.g., the time of day of the component request, the day of the week of the component request, the type of device (such as a mobile device or a tablet device) that will display the digital component. The component request 112 may be transmitted, for example, over a packetized network, and the component request 112 itself may be formatted as packetized data having a header and payload data. The header may specify a destination for the packet, and the payload data may include any of the information discussed above.

[0031] Service device 110 selects digital components (e.g., third-party content such as video files, audio files, images, text, and combinations thereof, all of which may take the form of advertising content or non-advertising content) to be presented with a given electronic document (e.g., at a location specified by script 154) in response to receiving component request 112 and / or using information included in component request 112.

[0032] In some implementations, the digital component is selected in less than one second to avoid errors that may result from delayed selection of the digital component. For example, a delay in providing the digital component in response to the component request 112 may cause page loading errors at the client device 106 or cause portions of the electronic document to remain unpopulated even after other portions of the electronic document are presented at the client device 106.

[0033] Moreover, as the delay in providing the digital component to the client device 106 increases, it becomes more likely that the electronic document will no longer be present at the client device 106 when the digital component is delivered to the client device 106, thereby negatively affecting the user's experience of the electronic document. Additionally, the delay in providing the digital component may cause the delivery of the digital component to fail, for example, if the electronic document is no longer present at the client device 106 when the digital component is provided.

[0034] In some implementations, the service device 110 is implemented in a distributed computing system that includes, for example, a server and a set of multiple computing devices 114 that are interconnected and identify and distribute digital components in response to the request 112. The set of multiple computing devices 114 operate together to select from millions of available digital components (DC 1-x ) that are eligible for presentation in an electronic document. Millions of available digital components may be indexed, for example, in the digital component database 116. Each digital component index entry may reference a corresponding digital component and / or include distribution parameters (DP1 to DP2) that facilitate (e.g., trigger, constrain, or limit) the distribution / transmission of the corresponding digital component. x For example, the distribution parameters may facilitate (e.g., trigger) the transmission of the digital component by requiring the component request to include at least one criterion that matches (e.g., completely or with some pre-specified level of similarity) one of the distribution parameters of the digital component.

[0035] In some implementations, the distribution parameters for a particular digital component may include a distribution keyword that must be matched (e.g., to an electronic document, a document keyword, or a term specified in a component request 112) in order for the digital component to be eligible for presentation. Additionally or alternatively, the distribution parameters may include embeddings that may use a variety of different data dimensions, such as website details and / or consumption details (e.g., page viewports, user scrolling speed, or other information about data consumption). The distribution parameters may also require that the component request 112 include information specifying a particular geographic region (e.g., a country or state) and / or information specifying that the component request 112 originated from a particular type of client device (e.g., a mobile device or a tablet device) in order for the digital component to be eligible for presentation. The distribution parameters may also specify an eligibility value (e.g., a ranking score, or some other specified value) that is used to evaluate the eligibility of the digital component for distribution / transmission (e.g., with other available digital components).

[0036] The identification of eligible digital components may be split into a plurality of tasks 117a to 117c, which are then assigned among computing devices within a group of a plurality of computing devices 114. For example, different computing devices in the group 114 may each analyze different portions of the digital component database 116 to identify various digital components having distribution parameters that match the information included in the component request 112. In some implementations, each given computing device in the group 114 may analyze different data dimensions (or groups of dimensions) and communicate (e.g., transmit) the results of the analysis (Res 1 to Res 3) 118a to 118c back to the service device 110. For example, the results 118a to 118c provided by each of the computing devices in the group 114 may identify a subgroup of digital components that are eligible for distribution in response to the component request and / or a subgroup of digital components having certain distribution parameters. The identification of the subgroup of digital components may include, for example, comparing the event data to the distribution parameters, and identifying the subgroup of digital components having distribution parameters that match at least some features of the event data.

[0037] The service device 110 aggregates the results 118a-118c received from a set of multiple computing devices 114 and uses information associated with the aggregated results to select one or more digital components to be provided in response to the request 112. For example, the service device 110 can select a set of winning digital components (one or more digital components) based on the results of one or more content evaluation processes, as described below. In turn, the service device 110 can generate and transmit reply data 120 (e.g., digital data representing the reply) over the network 102, which enables the client device 106 to integrate the set of winning digital components into a given electronic document, so that the set of winning digital components (e.g., winning third-party content) and the content of the electronic document are presented together at the display of the client device 106.

[0038] In some implementations, the client device 106 executes instructions included in the reply data 120 that configure the client device 106 and enable it to obtain a set of winning digital components from one or more digital component servers 108. For example, the instructions in the reply data 120 may include a network location (e.g., a uniform resource locator (URL)) and a script that causes the client device 106 to transmit a server request (SR) 121 to the digital component server 108 to obtain a given winning digital component from the digital component server 108. In response to the request, the digital component server 108 will identify the given winning digital component specified in the server request 121 (e.g., within a database storing a plurality of digital components) and transmit digital component data (DC data) 122 to the client device 106 that presents the given winning digital component in an electronic document at the client device 106.

[0039] When the client device 106 receives the digital component data 122, the client device will render the digital component (e.g., third-party content) and present the digital component at a location specified by or assigned to the script 154. For example, the script 154 may create a walled garden environment (such as a frame) that is presented within, e.g., next to, the native content 152 of the electronic document 150. In some implementations, the digital component is overlaid on (or adjacent to) a portion of the native content 152 of the electronic document 150, and the service device 110 may specify the presentation location within the electronic document 150 in the reply 120. For example, when the native content 152 includes video content, the service device 110 may specify a location or object within a scene depicted in the video content above which the digital component is to be presented.

[0040] As discussed above, the entity that creates and / or provides the digital component is typically restricted from accessing or modifying the native content 152 or other information about the electronic document 150 in at least some manner to prevent fraudulent or malicious activity by entities other than the publisher of the electronic document 150. In addition, because the digital component is provided by an entity other than the publisher of the electronic document 150, the visual appearance of the digital component is typically not formatted or visually adjusted to blend with the native content 152 of the electronic document 150. Therefore, presenting the native content 152 and the digital component together within the electronic document 150 may result in an unattractive, inconsistent, and / or incoherent visual appearance. In other words, presenting the digital component together with the native content may distract or be disruptive to the user, resulting in a less effective presentation of the content. This is particularly true in the case where the native content 152 is video content, because covering the video content with a digital component that looks very different from the object on which the digital component is presented is very distracting to the user watching the video.

[0041] One way to improve the aesthetic appearance of the joint presentation of native content 152 and digital components (e.g., third-party content) within an electronic document 150 is to modify the visual appearance of the digital components based on the visual characteristics of the native content 152 to provide a more blended appearance. However, this may be technically challenging when the digital components originate from a different domain than the electronic document 150 (e.g., a different secondary domain or domain server). For example, given the possibility of restricted access discussed above, and the time constraints at which the digital components must be provided and / or rendered for presentation within the electronic document 150, it may be difficult to determine how the digital components should be modified to create a consistent (e.g., blended) visual appearance with the native content 152. Furthermore, the visual appearance of the electronic document 150 may be more complex than a simple background color or a well-known stock background pattern, and the native content 152 of the electronic document 152 may change over time, making it impossible to fully describe the visual appearance of the electronic document prior to the time the request 112 for the digital components is submitted by the client device 106. Furthermore, when the electronic document includes video content over which the digital component is to be presented, the placement of the digital component as well as its visual characteristics may obscure or otherwise distract from the video content.

[0042] As described in more detail below, the service device 110 is configured to perform a multi-stage content mixing technique that enables the visual appearance of the digital component to be modified in a manner that mixes the visual appearance of the digital component with the visual appearance of native content to be presented with the digital component. The multi-stage content mixing technique includes a first stage that is performed "offline" (e.g., before receiving the request 112 submitted by the client device 106 and / or received by the service device 110), which is referred to as the offline stage. The multi-stage content mixing technique also includes a second stage that is performed online (e.g., between receiving the request 112 and transmitting the reply 120), which is referred to as the online stage. Because the digital component is typically provided from a different domain than the electronic document (e.g., a secondary domain or a domain server), the multi-stage content mixing technique is also called a cross-domain mixing technique.

[0043] Figure 2 is an illustration of an electronic document 200 for which cross-domain content mixing techniques may be used to mix the visual appearance of a digital component with native content of the electronic document 200. In this example, the native content of the electronic document 200 is video content, and in a frame of the rendered video content, the native content depicts a person 202, a tree 204, a stop sign 206, a car 208, and another tree 210. Note that the electronic document 200 may be an image or text content instead of a video.

[0044] The offline phase of the cross-domain blending technique creates a set of multiple different digital component modifications that can be used to apply to the digital component during the online phase. For example, during the offline phase, the service device 110 can use the saliency model 212 to identify different locations within the electronic document 200 where the presentation of the digital component should not occur and / or other locations where the presentation of the digital component may (e.g., be allowed) occur. The locations where the digital component should not occur can be referred to as exclusion zones, while the locations where the digital component is allowed can be referred to as target zones.

[0045] The saliency model 212 may be implemented as a machine learning model trained to identify salient regions in an image (or video). For example, the training process may use a set of labeled training images to identify salient regions within an image. Based on the set of training images and labels, the saliency model may be trained to predict image regions that are salient (e.g., important to the viewing experience) and therefore not good candidate locations for presenting digital components (because covering the salient locations of the image (or video) will disrupt the user's viewing experience). Some image features that are typically associated with salient regions of an image (or video) include regions of the image (or video) that include at least a specified occurrence of an edge, a face, or another object that is considered important to the viewing experience.

[0046] The saliency model 212 will analyze the electronic document 200 and output a set of saliency data 214. The set of saliency data 214 may define areas of the electronic document that should be excluded from presenting digital components. For example, assume that the saliency model 212 identifies the person 202, and more specifically, identifies the area of ​​the electronic document 200 occupied by the face of the person 202. In this example, the saliency model 212 may identify the area around the person's face as an exclusion zone where digital components cannot be presented, as visually represented by the dashed ellipse 216. Similarly, the saliency model may identify locations around the leaves of the tree as exclusion zones based on the higher level of detail (e.g., a large number of edges) present at these areas of the electronic document. A set of exclusion zones identified by the saliency model 212 and / or the service device may be specified in the saliency data 214 and stored in a saliency database that stores saliency information about a plurality of different electronic documents.

[0047] In some implementations, a set of saliency data 214 may also include a target area, which is a target location within the electronic document 200 where a digital component can be presented. The target area may be defined, for example, to include those areas of the electronic document that have a saliency level less than a specified level as determined by the saliency model 212. In some cases, the target area may be all areas of the electronic document outside of the exclusion areas discussed above. In other cases, the target area may be identified independently of any exclusion areas. For example, the target area may be identified based on a low saliency level of the target area without additionally identifying an exclusion area. In some implementations, the target area is required not to obstruct portions of the electronic document 200 that have been identified as salient areas / exclusion areas.

[0048] Regardless of the manner in which the target region is identified, a set of saliency data 214 may include information specifying a target region of the electronic document 200 and / or information from which the target region may be derived (e.g., an exclusion zone). For purposes of example, assume that a dashed rectangle 220 on the roof of the car 208 has been identified as a target region for presenting a digital component. In this example, the location and / or area occupied by the rectangle 220 may be stored in the saliency database 218 as a target region for the electronic document. Continuing with this example, assume that the area enclosed by the dashed rectangle 222 is also identified as a target region. Information about the target region of the electronic document may be used in combination with other information to implement a modification of the digital component that causes the digital component to be visually blended into the electronic document when it is presented with the electronic document 200.

[0049] For each target zone (e.g., 218 and 222) or other available area, the service device 110 can generate multiple different sets of modifications that can be applied to the digital component based on the visual characteristics of the native content presented around the location. Each set of modifications may include one or more of modifications to the background color, texture, edge sharpness, text font, text size, text color, or shape of the digital component. The multiple different sets of modifications for each target zone may include different combinations of modifications, so that the digital component can have a different visual appearance, depending on the set of modifications applied to the digital component when the digital component is selected to be presented with the electronic document. This enables the digital component to be modified not only to blend visually into the electronic document, but also to personalize the visual appearance of the digital component based on the audience to which the digital component is being presented.

[0050] In some implementations, each set of modifications is required not to cause the digital component to obscure any salient area (or a specified subset of the salient area) of the electronic document. For example, a constraint may specify that the size of the text cannot increase to a size that would overlap the face of person 202 (e.g., within dashed oval 216).

[0051] To ensure that a given set of modifications will not cause a salient area of ​​the electronic document 200 to be obscured by the digital component (as modified), the service device 110 may perform a visual analysis of the presentation of the digital component as modified by the given set of modifications to determine whether there is overlap between the modified digital component and any of the salient areas of the electronic document. For example, the service device 110 may identify salient areas in the electronic document 200 before inserting the digital component (as modified), and then determine whether any of those salient areas are overlapped or otherwise obscured by the insertion of the digital component. When the service device 110 determines that a given set of modifications will cause the digital component to overlap or otherwise obscured a salient area of ​​the electronic document, the given set of modifications may be excluded from a set of approved modifications available for application to the digital component.

[0052] The service device 110 may also examine the content of the electronic document to determine the visual characteristics of the electronic document 200 to assist in blending the visual characteristics of the digital component with the visual characteristics of the electronic document 200. For example, the service device 110 may use computer vision techniques to determine the color attributes, texture attributes, pattern attributes, and other visual characteristics of the electronic document 200. In some implementations, the determination of the visual characteristics may be limited to portions of the electronic document 200 that have not been identified as significant areas or exclusion zones (because the digital component will not overlap these areas). Limiting the portion of the electronic document to be examined will reduce the amount of processing resources required to perform the blending, which results in a significant reduction in processing resources when millions of electronic documents need to be examined. In the case where the electronic document is examined periodically (e.g., hourly, daily, or weekly) to ensure that the visual characteristics information is up to date when the digital component is requested, the reduction in processing resources is even greater. For example, the electronic document may change over time (e.g., seasonally) to visually present different themes (e.g., holiday themes, seasonal themes, or themes consistent with the text or other content presented at the time). Therefore, periodically examining the electronic document will increase the likelihood that modifications made to the digital component are actually blended with the content of the electronic document.

[0053] In some implementations, a set of service devices 110 may select various combinations of colors, patterns, textures, fonts, etc. for the digital component and evaluate how well those combinations blend with the electronic document. For example, service device 110 may create a blending score (e.g., 0 to 10 or 0 to 100) that represents how well the modification blends the digital component with the electronic document, where a higher blending score represents a higher quality blend.

[0054] As part of the evaluation process, the service device 110 may overlay the modified digital component at a location of the electronic document 200 where a salient object is not depicted, and calculate a level of visual contrast between pixels of the overlaid portion of the digital component and pixels of the electronic document adjacent to the pixels of the digital component. For text content, the service device 110 may require at least a minimum level of contrast to ensure that the text is legible to a viewer (e.g., distinguishable from the content of the electronic document). For image content, the service device 110 may require a contrast level less than a specified level to ensure that the image blends well with the surrounding content of the electronic document. In some implementations, the blending score may increase for higher levels of contrast between text content and surrounding content and / or lower levels of contrast between image content and surrounding content.

[0055] Once the digital component is overlaid on the electronic document, the service device 110 may iteratively modify the text size, font, color, texture, etc., and evaluate the degree to which the different modifications blend with the electronic document 200. In addition, the service device 110 may modify the size and shape of the digital component to determine which sizes and shapes can be used without overlapping or otherwise obscuring a salient area of ​​the electronic document 200. When the service device 110 determines a combination of modifications that is considered to blend well with the electronic document 200 and does not overlap or otherwise obscure a salient area of ​​the electronic document 200, the service device 110 may store the combination of modifications as one of a plurality of groups of approved modifications for the digital component when the digital component is selected for presentation on the electronic document. As discussed in more detail below, the service device 110 may select which of the plurality of groups of modifications to use at the time of request based at least in part on various context signals received at the time.

[0056] In some implementations, the plurality of approved groups of modifications for a digital component-electronic document pair may include only those groups of modifications that have at least a specified blend score indicating an aesthetic blend level between the electronic document 200 and the digital component as modified. In some implementations, the service device 110 may store the top N groups of modifications for each digital component-electronic document pair. For example, the service device 110 may identify the N groups of modifications with the highest blend scores or another aesthetic blend metric and store these groups of modifications as the plurality of approved groups of modifications for the digital component-electronic document pair.

[0057] Once the multiple sets of approved modifications for the digital component-electronic document pair are identified, the multiple sets of approved modifications may be used as a template for modifying the digital component in response to a request for the digital component to be presented on the electronic document. For example, when the service device 110 receives a request for the digital component from a client device presenting the electronic document 200, the request may include a document identifier (e.g., a URL, a file name, or another identifier) ​​identifying the electronic document 200. In this example, the service device 110 may use the document identifier to search the prominence database 218, which may store the multiple sets of approved modifications for the digital component presented with the electronic document 200. Specifically, the multiple sets of approved modifications may be indexed to the document identifier, such that a search using the document identifier may reveal the multiple sets of approved modifications for the digital component presented with the electronic document 200. Once identified, the service device 110 may apply one of the multiple sets of approved modifications to the digital component to be provided in response to the request for the digital component.

[0058] In some cases, the service device 110 may identify the digital component to be provided in response to the request before searching the prominence database 218. In these cases, the search may use a combination of the document identifier and the digital component identifier to identify multiple sets of approved modifications that are indexed to both the document identifier and the digital component identifier. In this way, the search may be performed on a smaller subset of the prominence database 218. In other cases, the service device 110 may perform the search and digital component selection in parallel, so that multiple sets of approved modifications are identified while the digital component is being selected. This may reduce the latency associated with modifying the digital component upon request (e.g., by searching multiple sets of approved modifications without waiting until the selection of the digital component is complete).

[0059] In some implementations, the search for multiple sets of approved modifications may also use contextual information received in the request for the digital component (or otherwise available to the service device 110). For example, the request may include information specifying the type of device that is rendering the electronic document 200, the country from which the request was received, or information corresponding to the interests and / or preferences of the user to whom the digital component is to be rendered. Using this information, the service device 110 may personalize the visual appearance of the digital component on a per-request / per-rendering basis, while also ensuring that the personalization maintains an adequate level of visual blending with the content of the electronic document.

[0060] More specifically, service device 110 may select a set of approved modifications from among multiple sets of approved modifications that are determined to be preferred by the user based on context information obtained by service device 110 when the request is received. For example, each set of approved modifications may have metadata that specifies the context in which the set of modifications is eligible for presentation. In this example, service device 110 may use the context information obtained at the time of the request and attempt to match the context information with the metadata of one of the multiple sets of approved modifications. In some implementations, the set of approved modifications that has the highest level of match with the context information obtained by service device 110 will be used to modify / format the digital component to be presented with electronic document 200.

[0061] In some implementations, the context information obtained by the service device 110 may also include one or more characteristics that indicate the current state of the electronic document. For example, the context information obtained by the service device 110 may include information about the most recent evaluation of the electronic document to determine certain visual characteristics of the current version of the electronic document. In this way, the service device 110 can ensure that the selected set of modifications will result in the expected blending effect given the current state of the electronic document. In some implementations, the visual characteristics of the current version of the electronic document can be used to make additional or different modifications than the selected set of modifications without having to determine and / or change all modifications. This can provide further flexibility for modification of digital components to achieve better blending between digital components and the electronic document 200, while still obtaining the benefits of pre-computation (e.g., lower latency).

[0062] Once the service device 110 selects a set of modifications, the service device 110 visually modifies the digital component. In some implementations, the service device 110 visually modifies the digital component by applying formatting to the digital component according to the selected set of modifications. In some implementations, the service device 110 visually modifies the digital component by sending formatting instructions consistent with the selected set of modifications to the client device that is presenting the electronic document. In either case, the visual modification of the digital component will include one or more of the modifications to the text content or image content of the digital component. For example, the visual modification may include changing the font type, font size, or font color of the text content. The visual modification may also include changing the color, texture, shape, or other visual characteristics of the image content of the digital component.

[0063] The service device 110 provides the modified digital component to the client device that submitted the request for the digital component. In some implementations, the modified digital component has a set of modifications applied to it before being provided. In some implementations, the service device 110 sends formatting instructions together with the digital component. For example, the service device 110 may select the digital component to be provided in response to the request, and transmit the digital component together with instructions that, when executed by the client device, cause formatting to be applied to the digital component as specified by the selected set of modifications. For the purposes of this document, this is still considered to provide the modified digital component because the combination of information provided in response to the request causes the digital component to be presented as modified by the selected set of modifications. Similarly, when the service device 110 sends a network location from which the digital component can be retrieved and instructions specifying how to modify / present the digital component to the client device, this is considered to provide a digital component that has been visually modified as per the selected set of modifications.

[0064] In some implementations, the digital component may be a video digital component including a moving image (e.g., a series of image frames). In these implementations, the video digital component may be modified with the aid of the playback starting point of the video digital component. For example, when the digital component is a video, the context of the electronic document (e.g., native content) may be determined, and the context may be used to determine the point in the video where playback will begin. More specifically, the context of the electronic document may be used to determine a position within the video digital component that corresponds to (e.g., matches) the context of the electronic document. For illustration, assume that the electronic document is presenting a racing scene. In this example, the content of the video digital component may be evaluated to determine the position that is most relevant to the racing scene (e.g., depicting a moving car) within the playback duration of the video digital component, and the position of the video may be designated as the starting point of playback of the video digital component. Further, a video digital component may be provided, and based on the determined correlation of the position of the video digital component with the context of the electronic document, playback of the video digital component may begin at a specified position, rather than from the beginning of the video digital component.

[0065] Figure 3 is a flow chart of an example process 300 for visually mixing content from different domains. The operations of process 300 may be performed, for example, by Figure 1 The process 300 may be performed by the service device 110 or another data processing device. The operation of process 300 may also be implemented as instructions stored on a computer-readable medium, which may be non-transitory. The execution of the instructions by one or more data processing devices causes the one or more data processing devices to perform the operation of process 300.

[0066] A set of text and a set of images are obtained (302). In some implementations, the set of text and the set of images are provided by a given content provider. For example, the set of text and the set of images may be provided by a given content provider (or another entity) that is requesting one or more combinations of text and images to be combined to create a digital component and distributed for presentation with content (e.g., an electronic document) provided by another entity (e.g., a video, a web page, an application, or a publisher of another electronic document). For example, the set of text and the set of images may be uploaded by a given content provider to a Figure 1 The set of text and the set of images are uploaded separately so that different parts of the text can be combined with different parts of the images to create multiple different digital components. The source of the set of text and the set of images can be a given secondary domain or domain server.

[0067] A saliency model is applied to the electronic document (304). In some implementations, the saliency model is configured using at least one machine learning training technique to accept image data as input and output locations of salient regions in the image. For example, as discussed above, the saliency model may be trained using images labeled with salient objects or regions and / or non-salient objects or regions, which enables the saliency model to generate labels for different portions of the input image. That is, when unlabeled image data is input to the saliency model, the saliency model may output labels and locations of the image corresponding to those labels. The labels may be "salient" or "non-salient" and provide locations within the image that are designated as salient or non-salient. In some cases, the saliency model may output saliency scores for different portions of the image rather than assigning labels to different portions of the image. In these cases, the saliency scores may be used to rank the saliency of different portions of the input image. Note that the term image used in this context may include video content or still images. In some implementations, the saliency model may be or include one or more of an object detector, a person / face detector, or another model capable of identifying salient objects.

[0068] Applying the saliency model to the electronic document may include, for example, inputting the electronic document to the saliency model and using the saliency model to generate an output. Figure 2 Applying the saliency model to the electronic document may be performed by inputting the depicted scene into the saliency model and generating saliency data 214 .

[0069] In the context of video content, applying the saliency model to the video content may include generating saliency data 214 for a plurality of different frames of the video content. In those cases, the saliency model may output saliency data for each frame, and the saliency of different regions of the frame may be evaluated over time. For example, for a 10 second clip of a video, each frame of the video may be input into the saliency model to obtain a set of corresponding saliency data. In order to determine the salient regions of the video for the 10 second clip, the saliency data for each frame may be aggregated, and only those regions that are not considered salient for any of the frames (or less than a threshold portion of the frames) will be considered non-salient for the 10 second clip. In other words, for a given position within the 10 second clip, if the given position is considered salient in any of the frames (or a threshold portion of the frames), then for the 10 second clip, the position may be marked as salient. Alternatively or additionally, a time window may be located in a non-salient region, and text or other content may be added to the non-salient region during the time window.

[0070] A set of modifications to a set of text and a set of images is constructed (306). In some implementations, the constructed set of modifications does not cause a significant area of ​​the electronic document to be overlapped by the set of text and / or the set of images. Figure 2 As discussed, modification of text may include modifying the typographical design of a set of text, such as modification of the font type, font size, font color, font spacing, or other visual aspects of the text, and modification of images may include changes to the color, texture, fill content, or other visual aspects of the image.

[0071] Multiple sets of approved modifications are identified (308). In some implementations, the process of approving a given set of modifications / combinations can be initiated by rendering the modified / revised digital component over a target location in the electronic document. The modified digital component can be constructed using a set of images and a set of text with a modified typographic design and / or modified visual aspects of a set of images as defined by the given set of modifications, and presented at a location of the electronic document that has been deemed non-salient or at least not yet deemed salient.

[0072] Once the modified digital component is overlaid on the electronic document, one or more computer vision processes are performed on the presentation of the modified digital component overlaid on the electronic document to determine whether any portion of the modified digital component overlaps a salient area of ​​the electronic document. A given set of modifications is then classified based on whether the salient areas of the image are overlapped. When it is determined (e.g., by a service device) that one or more salient areas (or a threshold amount of salient areas) are overlapped by the modified digital component, a given set of modifications is classified as unapproved. When it is determined (e.g., by a service device) that no salient areas (or less than a threshold amount of salient areas) are overlapped by the modified digital component, a given set of modifications is classified as approved. As discussed above, multiple sets of approved modifications may be stored in a database and indexed to the electronic document, the digital component, or both, such that multiple sets of approved modifications may be identified by searching the database.

[0073] In some implementations, the digital component may be initially overlaid on the electronic document with a set of visual characteristics, and then iteratively changed to iteratively evaluate different sets of modifications / modification combinations. For example, once the digital component is overlaid on the electronic document, the typographic design of the text may be iteratively changed, and the set of visual characteristics of the digital component at this time may be considered a set of modifications that may be evaluated as discussed above.

[0074] Modification of the digital component may include modifying the shape of the image to a target shape. For example, the shape of the digital component may be adjusted to be different from the original shape of the digital component (e.g., the image being used in the digital component) and / or the shape of the target area in the electronic document. For example, assume that the digital component is formed using a rectangular image and / or assume that the target area available for presentation in the electronic document is rectangular. In any of these cases, the digital component may be modified to have a modified shape while still providing a blended appearance with the native content of the electronic document.

[0075] For example, the size of the target area in which the digital component is to be rendered may be determined, and a shape template (such as a star template) may be applied to the digital component to create a customized digital component having a star shape instead of its original rectangular shape. For the purposes of this example, assuming that the shape of the target area of ​​the electronic document is also rectangular, the size of the target area may be determined, and the size of the star-shaped digital component may be set to fit within the rectangular target area.

[0076] Setting the size of the star-shaped digital component to be suitable for the rectangular target area will cause less than all of the rectangular target area to be occupied by the star-shaped digital component. In these cases, the mixing of the digital component with the native content of the electronic document may include selecting filler content to occupy the area of ​​the target area not occupied by the star-shaped digital component based on the visual characteristics of the native content of the electronic document adjacent to the target area. For example, based on the result of the computer vision process performed on the presentation of the star-shaped digital component above the electronic document, filler content that provides a smooth transition or mixing of the star-shaped digital component and the native content of the electronic document may be selected. For example, the filler content may be selected to provide a gradual color transition (e.g., fading) from the color of the star-shaped digital component and the different colors of the native content near the presentation position of the star-shaped digital component. Additionally or alternatively, a deep learning model (such as a diffusion model) may be used to fill the gap. Similarly, filler content may be selected to provide a gradual transition between different patterns or textures. In some implementations, filler content may be inserted into the area of ​​the target area not occupied by the digital component. This example relates to a star-shaped digital component, but similar techniques may be applied to digital components of any shape or size. For example, if the size of the rectangular digital component is smaller than the size of the target area in the electronic document, filler content may be inserted to occupy the remaining portion of the target area not occupied by the digital component.

[0077] Determine visual characteristics of the electronic document (310). In some implementations, the visual characteristics of the electronic document may be determined by performing one or more computer vision operations on the electronic document. For example, the computer vision operations may include object recognition to identify objects depicted by the electronic document, color analysis, texture analysis, pattern detection, or other types of computer vision operations that provide information about the visual presentation of the electronic document. In some implementations, the visual characteristics of the electronic document may include crawling the electronic document to identify the structure of the electronic document and / or characteristics specified in the structure. For example, the html structure of a web page may be examined to determine color information in different portions of the web page, textures or patterns occupying different portions of the web page, fonts used, and other formatting settings of the web page.

[0078] As discussed above, the visual characteristics of an electronic document may be periodically determined and stored so that when a request is received, the current state of the electronic document is known. Periodically determining the visual characteristics of an electronic document may be important because electronic documents often change appearance over time, so that a set of approved modifications that should be used to format a digital component may also change over time.

[0079] A request for content to be integrated into the electronic document is received from a client device (312). In some implementations, the request is received based on the client device executing a script that generates the request. For example, in a web page or application, an embedded script can be executed when the web page is rendered or when the application reaches a specified state. In the context of a video electronic document, the request can be generated when playback of the video reaches a specified point.

[0080] The request may include information identifying the electronic document and possibly context information. The information identifying the electronic document and the context information may help facilitate selection of a set of modifications to be applied to the digital component, as described above with reference to Figure 2 As discussed above. The context information may also provide information that can be used to select additional modifications that may not be defined in any of the multiple sets of approved modifications. For example, assume that a request includes context information indicating that the request originated from a client device in Virginia. In this example, the context information can be used to identify content (e.g., text or images) related to events occurring in Virginia at the time of the request, even if the content is not specified in any of the multiple sets of approved modifications. This provides for more customization of the digital component based on real-time data relative to relying solely on the offline process discussed above.

[0081] The digital component is visually modified (314). In some implementations, the digital component is visually modified based on a combination of the constructed set of modifications and the determined visual characteristics of the electronic document. For example, using the determined visual characteristics of the electronic document (e.g., the current state of the electronic document), a set of modifications can be selected to be used to visually modify the digital component. In a specific example, color information (or other visual characteristics) of the native content of the electronic document can be used to filter out multiple sets of approved modifications that are eligible to be applied to the digital component.

[0082] Similarly, topics related to the native content of the electronic document may be used to filter out groups of approved modifications that are eligible for application to the digital component. For example, if the electronic document is currently presenting a sad topic, groups of modifications that use bright colors may be disqualified so that the groups of modifications available for selection will be those that use darker colors. In contrast, if the electronic document is currently presenting a funny topic, groups of modifications that use bright colors may be eligible for use in modifying the digital component.

[0083] Once a given set of modifications is selected (e.g., based on information included in the request), the given set of modifications is applied to the digital component to create a visually modified digital component. As discussed above, application of the given set of modifications may be performed by an apparatus that selects the given set of modifications or by a client device. In either case, creating a set of data that results in a modified presentation of the digital component at the client device is considered a visual modification of the digital component.

[0084] In some cases, visually modifying at least one of a set of text or a set of images based on a combination of (i) the constructed set of modifications and (ii) the determined visual characteristics of the electronic document may include modifying the set of text to match a target typesetting design of the electronic document based on the target typesetting design being classified as acceptable. For example, the target typesetting design may indeed be acceptable because significant areas of an image in the electronic document are not overlapped when the digital component is modified to use the target typesetting design.

[0085] Visually modifying at least one of a set of text or a set of images based on a combination of (i) the constructed set of modifications and (ii) the determined visual characteristics of the electronic document may also include modifying the shape of the image of the digital component to a target shape based on a set of computer vision processes indicating that the target shape of the image results in a pre-specified change in the distance between the image and native content of the electronic document. For example, in some cases, content restrictions may be associated with the electronic document, and the content restrictions may specify that there must be at least a specified number of pixels (or distance) between an edge of the digital component overlaid on the electronic document and certain areas of native content in the electronic document. In this example, the shape of the digital component may be adjusted so that all edges of the digital component comply with the content restrictions.

[0086] Visually modifying at least one of a set of text or a set of images based on a combination of (i) the constructed set of modifications and (ii) the determined visual characteristics of the electronic document may include modifying the shape of the image to a target shape based on one or more characteristics of the intended audience of the digital component. For example, when the digital component is to be presented to an audience watching a video suitable for young children (e.g., with a TV rating acceptable to all audiences), the digital component may be modified to appear in the shape of a star or a balloon. At the same time, when the digital component is to be presented to an audience watching a video intended for an adult audience (e.g., with a TV rating of TVMA), the digital component may be modified to have a more traditional shape, such as a square or a rectangle.

[0087] As discussed above, a request may include context information, which may also be used to select a set of modifications to a set of text and / or a set of images for modifying a digital component. For example, assume that a request for content is submitted by a client device that is determined to be in Virginia. In this example, the digital component may be modified to incorporate content (e.g., text or images) related to an event occurring in Virginia, making the digital component more interesting to people in Virginia, even if the modification is not specified in any of the multiple sets of approved modifications. In this way, the digital component may be modified using a set of selected modifications that are precomputed (e.g., performed offline) for the digital component, and the digital component may also be modified using additional context information that is obtained or available when the content is requested. This enables more complex modifications to the digital component at request time than would be possible if all modifications had to be determined at request time, while still ensuring that temporarily relevant modifications to the digital component are made, particularly in light of the strict time constraints required to provide the digital component after the request.

[0088] The modified digital component is provided (316). In some implementations, the modified digital component is provided by transmitting the modified digital component to the requesting client device over a communication network (e.g., an optical or wireless communication network). The modified digital component is visually modified according to a selected set of modifications precomputed during an offline process and possibly using contextual information obtained or available at the time the content was requested.

[0089] Figure 4 4 is a block diagram of an example computer system 400 that can be used to perform the operations described above. System 400 includes a processor 410, a memory 420, a storage device 430, and an input / output device 440. Each of components 410, 420, 430, and 440 can be interconnected, for example, using a system bus 450. Processor 410 is capable of processing instructions for execution within system 400. In one implementation, processor 410 is a single-threaded processor. In another implementation, processor 410 is a multi-threaded processor. Processor 410 is capable of processing instructions stored in memory 420 or on storage device 430.

[0090] The memory 420 stores information within the system 400. In one implementation, the memory 420 is a computer readable medium. In one implementation, the memory 420 is a volatile memory unit. In another implementation, the memory 420 is a non-volatile memory unit.

[0091] The storage device 430 can provide mass storage for the system 400. In one implementation, the storage device 430 is a computer-readable medium. In various implementations, the storage device 430 may include, for example, a hard disk device, an optical disk device, a storage device shared by multiple computing devices over a network (e.g., a cloud storage device), or some other mass storage device.

[0092] The input / output device 440 provides input / output operations for the system 400. In one implementation, the input / output device 440 may include one or more of a network interface device (e.g., an Ethernet card), a serial communication device (e.g., an RS-232 port), and / or a wireless interface device (e.g., an 802.11 card). In another implementation, the input / output device may include a driver device configured to receive input data and send output data to other devices (e.g., a keyboard, a printer, a display, and other peripheral devices 460). However, other implementations may also be used, such as a mobile computing device, a mobile communication device, a set-top TV client device, etc.

[0093] Although in Figure 4 An example processing system is described in the specification, but the subject matter and implementation of the functional operations described in this specification may be implemented in other types of digital electronic circuit systems or in computer software, firmware or hardware (including the structures disclosed in this specification and their structural equivalents), or in a combination of one or more of them.

[0094] An electronic document (referred to simply as a document for brevity) need not correspond to a file. A document may be stored in a portion of a file that holds other documents, in a single file dedicated to the document in question, or in multiple coordinated files.

[0095] With respect to situations in which the systems discussed herein collect and / or use personal information about a user, the user may be provided with the opportunity to enable / disable or otherwise control programs or features that may collect and / or use personal information (e.g., information about the user's social network, social actions or activities, the user's preferences, or the user's current location). Additionally, certain data may be disposed of in one or more ways prior to its storage or use such that personally identifiable information associated with the user is deleted. For example, the user's identity may be anonymized such that personally identifiable information about the user cannot be determined, or the user's geographic location may be generalized (such as to a city, zip code, or state level) if location information is available such that the user's specific location cannot be determined.

[0096] The subject matter and the embodiments of the operation described in this specification may be implemented in a digital electronic circuit system or in computer software, firmware or hardware (including the structures disclosed in this specification and their structural equivalents), or in a combination of one or more of them. The embodiments of the subject matter described in this specification may be implemented as one or more computer programs, i.e., one or more modules of computer program instructions, which are encoded on a computer storage medium for execution by a data processing device or for controlling the operation of a data processing device. Alternatively or additionally, program instructions may be encoded on an artificially generated propagation signal (e.g., a machine-generated electrical, optical or electromagnetic signal), which is generated to encode information for transmission to an appropriate receiver device for execution by a data processing device. The computer storage medium may be 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, or may be included in them. In addition, although a computer storage medium is not a propagation signal, a computer storage medium may be a source or destination of computer program instructions encoded in an artificially generated propagation signal. The computer storage medium can also be, or be included in, one or more separate physical components or media (eg, multiple CDs, disks, or other storage devices).

[0097] The operations described in this specification 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.

[0098] The term "data processing device" includes all types of devices, apparatuses and machines for processing data, including, for example, a programmable processor, a computer, a system on a chip, or a plurality of the foregoing or a combination thereof. The device may include a dedicated logic circuit system, such as an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit). In addition to hardware, the device may also include code that creates an execution environment for the computer program in question, for example, code that constitutes processor firmware, a protocol stack, a database management system, an operating system, a cross-platform runtime environment, a virtual machine, or a combination of one or more of them. The device and the execution environment may implement a variety of different computing model infrastructures, such as web services, distributed computing, and grid computing infrastructures.

[0099] This document relates to service devices. As used herein, a service device is one or more data processing devices that perform operations to facilitate the distribution of content over a network. A service device is depicted as a single block in a block diagram. However, although a service device can be a single device or a single group of devices, the present disclosure contemplates that a service device can also be a group of devices, or even a plurality of different systems that communicate to provide various content to a client device. For example, a service device can encompass one or more of a search system, a video streaming service, an audio streaming service, an email service, a navigation service, an advertising service, a gaming service, or any other service.

[0100] A computer program (also referred to as a program, software, software application, script, or code) may be written in any form of programming language, including compiled or interpreted languages ​​or declarative or procedural languages; and it may 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, but does not necessarily, correspond to a file in a file system. A program may 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 in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or portions of code). A computer program may be deployed to execute on one computer or on multiple computers located at one site or distributed over multiple sites and interconnected by a communications network.

[0101] The processes and logic flows described in this specification may be performed by one or more programmable computers 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 performed by, and the apparatus may also be implemented as, a special purpose logic circuit system, such as an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit).

[0102] For example, processors suitable for executing computer programs include general and special purpose microprocessors, and any one or more processors of any type of digital computer. Typically, the processor will receive instructions and data from a read-only memory or a random access memory or both. The basic elements of a computer are a processor for performing actions according to instructions and one or more memory devices for storing instructions and data. Typically, a computer will also include one or more mass storage devices for storing data, such as magnetic disks, magneto-optical disks, or optical disks, or be operatively coupled to receive data from it or transfer data to it or both. However, a computer does not have to have such devices. In addition, a computer may be embedded in another device, such as 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 a few. Devices suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for 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 the memory can be supplemented by, or incorporated in, special purpose logic circuitry.

[0103] To provide interaction with a user, embodiments of the subject matter described in this specification may be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user, and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, feedback provided to the user may be any form of sensory feedback, such as visual feedback, auditory feedback, or tactile feedback; and input from the user may be received in any form, including sound, voice, or tactile input. In addition, the computer may interact with the user by sending documents to and receiving documents from a device used by the user; for example, by sending a web page to a web browser on a user's client device in response to a request received from the web browser.

[0104] Embodiments of the subject matter described in this specification may be implemented in a computing system that includes a back-end component (e.g., as a data server), or includes a middleware component (e.g., an application server), or includes a front-end component (e.g., a client computer with a graphical user interface or a web browser through which a user can interact with an implementation of the subject matter described in this specification), or any combination of one or more such back-end, middleware, or front-end components. The components of the system may 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"), interconnected networks (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks).

[0105] A computing system may include a client and a server. The client and server are usually remote from each other and typically interact through a communication network. The relationship of client and server arises from computer programs running on respective computers and having a client-server relationship with each other. In some embodiments, the server transmits data (e.g., an HTML page) to a client device (e.g., for the purpose of displaying data to a user interacting with the client device and receiving user input from the user). Data generated at the client device (e.g., the result of a user interaction) may be received from the client device at the server.

[0106] Although this specification contains many specific implementation details, these details should not be interpreted as limitations on the scope of any invention or the scope that may be claimed, but should be interpreted as descriptions of features that are unique to a particular embodiment of a particular invention. Certain features described in the context of a separate embodiment in this specification may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented in multiple embodiments individually or in any suitable sub-combination. In addition, although the features are described above as acting in certain combinations and even initially required, one or more features from the required combination may be separated from the combination in some cases, and the required combination may be directed to a sub-combination or a change in the sub-combination.

[0107] Similarly, although operations are depicted in a particular order in the accompanying drawings, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order, or that all of the operations shown be performed, to achieve the desired result. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of various system components in the above-described embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.

[0108] Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions set forth in the claims can be performed in different orders and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some implementations, multitasking and parallel processing may be advantageous.

Claims

1. A method comprising: obtaining, by one or more processors and from a given content provider, a set of text and a set of images designated for combination to create a digital component; applying, by the one or more processors and to the electronic document, a saliency model configured using at least one machine learning training technique to accept as input image data of an image and output locations of salient regions in the image; constructing, by the one or more processors, a set of modifications to the set of text or the set of images, the set of modifications not causing a significant area in the electronic document to be overlapped by the set of text or the set of images; determining, by the one or more data processing devices, visual characteristics of the electronic document; After performing said obtaining, said applying, said constructing and said determining: receiving a request from a client device for content to be integrated into the electronic document, the electronic document being provided to the client device by a different domain than the digital component; visually modifying, by the one or more processors and subsequent to receiving the request for content, at least one of the set of text or the set of images based on a combination of (i) the constructed set of modifications and (ii) the determined visual characteristics of the electronic document; The digital component is provided to the client device by the one or more processors and in response to receiving the request for content as visually modified by the one or more processors.

2. The method of claim 1, wherein constructing the set of modifications further comprises: modifying the typographic design of the set of texts according to a given set of modifications; rendering a revised digital component including at least one image from the set of images and at least some text from the set of text having the revised typographic design; performing one or more computer vision processes on the rendering of the revised digital component overlaid on the electronic document to determine whether the salient areas of the image are overlapped; as well as The given set of modifications is classified based on whether the salient regions of the images are overlapped.

3. The method of claim 2, wherein: visually modifying at least one of the set of text or the set of images based on a combination of (i) the constructed set of modifications and (ii) the determined visual characteristics of the electronic document includes modifying the set of text to match a target layout design based on a target layout design of the electronic document being classified as acceptable based on the salient areas of the images not being overlapped when modified to the target layout design; and Providing the digital component to the client device as visually modified by the one or more processors includes providing the digital component including the target layout of the electronic document.

4. The method of claim 3, wherein constructing the set of modifications further comprises: modifying the shape of the image to a target shape; rendering said revised digital component in said modified shape of said image; performing a set of computer vision processes on the revised digital component; as well as The revised digital component is classified based on results of the set of computer vision processes performed on the revised digital component.

5. The method of claim 4, wherein visually modifying at least one of the set of text or the set of images based on a combination of (i) the constructed set of modifications and (ii) the determined visual characteristics of the electronic document comprises modifying the shape of the image to the target shape based on the set of computer vision processes indicating that the target shape of the image results in a pre-specified change in the distance between the image and content of the electronic document.

6. The method of claim 5, wherein visually modifying at least one of the set of text or the set of images based on a combination of (i) the constructed set of modifications and (ii) the determined visual characteristics of the electronic document comprises modifying the shape of the image to the target shape based on one or more characteristics of an intended audience for the digital component.

7. The method of claim 5, wherein: The digital component includes video content, and the method further includes: determining a context of the electronic document based on the content of the electronic document; determining a location within the video content that corresponds to the context of the electronic document; and Playback of the video content is started at the location other than the beginning of the video content based on the determination that the location within the video content corresponds to the context of the electronic document.

8. A non-transitory computer-readable medium storing instructions that, when executed by one or more data processing devices, cause the one or more data processing devices to perform operations comprising: obtaining from a given content provider a set of text and a set of images designated for combination to create a digital component; applying a saliency model to the electronic document, the saliency model configured using at least one machine learning training technique to accept as input image data of an image and output locations of salient regions in the image; constructing a set of modifications to the set of text or the set of images, the set of modifications not causing a significant area in the electronic document to be overlapped by the set of text or the set of images; determining visual characteristics of the electronic document; After performing said obtaining, said applying, said constructing and said determining: receiving a request from a client device for content to be integrated into the electronic document, the electronic document being provided to the client device by a different domain than the digital component; upon receiving the request for content, visually modifying at least one of the set of text or the set of images based on a combination of (i) the constructed set of modifications and (ii) the determined visual characteristics of the electronic document; The digital component as visually modified by the one or more processors is provided to the client device in response to receiving the request for content.

9. The non-transitory computer readable medium of claim 8, wherein constructing the set of modifications further comprises: modifying the typographic design of the set of texts according to a given set of modifications; rendering a revised digital component including at least one image from the set of images and at least some text from the set of text having the revised typographic design; performing one or more computer vision processes on the rendering of the revised digital component overlaid on the electronic document to determine whether the salient areas of the image are overlapped; as well as The given set of modifications is classified based on whether the salient regions of the images are overlapped.

10. The non-transitory computer readable medium of claim 9, wherein: visually modifying at least one of the set of text or the set of images based on a combination of (i) the constructed set of modifications and (ii) the determined visual characteristics of the electronic document includes modifying the set of text to match a target layout design based on a target layout design of the electronic document being classified as acceptable based on the salient areas of the images not being overlapped when modified to the target layout design; and Providing the digital component to the client device as visually modified by the one or more processors includes providing the digital component including the target layout of the electronic document.

11. The non-transitory computer readable medium of claim 10, wherein constructing the set of modifications further comprises: modifying the shape of the image to a target shape; rendering said revised digital component in said modified shape of said image; performing a set of computer vision processes on the revised digital component; as well as The revised digital component is classified based on results of the set of computer vision processes performed on the revised digital component.

12. The non-transitory computer-readable medium of claim 11, wherein visually modifying at least one of the set of text or the set of images based on a combination of (i) the constructed set of modifications and (ii) the determined visual characteristics of the electronic document comprises modifying the shape of the image to the target shape based on the set of computer vision processes indicating that the target shape of the image results in a pre-specified change in the distance between the image and content of the electronic document.

13. The non-transitory computer-readable medium of claim 12, wherein visually modifying at least one of the set of text or the set of images based on a combination of (i) the constructed set of modifications and (ii) the determined visual characteristics of the electronic document comprises modifying the shape of the image to the target shape based on one or more characteristics of an intended audience for the digital component.

14. The non-transitory computer readable medium of claim 12, wherein: The digital component includes video content; and The instructions cause the one or more data processing devices to perform operations further comprising: determining a context of the electronic document based on the content of the electronic document; determining a location within the video content that corresponds to the context of the electronic document; as well as Playback of the video content is started at the location other than the beginning of the video content based on the determination that the location within the video content corresponds to the context of the electronic document.

15. A system comprising: one or more memory devices; as well as A service device, the service device comprising one or more data processing devices, the one or more data processing devices being configured to access the one or more memory devices and execute instructions, the instructions causing the one or more data processing devices to perform operations comprising: obtaining from a given content provider a set of text and a set of images designated for combination to create a digital component; applying a saliency model to the electronic document, the saliency model configured using at least one machine learning training technique to accept as input image data of an image and output locations of salient regions in the image; constructing a set of modifications to the set of text or the set of images, the set of modifications not causing a significant area in the electronic document to be overlapped by the set of text or the set of images; determining visual characteristics of the electronic document; After performing said obtaining, said applying, said constructing and said determining: receiving a request from a client device for content to be integrated into the electronic document, the electronic document being provided to the client device by a different domain than the digital component; upon receiving the request for content, visually modifying at least one of the set of text or the set of images based on a combination of (i) the constructed set of modifications and (ii) the determined visual characteristics of the electronic document; The digital component as visually modified by the one or more processors is provided to the client device in response to receiving the request for content.

16. The system of claim 15, wherein constructing the set of modifications further comprises: modifying the typographic design of the set of texts according to a given set of modifications; rendering a revised digital component including at least one image from the set of images and at least some text from the set of text having the revised typographic design; performing one or more computer vision processes on the rendering of the revised digital component overlaid on the electronic document to determine whether the salient areas of the image are overlapped; as well as The given set of modifications is classified based on whether the salient regions of the images are overlapped.

17. The system of claim 16, wherein: visually modifying at least one of the set of text or the set of images based on a combination of (i) the constructed set of modifications and (ii) the determined visual characteristics of the electronic document includes modifying the set of text to match a target layout design based on a target layout design of the electronic document being classified as acceptable based on the salient areas of the images not being overlapped when modified to the target layout design; and Providing the digital component to the client device as visually modified by the one or more processors includes providing the digital component including the target layout of the electronic document.

18. The system of claim 17, wherein constructing the set of modifications further comprises: modifying the shape of the image to a target shape; rendering said revised digital component in said modified shape of said image; performing a set of computer vision processes on the revised digital component; as well as The revised digital component is classified based on results of the set of computer vision processes performed on the revised digital component.

19. The system of claim 18, wherein visually modifying at least one of the set of text or the set of images based on a combination of (i) the constructed set of modifications and (ii) the determined visual characteristics of the electronic document comprises modifying the shape of the image to the target shape based on the set of computer vision processes indicating that the target shape of the image results in a pre-specified change in the distance between the image and content of the electronic document.

20. The system of claim 19, wherein visually modifying at least one of the set of text or the set of images based on a combination of (i) the constructed set of modifications and (ii) the determined visual characteristics of the electronic document comprises modifying the shape of the image to the target shape based on one or more characteristics of an intended audience for the digital component.