Extraction of a color palette model from an image of a document
First Claim
Patent Images
1. A method performed by a physical computing system comprising at least one processor for determining a color palette model from an image of a document, said method comprising:
- clustering pixel values of the image of the document to provide image clusters;
determining color layers of the image, wherein each color layer corresponds to an image cluster;
for a content block detected in a first color layer of the image of the document, determining a second color layer of the image of the document for which a coincident content block is detected in the inverse color layer of that second color layer; and
determining the color of the first color layer and the color of the second color layer as a foreground-background color pair for the content block in a color palette model of the image of the document,wherein the clustering, determining color layers, determining a second color layer, and determining the foreground-background color pair are performed using the computing system.
1 Assignment
0 Petitions
Accused Products
Abstract
A system and method are provided for determining a color palette model from an image of a document. Pixel values of the image of the document are clustered to provide image clusters. Color layers of the image are determined, each color layer corresponding to an image cluster. Aspects of the color palette model can be determined using the color layers. Aspects of the color palette model include a foreground-background color pair for a content block in the document and a background-area color of the document.
28 Citations
19 Claims
-
1. A method performed by a physical computing system comprising at least one processor for determining a color palette model from an image of a document, said method comprising:
-
clustering pixel values of the image of the document to provide image clusters; determining color layers of the image, wherein each color layer corresponds to an image cluster; for a content block detected in a first color layer of the image of the document, determining a second color layer of the image of the document for which a coincident content block is detected in the inverse color layer of that second color layer; and determining the color of the first color layer and the color of the second color layer as a foreground-background color pair for the content block in a color palette model of the image of the document, wherein the clustering, determining color layers, determining a second color layer, and determining the foreground-background color pair are performed using the computing system. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A method performed by a computing system comprising at least one processor for determining a color palette model from an image of a document, said method comprising:
-
clustering pixel values of an image of a document to provide image clusters; determining color layers of the image, wherein each color layer corresponds to an image cluster; applying an erode filter to a given color layer of the image of the document a predetermined number of times to provide a corresponding eroded color layer; and determining the color of the given color layer as a background-area color in a color palette model of the image of the document if the number of pixels of the corresponding eroded color layer is above a predetermined threshold value, wherein the clustering, determining color layers, applying the erode filter, and determining the background-area color are performed using the computing system. - View Dependent Claims (8, 9)
-
-
10. Apparatus for processing image data, comprising:
-
a memory storing computer-readable instructions; and a processor coupled to the memory, to execute the instructions, and based at least in part on the execution of the instructions, to perform operations comprising; clustering pixel values of the image of a document to provide image clusters; determining color layers of the image, wherein each color layer corresponds to an image cluster; for a content block detected in a first color layer of the image of the document, determining a second color layer of the image of the document for which a coincident content block is detected in the inverse color layer of that second color layer; and determining the color of the first color layer and the color of the second color layer as a foreground-background color pair for the content block in a color palette model of the image of the document. - View Dependent Claims (11, 12, 13)
-
-
14. Apparatus for processing image data, comprising:
-
a memory storing computer-readable instructions; and a processor coupled to the memory, to execute the instructions, and based at least in part on the execution of the instructions, to perform operations comprising; clustering pixel values of an image of a document to provide image clusters; determining color layers of the image, wherein each color layer corresponds to an image cluster; applying an erode filter to a given color layer of to image of the document a predetermined number of times to provide a corresponding eroded color layer; and determining the color of the given color layer as a background-area color in a color palette model of the image of the document if the number of pixels of the corresponding eroded color layer is above a predetermined threshold value.
-
-
15. At least one computer-readable medium storing computer-readable program code adapted to be executed by a computer to implement a method comprising:
-
a memory storing computer-readable instructions; and a processor coupled to the memory, to execute the instructions, and based at least in part on the execution of the instructions, to perform operations comprising; clustering pixel values of the image of a document to provide image clusters; determining color layers of the image, wherein each color layer corresponds to an image cluster; for a content block detected in a first color layer of the image of the document, determining a second color layer of the image of the document for which a coincident content block is detected in the inverse color layer of that second color layer; and determining the color of the first color layer and the color of the second color layer as a foreground-background color pair for the content block in a color palette model of the image of the document. - View Dependent Claims (16, 17, 18)
-
-
19. At least one computer-readable medium storing computer-readable program code adapted to be executed by a computer to implement a method comprising:
-
a memory storing computer-readable instructions; and a processor coupled to the memory, to execute the instructions, and based at least in part on the execution of the instructions, to perform operations comprising; clustering pixel values of an image of a document to provide image clusters; determining color layers of the image, wherein each color layer corresponds to an image cluster; applying an erode filter to a given color layer of the image of the document a predetermined number of times to provide a corresponding eroded color layer; and determining the color of the given color layer as a background-area color in a color palette model of the image of the document if the number of pixels of the corresponding eroded color layer is above a predetermined threshold value.
-
Specification