Method and apparatus for color detection to generate text color
View Patent ↗A method and apparatus for automatically selecting a color for overlay on an image or video for presentation on a media device. The system identifies the most prominent color in an image, finds the closest match to that color in a predetermined number of colors, and then uses the closest match color to color the font of the title that is overlaid on the image.
1. A method for automatically selecting a color for overlap on a series of images for presentation on a media device, comprising:
determining, by a processor, a caption location within the series of images, the caption location being a location within an image of the series of images which has a smallest color variation over a plurality of images of the series of images;
analyzing, by the processor, the series of images to determine a set of most commonly used colors by selecting, for each image of the series of images, a most commonly used color in the image in a proximity of the caption location;
generating a text string; and
displaying, via a display, the series of images and the text string, the text string being displayed at the caption location in a caption color for each image of the series of images, the caption color being selected based on the most common color in the determined set of most commonly used colors.
2. The method of claim 1 , wherein the series of images are comprised in a video.
3. An apparatus to automatically select a color for overlap on a series of images for presentation on a media device, comprising:
a memory for storing a series of images; and
a processor configured to:
determine a caption location within the series of images, the caption location being a location within an image of the series of images which has a smallest color variation over a plurality of images of the series of images;
analyze the series of images to determine a set of most commonly used colors by selecting, for each image of the series of images, a most commonly used color in the image in a proximity of the caption location; and
generate a text string; and
a display configured to display the series of images and the text string, the text string being displayed at the caption location in a caption color for each image of the series of images, the caption color being selected based on the most common color in the determined set of most commonly used colors.
4. The apparatus of claim 3 , wherein the series of images are comprised in a video.