Color sampling for displaying content items
First Claim
1. A method comprising:
- receiving, at an online system, a content item to be provided to a user of the online system, the content item including an image;
determining that the content item is to be displayed with a color block as an accent to the image;
selecting a color to use in displaying the color block using a waterfall selection method by;
executing a first selection method corresponding to a first set of criteria to determine a color to use in displaying the color block, or to determine that no color satisfies the first selection method, wherein the color for the color block is selected based upon a color of the image satisfying the first set of selection criteria that has a greatest amount of coverage within the image relative to other colors in the image, andin response to a determination that no color satisfies the first selection method, executing one or more additional selection methods corresponding to respective sets of criteria to determine a color to use in displaying the color block, wherein the color determined using each of the one or more additional selection methods is based upon a color of the image satisfying the respective set of selection criteria that has a greatest amount of coverage within the image; and
providing the content item for display to the user of the online system, wherein the displayed content item includes at least the image associated with the content item and the color block as an accent to the displayed image, the color block displayed with the selected color determined in the waterfall selection method.
2 Assignments
0 Petitions
Accused Products
Abstract
An online system is configured to provide content items to users. The content item includes an image, and is displayed with a color block or colored border as an accent to the image. The color of the color block or colored bordered is dynamically selected based upon the image included in the content item, and is selected using a waterfall selection method comprising a sequence of different selection methods, each selection method configured to select a color based upon a most common color of the image that satisfies a respective set of selection criteria or determine that no color meets the respective set of selection criteria. The selection methods may comprise a dominant color selection method wherein the selected color corresponds to a most dominant color of the image, and a complementary color selection method wherein the select color is a complement of a dominant color of the image.
-
Citations
20 Claims
-
1. A method comprising:
-
receiving, at an online system, a content item to be provided to a user of the online system, the content item including an image; determining that the content item is to be displayed with a color block as an accent to the image; selecting a color to use in displaying the color block using a waterfall selection method by; executing a first selection method corresponding to a first set of criteria to determine a color to use in displaying the color block, or to determine that no color satisfies the first selection method, wherein the color for the color block is selected based upon a color of the image satisfying the first set of selection criteria that has a greatest amount of coverage within the image relative to other colors in the image, and in response to a determination that no color satisfies the first selection method, executing one or more additional selection methods corresponding to respective sets of criteria to determine a color to use in displaying the color block, wherein the color determined using each of the one or more additional selection methods is based upon a color of the image satisfying the respective set of selection criteria that has a greatest amount of coverage within the image; and providing the content item for display to the user of the online system, wherein the displayed content item includes at least the image associated with the content item and the color block as an accent to the displayed image, the color block displayed with the selected color determined in the waterfall selection method. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A non-transitory computer readable storage medium storing computer program instructions, the computer program instructions when executed by a computer processor causes the processor to perform the steps of:
-
receiving, at an online system, a content item to be provided to a user of the online system, the content item including an image; determining that the content item is to be displayed with a color block as an accent to the image; selecting a color to use in displaying the color block using a waterfall selection method by; executing a first selection method corresponding to a first set of criteria to determine a color to use in displaying the color block, or to determine that no color satisfies the first selection method, wherein the color for the color block is selected based upon a color of the image satisfying the first set of selection criteria that has a greatest amount of coverage within the image relative to other colors in the image, and in response to a determination that no color satisfies the first selection method, executing one or more additional selection methods corresponding to respective sets of criteria to determine a color to use in displaying the color block, wherein the color determined using each of the one or more additional selection methods is based upon a color of the image satisfying the respective set of selection criteria that has a greatest amount of coverage within the image; and providing the content item for display to the user of the online system, wherein the displayed content item includes at least the image associated with the content item and the color block as an accent to the displayed image, the color block displayed with the selected color determined in the waterfall selection method. - View Dependent Claims (12, 13, 14, 15, 16)
-
-
17. An online system, comprising:
-
a receiver configured to receive a content item to be provided to a user of the online system, the content item including an image; at least one processor configured to; determine that the content item is to be displayed with a color block as an accent to the image; select a color to use in displaying the color block using a waterfall selection method by; executing a first selection method corresponding to a first set of criteria to determine a color to use in displaying the color block, or to determine that no color satisfies the first selection method, wherein the color for the color block is selected based upon a color of the image satisfying the first set of selection criteria that has a greatest amount of coverage within the image relative to other colors in the image, and in response to a determination that no color satisfies the first selection method, executing one or more additional selection methods corresponding to respective sets of criteria to determine a color to use in displaying the color block, wherein the color determined using each of the one or more additional selection methods is based upon a color of the image satisfying the respective set of selection criteria that has a greatest amount of coverage within the image; and provide the content item for display to the user of the online system, wherein the displayed content item includes at least the image associated with the content item and the color block as an accent to the displayed image, the color block displayed with the selected color determined in the waterfall selection method. - View Dependent Claims (18, 19, 20)
-
Specification